diff --git "a/assets/index-019c5529.js" "b/assets/index-019c5529.js" new file mode 100644--- /dev/null +++ "b/assets/index-019c5529.js" @@ -0,0 +1,40 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function sc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},nl={},Gu={exports:{}},L={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zn=Symbol.for("react.element"),ac=Symbol.for("react.portal"),cc=Symbol.for("react.fragment"),dc=Symbol.for("react.strict_mode"),fc=Symbol.for("react.profiler"),pc=Symbol.for("react.provider"),mc=Symbol.for("react.context"),hc=Symbol.for("react.forward_ref"),yc=Symbol.for("react.suspense"),vc=Symbol.for("react.memo"),gc=Symbol.for("react.lazy"),Fo=Symbol.iterator;function xc(e){return e===null||typeof e!="object"?null:(e=Fo&&e[Fo]||e["@@iterator"],typeof e=="function"?e:null)}var Ju={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qu=Object.assign,bu={};function on(e,t,n){this.props=e,this.context=t,this.refs=bu,this.updater=n||Ju}on.prototype.isReactComponent={};on.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")};on.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function es(){}es.prototype=on.prototype;function Vi(e,t,n){this.props=e,this.context=t,this.refs=bu,this.updater=n||Ju}var Hi=Vi.prototype=new es;Hi.constructor=Vi;qu(Hi,on.prototype);Hi.isPureReactComponent=!0;var $o=Array.isArray,ts=Object.prototype.hasOwnProperty,Bi={current:null},ns={key:!0,ref:!0,__self:!0,__source:!0};function rs(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)ts.call(t,r)&&!ns.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=E[W];if(0>>1;Wl(wl,z))gtl(tr,wl)?(E[W]=tr,E[gt]=z,W=gt):(E[W]=wl,E[vt]=z,W=vt);else if(gtl(tr,z))E[W]=tr,E[gt]=z,W=gt;else break e}}return P}function l(E,P){var z=E.sortIndex-P.sortIndex;return z!==0?z:E.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],d=[],v=1,y=null,h=3,w=!1,S=!1,k=!1,M=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 a(E){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=E)r(d),P.sortIndex=P.expirationTime,t(s,P);else break;P=n(d)}}function m(E){if(k=!1,a(E),!S)if(n(s)!==null)S=!0,gl(g);else{var P=n(d);P!==null&&xl(m,P.startTime-E)}}function g(E,P){S=!1,k&&(k=!1,f(j),j=-1),w=!0;var z=h;try{for(a(P),y=n(s);y!==null&&(!(y.expirationTime>P)||E&&!je());){var W=y.callback;if(typeof W=="function"){y.callback=null,h=y.priorityLevel;var Z=W(y.expirationTime<=P);P=e.unstable_now(),typeof Z=="function"?y.callback=Z:y===n(s)&&r(s),a(P)}else r(s);y=n(s)}if(y!==null)var er=!0;else{var vt=n(d);vt!==null&&xl(m,vt.startTime-P),er=!1}return er}finally{y=null,h=z,w=!1}}var _=!1,C=null,j=-1,B=5,D=-1;function je(){return!(e.unstable_now()-DE||125W?(E.sortIndex=z,t(d,E),n(s)===null&&E===n(d)&&(k?(f(j),j=-1):k=!0,xl(m,z-W))):(E.sortIndex=Z,t(s,E),S||w||(S=!0,gl(g))),E},e.unstable_shouldYield=je,e.unstable_wrapCallback=function(E){var P=h;return function(){var z=h;h=P;try{return E.apply(this,arguments)}finally{h=z}}}})(ss);us.exports=ss;var Dc=us.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tc=he,ge=Dc;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,Ic=/^[: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]*$/,Uo={},Vo={};function Mc(e){return Zl.call(Vo,e)?!0:Zl.call(Uo,e)?!1:Ic.test(e)?Vo[e]=!0:(Uo[e]=!0,!1)}function Rc(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 Oc(e,t,n,r){if(t===null||typeof t>"u"||Rc(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 se(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ee[t]=new se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new se(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){ee[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qi=/[\-:]([a-z])/g;function Ki(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(Qi,Ki);ee[t]=new se(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(Qi,Ki);ee[t]=new se(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(Qi,Ki);ee[t]=new se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yi(e,t,n,r){var l=ee.hasOwnProperty(t)?ee[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{Nl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xn(e):""}function Fc(e){switch(e.tag){case 5:return xn(e.type);case 16:return xn("Lazy");case 13:return xn("Suspense");case 19:return xn("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function bl(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 Rt:return"Fragment";case Mt:return"Portal";case Gl:return"Profiler";case Xi:return"StrictMode";case Jl:return"Suspense";case ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ds:return(e.displayName||"Context")+".Consumer";case cs:return(e._context.displayName||"Context")+".Provider";case Zi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gi:return t=e.displayName||null,t!==null?t:bl(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return bl(e(t))}catch{}}return null}function $c(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 bl(t);case 8:return t===Xi?"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 ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ps(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ac(e){var t=ps(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lr(e){e._valueTracker||(e._valueTracker=Ac(e))}function ms(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ps(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tr(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 ei(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ft(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 hs(e,t){t=t.checked,t!=null&&Yi(e,"checked",t,!1)}function ti(e,t){hs(e,t);var n=ft(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")?ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&ni(e,t.type,ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wo(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 ni(e,t,n){(t!=="number"||Tr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wn=Array.isArray;function Kt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function In(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nn={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},Uc=["Webkit","ms","Moz","O"];Object.keys(Nn).forEach(function(e){Uc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]})});function xs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function ws(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=xs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Vc=V({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 ii(e,t){if(t){if(Vc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function oi(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 ui=null;function Ji(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var si=null,Yt=null,Xt=null;function Yo(e){if(e=qn(e)){if(typeof si!="function")throw Error(x(280));var t=e.stateNode;t&&(t=ul(t),si(e.stateNode,e.type,t))}}function Ss(e){Yt?Xt?Xt.push(e):Xt=[e]:Yt=e}function ks(){if(Yt){var e=Yt,t=Xt;if(Xt=Yt=null,Yo(e),t)for(e=0;e>>=0,e===0?32:31-(qc(e)/bc|0)|0}var or=64,ur=4194304;function Sn(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 Or(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Sn(u):(i&=o,i!==0&&(r=Sn(i)))}else o=n&~l,o!==0?r=Sn(o):i!==0&&(r=Sn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Gn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Te(t),e[t]=n}function rd(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=Cn),nu=String.fromCharCode(32),ru=!1;function Hs(e,t){switch(e){case"keyup":return Dd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ot=!1;function Id(e,t){switch(e){case"compositionend":return Bs(t);case"keypress":return t.which!==32?null:(ru=!0,nu);case"textInput":return e=t.data,e===nu&&ru?null:e;default:return null}}function Md(e,t){if(Ot)return e==="compositionend"||!io&&Hs(e,t)?(e=Us(),Nr=no=nt=null,Ot=!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)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=uu(n)}}function Ys(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ys(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xs(){for(var e=window,t=Tr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tr(e.document)}return t}function oo(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 Bd(e){var t=Xs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ys(n.ownerDocument.documentElement,n)){if(r!==null&&oo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=su(n,i);var o=su(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ft=null,mi=null,jn=null,hi=!1;function au(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hi||Ft==null||Ft!==Tr(r)||(r=Ft,"selectionStart"in r&&oo(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}),jn&&An(jn,r)||(jn=r,r=Ar(mi,"onSelect"),0Ut||(e.current=Si[Ut],Si[Ut]=null,Ut--)}function R(e,t){Ut++,Si[Ut]=e.current,e.current=t}var pt={},le=ht(pt),de=ht(!1),_t=pt;function bt(e,t){var n=e.type.contextTypes;if(!n)return pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function fe(e){return e=e.childContextTypes,e!=null}function Vr(){F(de),F(le)}function yu(e,t,n){if(le.current!==pt)throw Error(x(168));R(le,t),R(de,n)}function ra(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(x(108,$c(e)||"Unknown",l));return V({},n,r)}function Hr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pt,_t=le.current,R(le,e),R(de,de.current),!0}function vu(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=ra(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,F(de),F(le),R(le,e)):F(de),R(de,n)}var He=null,sl=!1,$l=!1;function la(e){He===null?He=[e]:He.push(e)}function tf(e){sl=!0,la(e)}function yt(){if(!$l&&He!==null){$l=!0;var e=0,t=I;try{var n=He;for(I=1;e>=o,l-=o,Be=1<<32-Te(t)+l|n<j?(B=C,C=null):B=C.sibling;var D=h(f,C,a[j],m);if(D===null){C===null&&(C=B);break}e&&C&&D.alternate===null&&t(f,C),c=i(D,c,j),_===null?g=D:_.sibling=D,_=D,C=B}if(j===a.length)return n(f,C),$&&xt(f,j),g;if(C===null){for(;jj?(B=C,C=null):B=C.sibling;var je=h(f,C,D.value,m);if(je===null){C===null&&(C=B);break}e&&C&&je.alternate===null&&t(f,C),c=i(je,c,j),_===null?g=je:_.sibling=je,_=je,C=B}if(D.done)return n(f,C),$&&xt(f,j),g;if(C===null){for(;!D.done;j++,D=a.next())D=y(f,D.value,m),D!==null&&(c=i(D,c,j),_===null?g=D:_.sibling=D,_=D);return $&&xt(f,j),g}for(C=r(f,C);!D.done;j++,D=a.next())D=w(C,f,j,D.value,m),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?j:D.key),c=i(D,c,j),_===null?g=D:_.sibling=D,_=D);return e&&C.forEach(function(an){return t(f,an)}),$&&xt(f,j),g}function M(f,c,a,m){if(typeof a=="object"&&a!==null&&a.type===Rt&&a.key===null&&(a=a.props.children),typeof a=="object"&&a!==null){switch(a.$$typeof){case rr:e:{for(var g=a.key,_=c;_!==null;){if(_.key===g){if(g=a.type,g===Rt){if(_.tag===7){n(f,_.sibling),c=l(_,a.props.children),c.return=f,f=c;break e}}else if(_.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===qe&&wu(g)===_.type){n(f,_.sibling),c=l(_,a.props),c.ref=yn(f,_,a),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}a.type===Rt?(c=Ct(a.props.children,f.mode,m,a.key),c.return=f,f=c):(m=Dr(a.type,a.key,a.props,null,f.mode,m),m.ref=yn(f,c,a),m.return=f,f=m)}return o(f);case Mt:e:{for(_=a.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===a.containerInfo&&c.stateNode.implementation===a.implementation){n(f,c.sibling),c=l(c,a.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Kl(a,f.mode,m),c.return=f,f=c}return o(f);case qe:return _=a._init,M(f,c,_(a._payload),m)}if(wn(a))return S(f,c,a,m);if(dn(a))return k(f,c,a,m);mr(f,a)}return typeof a=="string"&&a!==""||typeof a=="number"?(a=""+a,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,a),c.return=f,f=c):(n(f,c),c=Ql(a,f.mode,m),c.return=f,f=c),o(f)):n(f,c)}return M}var tn=sa(!0),aa=sa(!1),Qr=ht(null),Kr=null,Bt=null,co=null;function fo(){co=Bt=Kr=null}function po(e){var t=Qr.current;F(Qr),e._currentValue=t}function Ei(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 Gt(e,t){Kr=e,co=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ce=!0),e.firstContext=null)}function Ce(e){var t=e._currentValue;if(co!==e)if(e={context:e,memoizedValue:t,next:null},Bt===null){if(Kr===null)throw Error(x(308));Bt=e,Kr.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return t}var kt=null;function mo(e){kt===null?kt=[e]:kt.push(e)}function ca(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,mo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Xe(e,r)}function Xe(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 be=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function da(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 Qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function st(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,T&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Xe(e,n)}return l=r.interleaved,l===null?(t.next=t,mo(r)):(t.next=l.next,l.next=t),r.interleaved=t,Xe(e,n)}function Cr(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,bi(e,n)}}function Su(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,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 Yr(e,t,n,r){var l=e.updateQueue;be=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,d=s.next;s.next=null,o===null?i=d:o.next=d,o=s;var v=e.alternate;v!==null&&(v=v.updateQueue,u=v.lastBaseUpdate,u!==o&&(u===null?v.firstBaseUpdate=d:u.next=d,v.lastBaseUpdate=s))}if(i!==null){var y=l.baseState;o=0,v=d=s=null,u=i;do{var h=u.lane,w=u.eventTime;if((r&h)===h){v!==null&&(v=v.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var S=e,k=u;switch(h=t,w=n,k.tag){case 1:if(S=k.payload,typeof S=="function"){y=S.call(w,y,h);break e}y=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=k.payload,h=typeof S=="function"?S.call(w,y,h):S,h==null)break e;y=V({},y,h);break e;case 2:be=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else w={eventTime:w,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},v===null?(d=v=w,s=y):v=v.next=w,o|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(1);if(v===null&&(s=y),l.baseState=s,l.firstBaseUpdate=d,l.lastBaseUpdate=v,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);zt|=o,e.lanes=o,e.memoizedState=y}}function ku(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ul.transition;Ul.transition={};try{e(!1),t()}finally{I=n,Ul.transition=r}}function Pa(){return _e().memoizedState}function of(e,t,n){var r=ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},za(e))La(t,n);else if(n=ca(e,t,n,r),n!==null){var l=oe();Ie(n,e,r,l),Da(n,t,r)}}function uf(e,t,n){var r=ct(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(za(e))La(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Me(u,o)){var s=t.interleaved;s===null?(l.next=l,mo(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ca(e,t,l,r),n!==null&&(l=oe(),Ie(n,e,r,l),Da(n,t,r))}}function za(e){var t=e.alternate;return e===U||t!==null&&t===U}function La(e,t){Pn=Zr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Da(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bi(e,n)}}var Gr={readContext:Ce,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},sf={readContext:Ce,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Ce,useEffect:Eu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,jr(4194308,4,Na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jr(4194308,4,e,t)},useInsertionEffect:function(e,t){return jr(4,2,e,t)},useMemo:function(e,t){var n=Fe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fe();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=of.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:Nu,useDebugValue:No,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=Nu(!1),t=e[0];return e=lf.bind(null,e[1]),Fe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=U,l=Fe();if($){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),J===null)throw Error(x(349));Pt&30||ha(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Eu(va.bind(null,r,i,e),[e]),r.flags|=2048,Yn(9,ya.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Fe(),t=J.identifierPrefix;if($){var n=We,r=Be;n=(r&~(1<<32-Te(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[$e]=t,e[Hn]=r,Va(e,t,!1,!1),t.stateNode=e;e:{switch(o=oi(n,r),n){case"dialog":O("cancel",e),O("close",e),l=r;break;case"iframe":case"object":case"embed":O("load",e),l=r;break;case"video":case"audio":for(l=0;lln&&(t.flags|=128,r=!0,vn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return ne(t),null}else 2*Q()-i.renderingStartTime>ln&&n!==1073741824&&(t.flags|=128,r=!0,vn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Q(),t.sibling=null,n=A.current,R(A,r?n&1|2:n&1),t):(ne(t),null);case 22:case 23:return zo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?me&1073741824&&(ne(t),t.subtreeFlags&6&&(t.flags|=8192)):ne(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function yf(e,t){switch(so(t),t.tag){case 1:return fe(t.type)&&Vr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nn(),F(de),F(le),go(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vo(t),null;case 13:if(F(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));en()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(A),null;case 4:return nn(),null;case 10:return po(t.type._context),null;case 22:case 23:return zo(),null;case 24:return null;default:return null}}var yr=!1,re=!1,vf=typeof WeakSet=="function"?WeakSet:Set,N=null;function Wt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function Ii(e,t,n){try{n()}catch(r){H(e,t,r)}}var Ru=!1;function gf(e,t){if(yi=Fr,e=Xs(),oo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,d=0,v=0,y=e,h=null;t:for(;;){for(var w;y!==n||l!==0&&y.nodeType!==3||(u=o+l),y!==i||r!==0&&y.nodeType!==3||(s=o+r),y.nodeType===3&&(o+=y.nodeValue.length),(w=y.firstChild)!==null;)h=y,y=w;for(;;){if(y===e)break t;if(h===n&&++d===l&&(u=o),h===i&&++v===r&&(s=o),(w=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=w}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={focusedElem:e,selectionRange:n},Fr=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,M=S.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:ze(t.type,k),M);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var a=t.stateNode.containerInfo;a.nodeType===1?a.textContent="":a.nodeType===9&&a.documentElement&&a.removeChild(a.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(m){H(t,t.return,m)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return S=Ru,Ru=!1,S}function zn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Ii(t,n,i)}l=l.next}while(l!==r)}}function dl(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 Mi(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 Wa(e){var t=e.alternate;t!==null&&(e.alternate=null,Wa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$e],delete t[Hn],delete t[wi],delete t[bd],delete t[ef])),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 Qa(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qa(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 Ri(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=Ur));else if(r!==4&&(e=e.child,e!==null))for(Ri(e,t,n),e=e.sibling;e!==null;)Ri(e,t,n),e=e.sibling}function Oi(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(Oi(e,t,n),e=e.sibling;e!==null;)Oi(e,t,n),e=e.sibling}var q=null,Le=!1;function Je(e,t,n){for(n=n.child;n!==null;)Ka(e,t,n),n=n.sibling}function Ka(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:re||Wt(n,t);case 6:var r=q,l=Le;q=null,Je(e,t,n),q=r,Le=l,q!==null&&(Le?(e=q,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):q.removeChild(n.stateNode));break;case 18:q!==null&&(Le?(e=q,n=n.stateNode,e.nodeType===8?Fl(e.parentNode,n):e.nodeType===1&&Fl(e,n),Fn(e)):Fl(q,n.stateNode));break;case 4:r=q,l=Le,q=n.stateNode.containerInfo,Le=!0,Je(e,t,n),q=r,Le=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Ii(n,t,o),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!re&&(Wt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){H(n,t,u)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(re=(r=re)||n.memoizedState!==null,Je(e,t,n),re=r):Je(e,t,n);break;default:Je(e,t,n)}}function Fu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vf),t.forEach(function(r){var l=jf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wf(r/1960))-r,10e?16:e,rt===null)var r=!1;else{if(e=rt,rt=null,br=0,T&6)throw Error(x(331));var l=T;for(T|=4,N=e.current;N!==null;){var i=N,o=i.child;if(N.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sQ()-jo?Et(e,0):_o|=n),pe(e,t)}function ec(e,t){t===0&&(e.mode&1?(t=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):t=1);var n=oe();e=Xe(e,t),e!==null&&(Gn(e,t,n),pe(e,n))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ec(e,n)}function jf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),ec(e,n)}var tc;tc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||de.current)ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ce=!1,mf(e,t,n);ce=!!(e.flags&131072)}else ce=!1,$&&t.flags&1048576&&ia(t,Wr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pr(e,t),e=t.pendingProps;var l=bt(t,le.current);Gt(t,n),l=wo(null,t,r,e,l,n);var i=So();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,fe(r)?(i=!0,Hr(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ho(t),l.updater=cl,t.stateNode=l,l._reactInternals=t,_i(t,r,e,n),t=zi(null,t,r,!0,i,n)):(t.tag=0,$&&i&&uo(t),ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=zf(r),e=ze(r,e),l){case 0:t=Pi(null,t,r,e,n);break e;case 1:t=Tu(null,t,r,e,n);break e;case 11:t=Lu(null,t,r,e,n);break e;case 14:t=Du(null,t,r,ze(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Pi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Tu(e,t,r,l,n);case 3:e:{if($a(t),e===null)throw Error(x(387));r=t.pendingProps,i=t.memoizedState,l=i.element,da(e,t),Yr(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=rn(Error(x(423)),t),t=Iu(e,t,r,n,l);break e}else if(r!==l){l=rn(Error(x(424)),t),t=Iu(e,t,r,n,l);break e}else for(ye=ut(t.stateNode.containerInfo.firstChild),ve=t,$=!0,De=null,n=aa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(en(),r===l){t=Ze(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return fa(t),e===null&&Ni(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,gi(r,l)?o=null:i!==null&&gi(r,i)&&(t.flags|=32),Fa(e,t),ie(e,t,o,n),t.child;case 6:return e===null&&Ni(t),null;case 13:return Aa(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tn(t,null,r,n):ie(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Lu(e,t,r,l,n);case 7:return ie(e,t,t.pendingProps,n),t.child;case 8:return ie(e,t,t.pendingProps.children,n),t.child;case 12:return ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,R(Qr,r._currentValue),r._currentValue=o,i!==null)if(Me(i.value,o)){if(i.children===l.children&&!de.current){t=Ze(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Qe(-1,n&-n),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ei(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(x(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ei(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Gt(t,n),l=Ce(l),r=r(l),t.flags|=1,ie(e,t,r,n),t.child;case 14:return r=t.type,l=ze(r,t.pendingProps),l=ze(r.type,l),Du(e,t,r,l,n);case 15:return Ra(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Pr(e,t),t.tag=1,fe(r)?(e=!0,Hr(t)):e=!1,Gt(t,n),Ta(t,r,l),_i(t,r,l,n),zi(null,t,r,!0,e,n);case 19:return Ua(e,t,n);case 22:return Oa(e,t,n)}throw Error(x(156,t.tag))};function nc(e,t){return zs(e,t)}function Pf(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 Ne(e,t,n,r){return new Pf(e,t,n,r)}function Do(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zf(e){if(typeof e=="function")return Do(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zi)return 11;if(e===Gi)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=Ne(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 Dr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Do(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Rt:return Ct(n.children,l,i,t);case Xi:o=8,l|=8;break;case Gl:return e=Ne(12,n,t,l|2),e.elementType=Gl,e.lanes=i,e;case Jl:return e=Ne(13,n,t,l),e.elementType=Jl,e.lanes=i,e;case ql:return e=Ne(19,n,t,l),e.elementType=ql,e.lanes=i,e;case fs:return pl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cs:o=10;break e;case ds:o=9;break e;case Zi:o=11;break e;case Gi:o=14;break e;case qe:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ne(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Ct(e,t,n,r){return e=Ne(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=Ne(22,e,r,t),e.elementType=fs,e.lanes=n,e.stateNode={isHidden:!1},e}function Ql(e,t,n){return e=Ne(6,e,null,t),e.lanes=n,e}function Kl(e,t,n){return t=Ne(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lf(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function To(e,t,n,r,l,i,o,u,s){return e=new Lf(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ne(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ho(i),e}function Df(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oc)}catch(e){console.error(e)}}oc(),os.exports=xe;var Of=os.exports,Qu=Of;Xl.createRoot=Qu.createRoot,Xl.hydrateRoot=Qu.hydrateRoot;var Ff={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const $f=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Af=(e,t)=>{const n=he.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,children:u,...s},d)=>he.createElement("svg",{ref:d,...Ff,width:l,height:l,stroke:r,strokeWidth:o?Number(i)*24/Number(l):i,className:`lucide lucide-${$f(e)}`,...s},[...t.map(([v,y])=>he.createElement(v,y)),...(Array.isArray(u)?u:[u])||[]]));return n.displayName=`${e}`,n};var Re=Af;const Yl=Re("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]),Uf=Re("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),xr=Re("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Ku=Re("Brain",[["path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z",key:"1mhkh5"}],["path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z",key:"1d6s00"}]]),Yu=Re("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["polyline",{points:"22 4 12 14.01 9 11.01",key:"6xbx8j"}]]),Vf=Re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),Hf=Re("FileCheck",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),Bf=Re("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Xu=Re("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",key:"3xmgem"}]]),Wf=Re("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),Qf=Re("Wallet",[["path",{d:"M21 12V7H5a2 2 0 0 1 0-4h14v4",key:"195gfw"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h16v-5",key:"195n9w"}],["path",{d:"M18 12a2 2 0 0 0 0 4h4v-4Z",key:"vllfpd"}]]);function Kf(){const[e,t]=he.useState("verify"),[n,r]=he.useState(""),[l,i]=he.useState(null),[o,u]=he.useState(!1),[s,d]=he.useState([]),[v,y]=he.useState(0),h=[{step:"온체인 데이터 수집 중...",detail:"블록체인에서 트랜잭션 이력을 조회합니다",time:500},{step:"트랜잭션 패턴 분석",detail:"최근 100개 트랜잭션의 시간, 금액, 빈도를 분석합니다",time:600},{step:"AI 행동 패턴 학습",detail:"사용자의 거래 습관과 활동 시간대를 학습합니다",time:700},{step:"IP 및 접속 위치 검증",detail:"비정상적인 지역 접속이나 VPN 사용을 탐지합니다",time:500},{step:"서명 유효성 검사",detail:"개인키 서명의 일관성과 무결성을 확인합니다",time:400},{step:"이상 거래 탐지 실행",detail:"ML 모델로 사기, 도난, 피싱 패턴을 스캔합니다",time:800},{step:"DID 신원 인증",detail:"분산 신원과 생체 정보를 대조합니다",time:600},{step:"스마트 컨트랙트 감사",detail:"연결된 컨트랙트의 보안 취약점을 점검합니다",time:500},{step:"ZKP 영지식 증명 생성",detail:"개인정보를 노출하지 않고 소유권을 증명합니다",time:400},{step:"최종 신뢰도 계산",detail:"모든 분석 결과를 종합하여 점수를 산출합니다",time:400}],w=a=>{const m=[],g=Date.now();return m.push({timestamp:new Date(g-5e3).toISOString(),type:"info",category:"온체인 데이터",message:`총 ${a.analysis.onChainData.transactions}개의 트랜잭션 발견`,detail:`첫 활동: ${a.analysis.onChainData.firstActivity}, 최근 활동: ${a.analysis.onChainData.lastActivity}`}),m.push({timestamp:new Date(g-4500).toISOString(),type:"info",category:"온체인 데이터",message:`평균 가스비: ${a.analysis.onChainData.avgGasFee} ETH`,detail:"정상 범위 내의 가스비 사용 패턴"}),a.analysis.aiDetection.behaviorPattern!=="정상"?m.push({timestamp:new Date(g-4e3).toISOString(),type:"warning",category:"AI 행동 분석",message:"비정상적인 거래 패턴 감지",detail:"평소와 다른 시간대(새벽 3-4시)에 대량 거래 발생. 통상 거래량의 350% 증가"}):m.push({timestamp:new Date(g-4e3).toISOString(),type:"success",category:"AI 행동 분석",message:"정상적인 거래 패턴 확인",detail:"일관된 활동 시간대(오전 9시-오후 6시)와 거래 빈도"}),a.analysis.aiDetection.ipConsistency==="변동 있음"?(m.push({timestamp:new Date(g-3500).toISOString(),type:"warning",category:"IP 검증",message:"의심스러운 접속 위치 변경 감지",detail:"24시간 내 4개국(한국→미국→러시아→나이지리아)에서 접속. VPN 또는 프록시 사용 의심"}),m.push({timestamp:new Date(g-3400).toISOString(),type:"error",category:"IP 검증",message:"고위험 국가에서의 접속 확인",detail:"사이버 범죄 다발 지역(IP: 185.220.xxx.xxx)에서 3회 로그인 시도"})):m.push({timestamp:new Date(g-3500).toISOString(),type:"success",category:"IP 검증",message:"IP 위치 일관성 확인",detail:"주요 접속 위치: 한국 서울 (95%), 정상 패턴"}),a.analysis.aiDetection.signatureValidity==="주의 필요"?m.push({timestamp:new Date(g-3e3).toISOString(),type:"warning",category:"서명 검증",message:"서명 불일치 케이스 발견",detail:"최근 5개 트랜잭션 중 2개에서 nonce ��� 이상. 리플레이 공격 가능성 5.2%"}):m.push({timestamp:new Date(g-3e3).toISOString(),type:"success",category:"서명 검증",message:"모든 서명 유효성 확인 완료",detail:"개인키 서명 100% 일치, 위조 흔적 없음"}),a.analysis.aiDetection.fraudRisk>20?(m.push({timestamp:new Date(g-2500).toISOString(),type:"error",category:"이상 거래 탐지",message:`높은 사기 위험도: ${a.analysis.aiDetection.fraudRisk}%`,detail:"알려진 피싱 주소(0x3a2f...)와 2회 거래 내역 확인. 다크웹 마켓플레이스 연관 의심"}),m.push({timestamp:new Date(g-2400).toISOString(),type:"warning",category:"이상 거래 탐지",message:"중복 송금 패턴 감지",detail:"동일 금액(0.5 ETH)을 30분 간격으로 10회 전송. 자동화된 봇 활동 의심"})):m.push({timestamp:new Date(g-2500).toISOString(),type:"success",category:"이상 거래 탐지",message:`낮은 사기 위험도: ${a.analysis.aiDetection.fraudRisk}%`,detail:"의심스러운 주소와의 거래 없음. 화이트리스트 주소와만 거래"}),a.analysis.did.verified?(m.push({timestamp:new Date(g-2e3).toISOString(),type:"success",category:"DID 인증",message:`DID 신원 인증 완료 (점수: ${a.analysis.did.identityScore}/100)`,detail:"Worldcoin 생체 인증 연동 확인. 중복 계정 없음"}),a.analysis.did.biometricMatch&&m.push({timestamp:new Date(g-1900).toISOString(),type:"success",category:"DID 인증",message:"생체 정보 매칭 성공",detail:"홍채 인증 99.7% 일치, 안면 인식 98.2% 일치"})):m.push({timestamp:new Date(g-2e3).toISOString(),type:"error",category:"DID 인증",message:"신원 인증 실패",detail:"등록된 DID 정보 없음. KYC 미완료 상태"}),Math.random()>.7?m.push({timestamp:new Date(g-1500).toISOString(),type:"warning",category:"컨트랙트 감사",message:"스마트 컨트랙트 취약점 발견",detail:"재진입 공격(Reentrancy) 가능성 있는 함수 2개 발견. OpenZeppelin 표준 미준수"}):m.push({timestamp:new Date(g-1500).toISOString(),type:"success",category:"컨트랙트 감사",message:"스마트 컨트랙트 안전성 확인",detail:"OpenZeppelin 라이브러리 사용. 알려진 취약점 없음"}),a.analysis.zkp.validityConfirmed?m.push({timestamp:new Date(g-1e3).toISOString(),type:"success",category:"ZKP 증명",message:"ZKP 생성 및 검증 완료",detail:"SNARK 프로토콜 사용. 개인정보 노출 없이 소유권 증명 성공"}):m.push({timestamp:new Date(g-1e3).toISOString(),type:"warning",category:"ZKP 증명",message:"영지식 증명 검증 보류",detail:"증명 데이터 불충분. 추가 검증 필요"}),m.push({timestamp:new Date(g-500).toISOString(),type:a.isValid?"success":"error",category:"최종 판정",message:a.isValid?"소유권 검증 성공":"소유권 검증 실패",detail:`종합 신뢰도: ${a.ownershipScore}/100 (${a.isValid?"안전":"위험"} 수준)`}),m};he.useEffect(()=>{if(o&&v{const m=h[v];d(g=>[...g,{timestamp:new Date().toISOString(),message:m.step,detail:m.detail}]),y(g=>g+1)},h[v].time);return()=>clearTimeout(a)}},[o,v]);const S=async()=>{u(!0),i(null),d([]),y(0);const a=h.reduce((C,j)=>C+j.time,0);await new Promise(C=>setTimeout(C,a+500));const m=Math.random()>.6,g={isValid:!m,ownershipScore:m?Math.floor(Math.random()*30)+40:Math.floor(Math.random()*20)+80,analysis:{onChainData:{transactions:Math.floor(Math.random()*100)+50,avgGasFee:(Math.random()*.05+.01).toFixed(4),firstActivity:"2023-04-15",lastActivity:"2025-11-07",totalVolume:(Math.random()*50+10).toFixed(2)},aiDetection:{behaviorPattern:m?"의심":"정상",ipConsistency:m?"변동 있음":"일관됨",signatureValidity:m&&Math.random()>.5?"주의 필요":"검증됨",fraudRisk:m?Math.floor(Math.random()*30)+25:Math.floor(Math.random()*15)},did:{verified:!m||Math.random()>.3,identityScore:m?Math.floor(Math.random()*30)+50:Math.floor(Math.random()*20)+80,biometricMatch:!m&&Math.random()>.3},zkp:{proofGenerated:!0,privacyPreserved:!0,validityConfirmed:!m||Math.random()>.4}},alerts:[],recommendations:[]};g.analysis.aiDetection.fraudRisk>20&&(g.alerts.push("높은 사기 위험도 감지"),g.recommendations.push("의심스러운 거래 주소 차단 권장"),g.recommendations.push("2단계 인증(2FA) 활성화 필요")),g.analysis.aiDetection.ipConsistency==="변동 있음"&&(g.alerts.push("비정상적인 IP 패턴 감지"),g.recommendations.push("VPN 사용 시 신뢰할 수 있는 서비스 이용"),g.recommendations.push("로그인 알림 설정 활성화")),g.analysis.aiDetection.signatureValidity==="주의 필요"&&(g.alerts.push("서명 무결성 검토 필요"),g.recommendations.push("하드웨어 월렛 사용 권장")),g.analysis.zkp.validityConfirmed||(g.alerts.push("영지식 증명 검증 필요"),g.recommendations.push("추가 신원 정보 제출 필요")),g.analysis.did.verified||(g.alerts.push("DID 신원 인증 미완료"),g.recommendations.push("KYC 인증 완료 필요"));const _=w(g);d(C=>[...C,..._]),i(g),u(!1)},k=()=>{if(!n||n.trim().length<10){alert("올바른 지갑 주소를 입력해주세요 (10자 이상)");return}S()},M=a=>{switch(a){case"success":return p.jsx(Yu,{size:16,className:"text-green-600"});case"warning":return p.jsx(xr,{size:16,className:"text-orange-600"});case"error":return p.jsx(Uf,{size:16,className:"text-red-600"});default:return p.jsx(Yl,{size:16,className:"text-blue-600"})}},f=()=>p.jsxs("div",{className:"space-y-6",children:[p.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-4",children:"AI-Web3 신뢰 파이프라인"}),p.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[p.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-blue-100 rounded-lg p-6 border-2 border-blue-300",children:[p.jsxs("div",{className:"flex items-center mb-3",children:[p.jsx(Yl,{className:"text-blue-600 mr-2",size:24}),p.jsx("h4",{className:"font-bold text-blue-900",children:"1. 데이터 수집"})]}),p.jsxs("ul",{className:"text-sm text-blue-800 space-y-2",children:[p.jsx("li",{children:"• 온체인 트랜잭션"}),p.jsx("li",{children:"• 오프체인 활동"}),p.jsx("li",{children:"• 스마트 컨트랙트"}),p.jsx("li",{children:"• 사용자 행동 패턴"})]})]}),p.jsxs("div",{className:"bg-gradient-to-br from-purple-50 to-purple-100 rounded-lg p-6 border-2 border-purple-300",children:[p.jsxs("div",{className:"flex items-center mb-3",children:[p.jsx(Ku,{className:"text-purple-600 mr-2",size:24}),p.jsx("h4",{className:"font-bold text-purple-900",children:"2. AI 분석"})]}),p.jsxs("ul",{className:"text-sm text-purple-800 space-y-2",children:[p.jsx("li",{children:"• 이상 거래 탐지"}),p.jsx("li",{children:"• 행동 패턴 학습"}),p.jsx("li",{children:"• 사기 위험 평가"}),p.jsx("li",{children:"• 소유권 추적"})]})]}),p.jsxs("div",{className:"bg-gradient-to-br from-green-50 to-green-100 rounded-lg p-6 border-2 border-green-300",children:[p.jsxs("div",{className:"flex items-center mb-3",children:[p.jsx(Xu,{className:"text-green-600 mr-2",size:24}),p.jsx("h4",{className:"font-bold text-green-900",children:"3. 증명 검증"})]}),p.jsxs("ul",{className:"text-sm text-green-800 space-y-2",children:[p.jsx("li",{children:"• DID 인증"}),p.jsx("li",{children:"• 스마트 계약 감사"}),p.jsx("li",{children:"• ZKP 생성"}),p.jsx("li",{children:"• 자동 증명서 발행"})]})]})]})]}),c=()=>p.jsxs("div",{className:"space-y-6",children:[p.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-4",children:"소유권 증명 검증"}),p.jsxs("div",{className:"bg-white rounded-lg p-6 border-2 border-gray-200",children:[p.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"지갑 주소 입력"}),p.jsxs("div",{className:"flex gap-3",children:[p.jsx("input",{type:"text",placeholder:"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",value:n,onChange:a=>r(a.target.value),className:"flex-1 px-4 py-3 border-2 border-gray-300 rounded-lg focus:border-blue-500 focus:outline-none font-mono text-sm"}),p.jsx("button",{onClick:k,disabled:o,className:"px-6 py-3 bg-gradient-to-r from-blue-600 to-purple-600 text-white font-semibold rounded-lg hover:from-blue-700 hover:to-purple-700 disabled:opacity-50 disabled:cursor-not-allowed transition-all",children:o?"AI 분석 중...":"검증 시작"})]})]}),s.length>0&&p.jsxs("div",{className:"bg-gray-900 rounded-lg p-6 border-2 border-gray-700",children:[p.jsxs("div",{className:"flex items-center mb-4",children:[p.jsx(Vf,{className:"text-green-400 mr-2",size:20}),p.jsx("h4",{className:"font-bold text-green-400",children:"실시간 분석 로그"})]}),p.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:s.map((a,m)=>p.jsx("div",{className:"bg-gray-800 rounded p-3 font-mono text-xs",children:p.jsxs("div",{className:"flex items-start gap-2",children:[a.type&&M(a.type),p.jsxs("div",{className:"flex-1",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[p.jsx("span",{className:"text-gray-400",children:new Date(a.timestamp).toLocaleTimeString("ko-KR")}),a.category&&p.jsxs("span",{className:"text-blue-400 font-semibold",children:["[",a.category,"]"]})]}),p.jsx("div",{className:`${a.type==="success"?"text-green-400":a.type==="warning"?"text-orange-400":a.type==="error"?"text-red-400":"text-white"}`,children:a.message}),a.detail&&p.jsxs("div",{className:"text-gray-500 mt-1 text-xs",children:["└─ ",a.detail]})]})]})},m))})]}),l&&p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:`rounded-lg p-6 border-2 ${l.isValid?"bg-green-50 border-green-300":"bg-red-50 border-red-300"}`,children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center",children:[l.isValid?p.jsx(Yu,{className:"text-green-600 mr-3",size:32}):p.jsx(xr,{className:"text-red-600 mr-3",size:32}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-bold text-lg",children:l.isValid?"✓ 소유권 검증 완료":"✗ 소유권 검증 실패"}),p.jsxs("p",{className:"text-sm text-gray-600",children:["종합 신뢰도: ",l.ownershipScore,"/100"]})]})]}),p.jsxs("div",{className:"text-right",children:[p.jsx("div",{className:`text-3xl font-bold ${l.ownershipScore>=80?"text-green-600":l.ownershipScore>=60?"text-orange-600":"text-red-600"}`,children:l.ownershipScore}),p.jsx("div",{className:"text-xs text-gray-500",children:"신뢰도 점수"})]})]}),l.alerts.length>0&&p.jsxs("div",{className:"mt-4 space-y-2",children:[p.jsx("h5",{className:"font-bold text-sm text-gray-700 mb-2",children:"⚠️ 발견된 문제점:"}),l.alerts.map((a,m)=>p.jsxs("div",{className:"flex items-center text-sm text-red-700 bg-red-100 rounded px-3 py-2",children:[p.jsx(xr,{size:16,className:"mr-2 flex-shrink-0"}),a]},m))]}),l.recommendations.length>0&&p.jsxs("div",{className:"mt-4 space-y-2",children:[p.jsx("h5",{className:"font-bold text-sm text-gray-700 mb-2",children:"💡 권장사항:"}),l.recommendations.map((a,m)=>p.jsxs("div",{className:"flex items-center text-sm text-blue-700 bg-blue-100 rounded px-3 py-2",children:[p.jsx(Wf,{size:16,className:"mr-2 flex-shrink-0"}),a]},m))]})]}),p.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[p.jsxs("div",{className:"bg-white rounded-lg p-5 border-2 border-gray-200",children:[p.jsxs("h5",{className:"font-bold text-gray-800 mb-3 flex items-center",children:[p.jsx(Yl,{className:"mr-2 text-blue-600",size:20}),"온체인 데이터"]}),p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"총 트랜잭션:"}),p.jsxs("span",{className:"font-semibold",children:[l.analysis.onChainData.transactions,"개"]})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"평균 가스비:"}),p.jsxs("span",{className:"font-semibold",children:[l.analysis.onChainData.avgGasFee," ETH"]})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"총 거래량:"}),p.jsxs("span",{className:"font-semibold",children:[l.analysis.onChainData.totalVolume," ETH"]})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"최초 활동:"}),p.jsx("span",{className:"font-semibold",children:l.analysis.onChainData.firstActivity})]})]})]}),p.jsxs("div",{className:"bg-white rounded-lg p-5 border-2 border-gray-200",children:[p.jsxs("h5",{className:"font-bold text-gray-800 mb-3 flex items-center",children:[p.jsx(Ku,{className:"mr-2 text-purple-600",size:20}),"AI 이상 탐지"]}),p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"행동 패턴:"}),p.jsx("span",{className:`font-semibold ${l.analysis.aiDetection.behaviorPattern==="정상"?"text-green-600":"text-orange-600"}`,children:l.analysis.aiDetection.behaviorPattern})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"IP 일관성:"}),p.jsx("span",{className:`font-semibold ${l.analysis.aiDetection.ipConsistency==="일관됨"?"text-green-600":"text-red-600"}`,children:l.analysis.aiDetection.ipConsistency})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"서명 유효성:"}),p.jsx("span",{className:`font-semibold ${l.analysis.aiDetection.signatureValidity==="검증됨"?"text-green-600":"text-orange-600"}`,children:l.analysis.aiDetection.signatureValidity})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"사기 위험도:"}),p.jsxs("span",{className:`font-semibold ${l.analysis.aiDetection.fraudRisk<20?"text-green-600":"text-red-600"}`,children:[l.analysis.aiDetection.fraudRisk,"%"]})]})]})]}),p.jsxs("div",{className:"bg-white rounded-lg p-5 border-2 border-gray-200",children:[p.jsxs("h5",{className:"font-bold text-gray-800 mb-3 flex items-center",children:[p.jsx(Qf,{className:"mr-2 text-indigo-600",size:20}),"DID 인증"]}),p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"신원 검증:"}),p.jsx("span",{className:`font-semibold ${l.analysis.did.verified?"text-green-600":"text-red-600"}`,children:l.analysis.did.verified?"✓ 완료":"✗ 미완료"})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"신원 점수:"}),p.jsxs("span",{className:`font-semibold ${l.analysis.did.identityScore>=80?"text-green-600":l.analysis.did.identityScore>=60?"text-orange-600":"text-red-600"}`,children:[l.analysis.did.identityScore,"/100"]})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"생체 인증:"}),p.jsx("span",{className:`font-semibold ${l.analysis.did.biometricMatch?"text-green-600":"text-gray-500"}`,children:l.analysis.did.biometricMatch?"✓ 일치":"- 대기"})]})]})]}),p.jsxs("div",{className:"bg-white rounded-lg p-5 border-2 border-gray-200",children:[p.jsxs("h5",{className:"font-bold text-gray-800 mb-3 flex items-center",children:[p.jsx(Bf,{className:"mr-2 text-green-600",size:20}),"영지식 증명 (ZKP)"]}),p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"증명 생성:"}),p.jsx("span",{className:"font-semibold text-green-600",children:l.analysis.zkp.proofGenerated?"✓ 완료":"- 대기"})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"프라이버시:"}),p.jsx("span",{className:"font-semibold text-green-600",children:l.analysis.zkp.privacyPreserved?"✓ 보호됨":"✗ 미보호"})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-gray-600",children:"유효성:"}),p.jsx("span",{className:`font-semibold ${l.analysis.zkp.validityConfirmed?"text-green-600":"text-orange-600"}`,children:l.analysis.zkp.validityConfirmed?"✓ 확인됨":"⚠ 검토 필요"})]})]})]})]}),l.isValid&&p.jsxs("button",{className:"w-full py-4 bg-gradient-to-r from-green-600 to-blue-600 text-white font-bold rounded-lg hover:from-green-700 hover:to-blue-700 transition-all flex items-center justify-center shadow-lg",children:[p.jsx(Hf,{className:"mr-2",size:20}),"소유권 증명서 발행 및 다운로드"]}),!l.isValid&&p.jsxs("div",{className:"bg-orange-50 border-2 border-orange-300 rounded-lg p-4",children:[p.jsxs("h5",{className:"font-bold text-orange-800 mb-2 flex items-center",children:[p.jsx(xr,{className:"mr-2",size:20}),"검증 실패 안내"]}),p.jsx("p",{className:"text-sm text-orange-700",children:"소유권 증명에 실패했습니다. 위의 권장사항을 확인하고 문제를 해결한 후 다시 시도해주세요. 추가 지원이 필요한 경우 고객센터에 문의하시기 바랍니다."})]})]})]});return p.jsx("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50 p-6",children:p.jsxs("div",{className:"max-w-6xl mx-auto",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsxs("div",{className:"flex items-center justify-center mb-4",children:[p.jsx(Xu,{className:"text-blue-600 mr-3",size:48}),p.jsx("h1",{className:"text-4xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"AI-Web3 소유권 증명 시스템"})]}),p.jsx("p",{className:"text-gray-600 text-lg",children:"분석형 AI로 완성하는 데이터 주권의 진짜 증명"})]}),p.jsxs("div",{className:"flex gap-2 mb-6 bg-white rounded-lg p-2 shadow-md",children:[p.jsx("button",{onClick:()=>t("pipeline"),className:`flex-1 py-3 px-4 rounded-lg font-semibold transition-all ${e==="pipeline"?"bg-gradient-to-r from-blue-600 to-purple-600 text-white":"text-gray-600 hover:bg-gray-100"}`,children:"신뢰 파이프라인"}),p.jsx("button",{onClick:()=>t("verify"),className:`flex-1 py-3 px-4 rounded-lg font-semibold transition-all ${e==="verify"?"bg-gradient-to-r from-blue-600 to-purple-600 text-white":"text-gray-600 hover:bg-gray-100"}`,children:"소유권 검증"})]}),p.jsxs("div",{className:"bg-white rounded-xl shadow-xl p-8",children:[e==="pipeline"&&f(),e==="verify"&&c()]}),p.jsxs("div",{className:"mt-8 text-center text-sm text-gray-500",children:[p.jsx("p",{children:"Web3: 탈중앙의 기록 × AI: 기록을 해석하고 증명하는 두뇌"}),p.jsx("p",{className:"mt-1",children:"= 검증된 소유권과 완성된 신뢰 생태계"})]})]})})}Xl.createRoot(document.getElementById("root")).render(p.jsx(Ec.StrictMode,{children:p.jsx(Kf,{})}));