content-grade 1.0.0

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.
@@ -0,0 +1,78 @@
1
+ function zd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya={exports:{}},Ao={},Xa={exports:{}},L={};/**
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 Cr=Symbol.for("react.element"),_d=Symbol.for("react.portal"),Ed=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),Td=Symbol.for("react.profiler"),Bd=Symbol.for("react.provider"),Pd=Symbol.for("react.context"),Wd=Symbol.for("react.forward_ref"),Ad=Symbol.for("react.suspense"),Nd=Symbol.for("react.memo"),Ld=Symbol.for("react.lazy"),zs=Symbol.iterator;function Od(e){return e===null||typeof e!="object"?null:(e=zs&&e[zs]||e["@@iterator"],typeof e=="function"?e:null)}var Ja={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qa=Object.assign,Za={};function Tn(e,t,n){this.props=e,this.context=t,this.refs=Za,this.updater=n||Ja}Tn.prototype.isReactComponent={};Tn.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")};Tn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eu(){}eu.prototype=Tn.prototype;function El(e,t,n){this.props=e,this.context=t,this.refs=Za,this.updater=n||Ja}var Rl=El.prototype=new eu;Rl.constructor=El;qa(Rl,Tn.prototype);Rl.isPureReactComponent=!0;var bs=Array.isArray,tu=Object.prototype.hasOwnProperty,Tl={current:null},nu={key:!0,ref:!0,__self:!0,__source:!0};function ru(e,t,n){var r,o={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)tu.call(t,r)&&!nu.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];o.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Cr,type:e,key:l,ref:s,props:o,_owner:Tl.current}}function Id(e,t){return{$$typeof:Cr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cr}function Fd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _s=/\/+/g;function Zo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fd(""+e.key):t.toString(36)}function Kr(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Cr:case _d:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Zo(s,0):r,bs(o)?(n="",e!=null&&(n=e.replace(_s,"$&/")+"/"),Kr(o,t,n,"",function(d){return d})):o!=null&&(Bl(o)&&(o=Id(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(_s,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",bs(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+Zo(l,a);s+=Kr(l,t,n,u,o)}else if(u=Od(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+Zo(l,a++),s+=Kr(l,t,n,u,o);else if(l==="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 s}function Tr(e,t,n){if(e==null)return e;var r=[],o=0;return Kr(e,r,"","",function(l){return t.call(n,l,o++)}),r}function $d(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 we={current:null},Yr={transition:null},Md={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:Yr,ReactCurrentOwner:Tl};function ou(){throw Error("act(...) is not supported in production builds of React.")}L.Children={map:Tr,forEach:function(e,t,n){Tr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tr(e,function(){t++}),t},toArray:function(e){return Tr(e,function(t){return t})||[]},only:function(e){if(!Bl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};L.Component=Tn;L.Fragment=Ed;L.Profiler=Td;L.PureComponent=El;L.StrictMode=Rd;L.Suspense=Ad;L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Md;L.act=ou;L.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=qa({},e.props),o=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Tl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)tu.call(t,u)&&!nu.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 d=0;d<u;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:Cr,type:e.type,key:o,ref:l,props:r,_owner:s}};L.createContext=function(e){return e={$$typeof:Pd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bd,_context:e},e.Consumer=e};L.createElement=ru;L.createFactory=function(e){var t=ru.bind(null,e);return t.type=e,t};L.createRef=function(){return{current:null}};L.forwardRef=function(e){return{$$typeof:Wd,render:e}};L.isValidElement=Bl;L.lazy=function(e){return{$$typeof:Ld,_payload:{_status:-1,_result:e},_init:$d}};L.memo=function(e,t){return{$$typeof:Nd,type:e,compare:t===void 0?null:t}};L.startTransition=function(e){var t=Yr.transition;Yr.transition={};try{e()}finally{Yr.transition=t}};L.unstable_act=ou;L.useCallback=function(e,t){return we.current.useCallback(e,t)};L.useContext=function(e){return we.current.useContext(e)};L.useDebugValue=function(){};L.useDeferredValue=function(e){return we.current.useDeferredValue(e)};L.useEffect=function(e,t){return we.current.useEffect(e,t)};L.useId=function(){return we.current.useId()};L.useImperativeHandle=function(e,t,n){return we.current.useImperativeHandle(e,t,n)};L.useInsertionEffect=function(e,t){return we.current.useInsertionEffect(e,t)};L.useLayoutEffect=function(e,t){return we.current.useLayoutEffect(e,t)};L.useMemo=function(e,t){return we.current.useMemo(e,t)};L.useReducer=function(e,t,n){return we.current.useReducer(e,t,n)};L.useRef=function(e){return we.current.useRef(e)};L.useState=function(e){return we.current.useState(e)};L.useSyncExternalStore=function(e,t,n){return we.current.useSyncExternalStore(e,t,n)};L.useTransition=function(){return we.current.useTransition()};L.version="18.3.1";Xa.exports=L;var x=Xa.exports;const iu=bd(x),Dd=zd({__proto__:null,default:iu},[x]);/**
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 Ud=x,Hd=Symbol.for("react.element"),Vd=Symbol.for("react.fragment"),Gd=Object.prototype.hasOwnProperty,Qd=Ud.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kd={key:!0,ref:!0,__self:!0,__source:!0};function lu(e,t,n){var r,o={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Gd.call(t,r)&&!Kd.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Hd,type:e,key:l,ref:s,props:o,_owner:Qd.current}}Ao.Fragment=Vd;Ao.jsx=lu;Ao.jsxs=lu;Ya.exports=Ao;var i=Ya.exports,Ei={},su={exports:{}},Ne={},au={exports:{}},uu={};/**
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(b,P){var A=b.length;b.push(P);e:for(;0<A;){var M=A-1>>>1,K=b[M];if(0<o(K,P))b[M]=P,b[A]=K,A=M;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var P=b[0],A=b.pop();if(A!==P){b[0]=A;e:for(var M=0,K=b.length,ve=K>>>1;M<ve;){var Xe=2*(M+1)-1,N=b[Xe],U=Xe+1,Rr=b[U];if(0>o(N,A))U<K&&0>o(Rr,N)?(b[M]=Rr,b[U]=A,M=U):(b[M]=N,b[Xe]=A,M=Xe);else if(U<K&&0>o(Rr,A))b[M]=Rr,b[U]=A,M=U;else break e}}return P}function o(b,P){var A=b.sortIndex-P.sortIndex;return A!==0?A:b.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],d=[],h=1,m=null,p=3,S=!1,g=!1,v=!1,j=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(b){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=b)r(d),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(d)}}function w(b){if(v=!1,y(b),!g)if(n(u)!==null)g=!0,$(k);else{var P=n(d);P!==null&&ae(w,P.startTime-b)}}function k(b,P){g=!1,v&&(v=!1,f(R),R=-1),S=!0;var A=p;try{for(y(P),m=n(u);m!==null&&(!(m.expirationTime>P)||b&&!ne());){var M=m.callback;if(typeof M=="function"){m.callback=null,p=m.priorityLevel;var K=M(m.expirationTime<=P);P=e.unstable_now(),typeof K=="function"?m.callback=K:m===n(u)&&r(u),y(P)}else r(u);m=n(u)}if(m!==null)var ve=!0;else{var Xe=n(d);Xe!==null&&ae(w,Xe.startTime-P),ve=!1}return ve}finally{m=null,p=A,S=!1}}var z=!1,_=null,R=-1,I=5,B=-1;function ne(){return!(e.unstable_now()-B<I)}function Re(){if(_!==null){var b=e.unstable_now();B=b;var P=!0;try{P=_(!0,b)}finally{P?Te():(z=!1,_=null)}}else z=!1}var Te;if(typeof c=="function")Te=function(){c(Re)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,T=W.port2;W.port1.onmessage=Re,Te=function(){T.postMessage(null)}}else Te=function(){j(Re,0)};function $(b){_=b,z||(z=!0,Te())}function ae(b,P){R=j(function(){b(e.unstable_now())},P)}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(b){b.callback=null},e.unstable_continueExecution=function(){g||S||(g=!0,$(k))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(b){switch(p){case 1:case 2:case 3:var P=3;break;default:P=p}var A=p;p=P;try{return b()}finally{p=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,P){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var A=p;p=b;try{return P()}finally{p=A}},e.unstable_scheduleCallback=function(b,P,A){var M=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?M+A:M):A=M,b){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=A+K,b={id:h++,callback:P,priorityLevel:b,startTime:A,expirationTime:K,sortIndex:-1},A>M?(b.sortIndex=A,t(d,b),n(u)===null&&b===n(d)&&(v?(f(R),R=-1):v=!0,ae(w,A-M))):(b.sortIndex=K,t(u,b),g||S||(g=!0,$(k))),b},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(b){var P=p;return function(){var A=p;p=P;try{return b.apply(this,arguments)}finally{p=A}}}})(uu);au.exports=uu;var Yd=au.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 Xd=x,Ae=Yd;function C(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 cu=new Set,or={};function Zt(e,t){wn(e,t),wn(e+"Capture",t)}function wn(e,t){for(or[e]=t,e=0;e<t.length;e++)cu.add(t[e])}var at=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=Object.prototype.hasOwnProperty,Jd=/^[: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]*$/,Es={},Rs={};function qd(e){return Ri.call(Rs,e)?!0:Ri.call(Es,e)?!1:Jd.test(e)?Rs[e]=!0:(Es[e]=!0,!1)}function Zd(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 ef(e,t,n,r){if(t===null||typeof t>"u"||Zd(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 ke(e,t,n,r,o,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new ke(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){pe[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pl=/[\-:]([a-z])/g;function Wl(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(Pl,Wl);pe[t]=new ke(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(Pl,Wl);pe[t]=new ke(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(Pl,Wl);pe[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Al(e,t,n,r){var o=pe.hasOwnProperty(t)?pe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ef(t,n,o,r)&&(n=null),r||o===null?qd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ft=Xd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Br=Symbol.for("react.element"),nn=Symbol.for("react.portal"),rn=Symbol.for("react.fragment"),Nl=Symbol.for("react.strict_mode"),Ti=Symbol.for("react.profiler"),du=Symbol.for("react.provider"),fu=Symbol.for("react.context"),Ll=Symbol.for("react.forward_ref"),Bi=Symbol.for("react.suspense"),Pi=Symbol.for("react.suspense_list"),Ol=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),pu=Symbol.for("react.offscreen"),Ts=Symbol.iterator;function On(e){return e===null||typeof e!="object"?null:(e=Ts&&e[Ts]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,ei;function Vn(e){if(ei===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ei=t&&t[1]||""}return`
34
+ `+ei+e}var ti=!1;function ni(e,t){if(!e||ti)return"";ti=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
35
+ `),l=r.stack.split(`
36
+ `),s=o.length-1,a=l.length-1;1<=s&&0<=a&&o[s]!==l[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==l[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==l[a]){var u=`
37
+ `+o[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{ti=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vn(e):""}function tf(e){switch(e.tag){case 5:return Vn(e.type);case 16:return Vn("Lazy");case 13:return Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 2:case 15:return e=ni(e.type,!1),e;case 11:return e=ni(e.type.render,!1),e;case 1:return e=ni(e.type,!0),e;default:return""}}function Wi(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 rn:return"Fragment";case nn:return"Portal";case Ti:return"Profiler";case Nl:return"StrictMode";case Bi:return"Suspense";case Pi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fu:return(e.displayName||"Context")+".Consumer";case du:return(e._context.displayName||"Context")+".Provider";case Ll:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ol:return t=e.displayName||null,t!==null?t:Wi(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return Wi(e(t))}catch{}}return null}function nf(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 Wi(t);case 8:return t===Nl?"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 Pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rf(e){var t=hu(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pr(e){e._valueTracker||(e._valueTracker=rf(e))}function gu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lo(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 Ai(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pt(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 mu(e,t){t=t.checked,t!=null&&Al(e,"checked",t,!1)}function Ni(e,t){mu(e,t);var n=Pt(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")?Li(e,t.type,n):t.hasOwnProperty("defaultValue")&&Li(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ps(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 Li(e,t,n){(t!=="number"||lo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gn=Array.isArray;function gn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Oi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ws(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Gn(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Pt(n)}}function yu(e,t){var n=Pt(t.value),r=Pt(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 As(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ii(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wr,vu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wr=Wr||document.createElement("div"),Wr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yn={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},of=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(e){of.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yn[t]=Yn[e]})});function Su(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yn.hasOwnProperty(e)&&Yn[e]?(""+t).trim():t+"px"}function ju(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Su(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var lf=ee({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 Fi(e,t){if(t){if(lf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function $i(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 Mi=null;function Il(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Di=null,mn=null,yn=null;function Ns(e){if(e=_r(e)){if(typeof Di!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Fo(t),Di(e.stateNode,e.type,t))}}function wu(e){mn?yn?yn.push(e):yn=[e]:mn=e}function ku(){if(mn){var e=mn,t=yn;if(yn=mn=null,Ns(e),t)for(e=0;e<t.length;e++)Ns(t[e])}}function Cu(e,t){return e(t)}function zu(){}var ri=!1;function bu(e,t,n){if(ri)return e(t,n);ri=!0;try{return Cu(e,t,n)}finally{ri=!1,(mn!==null||yn!==null)&&(zu(),ku())}}function lr(e,t){var n=e.stateNode;if(n===null)return null;var r=Fo(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(C(231,t,typeof n));return n}var Ui=!1;if(at)try{var In={};Object.defineProperty(In,"passive",{get:function(){Ui=!0}}),window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{Ui=!1}function sf(e,t,n,r,o,l,s,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(h){this.onError(h)}}var Xn=!1,so=null,ao=!1,Hi=null,af={onError:function(e){Xn=!0,so=e}};function uf(e,t,n,r,o,l,s,a,u){Xn=!1,so=null,sf.apply(af,arguments)}function cf(e,t,n,r,o,l,s,a,u){if(uf.apply(this,arguments),Xn){if(Xn){var d=so;Xn=!1,so=null}else throw Error(C(198));ao||(ao=!0,Hi=d)}}function en(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 _u(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 Ls(e){if(en(e)!==e)throw Error(C(188))}function df(e){var t=e.alternate;if(!t){if(t=en(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Ls(o),e;if(l===r)return Ls(o),t;l=l.sibling}throw Error(C(188))}if(n.return!==r.return)n=o,r=l;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=l;break}if(a===r){s=!0,r=o,n=l;break}a=a.sibling}if(!s){for(a=l.child;a;){if(a===n){s=!0,n=l,r=o;break}if(a===r){s=!0,r=l,n=o;break}a=a.sibling}if(!s)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Eu(e){return e=df(e),e!==null?Ru(e):null}function Ru(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ru(e);if(t!==null)return t;e=e.sibling}return null}var Tu=Ae.unstable_scheduleCallback,Os=Ae.unstable_cancelCallback,ff=Ae.unstable_shouldYield,pf=Ae.unstable_requestPaint,re=Ae.unstable_now,hf=Ae.unstable_getCurrentPriorityLevel,Fl=Ae.unstable_ImmediatePriority,Bu=Ae.unstable_UserBlockingPriority,uo=Ae.unstable_NormalPriority,gf=Ae.unstable_LowPriority,Pu=Ae.unstable_IdlePriority,No=null,et=null;function mf(e){if(et&&typeof et.onCommitFiberRoot=="function")try{et.onCommitFiberRoot(No,e,void 0,(e.current.flags&128)===128)}catch{}}var Qe=Math.clz32?Math.clz32:vf,yf=Math.log,xf=Math.LN2;function vf(e){return e>>>=0,e===0?32:31-(yf(e)/xf|0)|0}var Ar=64,Nr=4194304;function Qn(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 co(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Qn(a):(l&=s,l!==0&&(r=Qn(l)))}else s=n&~o,s!==0?r=Qn(s):l!==0&&(r=Qn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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-Qe(t),o=1<<n,r|=e[n],t&=~o;return r}function Sf(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 jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Qe(l),a=1<<s,u=o[s];u===-1?(!(a&n)||a&r)&&(o[s]=Sf(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function Vi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wu(){var e=Ar;return Ar<<=1,!(Ar&4194240)&&(Ar=64),e}function oi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qe(t),e[t]=n}function wf(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 o=31-Qe(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function $l(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var F=0;function Au(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nu,Ml,Lu,Ou,Iu,Gi=!1,Lr=[],kt=null,Ct=null,zt=null,sr=new Map,ar=new Map,xt=[],kf="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 Is(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function Fn(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=_r(t),t!==null&&Ml(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Cf(e,t,n,r,o){switch(t){case"focusin":return kt=Fn(kt,e,t,n,r,o),!0;case"dragenter":return Ct=Fn(Ct,e,t,n,r,o),!0;case"mouseover":return zt=Fn(zt,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return sr.set(l,Fn(sr.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,ar.set(l,Fn(ar.get(l)||null,e,t,n,r,o)),!0}return!1}function Fu(e){var t=Mt(e.target);if(t!==null){var n=en(t);if(n!==null){if(t=n.tag,t===13){if(t=_u(n),t!==null){e.blockedOn=t,Iu(e.priority,function(){Lu(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 Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mi=r,n.target.dispatchEvent(r),Mi=null}else return t=_r(n),t!==null&&Ml(t),e.blockedOn=n,!1;t.shift()}return!0}function Fs(e,t,n){Xr(e)&&n.delete(t)}function zf(){Gi=!1,kt!==null&&Xr(kt)&&(kt=null),Ct!==null&&Xr(Ct)&&(Ct=null),zt!==null&&Xr(zt)&&(zt=null),sr.forEach(Fs),ar.forEach(Fs)}function $n(e,t){e.blockedOn===t&&(e.blockedOn=null,Gi||(Gi=!0,Ae.unstable_scheduleCallback(Ae.unstable_NormalPriority,zf)))}function ur(e){function t(o){return $n(o,e)}if(0<Lr.length){$n(Lr[0],e);for(var n=1;n<Lr.length;n++){var r=Lr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(kt!==null&&$n(kt,e),Ct!==null&&$n(Ct,e),zt!==null&&$n(zt,e),sr.forEach(t),ar.forEach(t),n=0;n<xt.length;n++)r=xt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xt.length&&(n=xt[0],n.blockedOn===null);)Fu(n),n.blockedOn===null&&xt.shift()}var xn=ft.ReactCurrentBatchConfig,fo=!0;function bf(e,t,n,r){var o=F,l=xn.transition;xn.transition=null;try{F=1,Dl(e,t,n,r)}finally{F=o,xn.transition=l}}function _f(e,t,n,r){var o=F,l=xn.transition;xn.transition=null;try{F=4,Dl(e,t,n,r)}finally{F=o,xn.transition=l}}function Dl(e,t,n,r){if(fo){var o=Qi(e,t,n,r);if(o===null)hi(e,t,r,po,n),Is(e,r);else if(Cf(o,e,t,n,r))r.stopPropagation();else if(Is(e,r),t&4&&-1<kf.indexOf(e)){for(;o!==null;){var l=_r(o);if(l!==null&&Nu(l),l=Qi(e,t,n,r),l===null&&hi(e,t,r,po,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else hi(e,t,r,null,n)}}var po=null;function Qi(e,t,n,r){if(po=null,e=Il(r),e=Mt(e),e!==null)if(t=en(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_u(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 po=e,null}function $u(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(hf()){case Fl:return 1;case Bu:return 4;case uo:case gf:return 16;case Pu:return 536870912;default:return 16}default:return 16}}var St=null,Ul=null,Jr=null;function Mu(){if(Jr)return Jr;var e,t=Ul,n=t.length,r,o="value"in St?St.value:St.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[l-r];r++);return Jr=o.slice(e,1<r?1-r:void 0)}function qr(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 Or(){return!0}function $s(){return!1}function Le(e){function t(n,r,o,l,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Or:$s,this.isPropagationStopped=$s,this}return ee(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=Or)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Or)},persist:function(){},isPersistent:Or}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hl=Le(Bn),br=ee({},Bn,{view:0,detail:0}),Ef=Le(br),ii,li,Mn,Lo=ee({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vl,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!==Mn&&(Mn&&e.type==="mousemove"?(ii=e.screenX-Mn.screenX,li=e.screenY-Mn.screenY):li=ii=0,Mn=e),ii)},movementY:function(e){return"movementY"in e?e.movementY:li}}),Ms=Le(Lo),Rf=ee({},Lo,{dataTransfer:0}),Tf=Le(Rf),Bf=ee({},br,{relatedTarget:0}),si=Le(Bf),Pf=ee({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0}),Wf=Le(Pf),Af=ee({},Bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nf=Le(Af),Lf=ee({},Bn,{data:0}),Ds=Le(Lf),Of={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},If={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"},Ff={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $f(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ff[e])?!!t[e]:!1}function Vl(){return $f}var Mf=ee({},br,{key:function(e){if(e.key){var t=Of[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?If[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vl,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Df=Le(Mf),Uf=ee({},Lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Us=Le(Uf),Hf=ee({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vl}),Vf=Le(Hf),Gf=ee({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qf=Le(Gf),Kf=ee({},Lo,{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}),Yf=Le(Kf),Xf=[9,13,27,32],Gl=at&&"CompositionEvent"in window,Jn=null;at&&"documentMode"in document&&(Jn=document.documentMode);var Jf=at&&"TextEvent"in window&&!Jn,Du=at&&(!Gl||Jn&&8<Jn&&11>=Jn),Hs=" ",Vs=!1;function Uu(e,t){switch(e){case"keyup":return Xf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function qf(e,t){switch(e){case"compositionend":return Hu(t);case"keypress":return t.which!==32?null:(Vs=!0,Hs);case"textInput":return e=t.data,e===Hs&&Vs?null:e;default:return null}}function Zf(e,t){if(on)return e==="compositionend"||!Gl&&Uu(e,t)?(e=Mu(),Jr=Ul=St=null,on=!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 Du&&t.locale!=="ko"?null:t.data;default:return null}}var ep={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ep[e.type]:t==="textarea"}function Vu(e,t,n,r){wu(r),t=ho(t,"onChange"),0<t.length&&(n=new Hl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,cr=null;function tp(e){nc(e,0)}function Oo(e){var t=an(e);if(gu(t))return e}function np(e,t){if(e==="change")return t}var Gu=!1;if(at){var ai;if(at){var ui="oninput"in document;if(!ui){var Qs=document.createElement("div");Qs.setAttribute("oninput","return;"),ui=typeof Qs.oninput=="function"}ai=ui}else ai=!1;Gu=ai&&(!document.documentMode||9<document.documentMode)}function Ks(){qn&&(qn.detachEvent("onpropertychange",Qu),cr=qn=null)}function Qu(e){if(e.propertyName==="value"&&Oo(cr)){var t=[];Vu(t,cr,e,Il(e)),bu(tp,t)}}function rp(e,t,n){e==="focusin"?(Ks(),qn=t,cr=n,qn.attachEvent("onpropertychange",Qu)):e==="focusout"&&Ks()}function op(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oo(cr)}function ip(e,t){if(e==="click")return Oo(t)}function lp(e,t){if(e==="input"||e==="change")return Oo(t)}function sp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ye=typeof Object.is=="function"?Object.is:sp;function dr(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 o=n[r];if(!Ri.call(t,o)||!Ye(e[o],t[o]))return!1}return!0}function Ys(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xs(e,t){var n=Ys(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=Ys(n)}}function Ku(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ku(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yu(){for(var e=window,t=lo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lo(e.document)}return t}function Ql(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 ap(e){var t=Yu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ku(n.ownerDocument.documentElement,n)){if(r!==null&&Ql(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Xs(n,l);var s=Xs(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 up=at&&"documentMode"in document&&11>=document.documentMode,ln=null,Ki=null,Zn=null,Yi=!1;function Js(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yi||ln==null||ln!==lo(r)||(r=ln,"selectionStart"in r&&Ql(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}),Zn&&dr(Zn,r)||(Zn=r,r=ho(Ki,"onSelect"),0<r.length&&(t=new Hl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ln)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sn={animationend:Ir("Animation","AnimationEnd"),animationiteration:Ir("Animation","AnimationIteration"),animationstart:Ir("Animation","AnimationStart"),transitionend:Ir("Transition","TransitionEnd")},ci={},Xu={};at&&(Xu=document.createElement("div").style,"AnimationEvent"in window||(delete sn.animationend.animation,delete sn.animationiteration.animation,delete sn.animationstart.animation),"TransitionEvent"in window||delete sn.transitionend.transition);function Io(e){if(ci[e])return ci[e];if(!sn[e])return e;var t=sn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xu)return ci[e]=t[n];return e}var Ju=Io("animationend"),qu=Io("animationiteration"),Zu=Io("animationstart"),ec=Io("transitionend"),tc=new Map,qs="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 At(e,t){tc.set(e,t),Zt(t,[e])}for(var di=0;di<qs.length;di++){var fi=qs[di],cp=fi.toLowerCase(),dp=fi[0].toUpperCase()+fi.slice(1);At(cp,"on"+dp)}At(Ju,"onAnimationEnd");At(qu,"onAnimationIteration");At(Zu,"onAnimationStart");At("dblclick","onDoubleClick");At("focusin","onFocus");At("focusout","onBlur");At(ec,"onTransitionEnd");wn("onMouseEnter",["mouseout","mouseover"]);wn("onMouseLeave",["mouseout","mouseover"]);wn("onPointerEnter",["pointerout","pointerover"]);wn("onPointerLeave",["pointerout","pointerover"]);Zt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kn="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(" "),fp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kn));function Zs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,cf(r,t,void 0,e),e.currentTarget=null}function nc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==l&&o.isPropagationStopped())break e;Zs(o,a,d),l=u}else for(s=0;s<r.length;s++){if(a=r[s],u=a.instance,d=a.currentTarget,a=a.listener,u!==l&&o.isPropagationStopped())break e;Zs(o,a,d),l=u}}}if(ao)throw e=Hi,ao=!1,Hi=null,e}function H(e,t){var n=t[el];n===void 0&&(n=t[el]=new Set);var r=e+"__bubble";n.has(r)||(rc(t,e,2,!1),n.add(r))}function pi(e,t,n){var r=0;t&&(r|=4),rc(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function fr(e){if(!e[Fr]){e[Fr]=!0,cu.forEach(function(n){n!=="selectionchange"&&(fp.has(n)||pi(n,!1,e),pi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,pi("selectionchange",!1,t))}}function rc(e,t,n,r){switch($u(t)){case 1:var o=bf;break;case 4:o=_f;break;default:o=Dl}n=o.bind(null,t,n,e),o=void 0,!Ui||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function hi(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Mt(a),s===null)return;if(u=s.tag,u===5||u===6){r=l=s;continue e}a=a.parentNode}}r=r.return}bu(function(){var d=l,h=Il(n),m=[];e:{var p=tc.get(e);if(p!==void 0){var S=Hl,g=e;switch(e){case"keypress":if(qr(n)===0)break e;case"keydown":case"keyup":S=Df;break;case"focusin":g="focus",S=si;break;case"focusout":g="blur",S=si;break;case"beforeblur":case"afterblur":S=si;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=Ms;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=Tf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Vf;break;case Ju:case qu:case Zu:S=Wf;break;case ec:S=Qf;break;case"scroll":S=Ef;break;case"wheel":S=Yf;break;case"copy":case"cut":case"paste":S=Nf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=Us}var v=(t&4)!==0,j=!v&&e==="scroll",f=v?p!==null?p+"Capture":null:p;v=[];for(var c=d,y;c!==null;){y=c;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,f!==null&&(w=lr(c,f),w!=null&&v.push(pr(c,w,y)))),j)break;c=c.return}0<v.length&&(p=new S(p,g,null,n,h),m.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",p&&n!==Mi&&(g=n.relatedTarget||n.fromElement)&&(Mt(g)||g[ut]))break e;if((S||p)&&(p=h.window===h?h:(p=h.ownerDocument)?p.defaultView||p.parentWindow:window,S?(g=n.relatedTarget||n.toElement,S=d,g=g?Mt(g):null,g!==null&&(j=en(g),g!==j||g.tag!==5&&g.tag!==6)&&(g=null)):(S=null,g=d),S!==g)){if(v=Ms,w="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(v=Us,w="onPointerLeave",f="onPointerEnter",c="pointer"),j=S==null?p:an(S),y=g==null?p:an(g),p=new v(w,c+"leave",S,n,h),p.target=j,p.relatedTarget=y,w=null,Mt(h)===d&&(v=new v(f,c+"enter",g,n,h),v.target=y,v.relatedTarget=j,w=v),j=w,S&&g)t:{for(v=S,f=g,c=0,y=v;y;y=tn(y))c++;for(y=0,w=f;w;w=tn(w))y++;for(;0<c-y;)v=tn(v),c--;for(;0<y-c;)f=tn(f),y--;for(;c--;){if(v===f||f!==null&&v===f.alternate)break t;v=tn(v),f=tn(f)}v=null}else v=null;S!==null&&ea(m,p,S,v,!1),g!==null&&j!==null&&ea(m,j,g,v,!0)}}e:{if(p=d?an(d):window,S=p.nodeName&&p.nodeName.toLowerCase(),S==="select"||S==="input"&&p.type==="file")var k=np;else if(Gs(p))if(Gu)k=lp;else{k=op;var z=rp}else(S=p.nodeName)&&S.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=ip);if(k&&(k=k(e,d))){Vu(m,k,n,h);break e}z&&z(e,p,d),e==="focusout"&&(z=p._wrapperState)&&z.controlled&&p.type==="number"&&Li(p,"number",p.value)}switch(z=d?an(d):window,e){case"focusin":(Gs(z)||z.contentEditable==="true")&&(ln=z,Ki=d,Zn=null);break;case"focusout":Zn=Ki=ln=null;break;case"mousedown":Yi=!0;break;case"contextmenu":case"mouseup":case"dragend":Yi=!1,Js(m,n,h);break;case"selectionchange":if(up)break;case"keydown":case"keyup":Js(m,n,h)}var _;if(Gl)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else on?Uu(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Du&&n.locale!=="ko"&&(on||R!=="onCompositionStart"?R==="onCompositionEnd"&&on&&(_=Mu()):(St=h,Ul="value"in St?St.value:St.textContent,on=!0)),z=ho(d,R),0<z.length&&(R=new Ds(R,e,null,n,h),m.push({event:R,listeners:z}),_?R.data=_:(_=Hu(n),_!==null&&(R.data=_)))),(_=Jf?qf(e,n):Zf(e,n))&&(d=ho(d,"onBeforeInput"),0<d.length&&(h=new Ds("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:d}),h.data=_))}nc(m,t)})}function pr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ho(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=lr(e,n),l!=null&&r.unshift(pr(e,l,o)),l=lr(e,t),l!=null&&r.push(pr(e,l,o))),e=e.return}return r}function tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ea(e,t,n,r,o){for(var l=t._reactName,s=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,o?(u=lr(n,l),u!=null&&s.unshift(pr(n,u,a))):o||(u=lr(n,l),u!=null&&s.push(pr(n,u,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var pp=/\r\n?/g,hp=/\u0000|\uFFFD/g;function ta(e){return(typeof e=="string"?e:""+e).replace(pp,`
38
+ `).replace(hp,"")}function $r(e,t,n){if(t=ta(t),ta(e)!==t&&n)throw Error(C(425))}function go(){}var Xi=null,Ji=null;function qi(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 Zi=typeof setTimeout=="function"?setTimeout:void 0,gp=typeof clearTimeout=="function"?clearTimeout:void 0,na=typeof Promise=="function"?Promise:void 0,mp=typeof queueMicrotask=="function"?queueMicrotask:typeof na<"u"?function(e){return na.resolve(null).then(e).catch(yp)}:Zi;function yp(e){setTimeout(function(){throw e})}function gi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ur(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ur(t)}function bt(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 ra(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 Pn=Math.random().toString(36).slice(2),Ze="__reactFiber$"+Pn,hr="__reactProps$"+Pn,ut="__reactContainer$"+Pn,el="__reactEvents$"+Pn,xp="__reactListeners$"+Pn,vp="__reactHandles$"+Pn;function Mt(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=ra(e);e!==null;){if(n=e[Ze])return n;e=ra(e)}return t}e=n,n=e.parentNode}return null}function _r(e){return e=e[Ze]||e[ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function an(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Fo(e){return e[hr]||null}var tl=[],un=-1;function Nt(e){return{current:e}}function V(e){0>un||(e.current=tl[un],tl[un]=null,un--)}function D(e,t){un++,tl[un]=e.current,e.current=t}var Wt={},xe=Nt(Wt),be=Nt(!1),Gt=Wt;function kn(e,t){var n=e.type.contextTypes;if(!n)return Wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _e(e){return e=e.childContextTypes,e!=null}function mo(){V(be),V(xe)}function oa(e,t,n){if(xe.current!==Wt)throw Error(C(168));D(xe,t),D(be,n)}function oc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(C(108,nf(e)||"Unknown",o));return ee({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wt,Gt=xe.current,D(xe,e),D(be,be.current),!0}function ia(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=oc(e,t,Gt),r.__reactInternalMemoizedMergedChildContext=e,V(be),V(xe),D(xe,e)):V(be),D(be,n)}var ot=null,$o=!1,mi=!1;function ic(e){ot===null?ot=[e]:ot.push(e)}function Sp(e){$o=!0,ic(e)}function Lt(){if(!mi&&ot!==null){mi=!0;var e=0,t=F;try{var n=ot;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ot=null,$o=!1}catch(o){throw ot!==null&&(ot=ot.slice(e+1)),Tu(Fl,Lt),o}finally{F=t,mi=!1}}return null}var cn=[],dn=0,xo=null,vo=0,Oe=[],Ie=0,Qt=null,it=1,lt="";function Ft(e,t){cn[dn++]=vo,cn[dn++]=xo,xo=e,vo=t}function lc(e,t,n){Oe[Ie++]=it,Oe[Ie++]=lt,Oe[Ie++]=Qt,Qt=e;var r=it;e=lt;var o=32-Qe(r)-1;r&=~(1<<o),n+=1;var l=32-Qe(t)+o;if(30<l){var s=o-o%5;l=(r&(1<<s)-1).toString(32),r>>=s,o-=s,it=1<<32-Qe(t)+o|n<<o|r,lt=l+e}else it=1<<l|n<<o|r,lt=e}function Kl(e){e.return!==null&&(Ft(e,1),lc(e,1,0))}function Yl(e){for(;e===xo;)xo=cn[--dn],cn[dn]=null,vo=cn[--dn],cn[dn]=null;for(;e===Qt;)Qt=Oe[--Ie],Oe[Ie]=null,lt=Oe[--Ie],Oe[Ie]=null,it=Oe[--Ie],Oe[Ie]=null}var We=null,Pe=null,Q=!1,Ge=null;function sc(e,t){var n=Fe(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 la(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,We=e,Pe=bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,We=e,Pe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qt!==null?{id:it,overflow:lt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,We=e,Pe=null,!0):!1;default:return!1}}function nl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rl(e){if(Q){var t=Pe;if(t){var n=t;if(!la(e,t)){if(nl(e))throw Error(C(418));t=bt(n.nextSibling);var r=We;t&&la(e,t)?sc(r,n):(e.flags=e.flags&-4097|2,Q=!1,We=e)}}else{if(nl(e))throw Error(C(418));e.flags=e.flags&-4097|2,Q=!1,We=e}}}function sa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;We=e}function Mr(e){if(e!==We)return!1;if(!Q)return sa(e),Q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qi(e.type,e.memoizedProps)),t&&(t=Pe)){if(nl(e))throw ac(),Error(C(418));for(;t;)sc(e,t),t=bt(t.nextSibling)}if(sa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Pe=bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Pe=null}}else Pe=We?bt(e.stateNode.nextSibling):null;return!0}function ac(){for(var e=Pe;e;)e=bt(e.nextSibling)}function Cn(){Pe=We=null,Q=!1}function Xl(e){Ge===null?Ge=[e]:Ge.push(e)}var jp=ft.ReactCurrentBatchConfig;function Dn(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(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(s){var a=o.refs;s===null?delete a[l]:a[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function Dr(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function aa(e){var t=e._init;return t(e._payload)}function uc(e){function t(f,c){if(e){var y=f.deletions;y===null?(f.deletions=[c],f.flags|=16):y.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function o(f,c){return f=Tt(f,c),f.index=0,f.sibling=null,f}function l(f,c,y){return f.index=y,e?(y=f.alternate,y!==null?(y=y.index,y<c?(f.flags|=2,c):y):(f.flags|=2,c)):(f.flags|=1048576,c)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,y,w){return c===null||c.tag!==6?(c=ki(y,f.mode,w),c.return=f,c):(c=o(c,y),c.return=f,c)}function u(f,c,y,w){var k=y.type;return k===rn?h(f,c,y.props.children,w,y.key):c!==null&&(c.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mt&&aa(k)===c.type)?(w=o(c,y.props),w.ref=Dn(f,c,y),w.return=f,w):(w=io(y.type,y.key,y.props,null,f.mode,w),w.ref=Dn(f,c,y),w.return=f,w)}function d(f,c,y,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==y.containerInfo||c.stateNode.implementation!==y.implementation?(c=Ci(y,f.mode,w),c.return=f,c):(c=o(c,y.children||[]),c.return=f,c)}function h(f,c,y,w,k){return c===null||c.tag!==7?(c=Vt(y,f.mode,w,k),c.return=f,c):(c=o(c,y),c.return=f,c)}function m(f,c,y){if(typeof c=="string"&&c!==""||typeof c=="number")return c=ki(""+c,f.mode,y),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Br:return y=io(c.type,c.key,c.props,null,f.mode,y),y.ref=Dn(f,null,c),y.return=f,y;case nn:return c=Ci(c,f.mode,y),c.return=f,c;case mt:var w=c._init;return m(f,w(c._payload),y)}if(Gn(c)||On(c))return c=Vt(c,f.mode,y,null),c.return=f,c;Dr(f,c)}return null}function p(f,c,y,w){var k=c!==null?c.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:a(f,c,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Br:return y.key===k?u(f,c,y,w):null;case nn:return y.key===k?d(f,c,y,w):null;case mt:return k=y._init,p(f,c,k(y._payload),w)}if(Gn(y)||On(y))return k!==null?null:h(f,c,y,w,null);Dr(f,y)}return null}function S(f,c,y,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return f=f.get(y)||null,a(c,f,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Br:return f=f.get(w.key===null?y:w.key)||null,u(c,f,w,k);case nn:return f=f.get(w.key===null?y:w.key)||null,d(c,f,w,k);case mt:var z=w._init;return S(f,c,y,z(w._payload),k)}if(Gn(w)||On(w))return f=f.get(y)||null,h(c,f,w,k,null);Dr(c,w)}return null}function g(f,c,y,w){for(var k=null,z=null,_=c,R=c=0,I=null;_!==null&&R<y.length;R++){_.index>R?(I=_,_=null):I=_.sibling;var B=p(f,_,y[R],w);if(B===null){_===null&&(_=I);break}e&&_&&B.alternate===null&&t(f,_),c=l(B,c,R),z===null?k=B:z.sibling=B,z=B,_=I}if(R===y.length)return n(f,_),Q&&Ft(f,R),k;if(_===null){for(;R<y.length;R++)_=m(f,y[R],w),_!==null&&(c=l(_,c,R),z===null?k=_:z.sibling=_,z=_);return Q&&Ft(f,R),k}for(_=r(f,_);R<y.length;R++)I=S(_,f,R,y[R],w),I!==null&&(e&&I.alternate!==null&&_.delete(I.key===null?R:I.key),c=l(I,c,R),z===null?k=I:z.sibling=I,z=I);return e&&_.forEach(function(ne){return t(f,ne)}),Q&&Ft(f,R),k}function v(f,c,y,w){var k=On(y);if(typeof k!="function")throw Error(C(150));if(y=k.call(y),y==null)throw Error(C(151));for(var z=k=null,_=c,R=c=0,I=null,B=y.next();_!==null&&!B.done;R++,B=y.next()){_.index>R?(I=_,_=null):I=_.sibling;var ne=p(f,_,B.value,w);if(ne===null){_===null&&(_=I);break}e&&_&&ne.alternate===null&&t(f,_),c=l(ne,c,R),z===null?k=ne:z.sibling=ne,z=ne,_=I}if(B.done)return n(f,_),Q&&Ft(f,R),k;if(_===null){for(;!B.done;R++,B=y.next())B=m(f,B.value,w),B!==null&&(c=l(B,c,R),z===null?k=B:z.sibling=B,z=B);return Q&&Ft(f,R),k}for(_=r(f,_);!B.done;R++,B=y.next())B=S(_,f,R,B.value,w),B!==null&&(e&&B.alternate!==null&&_.delete(B.key===null?R:B.key),c=l(B,c,R),z===null?k=B:z.sibling=B,z=B);return e&&_.forEach(function(Re){return t(f,Re)}),Q&&Ft(f,R),k}function j(f,c,y,w){if(typeof y=="object"&&y!==null&&y.type===rn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Br:e:{for(var k=y.key,z=c;z!==null;){if(z.key===k){if(k=y.type,k===rn){if(z.tag===7){n(f,z.sibling),c=o(z,y.props.children),c.return=f,f=c;break e}}else if(z.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mt&&aa(k)===z.type){n(f,z.sibling),c=o(z,y.props),c.ref=Dn(f,z,y),c.return=f,f=c;break e}n(f,z);break}else t(f,z);z=z.sibling}y.type===rn?(c=Vt(y.props.children,f.mode,w,y.key),c.return=f,f=c):(w=io(y.type,y.key,y.props,null,f.mode,w),w.ref=Dn(f,c,y),w.return=f,f=w)}return s(f);case nn:e:{for(z=y.key;c!==null;){if(c.key===z)if(c.tag===4&&c.stateNode.containerInfo===y.containerInfo&&c.stateNode.implementation===y.implementation){n(f,c.sibling),c=o(c,y.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Ci(y,f.mode,w),c.return=f,f=c}return s(f);case mt:return z=y._init,j(f,c,z(y._payload),w)}if(Gn(y))return g(f,c,y,w);if(On(y))return v(f,c,y,w);Dr(f,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,c!==null&&c.tag===6?(n(f,c.sibling),c=o(c,y),c.return=f,f=c):(n(f,c),c=ki(y,f.mode,w),c.return=f,f=c),s(f)):n(f,c)}return j}var zn=uc(!0),cc=uc(!1),So=Nt(null),jo=null,fn=null,Jl=null;function ql(){Jl=fn=jo=null}function Zl(e){var t=So.current;V(So),e._currentValue=t}function ol(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){jo=e,Jl=fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ze=!0),e.firstContext=null)}function Me(e){var t=e._currentValue;if(Jl!==e)if(e={context:e,memoizedValue:t,next:null},fn===null){if(jo===null)throw Error(C(308));fn=e,jo.dependencies={lanes:0,firstContext:e}}else fn=fn.next=e;return t}var Dt=null;function es(e){Dt===null?Dt=[e]:Dt.push(e)}function dc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,es(t)):(n.next=o.next,o.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 ts(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fc(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 st(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ct(e,n)}return o=r.interleaved,o===null?(t.next=t,es(r)):(t.next=o.next,o.next=t),r.interleaved=t,ct(e,n)}function Zr(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,$l(e,n)}}function ua(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 wo(e,t,n,r){var o=e.updateQueue;yt=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,d=u.next;u.next=null,s===null?l=d:s.next=d,s=u;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==s&&(a===null?h.firstBaseUpdate=d:a.next=d,h.lastBaseUpdate=u))}if(l!==null){var m=o.baseState;s=0,h=d=u=null,a=l;do{var p=a.lane,S=a.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:S,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(p=t,S=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){m=g.call(S,m,p);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,p=typeof g=="function"?g.call(S,m,p):g,p==null)break e;m=ee({},m,p);break e;case 2:yt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else S={eventTime:S,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(d=h=S,u=m):h=h.next=S,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(h===null&&(u=m),o.baseState=u,o.firstBaseUpdate=d,o.lastBaseUpdate=h,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Yt|=s,e.lanes=s,e.memoizedState=m}}function ca(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(C(191,o));o.call(r)}}}var Er={},tt=Nt(Er),gr=Nt(Er),mr=Nt(Er);function Ut(e){if(e===Er)throw Error(C(174));return e}function ns(e,t){switch(D(mr,t),D(gr,e),D(tt,Er),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ii(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ii(t,e)}V(tt),D(tt,t)}function bn(){V(tt),V(gr),V(mr)}function pc(e){Ut(mr.current);var t=Ut(tt.current),n=Ii(t,e.type);t!==n&&(D(gr,e),D(tt,n))}function rs(e){gr.current===e&&(V(tt),V(gr))}var X=Nt(0);function ko(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 yi=[];function os(){for(var e=0;e<yi.length;e++)yi[e]._workInProgressVersionPrimary=null;yi.length=0}var eo=ft.ReactCurrentDispatcher,xi=ft.ReactCurrentBatchConfig,Kt=0,q=null,le=null,ue=null,Co=!1,er=!1,yr=0,wp=0;function he(){throw Error(C(321))}function is(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 ls(e,t,n,r,o,l){if(Kt=l,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eo.current=e===null||e.memoizedState===null?bp:_p,e=n(r,o),er){l=0;do{if(er=!1,yr=0,25<=l)throw Error(C(301));l+=1,ue=le=null,t.updateQueue=null,eo.current=Ep,e=n(r,o)}while(er)}if(eo.current=zo,t=le!==null&&le.next!==null,Kt=0,ue=le=q=null,Co=!1,t)throw Error(C(300));return e}function ss(){var e=yr!==0;return yr=0,e}function qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?q.memoizedState=ue=e:ue=ue.next=e,ue}function De(){if(le===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=le.next;var t=ue===null?q.memoizedState:ue.next;if(t!==null)ue=t,le=e;else{if(e===null)throw Error(C(310));le=e,e={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},ue===null?q.memoizedState=ue=e:ue=ue.next=e}return ue}function xr(e,t){return typeof t=="function"?t(e):t}function vi(e){var t=De(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=le,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var s=o.next;o.next=l.next,l.next=s}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var a=s=null,u=null,d=l;do{var h=d.lane;if((Kt&h)===h)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var m={lane:h,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=m,s=r):u=u.next=m,q.lanes|=h,Yt|=h}d=d.next}while(d!==null&&d!==l);u===null?s=r:u.next=a,Ye(r,t.memoizedState)||(ze=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,q.lanes|=l,Yt|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Si(e){var t=De(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do l=e(l,s.action),s=s.next;while(s!==o);Ye(l,t.memoizedState)||(ze=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function hc(){}function gc(e,t){var n=q,r=De(),o=t(),l=!Ye(r.memoizedState,o);if(l&&(r.memoizedState=o,ze=!0),r=r.queue,as(xc.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,vr(9,yc.bind(null,n,r,o,t),void 0,null),ce===null)throw Error(C(349));Kt&30||mc(n,t,o)}return o}function mc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yc(e,t,n,r){t.value=n,t.getSnapshot=r,vc(t)&&Sc(e)}function xc(e,t,n){return n(function(){vc(t)&&Sc(e)})}function vc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ye(e,n)}catch{return!0}}function Sc(e){var t=ct(e,1);t!==null&&Ke(t,e,1,-1)}function da(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:xr,lastRenderedState:e},t.queue=e,e=e.dispatch=zp.bind(null,q,e),[t.memoizedState,e]}function vr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.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 jc(){return De().memoizedState}function to(e,t,n,r){var o=qe();q.flags|=e,o.memoizedState=vr(1|t,n,void 0,r===void 0?null:r)}function Mo(e,t,n,r){var o=De();r=r===void 0?null:r;var l=void 0;if(le!==null){var s=le.memoizedState;if(l=s.destroy,r!==null&&is(r,s.deps)){o.memoizedState=vr(t,n,l,r);return}}q.flags|=e,o.memoizedState=vr(1|t,n,l,r)}function fa(e,t){return to(8390656,8,e,t)}function as(e,t){return Mo(2048,8,e,t)}function wc(e,t){return Mo(4,2,e,t)}function kc(e,t){return Mo(4,4,e,t)}function Cc(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 zc(e,t,n){return n=n!=null?n.concat([e]):null,Mo(4,4,Cc.bind(null,t,e),n)}function us(){}function bc(e,t){var n=De();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&is(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _c(e,t){var n=De();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&is(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ec(e,t,n){return Kt&21?(Ye(n,t)||(n=Wu(),q.lanes|=n,Yt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ze=!0),e.memoizedState=n)}function kp(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=xi.transition;xi.transition={};try{e(!1),t()}finally{F=n,xi.transition=r}}function Rc(){return De().memoizedState}function Cp(e,t,n){var r=Rt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tc(e))Bc(t,n);else if(n=dc(e,t,n,r),n!==null){var o=je();Ke(n,e,r,o),Pc(n,t,r)}}function zp(e,t,n){var r=Rt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tc(e))Bc(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,a=l(s,n);if(o.hasEagerState=!0,o.eagerState=a,Ye(a,s)){var u=t.interleaved;u===null?(o.next=o,es(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=dc(e,t,o,r),n!==null&&(o=je(),Ke(n,e,r,o),Pc(n,t,r))}}function Tc(e){var t=e.alternate;return e===q||t!==null&&t===q}function Bc(e,t){er=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$l(e,n)}}var zo={readContext:Me,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},bp={readContext:Me,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:fa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,to(4194308,4,Cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return to(4194308,4,e,t)},useInsertionEffect:function(e,t){return to(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=Cp.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:da,useDebugValue:us,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=da(!1),t=e[0];return e=kp.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=qe();if(Q){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ce===null)throw Error(C(349));Kt&30||mc(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,fa(xc.bind(null,r,l,e),[e]),r.flags|=2048,vr(9,yc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=qe(),t=ce.identifierPrefix;if(Q){var n=lt,r=it;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_p={readContext:Me,useCallback:bc,useContext:Me,useEffect:as,useImperativeHandle:zc,useInsertionEffect:wc,useLayoutEffect:kc,useMemo:_c,useReducer:vi,useRef:jc,useState:function(){return vi(xr)},useDebugValue:us,useDeferredValue:function(e){var t=De();return Ec(t,le.memoizedState,e)},useTransition:function(){var e=vi(xr)[0],t=De().memoizedState;return[e,t]},useMutableSource:hc,useSyncExternalStore:gc,useId:Rc,unstable_isNewReconciler:!1},Ep={readContext:Me,useCallback:bc,useContext:Me,useEffect:as,useImperativeHandle:zc,useInsertionEffect:wc,useLayoutEffect:kc,useMemo:_c,useReducer:Si,useRef:jc,useState:function(){return Si(xr)},useDebugValue:us,useDeferredValue:function(e){var t=De();return le===null?t.memoizedState=e:Ec(t,le.memoizedState,e)},useTransition:function(){var e=Si(xr)[0],t=De().memoizedState;return[e,t]},useMutableSource:hc,useSyncExternalStore:gc,useId:Rc,unstable_isNewReconciler:!1};function He(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function il(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Do={isMounted:function(e){return(e=e._reactInternals)?en(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=je(),o=Rt(e),l=st(r,o);l.payload=t,n!=null&&(l.callback=n),t=_t(e,l,o),t!==null&&(Ke(t,e,o,r),Zr(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=je(),o=Rt(e),l=st(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=_t(e,l,o),t!==null&&(Ke(t,e,o,r),Zr(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=je(),r=Rt(e),o=st(n,r);o.tag=2,t!=null&&(o.callback=t),t=_t(e,o,r),t!==null&&(Ke(t,e,r,n),Zr(t,e,r))}};function pa(e,t,n,r,o,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!dr(n,r)||!dr(o,l):!0}function Wc(e,t,n){var r=!1,o=Wt,l=t.contextType;return typeof l=="object"&&l!==null?l=Me(l):(o=_e(t)?Gt:xe.current,r=t.contextTypes,l=(r=r!=null)?kn(e,o):Wt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Do,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function ha(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&&Do.enqueueReplaceState(t,t.state,null)}function ll(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ts(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=Me(l):(l=_e(t)?Gt:xe.current,o.context=kn(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(il(e,t,l,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Do.enqueueReplaceState(o,o.state,null),wo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function _n(e,t){try{var n="",r=t;do n+=tf(r),r=r.return;while(r);var o=n}catch(l){o=`
39
+ Error generating stack: `+l.message+`
40
+ `+l.stack}return{value:e,source:t,stack:o,digest:null}}function ji(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function sl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rp=typeof WeakMap=="function"?WeakMap:Map;function Ac(e,t,n){n=st(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_o||(_o=!0,yl=r),sl(e,t)},n}function Nc(e,t,n){n=st(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){sl(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){sl(e,t),typeof r!="function"&&(Et===null?Et=new Set([this]):Et.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ga(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rp;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Up.bind(null,e,t,n),t.then(e,e))}function ma(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 ya(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=st(-1,1),t.tag=2,_t(n,t,1))),n.lanes|=1),e)}var Tp=ft.ReactCurrentOwner,ze=!1;function Se(e,t,n,r){t.child=e===null?cc(t,null,n,r):zn(t,e.child,n,r)}function xa(e,t,n,r,o){n=n.render;var l=t.ref;return vn(t,o),r=ls(e,t,n,r,l,o),n=ss(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dt(e,t,o)):(Q&&n&&Kl(t),t.flags|=1,Se(e,t,r,o),t.child)}function va(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!ys(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Lc(e,t,l,r,o)):(e=io(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:dr,n(s,r)&&e.ref===t.ref)return dt(e,t,o)}return t.flags|=1,e=Tt(l,r),e.ref=t.ref,e.return=t,t.child=e}function Lc(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(dr(l,r)&&e.ref===t.ref)if(ze=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(ze=!0);else return t.lanes=e.lanes,dt(e,t,o)}return al(e,t,n,r,o)}function Oc(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},D(hn,Be),Be|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,D(hn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,D(hn,Be),Be|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,D(hn,Be),Be|=r;return Se(e,t,o,n),t.child}function Ic(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function al(e,t,n,r,o){var l=_e(n)?Gt:xe.current;return l=kn(t,l),vn(t,o),n=ls(e,t,n,r,l,o),r=ss(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dt(e,t,o)):(Q&&r&&Kl(t),t.flags|=1,Se(e,t,n,o),t.child)}function Sa(e,t,n,r,o){if(_e(n)){var l=!0;yo(t)}else l=!1;if(vn(t,o),t.stateNode===null)no(e,t),Wc(t,n,r),ll(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=Me(d):(d=_e(n)?Gt:xe.current,d=kn(t,d));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==d)&&ha(t,s,r,d),yt=!1;var p=t.memoizedState;s.state=p,wo(t,r,s,o),u=t.memoizedState,a!==r||p!==u||be.current||yt?(typeof h=="function"&&(il(t,n,h,r),u=t.memoizedState),(a=yt||pa(t,n,a,r,p,u,d))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,fc(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:He(t.type,a),s.props=d,m=t.pendingProps,p=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Me(u):(u=_e(n)?Gt:xe.current,u=kn(t,u));var S=n.getDerivedStateFromProps;(h=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||p!==u)&&ha(t,s,r,u),yt=!1,p=t.memoizedState,s.state=p,wo(t,r,s,o);var g=t.memoizedState;a!==m||p!==g||be.current||yt?(typeof S=="function"&&(il(t,n,S,r),g=t.memoizedState),(d=yt||pa(t,n,d,r,p,g,u)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=u,r=d):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ul(e,t,n,r,l,o)}function ul(e,t,n,r,o,l){Ic(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&ia(t,n,!1),dt(e,t,l);r=t.stateNode,Tp.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=zn(t,e.child,null,l),t.child=zn(t,null,a,l)):Se(e,t,a,l),t.memoizedState=r.state,o&&ia(t,n,!0),t.child}function Fc(e){var t=e.stateNode;t.pendingContext?oa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oa(e,t.context,!1),ns(e,t.containerInfo)}function ja(e,t,n,r,o){return Cn(),Xl(o),t.flags|=256,Se(e,t,n,r),t.child}var cl={dehydrated:null,treeContext:null,retryLane:0};function dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function $c(e,t,n){var r=t.pendingProps,o=X.current,l=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),D(X,o&1),e===null)return rl(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):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Vo(s,r,0,null),e=Vt(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=dl(n),t.memoizedState=cl,e):cs(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Bp(e,t,s,r,a,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Tt(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?l=Tt(a,l):(l=Vt(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?dl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=cl,r}return l=e.child,e=l.sibling,r=Tt(l,{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 cs(e,t){return t=Vo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ur(e,t,n,r){return r!==null&&Xl(r),zn(t,e.child,null,n),e=cs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bp(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=ji(Error(C(422))),Ur(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Vo({mode:"visible",children:r.children},o,0,null),l=Vt(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&zn(t,e.child,null,s),t.child.memoizedState=dl(s),t.memoizedState=cl,l);if(!(t.mode&1))return Ur(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(C(419)),r=ji(l,r,void 0),Ur(e,t,s,r)}if(a=(s&e.childLanes)!==0,ze||a){if(r=ce,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,ct(e,o),Ke(r,e,o,-1))}return ms(),r=ji(Error(C(421))),Ur(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Hp.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,Pe=bt(o.nextSibling),We=t,Q=!0,Ge=null,e!==null&&(Oe[Ie++]=it,Oe[Ie++]=lt,Oe[Ie++]=Qt,it=e.id,lt=e.overflow,Qt=t),t=cs(t,r.children),t.flags|=4096,t)}function wa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ol(e.return,t,n)}function wi(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function Mc(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Se(e,t,r.children,n),r=X.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&&wa(e,n,t);else if(e.tag===19)wa(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(D(X,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ko(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),wi(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ko(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}wi(t,!0,n,null,l);break;case"together":wi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function no(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),Yt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=Tt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pp(e,t,n){switch(t.tag){case 3:Fc(t),Cn();break;case 5:pc(t);break;case 1:_e(t.type)&&yo(t);break;case 4:ns(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;D(So,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(D(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?$c(e,t,n):(D(X,X.current&1),e=dt(e,t,n),e!==null?e.sibling:null);D(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Mc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),D(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,Oc(e,t,n)}return dt(e,t,n)}var Dc,fl,Uc,Hc;Dc=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}};fl=function(){};Uc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ut(tt.current);var l=null;switch(n){case"input":o=Ai(e,o),r=Ai(e,r),l=[];break;case"select":o=ee({},o,{value:void 0}),r=ee({},r,{value:void 0}),l=[];break;case"textarea":o=Oi(e,o),r=Oi(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=go)}Fi(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(or.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var u=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(l||(l=[]),l.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(or.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&H("scroll",e),l||a===u||(l=[])):(l=l||[]).push(d,u))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}};Hc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Un(e,t){if(!Q)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 ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wp(e,t,n){var r=t.pendingProps;switch(Yl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return _e(t.type)&&mo(),ge(t),null;case 3:return r=t.stateNode,bn(),V(be),V(xe),os(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Mr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ge!==null&&(Sl(Ge),Ge=null))),fl(e,t),ge(t),null;case 5:rs(t);var o=Ut(mr.current);if(n=t.type,e!==null&&t.stateNode!=null)Uc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ge(t),null}if(e=Ut(tt.current),Mr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ze]=t,r[hr]=l,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(o=0;o<Kn.length;o++)H(Kn[o],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":Bs(r,l),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},H("invalid",r);break;case"textarea":Ws(r,l),H("invalid",r)}Fi(n,l),o=null;for(var s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&$r(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&$r(r.textContent,a,e),o=["children",""+a]):or.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&H("scroll",r)}switch(n){case"input":Pr(r),Ps(r,l,!0);break;case"textarea":Pr(r),As(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=go)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ze]=t,e[hr]=r,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(s=$i(n,r),n){case"dialog":H("cancel",e),H("close",e),o=r;break;case"iframe":case"object":case"embed":H("load",e),o=r;break;case"video":case"audio":for(o=0;o<Kn.length;o++)H(Kn[o],e);o=r;break;case"source":H("error",e),o=r;break;case"img":case"image":case"link":H("error",e),H("load",e),o=r;break;case"details":H("toggle",e),o=r;break;case"input":Bs(e,r),o=Ai(e,r),H("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ee({},r,{value:void 0}),H("invalid",e);break;case"textarea":Ws(e,r),o=Oi(e,r),H("invalid",e);break;default:o=r}Fi(n,o),a=o;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?ju(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&vu(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&ir(e,u):typeof u=="number"&&ir(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(or.hasOwnProperty(l)?u!=null&&l==="onScroll"&&H("scroll",e):u!=null&&Al(e,l,u,s))}switch(n){case"input":Pr(e),Ps(e,r,!1);break;case"textarea":Pr(e),As(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Pt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?gn(e,!!r.multiple,l,!1):r.defaultValue!=null&&gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=go)}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 ge(t),null;case 6:if(e&&t.stateNode!=null)Hc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=Ut(mr.current),Ut(tt.current),Mr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ze]=t,(l=r.nodeValue!==n)&&(e=We,e!==null))switch(e.tag){case 3:$r(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$r(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ze]=t,t.stateNode=r}return ge(t),null;case 13:if(V(X),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&Pe!==null&&t.mode&1&&!(t.flags&128))ac(),Cn(),t.flags|=98560,l=!1;else if(l=Mr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(C(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(C(317));l[Ze]=t}else Cn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ge(t),l=!1}else Ge!==null&&(Sl(Ge),Ge=null),l=!0;if(!l)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||X.current&1?se===0&&(se=3):ms())),t.updateQueue!==null&&(t.flags|=4),ge(t),null);case 4:return bn(),fl(e,t),e===null&&fr(t.stateNode.containerInfo),ge(t),null;case 10:return Zl(t.type._context),ge(t),null;case 17:return _e(t.type)&&mo(),ge(t),null;case 19:if(V(X),l=t.memoizedState,l===null)return ge(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Un(l,!1);else{if(se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ko(e),s!==null){for(t.flags|=128,Un(l,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,s=l.alternate,s===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return D(X,X.current&1|2),t.child}e=e.sibling}l.tail!==null&&re()>En&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304)}else{if(!r)if(e=ko(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Un(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Q)return ge(t),null}else 2*re()-l.renderingStartTime>En&&n!==1073741824&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=re(),t.sibling=null,n=X.current,D(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return gs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Be&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Ap(e,t){switch(Yl(t),t.tag){case 1:return _e(t.type)&&mo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bn(),V(be),V(xe),os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rs(t),null;case 13:if(V(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(X),null;case 4:return bn(),null;case 10:return Zl(t.type._context),null;case 22:case 23:return gs(),null;case 24:return null;default:return null}}var Hr=!1,me=!1,Np=typeof WeakSet=="function"?WeakSet:Set,E=null;function pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function pl(e,t,n){try{n()}catch(r){te(e,t,r)}}var ka=!1;function Lp(e,t){if(Xi=fo,e=Yu(),Ql(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,d=0,h=0,m=e,p=null;t:for(;;){for(var S;m!==n||o!==0&&m.nodeType!==3||(a=s+o),m!==l||r!==0&&m.nodeType!==3||(u=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(S=m.firstChild)!==null;)p=m,m=S;for(;;){if(m===e)break t;if(p===n&&++d===o&&(a=s),p===l&&++h===r&&(u=s),(S=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=S}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ji={focusedElem:e,selectionRange:n},fo=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,j=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?v:He(t.type,v),j);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){te(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return g=ka,ka=!1,g}function tr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&pl(t,n,l)}o=o.next}while(o!==r)}}function Uo(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 hl(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 Vc(e){var t=e.alternate;t!==null&&(e.alternate=null,Vc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ze],delete t[hr],delete t[el],delete t[xp],delete t[vp])),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 Gc(e){return e.tag===5||e.tag===3||e.tag===4}function Ca(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(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 gl(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=go));else if(r!==4&&(e=e.child,e!==null))for(gl(e,t,n),e=e.sibling;e!==null;)gl(e,t,n),e=e.sibling}function ml(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(ml(e,t,n),e=e.sibling;e!==null;)ml(e,t,n),e=e.sibling}var de=null,Ve=!1;function gt(e,t,n){for(n=n.child;n!==null;)Qc(e,t,n),n=n.sibling}function Qc(e,t,n){if(et&&typeof et.onCommitFiberUnmount=="function")try{et.onCommitFiberUnmount(No,n)}catch{}switch(n.tag){case 5:me||pn(n,t);case 6:var r=de,o=Ve;de=null,gt(e,t,n),de=r,Ve=o,de!==null&&(Ve?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(Ve?(e=de,n=n.stateNode,e.nodeType===8?gi(e.parentNode,n):e.nodeType===1&&gi(e,n),ur(e)):gi(de,n.stateNode));break;case 4:r=de,o=Ve,de=n.stateNode.containerInfo,Ve=!0,gt(e,t,n),de=r,Ve=o;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&pl(n,t,s),o=o.next}while(o!==r)}gt(e,t,n);break;case 1:if(!me&&(pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){te(n,t,a)}gt(e,t,n);break;case 21:gt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,gt(e,t,n),me=r):gt(e,t,n);break;default:gt(e,t,n)}}function za(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Np),t.forEach(function(r){var o=Vp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:de=a.stateNode,Ve=!1;break e;case 3:de=a.stateNode.containerInfo,Ve=!0;break e;case 4:de=a.stateNode.containerInfo,Ve=!0;break e}a=a.return}if(de===null)throw Error(C(160));Qc(l,s,o),de=null,Ve=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(d){te(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Kc(t,e),t=t.sibling}function Kc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ue(t,e),Je(e),r&4){try{tr(3,e,e.return),Uo(3,e)}catch(v){te(e,e.return,v)}try{tr(5,e,e.return)}catch(v){te(e,e.return,v)}}break;case 1:Ue(t,e),Je(e),r&512&&n!==null&&pn(n,n.return);break;case 5:if(Ue(t,e),Je(e),r&512&&n!==null&&pn(n,n.return),e.flags&32){var o=e.stateNode;try{ir(o,"")}catch(v){te(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&mu(o,l),$i(a,s);var d=$i(a,l);for(s=0;s<u.length;s+=2){var h=u[s],m=u[s+1];h==="style"?ju(o,m):h==="dangerouslySetInnerHTML"?vu(o,m):h==="children"?ir(o,m):Al(o,h,m,d)}switch(a){case"input":Ni(o,l);break;case"textarea":yu(o,l);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var S=l.value;S!=null?gn(o,!!l.multiple,S,!1):p!==!!l.multiple&&(l.defaultValue!=null?gn(o,!!l.multiple,l.defaultValue,!0):gn(o,!!l.multiple,l.multiple?[]:"",!1))}o[hr]=l}catch(v){te(e,e.return,v)}}break;case 6:if(Ue(t,e),Je(e),r&4){if(e.stateNode===null)throw Error(C(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(v){te(e,e.return,v)}}break;case 3:if(Ue(t,e),Je(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ur(t.containerInfo)}catch(v){te(e,e.return,v)}break;case 4:Ue(t,e),Je(e);break;case 13:Ue(t,e),Je(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(ps=re())),r&4&&za(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(me=(d=me)||h,Ue(t,e),me=d):Ue(t,e),Je(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!h&&e.mode&1)for(E=e,h=e.child;h!==null;){for(m=E=h;E!==null;){switch(p=E,S=p.child,p.tag){case 0:case 11:case 14:case 15:tr(4,p,p.return);break;case 1:pn(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){te(r,n,v)}}break;case 5:pn(p,p.return);break;case 22:if(p.memoizedState!==null){_a(m);continue}}S!==null?(S.return=p,E=S):_a(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{o=m.stateNode,d?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=m.stateNode,u=m.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Su("display",s))}catch(v){te(e,e.return,v)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(v){te(e,e.return,v)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ue(t,e),Je(e),r&4&&za(e);break;case 21:break;default:Ue(t,e),Je(e)}}function Je(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gc(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ir(o,""),r.flags&=-33);var l=Ca(e);ml(e,l,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Ca(e);gl(e,a,s);break;default:throw Error(C(161))}}catch(u){te(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Op(e,t,n){E=e,Yc(e)}function Yc(e,t,n){for(var r=(e.mode&1)!==0;E!==null;){var o=E,l=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Hr;if(!s){var a=o.alternate,u=a!==null&&a.memoizedState!==null||me;a=Hr;var d=me;if(Hr=s,(me=u)&&!d)for(E=o;E!==null;)s=E,u=s.child,s.tag===22&&s.memoizedState!==null?Ea(o):u!==null?(u.return=s,E=u):Ea(o);for(;l!==null;)E=l,Yc(l),l=l.sibling;E=o,Hr=a,me=d}ba(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,E=l):ba(e)}}function ba(e){for(;E!==null;){var t=E;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:me||Uo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!me)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:He(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&ca(t,l,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ca(t,s,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 d=t.alternate;if(d!==null){var h=d.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&ur(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}me||t.flags&512&&hl(t)}catch(p){te(t,t.return,p)}}if(t===e){E=null;break}if(n=t.sibling,n!==null){n.return=t.return,E=n;break}E=t.return}}function _a(e){for(;E!==null;){var t=E;if(t===e){E=null;break}var n=t.sibling;if(n!==null){n.return=t.return,E=n;break}E=t.return}}function Ea(e){for(;E!==null;){var t=E;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Uo(4,t)}catch(u){te(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(u){te(t,o,u)}}var l=t.return;try{hl(t)}catch(u){te(t,l,u)}break;case 5:var s=t.return;try{hl(t)}catch(u){te(t,s,u)}}}catch(u){te(t,t.return,u)}if(t===e){E=null;break}var a=t.sibling;if(a!==null){a.return=t.return,E=a;break}E=t.return}}var Ip=Math.ceil,bo=ft.ReactCurrentDispatcher,ds=ft.ReactCurrentOwner,$e=ft.ReactCurrentBatchConfig,O=0,ce=null,ie=null,fe=0,Be=0,hn=Nt(0),se=0,Sr=null,Yt=0,Ho=0,fs=0,nr=null,Ce=null,ps=0,En=1/0,rt=null,_o=!1,yl=null,Et=null,Vr=!1,jt=null,Eo=0,rr=0,xl=null,ro=-1,oo=0;function je(){return O&6?re():ro!==-1?ro:ro=re()}function Rt(e){return e.mode&1?O&2&&fe!==0?fe&-fe:jp.transition!==null?(oo===0&&(oo=Wu()),oo):(e=F,e!==0||(e=window.event,e=e===void 0?16:$u(e.type)),e):1}function Ke(e,t,n,r){if(50<rr)throw rr=0,xl=null,Error(C(185));zr(e,n,r),(!(O&2)||e!==ce)&&(e===ce&&(!(O&2)&&(Ho|=n),se===4&&vt(e,fe)),Ee(e,r),n===1&&O===0&&!(t.mode&1)&&(En=re()+500,$o&&Lt()))}function Ee(e,t){var n=e.callbackNode;jf(e,t);var r=co(e,e===ce?fe:0);if(r===0)n!==null&&Os(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Os(n),t===1)e.tag===0?Sp(Ra.bind(null,e)):ic(Ra.bind(null,e)),mp(function(){!(O&6)&&Lt()}),n=null;else{switch(Au(r)){case 1:n=Fl;break;case 4:n=Bu;break;case 16:n=uo;break;case 536870912:n=Pu;break;default:n=uo}n=rd(n,Xc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Xc(e,t){if(ro=-1,oo=0,O&6)throw Error(C(327));var n=e.callbackNode;if(Sn()&&e.callbackNode!==n)return null;var r=co(e,e===ce?fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ro(e,r);else{t=r;var o=O;O|=2;var l=qc();(ce!==e||fe!==t)&&(rt=null,En=re()+500,Ht(e,t));do try{Mp();break}catch(a){Jc(e,a)}while(!0);ql(),bo.current=l,O=o,ie!==null?t=0:(ce=null,fe=0,t=se)}if(t!==0){if(t===2&&(o=Vi(e),o!==0&&(r=o,t=vl(e,o))),t===1)throw n=Sr,Ht(e,0),vt(e,r),Ee(e,re()),n;if(t===6)vt(e,r);else{if(o=e.current.alternate,!(r&30)&&!Fp(o)&&(t=Ro(e,r),t===2&&(l=Vi(e),l!==0&&(r=l,t=vl(e,l))),t===1))throw n=Sr,Ht(e,0),vt(e,r),Ee(e,re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:$t(e,Ce,rt);break;case 3:if(vt(e,r),(r&130023424)===r&&(t=ps+500-re(),10<t)){if(co(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){je(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Zi($t.bind(null,e,Ce,rt),t);break}$t(e,Ce,rt);break;case 4:if(vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Qe(r);l=1<<s,s=t[s],s>o&&(o=s),r&=~l}if(r=o,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ip(r/1960))-r,10<r){e.timeoutHandle=Zi($t.bind(null,e,Ce,rt),r);break}$t(e,Ce,rt);break;case 5:$t(e,Ce,rt);break;default:throw Error(C(329))}}}return Ee(e,re()),e.callbackNode===n?Xc.bind(null,e):null}function vl(e,t){var n=nr;return e.current.memoizedState.isDehydrated&&(Ht(e,t).flags|=256),e=Ro(e,t),e!==2&&(t=Ce,Ce=n,t!==null&&Sl(t)),e}function Sl(e){Ce===null?Ce=e:Ce.push.apply(Ce,e)}function Fp(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 o=n[r],l=o.getSnapshot;o=o.value;try{if(!Ye(l(),o))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&=~fs,t&=~Ho,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qe(t),r=1<<n;e[n]=-1,t&=~r}}function Ra(e){if(O&6)throw Error(C(327));Sn();var t=co(e,0);if(!(t&1))return Ee(e,re()),null;var n=Ro(e,t);if(e.tag!==0&&n===2){var r=Vi(e);r!==0&&(t=r,n=vl(e,r))}if(n===1)throw n=Sr,Ht(e,0),vt(e,t),Ee(e,re()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$t(e,Ce,rt),Ee(e,re()),null}function hs(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(En=re()+500,$o&&Lt())}}function Xt(e){jt!==null&&jt.tag===0&&!(O&6)&&Sn();var t=O;O|=1;var n=$e.transition,r=F;try{if($e.transition=null,F=1,e)return e()}finally{F=r,$e.transition=n,O=t,!(O&6)&&Lt()}}function gs(){Be=hn.current,V(hn)}function Ht(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gp(n)),ie!==null)for(n=ie.return;n!==null;){var r=n;switch(Yl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&mo();break;case 3:bn(),V(be),V(xe),os();break;case 5:rs(r);break;case 4:bn();break;case 13:V(X);break;case 19:V(X);break;case 10:Zl(r.type._context);break;case 22:case 23:gs()}n=n.return}if(ce=e,ie=e=Tt(e.current,null),fe=Be=t,se=0,Sr=null,fs=Ho=Yt=0,Ce=nr=null,Dt!==null){for(t=0;t<Dt.length;t++)if(n=Dt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=o,r.next=s}n.pending=r}Dt=null}return e}function Jc(e,t){do{var n=ie;try{if(ql(),eo.current=zo,Co){for(var r=q.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Co=!1}if(Kt=0,ue=le=q=null,er=!1,yr=0,ds.current=null,n===null||n.return===null){se=1,Sr=t,ie=null;break}e:{var l=e,s=n.return,a=n,u=t;if(t=fe,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,h=a,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var S=ma(s);if(S!==null){S.flags&=-257,ya(S,s,a,l,t),S.mode&1&&ga(l,d,t),t=S,u=d;var g=t.updateQueue;if(g===null){var v=new Set;v.add(u),t.updateQueue=v}else g.add(u);break e}else{if(!(t&1)){ga(l,d,t),ms();break e}u=Error(C(426))}}else if(Q&&a.mode&1){var j=ma(s);if(j!==null){!(j.flags&65536)&&(j.flags|=256),ya(j,s,a,l,t),Xl(_n(u,a));break e}}l=u=_n(u,a),se!==4&&(se=2),nr===null?nr=[l]:nr.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=Ac(l,u,t);ua(l,f);break e;case 1:a=u;var c=l.type,y=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Et===null||!Et.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t;var w=Nc(l,a,t);ua(l,w);break e}}l=l.return}while(l!==null)}ed(n)}catch(k){t=k,ie===n&&n!==null&&(ie=n=n.return);continue}break}while(!0)}function qc(){var e=bo.current;return bo.current=zo,e===null?zo:e}function ms(){(se===0||se===3||se===2)&&(se=4),ce===null||!(Yt&268435455)&&!(Ho&268435455)||vt(ce,fe)}function Ro(e,t){var n=O;O|=2;var r=qc();(ce!==e||fe!==t)&&(rt=null,Ht(e,t));do try{$p();break}catch(o){Jc(e,o)}while(!0);if(ql(),O=n,bo.current=r,ie!==null)throw Error(C(261));return ce=null,fe=0,se}function $p(){for(;ie!==null;)Zc(ie)}function Mp(){for(;ie!==null&&!ff();)Zc(ie)}function Zc(e){var t=nd(e.alternate,e,Be);e.memoizedProps=e.pendingProps,t===null?ed(e):ie=t,ds.current=null}function ed(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ap(n,t),n!==null){n.flags&=32767,ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{se=6,ie=null;return}}else if(n=Wp(n,t,Be),n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);se===0&&(se=5)}function $t(e,t,n){var r=F,o=$e.transition;try{$e.transition=null,F=1,Dp(e,t,n,r)}finally{$e.transition=o,F=r}return null}function Dp(e,t,n,r){do Sn();while(jt!==null);if(O&6)throw Error(C(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(wf(e,l),e===ce&&(ie=ce=null,fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vr||(Vr=!0,rd(uo,function(){return Sn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=$e.transition,$e.transition=null;var s=F;F=1;var a=O;O|=4,ds.current=null,Lp(e,n),Kc(n,e),ap(Ji),fo=!!Xi,Ji=Xi=null,e.current=n,Op(n),pf(),O=a,F=s,$e.transition=l}else e.current=n;if(Vr&&(Vr=!1,jt=e,Eo=o),l=e.pendingLanes,l===0&&(Et=null),mf(n.stateNode),Ee(e,re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(_o)throw _o=!1,e=yl,yl=null,e;return Eo&1&&e.tag!==0&&Sn(),l=e.pendingLanes,l&1?e===xl?rr++:(rr=0,xl=e):rr=0,Lt(),null}function Sn(){if(jt!==null){var e=Au(Eo),t=$e.transition,n=F;try{if($e.transition=null,F=16>e?16:e,jt===null)var r=!1;else{if(e=jt,jt=null,Eo=0,O&6)throw Error(C(331));var o=O;for(O|=4,E=e.current;E!==null;){var l=E,s=l.child;if(E.flags&16){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(E=d;E!==null;){var h=E;switch(h.tag){case 0:case 11:case 15:tr(8,h,l)}var m=h.child;if(m!==null)m.return=h,E=m;else for(;E!==null;){h=E;var p=h.sibling,S=h.return;if(Vc(h),h===d){E=null;break}if(p!==null){p.return=S,E=p;break}E=S}}}var g=l.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var j=v.sibling;v.sibling=null,v=j}while(v!==null)}}E=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,E=s;else e:for(;E!==null;){if(l=E,l.flags&2048)switch(l.tag){case 0:case 11:case 15:tr(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,E=f;break e}E=l.return}}var c=e.current;for(E=c;E!==null;){s=E;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,E=y;else e:for(s=c;E!==null;){if(a=E,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Uo(9,a)}}catch(k){te(a,a.return,k)}if(a===s){E=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,E=w;break e}E=a.return}}if(O=o,Lt(),et&&typeof et.onPostCommitFiberRoot=="function")try{et.onPostCommitFiberRoot(No,e)}catch{}r=!0}return r}finally{F=n,$e.transition=t}}return!1}function Ta(e,t,n){t=_n(n,t),t=Ac(e,t,1),e=_t(e,t,1),t=je(),e!==null&&(zr(e,1,t),Ee(e,t))}function te(e,t,n){if(e.tag===3)Ta(e,e,n);else for(;t!==null;){if(t.tag===3){Ta(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=_n(n,e),e=Nc(t,e,1),t=_t(t,e,1),e=je(),t!==null&&(zr(t,1,e),Ee(t,e));break}}t=t.return}}function Up(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=je(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(fe&n)===n&&(se===4||se===3&&(fe&130023424)===fe&&500>re()-ps?Ht(e,0):fs|=n),Ee(e,t)}function td(e,t){t===0&&(e.mode&1?(t=Nr,Nr<<=1,!(Nr&130023424)&&(Nr=4194304)):t=1);var n=je();e=ct(e,t),e!==null&&(zr(e,t,n),Ee(e,n))}function Hp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),td(e,n)}function Vp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),td(e,n)}var nd;nd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,Pp(e,t,n);ze=!!(e.flags&131072)}else ze=!1,Q&&t.flags&1048576&&lc(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;no(e,t),e=t.pendingProps;var o=kn(t,xe.current);vn(t,n),o=ls(null,t,r,e,o,n);var l=ss();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(l=!0,yo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ts(t),o.updater=Do,t.stateNode=o,o._reactInternals=t,ll(t,r,e,n),t=ul(null,t,r,!0,l,n)):(t.tag=0,Q&&l&&Kl(t),Se(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(no(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Qp(r),e=He(r,e),o){case 0:t=al(null,t,r,e,n);break e;case 1:t=Sa(null,t,r,e,n);break e;case 11:t=xa(null,t,r,e,n);break e;case 14:t=va(null,t,r,He(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),al(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Sa(e,t,r,o,n);case 3:e:{if(Fc(t),e===null)throw Error(C(387));r=t.pendingProps,l=t.memoizedState,o=l.element,fc(e,t),wo(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=_n(Error(C(423)),t),t=ja(e,t,r,n,o);break e}else if(r!==o){o=_n(Error(C(424)),t),t=ja(e,t,r,n,o);break e}else for(Pe=bt(t.stateNode.containerInfo.firstChild),We=t,Q=!0,Ge=null,n=cc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cn(),r===o){t=dt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return pc(t),e===null&&rl(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,qi(r,o)?s=null:l!==null&&qi(r,l)&&(t.flags|=32),Ic(e,t),Se(e,t,s,n),t.child;case 6:return e===null&&rl(t),null;case 13:return $c(e,t,n);case 4:return ns(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),xa(e,t,r,o,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,D(So,r._currentValue),r._currentValue=s,l!==null)if(Ye(l.value,s)){if(l.children===o.children&&!be.current){t=dt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=st(-1,n&-n),u.tag=2;var d=l.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?u.next=u:(u.next=h.next,h.next=u),d.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),ol(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(C(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ol(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}Se(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vn(t,n),o=Me(o),r=r(o),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,o=He(r,t.pendingProps),o=He(r.type,o),va(e,t,r,o,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),no(e,t),t.tag=1,_e(r)?(e=!0,yo(t)):e=!1,vn(t,n),Wc(t,r,o),ll(t,r,o,n),ul(null,t,r,!0,e,n);case 19:return Mc(e,t,n);case 22:return Oc(e,t,n)}throw Error(C(156,t.tag))};function rd(e,t){return Tu(e,t)}function Gp(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 Fe(e,t,n,r){return new Gp(e,t,n,r)}function ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qp(e){if(typeof e=="function")return ys(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ll)return 11;if(e===Ol)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=Fe(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 io(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")ys(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case rn:return Vt(n.children,o,l,t);case Nl:s=8,o|=8;break;case Ti:return e=Fe(12,n,t,o|2),e.elementType=Ti,e.lanes=l,e;case Bi:return e=Fe(13,n,t,o),e.elementType=Bi,e.lanes=l,e;case Pi:return e=Fe(19,n,t,o),e.elementType=Pi,e.lanes=l,e;case pu:return Vo(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case du:s=10;break e;case fu:s=9;break e;case Ll:s=11;break e;case Ol:s=14;break e;case mt:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Fe(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Vt(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Vo(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=pu,e.lanes=n,e.stateNode={isHidden:!1},e}function ki(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Ci(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kp(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function xs(e,t,n,r,o,l,s,a,u){return e=new Kp(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Fe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ts(l),e}function Yp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:nn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function od(e){if(!e)return Wt;e=e._reactInternals;e:{if(en(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_e(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(_e(n))return oc(e,n,t)}return t}function id(e,t,n,r,o,l,s,a,u){return e=xs(n,r,!0,e,o,l,s,a,u),e.context=od(null),n=e.current,r=je(),o=Rt(n),l=st(r,o),l.callback=t??null,_t(n,l,o),e.current.lanes=o,zr(e,o,r),Ee(e,r),e}function Go(e,t,n,r){var o=t.current,l=je(),s=Rt(o);return n=od(n),t.context===null?t.context=n:t.pendingContext=n,t=st(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=_t(o,t,s),e!==null&&(Ke(e,o,s,l),Zr(e,o,s)),s}function To(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 Ba(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vs(e,t){Ba(e,t),(e=e.alternate)&&Ba(e,t)}function Xp(){return null}var ld=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ss(e){this._internalRoot=e}Qo.prototype.render=Ss.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Go(e,t,null,null)};Qo.prototype.unmount=Ss.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xt(function(){Go(null,e,null,null)}),t[ut]=null}};function Qo(e){this._internalRoot=e}Qo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ou();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xt.length&&t!==0&&t<xt[n].priority;n++);xt.splice(n,0,e),n===0&&Fu(e)}};function js(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ko(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pa(){}function Jp(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var d=To(s);l.call(d)}}var s=id(t,r,e,0,null,!1,!1,"",Pa);return e._reactRootContainer=s,e[ut]=s.current,fr(e.nodeType===8?e.parentNode:e),Xt(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var d=To(u);a.call(d)}}var u=xs(e,0,!1,null,null,!1,!1,"",Pa);return e._reactRootContainer=u,e[ut]=u.current,fr(e.nodeType===8?e.parentNode:e),Xt(function(){Go(t,u,n,r)}),u}function Yo(e,t,n,r,o){var l=n._reactRootContainer;if(l){var s=l;if(typeof o=="function"){var a=o;o=function(){var u=To(s);a.call(u)}}Go(t,s,e,o)}else s=Jp(n,t,e,o,r);return To(s)}Nu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Qn(t.pendingLanes);n!==0&&($l(t,n|1),Ee(t,re()),!(O&6)&&(En=re()+500,Lt()))}break;case 13:Xt(function(){var r=ct(e,1);if(r!==null){var o=je();Ke(r,e,1,o)}}),vs(e,1)}};Ml=function(e){if(e.tag===13){var t=ct(e,134217728);if(t!==null){var n=je();Ke(t,e,134217728,n)}vs(e,134217728)}};Lu=function(e){if(e.tag===13){var t=Rt(e),n=ct(e,t);if(n!==null){var r=je();Ke(n,e,t,r)}vs(e,t)}};Ou=function(){return F};Iu=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};Di=function(e,t,n){switch(t){case"input":if(Ni(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 o=Fo(r);if(!o)throw Error(C(90));gu(r),Ni(r,o)}}}break;case"textarea":yu(e,n);break;case"select":t=n.value,t!=null&&gn(e,!!n.multiple,t,!1)}};Cu=hs;zu=Xt;var qp={usingClientEntryPoint:!1,Events:[_r,an,Fo,wu,ku,hs]},Hn={findFiberByHostInstance:Mt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zp={bundleType:Hn.bundleType,version:Hn.version,rendererPackageName:Hn.rendererPackageName,rendererConfig:Hn.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=Eu(e),e===null?null:e.stateNode},findFiberByHostInstance:Hn.findFiberByHostInstance||Xp,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 Gr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gr.isDisabled&&Gr.supportsFiber)try{No=Gr.inject(Zp),et=Gr}catch{}}Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qp;Ne.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!js(t))throw Error(C(200));return Yp(e,t,null,n)};Ne.createRoot=function(e,t){if(!js(e))throw Error(C(299));var n=!1,r="",o=ld;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=xs(e,1,!1,null,null,n,!1,r,o),e[ut]=t.current,fr(e.nodeType===8?e.parentNode:e),new Ss(t)};Ne.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Eu(t),e=e===null?null:e.stateNode,e};Ne.flushSync=function(e){return Xt(e)};Ne.hydrate=function(e,t,n){if(!Ko(t))throw Error(C(200));return Yo(null,e,t,!0,n)};Ne.hydrateRoot=function(e,t,n){if(!js(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",s=ld;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=id(t,null,e,1,n??null,o,!1,l,s),e[ut]=t.current,fr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qo(t)};Ne.render=function(e,t,n){if(!Ko(t))throw Error(C(200));return Yo(null,e,t,!1,n)};Ne.unmountComponentAtNode=function(e){if(!Ko(e))throw Error(C(40));return e._reactRootContainer?(Xt(function(){Yo(null,null,e,!1,function(){e._reactRootContainer=null,e[ut]=null})}),!0):!1};Ne.unstable_batchedUpdates=hs;Ne.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ko(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Yo(e,t,n,!1,r)};Ne.version="18.3.1-next-f1338f8080-20240426";function sd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sd)}catch(e){console.error(e)}}sd(),su.exports=Ne;var eh=su.exports,Wa=eh;Ei.createRoot=Wa.createRoot,Ei.hydrateRoot=Wa.hydrateRoot;/**
41
+ * @remix-run/router v1.23.2
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}var wt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wt||(wt={}));const Aa="popstate";function th(e){e===void 0&&(e={});function t(r,o){let{pathname:l,search:s,hash:a}=r.location;return jl("",{pathname:l,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Bo(o)}return rh(t,n,null,e)}function Z(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ws(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nh(){return Math.random().toString(36).substr(2,8)}function Na(e,t){return{usr:e.state,key:e.key,idx:t}}function jl(e,t,n,r){return n===void 0&&(n=null),jr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wn(t):t,{state:n,key:t&&t.key||r||nh()})}function Bo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Wn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rh(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,a=wt.Pop,u=null,d=h();d==null&&(d=0,s.replaceState(jr({},s.state,{idx:d}),""));function h(){return(s.state||{idx:null}).idx}function m(){a=wt.Pop;let j=h(),f=j==null?null:j-d;d=j,u&&u({action:a,location:v.location,delta:f})}function p(j,f){a=wt.Push;let c=jl(v.location,j,f);d=h()+1;let y=Na(c,d),w=v.createHref(c);try{s.pushState(y,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(w)}l&&u&&u({action:a,location:v.location,delta:1})}function S(j,f){a=wt.Replace;let c=jl(v.location,j,f);d=h();let y=Na(c,d),w=v.createHref(c);s.replaceState(y,"",w),l&&u&&u({action:a,location:v.location,delta:0})}function g(j){let f=o.location.origin!=="null"?o.location.origin:o.location.href,c=typeof j=="string"?j:Bo(j);return c=c.replace(/ $/,"%20"),Z(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let v={get action(){return a},get location(){return e(o,s)},listen(j){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Aa,m),u=j,()=>{o.removeEventListener(Aa,m),u=null}},createHref(j){return t(o,j)},createURL:g,encodeLocation(j){let f=g(j);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:p,replace:S,go(j){return s.go(j)}};return v}var La;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(La||(La={}));function oh(e,t,n){return n===void 0&&(n="/"),ih(e,t,n)}function ih(e,t,n,r){let o=typeof t=="string"?Wn(t):t,l=Rn(o.pathname||"/",n);if(l==null)return null;let s=ad(e);lh(s);let a=null;for(let u=0;a==null&&u<s.length;++u){let d=yh(l);a=gh(s[u],d)}return a}function ad(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(l,s,a)=>{let u={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};u.relativePath.startsWith("/")&&(Z(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=Bt([r,u.relativePath]),h=n.concat(u);l.children&&l.children.length>0&&(Z(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),ad(l.children,t,h,d)),!(l.path==null&&!l.index)&&t.push({path:d,score:ph(d,l.index),routesMeta:h})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))o(l,s);else for(let u of ud(l.path))o(l,s,u)}),t}function ud(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let s=ud(r.join("/")),a=[];return a.push(...s.map(u=>u===""?l:[l,u].join("/"))),o&&a.push(...s),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function lh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const sh=/^:[\w-]+$/,ah=3,uh=2,ch=1,dh=10,fh=-2,Oa=e=>e==="*";function ph(e,t){let n=e.split("/"),r=n.length;return n.some(Oa)&&(r+=fh),t&&(r+=uh),n.filter(o=>!Oa(o)).reduce((o,l)=>o+(sh.test(l)?ah:l===""?ch:dh),r)}function hh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function gh(e,t,n){let{routesMeta:r}=e,o={},l="/",s=[];for(let a=0;a<r.length;++a){let u=r[a],d=a===r.length-1,h=l==="/"?t:t.slice(l.length)||"/",m=wl({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},h),p=u.route;if(!m)return null;Object.assign(o,m.params),s.push({params:o,pathname:Bt([l,m.pathname]),pathnameBase:wh(Bt([l,m.pathnameBase])),route:p}),m.pathnameBase!=="/"&&(l=Bt([l,m.pathnameBase]))}return s}function wl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mh(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],s=l.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((d,h,m)=>{let{paramName:p,isOptional:S}=h;if(p==="*"){let v=a[m]||"";s=l.slice(0,l.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[m];return S&&!g?d[p]=void 0:d[p]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:s,pattern:e}}function mh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ws(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function yh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ws(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Rn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const xh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vh=e=>xh.test(e);function Sh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Wn(e):e,l;if(n)if(vh(n))l=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),ws(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?l=Ia(n.substring(1),"/"):l=Ia(n,t)}else l=t;return{pathname:l,search:kh(r),hash:Ch(o)}}function Ia(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function zi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function jh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ks(e,t){let n=jh(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cs(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Wn(e):(o=jr({},e),Z(!o.pathname||!o.pathname.includes("?"),zi("?","pathname","search",o)),Z(!o.pathname||!o.pathname.includes("#"),zi("#","pathname","hash",o)),Z(!o.search||!o.search.includes("#"),zi("#","search","hash",o)));let l=e===""||o.pathname==="",s=l?"/":o.pathname,a;if(s==null)a=n;else{let m=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),m-=1;o.pathname=p.join("/")}a=m>=0?t[m]:"/"}let u=Sh(o,a),d=s&&s!=="/"&&s.endsWith("/"),h=(l||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||h)&&(u.pathname+="/"),u}const Bt=e=>e.join("/").replace(/\/\/+/g,"/"),wh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ch=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function zh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cd=["post","put","patch","delete"];new Set(cd);const bh=["get",...cd];new Set(bh);/**
50
+ * React Router v6.30.3
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr.apply(this,arguments)}const Xo=x.createContext(null),dd=x.createContext(null),pt=x.createContext(null),Jo=x.createContext(null),Ot=x.createContext({outlet:null,matches:[],isDataRoute:!1}),fd=x.createContext(null);function _h(e,t){let{relative:n}=t===void 0?{}:t;An()||Z(!1);let{basename:r,navigator:o}=x.useContext(pt),{hash:l,pathname:s,search:a}=qo(e,{relative:n}),u=s;return r!=="/"&&(u=s==="/"?r:Bt([r,s])),o.createHref({pathname:u,search:a,hash:l})}function An(){return x.useContext(Jo)!=null}function Nn(){return An()||Z(!1),x.useContext(Jo).location}function pd(e){x.useContext(pt).static||x.useLayoutEffect(e)}function hd(){let{isDataRoute:e}=x.useContext(Ot);return e?$h():Eh()}function Eh(){An()||Z(!1);let e=x.useContext(Xo),{basename:t,future:n,navigator:r}=x.useContext(pt),{matches:o}=x.useContext(Ot),{pathname:l}=Nn(),s=JSON.stringify(ks(o,n.v7_relativeSplatPath)),a=x.useRef(!1);return pd(()=>{a.current=!0}),x.useCallback(function(d,h){if(h===void 0&&(h={}),!a.current)return;if(typeof d=="number"){r.go(d);return}let m=Cs(d,JSON.parse(s),l,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Bt([t,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[t,r,s,l,e])}function qo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(pt),{matches:o}=x.useContext(Ot),{pathname:l}=Nn(),s=JSON.stringify(ks(o,r.v7_relativeSplatPath));return x.useMemo(()=>Cs(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function Rh(e,t){return Th(e,t)}function Th(e,t,n,r){An()||Z(!1);let{navigator:o}=x.useContext(pt),{matches:l}=x.useContext(Ot),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let d=Nn(),h;if(t){var m;let j=typeof t=="string"?Wn(t):t;u==="/"||(m=j.pathname)!=null&&m.startsWith(u)||Z(!1),h=j}else h=d;let p=h.pathname||"/",S=p;if(u!=="/"){let j=u.replace(/^\//,"").split("/");S="/"+p.replace(/^\//,"").split("/").slice(j.length).join("/")}let g=oh(e,{pathname:S}),v=Nh(g&&g.map(j=>Object.assign({},j,{params:Object.assign({},a,j.params),pathname:Bt([u,o.encodeLocation?o.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?u:Bt([u,o.encodeLocation?o.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,n,r);return t&&v?x.createElement(Jo.Provider,{value:{location:wr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:wt.Pop}},v):v}function Bh(){let e=Fh(),t=zh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const Ph=x.createElement(Bh,null);class Wh extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(Ot.Provider,{value:this.props.routeContext},x.createElement(fd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ah(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(Xo);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Ot.Provider,{value:t},r)}function Nh(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let h=s.findIndex(m=>m.route.id&&(a==null?void 0:a[m.route.id])!==void 0);h>=0||Z(!1),s=s.slice(0,Math.min(s.length,h+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<s.length;h++){let m=s[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=h),m.route.id){let{loaderData:p,errors:S}=n,g=m.route.loader&&p[m.route.id]===void 0&&(!S||S[m.route.id]===void 0);if(m.route.lazy||g){u=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,m,p)=>{let S,g=!1,v=null,j=null;n&&(S=a&&m.route.id?a[m.route.id]:void 0,v=m.route.errorElement||Ph,u&&(d<0&&p===0?(Mh("route-fallback"),g=!0,j=null):d===p&&(g=!0,j=m.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,p+1)),c=()=>{let y;return S?y=v:g?y=j:m.route.Component?y=x.createElement(m.route.Component,null):m.route.element?y=m.route.element:y=h,x.createElement(Ah,{match:m,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:y})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?x.createElement(Wh,{location:n.location,revalidation:n.revalidation,component:v,error:S,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var gd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gd||{}),md=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(md||{});function Lh(e){let t=x.useContext(Xo);return t||Z(!1),t}function Oh(e){let t=x.useContext(dd);return t||Z(!1),t}function Ih(e){let t=x.useContext(Ot);return t||Z(!1),t}function yd(e){let t=Ih(),n=t.matches[t.matches.length-1];return n.route.id||Z(!1),n.route.id}function Fh(){var e;let t=x.useContext(fd),n=Oh(),r=yd();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $h(){let{router:e}=Lh(gd.UseNavigateStable),t=yd(md.UseNavigateStable),n=x.useRef(!1);return pd(()=>{n.current=!0}),x.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,wr({fromRouteId:t},l)))},[e,t])}const Fa={};function Mh(e,t,n){Fa[e]||(Fa[e]=!0)}function Dh(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function $a(e){let{to:t,replace:n,state:r,relative:o}=e;An()||Z(!1);let{future:l,static:s}=x.useContext(pt),{matches:a}=x.useContext(Ot),{pathname:u}=Nn(),d=hd(),h=Cs(t,ks(a,l.v7_relativeSplatPath),u,o==="path"),m=JSON.stringify(h);return x.useEffect(()=>d(JSON.parse(m),{replace:n,state:r,relative:o}),[d,m,o,n,r]),null}function nt(e){Z(!1)}function Uh(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wt.Pop,navigator:l,static:s=!1,future:a}=e;An()&&Z(!1);let u=t.replace(/^\/*/,"/"),d=x.useMemo(()=>({basename:u,navigator:l,static:s,future:wr({v7_relativeSplatPath:!1},a)}),[u,a,l,s]);typeof r=="string"&&(r=Wn(r));let{pathname:h="/",search:m="",hash:p="",state:S=null,key:g="default"}=r,v=x.useMemo(()=>{let j=Rn(h,u);return j==null?null:{location:{pathname:j,search:m,hash:p,state:S,key:g},navigationType:o}},[u,h,m,p,S,g,o]);return v==null?null:x.createElement(pt.Provider,{value:d},x.createElement(Jo.Provider,{children:n,value:v}))}function Hh(e){let{children:t,location:n}=e;return Rh(kl(t),n)}new Promise(()=>{});function kl(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let l=[...t,o];if(r.type===x.Fragment){n.push.apply(n,kl(r.props.children,l));return}r.type!==nt&&Z(!1),!r.props.index||!r.props.children||Z(!1);let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=kl(r.props.children,l)),n.push(s)}),n}/**
59
+ * React Router DOM v6.30.3
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Po.apply(this,arguments)}function xd(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l<r.length;l++)o=r[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Vh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Gh(e,t){return e.button===0&&(!t||t==="_self")&&!Vh(e)}const Qh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Kh=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Yh="6";try{window.__reactRouterVersion=Yh}catch{}const Xh=x.createContext({isTransitioning:!1}),Jh="startTransition",Ma=Dd[Jh];function qh(e){let{basename:t,children:n,future:r,window:o}=e,l=x.useRef();l.current==null&&(l.current=th({window:o,v5Compat:!0}));let s=l.current,[a,u]=x.useState({action:s.action,location:s.location}),{v7_startTransition:d}=r||{},h=x.useCallback(m=>{d&&Ma?Ma(()=>u(m)):u(m)},[u,d]);return x.useLayoutEffect(()=>s.listen(h),[s,h]),x.useEffect(()=>Dh(r),[r]),x.createElement(Uh,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const Zh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",eg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tg=x.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:s,state:a,target:u,to:d,preventScrollReset:h,viewTransition:m}=t,p=xd(t,Qh),{basename:S}=x.useContext(pt),g,v=!1;if(typeof d=="string"&&eg.test(d)&&(g=d,Zh))try{let y=new URL(window.location.href),w=d.startsWith("//")?new URL(y.protocol+d):new URL(d),k=Rn(w.pathname,S);w.origin===y.origin&&k!=null?d=k+w.search+w.hash:v=!0}catch{}let j=_h(d,{relative:o}),f=og(d,{replace:s,state:a,target:u,preventScrollReset:h,relative:o,viewTransition:m});function c(y){r&&r(y),y.defaultPrevented||f(y)}return x.createElement("a",Po({},p,{href:g||j,onClick:v||l?r:c,ref:n,target:u}))}),ng=x.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:l="",end:s=!1,style:a,to:u,viewTransition:d,children:h}=t,m=xd(t,Kh),p=qo(u,{relative:m.relative}),S=Nn(),g=x.useContext(dd),{navigator:v,basename:j}=x.useContext(pt),f=g!=null&&ig(p)&&d===!0,c=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,y=S.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(y=y.toLowerCase(),w=w?w.toLowerCase():null,c=c.toLowerCase()),w&&j&&(w=Rn(w,j)||w);const k=c!=="/"&&c.endsWith("/")?c.length-1:c.length;let z=y===c||!s&&y.startsWith(c)&&y.charAt(k)==="/",_=w!=null&&(w===c||!s&&w.startsWith(c)&&w.charAt(c.length)==="/"),R={isActive:z,isPending:_,isTransitioning:f},I=z?r:void 0,B;typeof l=="function"?B=l(R):B=[l,z?"active":null,_?"pending":null,f?"transitioning":null].filter(Boolean).join(" ");let ne=typeof a=="function"?a(R):a;return x.createElement(tg,Po({},m,{"aria-current":I,className:B,ref:n,style:ne,to:u,viewTransition:d}),typeof h=="function"?h(R):h)});var Cl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cl||(Cl={}));var Da;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Da||(Da={}));function rg(e){let t=x.useContext(Xo);return t||Z(!1),t}function og(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:s,viewTransition:a}=t===void 0?{}:t,u=hd(),d=Nn(),h=qo(e,{relative:s});return x.useCallback(m=>{if(Gh(m,n)){m.preventDefault();let p=r!==void 0?r:Bo(d)===Bo(h);u(e,{replace:p,state:o,preventScrollReset:l,relative:s,viewTransition:a})}},[d,u,h,r,o,n,e,l,s,a])}function ig(e,t){t===void 0&&(t={});let n=x.useContext(Xh);n==null&&Z(!1);let{basename:r}=rg(Cl.useViewTransitionState),o=qo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=Rn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Rn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return wl(o.pathname,s)!=null||wl(o.pathname,l)!=null}const J="/api";function Ln({tool:e,score:t,accentColor:n="#7c4dff"}){const[r,o]=x.useState(""),[l,s]=x.useState(!1);async function a(){if(!(!r.trim()||!r.includes("@"))){try{await fetch(`${J}/demos/email-capture`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r.trim(),tool:e,score:String(t)})})}catch{}s(!0)}}return l?i.jsxs("div",{style:{background:"#0d1f0d",border:"1px solid #1e4a1e",borderRadius:14,padding:20,textAlign:"center",marginTop:16},children:[i.jsx("p",{style:{color:"#4caf50",fontSize:14,fontWeight:700,margin:"0 0 4px"},children:"You're on the early access list."}),i.jsx("p",{style:{color:"#2e7d32",fontSize:11,margin:0},children:"We'll notify you when Pro launches — full reports, history & API access."})]}):i.jsxs("div",{style:{background:"#12121f",border:`1px solid ${n}33`,borderRadius:14,padding:"20px 20px 18px",marginTop:16},children:[i.jsxs("div",{style:{marginBottom:14},children:[i.jsx("p",{style:{fontSize:14,color:"#e0e0e0",fontWeight:700,margin:"0 0 4px"},children:"Get your full report — free"}),i.jsx("p",{style:{fontSize:11,color:"#666",margin:0,lineHeight:1.5},children:"Framework breakdown, all rewrites, and competitor edge. No spam. Unsubscribe anytime."})]}),i.jsxs("div",{style:{display:"flex",gap:8},children:[i.jsx("input",{type:"email",placeholder:"you@example.com",value:r,onChange:u=>o(u.target.value),onKeyDown:u=>{u.key==="Enter"&&a()},style:{flex:1,background:"#0d0d1a",border:"1px solid #1a1a2e",borderRadius:8,padding:"10px 12px",fontSize:13,color:"#e0e0e0",outline:"none",fontFamily:"inherit"}}),i.jsx("button",{onClick:a,disabled:!r.includes("@"),style:{padding:"10px 20px",background:r.includes("@")?n:"#333",color:"#fff",fontWeight:700,fontSize:12,border:"none",borderRadius:8,cursor:r.includes("@")?"pointer":"not-allowed",opacity:r.includes("@")?1:.5,whiteSpace:"nowrap",letterSpacing:.2},children:"Send My Report"})]})]})}function ht({shareText:e,accentColor:t}){const[n,r]=x.useState(!1);function o(){navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),2500)})}return i.jsx("button",{onClick:o,style:{padding:"6px 14px",fontSize:11,fontWeight:600,background:n?"#1a2e1a":t+"18",color:n?"#4caf50":t,border:`1px solid ${n?"#4caf5044":t+"44"}`,borderRadius:7,cursor:"pointer",transition:"all 0.2s",whiteSpace:"nowrap"},children:n?"Copied!":"Share Score"})}function It({children:e,accentColor:t,label:n="Full Report",priceLabel:r="Unlock Full Report — $9/mo",email:o,product:l="contentgrade_pro"}){const[s,a]=x.useState(null),[u,d]=x.useState(!1),[h,m]=x.useState(!1),[p,S]=x.useState(o??""),[g,v]=x.useState(!1);x.useEffect(()=>{const c=localStorage.getItem("bilko_pro_email");c&&!p&&S(c);const y=(o??c??"").trim().toLowerCase();y&&y.includes("@")?fetch(`${J}/stripe/subscription-status?email=${encodeURIComponent(y)}`).then(k=>k.json()).then(k=>{a(k.configured??!1),(l==="audiencedecoder_report"?k.audiencedecoder:k.active)&&d(!0)}).catch(()=>a(!1)):fetch(`${J}/stripe/subscription-status?email=noop@check.com`).then(k=>k.json()).then(k=>a(k.configured??!1)).catch(()=>a(!1)),new URLSearchParams(window.location.search).get("checkout")==="success"&&y&&setTimeout(()=>{fetch(`${J}/stripe/subscription-status?email=${encodeURIComponent(y)}`).then(k=>k.json()).then(k=>{(l==="audiencedecoder_report"?k.audiencedecoder:k.active)&&d(!0)}).catch(()=>{})},2e3)},[]);async function j(){const c=p.trim().toLowerCase();if(!(!c||!c.includes("@"))){m(!0);try{localStorage.setItem("bilko_pro_email",c);const w=await(await fetch(`${J}/stripe/create-checkout-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,priceType:l})})).json();w.url?window.location.href=w.url:a(!1)}catch{a(!1)}finally{m(!1)}}}async function f(){const c=p.trim().toLowerCase();if(!(!c||!c.includes("@"))){try{await fetch(`${J}/demos/headline-grader/unlock`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})})}catch{}v(!0)}}return u?i.jsx("div",{style:{marginBottom:16},children:e}):i.jsxs("div",{style:{position:"relative",marginBottom:16},children:[i.jsx("div",{style:{filter:"blur(5px)",pointerEvents:"none",userSelect:"none"},children:e}),i.jsxs("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:"rgba(10,10,20,0.72)",borderRadius:14,backdropFilter:"blur(2px)"},children:[i.jsx("div",{style:{fontSize:22,marginBottom:8},children:"🔒"}),i.jsx("div",{style:{fontSize:15,fontWeight:800,color:"#e0e0e0",marginBottom:4},children:n}),i.jsx("div",{style:{fontSize:11,color:"#666",marginBottom:18,textAlign:"center",maxWidth:220,lineHeight:1.5},children:"Framework breakdown, all rewrites & more"}),s?i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8,width:"100%",maxWidth:260,padding:"0 16px"},children:[i.jsx("input",{type:"email",placeholder:"your@email.com",value:p,onChange:c=>S(c.target.value),onKeyDown:c=>{c.key==="Enter"&&j()},style:{width:"100%",background:"#0d0d1a",border:"1px solid #2a2a3e",borderRadius:7,padding:"8px 12px",fontSize:12,color:"#e0e0e0",outline:"none",fontFamily:"inherit",boxSizing:"border-box"}}),i.jsx("button",{onClick:j,disabled:h||!p.includes("@"),style:{width:"100%",padding:"10px 24px",background:h?"#333":`linear-gradient(135deg, ${t}dd, ${t}99)`,color:"#fff",fontWeight:700,fontSize:13,borderRadius:8,border:`1px solid ${t}`,letterSpacing:.2,cursor:h?"wait":"pointer",opacity:p.includes("@")?1:.5},children:h?"Redirecting...":r})]}):g?i.jsx("div",{style:{fontSize:12,color:"#4caf50",textAlign:"center",maxWidth:220},children:"You're on the early access list. We'll notify you at launch."}):i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8,width:"100%",maxWidth:260,padding:"0 16px"},children:[i.jsx("div",{style:{fontSize:11,color:"#888",textAlign:"center"},children:"Coming soon — leave your email"}),i.jsxs("div",{style:{display:"flex",gap:6,width:"100%"},children:[i.jsx("input",{type:"email",placeholder:"your@email.com",value:p,onChange:c=>S(c.target.value),onKeyDown:c=>{c.key==="Enter"&&f()},style:{flex:1,background:"#0d0d1a",border:"1px solid #2a2a3e",borderRadius:7,padding:"8px 10px",fontSize:12,color:"#e0e0e0",outline:"none",fontFamily:"inherit"}}),i.jsx("button",{onClick:f,disabled:!p.includes("@"),style:{padding:"8px 12px",background:t+"33",color:t,fontWeight:700,fontSize:11,borderRadius:7,border:`1px solid ${t}44`,cursor:"pointer",opacity:p.includes("@")?1:.5,whiteSpace:"nowrap"},children:"Notify me"})]})]})]})]})}const lg=[{name:"Free",price:null,tagline:"Try it, no strings",features:["Score + grade (0–100)","Best rewrite suggestion","Top fix recommendation"],cta:"Current plan",highlight:!1},{name:"Pro",price:"$9/mo",tagline:"Everything, unlimited",features:["Full framework breakdown","All AI rewrites","A/B compare mode","Score history & tracking","HeadlineGrader + AdScorer + ThreadGrader"],cta:"Get Pro",highlight:!0}],sg=[{name:"Free",price:null,tagline:"Audience snapshot",features:["Audience archetypes (3)","Top archetype description","Content score"],cta:"Current plan",highlight:!1},{name:"Deep Report",price:"$49",tagline:"One-time · Full intelligence",features:["Full engagement model","Content pattern analysis","Growth opportunities","Content calendar","Creator comparison"],cta:"Unlock Report",highlight:!0}];function Jt({accentColor:e,product:t="contentgrade",email:n}){const r=t==="audiencedecoder"?sg:lg,o=t==="audiencedecoder"?"One-time unlock · No subscription":"Free forever · No credit card for trial",[l,s]=x.useState(null),[a,u]=x.useState(!1);x.useEffect(()=>{fetch(`${J}/stripe/subscription-status?email=noop@check.com`).then(h=>h.json()).then(h=>{s(t==="audiencedecoder"?h.audienceDecoderConfigured??!1:h.configured??!1)}).catch(()=>s(!1))},[t]);async function d(){const h=(n??"").trim().toLowerCase();if(!h||!h.includes("@"))return;u(!0),localStorage.setItem("bilko_pro_email",h);const m=t==="audiencedecoder"?"audiencedecoder_report":"contentgrade_pro";try{const S=await(await fetch(`${J}/stripe/create-checkout-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:h,priceType:m})})).json();S.url&&(window.location.href=S.url)}catch{}finally{u(!1)}}return i.jsxs("div",{style:{marginTop:24},children:[i.jsxs("div",{style:{textAlign:"center",marginBottom:16},children:[i.jsx("div",{style:{fontSize:10,color:"#444",textTransform:"uppercase",letterSpacing:2,fontFamily:"monospace",marginBottom:4},children:t==="audiencedecoder"?"AudienceDecoder":"ContentGrade Suite"}),i.jsx("div",{style:{fontSize:16,fontWeight:800,color:"#e0e0e0"},children:"Upgrade for the full picture"}),i.jsx("div",{style:{fontSize:11,color:"#555",marginTop:4},children:o})]}),i.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:10},children:r.map(h=>i.jsxs("div",{style:{background:h.highlight?"#12121f":"#0d0d1a",border:`1px solid ${h.highlight?e+"55":"#1a1a2e"}`,borderRadius:12,padding:16,position:"relative",boxShadow:h.highlight?`0 0 24px ${e}18`:"none"},children:[h.highlight&&i.jsx("div",{style:{position:"absolute",top:-10,left:"50%",transform:"translateX(-50%)",background:e,color:"#000",fontSize:9,fontWeight:800,padding:"2px 10px",borderRadius:8,letterSpacing:1,whiteSpace:"nowrap"},children:"MOST POPULAR"}),i.jsx("div",{style:{fontWeight:800,fontSize:13,color:"#e0e0e0",marginBottom:2},children:h.name}),i.jsx("div",{style:{fontSize:9,color:"#555",marginBottom:8},children:h.tagline}),i.jsx("div",{style:{fontSize:h.price?20:13,fontWeight:800,color:h.price?e:"#444",marginBottom:12},children:h.price??"Free forever"}),i.jsx("div",{style:{marginBottom:14},children:h.features.map(m=>i.jsxs("div",{style:{fontSize:10,color:h.highlight?"#aaa":"#666",marginBottom:5,display:"flex",alignItems:"flex-start",gap:5},children:[i.jsx("span",{style:{color:h.price?e:"#444",flexShrink:0},children:"✓"}),m]},m))}),i.jsx("button",{disabled:!h.highlight||!l||a||!n||!n.includes("@"),onClick:h.highlight&&l?d:void 0,style:{width:"100%",padding:"8px 0",fontSize:11,fontWeight:700,borderRadius:7,border:h.highlight?`1px solid ${e}66`:"none",background:h.highlight&&l?e+"33":h.highlight?e+"22":"#1a1a2e",color:h.highlight?e:"#444",cursor:h.highlight&&l&&(n!=null&&n.includes("@"))?"pointer":"default"},children:h.highlight&&!h.price?h.cta:h.highlight&&l===!1?"Coming soon":a?"Loading...":h.cta})]},h.name))}),l===!1&&i.jsx("div",{style:{textAlign:"center",marginTop:12,fontSize:10,color:"#333"},children:"Pro launches soon · Capture your email above to be first"})]})}function ag({accentColor:e="#7c4dff",product:t="contentgrade_pro",onEmailChange:n}){const[r,o]=x.useState(()=>localStorage.getItem("bilko_pro_email")??""),[l,s]=x.useState(!1),[a,u]=x.useState(null);x.useEffect(()=>{fetch(`${J}/stripe/subscription-status?email=noop@check.com`).then(p=>p.json()).then(p=>{u(t==="audiencedecoder_report"?p.audienceDecoderConfigured??!1:p.configured??!1)}).catch(()=>u(!1))},[t]);function d(p){o(p.target.value),n==null||n(p.target.value)}async function h(){const p=r.trim().toLowerCase();if(!(!p||!p.includes("@"))){s(!0),localStorage.setItem("bilko_pro_email",p);try{const g=await(await fetch(`${J}/stripe/create-checkout-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:p,priceType:t})})).json();g.url&&(window.location.href=g.url)}catch{}finally{s(!1)}}}const m=t==="audiencedecoder_report";return i.jsxs("div",{style:{background:"#12121f",border:`1px solid ${e}44`,borderRadius:14,padding:"24px 20px",marginTop:16,textAlign:"center"},children:[i.jsx("div",{style:{fontSize:28,marginBottom:8},children:"🚧"}),i.jsx("div",{style:{fontSize:15,fontWeight:800,color:"#e0e0e0",marginBottom:6},children:"Free daily limit reached"}),i.jsxs("div",{style:{fontSize:12,color:"#666",marginBottom:20,lineHeight:1.6},children:["You've used your 5 free analyses today."," ",m?"Purchase the full report ($49 one-time) for 100 analyses/day.":"Upgrade to Pro ($9/mo) for 100 analyses/day across all 6 tools."," ","Or come back tomorrow for 5 more free."]}),a?i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8,maxWidth:280,margin:"0 auto"},children:[i.jsx("input",{type:"email",placeholder:"your@email.com",value:r,onChange:d,onKeyDown:p=>{p.key==="Enter"&&h()},style:{width:"100%",background:"#0d0d1a",border:"1px solid #2a2a3e",borderRadius:7,padding:"10px 12px",fontSize:13,color:"#e0e0e0",outline:"none",fontFamily:"inherit",boxSizing:"border-box"}}),i.jsx("button",{onClick:h,disabled:l||!r.includes("@"),style:{width:"100%",padding:"11px 24px",background:l?"#333":`linear-gradient(135deg, ${e}dd, ${e}99)`,color:"#fff",fontWeight:700,fontSize:13,borderRadius:8,border:`1px solid ${e}`,letterSpacing:.2,cursor:l||!r.includes("@")?"not-allowed":"pointer",opacity:r.includes("@")?1:.5},children:l?"Redirecting...":m?"Unlock Report — $49":"Upgrade to Pro — $9/mo"}),i.jsx("div",{style:{fontSize:10,color:"#444",marginTop:2},children:m?"One-time payment · Full access":"Cancel anytime · Instant access"})]}):a===!1?i.jsx("div",{style:{fontSize:12,color:"#555"},children:"Come back tomorrow for 5 more free analyses."}):null]})}const vd={"A+":"#4caf50",A:"#4caf50","A-":"#4caf50","B+":"#4a90d9",B:"#4a90d9","B-":"#4a90d9","C+":"#ffd54f",C:"#ffd54f","C-":"#ffd54f",D:"#ff9800",F:"#ef5350"},jn={rule_of_one:"Rule of One",value_equation:"Value Equation",readability:"Readability",proof_promise_plan:"Proof+Promise+Plan"};function ug({score:e,max:t,label:n,feedback:r}){const o=Math.round(e/t*100),l=o>=80?"#4caf50":o>=60?"#4a90d9":o>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:20},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[i.jsx("span",{style:{fontSize:12,fontWeight:500,color:"#ccc"},children:n}),i.jsxs("span",{style:{fontSize:12,fontWeight:700,color:"#ddd"},children:[e,"/",t]})]}),i.jsx("div",{style:{height:6,background:"#1a1a2e",borderRadius:3,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:l,borderRadius:3,width:`${o}%`,transition:"width 0.7s ease"}})}),i.jsx("p",{style:{marginTop:6,fontSize:11,color:"#777",lineHeight:1.4},children:r})]})}function cg({headline:e,setHeadline:t}){const[n,r]=x.useState(!1),[o,l]=x.useState(null),[s,a]=x.useState(null),[u,d]=x.useState(!1),[h,m]=x.useState(""),[p,S]=x.useState(!1),[g,v]=x.useState(null),[j,f]=x.useState(null);x.useEffect(()=>{const T=localStorage.getItem("hg_email");T&&m(T)},[]);async function c(){if(h.includes("@")){S(!0),v(null);try{const T=await fetch(`${J}/demos/headline-grader/unlock`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:h.trim()})}),$=await T.json();if(!T.ok)throw new Error($.error||`HTTP ${T.status}`);localStorage.setItem("hg_email",h.trim()),d(!1),f($.remaining??5)}catch(T){v(T instanceof Error?T.message:"Unlock failed. Try again.")}finally{S(!1)}}}async function y(){var T;if(e.trim()){r(!0),l(null),a(null),d(!1);try{const $=await fetch(`${J}/demos/headline-grader`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({headline:e.trim()})}),ae=await $.json();if(ae.gated){d(!0);return}if(!$.ok)throw new Error(ae.error||`HTTP ${$.status}`);((T=ae.usage)==null?void 0:T.remaining)!==void 0&&f(ae.usage.remaining),l(ae)}catch($){a($ instanceof Error?$.message:"Scoring failed.")}finally{r(!1)}}}const w=o?vd[o.grade]??"#777":"#777",k=e.trim()?e.trim().split(/\s+/).length:0,z=e.replace(/\s/g,"").length,_=k>0?z/k:0,R=k>=6&&k<=12?"#4caf50":k>=3&&k<=18?"#ffd54f":"#ef5350",I=_>6?{label:"College+",color:"#ef5350"}:_>5?{label:"High School",color:"#ffd54f"}:{label:"Easy Read",color:"#4caf50"},B=e.slice(0,60),ne=e.length>60?e.slice(60):"",Re=e.toLowerCase().replace(/[^a-z0-9\s]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").slice(0,50).replace(/-$/,"")||"your-headline",Te=e.length<=49?"#1e8e3e":e.length<=58?"#f9ab00":"#d93025",W=e.split(" ").slice(0,3).join(" ")||"this topic";return i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{marginBottom:20},children:[i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"12px 14px",fontSize:15,color:"#e0e0e0",resize:"none",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},rows:3,placeholder:"Paste your headline, email subject, ad copy, or landing page title...",value:e,onChange:T=>t(T.target.value),onKeyDown:T=>{T.key==="Enter"&&(T.metaKey||T.ctrlKey)&&y()}}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},children:[i.jsx("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:e?i.jsxs(i.Fragment,{children:[i.jsxs("span",{style:{fontSize:10,fontFamily:"monospace",padding:"2px 7px",borderRadius:4,background:"#0d0d1a",border:`1px solid ${R}55`,color:R},children:[k,"w"]}),i.jsxs("span",{style:{fontSize:10,fontFamily:"monospace",padding:"2px 7px",borderRadius:4,background:"#0d0d1a",border:"1px solid #33333388",color:"#555"},children:[e.length,"c"]}),i.jsx("span",{style:{fontSize:10,fontFamily:"monospace",padding:"2px 7px",borderRadius:4,background:"#0d0d1a",border:`1px solid ${I.color}55`,color:I.color},children:I.label})]}):i.jsx("span",{style:{fontSize:10,color:"#444"},children:"Ctrl+Enter to grade"})}),i.jsx("button",{onClick:y,disabled:n||!e.trim(),style:{padding:"8px 20px",background:n||!e.trim()?"#333":"#7c4dff",color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:n||!e.trim()?"not-allowed":"pointer",opacity:n||!e.trim()?.5:1},children:n?"Grading...":"Grade It"})]})]}),e.length>0&&i.jsxs("div",{style:{marginBottom:20},children:[i.jsx("div",{style:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:8,fontFamily:"monospace"},children:"Google Search Preview"}),i.jsxs("div",{style:{background:"#fff",borderRadius:10,padding:"16px 20px",boxShadow:"0 1px 6px rgba(0,0,0,0.15)"},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[i.jsx("div",{style:{width:18,height:18,borderRadius:9,background:"#e8e8e8",flexShrink:0}}),i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:12,fontWeight:600,color:"#202124",lineHeight:1.3},children:"Example Site"}),i.jsxs("div",{style:{fontSize:11,color:"#006621",lineHeight:1.2},children:["https://example.com › blog › ",Re]})]})]}),i.jsxs("div",{style:{fontSize:19,color:"#1a0dab",lineHeight:1.3,marginBottom:4,cursor:"pointer",fontFamily:"arial, sans-serif"},children:[B,ne&&i.jsx("span",{style:{color:"#d93025"},children:ne})]}),i.jsxs("div",{style:{fontSize:13,color:"#545454",lineHeight:1.5,fontFamily:"arial, sans-serif"},children:["Discover how ",W.toLowerCase(),"... Click to read the full article and learn proven strategies that deliver measurable results fast."]}),i.jsxs("div",{style:{marginTop:8,display:"flex",alignItems:"center",gap:8},children:[i.jsxs("span",{style:{fontSize:11,fontFamily:"monospace",color:Te,fontWeight:700},children:[e.length,"/60 chars"]}),e.length>60&&i.jsxs("span",{style:{fontSize:10,color:"#d93025"},children:["— ",e.length-60," over Google's limit"]})]})]})]}),j!==null&&j>0&&!u&&i.jsxs("div",{style:{fontSize:10,color:"#555",textAlign:"right",marginBottom:8},children:[j," free ",j===1?"analysis":"analyses"," remaining today"]}),s&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:s}),u&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #7c4dff44",borderRadius:14,padding:28,textAlign:"center",marginBottom:16},children:[i.jsx("div",{style:{fontSize:36,marginBottom:12},children:"🔒"}),i.jsx("h2",{style:{fontSize:18,fontWeight:800,color:"#e0e0e0",margin:"0 0 6px"},children:"You've used all 5 free analyses today"}),i.jsx("p",{style:{fontSize:12,color:"#666",margin:"0 0 20px",lineHeight:1.5},children:"Enter your email to unlock 5 more — plus get early access to Pro when it launches."}),i.jsxs("div",{style:{display:"flex",gap:8,maxWidth:380,margin:"0 auto"},children:[i.jsx("input",{type:"email",placeholder:"you@example.com",value:h,onChange:T=>m(T.target.value),onKeyDown:T=>{T.key==="Enter"&&c()},style:{flex:1,background:"#0d0d1a",border:"1px solid #1a1a2e",borderRadius:8,padding:"10px 12px",fontSize:13,color:"#e0e0e0",outline:"none",fontFamily:"inherit"}}),i.jsx("button",{onClick:c,disabled:p||!h.includes("@"),style:{padding:"10px 20px",background:p||!h.includes("@")?"#333":"#7c4dff",color:"#fff",fontWeight:700,fontSize:12,border:"none",borderRadius:8,cursor:p||!h.includes("@")?"not-allowed":"pointer",opacity:p||!h.includes("@")?.5:1,whiteSpace:"nowrap"},children:p?"Unlocking...":"Unlock 5 More"})]}),g&&i.jsx("p",{style:{color:"#ef5350",fontSize:11,marginTop:10},children:g}),i.jsx(Jt,{accentColor:"#7c4dff"})]}),o&&i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:24,textAlign:"center",marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,marginBottom:10},children:[i.jsx("span",{style:{fontSize:56,fontWeight:900,color:"#fff"},children:o.total_score}),i.jsxs("div",{style:{textAlign:"left"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:900,color:w},children:o.grade}),i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"/ 100"})]})]}),i.jsx("p",{style:{color:"#aaa",fontSize:13,maxWidth:400,margin:"0 auto 12px"},children:o.diagnosis}),i.jsx(ht,{shareText:`My headline scored ${o.total_score}/100 on HeadlineGrader by Content Intelligence Stack. Try yours → https://contentintelligence.ai`,accentColor:"#7c4dff"})]}),o.rewrites&&o.rewrites.length>0&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,margin:0},children:"Best Rewrite"}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:600,letterSpacing:1},children:"FREE"})]}),i.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10,padding:10,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e"},children:[i.jsx("div",{style:{flexShrink:0,width:30,height:30,borderRadius:15,background:"#1a1040",border:"1px solid #3a2a6a",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,color:"#b39ddb"},children:o.rewrites[0].predicted_score}),i.jsxs("div",{children:[i.jsx("p",{style:{color:"#ddd",fontSize:13,fontWeight:500,margin:0},children:o.rewrites[0].text}),i.jsxs("p",{style:{fontSize:10,color:"#555",marginTop:3},children:["Optimized for: ",i.jsx("span",{style:{color:"#777"},children:jn[o.rewrites[0].optimized_for]??o.rewrites[0].optimized_for})]})]})]})]}),i.jsx(Ln,{tool:"headline-grader",score:o.total_score}),i.jsxs(It,{accentColor:"#7c4dff",label:"Full Framework Report",children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:16},children:"Framework Breakdown"}),Object.entries(o.framework_scores).map(([T,$])=>i.jsx(ug,{label:jn[T]??T,score:$.score,max:$.max,feedback:$.feedback},T))]}),o.rewrites&&o.rewrites.length>1&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"All AI Rewrites"}),o.rewrites.slice(1).map((T,$)=>i.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10,padding:10,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e",marginBottom:8},children:[i.jsx("div",{style:{flexShrink:0,width:30,height:30,borderRadius:15,background:"#1a1040",border:"1px solid #3a2a6a",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,color:"#b39ddb"},children:T.predicted_score}),i.jsxs("div",{children:[i.jsx("p",{style:{color:"#ddd",fontSize:13,fontWeight:500,margin:0},children:T.text}),i.jsxs("p",{style:{fontSize:10,color:"#555",marginTop:3},children:["Optimized for: ",i.jsx("span",{style:{color:"#777"},children:jn[T.optimized_for]??T.optimized_for})]})]})]},$))]}),o.upgrade_hook&&i.jsx("div",{style:{background:"#1a1040",border:"1px solid #3a2a6a",borderRadius:14,padding:16,textAlign:"center",marginBottom:0},children:i.jsx("p",{style:{color:"#b39ddb",fontSize:12,margin:0},children:o.upgrade_hook})})]}),i.jsx(Jt,{accentColor:"#7c4dff"})]})]})}function Ua({label:e,result:t,isWinner:n,isDimmed:r}){const o=vd[t.grade]??"#777";return i.jsxs("div",{style:{flex:1,background:"#12121f",border:`1px solid ${n?"#4caf50":"#1a1a2e"}`,borderRadius:14,padding:16,opacity:r?.55:1,transition:"opacity 0.3s",position:"relative"},children:[n&&i.jsx("div",{style:{position:"absolute",top:-12,left:"50%",transform:"translateX(-50%)",background:"#4caf50",color:"#000",fontSize:10,fontWeight:800,padding:"2px 10px",borderRadius:10,letterSpacing:1},children:"WINNER"}),i.jsxs("div",{style:{textAlign:"center",marginBottom:12},children:[i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:4},children:e}),i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:10},children:[i.jsx("span",{style:{fontSize:44,fontWeight:900,color:"#fff"},children:t.total_score}),i.jsx("span",{style:{fontSize:26,fontWeight:900,color:o},children:t.grade})]}),i.jsx("p",{style:{color:"#888",fontSize:11,marginTop:4},children:t.diagnosis})]}),i.jsx("div",{style:{borderTop:"1px solid #1a1a2e",paddingTop:12},children:Object.entries(t.framework_scores).map(([l,s])=>{const a=Math.round(s.score/s.max*100),u=a>=80?"#4caf50":a>=60?"#4a90d9":a>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:8},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:3},children:[i.jsx("span",{style:{fontSize:10,color:"#777"},children:jn[l]??l}),i.jsxs("span",{style:{fontSize:10,color:"#999",fontWeight:700},children:[s.score,"/",s.max]})]}),i.jsx("div",{style:{height:4,background:"#1a1a2e",borderRadius:2,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:u,borderRadius:2,width:`${a}%`}})})]},l)})})]})}function dg({onTryHybrid:e}){const[t,n]=x.useState(""),[r,o]=x.useState(""),[l,s]=x.useState(!1),[a,u]=x.useState(null),[d,h]=x.useState(null);async function m(){if(!(!t.trim()||!r.trim())){s(!0),u(null),h(null);try{const g=await fetch(`${J}/demos/headline-grader/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({headlineA:t.trim(),headlineB:r.trim()})}),v=await g.json();if(!g.ok)throw new Error(v.error||`HTTP ${g.status}`);u(v)}catch(g){h(g instanceof Error?g.message:"Comparison failed.")}finally{s(!1)}}}const p=t.trim().length>=3&&r.trim().length>=3,S=a==null?void 0:a.comparison.framework_winners;return i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{display:"flex",gap:12,marginBottom:12},children:["A","B"].map(g=>{const v=g==="A"?t:r,j=g==="A"?n:o;return i.jsxs("div",{style:{flex:1},children:[i.jsxs("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6},children:["Headline ",g]}),i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"10px 12px",fontSize:13,color:"#e0e0e0",resize:"none",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},rows:3,placeholder:`Paste headline ${g}...`,value:v,onChange:f=>j(f.target.value)})]},g)})}),i.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:20},children:i.jsx("button",{onClick:m,disabled:l||!p,style:{padding:"8px 20px",background:l||!p?"#333":"#7c4dff",color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:l||!p?"not-allowed":"pointer",opacity:l||!p?.5:1},children:l?"Comparing...":"Compare"})}),d&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:d}),a&&i.jsxs("div",{children:[a.comparison.winner!=="tie"?i.jsxs("div",{style:{background:"#0d1f0d",border:"1px solid #1e4a1e",borderRadius:10,padding:"12px 20px",marginBottom:16,display:"flex",alignItems:"center",justifyContent:"center",gap:16},children:[i.jsxs("div",{style:{textAlign:"center"},children:[i.jsxs("div",{style:{color:"#4caf50",fontWeight:800,fontSize:15},children:["Headline ",a.comparison.winner," wins"]}),i.jsxs("div",{style:{color:"#2e7d32",fontSize:11,marginTop:2},children:["+",a.comparison.margin," pts · ",Math.round(a.comparison.margin/Math.max(a.comparison.winner==="A"?a.headlineB.total_score:a.headlineA.total_score,1)*100),"% stronger"]})]}),i.jsx(ht,{shareText:`Headline ${a.comparison.winner} won my A/B test on HeadlineGrader by ${a.comparison.margin} points. Try Content Intelligence Stack → https://contentintelligence.ai`,accentColor:"#4caf50"})]}):i.jsx("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a4e",borderRadius:10,padding:"10px 16px",marginBottom:16,textAlign:"center",color:"#ffd54f",fontWeight:700,fontSize:13},children:"It's a tie — both headlines score equally"}),i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:16,paddingTop:16},children:[i.jsx(Ua,{label:"Headline A",result:a.headlineA,isWinner:a.comparison.winner==="A",isDimmed:a.comparison.winner==="B"}),i.jsx(Ua,{label:"Headline B",result:a.headlineB,isWinner:a.comparison.winner==="B",isDimmed:a.comparison.winner==="A"})]}),S&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Framework Winners"}),i.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[i.jsx("thead",{children:i.jsx("tr",{style:{borderBottom:"1px solid #1a1a2e"},children:["Framework","A Score","B Score","Winner"].map(g=>i.jsx("th",{style:{padding:"6px 8px",textAlign:"left",color:"#555",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:1},children:g},g))})}),i.jsx("tbody",{children:Object.keys(jn).map(g=>{const v=S[g],j=a.headlineA.framework_scores[g].score,f=a.headlineB.framework_scores[g].score;return i.jsxs("tr",{style:{borderBottom:"1px solid #0d0d1a"},children:[i.jsx("td",{style:{padding:"8px",color:"#aaa"},children:jn[g]}),i.jsx("td",{style:{padding:"8px",color:v==="A"?"#4caf50":"#666",fontWeight:v==="A"?700:400},children:j}),i.jsx("td",{style:{padding:"8px",color:v==="B"?"#4caf50":"#666",fontWeight:v==="B"?700:400},children:f}),i.jsx("td",{style:{padding:"8px",color:v==="tie"?"#ffd54f":"#4caf50",fontWeight:700},children:v==="tie"?"Tie":`Headline ${v}`})]},g)})})]})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Analysis"}),i.jsx("p",{style:{color:"#bbb",fontSize:13,lineHeight:1.6,margin:0},children:a.comparison.verdict})]}),i.jsxs("div",{style:{background:"#1a1040",border:"1px solid #3a2a6a",borderRadius:14,padding:20},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#7c4dff",textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Suggested Hybrid"}),i.jsx("p",{style:{color:"#e0e0e0",fontSize:14,fontWeight:600,lineHeight:1.5,marginBottom:14},children:a.comparison.suggested_hybrid}),i.jsx("button",{onClick:()=>{const g=a.comparison.suggested_hybrid.split(" | ")[0].trim();e(g)},style:{padding:"7px 16px",background:"#7c4dff",color:"#fff",fontWeight:600,fontSize:12,border:"none",borderRadius:8,cursor:"pointer"},children:"Try this headline →"})]})]})]})}function fg(){const[e,t]=x.useState("score"),[n,r]=x.useState("");return i.jsxs("div",{style:{padding:24,maxWidth:720,margin:"0 auto"},children:[i.jsxs("div",{style:{textAlign:"center",marginBottom:28},children:[i.jsx("div",{style:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6,fontFamily:"monospace"},children:"Content Intelligence Stack"}),i.jsx("h1",{style:{fontSize:28,fontWeight:800,color:"#e0e0e0",letterSpacing:-.5},children:"Grade Your Headline in Seconds"}),i.jsxs("p",{style:{color:"#777",fontSize:14,marginTop:8,lineHeight:1.6,maxWidth:540,margin:"8px auto 0"},children:["Score any headline 1-100 against 4 proven frameworks — Masterson's Rule of One, Hormozi's Value Equation, 5th-grade Readability, and Proof+Promise+Plan — the same system behind ",i.jsx("span",{style:{color:"#ccc",fontWeight:500},children:"$1B+"})," in direct-response revenue at Agora Publishing."]}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:8,marginTop:16},children:["4 Proven Frameworks","Used by 1000+ Marketers","Free — No Signup Required","Scores 1-100 with AI"].map(o=>i.jsx("span",{style:{fontSize:10,padding:"4px 10px",borderRadius:12,background:"#12121f",color:"#888",border:"1px solid #1a1a2e",fontWeight:500},children:o},o))})]}),i.jsxs("div",{style:{display:"flex",gap:4,background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:4,marginBottom:24,width:"fit-content"},children:[i.jsx("button",{onClick:()=>t("score"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="score"?"#7c4dff":"transparent",color:e==="score"?"#fff":"#666",transition:"background 0.2s, color 0.2s"},children:"Score"}),i.jsxs("button",{onClick:()=>t("compare"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="compare"?"#2a1a6a":"transparent",color:e==="compare"?"#b39ddb":"#444",transition:"background 0.2s, color 0.2s",display:"flex",alignItems:"center",gap:6},children:["A/B Compare",i.jsx("span",{style:{fontSize:8,padding:"1px 6px",borderRadius:4,background:"#7c4dff33",color:"#b39ddb",border:"1px solid #7c4dff44",fontFamily:"monospace",fontWeight:700,letterSpacing:.5},children:"PRO"})]})]}),e==="score"&&i.jsx(cg,{headline:n,setHeadline:r}),e==="compare"&&i.jsx("div",{children:i.jsx(It,{accentColor:"#7c4dff",label:"A/B Compare Mode",children:i.jsx(dg,{onTryHybrid:o=>{r(o),t("score")}})})}),i.jsxs("section",{style:{marginTop:56},children:[i.jsx("h2",{style:{fontSize:14,fontWeight:700,color:"#aaa",marginBottom:16,textAlign:"center",letterSpacing:1,textTransform:"uppercase"},children:"Frequently Asked Questions"}),i.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[{q:"What is a headline score?",a:"A headline score is a number from 1 to 100 that measures how persuasive your headline is across four proven direct-response frameworks. A score of 80+ is excellent; 60-79 is good; below 60 needs significant improvement. The score combines Rule of One clarity, Value Equation strength, readability, and the Proof+Promise+Plan hook structure."},{q:"How does HeadlineGrader work?",a:"HeadlineGrader uses AI to analyze your headline against four frameworks proven across $1B+ in direct-response revenue: Masterson's Rule of One (does it focus on a single idea?), Hormozi's Value Equation (does it maximize dream outcome and reduce perceived effort?), 5th-grade readability (is it instantly scannable?), and Proof+Promise+Plan (does it open a curiosity loop with credibility?). Each framework contributes up to 25 points for a maximum score of 100."},{q:"Is HeadlineGrader free?",a:"Yes — HeadlineGrader is completely free with no signup required. You get 5 free headline analyses per day. If you need more, enter your email to unlock 5 additional free analyses. Pro plans with unlimited analyses, A/B comparison, and bulk testing are coming soon."},{q:"How is HeadlineGrader different from CoSchedule's Headline Analyzer?",a:"CoSchedule's Headline Analyzer scores headlines on word balance, length, and sentiment — generic metrics not tied to revenue outcomes. HeadlineGrader scores against frameworks proven in $1B+ of direct-response copywriting. The result is a grade that tells you exactly which persuasion lever is weak and gives you AI-generated rewrites to fix it."},{q:"What types of headlines can I test?",a:"HeadlineGrader works on any short-form persuasive text: blog post titles, email subject lines, Facebook and Google ad headlines, landing page H1s, YouTube video titles, Twitter thread hooks, and sales page headlines. If it needs to grab attention and drive a click, it can be scored."}].map(({q:o,a:l})=>i.jsxs("details",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,overflow:"hidden"},children:[i.jsxs("summary",{style:{padding:"14px 18px",cursor:"pointer",fontSize:13,fontWeight:600,color:"#ccc",listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",userSelect:"none"},children:[o,i.jsx("span",{style:{fontSize:16,color:"#555",marginLeft:8,flexShrink:0},children:"+"})]}),i.jsx("p",{style:{padding:"0 18px 14px",fontSize:12,color:"#777",lineHeight:1.7,margin:0,borderTop:"1px solid #1a1a2e"},children:l})]},o))})]}),i.jsxs("footer",{style:{marginTop:40,paddingTop:24,borderTop:"1px solid #111"},children:[i.jsx("p",{style:{fontSize:11,color:"#333",lineHeight:1.7,textAlign:"center"},children:"HeadlineGrader is a free AI-powered headline analyzer that scores your headlines, email subject lines, and ad copy 1-100 using direct-response copywriting frameworks. Use it as your headline grader before publishing blog posts, running paid ads, or sending campaigns. Works as an email subject line tester, ad headline scorer, and landing page headline optimizer — all in one free tool."}),i.jsx("div",{style:{marginTop:16,textAlign:"center",fontSize:10,color:"#2a2a2a"},children:"Built on frameworks from Masterson, Hormozi & Proof+Promise+Plan · Powered by local Claude session"})]})]})}const Sd={"A+":"#4caf50",A:"#4caf50","A-":"#4caf50","B+":"#4a90d9",B:"#4a90d9","B-":"#4a90d9","C+":"#ffd54f",C:"#ffd54f","C-":"#ffd54f",D:"#ff9800",F:"#ef5350"},Wo={hero:{label:"Hero Section",icon:"🎯"},social_proof:{label:"Social Proof",icon:"⭐"},clarity:{label:"Clarity & Persuasion",icon:"💡"},conversion:{label:"Conversion Architecture",icon:"🔥"}};function pg({sectionKey:e,section:t}){const n=Wo[e]??{label:e,icon:"•"},r=Math.round(t.score/t.max*100),o=r>=80?"#4caf50":r>=60?"#4a90d9":r>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:22},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[i.jsxs("span",{style:{fontSize:12,fontWeight:500,color:"#ccc"},children:[n.icon," ",n.label]}),i.jsxs("span",{style:{fontSize:12,fontWeight:700,color:"#ddd"},children:[t.score,"/",t.max]})]}),i.jsx("div",{style:{height:6,background:"#1a1a2e",borderRadius:3,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:o,borderRadius:3,width:`${r}%`,transition:"width 0.7s ease"}})}),i.jsx("p",{style:{marginTop:6,fontSize:11,color:"#777",lineHeight:1.4},children:t.feedback}),t.fixes.length>0&&i.jsx("div",{style:{marginTop:6},children:t.fixes.map((l,s)=>i.jsxs("div",{style:{fontSize:11,color:"#999",padding:"4px 8px",marginTop:3,background:"#0d0d1a",borderRadius:4,border:"1px solid #1a1a2e"},children:["→ ",l]},s))})]})}function hg(){const[e,t]=x.useState(""),[n,r]=x.useState(!1),[o,l]=x.useState(null),[s,a]=x.useState(null),[u,d]=x.useState(!1),[h,m]=x.useState(()=>localStorage.getItem("bilko_pro_email")??"");async function p(){if(e.trim()){r(!0),l(null),a(null),d(!1);try{const g=await fetch(`${J}/demos/page-roast`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.trim(),email:h||void 0})}),v=await g.json();if(v.gated){d(!0);return}if(!g.ok)throw new Error(v.error||`HTTP ${g.status}`);l(v)}catch(g){a(g instanceof Error?g.message:"Roast failed.")}finally{r(!1)}}}const S=o?Sd[o.grade]??"#777":"#777";return i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{marginBottom:20},children:[i.jsx("input",{type:"url",style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"12px 14px",fontSize:15,color:"#e0e0e0",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},placeholder:"https://your-landing-page.com",value:e,onChange:g=>t(g.target.value),onKeyDown:g=>{g.key==="Enter"&&p()}}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},children:[i.jsx("span",{style:{fontSize:10,color:"#444"},children:"Enter to roast"}),i.jsx("button",{onClick:p,disabled:n||!e.trim(),style:{padding:"8px 20px",background:n||!e.trim()?"#333":"#ff6b35",color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:n||!e.trim()?"not-allowed":"pointer",opacity:n||!e.trim()?.5:1},children:n?"Roasting...":"Roast It"})]})]}),s&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:s}),u&&i.jsx(ag,{accentColor:"#ff6b35",onEmailChange:g=>{m(g),localStorage.setItem("bilko_pro_email",g)}}),o&&i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:24,textAlign:"center",marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,marginBottom:10},children:[i.jsx("span",{style:{fontSize:56,fontWeight:900,color:"#fff"},children:o.total_score}),i.jsxs("div",{style:{textAlign:"left"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:900,color:S},children:o.grade}),i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"/ 100"})]})]}),i.jsxs("p",{style:{color:"#ff6b35",fontSize:14,fontWeight:600,fontStyle:"italic",maxWidth:480,margin:"0 auto 12px"},children:['"',o.roast,'"']}),i.jsx(ht,{shareText:`My landing page scored ${o.total_score}/100 on PageRoast by ContentGrade Suite. Get your free audit → https://contentintelligence.ai`,accentColor:"#ff6b35"})]}),o.top_fixes.length>0&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,margin:0},children:"#1 Highest-Impact Fix"}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:"#ff6b3520",color:"#ff6b35",border:"1px solid #ff6b3533",fontFamily:"monospace",fontWeight:600,letterSpacing:1},children:"FREE"})]}),i.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10,padding:12,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e"},children:[i.jsx("div",{style:{flexShrink:0,width:28,height:28,borderRadius:14,background:"#2a1a10",border:"1px solid #5a3a1a",display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,fontWeight:700,color:"#ff6b35"},children:"1"}),i.jsx("p",{style:{color:"#ddd",fontSize:13,margin:0,lineHeight:1.5},children:o.top_fixes[0]})]})]}),i.jsx(Ln,{tool:"page-roast",score:o.total_score,accentColor:"#ff6b35"}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:16},children:"Section Breakdown"}),Object.entries(o.section_scores).map(([g,v])=>i.jsx(pg,{sectionKey:g,section:v},g))]}),o.top_fixes.length>1&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"All High-Impact Fixes"}),o.top_fixes.slice(1).map((g,v)=>i.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10,padding:10,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e",marginBottom:8},children:[i.jsx("div",{style:{flexShrink:0,width:28,height:28,borderRadius:14,background:"#2a1a10",border:"1px solid #5a3a1a",display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,fontWeight:700,color:"#ff6b35"},children:v+2}),i.jsx("p",{style:{color:"#ddd",fontSize:13,margin:0,lineHeight:1.5},children:g})]},v))]}),i.jsx("div",{style:{background:"#1a1a10",border:"1px solid #3a3a1a",borderRadius:14,padding:16,textAlign:"center",marginBottom:16},children:i.jsx("p",{style:{color:"#ffd54f",fontSize:12,fontWeight:500,margin:0},children:o.competitor_edge})}),i.jsx(Jt,{accentColor:"#ff6b35"})]})]})}function Ha({label:e,url:t,result:n,isWinner:r,isDimmed:o}){const l=Sd[n.grade]??"#777";return i.jsxs("div",{style:{flex:1,background:"#12121f",border:`1px solid ${r?"#4caf50":"#1a1a2e"}`,borderRadius:14,padding:16,opacity:o?.55:1,transition:"opacity 0.3s",position:"relative"},children:[r&&i.jsx("div",{style:{position:"absolute",top:-12,left:"50%",transform:"translateX(-50%)",background:"#4caf50",color:"#000",fontSize:10,fontWeight:800,padding:"2px 10px",borderRadius:10,letterSpacing:1},children:"WINNER"}),i.jsxs("div",{style:{textAlign:"center",marginBottom:12},children:[i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:4},children:e}),i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:10},children:[i.jsx("span",{style:{fontSize:44,fontWeight:900,color:"#fff"},children:n.total_score}),i.jsx("span",{style:{fontSize:26,fontWeight:900,color:l},children:n.grade})]}),i.jsxs("p",{style:{color:"#ff6b35",fontSize:11,fontStyle:"italic",marginTop:4},children:['"',n.roast,'"']}),i.jsx("p",{style:{color:"#555",fontSize:9,marginTop:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]}),i.jsx("div",{style:{borderTop:"1px solid #1a1a2e",paddingTop:12},children:Object.entries(n.section_scores).map(([s,a])=>{const u=Wo[s]??{label:s,icon:"•"},d=Math.round(a.score/a.max*100),h=d>=80?"#4caf50":d>=60?"#4a90d9":d>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:8},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:3},children:[i.jsxs("span",{style:{fontSize:10,color:"#777"},children:[u.icon," ",u.label]}),i.jsxs("span",{style:{fontSize:10,color:"#999",fontWeight:700},children:[a.score,"/",a.max]})]}),i.jsx("div",{style:{height:4,background:"#1a1a2e",borderRadius:2,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:h,borderRadius:2,width:`${d}%`}})})]},s)})})]})}function gg(){const[e,t]=x.useState(""),[n,r]=x.useState(""),[o,l]=x.useState(!1),[s,a]=x.useState(null),[u,d]=x.useState(null);async function h(){if(!(!e.trim()||!n.trim())){l(!0),a(null),d(null);try{const S=await fetch(`${J}/demos/page-roast/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url_a:e.trim(),url_b:n.trim()})}),g=await S.json();if(!S.ok)throw new Error(g.error||`HTTP ${S.status}`);a(g)}catch(S){d(S instanceof Error?S.message:"Comparison failed.")}finally{l(!1)}}}const m=e.trim().length>0&&n.trim().length>0,p=s==null?void 0:s.comparison.section_winners;return i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{display:"flex",gap:12,marginBottom:12},children:["A","B"].map(S=>{const g=S==="A"?e:n,v=S==="A"?t:r;return i.jsxs("div",{style:{flex:1},children:[i.jsxs("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6},children:["Page ",S]}),i.jsx("input",{type:"url",style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"10px 12px",fontSize:13,color:"#e0e0e0",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},placeholder:`https://page-${S.toLowerCase()}.com`,value:g,onChange:j=>v(j.target.value)})]},S)})}),i.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:20},children:i.jsx("button",{onClick:h,disabled:o||!m,style:{padding:"8px 20px",background:o||!m?"#333":"#ff6b35",color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:o||!m?"not-allowed":"pointer",opacity:o||!m?.5:1},children:o?"Comparing...":"Compare"})}),u&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:u}),s&&i.jsxs("div",{children:[s.comparison.winner!=="tie"?i.jsxs("div",{style:{background:"#0d1f0d",border:"1px solid #1e4a1e",borderRadius:10,padding:"12px 20px",marginBottom:16,display:"flex",alignItems:"center",justifyContent:"center",gap:16},children:[i.jsxs("div",{style:{textAlign:"center"},children:[i.jsxs("div",{style:{color:"#4caf50",fontWeight:800,fontSize:15},children:["Page ",s.comparison.winner," wins"]}),i.jsxs("div",{style:{color:"#2e7d32",fontSize:11,marginTop:2},children:["+",s.comparison.margin," pts · ",Math.round(s.comparison.margin/Math.max(s.comparison.winner==="A"?s.score_b.total_score:s.score_a.total_score,1)*100),"% stronger"]})]}),i.jsx(ht,{shareText:`Page ${s.comparison.winner} won my A/B landing page test on PageRoast by ${s.comparison.margin} points. Try ContentGrade Suite → https://contentintelligence.ai`,accentColor:"#4caf50"})]}):i.jsx("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a4e",borderRadius:10,padding:"10px 16px",marginBottom:16,textAlign:"center",color:"#ffd54f",fontWeight:700,fontSize:13},children:"It's a tie — both pages score equally"}),i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:16,paddingTop:16},children:[i.jsx(Ha,{label:"Page A",url:e,result:s.score_a,isWinner:s.comparison.winner==="A",isDimmed:s.comparison.winner==="B"}),i.jsx(Ha,{label:"Page B",url:n,result:s.score_b,isWinner:s.comparison.winner==="B",isDimmed:s.comparison.winner==="A"})]}),p&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Section Winners"}),i.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[i.jsx("thead",{children:i.jsx("tr",{style:{borderBottom:"1px solid #1a1a2e"},children:["Section","A Score","B Score","Winner"].map(S=>i.jsx("th",{style:{padding:"6px 8px",textAlign:"left",color:"#555",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:1},children:S},S))})}),i.jsx("tbody",{children:Object.keys(Wo).map(S=>{const g=p[S],v=s.score_a.section_scores[S].score,j=s.score_b.section_scores[S].score,f=Wo[S];return i.jsxs("tr",{style:{borderBottom:"1px solid #0d0d1a"},children:[i.jsxs("td",{style:{padding:"8px",color:"#aaa"},children:[f.icon," ",f.label]}),i.jsxs("td",{style:{padding:"8px",color:g==="A"?"#4caf50":"#666",fontWeight:g==="A"?700:400},children:[v,"/25"]}),i.jsxs("td",{style:{padding:"8px",color:g==="B"?"#4caf50":"#666",fontWeight:g==="B"?700:400},children:[j,"/25"]}),i.jsx("td",{style:{padding:"8px",color:g==="tie"?"#ffd54f":"#4caf50",fontWeight:700},children:g==="tie"?"Tie":`Page ${g}`})]},S)})})]})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Verdict"}),i.jsx("p",{style:{color:"#bbb",fontSize:13,lineHeight:1.6,margin:0},children:s.comparison.verdict})]}),i.jsxs("div",{style:{background:"#2a1a10",border:"1px solid #5a3a1a",borderRadius:14,padding:20},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#ff6b35",textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Strategic Analysis"}),i.jsx("p",{style:{color:"#e0e0e0",fontSize:13,lineHeight:1.6,margin:0},children:s.comparison.analysis})]})]})]})}function mg(){const[e,t]=x.useState("roast");return i.jsxs("div",{style:{padding:24,maxWidth:720,margin:"0 auto"},children:[i.jsxs("div",{style:{textAlign:"center",marginBottom:28},children:[i.jsx("div",{style:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6,fontFamily:"monospace"},children:"ContentGrade Suite"}),i.jsxs("h1",{style:{fontSize:28,fontWeight:800,color:"#e0e0e0",letterSpacing:-.5},children:["Page",i.jsx("span",{style:{color:"#ff6b35"},children:"Roast"})]}),i.jsxs("p",{style:{color:"#777",fontSize:14,marginTop:6},children:["Paste a URL. Get a brutally honest landing page audit in ",i.jsx("span",{style:{color:"#ccc",fontWeight:500},children:"60 seconds"}),"."]}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:6,marginTop:12},children:["Hero Section","Social Proof","Clarity","Conversion"].map(n=>i.jsx("span",{style:{fontSize:10,padding:"3px 10px",borderRadius:12,background:"#12121f",color:"#666",border:"1px solid #1a1a2e"},children:n},n))})]}),i.jsxs("div",{style:{display:"flex",gap:4,background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:4,marginBottom:24,width:"fit-content"},children:[i.jsx("button",{onClick:()=>t("roast"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="roast"?"#ff6b35":"transparent",color:e==="roast"?"#fff":"#666",transition:"background 0.2s, color 0.2s"},children:"Roast"}),i.jsx("button",{onClick:()=>t("compare"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="compare"?"#4a2a10":"transparent",color:e==="compare"?"#ff9966":"#444",transition:"background 0.2s, color 0.2s"},children:"A/B Compare"})]}),e==="roast"&&i.jsx(hg,{}),e==="compare"&&i.jsx(gg,{}),i.jsx("div",{style:{marginTop:40,textAlign:"center",fontSize:10,color:"#333"},children:"Conversion-focused audit using proven CRO frameworks · Powered by local Claude session"})]})}const jd={"A+":"#4caf50",A:"#4caf50","A-":"#4caf50","B+":"#4a90d9",B:"#4a90d9","B-":"#4a90d9","C+":"#ffd54f",C:"#ffd54f","C-":"#ffd54f",D:"#ff9800",F:"#ef5350"},qt={hook:"Hook Strength",value_prop:"Value Proposition",emotional:"Emotional Architecture",cta_conversion:"CTA & Conversion"},wd=["facebook","google","linkedin"],Y="#00bfa5";function yg({pillarKey:e,pillar:t}){const n=qt[e]??e,r=Math.round(t.score/t.max*100),o=r>=80?"#4caf50":r>=60?"#4a90d9":r>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:20},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[i.jsx("span",{style:{fontSize:12,fontWeight:500,color:"#ccc"},children:n}),i.jsxs("span",{style:{fontSize:12,fontWeight:700,color:"#ddd"},children:[t.score,"/",t.max]})]}),i.jsx("div",{style:{height:6,background:"#1a1a2e",borderRadius:3,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:o,borderRadius:3,width:`${r}%`,transition:"width 0.7s ease"}})}),i.jsx("p",{style:{marginTop:6,fontSize:11,color:"#777",lineHeight:1.4},children:t.feedback})]})}function Va({label:e,result:t,isWinner:n,isDimmed:r}){const o=jd[t.grade]??"#777";return i.jsxs("div",{style:{flex:1,background:n?"#0a2a25":"#12121f",border:`1px solid ${n?"#1a4a3a":"#1a1a2e"}`,borderRadius:12,padding:16,opacity:r?.6:1,transition:"opacity 0.3s"},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:10},children:[i.jsx("span",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:e}),n&&i.jsx("span",{style:{fontSize:9,padding:"2px 7px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:700},children:"WINNER"})]}),i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:10},children:[i.jsx("span",{style:{fontSize:40,fontWeight:900,color:"#fff"},children:t.total_score}),i.jsx("span",{style:{fontSize:24,fontWeight:900,color:o},children:t.grade})]}),Object.keys(qt).map(l=>{const s=t.pillar_scores[l],a=Math.round(s.score/s.max*100),u=a>=80?"#4caf50":a>=60?"#4a90d9":a>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:6},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:2},children:[i.jsx("span",{style:{fontSize:9,color:"#666"},children:qt[l]}),i.jsxs("span",{style:{fontSize:9,color:"#888",fontWeight:700},children:[s.score,"/",s.max]})]}),i.jsx("div",{style:{height:3,background:"#1a1a2e",borderRadius:2,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:u,borderRadius:2,width:`${a}%`}})})]},l)})]})}function xg({adCopy:e,setAdCopy:t}){const[n,r]=x.useState("facebook"),[o,l]=x.useState(!1),[s,a]=x.useState(null),[u,d]=x.useState(null);async function h(){if(!(!e.trim()||e.trim().length<10)){l(!0),a(null),d(null);try{const p=await fetch(`${J}/demos/ad-scorer`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adCopy:e.trim(),platform:n})}),S=await p.json();if(!p.ok)throw new Error(S.error||`HTTP ${p.status}`);a(S)}catch(p){d(p instanceof Error?p.message:"Scoring failed.")}finally{l(!1)}}}const m=s?jd[s.grade]??"#777":"#777";return i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{display:"flex",gap:8,marginBottom:12,justifyContent:"center"},children:wd.map(p=>i.jsx("button",{onClick:()=>r(p),style:{padding:"5px 14px",fontSize:11,fontWeight:600,borderRadius:6,border:n===p?`1px solid ${Y}`:"1px solid #1a1a2e",background:n===p?"#0a2a25":"#12121f",color:n===p?Y:"#555",cursor:"pointer",textTransform:"capitalize"},children:p},p))}),i.jsxs("div",{style:{marginBottom:20},children:[i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"12px 14px",fontSize:14,color:"#e0e0e0",resize:"none",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},rows:6,placeholder:`Paste your ${n} ad copy here...`,value:e,onChange:p=>t(p.target.value),onKeyDown:p=>{p.key==="Enter"&&(p.metaKey||p.ctrlKey)&&h()}}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},children:[i.jsxs("span",{style:{fontSize:10,color:"#444"},children:[e.length,"/2000 chars · Ctrl+Enter to score"]}),i.jsx("button",{onClick:h,disabled:o||e.trim().length<10,style:{padding:"8px 20px",background:o||e.trim().length<10?"#333":Y,color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:o||e.trim().length<10?"not-allowed":"pointer",opacity:o||e.trim().length<10?.5:1},children:o?"Scoring...":"Score It"})]})]}),u&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:u}),s&&i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:24,textAlign:"center",marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,marginBottom:10},children:[i.jsx("span",{style:{fontSize:56,fontWeight:900,color:"#fff"},children:s.total_score}),i.jsxs("div",{style:{textAlign:"left"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:900,color:m},children:s.grade}),i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"/ 100"})]})]}),i.jsxs("p",{style:{color:Y,fontSize:14,fontWeight:600,fontStyle:"italic",maxWidth:480,margin:"0 auto 12px"},children:['"',s.verdict,'"']}),i.jsx(ht,{shareText:`My ad copy scored ${s.total_score}/100 on AdScorer by Content Intelligence Stack. Grade yours → https://contentintelligence.ai`,accentColor:Y})]}),s.rewrites&&s.rewrites.length>0&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,margin:0},children:"Best Rewrite"}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:600,letterSpacing:1},children:"FREE"})]}),i.jsxs("div",{style:{padding:12,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e"},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[i.jsx("div",{style:{flexShrink:0,width:28,height:28,borderRadius:14,background:"#0a2a25",border:"1px solid #1a4a3a",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,color:Y},children:s.rewrites[0].predicted_score}),i.jsxs("span",{style:{fontSize:10,color:"#555"},children:["Optimized for: ",i.jsx("span",{style:{color:"#777"},children:qt[s.rewrites[0].optimized_for]??s.rewrites[0].optimized_for})]})]}),i.jsx("p",{style:{color:"#ddd",fontSize:13,margin:0,lineHeight:1.5,whiteSpace:"pre-line"},children:s.rewrites[0].text})]})]}),i.jsx(Ln,{tool:"ad-scorer",score:s.total_score}),i.jsxs(It,{accentColor:Y,label:"Full Ad Analysis",children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:16},children:"Pillar Breakdown"}),Object.entries(s.pillar_scores).map(([p,S])=>i.jsx(yg,{pillarKey:p,pillar:S},p))]}),s.rewrites&&s.rewrites.length>1&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"All AI Rewrites"}),s.rewrites.slice(1).map((p,S)=>i.jsxs("div",{style:{padding:12,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e",marginBottom:8},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[i.jsx("div",{style:{flexShrink:0,width:28,height:28,borderRadius:14,background:"#0a2a25",border:"1px solid #1a4a3a",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,color:Y},children:p.predicted_score}),i.jsxs("span",{style:{fontSize:10,color:"#555"},children:["Optimized for: ",i.jsx("span",{style:{color:"#777"},children:qt[p.optimized_for]??p.optimized_for})]})]}),i.jsx("p",{style:{color:"#ddd",fontSize:13,margin:0,lineHeight:1.5,whiteSpace:"pre-line"},children:p.text})]},S))]}),s.upgrade_hook&&i.jsx("div",{style:{background:"#0a2a25",border:"1px solid #1a4a3a",borderRadius:14,padding:16,textAlign:"center"},children:i.jsx("p",{style:{color:Y,fontSize:12,fontWeight:500,margin:0},children:s.upgrade_hook})})]}),i.jsx(Jt,{accentColor:Y})]})]})}function vg({onTryHybrid:e}){const[t,n]=x.useState(""),[r,o]=x.useState(""),[l,s]=x.useState("facebook"),[a,u]=x.useState(!1),[d,h]=x.useState(null),[m,p]=x.useState(null);async function S(){if(!(!t.trim()||!r.trim())){u(!0),h(null),p(null);try{const j=await fetch(`${J}/demos/ad-scorer/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adCopyA:t.trim(),adCopyB:r.trim(),platform:l})}),f=await j.json();if(!j.ok)throw new Error(f.error||`HTTP ${j.status}`);h(f)}catch(j){p(j instanceof Error?j.message:"Comparison failed.")}finally{u(!1)}}}const g=t.trim().length>=10&&r.trim().length>=10,v=d==null?void 0:d.comparison.pillar_winners;return i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{display:"flex",gap:8,marginBottom:14,justifyContent:"center"},children:wd.map(j=>i.jsx("button",{onClick:()=>s(j),style:{padding:"5px 14px",fontSize:11,fontWeight:600,borderRadius:6,border:l===j?`1px solid ${Y}`:"1px solid #1a1a2e",background:l===j?"#0a2a25":"#12121f",color:l===j?Y:"#555",cursor:"pointer",textTransform:"capitalize"},children:j},j))}),i.jsx("div",{style:{display:"flex",gap:12,marginBottom:12},children:["A","B"].map(j=>{const f=j==="A"?t:r,c=j==="A"?n:o;return i.jsxs("div",{style:{flex:1},children:[i.jsxs("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6},children:["Ad Copy ",j]}),i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"10px 12px",fontSize:13,color:"#e0e0e0",resize:"none",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},rows:5,placeholder:`Paste ${l} ad copy ${j}...`,value:f,onChange:y=>c(y.target.value)})]},j)})}),i.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:20},children:i.jsx("button",{onClick:S,disabled:a||!g,style:{padding:"8px 20px",background:a||!g?"#333":Y,color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:a||!g?"not-allowed":"pointer",opacity:a||!g?.5:1},children:a?"Comparing...":"Compare"})}),m&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:m}),d&&i.jsxs("div",{children:[d.comparison.winner!=="tie"?i.jsxs("div",{style:{background:"#0d1f0d",border:"1px solid #1e4a1e",borderRadius:10,padding:"12px 20px",marginBottom:16,display:"flex",alignItems:"center",justifyContent:"center",gap:16},children:[i.jsxs("div",{style:{textAlign:"center"},children:[i.jsxs("div",{style:{color:"#4caf50",fontWeight:800,fontSize:15},children:["Ad Copy ",d.comparison.winner," wins"]}),i.jsxs("div",{style:{color:"#2e7d32",fontSize:11,marginTop:2},children:["+",d.comparison.margin," pts · ",Math.round(d.comparison.margin/Math.max(d.comparison.winner==="A"?d.adCopyB.total_score:d.adCopyA.total_score,1)*100),"% stronger"]})]}),i.jsx(ht,{shareText:`Ad Copy ${d.comparison.winner} won my A/B test on AdScorer by ${d.comparison.margin} points. Try Content Intelligence Stack → https://contentintelligence.ai`,accentColor:"#4caf50"})]}):i.jsx("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a4e",borderRadius:10,padding:"10px 16px",marginBottom:16,textAlign:"center",color:"#ffd54f",fontWeight:700,fontSize:13},children:"It's a tie — both copies score equally"}),i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:16,paddingTop:16},children:[i.jsx(Va,{label:"Ad Copy A",result:d.adCopyA,isWinner:d.comparison.winner==="A",isDimmed:d.comparison.winner==="B"}),i.jsx(Va,{label:"Ad Copy B",result:d.adCopyB,isWinner:d.comparison.winner==="B",isDimmed:d.comparison.winner==="A"})]}),v&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Pillar Winners"}),i.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[i.jsx("thead",{children:i.jsx("tr",{style:{borderBottom:"1px solid #1a1a2e"},children:["Pillar","A Score","B Score","Winner"].map(j=>i.jsx("th",{style:{padding:"6px 8px",textAlign:"left",color:"#555",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:1},children:j},j))})}),i.jsx("tbody",{children:Object.keys(qt).map(j=>{const f=v[j],c=d.adCopyA.pillar_scores[j].score,y=d.adCopyB.pillar_scores[j].score;return i.jsxs("tr",{style:{borderBottom:"1px solid #0d0d1a"},children:[i.jsx("td",{style:{padding:"8px",color:"#aaa"},children:qt[j]}),i.jsx("td",{style:{padding:"8px",color:f==="A"?"#4caf50":"#666",fontWeight:f==="A"?700:400},children:c}),i.jsx("td",{style:{padding:"8px",color:f==="B"?"#4caf50":"#666",fontWeight:f==="B"?700:400},children:y}),i.jsx("td",{style:{padding:"8px",color:f==="tie"?"#ffd54f":"#4caf50",fontWeight:700},children:f==="tie"?"Tie":`Copy ${f}`})]},j)})})]})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Analysis"}),i.jsx("p",{style:{color:"#bbb",fontSize:13,lineHeight:1.6,margin:"0 0 10px"},children:d.comparison.verdict}),d.comparison.strategic_analysis&&i.jsxs("p",{style:{color:"#777",fontSize:12,lineHeight:1.5,margin:0,borderTop:"1px solid #1a1a2e",paddingTop:10},children:[i.jsx("span",{style:{color:Y,fontWeight:600},children:"Next test: "}),d.comparison.strategic_analysis]})]}),i.jsxs("div",{style:{background:"#0a2520",border:"1px solid #1a4a3a",borderRadius:14,padding:20},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:Y,textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Suggested Hybrid"}),i.jsx("p",{style:{color:"#e0e0e0",fontSize:13,fontWeight:600,lineHeight:1.6,marginBottom:14},children:d.comparison.suggested_hybrid}),i.jsx("button",{onClick:()=>{const j=d.comparison.suggested_hybrid.split(" | ")[0].trim();e(j)},style:{padding:"7px 16px",background:Y,color:"#fff",fontWeight:600,fontSize:12,border:"none",borderRadius:8,cursor:"pointer"},children:"Try this copy →"})]})]})]})}function Sg(){const[e,t]=x.useState("score"),[n,r]=x.useState("");return i.jsxs("div",{style:{padding:24,maxWidth:720,margin:"0 auto"},children:[i.jsxs("div",{style:{textAlign:"center",marginBottom:28},children:[i.jsx("div",{style:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6,fontFamily:"monospace"},children:"ContentGrade Suite"}),i.jsxs("h1",{style:{fontSize:28,fontWeight:800,color:"#e0e0e0",letterSpacing:-.5},children:["Ad",i.jsx("span",{style:{color:Y},children:"Scorer"})]}),i.jsxs("p",{style:{color:"#777",fontSize:14,marginTop:6},children:["Paste your ad copy. Get a ",i.jsx("span",{style:{color:"#ccc",fontWeight:500},children:"direct response audit"})," in seconds."]}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:6,marginTop:12},children:["Hook Strength","Value Prop","Emotional Arc","CTA & Conversion"].map(o=>i.jsx("span",{style:{fontSize:10,padding:"3px 10px",borderRadius:12,background:"#12121f",color:"#666",border:"1px solid #1a1a2e"},children:o},o))})]}),i.jsxs("div",{style:{display:"flex",gap:4,background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:4,marginBottom:24,width:"fit-content"},children:[i.jsx("button",{onClick:()=>t("score"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="score"?Y:"transparent",color:e==="score"?"#fff":"#666",transition:"background 0.2s, color 0.2s"},children:"Score"}),i.jsxs("button",{onClick:()=>t("compare"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="compare"?"#0a2a25":"transparent",color:e==="compare"?Y:"#444",transition:"background 0.2s, color 0.2s",display:"flex",alignItems:"center",gap:6},children:["A/B Compare",i.jsx("span",{style:{fontSize:8,padding:"1px 6px",borderRadius:4,background:`${Y}22`,color:Y,border:`1px solid ${Y}33`,fontFamily:"monospace",fontWeight:700,letterSpacing:.5},children:"PRO"})]})]}),e==="score"&&i.jsx(xg,{adCopy:n,setAdCopy:r}),e==="compare"&&i.jsx("div",{children:i.jsx(It,{accentColor:Y,label:"A/B Compare Mode",children:i.jsx(vg,{onTryHybrid:o=>{r(o),t("score")}})})}),i.jsx("div",{style:{marginTop:40,textAlign:"center",fontSize:10,color:"#333"},children:"Direct response ad scoring using proven performance frameworks · Powered by local Claude session"})]})}const kd={"A+":"#4caf50",A:"#4caf50","A-":"#4caf50","B+":"#4a90d9",B:"#4a90d9","B-":"#4a90d9","C+":"#ffd54f",C:"#ffd54f","C-":"#ffd54f",D:"#ff9800",F:"#ef5350"},kr={hook:"Hook Strength",tension:"Tension Chain",payoff:"Payoff",share_trigger:"Share Trigger"},oe="#1da1f2";function zl(e){const t=e.split(/---|\n\n/).map(n=>n.trim()).filter(Boolean);return Math.max(1,t.length)}function Ga({pillarKey:e,pillar:t}){const n=kr[e]??e,r=Math.round(t.score/t.max*100),o=r>=80?"#4caf50":r>=60?"#4a90d9":r>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:20},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[i.jsx("span",{style:{fontSize:12,fontWeight:500,color:"#ccc"},children:n}),i.jsxs("span",{style:{fontSize:12,fontWeight:700,color:"#ddd"},children:[t.score,"/",t.max]})]}),i.jsx("div",{style:{height:6,background:"#1a1a2e",borderRadius:3,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:o,borderRadius:3,width:`${r}%`,transition:"width 0.7s ease"}})}),i.jsx("p",{style:{marginTop:6,fontSize:11,color:"#777",lineHeight:1.4},children:t.feedback})]})}function Qa({label:e,result:t,isWinner:n,isDimmed:r}){const o=kd[t.grade]??"#777";return i.jsxs("div",{style:{flex:1,background:n?"#0a1e2e":"#12121f",border:`1px solid ${n?"#1a3a5a":"#1a1a2e"}`,borderRadius:12,padding:16,opacity:r?.6:1,transition:"opacity 0.3s"},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:10},children:[i.jsx("span",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:e}),n&&i.jsx("span",{style:{fontSize:9,padding:"2px 7px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:700},children:"WINNER"})]}),i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:10},children:[i.jsx("span",{style:{fontSize:40,fontWeight:900,color:"#fff"},children:t.total_score}),i.jsx("span",{style:{fontSize:24,fontWeight:900,color:o},children:t.grade})]}),Object.keys(kr).map(l=>{const s=t.pillar_scores[l],a=Math.round(s.score/s.max*100),u=a>=80?"#4caf50":a>=60?"#4a90d9":a>=40?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{marginBottom:6},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:2},children:[i.jsx("span",{style:{fontSize:9,color:"#666"},children:kr[l]}),i.jsxs("span",{style:{fontSize:9,color:"#888",fontWeight:700},children:[s.score,"/",s.max]})]}),i.jsx("div",{style:{height:3,background:"#1a1a2e",borderRadius:2,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:u,borderRadius:2,width:`${a}%`}})})]},l)})]})}function jg({threadText:e,setThreadText:t}){const[n,r]=x.useState(!1),[o,l]=x.useState(null),[s,a]=x.useState(null),[u,d]=x.useState(!1),h=zl(e);async function m(){if(!(!e.trim()||e.trim().length<20)){r(!0),l(null),a(null);try{const g=await fetch(`${J}/demos/thread-grader`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threadText:e.trim()})}),v=await g.json();if(!g.ok)throw new Error(v.error||`HTTP ${g.status}`);l(v)}catch(g){a(g instanceof Error?g.message:"Scoring failed.")}finally{r(!1)}}}function p(){if(!o)return;const g=encodeURIComponent(`My thread scored ${o.total_score}/100 on ThreadGrader — try yours: https://contentintelligence.ai`);window.open(`https://twitter.com/intent/tweet?text=${g}`,"_blank"),d(!0)}const S=o?kd[o.grade]??"#777":"#777";return i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{marginBottom:20},children:[i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"12px 14px",fontSize:13,color:"#e0e0e0",resize:"vertical",outline:"none",fontFamily:"inherit",boxSizing:"border-box",lineHeight:1.6},rows:10,placeholder:`Paste your full thread here. Separate tweets with --- or a blank line.
68
+
69
+ Example:
70
+ Most people write threads wrong.
71
+
72
+ Here's the mistake killing your reach:
73
+ ---
74
+ They start with context.
75
+
76
+ Readers don't care about your context yet.
77
+ ---
78
+ Start with the hook. Earn the context.`,value:e,onChange:g=>t(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.metaKey||g.ctrlKey)&&m()}}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},children:[i.jsxs("span",{style:{fontSize:10,color:"#444"},children:[h," tweet",h!==1?"s":""," · ",e.length,"/5000 chars · Ctrl+Enter to grade"]}),i.jsx("button",{onClick:m,disabled:n||e.trim().length<20,style:{padding:"8px 20px",background:n||e.trim().length<20?"#333":oe,color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:n||e.trim().length<20?"not-allowed":"pointer",opacity:n||e.trim().length<20?.5:1},children:n?"Grading...":"Grade Thread"})]})]}),s&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:s}),o&&i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:24,textAlign:"center",marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,marginBottom:10},children:[i.jsx("span",{style:{fontSize:56,fontWeight:900,color:"#fff"},children:o.total_score}),i.jsxs("div",{style:{textAlign:"left"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:900,color:S},children:o.grade}),i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"/ 100"})]})]}),i.jsxs("p",{style:{color:oe,fontSize:14,fontWeight:600,fontStyle:"italic",maxWidth:480,margin:"0 auto 16px"},children:['"',o.verdict,'"']}),i.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:10,flexWrap:"wrap"},children:[i.jsx(ht,{shareText:`My thread scored ${o.total_score}/100 on ThreadGrader. Grade yours → https://contentintelligence.ai`,accentColor:oe}),i.jsx("button",{onClick:p,style:{padding:"7px 14px",background:u?"#0a2a3a":"#1a3a5a",color:u?"#4caf50":oe,border:`1px solid ${u?"#1a5a2a":"#1a5a7a"}`,borderRadius:8,cursor:"pointer",fontSize:12,fontWeight:600},children:u?"✓ Tweeted!":"Tweet Your Score"})]})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:14},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,margin:0},children:"Hook Analysis"}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:600,letterSpacing:1},children:"FREE"})]}),i.jsx(Ga,{pillarKey:"hook",pillar:o.pillar_scores.hook})]}),o.rewrites&&o.rewrites.length>0&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,margin:0},children:"Best Hook Rewrite"}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:600,letterSpacing:1},children:"FREE"})]}),i.jsxs("div",{style:{padding:14,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e"},children:[i.jsx("div",{style:{fontSize:10,color:oe,fontWeight:700,marginBottom:8,textTransform:"uppercase",letterSpacing:1},children:o.rewrites[0].label}),i.jsx("p",{style:{color:"#ddd",fontSize:13,margin:"0 0 8px",lineHeight:1.6,whiteSpace:"pre-line"},children:o.rewrites[0].text}),i.jsx("p",{style:{color:"#666",fontSize:11,margin:0,fontStyle:"italic"},children:o.rewrites[0].why_better})]})]}),i.jsx(Ln,{tool:"thread-grader",score:o.total_score}),i.jsxs(It,{accentColor:oe,label:"Full Thread Analysis",children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:16},children:"Full Pillar Breakdown"}),Object.entries(o.pillar_scores).map(([g,v])=>i.jsx(Ga,{pillarKey:g,pillar:v},g))]}),o.tweet_breakdown&&o.tweet_breakdown.length>0&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Tweet-by-Tweet Breakdown"}),i.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[i.jsx("thead",{children:i.jsx("tr",{style:{borderBottom:"1px solid #1a1a2e"},children:["#","Preview","Score","Note"].map(g=>i.jsx("th",{style:{padding:"6px 8px",textAlign:"left",color:"#555",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:1},children:g},g))})}),i.jsx("tbody",{children:o.tweet_breakdown.map((g,v)=>{const j=g.score>=8?"#4caf50":g.score>=5?"#ffd54f":"#ef5350";return i.jsxs("tr",{style:{borderBottom:"1px solid #0d0d1a"},children:[i.jsx("td",{style:{padding:"8px",color:"#555",fontFamily:"monospace",fontWeight:700},children:g.tweet_index}),i.jsx("td",{style:{padding:"8px",color:"#aaa",maxWidth:200},children:i.jsx("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:g.text_preview})}),i.jsxs("td",{style:{padding:"8px",color:j,fontWeight:700},children:[g.score,"/10"]}),i.jsx("td",{style:{padding:"8px",color:"#777",fontSize:11},children:g.note})]},v)})})]})]}),o.rewrites&&o.rewrites.length>1&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"All Hook Rewrites"}),o.rewrites.slice(1).map((g,v)=>i.jsxs("div",{style:{padding:14,borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e",marginBottom:8},children:[i.jsx("div",{style:{fontSize:10,color:oe,fontWeight:700,marginBottom:8,textTransform:"uppercase",letterSpacing:1},children:g.label}),i.jsx("p",{style:{color:"#ddd",fontSize:13,margin:"0 0 8px",lineHeight:1.6,whiteSpace:"pre-line"},children:g.text}),i.jsx("p",{style:{color:"#666",fontSize:11,margin:0,fontStyle:"italic"},children:g.why_better})]},v))]}),o.upgrade_hook&&i.jsx("div",{style:{background:"#0a1e2e",border:"1px solid #1a3a5a",borderRadius:14,padding:16,textAlign:"center"},children:i.jsx("p",{style:{color:oe,fontSize:12,fontWeight:500,margin:0},children:o.upgrade_hook})})]}),i.jsx(Jt,{accentColor:oe})]})]})}function wg({onTryHybrid:e}){const[t,n]=x.useState(""),[r,o]=x.useState(""),[l,s]=x.useState(!1),[a,u]=x.useState(null),[d,h]=x.useState(null);async function m(){if(!(!t.trim()||!r.trim())){s(!0),u(null),h(null);try{const g=await fetch(`${J}/demos/thread-grader/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threadA:t.trim(),threadB:r.trim()})}),v=await g.json();if(!g.ok)throw new Error(v.error||`HTTP ${g.status}`);u(v)}catch(g){h(g instanceof Error?g.message:"Comparison failed.")}finally{s(!1)}}}const p=t.trim().length>=20&&r.trim().length>=20,S=a==null?void 0:a.comparison.pillar_winners;return i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{display:"flex",gap:12,marginBottom:12},children:["A","B"].map(g=>{const v=g==="A"?t:r,j=g==="A"?n:o;return i.jsxs("div",{style:{flex:1},children:[i.jsxs("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6},children:["Thread ",g," · ",zl(v)," tweet",zl(v)!==1?"s":""]}),i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"10px 12px",fontSize:13,color:"#e0e0e0",resize:"none",outline:"none",fontFamily:"inherit",boxSizing:"border-box",lineHeight:1.5},rows:8,placeholder:`Thread ${g} — separate tweets with ---`,value:v,onChange:f=>j(f.target.value)})]},g)})}),i.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:20},children:i.jsx("button",{onClick:m,disabled:l||!p,style:{padding:"8px 20px",background:l||!p?"#333":oe,color:"#fff",fontWeight:600,fontSize:13,border:"none",borderRadius:8,cursor:l||!p?"not-allowed":"pointer",opacity:l||!p?.5:1},children:l?"Comparing...":"Compare"})}),d&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:d}),a&&i.jsxs("div",{children:[a.comparison.winner!=="tie"?i.jsxs("div",{style:{background:"#0d1f0d",border:"1px solid #1e4a1e",borderRadius:10,padding:"12px 20px",marginBottom:16,display:"flex",alignItems:"center",justifyContent:"center",gap:16},children:[i.jsxs("div",{style:{textAlign:"center"},children:[i.jsxs("div",{style:{color:"#4caf50",fontWeight:800,fontSize:15},children:["Thread ",a.comparison.winner," wins"]}),i.jsxs("div",{style:{color:"#2e7d32",fontSize:11,marginTop:2},children:["+",a.comparison.margin," pts"]})]}),i.jsx(ht,{shareText:`Thread ${a.comparison.winner} won my A/B test on ThreadGrader by ${a.comparison.margin} points. Grade yours → https://contentintelligence.ai`,accentColor:"#4caf50"})]}):i.jsx("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a4e",borderRadius:10,padding:"10px 16px",marginBottom:16,textAlign:"center",color:"#ffd54f",fontWeight:700,fontSize:13},children:"It's a tie — both threads score equally"}),i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:16},children:[i.jsx(Qa,{label:"Thread A",result:a.threadA,isWinner:a.comparison.winner==="A",isDimmed:a.comparison.winner==="B"}),i.jsx(Qa,{label:"Thread B",result:a.threadB,isWinner:a.comparison.winner==="B",isDimmed:a.comparison.winner==="A"})]}),S&&i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Pillar Winners"}),i.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[i.jsx("thead",{children:i.jsx("tr",{style:{borderBottom:"1px solid #1a1a2e"},children:["Pillar","A Score","B Score","Winner"].map(g=>i.jsx("th",{style:{padding:"6px 8px",textAlign:"left",color:"#555",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:1},children:g},g))})}),i.jsx("tbody",{children:Object.keys(kr).map(g=>{const v=S[g],j=a.threadA.pillar_scores[g].score,f=a.threadB.pillar_scores[g].score;return i.jsxs("tr",{style:{borderBottom:"1px solid #0d0d1a"},children:[i.jsx("td",{style:{padding:"8px",color:"#aaa"},children:kr[g]}),i.jsx("td",{style:{padding:"8px",color:v==="A"?"#4caf50":"#666",fontWeight:v==="A"?700:400},children:j}),i.jsx("td",{style:{padding:"8px",color:v==="B"?"#4caf50":"#666",fontWeight:v==="B"?700:400},children:f}),i.jsx("td",{style:{padding:"8px",color:v==="tie"?"#ffd54f":"#4caf50",fontWeight:700},children:v==="tie"?"Tie":`Thread ${v}`})]},g)})})]})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Analysis"}),i.jsx("p",{style:{color:"#bbb",fontSize:13,lineHeight:1.6,margin:"0 0 10px"},children:a.comparison.verdict}),a.comparison.strategic_analysis&&i.jsxs("p",{style:{color:"#777",fontSize:12,lineHeight:1.5,margin:0,borderTop:"1px solid #1a1a2e",paddingTop:10},children:[i.jsx("span",{style:{color:oe,fontWeight:600},children:"Next thread: "}),a.comparison.strategic_analysis]})]}),i.jsxs("div",{style:{background:"#0a1e2e",border:"1px solid #1a3a5a",borderRadius:14,padding:20},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:oe,textTransform:"uppercase",letterSpacing:2,marginBottom:10},children:"Suggested Hybrid Hook"}),i.jsx("p",{style:{color:"#e0e0e0",fontSize:13,fontWeight:600,lineHeight:1.6,marginBottom:14},children:a.comparison.suggested_hybrid}),i.jsx("button",{onClick:()=>{const g=a.comparison.suggested_hybrid.split(" | ")[0].trim();e(g)},style:{padding:"7px 16px",background:oe,color:"#fff",fontWeight:600,fontSize:12,border:"none",borderRadius:8,cursor:"pointer"},children:"Try this hook →"})]})]})]})}function kg(){const[e,t]=x.useState("grade"),[n,r]=x.useState("");return i.jsxs("div",{style:{padding:24,maxWidth:760,margin:"0 auto"},children:[i.jsxs("div",{style:{textAlign:"center",marginBottom:28},children:[i.jsx("div",{style:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6,fontFamily:"monospace"},children:"ContentGrade Suite"}),i.jsxs("h1",{style:{fontSize:28,fontWeight:800,color:"#e0e0e0",letterSpacing:-.5},children:["Thread",i.jsx("span",{style:{color:oe},children:"Grader"})]}),i.jsxs("p",{style:{color:"#777",fontSize:14,marginTop:6},children:["Paste your thread. Get a ",i.jsx("span",{style:{color:"#ccc",fontWeight:500},children:"viral potential score"})," before you post."]}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:6,marginTop:12},children:["Hook Strength (30)","Tension Chain (25)","Payoff (25)","Share Trigger (20)"].map(o=>i.jsx("span",{style:{fontSize:10,padding:"3px 10px",borderRadius:12,background:"#12121f",color:"#666",border:"1px solid #1a1a2e"},children:o},o))})]}),i.jsxs("div",{style:{display:"flex",gap:4,background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:4,marginBottom:24,width:"fit-content"},children:[i.jsx("button",{onClick:()=>t("grade"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="grade"?oe:"transparent",color:e==="grade"?"#fff":"#666",transition:"background 0.2s, color 0.2s"},children:"Grade Thread"}),i.jsxs("button",{onClick:()=>t("compare"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="compare"?"#0a1e2e":"transparent",color:e==="compare"?oe:"#444",transition:"background 0.2s, color 0.2s",display:"flex",alignItems:"center",gap:6},children:["A/B Compare",i.jsx("span",{style:{fontSize:8,padding:"1px 6px",borderRadius:4,background:`${oe}22`,color:oe,border:`1px solid ${oe}33`,fontFamily:"monospace",fontWeight:700,letterSpacing:.5},children:"PRO"})]})]}),e==="grade"&&i.jsx(jg,{threadText:n,setThreadText:r}),e==="compare"&&i.jsx("div",{children:i.jsx(It,{accentColor:oe,label:"A/B Compare Mode",children:i.jsx(wg,{onTryHybrid:o=>{r(o),t("grade")}})})}),i.jsx("div",{style:{marginTop:40,textAlign:"center",fontSize:10,color:"#333"},children:"Viral thread scoring using Hook · Tension · Payoff · Share frameworks · Powered by local Claude session"})]})}const ye="#10b981",bl={"A+":"#4caf50",A:"#4caf50","A-":"#4caf50","B+":"#4a90d9",B:"#4a90d9","B-":"#4a90d9","C+":"#ffd54f",C:"#ffd54f","C-":"#ffd54f",D:"#ff9800",F:"#ef5350"},Cg={AIDA:"#7c4dff",PAS:"#ff6b35","Hormozi Value Equation":"#10b981","Cialdini Reciprocity":"#4a90d9","Storytelling Arc":"#ffd54f"};function _l(e){for(const[t,n]of Object.entries(Cg))if(e.toLowerCase().includes(t.toLowerCase().split(" ")[0].toLowerCase()))return n;return ye}function Ka({email:e,locked:t}){const[n,r]=x.useState(!t&&e.position===1),o=_l(e.framework_used);return i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:12,marginBottom:10,overflow:"hidden"},children:[i.jsxs("div",{onClick:()=>!t&&r(s=>!s),style:{padding:"14px 16px",display:"flex",alignItems:"center",gap:10,cursor:t?"default":"pointer"},children:[i.jsx("div",{style:{width:28,height:28,borderRadius:"50%",background:ye+"22",border:`1px solid ${ye}44`,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:11,fontWeight:800,color:ye,fontFamily:"monospace"},children:e.position}),i.jsxs("div",{style:{flex:1,minWidth:0},children:[i.jsx("div",{style:{fontSize:13,fontWeight:700,color:"#e0e0e0",marginBottom:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.subject_line}),i.jsx("div",{style:{fontSize:10,color:"#555",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.preview_text})]}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:o+"20",color:o,border:`1px solid ${o}44`,fontFamily:"monospace",fontWeight:700,letterSpacing:.5,flexShrink:0,whiteSpace:"nowrap"},children:e.framework_used.split(" ")[0].toUpperCase()}),!t&&i.jsx("div",{style:{color:"#444",fontSize:14,flexShrink:0},children:n?"▲":"▼"})]}),n&&!t&&i.jsx("div",{style:{padding:"0 16px 16px",borderTop:"1px solid #1a1a2e"},children:i.jsxs("div",{style:{paddingTop:14},children:[i.jsxs("div",{style:{background:o+"0d",border:`1px solid ${o}22`,borderRadius:8,padding:"8px 12px",marginBottom:14,fontSize:11,color:o,lineHeight:1.5},children:[i.jsxs("span",{style:{fontWeight:700},children:[e.framework_used,":"]})," ",e.framework_explanation]}),i.jsx("div",{style:{fontSize:13,color:"#ccc",lineHeight:1.7,marginBottom:14,whiteSpace:"pre-line",padding:"12px 14px",background:"#0d0d1a",borderRadius:8,border:"1px solid #1a1a2e"},children:e.body}),i.jsxs("div",{style:{marginBottom:14},children:[i.jsx("div",{style:{fontSize:10,color:"#555",marginBottom:6,textTransform:"uppercase",letterSpacing:1},children:"CTA Button"}),i.jsx("div",{style:{display:"inline-block",padding:"8px 20px",borderRadius:8,background:ye,color:"#000",fontWeight:700,fontSize:12},children:e.cta})]}),i.jsxs("div",{style:{display:"flex",gap:12},children:[i.jsxs("div",{style:{flex:1,padding:"10px 14px",borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e",textAlign:"center"},children:[i.jsx("div",{style:{fontSize:16,fontWeight:800,color:"#4caf50"},children:e.estimated_open_rate}),i.jsx("div",{style:{fontSize:9,color:"#555",marginTop:2,textTransform:"uppercase",letterSpacing:1},children:"Est. Open Rate"})]}),i.jsxs("div",{style:{flex:1,padding:"10px 14px",borderRadius:8,background:"#0d0d1a",border:"1px solid #1a1a2e",textAlign:"center"},children:[i.jsx("div",{style:{fontSize:16,fontWeight:800,color:ye},children:e.estimated_click_rate}),i.jsx("div",{style:{fontSize:9,color:"#555",marginTop:2,textTransform:"uppercase",letterSpacing:1},children:"Est. Click Rate"})]})]})]})})]})}function zg({result:e}){const t=bl[e.grade]??"#777";return i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:24,marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[i.jsx("span",{style:{fontSize:52,fontWeight:900,color:"#fff"},children:e.overall_score}),i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:28,fontWeight:900,color:t},children:e.grade}),i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"Sequence Score"})]})]}),i.jsxs("p",{style:{color:ye,fontSize:13,fontWeight:500,fontStyle:"italic",margin:0},children:['"',e.sequence_strategy,'"']})]}),i.jsxs("div",{style:{marginBottom:8},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:6},children:[i.jsx("span",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"Email 1 — Hook"}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:600,letterSpacing:1},children:"FREE"})]}),i.jsx(Ka,{email:e.emails[0],locked:!1})]}),i.jsx(Ln,{tool:"email-forge",score:e.overall_score,accentColor:ye}),i.jsxs("div",{style:{marginTop:10},children:[i.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:6},children:i.jsx("span",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"Emails 2–5 — Build · Value · Urgency · Close"})}),e.emails.slice(1).map(n=>i.jsx(Ka,{email:n,locked:!1},n.position))]}),i.jsx(Jt,{accentColor:ye})]})}function bg(){const[e,t]=x.useState(""),[n,r]=x.useState(""),[o,l]=x.useState("cold_outreach"),[s,a]=x.useState("professional"),[u,d]=x.useState(!1),[h,m]=x.useState(null),[p,S]=x.useState(null),g=e.trim().length>=10&&n.trim().length>=5;async function v(){if(g){d(!0),m(null),S(null);try{const f=await fetch(`${J}/demos/email-forge`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product:e.trim(),audience:n.trim(),goal:o,tone:s})}),c=await f.json();if(!f.ok)throw new Error(c.error||`HTTP ${f.status}`);m(c)}catch(f){S(f instanceof Error?f.message:"Generation failed.")}finally{d(!1)}}}const j={background:"#12121f",border:"1px solid #1a1a2e",borderRadius:8,padding:"10px 12px",fontSize:13,color:"#e0e0e0",outline:"none",fontFamily:"inherit",width:"100%",appearance:"none",cursor:"pointer"};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{marginBottom:20},children:[i.jsxs("div",{style:{marginBottom:12},children:[i.jsx("label",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:1.5,display:"block",marginBottom:6},children:"Product / Service"}),i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:8,padding:"10px 12px",fontSize:13,color:"#e0e0e0",resize:"vertical",outline:"none",fontFamily:"inherit",boxSizing:"border-box",lineHeight:1.6},rows:3,placeholder:"e.g. A SaaS tool that automates customer onboarding emails, cutting setup time from 2 hours to 5 minutes",value:e,onChange:f=>t(f.target.value)})]}),i.jsxs("div",{style:{marginBottom:12},children:[i.jsx("label",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:1.5,display:"block",marginBottom:6},children:"Target Audience"}),i.jsx("input",{type:"text",style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:8,padding:"10px 12px",fontSize:13,color:"#e0e0e0",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},placeholder:"e.g. B2B SaaS founders with 10-50 person teams",value:n,onChange:f=>r(f.target.value)})]}),i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:12},children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("label",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:1.5,display:"block",marginBottom:6},children:"Goal"}),i.jsxs("select",{style:j,value:o,onChange:f=>l(f.target.value),children:[i.jsx("option",{value:"cold_outreach",children:"Cold Outreach"}),i.jsx("option",{value:"nurture",children:"Nurture Sequence"}),i.jsx("option",{value:"launch",children:"Product Launch"}),i.jsx("option",{value:"re-engagement",children:"Re-engagement"})]})]}),i.jsxs("div",{style:{flex:1},children:[i.jsx("label",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:1.5,display:"block",marginBottom:6},children:"Tone"}),i.jsxs("select",{style:j,value:s,onChange:f=>a(f.target.value),children:[i.jsx("option",{value:"professional",children:"Professional"}),i.jsx("option",{value:"casual",children:"Casual"}),i.jsx("option",{value:"urgent",children:"Urgent"}),i.jsx("option",{value:"storytelling",children:"Storytelling"})]})]})]}),i.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:i.jsx("button",{onClick:v,disabled:u||!g,style:{padding:"10px 24px",background:u||!g?"#333":ye,color:u||!g?"#666":"#000",fontWeight:700,fontSize:13,border:"none",borderRadius:8,cursor:u||!g?"not-allowed":"pointer",opacity:u||!g?.6:1},children:u?"Generating...":"Generate Sequence →"})})]}),p&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:p}),h&&i.jsx(zg,{result:h})]})}function _g(){const[e,t]=x.useState(""),[n,r]=x.useState(""),[o,l]=x.useState("cold_outreach"),[s,a]=x.useState("professional"),[u,d]=x.useState(""),[h,m]=x.useState(""),[p,S]=x.useState("cold_outreach"),[g,v]=x.useState("professional"),[j,f]=x.useState(!1),[c,y]=x.useState(null),[w,k]=x.useState(null),[z,_]=x.useState(null),[R,I]=x.useState(null),B=e.trim().length>=10&&n.trim().length>=5&&u.trim().length>=10&&h.trim().length>=5;async function ne(){if(B){f(!0),y(null),k(null);try{const W=await fetch(`${J}/demos/email-forge/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_a:e.trim(),audience_a:n.trim(),goal_a:o,tone_a:s,product_b:u.trim(),audience_b:h.trim(),goal_b:p,tone_b:g})}),T=await W.json();if(!W.ok)throw new Error(T.error||`HTTP ${W.status}`);y(T)}catch(W){k(W instanceof Error?W.message:"Comparison failed.")}finally{f(!1)}}}const Re={background:"#12121f",border:"1px solid #1a1a2e",borderRadius:6,padding:"6px 8px",fontSize:11,color:"#ccc",outline:"none",fontFamily:"inherit",width:"100%",appearance:"none"};function Te({label:W,product:T,setProduct:$,audience:ae,setAudience:b,goal:P,setGoal:A,tone:M,setTone:K}){return i.jsxs("div",{style:{flex:1},children:[i.jsxs("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:8},children:["Sequence ",W]}),i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:8,padding:"8px 10px",fontSize:12,color:"#e0e0e0",resize:"none",outline:"none",fontFamily:"inherit",boxSizing:"border-box",lineHeight:1.5},rows:4,placeholder:"Product/service description",value:T,onChange:ve=>$(ve.target.value)}),i.jsx("input",{type:"text",style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:8,padding:"7px 10px",fontSize:12,color:"#e0e0e0",marginTop:6,outline:"none",fontFamily:"inherit",boxSizing:"border-box"},placeholder:"Target audience",value:ae,onChange:ve=>b(ve.target.value)}),i.jsxs("div",{style:{display:"flex",gap:6,marginTop:6},children:[i.jsxs("select",{style:Re,value:P,onChange:ve=>A(ve.target.value),children:[i.jsx("option",{value:"cold_outreach",children:"Cold Outreach"}),i.jsx("option",{value:"nurture",children:"Nurture"}),i.jsx("option",{value:"launch",children:"Launch"}),i.jsx("option",{value:"re-engagement",children:"Re-engage"})]}),i.jsxs("select",{style:Re,value:M,onChange:ve=>K(ve.target.value),children:[i.jsx("option",{value:"professional",children:"Professional"}),i.jsx("option",{value:"casual",children:"Casual"}),i.jsx("option",{value:"urgent",children:"Urgent"}),i.jsx("option",{value:"storytelling",children:"Story"})]})]})]})}return i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:12},children:[i.jsx(Te,{label:"A",product:e,setProduct:t,audience:n,setAudience:r,goal:o,setGoal:l,tone:s,setTone:a}),i.jsx(Te,{label:"B",product:u,setProduct:d,audience:h,setAudience:m,goal:p,setGoal:S,tone:g,setTone:v})]}),i.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:20},children:i.jsx("button",{onClick:ne,disabled:j||!B,style:{padding:"8px 20px",background:j||!B?"#333":ye,color:j||!B?"#666":"#000",fontWeight:700,fontSize:13,border:"none",borderRadius:8,cursor:j||!B?"not-allowed":"pointer",opacity:j||!B?.6:1},children:j?"Comparing...":"Compare Sequences"})}),w&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:w}),c&&i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#0d1f0d",border:"1px solid #1e4a1e",borderRadius:10,padding:"14px 20px",marginBottom:16,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[i.jsxs("div",{children:[i.jsxs("div",{style:{color:"#4caf50",fontWeight:800,fontSize:15},children:["Sequence ",c.comparison.winner," wins"]}),i.jsxs("div",{style:{color:"#2e7d32",fontSize:11,marginTop:2},children:["+",c.comparison.margin," pts · ",c.comparison.reasoning]})]}),i.jsx("div",{style:{textAlign:"right"},children:i.jsxs("div",{style:{fontSize:22,fontWeight:900,color:"#fff"},children:[c.comparison.winner==="A"?c.sequence_a.overall_score:c.sequence_b.overall_score,i.jsx("span",{style:{fontSize:12,color:"#555",marginLeft:4},children:"vs"}),c.comparison.winner==="A"?c.sequence_b.overall_score:c.sequence_a.overall_score]})})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Email-by-Email Breakdown"}),i.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[i.jsx("thead",{children:i.jsx("tr",{style:{borderBottom:"1px solid #1a1a2e"},children:["Email","Subject A","Subject B","Winner","Reason"].map(W=>i.jsx("th",{style:{padding:"6px 8px",textAlign:"left",color:"#555",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:1},children:W},W))})}),i.jsx("tbody",{children:c.comparison.per_email_comparison.map(W=>{const T=c.sequence_a.emails.find(ae=>ae.position===W.position),$=c.sequence_b.emails.find(ae=>ae.position===W.position);return i.jsxs("tr",{style:{borderBottom:"1px solid #0d0d1a"},children:[i.jsx("td",{style:{padding:"8px",color:"#555",fontFamily:"monospace",fontWeight:700},children:W.position}),i.jsx("td",{style:{padding:"8px",color:W.winner==="A"?"#4caf50":"#555",fontSize:11,maxWidth:150},children:i.jsx("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(T==null?void 0:T.subject_line)??"—"})}),i.jsx("td",{style:{padding:"8px",color:W.winner==="B"?"#4caf50":"#555",fontSize:11,maxWidth:150},children:i.jsx("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:($==null?void 0:$.subject_line)??"—"})}),i.jsxs("td",{style:{padding:"8px",color:"#4caf50",fontWeight:700},children:["Seq ",W.winner]}),i.jsx("td",{style:{padding:"8px",color:"#777",fontSize:11},children:W.reason})]},W.position)})})]})]}),i.jsxs("div",{style:{background:c.comparison.winner==="A"?"#0a1e0a":"#12121f",border:`1px solid ${c.comparison.winner==="A"?"#1e4a1e":"#1a1a2e"}`,borderRadius:14,padding:16,marginBottom:12},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[i.jsx("span",{style:{fontSize:11,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"Sequence A"}),c.comparison.winner==="A"&&i.jsx("span",{style:{fontSize:9,padding:"2px 7px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:700},children:"WINNER"}),i.jsx("span",{style:{marginLeft:"auto",fontSize:20,fontWeight:900,color:"#fff"},children:c.sequence_a.overall_score}),i.jsx("span",{style:{fontSize:14,fontWeight:900,color:bl[c.sequence_a.grade]??"#777"},children:c.sequence_a.grade})]}),c.sequence_a.emails.map(W=>{const T=_l(W.framework_used);return i.jsxs("div",{onClick:()=>_(z===W.position?null:W.position),style:{padding:"8px 12px",marginBottom:6,background:"#0d0d1a",border:"1px solid #1a1a2e",borderRadius:8,cursor:"pointer",display:"flex",alignItems:"center",gap:8},children:[i.jsx("span",{style:{fontSize:10,color:ye,fontFamily:"monospace",fontWeight:700,width:16},children:W.position}),i.jsx("span",{style:{flex:1,fontSize:12,color:"#ccc",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.subject_line}),i.jsx("span",{style:{fontSize:9,padding:"1px 6px",borderRadius:3,background:T+"20",color:T,border:`1px solid ${T}33`,fontFamily:"monospace",flexShrink:0},children:W.framework_used.split(" ")[0]})]},W.position)})]}),i.jsxs("div",{style:{background:c.comparison.winner==="B"?"#0a1e0a":"#12121f",border:`1px solid ${c.comparison.winner==="B"?"#1e4a1e":"#1a1a2e"}`,borderRadius:14,padding:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[i.jsx("span",{style:{fontSize:11,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"Sequence B"}),c.comparison.winner==="B"&&i.jsx("span",{style:{fontSize:9,padding:"2px 7px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:700},children:"WINNER"}),i.jsx("span",{style:{marginLeft:"auto",fontSize:20,fontWeight:900,color:"#fff"},children:c.sequence_b.overall_score}),i.jsx("span",{style:{fontSize:14,fontWeight:900,color:bl[c.sequence_b.grade]??"#777"},children:c.sequence_b.grade})]}),c.sequence_b.emails.map(W=>{const T=_l(W.framework_used);return i.jsxs("div",{onClick:()=>I(R===W.position?null:W.position),style:{padding:"8px 12px",marginBottom:6,background:"#0d0d1a",border:"1px solid #1a1a2e",borderRadius:8,cursor:"pointer",display:"flex",alignItems:"center",gap:8},children:[i.jsx("span",{style:{fontSize:10,color:ye,fontFamily:"monospace",fontWeight:700,width:16},children:W.position}),i.jsx("span",{style:{flex:1,fontSize:12,color:"#ccc",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.subject_line}),i.jsx("span",{style:{fontSize:9,padding:"1px 6px",borderRadius:3,background:T+"20",color:T,border:`1px solid ${T}33`,fontFamily:"monospace",flexShrink:0},children:W.framework_used.split(" ")[0]})]},W.position)})]})]})]})}function Eg(){const[e,t]=x.useState("generate");return i.jsxs("div",{style:{padding:24,maxWidth:760,margin:"0 auto"},children:[i.jsxs("div",{style:{textAlign:"center",marginBottom:28},children:[i.jsx("div",{style:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6,fontFamily:"monospace"},children:"ContentGrade Suite — Generate"}),i.jsxs("h1",{style:{fontSize:28,fontWeight:800,color:"#e0e0e0",letterSpacing:-.5},children:["Email",i.jsx("span",{style:{color:ye},children:"Forge"})]}),i.jsxs("p",{style:{color:"#777",fontSize:14,marginTop:6},children:["Input your product and audience. Get a ",i.jsx("span",{style:{color:"#ccc",fontWeight:500},children:"5-email conversion sequence"})," using proven frameworks."]}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:6,marginTop:12},children:["AIDA","PAS","Hormozi","Cialdini","Storytelling Arc"].map(n=>i.jsx("span",{style:{fontSize:10,padding:"3px 10px",borderRadius:12,background:"#12121f",color:"#666",border:"1px solid #1a1a2e"},children:n},n))})]}),i.jsxs("div",{style:{display:"flex",gap:4,background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:4,marginBottom:24,width:"fit-content"},children:[i.jsx("button",{onClick:()=>t("generate"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="generate"?ye:"transparent",color:e==="generate"?"#000":"#666",transition:"background 0.2s, color 0.2s"},children:"Generate"}),i.jsx("button",{onClick:()=>t("compare"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="compare"?"#0a1e2e":"transparent",color:e==="compare"?ye:"#444",transition:"background 0.2s, color 0.2s"},children:"A/B Compare"})]}),e==="generate"&&i.jsx(bg,{}),e==="compare"&&i.jsx(_g,{}),i.jsx("div",{style:{marginTop:40,textAlign:"center",fontSize:10,color:"#333"},children:"Email sequence generation using AIDA · PAS · Hormozi · Cialdini · Storytelling frameworks · Powered by local Claude session"})]})}const G="#00c853",Cd={A:"#4caf50",B:"#4a90d9",C:"#ffd54f",D:"#ff9800",F:"#ef5350"},bi={high:"#4caf50",medium:"#ffd54f",low:"#ef5350"},_i={low:"#4caf50",medium:"#ffd54f",high:"#ef5350"};function Qr({label:e,score:t}){const n=t>=75?"#4caf50":t>=50?"#ffd54f":"#ef5350";return i.jsxs("div",{style:{textAlign:"center"},children:[i.jsx("div",{style:{fontSize:22,fontWeight:900,color:n},children:t}),i.jsx("div",{style:{fontSize:10,color:"#555",marginTop:2},children:e})]})}function Rg({archetype:e}){var t;return i.jsxs("div",{style:{background:"#0d0d1a",border:"1px solid #1a1a2e",borderRadius:10,padding:16,marginBottom:10},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[i.jsx("div",{style:{flex:1},children:i.jsx("span",{style:{fontSize:13,fontWeight:700,color:G},children:e.name})}),i.jsxs("span",{style:{fontSize:18,fontWeight:900,color:"#e0e0e0"},children:[e.percentage,"%"]})]}),i.jsx("div",{style:{height:4,background:"#1a1a2e",borderRadius:2,marginBottom:10,overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",background:G,borderRadius:2,width:`${e.percentage}%`}})}),i.jsx("p",{style:{fontSize:12,color:"#aaa",lineHeight:1.5,margin:"0 0 8px"},children:e.description}),((t=e.evidence)==null?void 0:t.length)>0&&i.jsxs("div",{style:{fontSize:10,color:"#555",fontStyle:"italic",borderLeft:`2px solid ${G}44`,paddingLeft:8},children:['"',e.evidence[0],'"']})]})}function Tg(){var m,p,S,g,v,j,f,c,y,w,k,z,_,R,I,B,ne,Re,Te,W,T,$,ae,b,P,A,M,K,ve,Xe;const[e,t]=x.useState(""),[n,r]=x.useState(!1),[o,l]=x.useState(null),[s,a]=x.useState(null);async function u(){if(!(e.trim().length<50)){r(!0),l(null),a(null);try{const N=await fetch(`${J}/demos/audience-decoder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:e.trim()})}),U=await N.json();if(!N.ok)throw new Error(U.error||`HTTP ${N.status}`);l(U)}catch(N){a(N instanceof Error?N.message:"Analysis failed.")}finally{r(!1)}}}const d=o?Cd[((m=o.grade)==null?void 0:m[0])??""]??"#777":"#777",h=e.trim().length>=50;return i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{marginBottom:20},children:[i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"12px 14px",fontSize:14,color:"#e0e0e0",resize:"vertical",outline:"none",fontFamily:"inherit",boxSizing:"border-box",minHeight:180},rows:8,placeholder:"Paste your last 10-20 tweets, threads, or posts — one per line or separated by ---",value:e,onChange:N=>t(N.target.value)}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},children:[i.jsxs("span",{style:{fontSize:10,color:"#444"},children:[e.length," chars · minimum 50 chars"]}),i.jsx("button",{onClick:u,disabled:n||!h,style:{padding:"9px 22px",background:n||!h?"#333":G,color:"#000",fontWeight:700,fontSize:13,border:"none",borderRadius:8,cursor:n||!h?"not-allowed":"pointer",opacity:n||!h?.5:1},children:n?"Decoding...":"Decode My Audience"})]})]}),s&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:s}),o&&i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#12121f",border:`1px solid ${G}44`,borderRadius:14,padding:24,textAlign:"center",marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,marginBottom:12},children:[i.jsx("span",{style:{fontSize:56,fontWeight:900,color:"#fff"},children:o.overall_score}),i.jsxs("div",{style:{textAlign:"left"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:900,color:d},children:o.grade}),i.jsx("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2},children:"/ 100"})]})]}),i.jsx("p",{style:{color:G,fontSize:15,fontWeight:600,maxWidth:480,margin:"0 auto 14px",lineHeight:1.4},children:o.headline}),i.jsx(ht,{shareText:`My audience decoded: ${o.headline} — Analyzed free on AudienceDecoder`,accentColor:G})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:14},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,margin:0},children:"Audience Archetypes"}),i.jsx("span",{style:{fontSize:9,padding:"2px 8px",borderRadius:4,background:"#4caf5020",color:"#4caf50",border:"1px solid #4caf5033",fontFamily:"monospace",fontWeight:600,letterSpacing:1},children:"FREE"})]}),(p=o.audience_archetypes)==null?void 0:p.map((N,U)=>i.jsx(Rg,{archetype:N},U))]}),i.jsx(Ln,{tool:"audience-decoder",score:o.overall_score,accentColor:G}),i.jsxs(It,{accentColor:G,label:"Full Audience Intelligence Report",priceLabel:"Unlock Deep Report — $49",children:[i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:16},children:"Engagement Model"}),i.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:12,marginBottom:16},children:[i.jsx(Qr,{label:"Hook Effectiveness",score:((g=(S=o.engagement_model)==null?void 0:S.hook_effectiveness)==null?void 0:g.score)??0}),i.jsx(Qr,{label:"CTA Effectiveness",score:((j=(v=o.engagement_model)==null?void 0:v.cta_effectiveness)==null?void 0:j.score)??0}),i.jsx(Qr,{label:"Controversy Index",score:((c=(f=o.engagement_model)==null?void 0:f.controversy_index)==null?void 0:c.score)??0}),i.jsx(Qr,{label:"Shareability",score:((y=o.engagement_model)==null?void 0:y.shareability_score)??0})]}),((k=(w=o.engagement_model)==null?void 0:w.cta_effectiveness)==null?void 0:k.recommendation)&&i.jsxs("div",{style:{background:"#0d0d1a",borderRadius:8,padding:12},children:[i.jsx("span",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:1},children:"CTA Recommendation: "}),i.jsx("span",{style:{fontSize:12,color:"#aaa"},children:o.engagement_model.cta_effectiveness.recommendation})]})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Content Patterns"}),i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:14},children:[i.jsxs("div",{style:{flex:1,background:"#0d1f0d",border:"1px solid #1e4a1e",borderRadius:8,padding:12},children:[i.jsx("div",{style:{fontSize:10,color:"#2e7d32",textTransform:"uppercase",letterSpacing:1,marginBottom:6},children:"Working Well"}),(_=(z=o.content_patterns)==null?void 0:z.top_performing_themes)==null?void 0:_.map((N,U)=>i.jsxs("div",{style:{fontSize:12,color:"#aaa",marginBottom:4},children:[i.jsx("span",{style:{color:"#4caf50",fontWeight:600},children:N.theme}),i.jsxs("span",{style:{color:"#555"},children:[" · ",N.frequency,"x · ",N.avg_engagement_signal]})]},U))]}),i.jsxs("div",{style:{flex:1,background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:8,padding:12},children:[i.jsx("div",{style:{fontSize:10,color:"#c62828",textTransform:"uppercase",letterSpacing:1,marginBottom:6},children:"Underperforming"}),(I=(R=o.content_patterns)==null?void 0:R.underperforming_themes)==null?void 0:I.map((N,U)=>i.jsxs("div",{style:{fontSize:12,color:"#aaa",marginBottom:4},children:[i.jsx("span",{style:{color:"#ef5350",fontWeight:600},children:N.theme}),i.jsxs("span",{style:{color:"#555"},children:[" · ",N.frequency,"x · ",N.avg_engagement_signal]})]},U))]})]}),i.jsxs("div",{style:{display:"flex",gap:8},children:[i.jsxs("div",{style:{background:"#0d0d1a",borderRadius:8,padding:"8px 12px",fontSize:11,color:"#aaa"},children:[i.jsx("span",{style:{color:"#555"},children:"Best format: "}),i.jsx("span",{style:{color:G,fontWeight:600},children:(B=o.content_patterns)==null?void 0:B.optimal_format})]}),i.jsxs("div",{style:{background:"#0d0d1a",borderRadius:8,padding:"8px 12px",fontSize:11,color:"#aaa"},children:[i.jsx("span",{style:{color:"#555"},children:"Best length: "}),i.jsx("span",{style:{color:G,fontWeight:600},children:(ne=o.content_patterns)==null?void 0:ne.optimal_length})]}),i.jsxs("div",{style:{background:"#0d0d1a",borderRadius:8,padding:"8px 12px",fontSize:11,color:"#aaa"},children:[i.jsx("span",{style:{color:"#555"},children:"Tone: "}),i.jsx("span",{style:{color:"#ccc"},children:(Te=(Re=o.content_patterns)==null?void 0:Re.voice_analysis)==null?void 0:Te.tone})]})]})]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Growth Opportunities"}),(W=o.growth_opportunities)==null?void 0:W.map((N,U)=>i.jsxs("div",{style:{background:"#0d0d1a",border:"1px solid #1a1a2e",borderRadius:8,padding:14,marginBottom:8},children:[i.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,marginBottom:6},children:[i.jsxs("span",{style:{fontSize:10,color:"#555",fontFamily:"monospace",flexShrink:0,marginTop:2},children:["#",U+1]}),i.jsx("div",{style:{flex:1,fontSize:13,color:"#e0e0e0",fontWeight:600},children:N.opportunity}),i.jsxs("div",{style:{display:"flex",gap:4,flexShrink:0},children:[i.jsxs("span",{style:{fontSize:9,padding:"2px 7px",borderRadius:4,background:bi[N.impact]+"20",color:bi[N.impact],border:`1px solid ${bi[N.impact]}44`,fontWeight:700},children:[N.impact," impact"]}),i.jsxs("span",{style:{fontSize:9,padding:"2px 7px",borderRadius:4,background:_i[N.effort]+"20",color:_i[N.effort],border:`1px solid ${_i[N.effort]}44`,fontWeight:700},children:[N.effort," effort"]})]})]}),i.jsx("p",{style:{fontSize:11,color:"#666",margin:0,lineHeight:1.5},children:N.explanation})]},U))]}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:0},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Content Calendar"}),i.jsx("div",{style:{display:"flex",gap:10,marginBottom:14},children:[{label:"Threads/week",val:($=(T=o.content_calendar)==null?void 0:T.weekly_mix)==null?void 0:$.threads},{label:"Posts/week",val:(b=(ae=o.content_calendar)==null?void 0:ae.weekly_mix)==null?void 0:b.single_posts},{label:"Questions/week",val:(A=(P=o.content_calendar)==null?void 0:P.weekly_mix)==null?void 0:A.questions}].map(({label:N,val:U})=>i.jsxs("div",{style:{flex:1,background:"#0d0d1a",borderRadius:8,padding:12,textAlign:"center"},children:[i.jsx("div",{style:{fontSize:22,fontWeight:900,color:G},children:U??0}),i.jsx("div",{style:{fontSize:10,color:"#555",marginTop:2},children:N})]},N))}),((K=(M=o.content_calendar)==null?void 0:M.theme_rotation)==null?void 0:K.length)>0&&i.jsxs("div",{style:{marginBottom:12},children:[i.jsx("div",{style:{fontSize:10,color:"#444",textTransform:"uppercase",letterSpacing:1,marginBottom:8},children:"Theme Rotation"}),o.content_calendar.theme_rotation.map((N,U)=>i.jsx("div",{style:{fontSize:12,color:"#aaa",marginBottom:4,paddingLeft:8,borderLeft:`2px solid ${G}44`},children:N},U))]}),((Xe=(ve=o.content_calendar)==null?void 0:ve.gaps_to_fill)==null?void 0:Xe.length)>0&&i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:10,color:"#444",textTransform:"uppercase",letterSpacing:1,marginBottom:8},children:"Content Gaps to Fill"}),o.content_calendar.gaps_to_fill.map((N,U)=>i.jsxs("div",{style:{fontSize:11,color:"#888",marginBottom:4,display:"flex",alignItems:"flex-start",gap:6},children:[i.jsx("span",{style:{color:"#ffd54f",flexShrink:0},children:"→"})," ",N]},U))]})]})]}),i.jsx(Jt,{accentColor:G,product:"audiencedecoder"})]})]})}function Bg(){var p,S,g,v,j;const[e,t]=x.useState(""),[n,r]=x.useState(""),[o,l]=x.useState(!1),[s,a]=x.useState(null),[u,d]=x.useState(null);async function h(){if(!(e.trim().length<50||n.trim().length<50)){l(!0),a(null),d(null);try{const f=await fetch(`${J}/demos/audience-decoder/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content_a:e.trim(),content_b:n.trim()})}),c=await f.json();if(!f.ok)throw new Error(c.error||`HTTP ${f.status}`);a(c)}catch(f){d(f instanceof Error?f.message:"Comparison failed.")}finally{l(!1)}}}const m=e.trim().length>=50&&n.trim().length>=50;return i.jsx(It,{accentColor:G,label:"Profile Compare Mode",priceLabel:"Unlock Deep Report — $49",children:i.jsxs("div",{children:[i.jsx("div",{style:{display:"flex",gap:12,marginBottom:12},children:["A","B"].map(f=>{const c=f==="A"?e:n,y=f==="A"?t:r;return i.jsxs("div",{style:{flex:1},children:[i.jsxs("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6},children:["Creator ",f]}),i.jsx("textarea",{style:{width:"100%",background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:"10px 12px",fontSize:12,color:"#e0e0e0",resize:"vertical",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},rows:8,placeholder:`Paste Creator ${f}'s content...`,value:c,onChange:w=>y(w.target.value)})]},f)})}),i.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:20},children:i.jsx("button",{onClick:h,disabled:o||!m,style:{padding:"9px 22px",background:o||!m?"#333":G,color:"#000",fontWeight:700,fontSize:13,border:"none",borderRadius:8,cursor:o||!m?"not-allowed":"pointer",opacity:o||!m?.5:1},children:o?"Comparing...":"Compare Profiles"})}),u&&i.jsx("div",{style:{background:"#2e1a1a",border:"1px solid #5a2a2a",borderRadius:10,padding:12,marginBottom:16,color:"#ef5350",fontSize:12},children:u}),s&&i.jsxs("div",{children:[i.jsx("div",{style:{display:"flex",gap:12,marginBottom:16},children:["A","B"].map(f=>{var w;const c=f==="A"?s.analysis_a:s.analysis_b,y=Cd[((w=c==null?void 0:c.grade)==null?void 0:w[0])??""]??"#777";return i.jsxs("div",{style:{flex:1,background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:16,textAlign:"center"},children:[i.jsxs("div",{style:{fontSize:10,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:8},children:["Creator ",f]}),i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:8,marginBottom:8},children:[i.jsx("span",{style:{fontSize:40,fontWeight:900,color:"#fff"},children:c==null?void 0:c.overall_score}),i.jsx("span",{style:{fontSize:22,fontWeight:900,color:y},children:c==null?void 0:c.grade})]}),i.jsx("p",{style:{fontSize:11,color:G,margin:0,lineHeight:1.4},children:c==null?void 0:c.headline})]},f)})}),i.jsxs("div",{style:{background:"#12121f",border:"1px solid #1a1a2e",borderRadius:14,padding:20,marginBottom:16},children:[i.jsx("h2",{style:{fontSize:11,fontWeight:600,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:14},children:"Comparative Analysis"}),i.jsxs("div",{style:{display:"flex",gap:12,marginBottom:14},children:[i.jsxs("div",{style:{flex:1,background:"#0d0d1a",borderRadius:8,padding:12,textAlign:"center"},children:[i.jsxs("div",{style:{fontSize:22,fontWeight:900,color:"#ffd54f"},children:[(p=s.comparison)==null?void 0:p.audience_overlap,"%"]}),i.jsx("div",{style:{fontSize:10,color:"#555",marginTop:2},children:"Audience Overlap"})]}),i.jsxs("div",{style:{flex:1,background:"#0d0d1a",borderRadius:8,padding:12,textAlign:"center"},children:[i.jsx("div",{style:{fontSize:22,fontWeight:900,color:G},children:(S=s.comparison)==null?void 0:S.differentiation_score}),i.jsx("div",{style:{fontSize:10,color:"#555",marginTop:2},children:"Differentiation Score"})]}),i.jsxs("div",{style:{flex:1,background:"#0d0d1a",borderRadius:8,padding:12,textAlign:"center"},children:[i.jsx("div",{style:{fontSize:15,fontWeight:800,color:"#4a90d9",textTransform:"capitalize"},children:(g=s.comparison)==null?void 0:g.collaboration_potential}),i.jsx("div",{style:{fontSize:10,color:"#555",marginTop:2},children:"Collab Potential"})]})]}),((v=s.comparison)==null?void 0:v.winner_by_category)&&i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:10,color:"#444",textTransform:"uppercase",letterSpacing:1,marginBottom:8},children:"Category Winners"}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:Object.entries(s.comparison.winner_by_category).map(([f,c])=>i.jsxs("div",{style:{background:"#0d0d1a",border:"1px solid #1a1a2e",borderRadius:6,padding:"5px 10px",fontSize:11},children:[i.jsxs("span",{style:{color:"#666"},children:[f,": "]}),i.jsx("span",{style:{color:c==="tie"?"#ffd54f":G,fontWeight:700},children:c==="tie"?"Tie":`Creator ${c}`})]},f))})]}),((j=s.comparison)==null?void 0:j.strategic_advice)&&i.jsxs("div",{style:{marginTop:14,background:"#0d0d1a",borderRadius:8,padding:12},children:[i.jsx("div",{style:{fontSize:10,color:"#444",textTransform:"uppercase",letterSpacing:1,marginBottom:6},children:"Strategic Advice"}),i.jsx("p",{style:{fontSize:12,color:"#aaa",margin:0,lineHeight:1.6},children:s.comparison.strategic_advice})]})]})]})]})})}function Pg(){const[e,t]=x.useState("score");return i.jsxs("div",{style:{padding:24,maxWidth:720,margin:"0 auto"},children:[i.jsxs("div",{style:{textAlign:"center",marginBottom:28},children:[i.jsx("div",{style:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:2,marginBottom:6,fontFamily:"monospace"},children:"Content Intelligence Stack"}),i.jsxs("h1",{style:{fontSize:28,fontWeight:800,color:"#e0e0e0",letterSpacing:-.5},children:["Audience",i.jsx("span",{style:{color:G},children:"Decoder"})]}),i.jsxs("p",{style:{color:"#777",fontSize:14,marginTop:6},children:["Paste your content. Discover who reads you, what resonates, and"," ",i.jsx("span",{style:{color:"#ccc",fontWeight:500},children:"exactly what to post next."})]}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:6,marginTop:12},children:["Audience Archetypes","Content Patterns","Engagement Model","Growth Opportunities","Content Calendar"].map(n=>i.jsx("span",{style:{fontSize:10,padding:"3px 10px",borderRadius:12,background:"#12121f",color:"#666",border:"1px solid #1a1a2e"},children:n},n))})]}),i.jsxs("div",{style:{display:"flex",gap:4,background:"#12121f",border:"1px solid #1a1a2e",borderRadius:10,padding:4,marginBottom:24,width:"fit-content"},children:[i.jsx("button",{onClick:()=>t("score"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="score"?G:"transparent",color:e==="score"?"#000":"#666",transition:"background 0.2s, color 0.2s"},children:"Decode"}),i.jsxs("button",{onClick:()=>t("compare"),style:{padding:"7px 18px",borderRadius:8,border:"none",cursor:"pointer",fontSize:12,fontWeight:600,background:e==="compare"?"#0a2e1a":"transparent",color:e==="compare"?"#00c853":"#444",transition:"background 0.2s, color 0.2s",display:"flex",alignItems:"center",gap:6},children:["Compare Creators",i.jsx("span",{style:{fontSize:8,padding:"1px 6px",borderRadius:4,background:G+"33",color:G,border:`1px solid ${G}44`,fontFamily:"monospace",fontWeight:700,letterSpacing:.5},children:"PRO"})]})]}),e==="score"&&i.jsx(Tg,{}),e==="compare"&&i.jsx(Bg,{}),i.jsx("div",{style:{marginTop:40,textAlign:"center",fontSize:10,color:"#333"},children:"Audience intelligence for creators · Powered by local Claude session"})]})}const Wg=[{path:"/headline",label:"HeadlineGrader"},{path:"/page-roast",label:"PageRoast"},{path:"/ad-scorer",label:"AdScorer"},{path:"/thread",label:"ThreadGrader"},{path:"/email-forge",label:"EmailForge"},{path:"/audience",label:"AudienceDecoder"}];function Ag(){return i.jsxs("nav",{style:{background:"#080810",borderBottom:"1px solid #12121f",padding:"0 24px",display:"flex",alignItems:"center",gap:4,overflowX:"auto",flexShrink:0},children:[i.jsx("span",{style:{fontSize:12,fontWeight:800,color:"#555",marginRight:16,whiteSpace:"nowrap",letterSpacing:1},children:"CG"}),Wg.map(({path:e,label:t})=>i.jsx(ng,{to:e,style:({isActive:n})=>({padding:"12px 14px",fontSize:12,fontWeight:600,color:n?"#e0e0e0":"#444",textDecoration:"none",borderBottom:n?"2px solid #7c4dff":"2px solid transparent",whiteSpace:"nowrap"}),children:t},e))]})}function Ng(){return i.jsx(qh,{children:i.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[i.jsx(Ag,{}),i.jsx("main",{style:{flex:1,overflowY:"auto"},children:i.jsxs(Hh,{children:[i.jsx(nt,{path:"/",element:i.jsx($a,{to:"/headline",replace:!0})}),i.jsx(nt,{path:"/headline",element:i.jsx(fg,{})}),i.jsx(nt,{path:"/page-roast",element:i.jsx(mg,{})}),i.jsx(nt,{path:"/ad-scorer",element:i.jsx(Sg,{})}),i.jsx(nt,{path:"/thread",element:i.jsx(kg,{})}),i.jsx(nt,{path:"/email-forge",element:i.jsx(Eg,{})}),i.jsx(nt,{path:"/audience",element:i.jsx(Pg,{})}),i.jsx(nt,{path:"*",element:i.jsx($a,{to:"/headline",replace:!0})})]})})]})})}Ei.createRoot(document.getElementById("root")).render(i.jsx(iu.StrictMode,{children:i.jsx(Ng,{})}));