71 lines
147 KiB
JavaScript
71 lines
147 KiB
JavaScript
|
|
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.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 t(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=t(l);fetch(l.href,i)}})();var Bu={exports:{}},el={},Hu={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 Xt=Symbol.for("react.element"),rc=Symbol.for("react.portal"),lc=Symbol.for("react.fragment"),ic=Symbol.for("react.strict_mode"),oc=Symbol.for("react.profiler"),uc=Symbol.for("react.provider"),sc=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),cc=Symbol.for("react.suspense"),fc=Symbol.for("react.memo"),dc=Symbol.for("react.lazy"),Mo=Symbol.iterator;function pc(e){return e===null||typeof e!="object"?null:(e=Mo&&e[Mo]||e["@@iterator"],typeof e=="function"?e:null)}var Wu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qu=Object.assign,Ku={};function it(e,n,t){this.props=e,this.context=n,this.refs=Ku,this.updater=t||Wu}it.prototype.isReactComponent={};it.prototype.setState=function(e,n){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,n,"setState")};it.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yu(){}Yu.prototype=it.prototype;function Fi(e,n,t){this.props=e,this.context=n,this.refs=Ku,this.updater=t||Wu}var Ui=Fi.prototype=new Yu;Ui.constructor=Fi;Qu(Ui,it.prototype);Ui.isPureReactComponent=!0;var Oo=Array.isArray,Xu=Object.prototype.hasOwnProperty,$i={current:null},Gu={key:!0,ref:!0,__self:!0,__source:!0};function Zu(e,n,t){var r,l={},i=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(i=""+n.key),n)Xu.call(n,r)&&!Gu.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:Xt,type:e,key:i,ref:o,props:l,_owner:$i.current}}function mc(e,n){return{$$typeof:Xt,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function Ai(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xt}function hc(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var Io=/\/+/g;function wl(e,n){return typeof e=="object"&&e!==null&&e.key!=null?hc(""+e.key):n.toString(36)}function yr(e,n,t,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Xt:case rc:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+wl(o,0):r,Oo(l)?(t="",e!=null&&(t=e.replace(Io,"$&/")+"/"),yr(l,n,t,"",function(c){return c})):l!=null&&(Ai(l)&&(l=mc(l,t+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(Io,"$&/")+"/")+e)),n.push(l)),1;if(o=0,r=r===""?".":r+":",Oo(e))for(var u=0;u<e.length;u++){i=e[u];var s=r+wl(i,u);o+=yr(i,n,t,s,l)}else if(s=pc(e),typeof s=="function")for(e=s.call(e),u=0;!(i=e.next()).done;)i=i.value,s=r+wl(i,u++),o+=yr(i,n,t,s,l);else if(i==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return o}function nr(e,n,t){if(e==null)return e;var r=[],l=0;return yr(e,r,"","",function(i){return n.call(t,i,l++)}),r}function vc(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ue={current:null},wr={transition:null},gc={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:wr,ReactCurrentOwner:$i};function Ju(){throw Error("act(...) is not supported in production builds of React.")}L.Children={map:nr,forEach:function(e,n,t){nr(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return nr(e,function(){n++}),n},toArray:function(e){return nr(e,function(n){return n})||[]},only:function(e){if(!Ai(e))throw Error("React.Children.only expected to receive a sing
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.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 yc=je,wc=Symbol.for("react.element"),kc=Symbol.for("react.fragment"),Sc=Object.prototype.hasOwnProperty,xc=yc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ec={key:!0,ref:!0,__self:!0,__source:!0};function qu(e,n,t){var r,l={},i=null,o=null;t!==void 0&&(i=""+t),n.key!==void 0&&(i=""+n.key),n.ref!==void 0&&(o=n.ref);for(r in n)Sc.call(n,r)&&!Ec.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return{$$typeof:wc,type:e,key:i,ref:o,props:l,_owner:xc.current}}el.Fragment=kc;el.jsx=qu;el.jsxs=qu;Bu.exports=el;var P=Bu.exports,bu={exports:{}},ye={},es={exports:{}},ns={};/**
|
||
|
|
* @license React
|
||
|
|
* scheduler.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.
|
||
|
|
*/(function(e){function n(E,z){var T=E.length;E.push(z);e:for(;0<T;){var W=T-1>>>1,G=E[W];if(0<l(G,z))E[W]=z,E[T]=G,T=W;else break e}}function t(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var z=E[0],T=E.pop();if(T!==z){E[0]=T;e:for(var W=0,G=E.length,bt=G>>>1;W<bt;){var gn=2*(W+1)-1,yl=E[gn],yn=gn+1,er=E[yn];if(0>l(yl,T))yn<G&&0>l(er,yl)?(E[W]=er,E[yn]=T,W=yn):(E[W]=yl,E[gn]=T,W=gn);else if(yn<G&&0>l(er,T))E[W]=er,E[yn]=T,W=yn;else break e}}return z}function l(E,z){var T=E.sortIndex-z.sortIndex;return T!==0?T:E.id-z.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=[],c=[],h=1,m=null,p=3,y=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var z=t(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=E)r(c),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(c)}}function v(E){if(k=!1,d(E),!w)if(t(s)!==null)w=!0,vl(x);else{var z=t(c);z!==null&&gl(v,z.startTime-E)}}function x(E,z){w=!1,k&&(k=!1,f(N),N=-1),y=!0;var T=p;try{for(d(z),m=t(s);m!==null&&(!(m.expirationTime>z)||E&&!Ne());){var W=m.callback;if(typeof W=="function"){m.callback=null,p=m.priorityLevel;var G=W(m.expirationTime<=z);z=e.unstable_now(),typeof G=="function"?m.callback=G:m===t(s)&&r(s),d(z)}else r(s);m=t(s)}if(m!==null)var bt=!0;else{var gn=t(c);gn!==null&&gl(v,gn.startTime-z),bt=!1}return bt}finally{m=null,p=T,y=!1}}var _=!1,C=null,N=-1,H=5,j=-1;function Ne(){return!(e.unstable_now()-j<H)}function st(){if(C!==null){var E=e.unstable_now();j=E;var z=!0;try{z=C(!0,E)}finally{z?at():(_=!1,C=null)}}else _=!1}var at;if(typeof a=="function")at=function(){a(st)};else if(typeof MessageChannel<"u"){var Ro=new MessageChannel,tc=Ro.port2;Ro.port1.onmessage=st,at=function(){tc.postMessage(null)}}else at=function(){F(st,0)};function vl(E){C=E,_||(_=!0,at())}function gl(E,z){N=F(function(){E(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,vl(x))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return t(s)},e.unstable_next=function(E){switch(p){case 1:case 2:case 3:var z=3;break;default:z=p}var T=p;p=z;try{return E()}finally{p=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,z){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var T=p;p=E;try{return z()}finally{p=T}},e.unstable_scheduleCallback=function(E,z,T){var W=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?W+T:W):T=W,E){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=T+G,E={id:h++,callback:z,priorityLevel:E,startTime:T,expirationTime:G,sortIndex:-1},T>W?(E.sortIndex=T,n(c,E),t(s)===null&&E===t(c)&&(k?(f(N),N=-1):k=!0,gl(v,T-W))):(E.sortIndex=G,n(s,E),w||y||(w=!0,vl(x))),E},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(E){var z=p;return function(){var T=p;p=z;try{return E.apply(this,arguments)}finally{p=T}}}})(ns);es.exports=ns;var _c=es.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 Cc=je,ge=_c;function g(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ts=new Set,jt={};function jn(e,n){qn(e,n),qn(e+"Capture",n)}function qn(e,n){for(jt[e]=n,e=0;e<n.length;e++)ts.add(n[e])}var Qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ql=Object.prototype.hasOwnProperty,Nc=/^[: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]*$/,Do={},Fo={};function Pc(e){return Ql.call(Fo,e)?!0:Ql.call(Do,e)?!1:Nc.test(e)?Fo[e]=!0:(Do[e]=!0,!1)}function zc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tc(e,n,t,r){if(n===null||typeof n>"u"||zc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function se(e,n,t,r,l,i,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,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 n=e[0];ee[n]=new se(n,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 Vi=/[\-:]([a-z])/g;function Bi(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
|
||
|
|
`+kl+e}var Sl=!1;function xl(e,n){if(!e||Sl)return"";Sl=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(c){var r=c}Reflect.construct(e,[],n)}else{try{n.call()}catch(c){r=c}e.call(n.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
||
|
|
`),i=r.stack.split(`
|
||
|
|
`),o=l.length-1,u=i.length-1;1<=o&&0<=u&&l[o]!==i[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==i[u]){if(o!==1||u!==1)do if(o--,u--,0>u||l[o]!==i[u]){var s=`
|
||
|
|
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{Sl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?yt(e):""}function Lc(e){switch(e.tag){case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return yt("Suspense");case 19:return yt("SuspenseList");case 0:case 2:case 15:return e=xl(e.type,!1),e;case 11:return e=xl(e.type.render,!1),e;case 1:return e=xl(e.type,!0),e;default:return""}}function Gl(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 In:return"Fragment";case On:return"Portal";case Kl:return"Profiler";case Wi:return"StrictMode";case Yl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ls:return(e.displayName||"Context")+".Consumer";case rs:return(e._context.displayName||"Context")+".Provider";case Qi:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ki:return n=e.displayName||null,n!==null?n:Gl(e.type)||"Memo";case Je:n=e._payload,e=e._init;try{return Gl(e(n))}catch{}}return null}function jc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gl(n);case 8:return n===Wi?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function os(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Rc(e){var n=os(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function rr(e){e._valueTracker||(e._valueTracker=Rc(e))}function us(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=os(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Lr(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 Zl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function $o(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ss(e,n){n=n.checked,n!=null&&Hi(e,"checked",n,!1)}function Jl(e,n){ss(e,n);var t=dn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ql(e,n.type,t):n.hasOwnProperty("defaultValue")&&ql(e,n.type,dn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ao(e,n,t){if(n.hasOwnProperty("valu
|
||
|
|
`).replace(Hf,"")}function fr(e,n,t){if(n=au(n),au(e)!==n&&t)throw Error(g(425))}function Ur(){}var di=null,pi=null;function mi(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var hi=typeof setTimeout=="function"?setTimeout:void 0,Wf=typeof clearTimeout=="function"?clearTimeout:void 0,cu=typeof Promise=="function"?Promise:void 0,Qf=typeof queueMicrotask=="function"?queueMicrotask:typeof cu<"u"?function(e){return cu.resolve(null).then(e).catch(Kf)}:hi;function Kf(e){setTimeout(function(){throw e})}function Il(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&l.nodeType===8)if(t=l.data,t==="/$"){if(r===0){e.removeChild(l),Dt(n);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=l}while(t);Dt(n)}function un(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function fu(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(n===0)return e;n--}else t==="/$"&&n++}e=e.previousSibling}return null}var ut=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ut,Vt="__reactProps$"+ut,Ke="__reactContainer$"+ut,vi="__reactEvents$"+ut,Yf="__reactListeners$"+ut,Xf="__reactHandles$"+ut;function Sn(e){var n=e[Fe];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Ke]||t[Fe]){if(t=n.alternate,n.child!==null||t!==null&&t.child!==null)for(e=fu(e);e!==null;){if(t=e[Fe])return t;e=fu(e)}return n}e=t,t=e.parentNode}return null}function Jt(e){return e=e[Fe]||e[Ke],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $n(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(g(33))}function il(e){return e[Vt]||null}var gi=[],An=-1;function hn(e){return{current:e}}function D(e){0>An||(e.current=gi[An],gi[An]=null,An--)}function O(e,n){An++,gi[An]=e.current,e.current=n}var pn={},le=hn(pn),fe=hn(!1),Nn=pn;function bn(e,n){var t=e.type.contextTypes;if(!t)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function de(e){return e=e.childContextTypes,e!=null}function $r(){D(fe),D(le)}function du(e,n,t){if(le.current!==pn)throw Error(g(168));O(le,n),O(fe,t)}function Zs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(g(108,jc(e)||"Unknown",l));return V({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Nn=le.current,O(le,e),O(fe,fe.current),!0}function pu(e,n,t){var r=e.stateNode;if(!r)throw Error(g(169));t?(e=Zs(e,n,Nn),r.__reactInternalMemoizedMergedChildContext=e,D(fe),D(le),O(le,e)):D(fe),O(fe,t)}var Ve=null,ol=!1,Dl=!1;function Js(e){Ve===null?Ve=[e]:Ve.push(e)}function Gf(e){ol=!0,Js(e)}function vn(){if(!Dl&&Ve!==null){Dl=!0;var e=0,n=M;try{var t=Ve;for(M=1;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}Ve=null,ol=!1}catch(l){throw Ve!==null&&(Ve=Ve.slice(e+1)),xs(Xi,vn),l}finally{M=n,Dl=!1}}return null}var Vn=[],Bn=0,Vr=null,Br=0,ke=[],Se=0,Pn=null,Be=1,He="";function wn(e,n){Vn[Bn++]=Br,Vn[Bn++]=Vr,Vr=e,Br=n}function qs(e,n,t){ke[Se++]=Be,ke[Se++]=He,ke[Se++]=Pn,Pn=e;var r=Be;e=He;var l=32-Re(r)-1;r&=~(1<<l),t+=1;var i=32-Re(n)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Be=1<<32-Re(n)+l|t<<l|r,He=i+e}else Be=1<<i|t<<l|r,He=e}function ro(e){e.return!==null&&(wn(e,1),qs(e,1,0))}function lo(e){for(;e===Vr;)Vr=Vn[--Bn],Vn[Bn]=null,Br=Vn[--Bn],Vn[Bn]=null;for(;e===Pn;)Pn=ke[--Se],ke[Se]=null,He=ke[--Se],ke[Se]=null,Be=ke[--Se],ke[Se]=null}var ve=null,he=null,U=!1,Le=null;function bs(e,n){var t=xe(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,n=e.deletions,n===null?(e.del
|
||
|
|
Error generating stack: `+i.message+`
|
||
|
|
`+i.stack}return{value:e,source:n,stack:l,digest:null}}function Vl(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function Ei(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var ld=typeof WeakMap=="function"?WeakMap:Map;function Na(e,n,t){t=We(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Zr||(Zr=!0,Mi=r),Ei(e,n)},t}function Pa(e,n,t){t=We(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Ei(e,n)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Ei(e,n),typeof r!="function"&&(an===null?an=new Set([this]):an.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})}),t}function Eu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new ld;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=yd.bind(null,e,n,t),n.then(e,e))}function _u(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Cu(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=We(-1,1),n.tag=2,sn(t,n,1))),t.lanes|=1),e)}var id=Ge.ReactCurrentOwner,ce=!1;function ie(e,n,t,r){n.child=e===null?ta(n,null,t,r):nt(n,e.child,t,r)}function Nu(e,n,t,r,l){t=t.render;var i=n.ref;return Zn(n,l),r=vo(e,n,t,r,i,l),t=go(),e!==null&&!ce?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Xe(e,n,l)):(U&&t&&ro(n),n.flags|=1,ie(e,n,r,l),n.child)}function Pu(e,n,t,r,l){if(e===null){var i=t.type;return typeof i=="function"&&!Po(i)&&i.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=i,za(e,n,i,r,l)):(e=Tr(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(t=t.compare,t=t!==null?t:Ut,t(o,r)&&e.ref===n.ref)return Xe(e,n,l)}return n.flags|=1,e=fn(i,r),e.ref=n.ref,e.return=n,n.child=e}function za(e,n,t,r,l){if(e!==null){var i=e.memoizedProps;if(Ut(i,r)&&e.ref===n.ref)if(ce=!1,n.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ce=!0);else return n.lanes=e.lanes,Xe(e,n,l)}return _i(e,n,t,r,l)}function Ta(e,n,t){var r=n.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},O(Qn,me),me|=t;else{if(!(t&1073741824))return e=i!==null?i.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,O(Qn,me),me|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:t,O(Qn,me),me|=r}else i!==null?(r=i.baseLanes|t,n.memoizedState=null):r=t,O(Qn,me),me|=r;return ie(e,n,l,t),n.child}function La(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function _i(e,n,t,r,l){var i=de(t)?Nn:le.current;return i=bn(n,i),Zn(n,l),t=vo(e,n,t,r,i,l),r=go(),e!==null&&!ce?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Xe(e,n,l)):(U&&r&&ro(n),n.flags|=1,ie(e,n,t,l),n.child)}function zu(e,n,t,r,l){if(de(t)){var i=!0;Ar(n)}else i=!1;if(Zn(n,l),n.stateNode===null)Nr(e,n),Ca(n,t,r),xi(n,t,r,l),r=!0;else if(e===null){var o=n.stateNode,u=n.memoizedProps;o.props=u;var s=o.context,c=t.contextType;typeof c=="object"&&c!==null?c=_e(c):(c=de(t)?Nn:le.current,c=bn(n,c));var h=t.getDerivedStateFromProps,m=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||s!==c)&&xu(n,o,r,c),qe=!1;var p=n.memoizedState;o.state=p,Qr(n,r,o,l),s=n.memoizedState,u!==r||p!==s||fe.current||qe?(typeof h=="function"&&(Si(n,t,h,r),s=n.memoizedState),(u=qe||Su(n,t,u,r,p,s,c))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.compon
|
||
|
|
* @license lucide-react v0.344.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Ld={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"};/**
|
||
|
|
* @license lucide-react v0.344.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const jd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),nc=(e,n)=>{const t=je.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:u="",children:s,...c},h)=>je.createElement("svg",{ref:h,...Ld,width:l,height:l,stroke:r,strokeWidth:o?Number(i)*24/Number(l):i,className:["lucide",`lucide-${jd(e)}`,u].join(" "),...c},[...n.map(([m,p])=>je.createElement(m,p)),...Array.isArray(s)?s:[s]]));return t.displayName=`${e}`,t};/**
|
||
|
|
* @license lucide-react v0.344.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const Rd=nc("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
|
||
|
|
* @license lucide-react v0.344.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const Md=nc("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function Od({onImageSelect:e}){const n=je.useRef(null),t=()=>{var l;(l=n.current)==null||l.click()},r=l=>{var o;const i=(o=l.target.files)==null?void 0:o[0];i&&e(i)};return P.jsxs("div",{onClick:t,className:`border-2 border-dashed border-gray-300 rounded-lg p-8 text-center cursor-pointer
|
||
|
|
hover:border-blue-500 hover:bg-blue-50 transition-colors`,children:[P.jsx("input",{type:"file",ref:n,onChange:r,accept:"image/*",className:"hidden"}),P.jsx(Md,{className:"w-12 h-12 mx-auto text-gray-400 mb-4"}),P.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Upload your photo"}),P.jsx("p",{className:"text-sm text-gray-500",children:"Drop your image here or click to browse"}),P.jsx("p",{className:"text-xs text-gray-400 mt-2",children:"Supports: JPG, PNG, WEBP"})]})}const Id=[{id:"1",name:"Naruto Uzumaki (Baryon Mode)",image:"https://wallpapers.com/images/featured-full/naruto-baryon-mode-epz28fsvrytiv5le.jpg"},{id:"2",name:"Sasuke Uchiha (Rinnegan)",image:"https://static.wikia.nocookie.net/naruto/images/6/67/Sasuke_Rinnegan.png"},{id:"3",name:"Sakura Haruno (Byakugou Seal)",image:"https://preview.redd.it/any-figures-of-sakura-using-byakugou-seal-v0-yv8jueh9v7od1.jpeg?width=640&crop=smart&auto=webp&s=c8a0c85d9cce90b94e5e00651921450f7b0cb790"},{id:"4",name:"Kakashi Hatake (Dual Mangekyō Sharingan)",image:"https://static.wikia.nocookie.net/naruto/images/5/5f/Kakashi_Dual_Mangekyo_Sharingan.png"},{id:"5",name:"Madara Uchiha (Ten Tails Jinchūriki)",image:"https://static.wikia.nocookie.net/naruto/images/3/3d/Madara_Ten_Tails_Jinchuriki.png"},{id:"6",name:"Obito Uchiha (Ten Tails Jinchūriki)",image:"https://static.wikia.nocookie.net/naruto/images/1/1a/Obito_Ten_Tails_Jinchuriki.png"},{id:"7",name:"Itachi Uchiha (Edo Tensei)",image:"https://static.wikia.nocookie.net/naruto/images/9/95/Itachi_Edo_Tensei.png"},{id:"8",name:"Hashirama Senju (Sage Mode)",image:"https://static.wikia.nocookie.net/naruto/images/9/9b/Hashirama_Sage_Mode.png"},{id:"9",name:"Minato Namikaze (Six Paths Sage Mode)",image:"https://static.wikia.nocookie.net/naruto/images/3/3b/Minato_Six_Paths_Sage_Mode.png"},{id:"10",name:"Gaara (Shukaku Jinchūriki)",image:"https://static.wikia.nocookie.net/naruto/images/6/68/Gaara_Shukaku_Jinchuriki.png"},{id:"11",name:"Boruto Uzumaki (Kāma Seal)",image:"https://static.wikia.nocookie.net/naruto/images/6/6b/Boruto_Kama_Seal.png"},{id:"12",name:"Kawaki (Kāma Seal)",image:"https://static.wikia.nocookie.net/naruto/images/2/2a/Kawaki_Kama_Seal.png"},{id:"13",name:"Sarada Uchiha (Mangekyō Sharingan)",image:"https://static.wikia.nocookie.net/naruto/images/1/1e/Sarada_Mangekyo_Sharingan.png"},{id:"14",name:"Mitsuki (Sage Transformation)",image:"https://static.wikia.nocookie.net/naruto/images/4/4b/Mitsuki_Sage_Transformation.png"},{id:"15",name:"Momoshiki Ōtsutsuki (Fused Form)",image:"https://static.wikia.nocookie.net/naruto/images/4/4f/Momoshiki_Fused_Form.png"},{id:"16",name:"Isshiki Ōtsutsuki (Full Power Form)",image:"https://static.wikia.nocookie.net/naruto/images/c/cd/Isshiki_Full_Power_Form.png"}];function Dd({selectedCharacter:e,onSelect:n}){return P.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Id.map(t=>P.jsxs("div",{onClick:()=>n(t),className:`
|
||
|
|
relative rounded-lg overflow-hidden cursor-pointer
|
||
|
|
transform transition-all duration-200
|
||
|
|
${(e==null?void 0:e.id)===t.id?"ring-2 ring-blue-500 scale-105":"hover:scale-105"}
|
||
|
|
`,children:[P.jsx("img",{src:t.image,alt:t.name,className:"w-full h-48 object-cover"}),P.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-3",children:P.jsx("h3",{className:"text-white font-medium text-sm",children:t.name})})]},t.id))})}function Fd({transformedImage:e}){return P.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-6",children:[P.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Your Transformation"}),P.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[P.jsxs("div",{children:[P.jsx("h3",{className:"text-sm font-medium text-gray-500 mb-2",children:"Original"}),P.jsx("img",{src:e.original,alt:"Original",className:"w-full h-64 object-cover rounded-lg"})]}),P.jsxs("div",{children:[P.jsxs("h3",{className:"text-sm font-medium text-gray-500 mb-2",children:["As ",e.character.name]}),P.jsx("img",{src:e.transformed,alt:"Transformed",className:"w-full h-64 object-cover rounded-lg"})]})]}),P.jsx("div",{className:"mt-4 text-center",children:P.jsx("button",{className:`bg-blue-500 text-white px-6 py-2 rounded-full hover:bg-blue-600
|
||
|
|
transition-colors font-medium`,children:"Download"})})]})}function Ud(){const[e,n]=je.useState(null),[t,r]=je.useState(null),[l,i]=je.useState(null),[o,u]=je.useState(!1),s=m=>{n(m),i(null)},c=m=>{r(m)},h=async()=>{!e||!t||(u(!0),setTimeout(()=>{const m={original:URL.createObjectURL(e),transformed:t.image,character:t,timestamp:new Date};i(m),u(!1)},2e3))};return P.jsxs("div",{className:"min-h-screen bg-gray-50",children:[P.jsx("header",{className:"bg-white shadow-sm",children:P.jsx("div",{className:"max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8",children:P.jsx("div",{className:"flex items-center justify-between",children:P.jsxs("div",{className:"flex items-center",children:[P.jsx(Rd,{className:"h-8 w-8 text-blue-500"}),P.jsx("h1",{className:"ml-2 text-2xl font-bold text-gray-900",children:"Naruto Character Generator"})]})})})}),P.jsx("main",{className:"max-w-7xl mx-auto px-4 py-8 sm:px-6 lg:px-8",children:P.jsxs("div",{className:"space-y-8",children:[P.jsxs("section",{children:[P.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"1. Upload Your Photo"}),P.jsx(Od,{onImageSelect:s})]}),e&&P.jsxs("section",{children:[P.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"2. Choose Your Character"}),P.jsx(Dd,{selectedCharacter:t,onSelect:c})]}),e&&t&&P.jsx("section",{className:"text-center",children:P.jsx("button",{onClick:h,disabled:o,className:`
|
||
|
|
px-8 py-3 rounded-full text-white font-medium
|
||
|
|
${o?"bg-gray-400 cursor-not-allowed":"bg-blue-500 hover:bg-blue-600"}
|
||
|
|
transition-colors
|
||
|
|
`,children:o?"Transforming...":"Transform Image"})}),l&&P.jsx("section",{children:P.jsx(Fd,{transformedImage:l})})]})})]})}ec(document.getElementById("root")).render(P.jsx(je.StrictMode,{children:P.jsx(Ud,{})}));
|