diff --git "a/assets/index-DtDq0XJt.js" "b/assets/index-DtDq0XJt.js" new file mode 100644--- /dev/null +++ "b/assets/index-DtDq0XJt.js" @@ -0,0 +1,49 @@ +(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 Fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ms={exports:{}},hl={},vs={exports:{}},O={};/** + * @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"),Bc=Symbol.for("react.portal"),Wc=Symbol.for("react.fragment"),Vc=Symbol.for("react.strict_mode"),Hc=Symbol.for("react.profiler"),Qc=Symbol.for("react.provider"),Yc=Symbol.for("react.context"),Kc=Symbol.for("react.forward_ref"),Xc=Symbol.for("react.suspense"),Gc=Symbol.for("react.memo"),Zc=Symbol.for("react.lazy"),qo=Symbol.iterator;function Jc(e){return e===null||typeof e!="object"?null:(e=qo&&e[qo]||e["@@iterator"],typeof e=="function"?e:null)}var gs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ys=Object.assign,ws={};function gn(e,t,n){this.props=e,this.context=t,this.refs=ws,this.updater=n||gs}gn.prototype.isReactComponent={};gn.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")};gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ss(){}Ss.prototype=gn.prototype;function eo(e,t,n){this.props=e,this.context=t,this.refs=ws,this.updater=n||gs}var to=eo.prototype=new Ss;to.constructor=eo;ys(to,gn.prototype);to.isPureReactComponent=!0;var bo=Array.isArray,_s=Object.prototype.hasOwnProperty,no={current:null},ks={key:!0,ref:!0,__self:!0,__source:!0};function Es(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)_s.call(t,r)&&!ks.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Y=E[$];if(0>>1;$l(Nt,I))Hel(Lt,Nt)?(E[$]=Lt,E[He]=I,$=He):(E[$]=Nt,E[_e]=I,$=_e);else if(Hel(Lt,I))E[$]=Lt,E[He]=I,$=He;else break e}}return R}function l(E,R){var I=E.sortIndex-R.sortIndex;return I!==0?I:E.id-R.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=[],a=[],m=1,p=null,h=3,v=!1,g=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var R=n(a);R!==null;){if(R.callback===null)r(a);else if(R.startTime<=E)r(a),R.sortIndex=R.expirationTime,t(s,R);else break;R=n(a)}}function y(E){if(w=!1,d(E),!g)if(n(s)!==null)g=!0,Ve(k);else{var R=n(a);R!==null&&Vt(y,R.startTime-E)}}function k(E,R){g=!1,w&&(w=!1,f(L),L=-1),v=!0;var I=h;try{for(d(R),p=n(s);p!==null&&(!(p.expirationTime>R)||E&&!le());){var $=p.callback;if(typeof $=="function"){p.callback=null,h=p.priorityLevel;var Y=$(p.expirationTime<=R);R=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(s)&&r(s),d(R)}else r(s);p=n(s)}if(p!==null)var Me=!0;else{var _e=n(a);_e!==null&&Vt(y,_e.startTime-R),Me=!1}return Me}finally{p=null,h=I,v=!1}}var N=!1,x=null,L=-1,T=5,P=-1;function le(){return!(e.unstable_now()-PE||125$?(E.sortIndex=I,t(a,E),n(s)===null&&E===n(a)&&(w?(f(L),L=-1):w=!0,Vt(y,I-$))):(E.sortIndex=Y,t(s,E),g||v||(g=!0,Ve(k))),E},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(E){var R=h;return function(){var I=h;h=R;try{return E.apply(this,arguments)}finally{h=I}}}})(Ps);Ls.exports=Ps;var cf=Ls.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 ff=z,Ce=cf;function S(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"),li=Object.prototype.hasOwnProperty,df=/^[: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]*$/,tu={},nu={};function pf(e){return li.call(nu,e)?!0:li.call(tu,e)?!1:df.test(e)?nu[e]=!0:(tu[e]=!0,!1)}function hf(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 mf(e,t,n,r){if(t===null||typeof t>"u"||hf(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 de(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 re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(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){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var lo=/[\-:]([a-z])/g;function io(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(lo,io);re[t]=new de(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(lo,io);re[t]=new de(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(lo,io);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function oo(e,t,n,r){var l=re.hasOwnProperty(t)?re[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{Ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rn(e):""}function vf(e){switch(e.tag){case 5:return Rn(e.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 2:case 15:return e=Ml(e.type,!1),e;case 11:return e=Ml(e.type.render,!1),e;case 1:return e=Ml(e.type,!0),e;default:return""}}function si(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 Yt:return"Fragment";case Qt:return"Portal";case ii:return"Profiler";case uo:return"StrictMode";case oi:return"Suspense";case ui:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zs:return(e.displayName||"Context")+".Consumer";case Ts:return(e._context.displayName||"Context")+".Provider";case so:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ao:return t=e.displayName||null,t!==null?t:si(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return si(e(t))}catch{}}return null}function gf(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 si(t);case 8:return t===uo?"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 _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function js(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yf(e){var t=js(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 pr(e){e._valueTracker||(e._valueTracker=yf(e))}function Os(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=js(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ai(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(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 Ms(e,t){t=t.checked,t!=null&&oo(e,"checked",t,!1)}function ci(e,t){Ms(e,t);var n=_t(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")?fi(e,t.type,n):t.hasOwnProperty("defaultValue")&&fi(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iu(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 fi(e,t,n){(t!=="number"||Vr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tn=Array.isArray;function rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=hr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jn={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},wf=["Webkit","ms","Moz","O"];Object.keys(jn).forEach(function(e){wf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jn[t]=jn[e]})});function As(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jn.hasOwnProperty(e)&&jn[e]?(""+t).trim():t+"px"}function Fs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=As(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Sf=H({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 hi(e,t){if(t){if(Sf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function mi(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 vi=null;function co(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gi=null,ln=null,on=null;function su(e){if(e=ar(e)){if(typeof gi!="function")throw Error(S(280));var t=e.stateNode;t&&(t=wl(t),gi(e.stateNode,e.type,t))}}function Bs(e){ln?on?on.push(e):on=[e]:ln=e}function Ws(){if(ln){var e=ln,t=on;if(on=ln=null,su(e),t)for(e=0;e>>=0,e===0?32:31-(zf(e)/If|0)|0}var mr=64,vr=4194304;function zn(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 Kr(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=zn(u):(i&=o,i!==0&&(r=zn(i)))}else o=n&~l,o!==0?r=zn(o):i!==0&&(r=zn(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 ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fe(t),e[t]=n}function Df(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=Mn),gu=" ",yu=!1;function sa(e,t){switch(e){case"keyup":return cd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kt=!1;function dd(e,t){switch(e){case"compositionend":return aa(t);case"keypress":return t.which!==32?null:(yu=!0,gu);case"textInput":return e=t.data,e===gu&&yu?null:e;default:return null}}function pd(e,t){if(Kt)return e==="compositionend"||!wo&&sa(e,t)?(e=oa(),jr=vo=ft=null,Kt=!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=ku(n)}}function pa(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pa(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ha(){for(var e=window,t=Vr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vr(e.document)}return t}function So(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 kd(e){var t=ha(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pa(n.ownerDocument.documentElement,n)){if(r!==null&&So(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=Eu(n,i);var o=Eu(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,Xt=null,Ei=null,$n=null,xi=!1;function xu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xi||Xt==null||Xt!==Vr(r)||(r=Xt,"selectionStart"in r&&So(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}),$n&&Gn($n,r)||($n=r,r=Zr(Ei,"onSelect"),0Jt||(e.current=Ti[Jt],Ti[Jt]=null,Jt--)}function U(e,t){Jt++,Ti[Jt]=e.current,e.current=t}var kt={},se=xt(kt),ve=xt(!1),Dt=kt;function fn(e,t){var n=e.type.contextTypes;if(!n)return kt;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 ge(e){return e=e.childContextTypes,e!=null}function qr(){F(ve),F(se)}function zu(e,t,n){if(se.current!==kt)throw Error(S(168));U(se,t),U(ve,n)}function Ea(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(S(108,gf(e)||"Unknown",l));return H({},n,r)}function br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,Dt=se.current,U(se,e),U(ve,ve.current),!0}function Iu(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Ea(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,F(ve),F(se),U(se,e)):F(ve),U(ve,n)}var Je=null,Sl=!1,Gl=!1;function xa(e){Je===null?Je=[e]:Je.push(e)}function Od(e){Sl=!0,xa(e)}function Ct(){if(!Gl&&Je!==null){Gl=!0;var e=0,t=D;try{var n=Je;for(D=1;e>=o,l-=o,qe=1<<32-Fe(t)+l|n<L?(T=x,x=null):T=x.sibling;var P=h(f,x,d[L],y);if(P===null){x===null&&(x=T);break}e&&x&&P.alternate===null&&t(f,x),c=i(P,c,L),N===null?k=P:N.sibling=P,N=P,x=T}if(L===d.length)return n(f,x),B&&Pt(f,L),k;if(x===null){for(;LL?(T=x,x=null):T=x.sibling;var le=h(f,x,P.value,y);if(le===null){x===null&&(x=T);break}e&&x&&le.alternate===null&&t(f,x),c=i(le,c,L),N===null?k=le:N.sibling=le,N=le,x=T}if(P.done)return n(f,x),B&&Pt(f,L),k;if(x===null){for(;!P.done;L++,P=d.next())P=p(f,P.value,y),P!==null&&(c=i(P,c,L),N===null?k=P:N.sibling=P,N=P);return B&&Pt(f,L),k}for(x=r(f,x);!P.done;L++,P=d.next())P=v(x,f,L,P.value,y),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?L:P.key),c=i(P,c,L),N===null?k=P:N.sibling=P,N=P);return e&&x.forEach(function(we){return t(f,we)}),B&&Pt(f,L),k}function j(f,c,d,y){if(typeof d=="object"&&d!==null&&d.type===Yt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case dr:e:{for(var k=d.key,N=c;N!==null;){if(N.key===k){if(k=d.type,k===Yt){if(N.tag===7){n(f,N.sibling),c=l(N,d.props.children),c.return=f,f=c;break e}}else if(N.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ut&&Mu(k)===N.type){n(f,N.sibling),c=l(N,d.props),c.ref=Cn(f,N,d),c.return=f,f=c;break e}n(f,N);break}else t(f,N);N=N.sibling}d.type===Yt?(c=Mt(d.props.children,f.mode,y,d.key),c.return=f,f=c):(y=Br(d.type,d.key,d.props,null,f.mode,y),y.ref=Cn(f,c,d),y.return=f,f=y)}return o(f);case Qt:e:{for(N=d.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ri(d,f.mode,y),c.return=f,f=c}return o(f);case ut:return N=d._init,j(f,c,N(d._payload),y)}if(Tn(d))return g(f,c,d,y);if(Sn(d))return w(f,c,d,y);Er(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,d),c.return=f,f=c):(n(f,c),c=ni(d,f.mode,y),c.return=f,f=c),o(f)):n(f,c)}return j}var pn=Pa(!0),Ra=Pa(!1),nl=xt(null),rl=null,en=null,xo=null;function Co(){xo=en=rl=null}function No(e){var t=nl.current;F(nl),e._currentValue=t}function ji(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 sn(e,t){rl=e,xo=en=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Ie(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},en===null){if(rl===null)throw Error(S(308));en=e,rl.dependencies={lanes:0,firstContext:e}}else en=en.next=e;return t}var It=null;function Lo(e){It===null?It=[e]:It.push(e)}function Ta(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Lo(t)):(n.next=l.next,l.next=n),t.interleaved=n,rt(e,r)}function rt(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 st=!1;function Po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function za(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 et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,rt(e,n)}return l=r.interleaved,l===null?(t.next=t,Lo(r)):(t.next=l.next,l.next=t),r.interleaved=t,rt(e,n)}function Mr(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,po(e,n)}}function Du(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 ll(e,t,n,r){var l=e.updateQueue;st=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,o===null?i=a:o.next=a,o=s;var m=e.alternate;m!==null&&(m=m.updateQueue,u=m.lastBaseUpdate,u!==o&&(u===null?m.firstBaseUpdate=a:u.next=a,m.lastBaseUpdate=s))}if(i!==null){var p=l.baseState;o=0,m=a=s=null,u=i;do{var h=u.lane,v=u.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,w=u;switch(h=t,v=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){p=g.call(v,p,h);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,h=typeof g=="function"?g.call(v,p,h):g,h==null)break e;p=H({},p,h);break e;case 2:st=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else v={eventTime:v,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(a=m=v,s=p):m=m.next=v,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(!0);if(m===null&&(s=p),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=m,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);At|=o,e.lanes=o,e.memoizedState=p}}function $u(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Jl.transition;Jl.transition={};try{e(!1),t()}finally{D=n,Jl.transition=r}}function Xa(){return je().memoizedState}function Ud(e,t,n){var r=wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e))Za(t,n);else if(n=Ta(e,t,n,r),n!==null){var l=ce();Be(n,e,r,l),Ja(n,t,r)}}function Ad(e,t,n){var r=wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Za(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,We(u,o)){var s=t.interleaved;s===null?(l.next=l,Lo(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Ta(e,t,l,r),n!==null&&(l=ce(),Be(n,e,r,l),Ja(n,t,r))}}function Ga(e){var t=e.alternate;return e===V||t!==null&&t===V}function Za(e,t){Un=ol=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,po(e,n)}}var ul={readContext:Ie,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},Fd={readContext:Ie,useCallback:function(e,t){return Ye().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$r(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){return $r(4,2,e,t)},useMemo:function(e,t){var n=Ye();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ye();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=Ud.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Ye();return e={current:e},t.memoizedState=e},useState:Uu,useDebugValue:Do,useDeferredValue:function(e){return Ye().memoizedState=e},useTransition:function(){var e=Uu(!1),t=e[0];return e=$d.bind(null,e[1]),Ye().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=Ye();if(B){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),b===null)throw Error(S(349));Ut&30||Ma(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Au($a.bind(null,r,i,e),[e]),r.flags|=2048,rr(9,Da.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ye(),t=b.identifierPrefix;if(B){var n=be,r=qe;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tr++,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[Ke]=t,e[qn]=r,uc(e,t,!1,!1),t.stateNode=e;e:{switch(o=mi(n,r),n){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;lvn&&(t.flags|=128,r=!0,Nn(i,!1),t.lanes=4194304)}else{if(!r)if(e=il(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!B)return oe(t),null}else 2*X()-i.renderingStartTime>vn&&n!==1073741824&&(t.flags|=128,r=!0,Nn(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=X(),t.sibling=null,n=W.current,U(W,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return Wo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Xd(e,t){switch(ko(t),t.tag){case 1:return ge(t.type)&&qr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hn(),F(ve),F(se),zo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return To(t),null;case 13:if(F(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(W),null;case 4:return hn(),null;case 10:return No(t.type._context),null;case 22:case 23:return Wo(),null;case 24:return null;default:return null}}var Cr=!1,ue=!1,Gd=typeof WeakSet=="function"?WeakSet:Set,C=null;function tn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function Wi(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Zu=!1;function Zd(e,t){if(Ci=Xr,e=ha(),So(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,a=0,m=0,p=e,h=null;t:for(;;){for(var v;p!==n||l!==0&&p.nodeType!==3||(u=o+l),p!==i||r!==0&&p.nodeType!==3||(s=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(v=p.firstChild)!==null;)h=p,p=v;for(;;){if(p===e)break t;if(h===n&&++a===l&&(u=o),h===i&&++m===r&&(s=o),(v=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ni={focusedElem:e,selectionRange:n},Xr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,j=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?w:$e(t.type,w),j);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.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(S(163))}}catch(y){Q(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return g=Zu,Zu=!1,g}function An(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&&Wi(t,n,i)}l=l.next}while(l!==r)}}function El(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 Vi(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 cc(e){var t=e.alternate;t!==null&&(e.alternate=null,cc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ke],delete t[qn],delete t[Ri],delete t[Id],delete t[jd])),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 fc(e){return e.tag===5||e.tag===3||e.tag===4}function Ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fc(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 Hi(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=Jr));else if(r!==4&&(e=e.child,e!==null))for(Hi(e,t,n),e=e.sibling;e!==null;)Hi(e,t,n),e=e.sibling}function Qi(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(Qi(e,t,n),e=e.sibling;e!==null;)Qi(e,t,n),e=e.sibling}var te=null,Ue=!1;function ot(e,t,n){for(n=n.child;n!==null;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(ml,n)}catch{}switch(n.tag){case 5:ue||tn(n,t);case 6:var r=te,l=Ue;te=null,ot(e,t,n),te=r,Ue=l,te!==null&&(Ue?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Ue?(e=te,n=n.stateNode,e.nodeType===8?Xl(e.parentNode,n):e.nodeType===1&&Xl(e,n),Kn(e)):Xl(te,n.stateNode));break;case 4:r=te,l=Ue,te=n.stateNode.containerInfo,Ue=!0,ot(e,t,n),te=r,Ue=l;break;case 0:case 11:case 14:case 15:if(!ue&&(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)&&Wi(n,t,o),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ue&&(tn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Q(n,t,u)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,ot(e,t,n),ue=r):ot(e,t,n);break;default:ot(e,t,n)}}function qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gd),t.forEach(function(r){var l=ip.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function De(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qd(r/1960))-r,10e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,cl=0,M&6)throw Error(S(331));var l=M;for(M|=4,C=e.current;C!==null;){var i=C,o=i.child;if(C.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sX()-Fo?Ot(e,0):Ao|=n),ye(e,t)}function Sc(e,t){t===0&&(e.mode&1?(t=vr,vr<<=1,!(vr&130023424)&&(vr=4194304)):t=1);var n=ce();e=rt(e,t),e!==null&&(ur(e,t,n),ye(e,n))}function lp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sc(e,n)}function ip(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(S(314))}r!==null&&r.delete(t),Sc(e,n)}var _c;_c=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,Yd(e,t,n);me=!!(e.flags&131072)}else me=!1,B&&t.flags&1048576&&Ca(t,tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ur(e,t),e=t.pendingProps;var l=fn(t,se.current);sn(t,n),l=jo(null,t,r,e,l,n);var i=Oo();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,ge(r)?(i=!0,br(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Po(t),l.updater=kl,t.stateNode=l,l._reactInternals=t,Mi(t,r,e,n),t=Ui(null,t,r,!0,i,n)):(t.tag=0,B&&i&&_o(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ur(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=up(r),e=$e(r,e),l){case 0:t=$i(null,t,r,e,n);break e;case 1:t=Ku(null,t,r,e,n);break e;case 11:t=Qu(null,t,r,e,n);break e;case 14:t=Yu(null,t,r,$e(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),$i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),Ku(e,t,r,l,n);case 3:e:{if(lc(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,za(e,t),ll(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=mn(Error(S(423)),t),t=Xu(e,t,r,n,l);break e}else if(r!==l){l=mn(Error(S(424)),t),t=Xu(e,t,r,n,l);break e}else for(Ee=vt(t.stateNode.containerInfo.firstChild),xe=t,B=!0,Ae=null,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dn(),r===l){t=lt(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Ia(t),e===null&&Ii(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Li(r,l)?o=null:i!==null&&Li(r,i)&&(t.flags|=32),rc(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Ii(t),null;case 13:return ic(e,t,n);case 4:return Ro(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pn(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),Qu(e,t,r,l,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(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,U(nl,r._currentValue),r._currentValue=o,i!==null)if(We(i.value,o)){if(i.children===l.children&&!ve.current){t=lt(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=et(-1,n&-n),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var m=a.pending;m===null?s.next=s:(s.next=m.next,m.next=s),a.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ji(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(S(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ji(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}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,sn(t,n),l=Ie(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=$e(r,t.pendingProps),l=$e(r.type,l),Yu(e,t,r,l,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),Ur(e,t),t.tag=1,ge(r)?(e=!0,br(t)):e=!1,sn(t,n),qa(t,r,l),Mi(t,r,l,n),Ui(null,t,r,!0,e,n);case 19:return oc(e,t,n);case 22:return nc(e,t,n)}throw Error(S(156,t.tag))};function kc(e,t){return Gs(e,t)}function op(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 Te(e,t,n,r){return new op(e,t,n,r)}function Ho(e){return e=e.prototype,!(!e||!e.isReactComponent)}function up(e){if(typeof e=="function")return Ho(e)?1:0;if(e!=null){if(e=e.$$typeof,e===so)return 11;if(e===ao)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Te(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 Br(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ho(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yt:return Mt(n.children,l,i,t);case uo:o=8,l|=8;break;case ii:return e=Te(12,n,t,l|2),e.elementType=ii,e.lanes=i,e;case oi:return e=Te(13,n,t,l),e.elementType=oi,e.lanes=i,e;case ui:return e=Te(19,n,t,l),e.elementType=ui,e.lanes=i,e;case Is:return Cl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ts:o=10;break e;case zs:o=9;break e;case so:o=11;break e;case ao:o=14;break e;case ut:o=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Te(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Mt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Cl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Is,e.lanes=n,e.stateNode={isHidden:!1},e}function ni(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function ri(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sp(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 Qo(e,t,n,r,l,i,o,u,s){return e=new sp(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Te(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Po(i),e}function ap(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nc)}catch(e){console.error(e)}}Nc(),Ns.exports=Ne;var Lc=Ns.exports,Pc,os=Lc;Pc=os.createRoot,os.hydrateRoot;const us=["BOOLEAN","INT32","INT64","INT96","FLOAT","DOUBLE","BYTE_ARRAY","FIXED_LEN_BYTE_ARRAY"],ss=["PLAIN",void 0,"PLAIN_DICTIONARY","RLE","BIT_PACKED","DELTA_BINARY_PACKED","DELTA_LENGTH_BYTE_ARRAY","DELTA_BYTE_ARRAY","RLE_DICTIONARY","BYTE_STREAM_SPLIT"],hp=["REQUIRED","OPTIONAL","REPEATED"],mp=["UTF8","MAP","MAP_KEY_VALUE","LIST","ENUM","DECIMAL","DATE","TIME_MILLIS","TIME_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UINT_8","UINT_16","UINT_32","UINT_64","INT_8","INT_16","INT_32","INT_64","JSON","BSON","INTERVAL"],vp=["UNCOMPRESSED","SNAPPY","GZIP","LZO","BROTLI","LZ4","ZSTD","LZ4_RAW"],gp=["DATA_PAGE","INDEX_PAGE","DICTIONARY_PAGE","DATA_PAGE_V2"];function yp(e){let t=0;for(const n of e)t=t<<8|n;return t}function wp(e){if(!e)return;const t=e[1]<<8|e[0],n=t>>15?-1:1,r=t>>10&31,l=t&1023;return r===0?n*Math.pow(2,-14)*(l/1024):r===31?l?NaN:n*(1/0):n*Math.pow(2,r-15)*(1+l/1024)}function Rc(e,t,n){const r=e[t],l=[];let i=1;if(r.num_children)for(;l.lengtho.element.name===l);if(!i)throw new Error(`parquet schema element not found: ${t}`);r.push(i),n=i}return r}const ee={STOP:0,TRUE:1,FALSE:2,BYTE:3,I16:4,I32:5,I64:6,DOUBLE:7,BINARY:8,LIST:9,SET:10,MAP:11,STRUCT:12,UUID:13};function _p(e){let t=0;const n={};for(;e.offset>>1^-(t&1)}function xp(e){const t=kp(e);return t>>BigInt(1)^-(t&BigInt(1))}function Tc(e){return e&15}function zc(e,t){const n=e.view.getUint8(e.offset++);if((n&15)===ee.STOP)return[0,0,t];const r=n>>4;let l;if(r)l=t+r;else throw new Error("non-delta field id not supported");return[Tc(n),l,l]}function Cp(e){const t=e.view.getUint8(e.offset++),n=t>>4,r=Tc(t);if(n===15){const l=Go(e);return[r,l]}return[r,n]}async function Ic(e,t=1<<19){if(!e)throw new Error("parquet file is required");if(!(e.byteLength>=0))throw new Error("parquet file byteLength is required");const n=Math.max(0,e.byteLength-t),r=await e.slice(n,e.byteLength),l=new DataView(r);if(l.getUint32(r.byteLength-4,!0)!==827474256)throw new Error("parquet file invalid (footer != PAR1)");const i=l.getUint32(r.byteLength-8,!0);if(i>e.byteLength-8)throw new Error(`parquet metadata length ${i} exceeds available buffer ${e.byteLength-8}`);if(i+8>t){const o=e.byteLength-i-8,u=await e.slice(o,n),s=new ArrayBuffer(i+8),a=new Uint8Array(s);return a.set(new Uint8Array(u)),a.set(new Uint8Array(r),n-o),as(s)}else return as(r)}function as(e){var j;if(!e)throw new Error("parquet file is required");const t=new DataView(e);if(t.byteLength<8)throw new Error("parquet file is too short");if(t.getUint32(t.byteLength-4,!0)!==827474256)throw new Error("parquet file invalid (footer != PAR1)");const n=t.byteLength-8,r=t.getUint32(n,!0);if(r>t.byteLength-8)throw new Error(`parquet metadata length ${r} exceeds available buffer ${t.byteLength-8}`);const l=n-r,o=_p({view:t,offset:l}),u=new TextDecoder;function s(f){return f&&u.decode(f)}const a=o.field_1,m=o.field_2.map(f=>({type:us[f.field_1],type_length:f.field_2,repetition_type:hp[f.field_3],name:s(f.field_4),num_children:f.field_5,converted_type:mp[f.field_6],scale:f.field_7,precision:f.field_8,field_id:f.field_9,logical_type:Lp(f.field_10)})),p=m.filter(f=>f.type),h=o.field_3,v=o.field_4.map(f=>{var c;return{columns:f.field_1.map((d,y)=>{var k,N;return{file_path:s(d.field_1),file_offset:d.field_2,meta_data:d.field_3&&{type:us[d.field_3.field_1],encodings:(k=d.field_3.field_2)==null?void 0:k.map(x=>ss[x]),path_in_schema:d.field_3.field_3.map(s),codec:vp[d.field_3.field_4],num_values:d.field_3.field_5,total_uncompressed_size:d.field_3.field_6,total_compressed_size:d.field_3.field_7,key_value_metadata:d.field_3.field_8,data_page_offset:d.field_3.field_9,index_page_offset:d.field_3.field_10,dictionary_page_offset:d.field_3.field_11,statistics:Pp(d.field_3.field_12,p[y]),encoding_stats:(N=d.field_3.field_13)==null?void 0:N.map(x=>({page_type:gp[x.field_1],encoding:ss[x.field_2],count:x.field_3})),bloom_filter_offset:d.field_3.field_14,bloom_filter_length:d.field_3.field_15,size_statistics:d.field_3.field_16&&{unencoded_byte_array_data_bytes:d.field_3.field_16.field_1,repetition_level_histogram:d.field_3.field_16.field_2,definition_level_histogram:d.field_3.field_16.field_3}},offset_index_offset:d.field_4,offset_index_length:d.field_5,column_index_offset:d.field_6,column_index_length:d.field_7,crypto_metadata:d.field_7,encrypted_column_metadata:d.field_8}}),total_byte_size:f.field_2,num_rows:f.field_3,sorting_columns:(c=f.field_4)==null?void 0:c.map(d=>({column_idx:d.field_1,descending:d.field_2,nulls_first:d.field_3})),file_offset:f.field_5,total_compressed_size:f.field_6,ordinal:f.field_7}}),g=(j=o.field_5)==null?void 0:j.map(f=>({key:s(f.field_1),value:s(f.field_2)})),w=s(o.field_6);return{version:a,schema:m,num_rows:h,row_groups:v,key_value_metadata:g,created_by:w,metadata_length:r}}function Np(e){return Sp(e.schema,[])[0]}function Lp(e){return e!=null&&e.field_1?{type:"STRING"}:e!=null&&e.field_2?{type:"MAP"}:e!=null&&e.field_3?{type:"LIST"}:e!=null&&e.field_4?{type:"ENUM"}:e!=null&&e.field_5?{type:"DECIMAL",scale:e.field_5.field_1,precision:e.field_5.field_2}:e!=null&&e.field_6?{type:"DATE"}:e!=null&&e.field_7?{type:"TIME",isAdjustedToUTC:e.field_7.field_1,unit:cs(e.field_7.field_2)}:e!=null&&e.field_8?{type:"TIMESTAMP",isAdjustedToUTC:e.field_8.field_1,unit:cs(e.field_8.field_2)}:e!=null&&e.field_10?{type:"INTEGER",bitWidth:e.field_10.field_1,isSigned:e.field_10.field_2}:e!=null&&e.field_11?{type:"NULL"}:e!=null&&e.field_12?{type:"JSON"}:e!=null&&e.field_13?{type:"BSON"}:e!=null&&e.field_14?{type:"UUID"}:e!=null&&e.field_15?{type:"FLOAT16"}:e}function cs(e){if(e.field_1)return"MILLIS";if(e.field_2)return"MICROS";if(e.field_3)return"NANOS";throw new Error("parquet time unit required")}function Pp(e,t){return e&&{max:Pr(e.field_1,t),min:Pr(e.field_2,t),null_count:e.field_3,distinct_count:e.field_4,max_value:Pr(e.field_5,t),min_value:Pr(e.field_6,t),is_max_value_exact:e.field_7,is_min_value_exact:e.field_8}}function Pr(e,t){const{type:n,converted_type:r,logical_type:l}=t;if(e===void 0)return e;if(n==="BOOLEAN")return e[0]===1;if(n==="BYTE_ARRAY")return new TextDecoder().decode(e);const i=new DataView(e.buffer,e.byteOffset,e.byteLength);return n==="FLOAT"&&i.byteLength===4?i.getFloat32(0,!0):n==="DOUBLE"&&i.byteLength===8?i.getFloat64(0,!0):n==="INT32"&&r==="DATE"?new Date(i.getInt32(0,!0)*864e5):n==="INT64"&&r==="TIMESTAMP_MICROS"?new Date(Number(i.getBigInt64(0,!0)/1000n)):n==="INT64"&&r==="TIMESTAMP_MILLIS"?new Date(Number(i.getBigInt64(0,!0))):n==="INT64"&&(l==null?void 0:l.type)==="TIMESTAMP"?new Date(Number(i.getBigInt64(0,!0))):n==="INT32"&&i.byteLength===4?i.getInt32(0,!0):n==="INT64"&&i.byteLength===8?i.getBigInt64(0,!0):r==="DECIMAL"?yp(e)*Math.pow(10,-(t.scale||0)):(l==null?void 0:l.type)==="FLOAT16"?wp(e):e}async function Rp(e){return await fetch(e,{method:"HEAD"}).then(t=>{if(!t.ok)throw new Error(`fetch head failed ${t.status}`);const n=t.headers.get("Content-Length");if(!n)throw new Error("missing content length");return parseInt(n)})}async function jc(e,t){return t||(t=await Rp(e)),{byteLength:t,async slice(n,r){const l=new Headers,i=r===void 0?"":r-1;l.set("Range",`bytes=${n}-${i}`);const o=await fetch(e,{headers:l});if(!o.ok||!o.body)throw new Error(`fetch failed ${o.status}`);return o.arrayBuffer()}}}function Tp(e){return new Worker("/assets/parquetWorker-Cxel5eUQ.js",{name:e==null?void 0:e.name})}let Rr;function zp({metadata:e,asyncBuffer:t,rowStart:n,rowEnd:r,orderBy:l}){return new Promise((i,o)=>{Rr||(Rr=new Tp),Rr.onmessage=({data:u})=>{"error"in u?o(u.error):"result"in u?i(u.result):o(new Error("Unexpected message from worker"))},Rr.postMessage({metadata:e,asyncBuffer:t,rowStart:n,rowEnd:r,orderBy:l})})}function Oc(e,t){const{children:n}=Np(t);return{header:n.map(r=>r.element.name),numRows:Number(t.num_rows),rows(r,l,i){return zp({asyncBuffer:e,rowStart:r,rowEnd:l,orderBy:i})},sortable:!0}}function pl(...e){return e.filter(t=>t).join(" ")}function ir({children:e,className:t,progress:n,error:r,title:l}){const i=r==null?void 0:r.toString();return r&&console.error(r),z.useEffect(()=>{document.title=l?`${l} - hyperparam`:"hyperparam"},[l]),_.jsxs("main",{className:"main",children:[_.jsx(Ip,{}),_.jsxs("div",{className:"content-container",children:[_.jsx("div",{className:pl("content",t),children:e}),_.jsx("div",{className:pl("error-bar",r&&"show-error"),children:i})]}),n!==void 0&&n<1&&_.jsx("div",{className:"progress-bar",role:"progressbar",children:_.jsx("div",{style:{width:`${(100*n).toString()}%`}})})]})}function Ip(){return _.jsx("nav",{className:"nav",children:_.jsx("a",{className:"brand",href:"https://hyperparam.app",target:"_blank",rel:"noreferrer",children:"hyperparam"})})}function Zo({className:e}){return _.jsx("div",{className:pl("spinner",e)})}function Mc(e){const t=new URL(window.location.href);t.search=e,window.parent.postMessage({queryString:e},"https://huggingface.co"),window.location.assign(t)}function jp(e){const t=new URL(e);if(t.protocol!=="https:"&&t.protocol!=="http:")throw new Error("url must be a HTTP URL");if(t.host!=="huggingface.co"&&t.host!=="hf.co"||t.protocol!=="https:")return{kind:"non-hf",raw:e};if(/^\/(datasets(\/)?)?$/.exec(t.pathname))return{kind:"base",raw:e};const n=/^\/datasets\/(?[^/]+)\/(?[^/]+)\/?$/.exec(t.pathname);if(n!=null&&n.groups)return{kind:"repo",raw:e,...n.groups};const r=/^\/datasets\/(?[^/]+)\/(?[^/]+)\/(?tree)\/(?(refs\/(convert|pr)\/)?[^/]+)(?(\/[^/]+)*)\/?$/.exec(t.pathname);if(r!=null&&r.groups&&r.groups.branch!=="refs"){const i=r.groups.branch.replace(/\//g,"%2F");return{kind:"folder",raw:e,...r.groups,branch:i}}const l=/^\/datasets\/(?[^/]+)\/(?[^/]+)\/(?blob|resolve)\/(?(refs\/(convert|pr)\/)?[^/]+)(?(\/[^/]+)+)$/.exec(t.pathname);if(l!=null&&l.groups&&l.groups.branch!=="refs"){const i=l.groups.branch.replace(/\//g,"%2F");return{kind:"file",raw:e,...l.groups,branch:i,resolveUrl:`${t.origin}/datasets/${l.groups.namespace}/${l.groups.repo}/resolve/${i}${l.groups.path}`}}throw new Error("Unsupported Hugging Face URL")}const Tt="https://huggingface.co/datasets";function Op(e){if(e.kind==="non-hf")return[{url:e.raw,text:e.raw}];{const t=[{url:Tt,text:Tt}];if(e.kind==="base"||(t.push({url:`${Tt}/${e.namespace}/${e.repo}`,text:`${e.namespace}/${e.repo}`}),e.kind==="repo"))return t;t.push({url:`${Tt}/${e.namespace}/${e.repo}/tree/${e.branch}`,text:`${e.action}/${e.branch}`});const n=e.path.split("/").filter(l=>l!==""),r=n.at(-1);if(!r)return t;for(let l=0;l{n.preventDefault(),n.stopPropagation(),Mc(`?url=${e}`)},children:t})}function Tl({url:e}){return _.jsx("nav",{className:"top-header",children:_.jsx("div",{className:"path",children:Op(e).map(({url:t,text:n},r)=>_.jsx(Dc,{url:t,children:n},r))})})}function Mp({url:e,row:t,col:n}){const[r,l]=z.useState(0),[i,o]=z.useState(),[u,s]=z.useState(),[a,m]=z.useState(),p=(e.kind==="file"?e.path:e.raw).split("/");if(p.length<1)throw new Error("Invalid URL path");const h=p.at(-1);return z.useEffect(()=>{async function v(){try{s(.25);const g=e.kind==="file"?e.resolveUrl:e.raw,w=await jc(g),j={url:g,byteLength:w.byteLength};s(.5);const f=await Ic(w);s(.75);const c=Oc(j,f),d=await c.rows(t,t+1),y=c.header[n],k=Zi(d[0][y]);o(k)}catch(g){m(g)}finally{l(2),s(void 0)}}r===0&&(l(1),v().catch(()=>{}))},[e,n,t,r,m]),_.jsxs(ir,{progress:u,error:a,title:h,children:[_.jsx(Tl,{url:e}),_.jsx("pre",{className:"viewer text",children:i})]})}function Zi(e){return e==="string"||typeof e=="string"?e:typeof e=="number"?e.toLocaleString("en-US"):Array.isArray(e)?`[ +${e.map(t=>Dp(Zi(t),2)).join(`, +`)} +]`:e==null?JSON.stringify(e):e instanceof Date?e.toISOString():typeof e=="object"?`{${Object.entries(e).filter(t=>t[1]!==void 0).map(([t,n])=>`${t}: ${Zi(n)}`).join(", ")}}`:"{}"}function Dp(e,t){return e==null?void 0:e.split(` +`).map(n=>" ".repeat(t)+n).join(` +`)}function $p(e){var t,n;return((n=(t=/<(?\S*?); rel="Next"/i.exec(e.get("link")??""))==null?void 0:t.groups)==null?void 0:n.url)??null}async function fs(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error(`HTTP error ${n.status.toString()}`);return{page:await n.json(),headers:n.headers}}async function Up(e,t){const n=[];let r=await fs(e,t);for(n.push(r.page);;){const l=$p(r.headers);if(!l)break;if(l===e)throw new Error(`Infinite loop detected: ${e}`);e=l,console.log(`Pagination detected. Requesting next page: ${e}`),r=await fs(e,t),n.push(r.page)}return n.flat()}async function Ap(e,t,n,r){return Up(`https://huggingface.co/api/datasets/${e}/${t}/tree/${n}${r}`)}function Fp(e){return(e==null?void 0:e.fileSize)!==void 0?$c(e.fileSize):""}function $c(e){const t=["b","kb","mb","gb","tb"];if(e===0)return"0 b";const n=Math.floor(Math.log2(e)/10);if(n===0)return e.toLocaleString("en-US")+" b";const r=e/Math.pow(1024,n);return(r<10?r.toFixed(1):Math.round(r)).toLocaleString("en-US")+" "+t[n]}function Bp(e){const t=e.get("content-length");return t?Number(t):void 0}const Wp={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml"},Vp=[".png",".jpg",".jpeg",".gif",".svg"];function zl({content:e,headers:t,children:n}){return _.jsxs("div",{className:"viewer",children:[_.jsxs("div",{className:"view-header",children:[(e==null?void 0:e.fileSize)&&_.jsx("span",{title:e.fileSize.toLocaleString("en-US")+" bytes",children:Fp(e)}),t]}),n]})}function Hp({url:e,setError:t}){const[n,r]=z.useState(0),[l,i]=z.useState();return z.useEffect(()=>{async function o(){try{const u=await fetch(e),s=await u.arrayBuffer(),a=Qp(s),m=`data:${Yp(e)};base64,${a}`,p=Bp(u.headers);i({dataUri:m,fileSize:p})}catch(u){t(u)}finally{r(2)}}r(u=>u!==0?u:(o().catch(()=>{}),1))},[e,n,t]),_.jsx(zl,{content:l,children:(l==null?void 0:l.dataUri)&&_.jsx("img",{alt:e,className:"image",src:l.dataUri})})}function Qp(e){let t="";const n=new Uint8Array(e);for(let r=0;rw%2?_.jsx("strong",{children:g},w):g)},m));continue}if(p.includes("*")){const v=p.split("*");l.push(_.jsx("p",{children:v.map((g,w)=>w%2?_.jsx("em",{children:g},w):g)},m));continue}if(p.startsWith("#")){const v=p.split(" ")[0].length,g=p.slice(v+1),w=`h${v.toLocaleString("en-US")}`;l.push(_.jsx(w,{children:g},m));continue}const h=/!\[(.*?)\]\((.*?)\)/.exec(p);if(h){const[,v,g]=h;l.push(_.jsx("img",{src:g,alt:v},m));continue}if(p.includes("[")&&p.includes("]")&&p.includes("(")&&p.includes(")")){const v=p.replace(/\[(.*?)\]\((.*?)\)/g,(g,w,j)=>`${w}`);l.push(_.jsx("p",{dangerouslySetInnerHTML:{__html:v}},m));continue}if(p.startsWith("-")||p.startsWith("*")||p.startsWith("+")){const v=p.slice(1).trim();a.push(_.jsx("li",{children:v},`list-item-${m.toLocaleString("en-US")}`)),s=!0;continue}s&&a.length>0&&(l.push(_.jsx("ul",{children:a},`list-${m.toLocaleString("en-US")}`)),a=[],s=!1),l.push(_.jsx("p",{children:p},m))}return o&&u.length>0&&l.push(_.jsx("pre",{children:u.join(` +`)},`code-${i.length.toLocaleString("en-US")}`)),s&&a.length>0&&l.push(_.jsx("ul",{children:a},`list-${i.length.toLocaleString("en-US")}`)),_.jsx("div",{className:t,children:l})}return n(e)}function Xp({url:e,setError:t}){const[n,r]=z.useState(0),[l,i]=z.useState();return z.useEffect(()=>{async function o(){try{const s=await(await fetch(e)).text();i(s)}catch(u){t(u)}finally{r(2)}}r(u=>u!==0?u:(o().catch(()=>{}),1))},[e,n,t]),_.jsx(zl,{content:{fileSize:l==null?void 0:l.length},children:_.jsx(Kp,{className:"markdown",text:l??""})})}var ds,ps,hs={exports:{}},Pn={},K=(ps||(ps=1,hs.exports=function(){if(ds)return Pn;ds=1;var e=nf,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(u,s,a){var m,p={},h=null,v=null;for(m in a!==void 0&&(h=""+a),s.key!==void 0&&(h=""+s.key),s.ref!==void 0&&(v=s.ref),s)r.call(s,m)&&!i.hasOwnProperty(m)&&(p[m]=s[m]);if(u&&u.defaultProps)for(m in s=u.defaultProps)p[m]===void 0&&(p[m]=s[m]);return{$$typeof:t,type:u,key:h,ref:v,props:p,_owner:l.current}}return Pn.Fragment=n,Pn.jsx=o,Pn.jsxs=o,Pn}()),hs.exports);function Ji(e,t,n){if(Array.isArray(e))return e;const r=new Array(t).fill(null).map(l=>Object.fromEntries(n.map(i=>[i,Zp()])));return(e instanceof Promise?e:Promise.resolve(e)).then(l=>{l.length!==t&&console.warn(`Expected ${t} rows, got ${l.length}`);for(let i=0;i{for(let i=0;i(t.resolved=n,n)).catch(n=>{throw t.rejected=n,n});return t}function Zp(){let e,t;const n=Gp(new Promise((r,l)=>{e=r,t=l}));return n.resolve=e,n.reject=t,n}const Jp=10;function qp({header:e,columnWidths:t,orderBy:n,setColumnWidth:r,setColumnWidths:l,setOrderBy:i,dataReady:o}){const[u,s]=z.useState(),a=z.useRef(e.map(()=>z.createRef()));function m(h){return h.current?h.current.offsetWidth-2*Jp:void 0}z.useEffect(()=>{if(o){const h=a.current.map(m);l(h)}},[o,e]),z.useEffect(()=>{function h(){u&&s(void 0)}function v({clientX:g}){u&&r(u.columnIndex,Math.max(1,g-u.clientX))}return u&&(window.addEventListener("mousemove",v),window.addEventListener("mouseup",h)),()=>{window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",h)}},[e,u,l]);const p=z.useMemo(()=>t.map(qi),[t]);return K.jsx("thead",{children:K.jsxs("tr",{children:[K.jsx("th",{children:K.jsx("span",{})}),e.map((h,v)=>K.jsxs("th",{className:n===h?"orderby":void 0,onClick:()=>function(g){i==null||i(n===g?void 0:g)}(h),ref:a.current[v],style:p[v],title:h,children:[h,K.jsx("span",{onDoubleClick:()=>function(g){Lc.flushSync(()=>{r(g,void 0)});const w=m(a.current[g]);r(g,w)}(v),onMouseDown:g=>function(w,j){j.stopPropagation(),s({columnIndex:w,clientX:j.clientX-(t[w]||0)})}(v,g)})]},v))]})})}function qi(e){const t=e?`${e}px`:void 0;return{minWidth:t,maxWidth:t}}function bp(e){const t={};return{...e,rows(n,r,l){var u;const i=t[u=l||""]||(t[u]=new Array(e.numRows));let o;for(let s=n;s0&&T.length!==e.header.length)return`Row ${P+1} length ${T.length} does not match header length ${e.header.length}`}z.useEffect(()=>{async function T(){var E,R,I;const le=((E=v.current)==null?void 0:E.clientHeight)||100,we=((R=v.current)==null?void 0:R.scrollTop)||0,Oe=((I=g.current)==null?void 0:I.clientHeight)||0;let pe=Math.floor(e.numRows*we/f),Se=Math.ceil(e.numRows*(we+le)/f);if(pe=Math.max(0,pe-t),Se=Math.min(e.numRows,Se+t),isNaN(pe))throw new Error("invalid start row "+pe);if(isNaN(Se))throw new Error("invalid end row "+Se);const Ve=Math.max(0,we-660);if((!(f-Ve-Oe<33*t)&&Ve+Oe-le({})),hasCompleteRow:!1}),w.current)j.current=!0;else try{let Y=function(){const Me=[];let _e=!1;for(const Nt of $){const He={};let Lt=!0;for(const[Ac,Jo]of Object.entries(Nt))"resolved"in Jo?He[Ac]=Jo.resolved:Lt=!1;Lt&&(_e=!0),Me.push(He)}h.current=Ve,i({type:"SET_ROWS",start:pe,rows:Me,hasCompleteRow:_e})};var Vt=Y;w.current=!0;const $=Ji(e.rows(pe,Se,a),Se-pe,e.header);for(const Me of $)for(const[_e,Nt]of Object.entries(Me))Nt.then(Y).catch(()=>{});for(const Me of $)for(const _e of Object.values(Me))await _e;w.current=!1,j.current&&(j.current=!1,T())}catch($){i({type:"SET_PENDING",pending:!1}),w.current=!1,r($)}}T();const P=v.current;return P==null||P.addEventListener("scroll",T),window.addEventListener("resize",T),()=>{P==null||P.removeEventListener("scroll",T),window.removeEventListener("resize",T)}},[e,a,f,r]);const d=z.useMemo(()=>o.map(qi),[o]);z.useEffect(()=>{var T;(T=g.current)==null||T.focus()},[]),z.useEffect(()=>{i({type:"DATA_CHANGED"})},[e]);const y=z.useCallback(T=>s[T].__index__??T+u+1,[s,u]);if(!e.header.length)return;const k=Array.from({length:Math.min(20,u)},()=>[]),N=Array.from({length:Math.min(20,e.numRows-u-s.length)},()=>[]),x=4*Math.ceil(Math.log10(e.numRows+1))+22,L=z.useMemo(()=>qi(x),[x]);return K.jsxs("div",{className:p?"table-container pending":"table-container",children:[K.jsx("div",{className:"table-scroll",ref:v,children:K.jsx("div",{style:{height:`${f}px`},children:K.jsxs("table",{"aria-colcount":e.header.length,"aria-rowcount":e.numRows,className:e.sortable?"table sortable":"table",ref:g,role:"grid",style:{top:`${h.current}px`},tabIndex:0,children:[K.jsx(qp,{columnWidths:o,orderBy:a,setColumnWidth:(T,P)=>i({type:"SET_COLUMN_WIDTH",columnIndex:T,columnWidth:P}),setColumnWidths:T=>i({type:"SET_COLUMN_WIDTHS",columnWidths:T}),setOrderBy:T=>e.sortable&&i({type:"SET_ORDER",orderBy:T}),dataReady:m,header:e.header}),K.jsxs("tbody",{children:[k.map((T,P)=>K.jsx("tr",{children:K.jsx("td",{style:L,children:(u-k.length+P+1).toLocaleString()})},u-k.length+P)),s.map((T,P)=>K.jsxs("tr",{title:c(T,P),children:[K.jsx("td",{style:L,children:y(P).toLocaleString()}),e.header.map((le,we)=>{var Oe;return function(pe,Se,Ve,Vt){let E,R=bi(pe);return typeof R=="string"&&(R.length>400&&(R=`${R.slice(0,397)}…`),R.length>100&&(E=R)),K.jsx("td",{onDoubleClick:()=>n==null?void 0:n(Se,Vt??Ve),style:d[Se],title:E,children:R},Se)}(T[le],we,u+P,(Oe=T.__index__)==null?void 0:Oe.resolved)})]},u+P)),N.map((T,P)=>K.jsx("tr",{children:K.jsx("td",{style:L,children:(u+s.length+P+1).toLocaleString()})},u+s.length+P))]})]})})}),K.jsx("div",{className:"table-corner",style:L,children:" "}),K.jsx("div",{className:"mock-row-label",style:L,children:" "})]})}function bi(e){return typeof e=="string"?e:typeof e=="number"?e.toLocaleString():Array.isArray(e)?`[${e.map(bi).join(", ")}]`:e==null?JSON.stringify(e):e instanceof Date?e.toISOString():typeof e=="object"?`{${Object.entries(e).map(([t,n])=>`${t}: ${bi(n)}`).join(", ")}}`:e.toString()}function rh({url:e,resolveUrl:t,setProgress:n,setError:r}){const[l,i]=z.useState(0),[o,u]=z.useState();z.useEffect(()=>{async function m(){try{n(.33);const p=await jc(t),h={url:t,byteLength:p.byteLength};n(.66);const v=await Ic(p);let g=Oc(h,v);g=bp(g);const w=p.byteLength;u({dataframe:g,fileSize:w})}catch(p){r(p)}finally{i(2),n(1)}}l===0&&(i(1),m().catch(()=>{}))},[l,e,t,r,n]);const s=(m,p)=>{Mc(`?url=${e}&row=${p.toString()}&col=${m.toString()}`)},a=_.jsx(_.Fragment,{children:(o==null?void 0:o.dataframe)&&_.jsxs("span",{children:[o.dataframe.numRows.toLocaleString("en-US")," rows"]})});return _.jsxs(zl,{content:o,headers:a,children:[(o==null?void 0:o.dataframe)&&_.jsx(nh,{data:o.dataframe,onDoubleClickCell:s,onError:r}),l&&_.jsx(Zo,{className:"center"})]})}function lh({url:e,setError:t}){const[n,r]=z.useState(0),[l,i]=z.useState(),o=z.useRef(null);z.useEffect(()=>{async function s(){try{const m=await(await fetch(e)).text();i(m)}catch(a){t(a)}finally{r(2)}}r(a=>a!==0?a:(s().catch(()=>{}),1))},[e,n,t]);const u=_.jsx(_.Fragment,{children:_.jsxs("span",{children:[l?ih(l):0," lines"]})});return _.jsxs(zl,{content:{fileSize:l==null?void 0:l.length},headers:u,children:[_.jsx("code",{className:"text",ref:o,children:l}),n&&_.jsx(Zo,{className:"center"})]})}function ih(e){let t=0;for(const n of e)n===` +`&&t++;return t.toLocaleString("en-US")}function oh({url:e,resolveUrl:t,setError:n,setProgress:r}){const l=e.replace(/\?.*$/,"");return l.endsWith(".md")?_.jsx(Xp,{url:t,setError:n}):l.endsWith(".parquet")?_.jsx(rh,{url:e,resolveUrl:t,setError:n,setProgress:r}):Vp.some(i=>l.endsWith(i))?_.jsx(Hp,{url:t,setError:n}):_.jsx(lh,{url:t,setError:n,setProgress:r})}function uh({url:e}){const[t,n]=z.useState(),[r,l]=z.useState(),i=e.kind==="file"?e.resolveUrl:e.raw,o=i.split("/");if(o.length<1)throw new Error("Invalid URL path");const u=o.at(-1);return _.jsxs(ir,{progress:t,error:r,title:u,children:[_.jsx(Tl,{url:e}),_.jsx(oh,{url:e.raw,resolveUrl:i,setProgress:n,setError:l})]})}function sh({url:e}){const[t,n]=z.useState(),[r,l]=z.useState(),i=z.useRef(null);z.useEffect(()=>{Ap(e.namespace,e.repo,e.branch,e.path).then(n).catch(s=>{n([]),l(s)})},[e]);const o=z.useCallback(s=>{const a=s.type==="directory"?"tree":"blob";return`${Tt}/${e.namespace}/${e.repo}/${a}/${e.branch}/${s.path}`},[e]),u=z.useCallback(s=>s.path.split("/").at(-1),[]);return _.jsxs(ir,{error:r,title:e.path,children:[_.jsx(Tl,{url:e}),t&&t.length>0&&_.jsx("ul",{className:"file-list",ref:i,children:t.map((s,a)=>_.jsx("li",{children:_.jsxs(Dc,{url:o(s),children:[_.jsx("span",{className:pl("file-name","file",s.type==="directory"&&"folder"),children:u(s)}),s.type==="file"&&_.jsx(_.Fragment,{children:_.jsx("span",{className:"file-size",title:s.size.toLocaleString("en-US")+" bytes",children:$c(s.size)})})]})},a))}),(t==null?void 0:t.length)===0&&_.jsx("div",{className:"center",children:"No files"}),t===void 0&&_.jsx(Zo,{className:"center"})]})}function ah(){const e=new URLSearchParams(location.search),t=e.get("url")??"https://huggingface.co/datasets/codeparrot/github-code/resolve/main/data/train-00000-of-01126.parquet";if(Array.isArray(t))throw new Error("url must be a string");try{const n=jp(t);return n.kind==="base"||n.kind==="repo"?_.jsxs(ir,{title:n.kind,children:[_.jsx(Tl,{url:n}),_.jsx("div",{className:"error",children:"Not implemented yet"}),_.jsx("pre",{children:JSON.stringify(n,null,2)})]}):n.kind==="folder"?_.jsx(sh,{url:n}):e.has("col")&&e.has("row")?_.jsx(Mp,{url:n,row:Number(e.get("row")),col:Number(e.get("col"))}):_.jsx(uh,{url:n})}catch(n){return _.jsx(ir,{error:n,title:"Error",children:_.jsx("div",{className:"error",children:n.message})})}}const Uc=document.getElementById("app");if(!Uc)throw new Error("No root element");Pc(Uc).render(_.jsx(z.StrictMode,{children:_.jsx(ah,{})}));