1&&D.length>1){let et=0;if(P[0]!==null&&P[1]!==null){I=H{o&&o.style.setProperty(\"--root-height\",`${t.clientHeight}px`)};p();let _=new ResizeObserver(p);return _.observe(t),()=>{document.removeEventListener(\"selectionchange\",f,{capture:!0}),_.disconnect()}},[]);let[nt,ot]=n.useState(!1),[L,Q]=n.useState(!1),[C,N]=n.useState(null),[G,$]=n.useState(null);n.useEffect(()=>{Pt(()=>{var p,_,l,S;(p=i.current)==null||p.dispatchEvent(new Event(\"input\"));let t=(_=i.current)==null?void 0:_.selectionStart,o=(l=i.current)==null?void 0:l.selectionEnd,f=(S=i.current)==null?void 0:S.selectionDirection;t!==null&&o!==null&&(N(t),$(o),X.current.prev=[t,o,f])})},[a,L]),n.useEffect(()=>{b!==void 0&&a!==b&&b.length{let o=t.currentTarget.value.slice(0,e);if(o.length>0&&d&&!d.test(o)){t.preventDefault();return}typeof b==\"string\"&&o.length{var t;if(i.current){let o=Math.min(i.current.value.length,e-1),f=i.current.value.length;(t=i.current)==null||t.setSelectionRange(o,f),N(o),$(f)}Q(!0)},[e]),ct=n.useCallback(t=>{var P,E;let o=i.current;if(!J.current.isIOS||!t.clipboardData||!o)return;let f=t.clipboardData.getData(\"text/plain\");t.preventDefault();let p=(P=i.current)==null?void 0:P.selectionStart,_=(E=i.current)==null?void 0:E.selectionEnd,w=(p!==_?a.slice(0,p)+f+a.slice(_):a.slice(0,p)+f+a.slice(p)).slice(0,e);if(w.length>0&&d&&!d.test(w))return;o.value=w,O(w);let y=Math.min(w.length,e-1),D=w.length;o.setSelectionRange(y,D),N(y),$(D)},[e,O,d,a]),Tt=n.useMemo(()=>({position:\"relative\",cursor:c.disabled?\"default\":\"text\",userSelect:\"none\",WebkitUserSelect:\"none\",pointerEvents:\"none\"}),[c.disabled]),at=n.useMemo(()=>({position:\"absolute\",inset:0,width:x.willPushPWMBadge?`calc(100% + ${x.PWM_BADGE_SPACE_WIDTH})`:\"100%\",clipPath:x.willPushPWMBadge?`inset(0 ${x.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:\"100%\",display:\"flex\",textAlign:u,opacity:\"1\",color:\"transparent\",pointerEvents:\"all\",background:\"transparent\",caretColor:\"transparent\",border:\"0 solid transparent\",outline:\"0 solid transparent\",boxShadow:\"none\",lineHeight:\"1\",letterSpacing:\"-.5em\",fontSize:\"var(--root-height)\",fontFamily:\"monospace\",fontVariantNumeric:\"tabular-nums\"}),[x.PWM_BADGE_SPACE_WIDTH,x.willPushPWMBadge,u]),It=n.useMemo(()=>n.createElement(\"input\",Et(gt({autoComplete:c.autoComplete||\"one-time-code\"},c),{\"data-input-otp\":!0,\"data-input-otp-mss\":C,\"data-input-otp-mse\":G,inputMode:W,pattern:d==null?void 0:d.source,style:at,maxLength:e,value:a,ref:i,onPaste:t=>{var o;ct(t),(o=c.onPaste)==null||o.call(c,t)},onChange:rt,onMouseOver:t=>{var o;ot(!0),(o=c.onMouseOver)==null||o.call(c,t)},onMouseLeave:t=>{var o;ot(!1),(o=c.onMouseLeave)==null||o.call(c,t)},onFocus:t=>{var o;st(),(o=c.onFocus)==null||o.call(c,t)},onBlur:t=>{var o;Q(!1),(o=c.onBlur)==null||o.call(c,t)}})),[rt,st,ct,W,at,e,G,C,c,d==null?void 0:d.source,a]),tt=n.useMemo(()=>({slots:Array.from({length:e}).map((t,o)=>{let f=L&&C!==null&&G!==null&&(C===G&&o===C||o>=C&&oA?A(tt):n.createElement(xt.Provider,{value:tt},V),[V,tt,A]);return n.createElement(n.Fragment,null,j!==null&&n.createElement(\"noscript\",null,n.createElement(\"style\",null,j)),n.createElement(\"div\",{ref:K,\"data-input-otp-container\":!0,style:Tt,className:q},Mt,n.createElement(\"div\",{style:{position:\"absolute\",inset:0,pointerEvents:\"none\"}},It)))});jt.displayName=\"Input\";function F(r,s){try{r.insertRule(s)}catch(e){console.error(\"input-otp could not insert CSS rule:\",s)}}var Lt=`\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}`;export{jt as OTPInput,xt as OTPInputContext,$t as REGEXP_ONLY_CHARS,bt as REGEXP_ONLY_DIGITS,Ft as REGEXP_ONLY_DIGITS_AND_CHARS};\n//# sourceMappingURL=index.mjs.map"],"names":["Promise","resolve","then","__webpack_require__","bind","IS_SESSION_STORAGE_AVAILABLE","_util_const_js__WEBPACK_IMPORTED_MODULE_0__","jU","Boolean","window","sessionStorage","useSessionStorageValue","key","options","_useStorageValue__WEBPACK_IMPORTED_MODULE_1__","$","_key","_options","value","undefined","set","ZT","remove","fetch","Object","defineProperty","exports","enumerable","get","createServerReference","_appcallserver","id","createServerReferenceImpl","callServer","dynamic","dynamicOptions","mergedOptions","loadableOptions","loading","error","isLoading","pastDelay","param","loader","Loadable","modules","loadableGenerated","_bailouttocsr","require","BailoutToCSR","children","reason","BailoutToCSRError","_default","convertModule","mod","default","hasDefault","defaultOptions","ssr","opts","Lazy","lazy","Loading","LoadableComponent","props","fallbackElement","_jsxruntime","jsx","jsxs","Fragment","PreloadCss","moduleIds","Suspense","fallback","displayName","_requestasyncstorageexternal","allFiles","getExpectedRequestStore","requestStore","manifest","reactLoadableManifest","cssFiles","push","length","map","file","rel","href","as","assetPrefix","encodeURI","_classCallCheck","instance","Constructor","_defineProperties","target","i","descriptor","configurable","writable","_createClass","protoProps","staticProps","prototype","_inherits","subClass","superClass","create","constructor","_setPrototypeOf","_getPrototypeOf","o","setPrototypeOf","getPrototypeOf","__proto__","p","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","Reflect","construct","sham","Proxy","Date","toString","call","e","result","Super","arguments","apply","_assertThisInitialized","self","_arrayLikeToArray","arr","len","arr2","zeroPad","strValue","String","match","prefix","suffix","strNo","paddedNo","_toConsumableArray","_arrayWithoutHoles","Array","isArray","_iterableToArray","iter","Symbol","iterator","from","_unsupportedIterableToArray","minLen","n","slice","name","test","_nonIterableSpread","join","concat","timeDeltaFormatOptionsDefaults","daysInHours","zeroPadTime","Countdown","_React$Component","_super","_this","state","count","startCountdown","interval","setInterval","stopCountdown","onComplete","setState","prevState","clearInterval","addTime","seconds","react__WEBPACK_IMPORTED_MODULE_0__","cloneElement","Component","propTypes","prop_types__WEBPACK_IMPORTED_MODULE_1__","number","element","func","Countdown$1","mounted","initialTimestamp","calcOffsetStartTimestamp","offsetStartTimestamp","autoStart","offsetTime","legacyMode","legacyCountdownRef","createRef","tick","timeDelta","calcTimeDelta","callback","completed","overtime","onTick","setTimeDeltaState","start","isStarted","prevOffsetStartTimestamp","onStart","controlled","clearTimer","intervalDelay","pause","isPaused","onPause","stop","isStopped","onStop","isStatus","isCompleted","date","status","onMount","prevProps","_this$props","now","precision","startTimestamp","_options$now","_options$precision","_options$offsetTime","getTime","timeLeft","total","Math","round","parseFloat","max","toFixed","min","abs","days","floor","hours","minutes","milliseconds","Number","current","_this2","completing","completedOnStart","newStatus","api","_Object$assign","_Object$assign$zeroPa","zeroPadDays","zeroPadTimeLength","formattedHours","_this$props2","assign","getApi","formatted","_this$props3","_children","createElement","ref","_this$props4","className","renderer","renderProps","getRenderProps","countdown","_renderProps$formatte","defaultProps","oneOfType","instanceOf","string","bool","__webpack_exports__","ZP","patchHistoryMethod","method","history","original","event","Event","toLowerCase","dispatchEvent","isBrowser","buildState","trigger","_a","_b","location","hash","host","hostname","origin","pathname","port","protocol","search","hasEventConstructor","Z","useState","useEffect","onPopstate","onPushstate","onReplacestate","on","off","ClaimQuestPage","questId","subdomain","moduleId","router","useRouter","usePathname","quest","useQuest","data","categoryId","replace","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","Skeletons","QuestPage","ClaimQuest","notFound","Wt","Bt","defineProperties","At","getOwnPropertyDescriptors","U","getOwnPropertySymbols","Rt","hasOwnProperty","vt","propertyIsEnumerable","pt","r","s","gt","Et","St","u","indexOf","bt","Ft","xt","createContext","jt","forwardRef","m","v","Y","it","lt","ut","dt","onChange","maxLength","textAlign","pattern","h","inputMode","W","B","pushPasswordManagerStrategy","z","containerClassName","q","noScriptCSSFallback","j","Lt","render","A","V","c","k","M","defaultValue","a","b","useRef","O","useCallback","t","d","useMemo","RegExp","K","J","isIOS","CSS","supports","X","prev","selectionStart","selectionEnd","selectionDirection","useImperativeHandle","f","document","activeElement","N","l","S","w","y","D","P","E","T","I","yt","Dt","H","et","Ht","setSelectionRange","ft","mt","Ct","addEventListener","capture","Q","getElementById","head","appendChild","sheet","F","style","setProperty","clientHeight","_","ResizeObserver","observe","removeEventListener","disconnect","nt","ot","L","C","G","setTimeout","x","wt","containerRef","inputRef","isFocused","done","refocused","g","getBoundingClientRect","left","offsetWidth","top","offsetHeight","querySelectorAll","elementFromPoint","blur","focus","innerWidth","right","clearTimeout","hasPWMBadge","willPushPWMBadge","PWM_BADGE_SPACE_WIDTH","rt","currentTarget","preventDefault","st","ct","clipboardData","getData","Tt","position","cursor","disabled","userSelect","WebkitUserSelect","pointerEvents","at","inset","width","clipPath","height","display","opacity","color","background","caretColor","border","outline","boxShadow","lineHeight","letterSpacing","fontSize","fontFamily","fontVariantNumeric","It","autoComplete","source","onPaste","onMouseOver","onMouseLeave","onFocus","onBlur","tt","slots","char","isActive","hasFakeCaret","isHovering","Mt","Provider","insertRule","console"],"sourceRoot":""}