diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..deed335 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +.env diff --git a/demo/android-chrome-192x192.png b/demo/android-chrome-192x192.png new file mode 100644 index 0000000..dabd34d Binary files /dev/null and b/demo/android-chrome-192x192.png differ diff --git a/demo/android-chrome-512x512.png b/demo/android-chrome-512x512.png new file mode 100644 index 0000000..52f36cc Binary files /dev/null and b/demo/android-chrome-512x512.png differ diff --git a/demo/apple-touch-icon.png b/demo/apple-touch-icon.png new file mode 100644 index 0000000..d824f77 Binary files /dev/null and b/demo/apple-touch-icon.png differ diff --git a/demo/assets/index-BmQ2xBem.js b/demo/assets/index-BmQ2xBem.js new file mode 100644 index 0000000..267ec1d --- /dev/null +++ b/demo/assets/index-BmQ2xBem.js @@ -0,0 +1,40 @@ +(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 Sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var is={exports:{}},dl={},os={exports:{}},M={};/** + * @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 or=Symbol.for("react.element"),xc=Symbol.for("react.portal"),Cc=Symbol.for("react.fragment"),_c=Symbol.for("react.strict_mode"),Pc=Symbol.for("react.profiler"),Nc=Symbol.for("react.provider"),zc=Symbol.for("react.context"),Tc=Symbol.for("react.forward_ref"),Lc=Symbol.for("react.suspense"),Rc=Symbol.for("react.memo"),Oc=Symbol.for("react.lazy"),Zo=Symbol.iterator;function Mc(e){return e===null||typeof e!="object"?null:(e=Zo&&e[Zo]||e["@@iterator"],typeof e=="function"?e:null)}var us={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ss=Object.assign,as={};function yt(e,n,t){this.props=e,this.context=n,this.refs=as,this.updater=t||us}yt.prototype.isReactComponent={};yt.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")};yt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cs(){}cs.prototype=yt.prototype;function Ki(e,n,t){this.props=e,this.context=n,this.refs=as,this.updater=t||us}var Gi=Ki.prototype=new cs;Gi.constructor=Ki;ss(Gi,yt.prototype);Gi.isPureReactComponent=!0;var Jo=Array.isArray,fs=Object.prototype.hasOwnProperty,Zi={current:null},ds={key:!0,ref:!0,__self:!0,__source:!0};function ps(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)fs.call(n,r)&&!ds.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,J=E[W];if(0>>1;Wl(St,T))Yel(Pn,St)?(E[W]=Pn,E[Ye]=T,W=Ye):(E[W]=St,E[$e]=T,W=$e);else if(Yel(Pn,T))E[W]=Pn,E[Ye]=T,W=Ye;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,g=!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,Bn(S);else{var z=t(c);z!==null&&Hn(v,z.startTime-E)}}function S(E,z){w=!1,k&&(k=!1,f(P),P=-1),g=!0;var T=p;try{for(d(z),m=t(s);m!==null&&(!(m.expirationTime>z)||E&&!H());){var W=m.callback;if(typeof W=="function"){m.callback=null,p=m.priorityLevel;var J=W(m.expirationTime<=z);z=e.unstable_now(),typeof J=="function"?m.callback=J:m===t(s)&&r(s),d(z)}else r(s);m=t(s)}if(m!==null)var Wn=!0;else{var $e=t(c);$e!==null&&Hn(v,$e.startTime-z),Wn=!1}return Wn}finally{m=null,p=T,g=!1}}var C=!1,_=null,P=-1,$=5,L=-1;function H(){return!(e.unstable_now()-L<$)}function me(){if(_!==null){var E=e.unstable_now();L=E;var z=!0;try{z=_(!0,E)}finally{z?Qe():(C=!1,_=null)}}else C=!1}var Qe;if(typeof a=="function")Qe=function(){a(me)};else if(typeof MessageChannel<"u"){var kt=new MessageChannel,fr=kt.port2;kt.port1.onmessage=me,Qe=function(){fr.postMessage(null)}}else Qe=function(){F(me,0)};function Bn(E){_=E,C||(C=!0,Qe())}function Hn(E,z){P=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||g||(w=!0,Bn(S))},e.unstable_forceFrameRate=function(E){0>E||125W?(E.sortIndex=T,n(c,E),t(s)===null&&E===t(c)&&(k?(f(P),P=-1):k=!0,Hn(v,T-W))):(E.sortIndex=J,n(s,E),w||g||(w=!0,Bn(S))),E},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(E){var z=p;return function(){var T=p;p=z;try{return E.apply(this,arguments)}finally{p=T}}}})(gs);ys.exports=gs;var Wc=ys.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 Qc=pl,xe=Wc;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ni=Object.prototype.hasOwnProperty,Yc=/^[: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]*$/,bo={},eu={};function Xc(e){return ni.call(eu,e)?!0:ni.call(bo,e)?!1:Yc.test(e)?eu[e]=!0:(bo[e]=!0,!1)}function Kc(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 Gc(e,n,t,r){if(n===null||typeof n>"u"||Kc(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 pe(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 ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ie[n]=new pe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new pe(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){ie[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var qi=/[\-:]([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-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(qi,bi);ie[n]=new pe(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(qi,bi);ie[n]=new pe(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(qi,bi);ie[n]=new pe(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function eo(e,n,t,r){var l=ie.hasOwnProperty(n)?ie[n]: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{Rl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Lt(e):""}function Zc(e){switch(e.tag){case 5:return Lt(e.type);case 16:return Lt("Lazy");case 13:return Lt("Suspense");case 19:return Lt("SuspenseList");case 0:case 2:case 15:return e=Ol(e.type,!1),e;case 11:return e=Ol(e.type.render,!1),e;case 1:return e=Ol(e.type,!0),e;default:return""}}function ii(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 Xn:return"Fragment";case Yn:return"Portal";case ti:return"Profiler";case no:return"StrictMode";case ri:return"Suspense";case li:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ss:return(e.displayName||"Context")+".Consumer";case ks:return(e._context.displayName||"Context")+".Provider";case to:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ro:return n=e.displayName||null,n!==null?n:ii(e.type)||"Memo";case un:n=e._payload,e=e._init;try{return ii(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 ii(n);case 8:return n===no?"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 Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xs(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function qc(e){var n=xs(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 hr(e){e._valueTracker||(e._valueTracker=qc(e))}function Cs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=xs(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Br(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 oi(e,n){var t=n.checked;return K({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function tu(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=Sn(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 _s(e,n){n=n.checked,n!=null&&eo(e,"checked",n,!1)}function ui(e,n){_s(e,n);var t=Sn(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")?si(e,n.type,t):n.hasOwnProperty("defaultValue")&&si(e,n.type,Sn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function ru(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function si(e,n,t){(n!=="number"||Br(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Rt=Array.isArray;function lt(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Wt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var jt={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},bc=["Webkit","ms","Moz","O"];Object.keys(jt).forEach(function(e){bc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),jt[n]=jt[e]})});function Ts(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||jt.hasOwnProperty(e)&&jt[e]?(""+n).trim():n+"px"}function Ls(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Ts(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var ef=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fi(e,n){if(n){if(ef[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function di(e,n){if(e.indexOf("-")===-1)return typeof n.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 pi=null;function lo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,it=null,ot=null;function ou(e){if(e=ar(e)){if(typeof mi!="function")throw Error(y(280));var n=e.stateNode;n&&(n=gl(n),mi(e.stateNode,e.type,n))}}function Rs(e){it?ot?ot.push(e):ot=[e]:it=e}function Os(){if(it){var e=it,n=ot;if(ot=it=null,ou(e),n)for(e=0;e>>=0,e===0?32:31-(df(e)/pf|0)|0}var yr=64,gr=4194304;function Ot(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 Yr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~l;u!==0?r=Ot(u):(i&=o,i!==0&&(r=Ot(i)))}else o=t&~l,o!==0?r=Ot(o):i!==0&&(r=Ot(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function ur(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ie(n),e[n]=t}function yf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=It),hu=" ",vu=!1;function qs(e,n){switch(e){case"keyup":return Qf.indexOf(n.keyCode)!==-1;case"keydown":return n.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 Kn=!1;function Xf(e,n){switch(e){case"compositionend":return bs(n);case"keypress":return n.which!==32?null:(vu=!0,hu);case"textInput":return e=n.data,e===hu&&vu?null:e;default:return null}}function Kf(e,n){if(Kn)return e==="compositionend"||!po&&qs(e,n)?(e=Zs(),Mr=ao=fn=null,Kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=ku(t)}}function ra(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ra(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function la(){for(var e=window,n=Br();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Br(e.document)}return n}function mo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function rd(e){var n=la(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&ra(t.ownerDocument.documentElement,t)){if(r!==null&&mo(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.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(t,i);var o=Su(t,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Gn=null,ki=null,Ut=null,Si=!1;function Eu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Si||Gn==null||Gn!==Br(r)||(r=Gn,"selectionStart"in r&&mo(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}),Ut&&Zt(Ut,r)||(Ut=r,r=Gr(ki,"onSelect"),0qn||(e.current=Ni[qn],Ni[qn]=null,qn--)}function U(e,n){qn++,Ni[qn]=e.current,e.current=n}var En={},ae=Cn(En),ye=Cn(!1),Dn=En;function ft(e,n){var t=e.type.contextTypes;if(!t)return En;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 ge(e){return e=e.childContextTypes,e!=null}function Jr(){V(ye),V(ae)}function Tu(e,n,t){if(ae.current!==En)throw Error(y(168));U(ae,n),U(ye,t)}function pa(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(y(108,Jc(e)||"Unknown",l));return K({},t,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,Dn=ae.current,U(ae,e),U(ye,ye.current),!0}function Lu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=pa(e,n,Dn),r.__reactInternalMemoizedMergedChildContext=e,V(ye),V(ae),U(ae,e)):V(ye),U(ye,t)}var Ze=null,wl=!1,Yl=!1;function ma(e){Ze===null?Ze=[e]:Ze.push(e)}function hd(e){wl=!0,ma(e)}function _n(){if(!Yl&&Ze!==null){Yl=!0;var e=0,n=I;try{var t=Ze;for(I=1;e>=o,l-=o,Je=1<<32-Ie(n)+l|t<P?($=_,_=null):$=_.sibling;var L=p(f,_,d[P],v);if(L===null){_===null&&(_=$);break}e&&_&&L.alternate===null&&n(f,_),a=i(L,a,P),C===null?S=L:C.sibling=L,C=L,_=$}if(P===d.length)return t(f,_),B&&zn(f,P),S;if(_===null){for(;PP?($=_,_=null):$=_.sibling;var H=p(f,_,L.value,v);if(H===null){_===null&&(_=$);break}e&&_&&H.alternate===null&&n(f,_),a=i(H,a,P),C===null?S=H:C.sibling=H,C=H,_=$}if(L.done)return t(f,_),B&&zn(f,P),S;if(_===null){for(;!L.done;P++,L=d.next())L=m(f,L.value,v),L!==null&&(a=i(L,a,P),C===null?S=L:C.sibling=L,C=L);return B&&zn(f,P),S}for(_=r(f,_);!L.done;P++,L=d.next())L=g(_,f,P,L.value,v),L!==null&&(e&&L.alternate!==null&&_.delete(L.key===null?P:L.key),a=i(L,a,P),C===null?S=L:C.sibling=L,C=L);return e&&_.forEach(function(me){return n(f,me)}),B&&zn(f,P),S}function F(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Xn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case mr:e:{for(var S=d.key,C=a;C!==null;){if(C.key===S){if(S=d.type,S===Xn){if(C.tag===7){t(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===un&&Mu(S)===C.type){t(f,C.sibling),a=l(C,d.props),a.ref=Nt(f,C,d),a.return=f,f=a;break e}t(f,C);break}else n(f,C);C=C.sibling}d.type===Xn?(a=jn(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Vr(d.type,d.key,d.props,null,f.mode,v),v.ref=Nt(f,a,d),v.return=f,f=v)}return o(f);case Yn:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=ei(d,f.mode,v),a.return=f,f=a}return o(f);case un:return C=d._init,F(f,a,C(d._payload),v)}if(Rt(d))return w(f,a,d,v);if(Et(d))return k(f,a,d,v);_r(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=bl(d,f.mode,v),a.return=f,f=a),o(f)):t(f,a)}return F}var pt=ga(!0),wa=ga(!1),nl=Cn(null),tl=null,nt=null,go=null;function wo(){go=nt=tl=null}function ko(e){var n=nl.current;V(nl),e._currentValue=n}function Li(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function st(e,n){tl=e,go=nt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(ve=!0),e.firstContext=null)}function Le(e){var n=e._currentValue;if(go!==e)if(e={context:e,memoizedValue:n,next:null},nt===null){if(tl===null)throw Error(y(308));nt=e,tl.dependencies={lanes:0,firstContext:e}}else nt=nt.next=e;return n}var Rn=null;function So(e){Rn===null?Rn=[e]:Rn.push(e)}function ka(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,So(n)):(t.next=l.next,l.next=t),n.interleaved=t,tn(e,r)}function tn(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var sn=!1;function Eo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sa(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function be(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function yn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,tn(e,t)}return l=r.interleaved,l===null?(n.next=n,So(r)):(n.next=l.next,l.next=n),r.interleaved=n,tn(e,t)}function Dr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,oo(e,t)}}function ju(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=o:i=i.next=o,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function rl(e,n,t,r){var l=e.updateQueue;sn=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,o===null?i=c:o.next=c,o=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==o&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=s))}if(i!==null){var m=l.baseState;o=0,h=c=s=null,u=i;do{var p=u.lane,g=u.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:g,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,k=u;switch(p=n,g=t,k.tag){case 1:if(w=k.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=K({},m,p);break e;case 2:sn=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else g={eventTime:g,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=g,s=m):h=h.next=g,o|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(h===null&&(s=m),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=h,n=l.shared.interleaved,n!==null){l=n;do o|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);Un|=o,e.lanes=o,e.memoizedState=m}}function Du(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Kl.transition;Kl.transition={};try{e(!1),n()}finally{I=t,Kl.transition=r}}function Ua(){return Re().memoizedState}function wd(e,n,t){var r=wn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},$a(e))Aa(n,t);else if(t=ka(e,n,t,r),t!==null){var l=fe();Fe(t,e,r,l),Va(t,n,r)}}function kd(e,n,t){var r=wn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if($a(e))Aa(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var o=n.lastRenderedState,u=i(o,t);if(l.hasEagerState=!0,l.eagerState=u,Ue(u,o)){var s=n.interleaved;s===null?(l.next=l,So(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ka(e,n,l,r),t!==null&&(l=fe(),Fe(t,e,r,l),Va(t,n,r))}}function $a(e){var n=e.alternate;return e===X||n!==null&&n===X}function Aa(e,n){$t=il=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Va(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,oo(e,t)}}var ol={readContext:Le,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},Sd={readContext:Le,useCallback:function(e,n){return Ve().memoizedState=[e,n===void 0?null:n],e},useContext:Le,useEffect:Fu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Fr(4194308,4,Ma.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Fr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Fr(4,2,e,n)},useMemo:function(e,n){var t=Ve();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Ve();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=wd.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var n=Ve();return e={current:e},n.memoizedState=e},useState:Iu,useDebugValue:Lo,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Iu(!1),n=e[0];return e=gd.bind(null,e[1]),Ve().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=X,l=Ve();if(B){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),te===null)throw Error(y(349));Fn&30||_a(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,Fu(Na.bind(null,r,i,e),[e]),r.flags|=2048,lr(9,Pa.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=Ve(),n=te.identifierPrefix;if(B){var t=qe,r=Je;t=(r&~(1<<32-Ie(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=tr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[Be]=n,e[bt]=r,Ja(e,n,!1,!1),n.stateNode=e;e:{switch(o=di(t,r),t){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;lvt&&(n.flags|=128,r=!0,zt(i,!1),n.lanes=4194304)}else{if(!r)if(e=ll(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),zt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!B)return ue(n),null}else 2*Z()-i.renderingStartTime>vt&&t!==1073741824&&(n.flags|=128,r=!0,zt(i,!1),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(t=i.last,t!==null?t.sibling=o:n.child=o,i.last=o)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=Z(),n.sibling=null,t=Y.current,U(Y,r?t&1|2:t&1),n):(ue(n),null);case 22:case 23:return Io(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ke&1073741824&&(ue(n),n.subtreeFlags&6&&(n.flags|=8192)):ue(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function Td(e,n){switch(vo(n),n.tag){case 1:return ge(n.type)&&Jr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return mt(),V(ye),V(ae),_o(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Co(n),null;case 13:if(V(Y),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));dt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return V(Y),null;case 4:return mt(),null;case 10:return ko(n.type._context),null;case 22:case 23:return Io(),null;case 24:return null;default:return null}}var Nr=!1,se=!1,Ld=typeof WeakSet=="function"?WeakSet:Set,x=null;function tt(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){G(e,n,r)}else t.current=null}function $i(e,n,t){try{t()}catch(r){G(e,n,r)}}var Ku=!1;function Rd(e,n){if(Ei=Xr,e=la(),mo(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,u=-1,s=-1,c=0,h=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++c===l&&(u=o),p===i&&++h===r&&(s=o),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(xi={focusedElem:e,selectionRange:t},Xr=!1,x=n;x!==null;)if(n=x,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,x=e;else for(;x!==null;){n=x;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:Me(n.type,k),F);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){G(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,x=e;break}x=n.return}return w=Ku,Ku=!1,w}function At(e,n,t){var r=n.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&&$i(n,t,i)}l=l.next}while(l!==r)}}function El(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ai(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function ec(e){var n=e.alternate;n!==null&&(e.alternate=null,ec(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Be],delete n[bt],delete n[Pi],delete n[pd],delete n[md])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nc(e){return e.tag===5||e.tag===3||e.tag===4}function Gu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Zr));else if(r!==4&&(e=e.child,e!==null))for(Vi(e,n,t),e=e.sibling;e!==null;)Vi(e,n,t),e=e.sibling}function Bi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bi(e,n,t),e=e.sibling;e!==null;)Bi(e,n,t),e=e.sibling}var re=null,je=!1;function on(e,n,t){for(t=t.child;t!==null;)tc(e,n,t),t=t.sibling}function tc(e,n,t){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(ml,t)}catch{}switch(t.tag){case 5:se||tt(t,n);case 6:var r=re,l=je;re=null,on(e,n,t),re=r,je=l,re!==null&&(je?(e=re,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):re.removeChild(t.stateNode));break;case 18:re!==null&&(je?(e=re,t=t.stateNode,e.nodeType===8?Ql(e.parentNode,t):e.nodeType===1&&Ql(e,t),Kt(e)):Ql(re,t.stateNode));break;case 4:r=re,l=je,re=t.stateNode.containerInfo,je=!0,on(e,n,t),re=r,je=l;break;case 0:case 11:case 14:case 15:if(!se&&(r=t.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)&&$i(t,n,o),l=l.next}while(l!==r)}on(e,n,t);break;case 1:if(!se&&(tt(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){G(t,n,u)}on(e,n,t);break;case 21:on(e,n,t);break;case 22:t.mode&1?(se=(r=se)||t.memoizedState!==null,on(e,n,t),se=r):on(e,n,t);break;default:on(e,n,t)}}function Zu(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new Ld),n.forEach(function(r){var l=Ad.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Oe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Md(r/1960))-r,10e?16:e,dn===null)var r=!1;else{if(e=dn,dn=null,al=0,D&6)throw Error(y(331));var l=D;for(D|=4,x=e.current;x!==null;){var i=x,o=i.child;if(x.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sZ()-jo?Mn(e,0):Mo|=t),we(e,n)}function cc(e,n){n===0&&(e.mode&1?(n=gr,gr<<=1,!(gr&130023424)&&(gr=4194304)):n=1);var t=fe();e=tn(e,n),e!==null&&(ur(e,n,t),we(e,t))}function $d(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),cc(e,t)}function Ad(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),cc(e,t)}var fc;fc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ye.current)ve=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ve=!1,Nd(e,n,t);ve=!!(e.flags&131072)}else ve=!1,B&&n.flags&1048576&&ha(n,el,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Ur(e,n),e=n.pendingProps;var l=ft(n,ae.current);st(n,t),l=No(null,n,r,e,l,t);var i=zo();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ge(r)?(i=!0,qr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Eo(n),l.updater=Sl,n.stateNode=l,l._reactInternals=n,Oi(n,r,e,t),n=Di(null,n,r,!0,i,t)):(n.tag=0,B&&i&&ho(n),ce(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Ur(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Bd(r),e=Me(r,e),l){case 0:n=ji(null,n,r,e,t);break e;case 1:n=Qu(null,n,r,e,t);break e;case 11:n=Hu(null,n,r,e,t);break e;case 14:n=Wu(null,n,r,Me(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Me(r,l),ji(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Me(r,l),Qu(e,n,r,l,t);case 3:e:{if(Ka(n),e===null)throw Error(y(387));r=n.pendingProps,i=n.memoizedState,l=i.element,Sa(e,n),rl(n,r,null,t);var o=n.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=ht(Error(y(423)),n),n=Yu(e,n,r,t,l);break e}else if(r!==l){l=ht(Error(y(424)),n),n=Yu(e,n,r,t,l);break e}else for(Se=vn(n.stateNode.containerInfo.firstChild),Ee=n,B=!0,De=null,t=wa(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(dt(),r===l){n=rn(e,n,t);break e}ce(e,n,r,t)}n=n.child}return n;case 5:return Ea(n),e===null&&Ti(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ci(r,l)?o=null:i!==null&&Ci(r,i)&&(n.flags|=32),Xa(e,n),ce(e,n,o,t),n.child;case 6:return e===null&&Ti(n),null;case 13:return Ga(e,n,t);case 4:return xo(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=pt(n,null,r,t):ce(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Me(r,l),Hu(e,n,r,l,t);case 7:return ce(e,n,n.pendingProps,t),n.child;case 8:return ce(e,n,n.pendingProps.children,t),n.child;case 12:return ce(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,o=l.value,U(nl,r._currentValue),r._currentValue=o,i!==null)if(Ue(i.value,o)){if(i.children===l.children&&!ye.current){n=rn(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);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=be(-1,t&-t),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Li(i.return,t,n),u.lanes|=t;break}s=s.next}}else if(i.tag===10)o=i.type===n.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(y(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),Li(o,t,n),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===n){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ce(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,st(n,t),l=Le(l),r=r(l),n.flags|=1,ce(e,n,r,t),n.child;case 14:return r=n.type,l=Me(r,n.pendingProps),l=Me(r.type,l),Wu(e,n,r,l,t);case 15:return Qa(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Me(r,l),Ur(e,n),n.tag=1,ge(r)?(e=!0,qr(n)):e=!1,st(n,t),Ba(n,r,l),Oi(n,r,l,t),Di(null,n,r,!0,e,t);case 19:return Za(e,n,t);case 22:return Ya(e,n,t)}throw Error(y(156,n.tag))};function dc(e,n){return $s(e,n)}function Vd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 ze(e,n,t,r){return new Vd(e,n,t,r)}function Uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bd(e){if(typeof e=="function")return Uo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===to)return 11;if(e===ro)return 14}return 2}function kn(e,n){var t=e.alternate;return t===null?(t=ze(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Vr(e,n,t,r,l,i){var o=2;if(r=e,typeof e=="function")Uo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Xn:return jn(t.children,l,i,n);case no:o=8,l|=8;break;case ti:return e=ze(12,t,n,l|2),e.elementType=ti,e.lanes=i,e;case ri:return e=ze(13,t,n,l),e.elementType=ri,e.lanes=i,e;case li:return e=ze(19,t,n,l),e.elementType=li,e.lanes=i,e;case Es:return Cl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ks:o=10;break e;case Ss:o=9;break e;case to:o=11;break e;case ro:o=14;break e;case un:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=ze(o,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function jn(e,n,t,r){return e=ze(7,e,r,n),e.lanes=t,e}function Cl(e,n,t,r){return e=ze(22,e,r,n),e.elementType=Es,e.lanes=t,e.stateNode={isHidden:!1},e}function bl(e,n,t){return e=ze(6,e,null,n),e.lanes=t,e}function ei(e,n,t){return n=ze(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Hd(e,n,t,r,l){this.tag=n,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=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $o(e,n,t,r,l,i,o,u,s){return e=new Hd(e,n,t,u,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=ze(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Eo(i),e}function Wd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vc)}catch(e){console.error(e)}}vc(),vs.exports=Ce;var Gd=vs.exports,yc,ls=Gd;yc=ls.createRoot,ls.hydrateRoot;var Xi={exports:{}};(function(e,n){(function(t,r){r(n,pl)})(Sc,function(t,r){function l(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=l(r),o=function(){return o=Object.assign||function(s){for(var c,h=1,m=arguments.length;hthis.stackPos;O--){var j=me.current[O];St(this.position,j.position)0?N:-N),j},St=function(R,N){var O=R.x-N.x,j=R.y-N.y;return Math.sqrt(O*O+j*j)},Ye=function(){return{winW:window.innerWidth,winH:window.innerHeight}},Pn=function(R,N){return N/60*(R+30)},Ho=function(R,N,O,j){return R+N+O>j?0-O:R+N+O<0?j-O:R+N},dr=r.useCallback(function(){var R,N,O=((R=H.current)===null||R===void 0?void 0:R.width)||0,j=((N=H.current)===null||N===void 0?void 0:N.height)||0,Xe=Math.round(O*j/F);me.current=[];for(var Ke=0;KeQ.jsxs("div",{style:{position:"relative",height:"100vh",width:"100vw",overflow:"hidden",backgroundColor:"#000000"},children:[Q.jsx(Jd,{}),Q.jsxs("div",{className:"particle-ground-section",style:{position:"relative",zIndex:1},children:[Q.jsxs("div",{className:"package-info",children:[Q.jsx("a",{href:"https://www.npmjs.com/package/particleground.ts",children:Q.jsx("img",{src:"https://img.shields.io/npm/v/particleground.ts.svg?style=flat",alt:"npm version"})}),Q.jsx("a",{href:"https://www.npmjs.com/package/particleground.ts",children:Q.jsx("img",{src:"https://img.shields.io/npm/dt/particleground.ts.svg?style=flat",alt:"npm downloads"})}),Q.jsx("a",{href:"https://www.npmjs.com/package/particleground.ts",children:Q.jsx("img",{src:"https://img.shields.io/npm/l/particleground.ts.svg?style=flat",alt:"npm license"})}),Q.jsx("a",{href:"https://www.npmjs.com/package/particleground.ts",children:Q.jsx("img",{src:"https://img.shields.io/bundlephobia/min/particleground.ts.svg",alt:"npm bundle size"})}),Q.jsx("a",{href:"https://github.com/Sivamani-18/particleground.ts/stargazers",children:Q.jsx("img",{src:"https://img.shields.io/github/stars/Sivamani-18/particleground.ts.svg?style=social",alt:"GitHub stars"})}),Q.jsx("a",{href:"https://github.com/Sivamani-18/particleground.ts/network/members",children:Q.jsx("img",{src:"https://img.shields.io/github/forks/Sivamani-18/particleground.ts.svg?style=social",alt:"GitHub forks"})})]}),Q.jsxs("div",{className:"particle-ground-info",children:[Q.jsx("h1",{children:"PARTICLEGROUND"}),Q.jsxs("p",{children:[Q.jsx("span",{children:"ParticleGround.ts"})," is a React component library that creates a particle animation effect on a canvas, inspired by",Q.jsx("span",{children:" jquery.particleground.js"}),"."]})]})]})]});yc(document.getElementById("root")).render(Q.jsx(pl.StrictMode,{children:Q.jsx(qd,{})})); diff --git a/demo/assets/index-Dq2q9234.css b/demo/assets/index-Dq2q9234.css new file mode 100644 index 0000000..609e4bc --- /dev/null +++ b/demo/assets/index-Dq2q9234.css @@ -0,0 +1 @@ +:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}.particle-ground-section{position:"relative";display:grid;justify-content:center;align-items:center;min-height:100vh;z-index:1}.particle-ground-info{margin:auto;width:80%}.particle-ground-info h1,.particle-ground-info p{color:#fff;text-align:center}.particle-ground-info p span{color:#fff;font-weight:900;font-size:20px}.package-info{display:flex;gap:16px;justify-content:center;position:fixed;top:20px;left:0;right:0;padding:0 16px} diff --git a/demo/favicon-16x16.png b/demo/favicon-16x16.png new file mode 100644 index 0000000..a90938d Binary files /dev/null and b/demo/favicon-16x16.png differ diff --git a/demo/favicon-32x32.png b/demo/favicon-32x32.png new file mode 100644 index 0000000..d29397c Binary files /dev/null and b/demo/favicon-32x32.png differ diff --git a/demo/favicon.ico b/demo/favicon.ico new file mode 100644 index 0000000..aecbd6e Binary files /dev/null and b/demo/favicon.ico differ diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..87f01c1 --- /dev/null +++ b/demo/index.html @@ -0,0 +1,32 @@ + + + + + + ParticleGround.TS - React Particle Animation Component + + + + + + + + + + + + + + + + + +
+ +