PageSourceSearch

https://design-day-2026-foun-y4wx.bolt.host/assets/index-ZYx014Fa.js

js design-day-2026-foun-y4wx.bolt.host collected 2026-10-03 03:10:30 UTC 305,390 bytes, 111 lines download raw bytes

vendor: 10,769 bytes, lines 1-25
1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Nu={exports:{}},Qi={},Ou={exports:{}},R={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ir=Symbol.for("react.element"),ph=Symbol.for("react.portal"),mh=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),vh=Symbol.for("react.profiler"),yh=Symbol.for("react.provider"),wh=Symbol.for("react.context"),_h=Symbol.for("react.forward_ref"),kh=Symbol.for("react.suspense"),xh=Symbol.for("react.memo"),Sh=Symbol.for("react.lazy"),ra=Symbol.iterator;function Eh(t){return t===null||typeof t!="object"?null:(t=ra&&t[ra]||t["@@iterator"],typeof t=="function"?t:null)}var Au={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ru=Object.assign,Iu={};function Dn(t,e,n){this.props=t,this.context=e,this.refs=Iu,this.updater=n||Au}Dn.prototype.isReactComponent={};Dn.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Dn.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $u(){}$u.prototype=Dn.prototype;function rl(t,e,n){this.props=t,this.context=e,this.refs=Iu,this.updater=n||Au}var il=rl.prototype=new $u;il.constructor=rl;Ru(il,Dn.prototype);il.isPureReactComponent=!0;var ia=Array.isArray,Lu=Object.prototype.hasOwnProperty,sl={current:null},Du={key:!0,ref:!0,__self:!0,__source:!0};function Uu(t,e,n){var r,i={},s=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Lu.call(e,r)&&!Du.hasOwnProperty(r)&&(i[r]=e[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Ir,type:t,key:s,ref:o,props:i,_owner:sl.current}}function jh(t,e){return{$$typeof:Ir,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function ol(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ir}function Th(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var sa=/\/+/g;function ws(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Th(""+t.key):e.toString(36)}function di(t,e,n,r,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Ir:case ph:o=!0}}if(o)return o=t,i=i(o),t=r===""?"."+ws(o,0):r,ia(i)?(n="",t!=null&&(n=t.replace(sa,"$&/")+"/"),di(i,e,n,"",function(u){return u})):i!=null&&(ol(i)&&(i=jh(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(sa,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=r===""?".":r+":",ia(t))for(var l=0;l<t.length;l++){s=t[l];var a=r+ws(s,l);o+=di(s,e,n,a,i)}else if(a=Eh(t),typeof a=="function")for(t=a.call(t),l=0;!(s=t.next()).done;)s=s.value,a=r+ws(s,l++),o+=di(s,e,n,a,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Hr(t,e,n){if(t==null)return t;var r=[],i=0;return di(t,r,"","",function(s){return e.call(n,s,i++)}),r}function Ch(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var pe={current:null},hi={transition:null},bh={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:hi,ReactCurrentOwner:sl};function zu(){throw Error("act(...) is not supported in production builds of React.")}R.Children={map:Hr,forEach:function(t,e,n){Hr(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Hr(t,function(){e++}),e},toArray:function(t){return Hr(t,function(e){return e})||[]},only:function(t){if(!ol(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};R.Component=Dn;R.Fragment=mh;R.Profiler=vh;R.PureComponent=rl;R.StrictMode=gh;R.Suspense=kh;R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bh;R.act=zu;R.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Ru({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=sl.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(a in e)Lu.call(e,a)&&!Du.hasOwnProperty(a)&&(r[a]=e[a]===void 0&&l!==void 0?l[a]:e[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ir,type:t.type,key:i,ref:s,props:r,_owner:o}};R.createContext=function(t){return t={$$typeof:wh,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:yh,_context:t},t.Consumer=t};R.createElement=Uu;R.createFactory=function(t){var e=Uu.bind(null,t);return e.type=t,e};R.createRef=function(){return{current:null}};R.forwardRef=function(t){return{$$typeof:_h,render:t}};R.isValidElement=ol;R.lazy=function(t){return{$$typeof:Sh,_payload:{_status:-1,_result:t},_init:Ch}};R.memo=function(t,e){return{$$typeof:xh,type:t,compare:e===void 0?null:e}};R.startTransition=function(t){var e=hi.transition;hi.transition={};try{t()}finally{hi.transition=e}};R.unstable_act=zu;R.useCallback=function(t,e){return pe.current.useCallback(t,e)};R.useContext=function(t){return pe.current.useContext(t)};R.useDebugValue=function(){};R.useDeferredValue=function(t){return pe.current.useDeferredValue(t)};R.useEffect=function(t,e){return pe.current.useEffect(t,e)};R.useId=function(){return pe.current.useId()};R.useImperativeHandle=function(t,e,n){return pe.current.useImperativeHandle(t,e,n)};R.useInsertionEffect=function(t,e){return pe.current.useInsertionEffect(t,e)};R.useLayoutEffect=function(t,e){return pe.current.useLayoutEffect(t,e)};R.useMemo=function(t,e){return pe.current.useMemo(t,e)};R.useReducer=function(t,e,n){return pe.current.useReducer(t,e,n)};R.useRef=function(t){return pe.current.useRef(t)};R.useState=function(t){return pe.current.useState(t)};R.useSyncExternalStore=function(t,e,n){return pe.current.useSyncExternalStore(t,e,n)};R.useTransition=function(){return pe.current.useTransition()};R.version="18.3.1";Ou.exports=R;var G=Ou.exports;/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Ph=G,Nh=Symbol.for("react.element"),Oh=Symbol.for("react.fragment"),Ah=Object.prototype.hasOwnProperty,Rh=Ph.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ih={key:!0,ref:!0,__self:!0,__source:!0};function Mu(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)Ah.call(e,r)&&!Ih.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:Nh,type:t,key:s,ref:o,props:i,_owner:Rh.current}}Qi.Fragment=Oh;Qi.jsx=Mu;Qi.jsxs=Mu;Nu.exports=Qi;var g=Nu.exports,Fu={exports:{}},Te={},Bu={exports:{}},Wu={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(t){function e(C,N){var O=C.length;C.push(N);e:for(;0<O;){var q=O-1>>>1,te=C[q];if(0<i(te,N))C[q]=N,C[O]=te,O=q;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var N=C[0],O=C.pop();if(O!==N){C[0]=O;e:for(var q=0,te=C.length,Br=te>>>1;q<Br;){var Rt=2*(q+1)-1,ys=C[Rt],It=Rt+1,Wr=C[It];if(0>i(ys,O))It<te&&0>i(Wr,ys)?(C[q]=Wr,C[It]=O,q=It):(C[q]=ys,C[Rt]=O,q=Rt);else if(It<te&&0>i(Wr,O))C[q]=Wr,C[It]=O,q=It;else break e}}return N}function i(C,N){var O=C.sortIndex-N.sortIndex;return O!==0?O:C.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,d=null,h=3,v=!1,y=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(C){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=C)r(u),N.sortIndex=N.expirationTime,e(a,N);else break;N=n(u)}}function w(C){if(k=!1,m(C),!y)if(n(a)!==null)y=!0,gs(E);else{var N=n(u);N!==null&&vs(w,N.startTime-C)}}function E(C,N){y=!1,k&&(k=!1,p(b),b=-1),v=!0;var O=h;try{for(m(N),d=n(a);d!==null&&(!(d.expirationTime>N)||C&&!$e());){var q=d.callback;
vendor: 1,993 bytes, line 25
25if(typeof q=="function"){d.callback=null,h=d.priorityLevel;var te=q(d.expirationTime<=N);N=t.unstable_now(),typeof te=="function"?d.callback=te:d===n(a)&&r(a),m(N)}else r(a);d=n(a)}if(d!==null)var Br=!0;else{var Rt=n(u);Rt!==null&&vs(w,Rt.startTime-N),Br=!1}return Br}finally{d=null,h=O,v=!1}}var S=!1,j=null,b=-1,K=5,I=-1;function $e(){return!(t.unstable_now()-I<K)}function Bn(){if(j!==null){var C=t.unstable_now();I=C;var N=!0;try{N=j(!0,C)}finally{N?Wn():(S=!1,j=null)}}else S=!1}var Wn;if(typeof f=="function")Wn=function(){f(Bn)};else if(typeof MessageChannel<"u"){var na=new MessageChannel,hh=na.port2;na.port1.onmessage=Bn,Wn=function(){hh.postMessage(null)}}else Wn=function(){_(Bn,0)};function gs(C){j=C,S||(S=!0,Wn())}function vs(C,N){b=_(function(){C(t.unstable_now())},N)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(C){C.callback=null},t.unstable_continueExecution=function(){y||v||(y=!0,gs(E))},t.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<C?Math.floor(1e3/C):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(a)},t.unstable_next=function(C){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var O=h;h=N;try{return C()}finally{h=O}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(C,N){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var O=h;h=C;try{return N()}finally{h=O}},t.unstable_scheduleCallback=function(C,N,O){var q=t.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?q+O:q):O=q,C){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}
vendor: 4,621 bytes, lines 25-33
25return te=O+te,C={id:c++,callback:N,priorityLevel:C,startTime:O,expirationTime:te,sortIndex:-1},O>q?(C.sortIndex=O,e(u,C),n(a)===null&&C===n(u)&&(k?(p(b),b=-1):k=!0,vs(w,O-q))):(C.sortIndex=te,e(a,C),y||v||(y=!0,gs(E))),C},t.unstable_shouldYield=$e,t.unstable_wrapCallback=function(C){var N=h;return function(){var O=h;h=N;try{return C.apply(this,arguments)}finally{h=O}}}})(Wu);Bu.exports=Wu;var $h=Bu.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Lh=G,je=$h;function x(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Hu=new Set,gr={};function Yt(t,e){Pn(t,e),Pn(t+"Capture",e)}function Pn(t,e){for(gr[t]=e,t=0;t<e.length;t++)Hu.add(e[t])}var it=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zs=Object.prototype.hasOwnProperty,Dh=/^[: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]*$/,oa={},la={};function Uh(t){return Zs.call(la,t)?!0:Zs.call(oa,t)?!1:Dh.test(t)?la[t]=!0:(oa[t]=!0,!1)}function zh(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Mh(t,e,n,r){if(e===null||typeof e>"u"||zh(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function me(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){oe[t]=new me(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];oe[e]=new me(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){oe[t]=new me(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){oe[t]=new me(t,2,!1,t,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(t){oe[t]=new me(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){oe[t]=new me(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){oe[t]=new me(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){oe[t]=new me(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){oe[t]=new me(t,5,!1,t.toLowerCase(),null,!1,!1)});var ll=/[\-:]([a-z])/g;function al(t){return t[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
33-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(t){var e=t.replace(ll,al);oe[e]=new me(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(ll,al);oe[e]=new me(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(ll,al);oe[e]=new me(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){oe[t]=new me(t,1,!1,t.toLowerCase(),null,!1,!1)});oe.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){oe[t]=new me(t,1,!1,t.toLowerCase(),null,!0,!0)});function ul(t,e,n,r){var i=oe.hasOwnProperty(e)?oe[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Mh(e,n,i,r)&&(n=null),r||i===null?Uh(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var at=Lh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vr=Symbol.for("react.element"),dn=Symbol.for("react.portal"),hn=Symbol.for("react.fragment"),cl=Symbol.for("react.strict_mode"),eo=Symbol.for("react.profiler"),Vu=Symbol.for("react.provider"),Ku=Symbol.for("react.context"),dl=Symbol.for("react.forward_ref"),to=Symbol.for("react.suspense"),no=Symbol.for("react.suspense_list"),hl=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),qu=Symbol.for("react.offscreen"),aa=Symbol.iterator;function Hn(t){return t===null||typeof t!="object"?null:(t=aa&&t[aa]||t["@@iterator"],typeof t=="function"?t:null)}var H=Object.assign,_s;function Zn(t){if(_s===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);_s=e&&e[1]||""}return`
34`+_s+t}var ks=!1;function xs(t,e){if(!t||ks)return"";ks=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35`),s=r.stack.split(`
36`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
37`+i[o].replace(" at new "," at ");return t.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{ks=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Zn(t):""}function Fh(t){switch(t.tag){case 5:return Zn(t.type);case 16:return Zn("Lazy");case 13:return Zn("Suspense");case 19:return Zn("SuspenseList");case 0:case 2:case 15:return t=xs(t.type,!1),t;case 11:return t=xs(t.type.render,!1),t;case 1:return t=xs(t.type,!0),t;default:return""}}function ro(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case hn:return"Fragment";case dn:return"Portal";case eo:return"Profiler";case cl:return"StrictMode";case to:return"Suspense";case no:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ku:return(t.displayName||"Context")+".Consumer";case Vu:return(t._context.displayName||"Context")+".Provider";case dl:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case hl:return e=t.displayName||null,e!==null?e:ro(t.type)||"Memo";case ht:e=t._payload,t=t._init;try{return ro(t(e))}catch{}}return null}function Bh(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ro(e);case 8:return e===cl?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ct(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Gu(t){var e=t.type;
vendor: 15,734 bytes, line 37
37return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Wh(t){var e=Gu(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Kr(t){t._valueTracker||(t._valueTracker=Wh(t))}function Qu(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Gu(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Si(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function io(t,e){var n=e.checked;return H({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function ua(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Ct(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Ju(t,e){e=e.checked,e!=null&&ul(t,"checked",e,!1)}function so(t,e){Ju(t,e);var n=Ct(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?oo(t,e.type,n):e.hasOwnProperty("defaultValue")&&oo(t,e.type,Ct(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ca(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function oo(t,e,n){(e!=="number"||Si(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var er=Array.isArray;function Sn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Ct(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function lo(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(x(91));return H({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function da(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(x(92));if(er(n)){if(1<n.length)throw Error(x(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Ct(n)}}function Yu(t,e){var n=Ct(e.value),r=Ct(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function ha(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Xu(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ao(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Xu(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var qr,Zu=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(qr=qr||document.createElement("div"),qr.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=qr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function vr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ir={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},Hh=["Webkit","ms","Moz","O"];Object.keys(ir).forEach(function(t){Hh.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ir[e]=ir[t]})});function ec(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||ir.hasOwnProperty(t)&&ir[t]?(""+e).trim():e+"px"}function tc(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ec(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var Vh=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 uo(t,e){if(e){if(Vh[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(x(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(x(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(x(61))}if(e.style!=null&&typeof e.style!="object")throw Error(x(62))}}function co(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 ho=null;function fl(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fo=null,En=null,jn=null;function fa(t){if(t=Dr(t)){if(typeof fo!="function")throw Error(x(280));var e=t.stateNode;e&&(e=es(e),fo(t.stateNode,t.type,e))}}function nc(t){En?jn?jn.push(t):jn=[t]:En=t}function rc(){if(En){var t=En,e=jn;if(jn=En=null,fa(t),e)for(t=0;t<e.length;t++)fa(e[t])}}function ic(t,e){return t(e)}function sc(){}var Ss=!1;function oc(t,e,n){if(Ss)return t(e,n);Ss=!0;try{return ic(t,e,n)}finally{Ss=!1,(En!==null||jn!==null)&&(sc(),rc())}}function yr(t,e){var n=t.stateNode;if(n===null)return null;var r=es(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(x(231,e,typeof n));return n}var po=!1;if(it)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){po=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{po=!1}function Kh(t,e,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var sr=!1,Ei=null,ji=!1,mo=null,qh={onError:function(t){sr=!0,Ei=t}};function Gh(t,e,n,r,i,s,o,l,a){sr=!1,Ei=null,Kh.apply(qh,arguments)}function Qh(t,e,n,r,i,s,o,l,a){if(Gh.apply(this,arguments),sr){if(sr){var u=Ei;sr=!1,Ei=null}else throw Error(x(198));ji||(ji=!0,mo=u)}}function Xt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function lc(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function pa(t){if(Xt(t)!==t)throw Error(x(188))}function Jh(t){var e=t.alternate;if(!e){if(e=Xt(t),e===null)throw Error(x(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return pa(i),t;if(s===r)return pa(i),e;s=s.sibling}throw Error(x(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?t:e}function ac(t){return t=Jh(t),t!==null?uc(t):null}function uc(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=uc(t);if(e!==null)return e;t=t.sibling}return null}var cc=je.unstable_scheduleCallback,ma=je.unstable_cancelCallback,Yh=je.unstable_shouldYield,Xh=je.unstable_requestPaint,Q=je.unstable_now,Zh=je.unstable_getCurrentPriorityLevel,pl=je.unstable_ImmediatePriority,dc=je.unstable_UserBlockingPriority,Ti=je.unstable_NormalPriority,ef=je.unstable_LowPriority,hc=je.unstable_IdlePriority,Ji=null,Qe=null;function tf(t){if(Qe&&typeof Qe.onCommitFiberRoot=="function")try{Qe.onCommitFiberRoot(Ji,t,void 0,(t.current.flags&128)===128)}catch{}}var Be=Math.clz32?Math.clz32:sf,nf=Math.log,rf=Math.LN2;function sf(t){return t>>>=0,t===0?32:31-(nf(t)/rf|0)|0}var Gr=64,Qr=4194304;function tr(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ci(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=tr(l):(s&=o,s!==0&&(r=tr(s)))}else o=n&~i,o!==0?r=tr(o):s!==0&&(r=tr(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Be(e),i=1<<n,r|=t[n],e&=~i;return r}function of(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lf(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-Be(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=of(l,e)):a<=e&&(t.expiredLanes|=l),s&=~l}}function go(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function fc(){var t=Gr;return Gr<<=1,!(Gr&4194240)&&(Gr=64),t}function Es(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function $r(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Be(e),t[e]=n}function af(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Be(n),s=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~s}}function ml(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Be(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var L=0;function pc(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var mc,gl,gc,vc,yc,vo=!1,Jr=[],wt=null,_t=null,kt=null,wr=new Map,_r=new Map,pt=[],uf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ga(t,e){switch(t){case"focusin":case"focusout":wt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":wr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":_r.delete(e.pointerId)}}function Kn(t,e,n,r,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=Dr(e),e!==null&&gl(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function cf(t,e,n,r,i){switch(e){case"focusin":return wt=Kn(wt,t,e,n,r,i),!0;case"dragenter":return _t=Kn(_t,t,e,n,r,i),!0;case"mouseover":return kt=Kn(kt,t,e,n,r,i),!0;case"pointerover":var s=i.pointerId;return wr.set(s,Kn(wr.get(s)||null,t,e,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,_r.set(s,Kn(_r.get(s)||null,t,e,n,r,i)),!0}return!1}function wc(t){var e=Ft(t.target);if(e!==null){var n=Xt(e);if(n!==null){if(e=n.tag,e===13){if(e=lc(n),e!==null){t.blockedOn=e,yc(t.priority,function(){gc(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=yo(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);ho=r,n.target.dispatchEvent(r),ho=null}else return e=Dr(n),e!==null&&gl(e),t.blockedOn=n,!1;e.shift()}return!0}function va(t,e,n){fi(t)&&n.delete(e)}function df(){vo=!1,wt!==null&&fi(wt)&&(wt=null),_t!==null&&fi(_t)&&(_t=null),kt!==null&&fi(kt)&&(kt=null),wr.forEach(va),_r.forEach(va)}function qn(t,e){t.blockedOn===e&&(t.blockedOn=null,vo||(vo=!0,je.unstable_scheduleCallback(je.unstable_NormalPriority,df)))}function kr(t){function e(i){return qn(i,t)}if(0<Jr.length){qn(Jr[0],t);for(var n=1;n<Jr.length;n++){var r=Jr[n];r.blockedOn===t&&(r.blockedOn=null)}}for(wt!==null&&qn(wt,t),_t!==null&&qn(_t,t),kt!==null&&qn(kt,t),wr.forEach(e),_r.forEach(e),n=0;n<pt.length;n++)r=pt[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<pt.length&&(n=pt[0],n.blockedOn===null);)wc(n),n.blockedOn===null&&pt.shift()}var Tn=at.ReactCurrentBatchConfig,bi=!0;function hf(t,e,n,r){var i=L,s=Tn.transition;Tn.transition=null;try{L=1,vl(t,e,n,r)}finally{L=i,Tn.transition=s}}function ff(t,e,n,r){var i=L,s=Tn.transition;Tn.transition=null;try{L=4,vl(t,e,n,r)}finally{L=i,Tn.transition=s}}function vl(t,e,n,r){if(bi){var i=yo(t,e,n,r);if(i===null)Is(t,e,r,Pi,n),ga(t,r);else if(cf(i,t,e,n,r))r.stopPropagation();else if(ga(t,r),e&4&&-1<uf.indexOf(t)){for(;i!==null;){var s=Dr(i);if(s!==null&&mc(s),s=yo(t,e,n,r),s===null&&Is(t,e,r,Pi,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Is(t,e,r,null,n)}}var Pi=null;function yo(t,e,n,r){if(Pi=null,t=fl(r),t=Ft(t),t!==null)if(e=Xt(t),e===null)t=null;else if(n=e.tag,n===13){if(t=lc(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Pi=t,null}
vendor: 10,388 bytes, line 37
37function _c(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Zh()){case pl:return 1;case dc:return 4;case Ti:case ef:return 16;case hc:return 536870912;default:return 16}default:return 16}}var vt=null,yl=null,pi=null;function kc(){if(pi)return pi;var t,e=yl,n=e.length,r,i="value"in vt?vt.value:vt.textContent,s=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[s-r];r++);return pi=i.slice(t,1<r?1-r:void 0)}function mi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Yr(){return!0}function ya(){return!1}function Ce(t){function e(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Yr:ya,this.isPropagationStopped=ya,this}return H(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yr)},persist:function(){},isPersistent:Yr}),e}var Un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wl=Ce(Un),Lr=H({},Un,{view:0,detail:0}),pf=Ce(Lr),js,Ts,Gn,Yi=H({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_l,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gn&&(Gn&&t.type==="mousemove"?(js=t.screenX-Gn.screenX,Ts=t.screenY-Gn.screenY):Ts=js=0,Gn=t),js)},movementY:function(t){return"movementY"in t?t.movementY:Ts}}),wa=Ce(Yi),mf=H({},Yi,{dataTransfer:0}),gf=Ce(mf),vf=H({},Lr,{relatedTarget:0}),Cs=Ce(vf),yf=H({},Un,{animationName:0,elapsedTime:0,pseudoElement:0}),wf=Ce(yf),_f=H({},Un,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),kf=Ce(_f),xf=H({},Un,{data:0}),_a=Ce(xf),Sf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ef={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tf(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=jf[t])?!!e[t]:!1}function _l(){return Tf}var Cf=H({},Lr,{key:function(t){if(t.key){var e=Sf[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=mi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Ef[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_l,charCode:function(t){return t.type==="keypress"?mi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),bf=Ce(Cf),Pf=H({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ka=Ce(Pf),Nf=H({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_l}),Of=Ce(Nf),Af=H({},Un,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rf=Ce(Af),If=H({},Yi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),$f=Ce(If),Lf=[9,13,27,32],kl=it&&"CompositionEvent"in window,or=null;it&&"documentMode"in document&&(or=document.documentMode);var Df=it&&"TextEvent"in window&&!or,xc=it&&(!kl||or&&8<or&&11>=or),xa=" ",Sa=!1;function Sc(t,e){switch(t){case"keyup":return Lf.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ec(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fn=!1;function Uf(t,e){switch(t){case"compositionend":return Ec(e);case"keypress":return e.which!==32?null:(Sa=!0,xa);case"textInput":return t=e.data,t===xa&&Sa?null:t;default:return null}}function zf(t,e){if(fn)return t==="compositionend"||!kl&&Sc(t,e)?(t=kc(),pi=yl=vt=null,fn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return xc&&e.locale!=="ko"?null:e.data;default:return null}}var Mf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ea(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Mf[t.type]:e==="textarea"}function jc(t,e,n,r){nc(r),e=Ni(e,"onChange"),0<e.length&&(n=new wl("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var lr=null,xr=null;function Ff(t){Lc(t,0)}function Xi(t){var e=gn(t);if(Qu(e))return t}function Bf(t,e){if(t==="change")return e}var Tc=!1;if(it){var bs;if(it){var Ps="oninput"in document;if(!Ps){var ja=document.createElement("div");ja.setAttribute("oninput","return;"),Ps=typeof ja.oninput=="function"}bs=Ps}else bs=!1;Tc=bs&&(!document.documentMode||9<document.documentMode)}function Ta(){lr&&(lr.detachEvent("onpropertychange",Cc),xr=lr=null)}function Cc(t){if(t.propertyName==="value"&&Xi(xr)){var e=[];jc(e,xr,t,fl(t)),oc(Ff,e)}}function Wf(t,e,n){t==="focusin"?(Ta(),lr=e,xr=n,lr.attachEvent("onpropertychange",Cc)):t==="focusout"&&Ta()}function Hf(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xi(xr)}function Vf(t,e){if(t==="click")return Xi(e)}function Kf(t,e){if(t==="input"||t==="change")return Xi(e)}function qf(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var He=typeof Object.is=="function"?Object.is:qf;function Sr(t,e){if(He(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Zs.call(e,i)||!He(t[i],e[i]))return!1}return!0}function Ca(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ba(t,e){var n=Ca(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ca(n)}}function bc(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bc(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Pc(){for(var t=window,e=Si();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Si(t.document)}return e}function xl(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Gf(t){var e=Pc(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&bc(n.ownerDocument.documentElement,n)){if(r!==null&&xl(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=ba(n,s);var o=ba(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Qf=it&&"documentMode"in document&&11>=document.documentMode,pn=null,wo=null,ar=null,_o=!1;function Pa(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_o||pn==null||pn!==Si(r)||(r=pn,"selectionStart"in r&&xl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,500 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),ar&&Sr(ar,r)||(ar=r,r=Ni(wo,"onSelect"),0<r.length&&(e=new wl("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=pn)))}function Xr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var mn={animationend:Xr("Animation","AnimationEnd"),animationiteration:Xr("Animation","AnimationIteration"),animationstart:Xr("Animation","AnimationStart"),transitionend:Xr("Transition","TransitionEnd")},Ns={},Nc={};it&&(Nc=document.createElement("div").style,"AnimationEvent"in window||(delete mn.animationend.animation,delete mn.animationiteration.animation,delete mn.animationstart.animation),"TransitionEvent"in window||delete mn.transitionend.transition);function Zi(t){if(Ns[t])return Ns[t];if(!mn[t])return t;var e=mn[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Nc)return Ns[t]=e[n];return t}var Oc=Zi("animationend"),Ac=Zi("animationiteration"),Rc=Zi("animationstart"),Ic=Zi("transitionend"),$c=new Map,Na="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pt(t,e){$c.set(t,e),Yt(e,[t])}for(var Os=0;Os<Na.length;Os++){var As=Na[Os],Jf=As.toLowerCase(),Yf=As[0].toUpperCase()+As.slice(1);Pt(Jf,"on"+Yf)}Pt(Oc,"onAnimationEnd");Pt(Ac,"onAnimationIteration");Pt(Rc,"onAnimationStart");Pt("dblclick","onDoubleClick");Pt("focusin","onFocus");Pt("focusout","onBlur");Pt(Ic,"onTransitionEnd");Pn("onMouseEnter",["mouseout","mouseover"]);Pn("onMouseLeave",["mouseout","mouseover"]);Pn("onPointerEnter",["pointerout","pointerover"]);Pn("onPointerLeave",["pointerout","pointerover"]);Yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xf=new Set("cancel close invalid load scroll toggle".split(" ").concat(nr));function Oa(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Qh(r,e,void 0,t),t.currentTarget=null}function Lc(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;Oa(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;Oa(i,l,u),s=a}}}if(ji)throw t=mo,ji=!1,mo=null,t}function z(t,e){var n=e[jo];n===void 0&&(n=e[jo]=new Set);var r=t+"__bubble";n.has(r)||(Dc(e,t,2,!1),n.add(r))}function Rs(t,e,n){var r=0;e&&(r|=4),Dc(n,t,r,e)}var Zr="_reactListening"+Math.random().toString(36).slice(2);function Er(t){if(!t[Zr]){t[Zr]=!0,Hu.forEach(function(n){n!=="selectionchange"&&(Xf.has(n)||Rs(n,!1,t),Rs(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zr]||(e[Zr]=!0,Rs("selectionchange",!1,e))}}function Dc(t,e,n,r){switch(_c(e)){case 1:var i=hf;break;case 4:i=ff;break;default:i=vl}n=i.bind(null,e,n,t),i=void 0,!po||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Is(t,e,n,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;
vendor: 5,316 bytes, lines 37-38
37if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Ft(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}oc(function(){var u=s,c=fl(n),d=[];e:{var h=$c.get(t);if(h!==void 0){var v=wl,y=t;switch(t){case"keypress":if(mi(n)===0)break e;case"keydown":case"keyup":v=bf;break;case"focusin":y="focus",v=Cs;break;case"focusout":y="blur",v=Cs;break;case"beforeblur":case"afterblur":v=Cs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=wa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=gf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Of;break;case Oc:case Ac:case Rc:v=wf;break;case Ic:v=Rf;break;case"scroll":v=pf;break;case"wheel":v=$f;break;case"copy":case"cut":case"paste":v=kf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=ka}var k=(e&4)!==0,_=!k&&t==="scroll",p=k?h!==null?h+"Capture":null:h;k=[];for(var f=u,m;f!==null;){m=f;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,p!==null&&(w=yr(f,p),w!=null&&k.push(jr(f,w,m)))),_)break;f=f.return}0<k.length&&(h=new v(h,y,null,n,c),d.push({event:h,listeners:k}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",v=t==="mouseout"||t==="pointerout",h&&n!==ho&&(y=n.relatedTarget||n.fromElement)&&(Ft(y)||y[st]))break e;if((v||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=u,y=y?Ft(y):null,y!==null&&(_=Xt(y),y!==_||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=u),v!==y)){if(k=wa,w="onMouseLeave",p="onMouseEnter",f="mouse",(t==="pointerout"||t==="pointerover")&&(k=ka,w="onPointerLeave",p="onPointerEnter",f="pointer"),_=v==null?h:gn(v),m=y==null?h:gn(y),h=new k(w,f+"leave",v,n,c),h.target=_,h.relatedTarget=m,w=null,Ft(c)===u&&(k=new k(p,f+"enter",y,n,c),k.target=m,k.relatedTarget=_,w=k),_=w,v&&y)t:{for(k=v,p=y,f=0,m=k;m;m=tn(m))f++;for(m=0,w=p;w;w=tn(w))m++;for(;0<f-m;)k=tn(k),f--;for(;0<m-f;)p=tn(p),m--;for(;f--;){if(k===p||p!==null&&k===p.alternate)break t;k=tn(k),p=tn(p)}k=null}else k=null;v!==null&&Aa(d,h,v,k,!1),y!==null&&_!==null&&Aa(d,_,y,k,!0)}}e:{if(h=u?gn(u):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var E=Bf;else if(Ea(h))if(Tc)E=Kf;else{E=Hf;var S=Wf}else(v=h.nodeName)&&v.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Vf);if(E&&(E=E(t,u))){jc(d,E,n,c);break e}S&&S(t,h,u),t==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&oo(h,"number",h.value)}switch(S=u?gn(u):window,t){case"focusin":(Ea(S)||S.contentEditable==="true")&&(pn=S,wo=u,ar=null);break;case"focusout":ar=wo=pn=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,Pa(d,n,c);break;case"selectionchange":if(Qf)break;case"keydown":case"keyup":Pa(d,n,c)}var j;if(kl)e:{switch(t){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else fn?Sc(t,n)&&(b="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(xc&&n.locale!=="ko"&&(fn||b!=="onCompositionStart"?b==="onCompositionEnd"&&fn&&(j=kc()):(vt=c,yl="value"in vt?vt.value:vt.textContent,fn=!0)),S=Ni(u,b),0<S.length&&(b=new _a(b,t,null,n,c),d.push({event:b,listeners:S}),j?b.data=j:(j=Ec(n),j!==null&&(b.data=j)))),(j=Df?Uf(t,n):zf(t,n))&&(u=Ni(u,"onBeforeInput"),0<u.length&&(c=new _a("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=j))}Lc(d,e)})}function jr(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ni(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=yr(t,n),s!=null&&r.unshift(jr(t,s,i)),s=yr(t,e),s!=null&&r.push(jr(t,s,i))),t=t.return}return r}function tn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Aa(t,e,n,r,i){for(var s=e._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=yr(n,s),a!=null&&o.unshift(jr(n,a,l))):i||(a=yr(n,s),a!=null&&o.push(jr(n,a,l)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Zf=/\r\n?/g,ep=/\u0000|\uFFFD/g;function Ra(t){return(typeof t=="string"?t:""+t).replace(Zf,`
38`).replace(ep,"")}function ei(t,e,n){if(e=Ra(e),Ra(t)!==e&&n)throw Error(x(425))}function Oi(){}var ko=null,xo=null;function So(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Eo=typeof setTimeout=="function"?setTimeout:void 0,tp=typeof clearTimeout=="function"?clearTimeout:void 0,Ia=typeof Promise=="function"?Promise:void 0,np=typeof queueMicrotask=="function"?queueMicrotask:typeof Ia<"u"?function(t){return Ia.resolve(null).then(t).cat
vendor: 4,270 bytes, line 38
38ch(rp)}:Eo;function rp(t){setTimeout(function(){throw t})}function $s(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),kr(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);kr(e)}function xt(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function $a(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var zn=Math.random().toString(36).slice(2),Ge="__reactFiber$"+zn,Tr="__reactProps$"+zn,st="__reactContainer$"+zn,jo="__reactEvents$"+zn,ip="__reactListeners$"+zn,sp="__reactHandles$"+zn;function Ft(t){var e=t[Ge];if(e)return e;for(var n=t.parentNode;n;){if(e=n[st]||n[Ge]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=$a(t);t!==null;){if(n=t[Ge])return n;t=$a(t)}return e}t=n,n=t.parentNode}return null}function Dr(t){return t=t[Ge]||t[st],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function gn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(x(33))}function es(t){return t[Tr]||null}var To=[],vn=-1;function Nt(t){return{current:t}}function M(t){0>vn||(t.current=To[vn],To[vn]=null,vn--)}function U(t,e){vn++,To[vn]=t.current,t.current=e}var bt={},ce=Nt(bt),we=Nt(!1),Kt=bt;function Nn(t,e){var n=t.type.contextTypes;if(!n)return bt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function _e(t){return t=t.childContextTypes,t!=null}function Ai(){M(we),M(ce)}function La(t,e,n){if(ce.current!==bt)throw Error(x(168));U(ce,e),U(we,n)}function Uc(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(x(108,Bh(t)||"Unknown",i));return H({},n,r)}function Ri(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||bt,Kt=ce.current,U(ce,t),U(we,we.current),!0}function Da(t,e,n){var r=t.stateNode;if(!r)throw Error(x(169));n?(t=Uc(t,e,Kt),r.__reactInternalMemoizedMergedChildContext=t,M(we),M(ce),U(ce,t)):M(we),U(we,n)}var et=null,ts=!1,Ls=!1;function zc(t){et===null?et=[t]:et.push(t)}function op(t){ts=!0,zc(t)}function Ot(){if(!Ls&&et!==null){Ls=!0;var t=0,e=L;try{var n=et;for(L=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}et=null,ts=!1}catch(i){throw et!==null&&(et=et.slice(t+1)),cc(pl,Ot),i}finally{L=e,Ls=!1}}return null}var yn=[],wn=0,Ii=null,$i=0,be=[],Pe=0,qt=null,tt=1,nt="";function Dt(t,e){yn[wn++]=$i,yn[wn++]=Ii,Ii=t,$i=e}function Mc(t,e,n){be[Pe++]=tt,be[Pe++]=nt,be[Pe++]=qt,qt=t;var r=tt;t=nt;var i=32-Be(r)-1;r&=~(1<<i),n+=1;var s=32-Be(e)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,tt=1<<32-Be(e)+i|n<<i|r,nt=s+t}else tt=1<<s|n<<i|r,nt=t}function Sl(t){t.return!==null&&(Dt(t,1),Mc(t,1,0))}function El(t){for(;t===Ii;)Ii=yn[--wn],yn[wn]=null,$i=yn[--wn],yn[wn]=null;for(;t===qt;)qt=be[--Pe],be[Pe]=null,nt=be[--Pe],be[Pe]=null,tt=be[--Pe],be[Pe]=null}var Ee=null,Se=null,F=!1,Fe=null;function Fc(t,e){var n=Ne(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Ua(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Ee=t,Se=xt(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Ee=t,Se=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=qt!==null?{id:tt,overflow:nt}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Ne(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Ee=t,Se=null,!0):!1;default:return!1}}function Co(t){return(t.mode&1)!==0&&(t.flags&128)===0}function bo(t){if(F){var e=Se;if(e){var n=e;if(!Ua(t,e)){if(Co(t))throw Error(x(418));e=xt(n.nextSibling);var r=Ee;e&&Ua(t,e)?Fc(r,n):(t.flags=t.flags&-4097|2,F=!1,Ee=t)}
vendor: 26,062 bytes, lines 38-40
38}else{if(Co(t))throw Error(x(418));t.flags=t.flags&-4097|2,F=!1,Ee=t}}}function za(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ee=t}function ti(t){if(t!==Ee)return!1;if(!F)return za(t),F=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!So(t.type,t.memoizedProps)),e&&(e=Se)){if(Co(t))throw Bc(),Error(x(418));for(;e;)Fc(t,e),e=xt(e.nextSibling)}if(za(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(x(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Se=xt(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Se=null}}else Se=Ee?xt(t.stateNode.nextSibling):null;return!0}function Bc(){for(var t=Se;t;)t=xt(t.nextSibling)}function On(){Se=Ee=null,F=!1}function jl(t){Fe===null?Fe=[t]:Fe.push(t)}var lp=at.ReactCurrentBatchConfig;function Qn(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,t))}return t}function ni(t,e){throw t=Object.prototype.toString.call(e),Error(x(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ma(t){var e=t._init;return e(t._payload)}function Wc(t){function e(p,f){if(t){var m=p.deletions;m===null?(p.deletions=[f],p.flags|=16):m.push(f)}}function n(p,f){if(!t)return null;for(;f!==null;)e(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function i(p,f){return p=Tt(p,f),p.index=0,p.sibling=null,p}function s(p,f,m){return p.index=m,t?(m=p.alternate,m!==null?(m=m.index,m<f?(p.flags|=2,f):m):(p.flags|=2,f)):(p.flags|=1048576,f)}function o(p){return t&&p.alternate===null&&(p.flags|=2),p}function l(p,f,m,w){return f===null||f.tag!==6?(f=Ws(m,p.mode,w),f.return=p,f):(f=i(f,m),f.return=p,f)}function a(p,f,m,w){var E=m.type;return E===hn?c(p,f,m.props.children,w,m.key):f!==null&&(f.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ht&&Ma(E)===f.type)?(w=i(f,m.props),w.ref=Qn(p,f,m),w.return=p,w):(w=xi(m.type,m.key,m.props,null,p.mode,w),w.ref=Qn(p,f,m),w.return=p,w)}function u(p,f,m,w){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=Hs(m,p.mode,w),f.return=p,f):(f=i(f,m.children||[]),f.return=p,f)}function c(p,f,m,w,E){return f===null||f.tag!==7?(f=Vt(m,p.mode,w,E),f.return=p,f):(f=i(f,m),f.return=p,f)}function d(p,f,m){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Ws(""+f,p.mode,m),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Vr:return m=xi(f.type,f.key,f.props,null,p.mode,m),m.ref=Qn(p,null,f),m.return=p,m;case dn:return f=Hs(f,p.mode,m),f.return=p,f;case ht:var w=f._init;return d(p,w(f._payload),m)}if(er(f)||Hn(f))return f=Vt(f,p.mode,m,null),f.return=p,f;ni(p,f)}return null}function h(p,f,m,w){var E=f!==null?f.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return E!==null?null:l(p,f,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Vr:return m.key===E?a(p,f,m,w):null;case dn:return m.key===E?u(p,f,m,w):null;case ht:return E=m._init,h(p,f,E(m._payload),w)}if(er(m)||Hn(m))return E!==null?null:c(p,f,m,w,null);ni(p,m)}return null}function v(p,f,m,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(m)||null,l(f,p,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Vr:return p=p.get(w.key===null?m:w.key)||null,a(f,p,w,E);case dn:return p=p.get(w.key===null?m:w.key)||null,u(f,p,w,E);case ht:var S=w._init;return v(p,f,m,S(w._payload),E)}if(er(w)||Hn(w))return p=p.get(m)||null,c(f,p,w,E,null);ni(f,w)}return null}function y(p,f,m,w){for(var E=null,S=null,j=f,b=f=0,K=null;j!==null&&b<m.length;b++){j.index>b?(K=j,j=null):K=j.sibling;var I=h(p,j,m[b],w);if(I===null){j===null&&(j=K);break}t&&j&&I.alternate===null&&e(p,j),f=s(I,f,b),S===null?E=I:S.sibling=I,S=I,j=K}if(b===m.length)return n(p,j),F&&Dt(p,b),E;if(j===null){for(;b<m.length;b++)j=d(p,m[b],w),j!==null&&(f=s(j,f,b),S===null?E=j:S.sibling=j,S=j);return F&&Dt(p,b),E}for(j=r(p,j);b<m.length;b++)K=v(j,p,b,m[b],w),K!==null&&(t&&K.alternate!==null&&j.delete(K.key===null?b:K.key),f=s(K,f,b),S===null?E=K:S.sibling=K,S=K);return t&&j.forEach(function($e){return e(p,$e)}),F&&Dt(p,b),E}function k(p,f,m,w){var E=Hn(m);if(typeof E!="function")throw Error(x(150));if(m=E.call(m),m==null)throw Error(x(151));for(var S=E=null,j=f,b=f=0,K=null,I=m.next();j!==null&&!I.done;b++,I=m.next()){j.index>b?(K=j,j=null):K=j.sibling;var $e=h(p,j,I.value,w);if($e===null){j===null&&(j=K);break}t&&j&&$e.alternate===null&&e(p,j),f=s($e,f,b),S===null?E=$e:S.sibling=$e,S=$e,j=K}if(I.done)return n(p,j),F&&Dt(p,b),E;if(j===null){for(;!I.done;b++,I=m.next())I=d(p,I.value,w),I!==null&&(f=s(I,f,b),S===null?E=I:S.sibling=I,S=I);return F&&Dt(p,b),E}for(j=r(p,j);!I.done;b++,I=m.next())I=v(j,p,b,I.value,w),I!==null&&(t&&I.alternate!==null&&j.delete(I.key===null?b:I.key),f=s(I,f,b),S===null?E=I:S.sibling=I,S=I);return t&&j.forEach(function(Bn){return e(p,Bn)}),F&&Dt(p,b),E}function _(p,f,m,w){if(typeof m=="object"&&m!==null&&m.type===hn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Vr:e:{for(var E=m.key,S=f;S!==null;){if(S.key===E){if(E=m.type,E===hn){if(S.tag===7){n(p,S.sibling),f=i(S,m.props.children),f.return=p,p=f;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ht&&Ma(E)===S.type){n(p,S.sibling),f=i(S,m.props),f.ref=Qn(p,S,m),f.return=p,p=f;break e}n(p,S);break}else e(p,S);S=S.sibling}m.type===hn?(f=Vt(m.props.children,p.mode,w,m.key),f.return=p,p=f):(w=xi(m.type,m.key,m.props,null,p.mode,w),w.ref=Qn(p,f,m),w.return=p,p=w)}return o(p);case dn:e:{for(S=m.key;f!==null;){if(f.key===S)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=i(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else e(p,f);f=f.sibling}f=Hs(m,p.mode,w),f.return=p,p=f}return o(p);case ht:return S=m._init,_(p,f,S(m._payload),w)}if(er(m))return y(p,f,m,w);if(Hn(m))return k(p,f,m,w);ni(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=i(f,m),f.return=p,p=f):(n(p,f),f=Ws(m,p.mode,w),f.return=p,p=f),o(p)):n(p,f)}return _}var An=Wc(!0),Hc=Wc(!1),Li=Nt(null),Di=null,_n=null,Tl=null;function Cl(){Tl=_n=Di=null}function bl(t){var e=Li.current;M(Li),t._currentValue=e}function Po(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Cn(t,e){Di=t,Tl=_n=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ye=!0),t.firstContext=null)}function Re(t){var e=t._currentValue;if(Tl!==t)if(t={context:t,memoizedValue:e,next:null},_n===null){if(Di===null)throw Error(x(308));_n=t,Di.dependencies={lanes:0,firstContext:t}}else _n=_n.next=t;return e}var Bt=null;function Pl(t){Bt===null?Bt=[t]:Bt.push(t)}function Vc(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,Pl(e)):(n.next=i.next,i.next=n),e.interleaved=n,ot(t,r)}function ot(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var ft=!1;function Nl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function rt(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function St(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,ot(t,n)}return i=r.interleaved,i===null?(e.next=e,Pl(r)):(e.next=i.next,i.next=e),r.interleaved=e,ot(t,n)}function gi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ml(t,n)}}function Fa(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ui(t,e,n,r){var i=t.updateQueue;ft=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=t.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var d=i.baseState;o=0,c=u=a=null,l=s;do{var h=l.lane,v=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=t,k=l;switch(h=e,v=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){d=y.call(v,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,h=typeof y=="function"?y.call(v,d,h):y,h==null)break e;d=H({},d,h);break e;case 2:ft=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[l]:h.push(l))}else v={eventTime:v,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=v,a=d):c=c.next=v,o|=h;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;h=l,l=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Qt|=o,t.lanes=o,t.memoizedState=d}}function Ba(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(x(191,i));i.call(r)}}}var Ur={},Je=Nt(Ur),Cr=Nt(Ur),br=Nt(Ur);function Wt(t){if(t===Ur)throw Error(x(174));return t}function Ol(t,e){switch(U(br,e),U(Cr,t),U(Je,Ur),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:ao(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=ao(e,t)}M(Je),U(Je,e)}function Rn(){M(Je),M(Cr),M(br)}function qc(t){Wt(br.current);var e=Wt(Je.current),n=ao(e,t.type);e!==n&&(U(Cr,t),U(Je,n))}function Al(t){Cr.current===t&&(M(Je),M(Cr))}var B=Nt(0);function zi(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ds=[];function Rl(){for(var t=0;t<Ds.length;t++)Ds[t]._workInProgressVersionPrimary=null;Ds.length=0}var vi=at.ReactCurrentDispatcher,Us=at.ReactCurrentBatchConfig,Gt=0,W=null,Z=null,ne=null,Mi=!1,ur=!1,Pr=0,ap=0;function le(){throw Error(x(321))}function Il(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!He(t[n],e[n]))return!1;return!0}function $l(t,e,n,r,i,s){if(Gt=s,W=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,vi.current=t===null||t.memoizedState===null?hp:fp,t=n(r,i),ur){s=0;do{if(ur=!1,Pr=0,25<=s)throw Error(x(301));s+=1,ne=Z=null,e.updateQueue=null,vi.current=pp,t=n(r,i)}while(ur)}if(vi.current=Fi,e=Z!==null&&Z.next!==null,Gt=0,ne=Z=W=null,Mi=!1,e)throw Error(x(300));return t}function Ll(){var t=Pr!==0;return Pr=0,t}function Ke(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ne===null?W.memoizedState=ne=t:ne=ne.next=t,ne}function Ie(){if(Z===null){var t=W.alternate;t=t!==null?t.memoizedState:null}else t=Z.next;var e=ne===null?W.memoizedState:ne.next;if(e!==null)ne=e,Z=t;else{if(t===null)throw Error(x(310));Z=t,t={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},ne===null?W.memoizedState=ne=t:ne=ne.next=t}return ne}function Nr(t,e){return typeof e=="function"?e(t):e}function zs(t){var e=Ie(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=Z,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((Gt&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,o=r):a=a.next=d,W.lanes|=c,Qt|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,He(r,e.memoizedState)||(ye=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=a,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do s=i.lane,W.lanes|=s,Qt|=s,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Ms(t){var e=Ie(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,s=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);He(s,e.memoizedState)||(ye=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,r]}function Gc(){}function Qc(t,e){var n=W,r=Ie(),i=e(),s=!He(r.memoizedState,i);if(s&&(r.memoizedState=i,ye=!0),r=r.queue,Dl(Xc.bind(null,n,r,t),[t]),r.getSnapshot!==e||s||ne!==null&&ne.memoizedState.tag&1){if(n.flags|=2048,Or(9,Yc.bind(null,n,r,i,e),void 0,null),re===null)throw Error(x(349));Gt&30||Jc(n,e,i)}return i}function Jc(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=W.updateQueue,e===null?(e={lastEffect:null,stores:null},W.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Yc(t,e,n,r){e.value=n,e.getSnapshot=r,Zc(e)&&ed(t)}function Xc(t,e,n){return n(function(){Zc(e)&&ed(t)})}function Zc(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!He(t,n)}catch{return!0}}function ed(t){var e=ot(t,1);e!==null&&We(e,t,1,-1)}function Wa(t){var e=Ke();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nr,lastRenderedState:t},e.queue=t,t=t.dispatch=dp.bind(null,W,t),[e.memoizedState,t]}function Or(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=W.updateQueue,e===null?(e={lastEffect:null,stores:null},W.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function td(){return Ie().memoizedState}function yi(t,e,n,r){var i=Ke();W.flags|=t,i.memoizedState=Or(1|e,n,void 0,r===void 0?null:r)}function ns(t,e,n,r){var i=Ie();r=r===void 0?null:r;var s=void 0;if(Z!==null){var o=Z.memoizedState;if(s=o.destroy,r!==null&&Il(r,o.deps)){i.memoizedState=Or(e,n,s,r);return}}W.flags|=t,i.memoizedState=Or(1|e,n,s,r)}function Ha(t,e){return yi(8390656,8,t,e)}function Dl(t,e){return ns(2048,8,t,e)}function nd(t,e){return ns(4,2,t,e)}function rd(t,e){return ns(4,4,t,e)}function id(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function sd(t,e,n){return n=n!=null?n.concat([t]):null,ns(4,4,id.bind(null,e,t),n)}function Ul(){}function od(t,e){var n=Ie();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Il(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function ld(t,e){var n=Ie();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Il(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ad(t,e,n){return Gt&21?(He(n,e)||(n=fc(),W.lanes|=n,Qt|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ye=!0),t.memoizedState=n)}function up(t,e){var n=L;L=n!==0&&4>n?n:4,t(!0);var r=Us.transition;Us.transition={};try{t(!1),e()}finally{L=n,Us.transition=r}}function ud(){return Ie().memoizedState}function cp(t,e,n){var r=jt(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cd(t))dd(e,n);else if(n=Vc(t,e,n,r),n!==null){var i=fe();We(n,t,r,i),hd(n,e,r)}}function dp(t,e,n){var r=jt(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cd(t))dd(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,He(l,o)){var a=e.interleaved;a===null?(i.next=i,Pl(e)):(i.next=a.next,a.next=i),e.interleaved=i;return}}catch{}finally{}n=Vc(t,e,i,r),n!==null&&(i=fe(),We(n,t,r,i),hd(n,e,r))}}function cd(t){var e=t.alternate;return t===W||e!==null&&e===W}function dd(t,e){ur=Mi=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function hd(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ml(t,n)}}var Fi={readContext:Re,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},hp={readContext:Re,useCallback:function(t,e){return Ke().memoizedState=[t,e===void 0?null:e],t},useContext:Re,useEffect:Ha,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,yi(4194308,4,id.bind(null,e,t),n)},useLayoutEffect:function(t,e){return yi(4194308,4,t,e)},useInsertionEffect:function(t,e){return yi(4,2,t,e)},useMemo:function(t,e){var n=Ke();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ke();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=cp.bind(null,W,t),[r.memoizedState,t]},useRef:function(t){var e=Ke();return t={current:t},e.memoizedState=t},useState:Wa,useDebugValue:Ul,useDeferredValue:function(t){return Ke().memoizedState=t},useTransition:function(){var t=Wa(!1),e=t[0];return t=up.bind(null,t[1]),Ke().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=W,i=Ke();if(F){if(n===void 0)throw Error(x(407));n=n()}else{if(n=e(),re===null)throw Error(x(349));Gt&30||Jc(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,Ha(Xc.bind(null,r,s,t),[t]),r.flags|=2048,Or(9,Yc.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Ke(),e=re.identifierPrefix;if(F){var n=nt,r=tt;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Pr++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=ap++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},fp={readContext:Re,useCallback:od,useContext:Re,useEffect:Dl,useImperativeHandle:sd,useInsertionEffect:nd,useLayoutEffect:rd,useMemo:ld,useReducer:zs,useRef:td,useState:function(){return zs(Nr)},useDebugValue:Ul,useDeferredValue:function(t){var e=Ie();return ad(e,Z.memoizedState,t)},useTransition:function(){var t=zs(Nr)[0],e=Ie().memoizedState;return[t,e]},useMutableSource:Gc,useSyncExternalStore:Qc,useId:ud,unstable_isNewReconciler:!1},pp={readContext:Re,useCallback:od,useContext:Re,useEffect:Dl,useImperativeHandle:sd,useInsertionEffect:nd,useLayoutEffect:rd,useMemo:ld,useReducer:Ms,useRef:td,useState:function(){return Ms(Nr)},useDebugValue:Ul,useDeferredValue:function(t){var e=Ie();return Z===null?e.memoizedState=t:ad(e,Z.memoizedState,t)},useTransition:function(){var t=Ms(Nr)[0],e=Ie().memoizedState;return[t,e]},useMutableSource:Gc,useSyncExternalStore:Qc,useId:ud,unstable_isNewReconciler:!1};function Ue(t,e){if(t&&t.defaultProps){e=H({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function No(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:H({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var rs={isMounted:function(t){return(t=t._reactInternals)?Xt(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=fe(),i=jt(t),s=rt(r,i);s.payload=e,n!=null&&(s.callback=n),e=St(t,s,i),e!==null&&(We(e,t,i,r),gi(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=fe(),i=jt(t),s=rt(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=St(t,s,i),e!==null&&(We(e,t,i,r),gi(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=fe(),r=jt(t),i=rt(n,r);i.tag=2,e!=null&&(i.callback=e),e=St(t,i,r),e!==null&&(We(e,t,r,n),gi(e,t,r))}};function Va(t,e,n,r,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,o):e.prototype&&e.prototype.isPureReactComponent?!Sr(n,r)||!Sr(i,s):!0}function fd(t,e,n){var r=!1,i=bt,s=e.contextType;return typeof s=="object"&&s!==null?s=Re(s):(i=_e(e)?Kt:ce.current,r=e.contextTypes,s=(r=r!=null)?Nn(t,i):bt),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=rs,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function Ka(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&rs.enqueueReplaceState(e,e.state,null)}function Oo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},Nl(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=Re(s):(s=_e(e)?Kt:ce.current,i.context=Nn(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(No(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&rs.enqueueReplaceState(i,i.state,null),Ui(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function In(t,e){try{var n="",r=e;do n+=Fh(r),r=r.return;while(r);var i=n}catch(s){i=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:t,source:e,stack:i,digest:null}}function Fs(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Ao(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var mp=typeof WeakMap=="function"?WeakMap:Map;function pd(t,e,n){n=rt(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Wi||(Wi=!0,Bo=r),Ao(t,e)},n}function md(t,e,n){n=rt(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Ao(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ao(t,e),typeof r!="function"&&(Et===null?Et=new Set([this]):Et.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function qa(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new mp;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Pp.bind(null,t,e,n),e.then(t,t))}function Ga(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Qa(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=rt(-1,1),e.tag=2,St(n,e,1))),n.lanes|=1),t)}var gp=at.ReactCurrentOwner,ye=!1;function he(t,e,n,r){e.child=t===null?Hc(e,null,n,r):An(e,t.child,n,r)}function Ja(t,e,n,r,i){n=n.render;var s=e.ref;return Cn(e,i),r=$l(t,e,n,r,s,i),n=Ll(),t!==null&&!ye?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,lt(t,e,i)):(F&&n&&Sl(e),e.flags|=1,he(t,e,r,i),e.child)}function Ya(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!Kl(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,gd(t,e,s,r,i)):(t=xi(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Sr,n(o,r)&&t.ref===e.ref)return lt(t,e,i)}return e.flags|=1,t=Tt(s,r),t.ref=e.ref,t.return=e,e.child=t}function gd(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(Sr(s,r)&&t.ref===e.ref)if(ye=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(ye=!0);else return e.lanes=t.lanes,lt(t,e,i)}return Ro(t,e,n,r,i)}function vd(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(xn,xe),xe|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,U(xn,xe),xe|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,U(xn,xe),xe|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,U(xn,xe),xe|=r;return he(t,e,i,n),e.child}function yd(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 5,240 bytes, line 40
40function Ro(t,e,n,r,i){var s=_e(n)?Kt:ce.current;return s=Nn(e,s),Cn(e,i),n=$l(t,e,n,r,s,i),r=Ll(),t!==null&&!ye?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,lt(t,e,i)):(F&&r&&Sl(e),e.flags|=1,he(t,e,n,i),e.child)}function Xa(t,e,n,r,i){if(_e(n)){var s=!0;Ri(e)}else s=!1;if(Cn(e,i),e.stateNode===null)wi(t,e),fd(e,n,r),Oo(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,l=e.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Re(u):(u=_e(n)?Kt:ce.current,u=Nn(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Ka(e,o,r,u),ft=!1;var h=e.memoizedState;o.state=h,Ui(e,r,o,i),a=e.memoizedState,l!==r||h!==a||we.current||ft?(typeof c=="function"&&(No(e,n,c,r),a=e.memoizedState),(l=ft||Va(e,n,l,r,h,a,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Kc(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:Ue(e.type,l),o.props=u,d=e.pendingProps,h=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Re(a):(a=_e(n)?Kt:ce.current,a=Nn(e,a));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==d||h!==a)&&Ka(e,o,r,a),ft=!1,h=e.memoizedState,o.state=h,Ui(e,r,o,i);var y=e.memoizedState;l!==d||h!==y||we.current||ft?(typeof v=="function"&&(No(e,n,v,r),y=e.memoizedState),(u=ft||Va(e,n,u,r,h,y,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,a)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=y),o.props=r,o.state=y,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Io(t,e,n,r,s,i)}function Io(t,e,n,r,i,s){yd(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&Da(e,n,!1),lt(t,e,s);r=e.stateNode,gp.current=e;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=An(e,t.child,null,s),e.child=An(e,null,l,s)):he(t,e,l,s),e.memoizedState=r.state,i&&Da(e,n,!0),e.child}function wd(t){var e=t.stateNode;e.pendingContext?La(t,e.pendingContext,e.pendingContext!==e.context):e.context&&La(t,e.context,!1),Ol(t,e.containerInfo)}function Za(t,e,n,r,i){return On(),jl(i),e.flags|=256,he(t,e,n,r),e.child}var $o={dehydrated:null,treeContext:null,retryLane:0};function Lo(t){return{baseLanes:t,cachePool:null,transitions:null}}function _d(t,e,n){var r=e.pendingProps,i=B.current,s=!1,o=(e.flags&128)!==0,l;if((l=o)||(l=t!==null&&t.memoizedState===null?!1:(i&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),U(B,i&1),t===null)return bo(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=os(o,r,0,null),t=Vt(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Lo(n),e.memoizedState=$o,t):zl(e,o));if(i=t.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return vp(t,e,o,r,l,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=a,e.deletions=null):(r=Tt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Tt(l,s):(s=Vt(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?Lo(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=$o,r}return s=t.child,t=s.sibling,r=Tt(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function zl(t,e){return e=os({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function ri(t,e,n,r){return r!==null&&jl(r),An(e,t.child,null,n),t=zl(e,e.pen
vendor: 7,295 bytes, line 40
40dingProps.children),t.flags|=2,e.memoizedState=null,t}function vp(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=Fs(Error(x(422))),ri(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=os({mode:"visible",children:r.children},i,0,null),s=Vt(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&An(e,t.child,null,o),e.child.memoizedState=Lo(o),e.memoizedState=$o,s);if(!(e.mode&1))return ri(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(x(419)),r=Fs(s,r,void 0),ri(t,e,o,r)}if(l=(o&t.childLanes)!==0,ye||l){if(r=re,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ot(t,i),We(r,t,i,-1))}return Vl(),r=Fs(Error(x(421))),ri(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=Np.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,Se=xt(i.nextSibling),Ee=e,F=!0,Fe=null,t!==null&&(be[Pe++]=tt,be[Pe++]=nt,be[Pe++]=qt,tt=t.id,nt=t.overflow,qt=e),e=zl(e,r.children),e.flags|=4096,e)}function eu(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Po(t.return,e,n)}function Bs(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function kd(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(he(t,e,r.children,n),r=B.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&eu(t,n,e);else if(t.tag===19)eu(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(U(B,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&zi(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Bs(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&zi(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Bs(e,!0,n,null,s);break;case"together":Bs(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function wi(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function lt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Qt|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(x(153));if(e.child!==null){for(t=e.child,n=Tt(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Tt(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yp(t,e,n){switch(e.tag){case 3:wd(e),On();break;case 5:qc(e);break;case 1:_e(e.type)&&Ri(e);break;case 4:Ol(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;U(Li,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(U(B,B.current&1),e.flags|=128,null):n&e.child.childLanes?_d(t,e,n):(U(B,B.current&1),t=lt(t,e,n),t!==null?t.sibling:null);U(B,B.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return kd(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(B,B.current),r)break;return null;case 22:case 23:return e.lanes=0,vd(t,e,n)}return lt(t,e,n)}var xd,Do,Sd,Ed;xd=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Do=function(){};Sd=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Wt(Je.current);var s=null;switch(n){case"input":i=io(t,i),r=io(t,r),s=[];break;case"select":i=H({},i,{value:void 0}),r=H({},r,{value:void 0}),s=[];break;case"textarea":i=lo(t,i),r=lo(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Oi)}uo(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(gr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(gr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&z("scroll",t),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};Ed=function(t,e,n,r){n!==r&&(e.flags|=4)};function Jn(t,e){if(!F)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function ae(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function wp(t,e,n){var r=e.pendingProps;switch(El(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(e),null;case 1:return _e(e.type)&&Ai(),ae(e),null;case 3:return r=e.stateNode,Rn(),M(we),M(ce),Rl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(ti(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Fe!==null&&(Vo(Fe),Fe=null))),Do(t,e),ae(e),null;case 5:Al(e);var i=Wt(br.current);if(n=e.type,t!==null&&e.stateNode!=null)Sd(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(x(166));return ae(e),null}if(t=Wt(Je.current),ti(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Ge]=e,r[Tr]=s,t=(e.mode&1)!==0,n){case"dialog":z("cancel",r),z("close",r);break;case"iframe":case"object":case"embed":z("load",r);break;case"video":case"audio":for(i=0;i<nr.length;i++)z(nr[i],r);break;
vendor: 30,317 bytes, line 40
40case"source":z("error",r);break;case"img":case"image":case"link":z("error",r),z("load",r);break;case"details":z("toggle",r);break;case"input":ua(r,s),z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},z("invalid",r);break;case"textarea":da(r,s),z("invalid",r)}uo(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&ei(r.textContent,l,t),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&ei(r.textContent,l,t),i=["children",""+l]):gr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&z("scroll",r)}switch(n){case"input":Kr(r),ca(r,s,!0);break;case"textarea":Kr(r),ha(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Oi)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Xu(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Ge]=e,t[Tr]=r,xd(t,e,!1,!1),e.stateNode=t;e:{switch(o=co(n,r),n){case"dialog":z("cancel",t),z("close",t),i=r;break;case"iframe":case"object":case"embed":z("load",t),i=r;break;case"video":case"audio":for(i=0;i<nr.length;i++)z(nr[i],t);i=r;break;case"source":z("error",t),i=r;break;case"img":case"image":case"link":z("error",t),z("load",t),i=r;break;case"details":z("toggle",t),i=r;break;case"input":ua(t,r),i=io(t,r),z("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=H({},r,{value:void 0}),z("invalid",t);break;case"textarea":da(t,r),i=lo(t,r),z("invalid",t);break;default:i=r}uo(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?tc(t,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Zu(t,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&vr(t,a):typeof a=="number"&&vr(t,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(gr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&z("scroll",t):a!=null&&ul(t,s,a,o))}switch(n){case"input":Kr(t),ca(t,r,!1);break;case"textarea":Kr(t),ha(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Ct(r.value));break;case"select":t.multiple=!!r.multiple,s=r.value,s!=null?Sn(t,!!r.multiple,s,!1):r.defaultValue!=null&&Sn(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Oi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return ae(e),null;case 6:if(t&&e.stateNode!=null)Ed(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(x(166));if(n=Wt(br.current),Wt(Je.current),ti(e)){if(r=e.stateNode,n=e.memoizedProps,r[Ge]=e,(s=r.nodeValue!==n)&&(t=Ee,t!==null))switch(t.tag){case 3:ei(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&ei(r.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ge]=e,e.stateNode=r}return ae(e),null;case 13:if(M(B),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(F&&Se!==null&&e.mode&1&&!(e.flags&128))Bc(),On(),e.flags|=98560,s=!1;else if(s=ti(e),r!==null&&r.dehydrated!==null){if(t===null){if(!s)throw Error(x(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(x(317));s[Ge]=e}else On(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;ae(e),s=!1}else Fe!==null&&(Vo(Fe),Fe=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||B.current&1?ee===0&&(ee=3):Vl())),e.updateQueue!==null&&(e.flags|=4),ae(e),null);case 4:return Rn(),Do(t,e),t===null&&Er(e.stateNode.containerInfo),ae(e),null;case 10:return bl(e.type._context),ae(e),null;case 17:return _e(e.type)&&Ai(),ae(e),null;case 19:if(M(B),s=e.memoizedState,s===null)return ae(e),null;if(r=(e.flags&128)!==0,o=s.rendering,o===null)if(r)Jn(s,!1);else{if(ee!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=zi(t),o!==null){for(e.flags|=128,Jn(s,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)s=n,t=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return U(B,B.current&1|2),e.child}t=t.sibling}s.tail!==null&&Q()>$n&&(e.flags|=128,r=!0,Jn(s,!1),e.lanes=4194304)}else{if(!r)if(t=zi(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Jn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!F)return ae(e),null}else 2*Q()-s.renderingStartTime>$n&&n!==1073741824&&(e.flags|=128,r=!0,Jn(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Q(),e.sibling=null,n=B.current,U(B,r?n&1|2:n&1),e):(ae(e),null);case 22:case 23:return Hl(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?xe&1073741824&&(ae(e),e.subtreeFlags&6&&(e.flags|=8192)):ae(e),null;case 24:return null;case 25:return null}throw Error(x(156,e.tag))}function _p(t,e){switch(El(e),e.tag){case 1:return _e(e.type)&&Ai(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Rn(),M(we),M(ce),Rl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Al(e),null;case 13:if(M(B),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(x(340));On()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return M(B),null;case 4:return Rn(),null;case 10:return bl(e.type._context),null;case 22:case 23:return Hl(),null;case 24:return null;default:return null}}var ii=!1,ue=!1,kp=typeof WeakSet=="function"?WeakSet:Set,T=null;function kn(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(t,e,r)}else n.current=null}function Uo(t,e,n){try{n()}catch(r){V(t,e,r)}}var tu=!1;function xp(t,e){if(ko=bi,t=Pc(),xl(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==s||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)h=d,d=v;for(;;){if(d===t)break t;if(h===n&&++u===i&&(l=o),h===s&&++c===r&&(a=o),(v=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(xo={focusedElem:t,selectionRange:n},bi=!1,T=e;T!==null;)if(e=T,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,T=t;else for(;T!==null;){e=T;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,_=y.memoizedState,p=e.stateNode,f=p.getSnapshotBeforeUpdate(e.elementType===e.type?k:Ue(e.type,k),_);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(w){V(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,T=t;break}T=e.return}return y=tu,tu=!1,y}function cr(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&Uo(e,n,s)}i=i.next}while(i!==r)}}function is(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function zo(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function jd(t){var e=t.alternate;e!==null&&(t.alternate=null,jd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ge],delete e[Tr],delete e[jo],delete e[ip],delete e[sp])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Td(t){return t.tag===5||t.tag===3||t.tag===4}function nu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Td(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Mo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Oi));else if(r!==4&&(t=t.child,t!==null))for(Mo(t,e,n),t=t.sibling;t!==null;)Mo(t,e,n),t=t.sibling}function Fo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Fo(t,e,n),t=t.sibling;t!==null;)Fo(t,e,n),t=t.sibling}var ie=null,ze=!1;function ut(t,e,n){for(n=n.child;n!==null;)Cd(t,e,n),n=n.sibling}function Cd(t,e,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Ji,n)}catch{}switch(n.tag){case 5:ue||kn(n,e);case 6:var r=ie,i=ze;ie=null,ut(t,e,n),ie=r,ze=i,ie!==null&&(ze?(t=ie,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ie.removeChild(n.stateNode));break;case 18:ie!==null&&(ze?(t=ie,n=n.stateNode,t.nodeType===8?$s(t.parentNode,n):t.nodeType===1&&$s(t,n),kr(t)):$s(ie,n.stateNode));break;case 4:r=ie,i=ze,ie=n.stateNode.containerInfo,ze=!0,ut(t,e,n),ie=r,ze=i;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Uo(n,e,o),i=i.next}while(i!==r)}ut(t,e,n);break;case 1:if(!ue&&(kn(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){V(n,e,l)}ut(t,e,n);break;case 21:ut(t,e,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,ut(t,e,n),ue=r):ut(t,e,n);break;default:ut(t,e,n)}}function ru(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new kp),e.forEach(function(r){var i=Op.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Le(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,o=e,l=o;e:for(;l!==null;){switch(l.tag){case 5:ie=l.stateNode,ze=!1;break e;case 3:ie=l.stateNode.containerInfo,ze=!0;break e;case 4:ie=l.stateNode.containerInfo,ze=!0;break e}l=l.return}if(ie===null)throw Error(x(160));Cd(s,o,i),ie=null,ze=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){V(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)bd(e,t),e=e.sibling}function bd(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Le(e,t),Ve(t),r&4){try{cr(3,t,t.return),is(3,t)}catch(k){V(t,t.return,k)}try{cr(5,t,t.return)}catch(k){V(t,t.return,k)}}break;case 1:Le(e,t),Ve(t),r&512&&n!==null&&kn(n,n.return);break;case 5:if(Le(e,t),Ve(t),r&512&&n!==null&&kn(n,n.return),t.flags&32){var i=t.stateNode;try{vr(i,"")}catch(k){V(t,t.return,k)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=n!==null?n.memoizedProps:s,l=t.type,a=t.updateQueue;if(t.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Ju(i,s),co(l,o);var u=co(l,s);for(o=0;o<a.length;o+=2){var c=a[o],d=a[o+1];c==="style"?tc(i,d):c==="dangerouslySetInnerHTML"?Zu(i,d):c==="children"?vr(i,d):ul(i,c,d,u)}switch(l){case"input":so(i,s);break;case"textarea":Yu(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Sn(i,!!s.multiple,v,!1):h!==!!s.multiple&&(s.defaultValue!=null?Sn(i,!!s.multiple,s.defaultValue,!0):Sn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Tr]=s}catch(k){V(t,t.return,k)}}break;case 6:if(Le(e,t),Ve(t),r&4){if(t.stateNode===null)throw Error(x(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(k){V(t,t.return,k)}}break;case 3:if(Le(e,t),Ve(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{kr(e.containerInfo)}catch(k){V(t,t.return,k)}break;case 4:Le(e,t),Ve(t);break;case 13:Le(e,t),Ve(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Bl=Q())),r&4&&ru(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(ue=(u=ue)||c,Le(e,t),ue=u):Le(e,t),Ve(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(T=t,c=t.child;c!==null;){for(d=T=c;T!==null;){switch(h=T,v=h.child,h.tag){case 0:case 11:case 14:case 15:cr(4,h,h.return);break;case 1:kn(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,y.props=e.memoizedProps,y.state=e.memoizedState,y.componentWillUnmount()}catch(k){V(r,n,k)}}break;case 5:kn(h,h.return);break;case 22:if(h.memoizedState!==null){su(d);continue}}v!==null?(v.return=h,T=v):su(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=ec("display",o))}catch(k){V(t,t.return,k)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(k){V(t,t.return,k)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Le(e,t),Ve(t),r&4&&ru(t);break;case 21:break;default:Le(e,t),Ve(t)}}function Ve(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Td(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(vr(i,""),r.flags&=-33);var s=nu(t);Fo(t,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=nu(t);Mo(t,l,o);break;default:throw Error(x(161))}}catch(a){V(t,t.return,a)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Sp(t,e,n){T=t,Pd(t)}function Pd(t,e,n){for(var r=(t.mode&1)!==0;T!==null;){var i=T,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ii;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||ue;l=ii;var u=ue;if(ii=o,(ue=a)&&!u)for(T=i;T!==null;)o=T,a=o.child,o.tag===22&&o.memoizedState!==null?ou(i):a!==null?(a.return=o,T=a):ou(i);for(;s!==null;)T=s,Pd(s),s=s.sibling;T=i,ii=l,ue=u}iu(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,T=s):iu(t)}}function iu(t){for(;T!==null;){var e=T;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ue||is(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ue)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Ue(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&Ba(e,s,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Ba(e,o,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var a=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&kr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ue||e.flags&512&&zo(e)}catch(h){V(e,e.return,h)}}if(e===t){T=null;break}if(n=e.sibling,n!==null){n.return=e.return,T=n;break}T=e.return}}function su(t){for(;T!==null;){var e=T;if(e===t){T=null;break}var n=e.sibling;if(n!==null){n.return=e.return,T=n;break}T=e.return}}function ou(t){for(;T!==null;){var e=T;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{is(4,e)}catch(a){V(e,n,a)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(a){V(e,i,a)}}var s=e.return;try{zo(e)}catch(a){V(e,s,a)}break;case 5:var o=e.return;try{zo(e)}catch(a){V(e,o,a)}}}catch(a){V(e,e.return,a)}if(e===t){T=null;break}var l=e.sibling;if(l!==null){l.return=e.return,T=l;break}T=e.return}}var Ep=Math.ceil,Bi=at.ReactCurrentDispatcher,Ml=at.ReactCurrentOwner,Oe=at.ReactCurrentBatchConfig,$=0,re=null,J=null,se=0,xe=0,xn=Nt(0),ee=0,Ar=null,Qt=0,ss=0,Fl=0,dr=null,ge=null,Bl=0,$n=1/0,Xe=null,Wi=!1,Bo=null,Et=null,si=!1,yt=null,Hi=0,hr=0,Wo=null,_i=-1,ki=0;function fe(){return $&6?Q():_i!==-1?_i:_i=Q()}function jt(t){return t.mode&1?$&2&&se!==0?se&-se:lp.transition!==null?(ki===0&&(ki=fc()),ki):(t=L,t!==0||(t=window.event,t=t===void 0?16:_c(t.type)),t):1}function We(t,e,n,r){if(50<hr)throw hr=0,Wo=null,Error(x(185));$r(t,n,r),(!($&2)||t!==re)&&(t===re&&(!($&2)&&(ss|=n),ee===4&&mt(t,se)),ke(t,r),n===1&&$===0&&!(e.mode&1)&&($n=Q()+500,ts&&Ot()))}function ke(t,e){var n=t.callbackNode;lf(t,e);var r=Ci(t,t===re?se:0);if(r===0)n!==null&&ma(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&ma(n),e===1)t.tag===0?op(lu.bind(null,t)):zc(lu.bind(null,t)),np(function(){!($&6)&&Ot()}),n=null;else{switch(pc(r)){case 1:n=pl;break;case 4:n=dc;break;case 16:n=Ti;break;case 536870912:n=hc;break;default:n=Ti}n=Dd(n,Nd.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Nd(t,e){if(_i=-1,ki=0,$&6)throw Error(x(327));var n=t.callbackNode;if(bn()&&t.callbackNode!==n)return null;var r=Ci(t,t===re?se:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Vi(t,r);else{e=r;var i=$;$|=2;var s=Ad();(re!==t||se!==e)&&(Xe=null,$n=Q()+500,Ht(t,e));do try{Cp();break}catch(l){Od(t,l)}while(!0);Cl(),Bi.current=s,$=i,J!==null?e=0:(re=null,se=0,e=ee)}if(e!==0){if(e===2&&(i=go(t),i!==0&&(r=i,e=Ho(t,i))),e===1)throw n=Ar,Ht(t,0),mt(t,r),ke(t,Q()),n;if(e===6)mt(t,r);else{if(i=t.current.alternate,!(r&30)&&!jp(i)&&(e=Vi(t,r),e===2&&(s=go(t),s!==0&&(r=s,e=Ho(t,s))),e===1))throw n=Ar,Ht(t,0),mt(t,r),ke(t,Q()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(x(345));case 2:Ut(t,ge,Xe);break;case 3:if(mt(t,r),(r&130023424)===r&&(e=Bl+500-Q(),10<e)){if(Ci(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){fe(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Eo(Ut.bind(null,t,ge,Xe),e);break}Ut(t,ge,Xe);break;case 4:if(mt(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-Be(r);s=1<<o,o=e[o],o>i&&(i=o),r&=~s}if(r=i,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ep(r/1960))-r,10<r){t.timeoutHandle=Eo(Ut.bind(null,t,ge,Xe),r);break}Ut(t,ge,Xe);break;case 5:Ut(t,ge,Xe);break;default:throw Error(x(329))}}}return ke(t,Q()),t.callbackNode===n?Nd.bind(null,t):null}function Ho(t,e){var n=dr;return t.current.memoizedState.isDehydrated&&(Ht(t,e).flags|=256),t=Vi(t,e),t!==2&&(e=ge,ge=n,e!==null&&Vo(e)),t}function Vo(t){ge===null?ge=t:ge.push.apply(ge,t)}function jp(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!He(s(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function mt(t,e){for(e&=~Fl,e&=~ss,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Be(e),r=1<<n;t[n]=-1,e&=~r}}function lu(t){if($&6)throw Error(x(327));bn();var e=Ci(t,0);if(!(e&1))return ke(t,Q()),null;var n=Vi(t,e);if(t.tag!==0&&n===2){var r=go(t);r!==0&&(e=r,n=Ho(t,r))}if(n===1)throw n=Ar,Ht(t,0),mt(t,e),ke(t,Q()),n;if(n===6)throw Error(x(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Ut(t,ge,Xe),ke(t,Q()),null}function Wl(t,e){var n=$;$|=1;try{return t(e)}finally{$=n,$===0&&($n=Q()+500,ts&&Ot())}}function Jt(t){yt!==null&&yt.tag===0&&!($&6)&&bn();var e=$;$|=1;var n=Oe.transition,r=L;try{if(Oe.transition=null,L=1,t)return t()}finally{L=r,Oe.transition=n,$=e,!($&6)&&Ot()}}function Hl(){xe=xn.current,M(xn)}function Ht(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,tp(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(El(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ai();break;case 3:Rn(),M(we),M(ce),Rl();break;case 5:Al(r);break;case 4:Rn();break;case 13:M(B);break;case 19:M(B);break;case 10:bl(r.type._context);break;case 22:case 23:Hl()}n=n.return}if(re=t,J=t=Tt(t.current,null),se=xe=e,ee=0,Ar=null,Fl=ss=Qt=0,ge=dr=null,Bt!==null){for(e=0;e<Bt.length;e++)if(n=Bt[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Bt=null}return t}function Od(t,e){do{var n=J;try{if(Cl(),vi.current=Fi,Mi){for(var r=W.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Mi=!1}if(Gt=0,ne=Z=W=null,ur=!1,Pr=0,Ml.current=null,n===null||n.return===null){ee=1,Ar=e,J=null;break}e:{var s=t,o=n.return,l=n,a=e;if(e=se,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=Ga(o);if(v!==null){v.flags&=-257,Qa(v,o,l,s,e),v.mode&1&&qa(s,u,e),e=v,a=u;var y=e.updateQueue;if(y===null){var k=new Set;k.add(a),e.updateQueue=k}else y.add(a);break e}else{if(!(e&1)){qa(s,u,e),Vl();break e}a=Error(x(426))}}else if(F&&l.mode&1){var _=Ga(o);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Qa(_,o,l,s,e),jl(In(a,l));break e}}s=a=In(a,l),ee!==4&&(ee=2),dr===null?dr=[s]:dr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var p=pd(s,a,e);Fa(s,p);break e;case 1:l=a;var f=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof f.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Et===null||!Et.has(m)))){s.flags|=65536,e&=-e,s.lanes|=e;var w=md(s,l,e);Fa(s,w);break e}}s=s.return}while(s!==null)}Id(n)}catch(E){e=E,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function Ad(){var t=Bi.current;return Bi.current=Fi,t===null?Fi:t}function Vl(){(ee===0||ee===3||ee===2)&&(ee=4),re===null||!(Qt&268435455)&&!(ss&268435455)||mt(re,se)}function Vi(t,e){var n=$;$|=2;var r=Ad();(re!==t||se!==e)&&(Xe=null,Ht(t,e));do try{Tp();break}catch(i){Od(t,i)}while(!0);if(Cl(),$=n,Bi.current=r,J!==null)throw Error(x(261));return re=null,se=0,ee}function Tp(){for(;J!==null;)Rd(J)}function Cp(){for(;J!==null&&!Yh();)Rd(J)}function Rd(t){var e=Ld(t.alternate,t,xe);t.memoizedProps=t.pendingProps,e===null?Id(t):J=e,Ml.current=null}function Id(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=_p(n,e),n!==null){n.flags&=32767,J=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ee=6,J=null;return}}else if(n=wp(n,e,xe),n!==null){J=n;return}if(e=e.sibling,e!==null){J=e;return}J=e=t}while(e!==null);ee===0&&(ee=5)}function Ut(t,e,n){var r=L,i=Oe.transition;try{Oe.transition=null,L=1,bp(t,e,n,r)}finally{Oe.transition=i,L=r}return null}function bp(t,e,n,r){do bn();while(yt!==null);if($&6)throw Error(x(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(x(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(af(t,s),t===re&&(J=re=null,se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||si||(si=!0,Dd(Ti,function(){return bn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Oe.transition,Oe.transition=null;var o=L;L=1;var l=$;$|=4,Ml.current=null,xp(t,n),bd(n,t),Gf(xo),bi=!!ko,xo=ko=null,t.current=n,Sp(n),Xh(),$=l,L=o,Oe.transition=s}else t.current=n;if(si&&(si=!1,yt=t,Hi=i),s=t.pendingLanes,s===0&&(Et=null),tf(n.stateNode),ke(t,Q()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Wi)throw Wi=!1,t=Bo,Bo=null,t;return Hi&1&&t.tag!==0&&bn(),s=t.pendingLanes,s&1?t===Wo?hr++:(hr=0,Wo=t):hr=0,Ot(),null}function bn(){if(yt!==null){var t=pc(Hi),e=Oe.transition,n=L;try{if(Oe.transition=null,L=16>t?16:t,yt===null)var r=!1;else{if(t=yt,yt=null,Hi=0,$&6)throw Error(x(331));var i=$;for($|=4,T=t.current;T!==null;){var s=T,o=s.child;if(T.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(T=u;T!==null;){var c=T;switch(c.tag){case 0:case 11:case 15:cr(8,c,s)}var d=c.child;if(d!==null)d.return=c,T=d;else for(;T!==null;){c=T;var h=c.sibling,v=c.return;if(jd(c),c===u){T=null;break}if(h!==null){h.return=v,T=h;break}T=v}}}var y=s.alternate;if(y!==null){var k=y.child;if(k!==null){y.child=null;do{var _=k.sibling;k.sibling=null,k=_}while(k!==null)}}T=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,T=o;else e:for(;T!==null;){if(s=T,s.flags&2048)switch(s.tag){case 0:case 11:case 15:cr(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,T=p;break e}T=s.return}}var f=t.current;for(T=f;T!==null;){o=T;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,T=m;else e:for(o=f;T!==null;){if(l=T,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:is(9,l)}}catch(E){V(l,l.return,E)}if(l===o){T=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,T=w;break e}T=l.return}}if($=i,Ot(),Qe&&typeof Qe.onPostCommitFiberRoot=="function")try{Qe.onPostCommitFiberRoot(Ji,t)}catch{}r=!0}return r}finally{L=n,Oe.transition=e}}return!1}function au(t,e,n){e=In(n,e),e=pd(t,e,1),t=St(t,e,1),e=fe(),t!==null&&($r(t,1,e),ke(t,e))}function V(t,e,n){if(t.tag===3)au(t,t,n);else for(;e!==null;){if(e.tag===3){au(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Et===null||!Et.has(r))){t=In(n,t),t=md(e,t,1),e=St(e,t,1),t=fe(),e!==null&&($r(e,1,t),ke(e,t));break}}e=e.return}}function Pp(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=fe(),t.pingedLanes|=t.suspendedLanes&n,re===t&&(se&n)===n&&(ee===4||ee===3&&(se&130023424)===se&&500>Q()-Bl?Ht(t,0):Fl|=n),ke(t,e)}function $d(t,e){e===0&&(t.mode&1?(e=Qr,Qr<<=1,!(Qr&130023424)&&(Qr=4194304)):e=1);var n=fe();t=ot(t,e),t!==null&&($r(t,e,n),ke(t,n))}function Np(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),$d(t,n)}function Op(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(e),$d(t,n)}var Ld;Ld=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||we.current)ye=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return ye=!1,yp(t,e,n);ye=!!(t.flags&131072)}else ye=!1,F&&e.flags&1048576&&Mc(e,$i,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;wi(t,e),t=e.pendingProps;var i=Nn(e,ce.current);Cn(e,n),i=$l(null,e,r,t,i,n);var s=Ll();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,_e(r)?(s=!0,Ri(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nl(e),i.updater=rs,e.stateNode=i,i._reactInternals=e,Oo(e,r,t,n),e=Io(null,e,r,!0,s,n)):(e.tag=0,F&&s&&Sl(e),he(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(wi(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Rp(r),t=Ue(r,t),i){case 0:e=Ro(null,e,r,t,n);break e;case 1:e=Xa(null,e,r,t,n);break e;case 11:e=Ja(null,e,r,t,n);break e;case 14:e=Ya(null,e,r,Ue(r.type,t),n);break e}throw Error(x(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ue(r,i),Ro(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ue(r,i),Xa(t,e,r,i,n);case 3:e:{if(wd(e),t===null)throw Error(x(387));r=e.pendingProps,s=e.memoizedState,i=s.element,Kc(t,e),Ui(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=In(Error(x(423)),e),e=Za(t,e,r,n,i);break e}else if(r!==i){i=In(Error(x(424)),e),e=Za(t,e,r,n,i);break e}else for(Se=xt(e.stateNode.containerInfo.firstChild),Ee=e,F=!0,Fe=null,n=Hc(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(On(),r===i){e=lt(t,e,n);break e}he(t,e,r,n)}e=e.child}return e;case 5:return qc(e),t===null&&bo(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,So(r,i)?o=null:s!==null&&So(r,s)&&(e.flags|=32),yd(t,e),he(t,e,o,n),e.child;case 6:return t===null&&bo(e),null;case 13:return _d(t,e,n);case 4:return Ol(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=An(e,null,r,n):he(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ue(r,i),Ja(t,e,r,i,n);case 7:return he(t,e,e.pendingProps,n),e.child;case 8:return he(t,e,e.pendingProps.children,n),e.child;case 12:return he(t,e,e.pendingProps.children,n),e.child;
vendor: 14,414 bytes, lines 40-85
40case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,U(Li,r._currentValue),r._currentValue=o,s!==null)if(He(s.value,o)){if(s.children===i.children&&!we.current){e=lt(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=rt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Po(s.return,n,e),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(x(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Po(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}he(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Cn(e,n),i=Re(i),r=r(i),e.flags|=1,he(t,e,r,n),e.child;case 14:return r=e.type,i=Ue(r,e.pendingProps),i=Ue(r.type,i),Ya(t,e,r,i,n);case 15:return gd(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ue(r,i),wi(t,e),e.tag=1,_e(r)?(t=!0,Ri(e)):t=!1,Cn(e,n),fd(e,r,i),Oo(e,r,i,n),Io(null,e,r,!0,t,n);case 19:return kd(t,e,n);case 22:return vd(t,e,n)}throw Error(x(156,e.tag))};function Dd(t,e){return cc(t,e)}function Ap(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(t,e,n,r){return new Ap(t,e,n,r)}function Kl(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Rp(t){if(typeof t=="function")return Kl(t)?1:0;if(t!=null){if(t=t.$$typeof,t===dl)return 11;if(t===hl)return 14}return 2}function Tt(t,e){var n=t.alternate;return n===null?(n=Ne(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function xi(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")Kl(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case hn:return Vt(n.children,i,s,e);case cl:o=8,i|=8;break;case eo:return t=Ne(12,n,e,i|2),t.elementType=eo,t.lanes=s,t;case to:return t=Ne(13,n,e,i),t.elementType=to,t.lanes=s,t;case no:return t=Ne(19,n,e,i),t.elementType=no,t.lanes=s,t;case qu:return os(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Vu:o=10;break e;case Ku:o=9;break e;case dl:o=11;break e;case hl:o=14;break e;case ht:o=16,r=null;break e}throw Error(x(130,t==null?t:typeof t,""))}return e=Ne(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Vt(t,e,n,r){return t=Ne(7,t,r,e),t.lanes=n,t}function os(t,e,n,r){return t=Ne(22,t,r,e),t.elementType=qu,t.lanes=n,t.stateNode={isHidden:!1},t}function Ws(t,e,n){return t=Ne(6,t,null,e),t.lanes=n,t}function Hs(t,e,n){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Ip(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Es(0),this.expirationTimes=Es(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Es(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ql(t,e,n,r,i,s,o,l,a){return t=new Ip(t,e,n,l,a),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Ne(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nl(s),t}function $p(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:dn,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function Ud(t){if(!t)return bt;t=t._reactInternals;e:{if(Xt(t)!==t||t.tag!==1)throw Error(x(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(_e(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(x(171))}if(t.tag===1){var n=t.type;if(_e(n))return Uc(t,n,e)}return e}function zd(t,e,n,r,i,s,o,l,a){return t=ql(n,r,!0,t,i,s,o,l,a),t.context=Ud(null),n=t.current,r=fe(),i=jt(n),s=rt(r,i),s.callback=e??null,St(n,s,i),t.current.lanes=i,$r(t,i,r),ke(t,r),t}function ls(t,e,n,r){var i=e.current,s=fe(),o=jt(i);return n=Ud(n),e.context===null?e.context=n:e.pendingContext=n,e=rt(s,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=St(i,e,o),t!==null&&(We(t,i,o,s),gi(t,i,o)),o}function Ki(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function uu(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Gl(t,e){uu(t,e),(t=t.alternate)&&uu(t,e)}function Lp(){return null}var Md=typeof reportError=="function"?reportError:function(t){console.error(t)};function Ql(t){this._internalRoot=t}as.prototype.render=Ql.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(x(409));ls(t,e,null,null)};as.prototype.unmount=Ql.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Jt(function(){ls(null,t,null,null)}),e[st]=null}};function as(t){this._internalRoot=t}as.prototype.unstable_scheduleHydration=function(t){if(t){var e=vc();t={blockedOn:null,target:t,priority:e};for(var n=0;n<pt.length&&e!==0&&e<pt[n].priority;n++);pt.splice(n,0,t),n===0&&wc(t)}};function Jl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function us(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function cu(){}function Dp(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ki(o);s.call(u)}}var o=zd(e,r,t,0,null,!1,!1,"",cu);return t._reactRootContainer=o,t[st]=o.current,Er(t.nodeType===8?t.parentNode:t),Jt(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Ki(a);l.call(u)}}var a=ql(t,0,!1,null,null,!1,!1,"",cu);return t._reactRootContainer=a,t[st]=a.current,Er(t.nodeType===8?t.parentNode:t),Jt(function(){ls(e,a,n,r)}),a}function cs(t,e,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=Ki(o);l.call(a)}}ls(e,o,t,i)}else o=Dp(n,e,t,i,r);return Ki(o)}mc=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=tr(e.pendingLanes);n!==0&&(ml(e,n|1),ke(e,Q()),!($&6)&&($n=Q()+500,Ot()))}break;case 13:Jt(function(){var r=ot(t,1);if(r!==null){var i=fe();We(r,t,1,i)}}),Gl(t,1)}};gl=function(t){if(t.tag===13){var e=ot(t,134217728);if(e!==null){var n=fe();We(e,t,134217728,n)}Gl(t,134217728)}};gc=function(t){if(t.tag===13){var e=jt(t),n=ot(t,e);if(n!==null){var r=fe();We(n,t,e,r)}Gl(t,e)}};vc=function(){return L};yc=function(t,e){var n=L;try{return L=t,e()}finally{L=n}};fo=function(t,e,n){switch(e){case"input":if(so(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=es(r);if(!i)throw Error(x(90));Qu(r),so(r,i)}}}break;case"textarea":Yu(t,n);break;case"select":e=n.value,e!=null&&Sn(t,!!n.multiple,e,!1)}};ic=Wl;sc=Jt;var Up={usingClientEntryPoint:!1,Events:[Dr,gn,es,nc,rc,Wl]},Yn={findFiberByHostInstance:Ft,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zp={bundleType:Yn.bundleType,version:Yn.version,rendererPackageName:Yn.rendererPackageName,rendererConfig:Yn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:at.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=ac(t),t===null?null:t.stateNode},findFiberByHostInstance:Yn.findFiberByHostInstance||Lp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{Ji=oi.inject(zp),Qe=oi}catch{}}Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Up;Te.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jl(e))throw Error(x(200));return $p(t,e,null,n)};Te.createRoot=function(t,e){if(!Jl(t))throw Error(x(299));var n=!1,r="",i=Md;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=ql(t,1,!1,null,null,n,!1,r,i),t[st]=e.current,Er(t.nodeType===8?t.parentNode:t),new Ql(e)};Te.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(x(188)):(t=Object.keys(t).join(","),Error(x(268,t)));return t=ac(e),t=t===null?null:t.stateNode,t};Te.flushSync=function(t){return Jt(t)};Te.hydrate=function(t,e,n){if(!us(e))throw Error(x(200));return cs(null,t,e,!0,n)};Te.hydrateRoot=function(t,e,n){if(!Jl(t))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Md;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=zd(e,null,t,1,n??null,i,!1,s,o),t[st]=e.current,Er(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new as(e)};Te.render=function(t,e,n){if(!us(e))throw Error(x(200));return cs(null,t,e,!1,n)};Te.unmountComponentAtNode=function(t){if(!us(t))throw Error(x(40));return t._reactRootContainer?(Jt(function(){cs(null,null,t,!1,function(){t._reactRootContainer=null,t[st]=null})}),!0):!1};Te.unstable_batchedUpdates=Wl;Te.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!us(n))throw Error(x(200));if(t==null||t._reactInternals===void 0)throw Error(x(38));return cs(t,e,n,!1,r)};Te.version="18.3.1-next-f1338f8080-20240426";function Fd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fd)}catch(t){console.error(t)}}Fd(),Fu.exports=Te;var Mp=Fu.exports,Bd,du=Mp;Bd=du.createRoot,du.hydrateRoot;/**
41 * @license lucide-react v0.344.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */var Fp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
46 * @license lucide-react v0.344.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */const Bp=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Zt=(t,e)=>{const n=G.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:l="",children:a,...u},c)=>G.createElement("svg",{ref:c,...Fp,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${Bp(t)}`,l].join(" "),...u},[...e.map(([d,h])=>G.createElement(d,h)),...Array.isArray(a)?a:[a]]));return n.displayName=`${t}`,n};/**
51 * @license lucide-react v0.344.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const Wp=Zt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
56 * @license lucide-react v0.344.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Hp=Zt("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
61 * @license lucide-react v0.344.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const hu=Zt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
66 * @license lucide-react v0.344.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Vp=Zt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
71 * @license lucide-react v0.344.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Kp=Zt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
76 * @license lucide-react v0.344.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const qp=Zt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
81 * @license lucide-react v0.344.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Gp=Zt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
85],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Qp="modulepreload",Jp=function(t){return"/"+t},fu={},zr=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(a=>{if(a=Jp(a),a in fu)return;fu[a]=!0;const u=a.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Qp,u||(d.as="script"),d.crossOrigin="",d.href=a,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((h,v)=>{d.addEventListener("load",h),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return e().catch(s)})},Yp=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>zr(async()=>{const{default:r}=await Promise.resolve().then(()=>Mn);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)};class Yl extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class Xp extends Yl{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class pu extends Yl{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class mu extends Yl{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Ko;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Ko||(Ko={}));var Zp=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};class em{constructor(e,{headers:n={},customFetch:r,region:i=Ko.Any}={}){this.url=e,this.headers=n,this.region=i,this.fetch=Yp(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,n={}){var r;return Zp(this,void 0,void 0,function*(){try{const{headers:i,method:s,body:o}=n;let l={},{region:a}=n;a||(a=this.region);const u=new URL(`${this.url}/${e}`);a&&a!=="any"&&(l["x-region"]=a,u.searchParams.set("forceFunctionRegion",a));let c;o&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",c=o):typeof o=="string"?(l["Content-Type"]="text/plain",c=o):typeof FormData<"u"&&o instanceof FormData?c=o:(l["Content-Type"]="application/json",c=JSON.stringify(o)));const d=yield this.fetch(u.toString(),{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),i),body:c}).catch(k=>{throw new Xp(k)}),h=d.headers.get("x-relay-error");if(h&&h==="true")throw new pu(d);if(!d.ok)throw new mu(d);let v=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),y;return v==="application/json"?y=yield d.json():v==="application/octet-stream"?y=yield d.blob():v==="text/event-stream"?y=d:v==="multipart/form-data"?y=yield d.formData():y=yield d.text(),{data:y,error:null,response:d}}catch(i){return{data:null,error:i,response:i instanceof mu||i instanceof pu?i.context:void 0}}})}}var ve={},Xl={},ds={},Mr={},hs={},fs={},tm=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Ln=tm();const nm=Ln.fetch,Wd=Ln.fetch.bind(Ln),Hd=Ln.Headers,rm=Ln.Request,im=Ln.Response,Mn=Object.freeze(Object.defineProperty({__proto__:null,Headers:Hd,Request:rm,Response:im,default:Wd,fetch:nm},Symbol.toStringTag,{value:"Module"})),sm=fh(Mn);var ps={};Object.defineProperty(ps,"__esModule",{value:!0});
85let om=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}};ps.default=om;var Vd=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fs,"__esModule",{value:!0});const lm=Vd(sm),am=Vd(ps);let um=class{constructor(e){var n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(n=e.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=lm.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=new Headers(this.headers),this.headers.set(e,n),this}then(e,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var o,l,a,u;let c=null,d=null,h=null,v=s.status,y=s.statusText;if(s.ok){if(this.method!=="HEAD"){const f=await s.text();f===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?d=f:d=JSON.parse(f))}const _=(l=this.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),p=(a=s.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");_&&p&&p.length>1&&(h=parseInt(p[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,h=null,v=406,y="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const _=await s.text();try{c=JSON.parse(_),Array.isArray(c)&&s.status===404&&(d=[],c=null,v=200,y="OK")}catch{s.status===404&&_===""?(v=204,y="No Content"):c={message:_}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,v=200,y="OK"),c&&this.shouldThrowOnError)throw new am.default(c)}return{error:c,data:d,count:h,status:v,statusText:y}});return this.shouldThrowOnError||(i=i.catch(s=>{var o,l,a;return{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(l=s==null?void 0:s.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(a=s==null?void 0:s.code)!==null&&a!==void 0?a:""}`},data:null,count:null,status:0,statusText:""}})),i.then(e,n)}returns(){return this}overrideTypes(){return this}};fs.default=um;var cm=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hs,"__esModule",{value:!0});const dm=cm(fs);let hm=class extends dm.default{select(e){let n=!1;const r=(e??"*").split("").map(i=>/\s/.test(i)&&!n?"":(i==='"'&&(n=!n),i)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:n=!0,nullsFirst:r,foreignTable:i,referencedTable:s=i}={}){const o=s?`${s}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${e}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this}range(e,n,{foreignTable:r,referencedTable:i=r}={}){const s=typeof i>"u"?"offset":`${i}.offset`,o=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(o,`${n-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
85explain({analyze:e=!1,verbose:n=!1,settings:r=!1,buffers:i=!1,wal:s=!1,format:o="text"}={}){var l;const a=[e?"analyze":null,n?"verbose":null,r?"settings":null,i?"buffers":null,s?"wal":null].filter(Boolean).join("|"),u=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${a};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};hs.default=hm;var fm=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mr,"__esModule",{value:!0});const pm=fm(hs);let mm=class extends pm.default{eq(e,n){return this.url.searchParams.append(e,`eq.${n}`),this}neq(e,n){return this.url.searchParams.append(e,`neq.${n}`),this}gt(e,n){return this.url.searchParams.append(e,`gt.${n}`),this}gte(e,n){return this.url.searchParams.append(e,`gte.${n}`),this}lt(e,n){return this.url.searchParams.append(e,`lt.${n}`),this}lte(e,n){return this.url.searchParams.append(e,`lte.${n}`),this}like(e,n){return this.url.searchParams.append(e,`like.${n}`),this}likeAllOf(e,n){return this.url.searchParams.append(e,`like(all).{${n.join(",")}}`),this}likeAnyOf(e,n){return this.url.searchParams.append(e,`like(any).{${n.join(",")}}`),this}ilike(e,n){return this.url.searchParams.append(e,`ilike.${n}`),this}ilikeAllOf(e,n){return this.url.searchParams.append(e,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(e,n){return this.url.searchParams.append(e,`ilike(any).{${n.join(",")}}`),this}is(e,n){return this.url.searchParams.append(e,`is.${n}`),this}in(e,n){const r=Array.from(new Set(n)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}contains(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cs.{${n.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(n)}`),this}containedBy(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cd.{${n.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(n)}`),this}rangeGt(e,n){return this.url.searchParams.append(e,`sr.${n}`),this}rangeGte(e,n){return this.url.searchParams.append(e,`nxl.${n}`),this}rangeLt(e,n){return this.url.searchParams.append(e,`sl.${n}`),this}rangeLte(e,n){return this.url.searchParams.append(e,`nxr.${n}`),this}rangeAdjacent(e,n){return this.url.searchParams.append(e,`adj.${n}`),this}overlaps(e,n){return typeof n=="string"?this.url.searchParams.append(e,`ov.${n}`):this.url.searchParams.append(e,`ov.{${n.join(",")}}`),this}textSearch(e,n,{config:r,type:i}={}){let s="";i==="plain"?s="pl":i==="phrase"?s="ph":i==="websearch"&&(s="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${o}.${n}`),this}match(e){return Object.entries(e).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(e,n,r){return this.url.searchParams.append(e,`not.${n}.${r}`),this}or(e,{foreignTable:n,referencedTable:r=n}={}){const i=r?`${r}.or`:"or";return this.url.searchParams.append(i,`(${e})`),this}filter(e,n,r){return this.url.searchParams.append(e,`${n}.${r}`),this}};Mr.default=mm;var gm=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ds,"__esModule",{value:!0});const Xn=gm(Mr);let vm=class{constructor(e,{headers:n={},schema:r,fetch:i}){this.url=e,this.headers=new Headers(n),this.schema=r,this.fetch=i}select(e,{head:n=!1,count:r}={}){const i=n?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(l=>/\s/.test(l)&&!s?"":(l==='"'&&(s=!s),l)).join("");return this.url.searchParams.set("select",o),r&&this.headers.append("Prefer",`count=${r}`),new Xn.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:n,defaultToNull:r=!0}={}){var i;const s="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((l,a)=>l.concat(Object.keys(a)),[]);if(o.length>0){const l=[...new Set(o)].map(a=>`"${a}"`);this.url.searchParams.set("columns",l.join(","))}}return new Xn.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}upsert(e,{onConflict:n,ignoreDuplicates:r=!1,count:i,defaultToNull:s=!0}={}){var o;const l="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),i&&this.headers.append("Prefer",`count=${i}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(a.length>
850){const u=[...new Set(a)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Xn.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(e,{count:n}={}){var r;const i="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new Xn.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var n;const r="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new Xn.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};ds.default=vm;var Kd=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xl,"__esModule",{value:!0});const ym=Kd(ds),wm=Kd(Mr);let _m=class qd{constructor(e,{headers:n={},schema:r,fetch:i}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.fetch=i}from(e){const n=new URL(`${this.url}/${e}`);return new ym.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new qd(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,n={},{head:r=!1,get:i=!1,count:s}={}){var o;let l;const a=new URL(`${this.url}/rpc/${e}`);let u;r||i?(l=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{a.searchParams.append(d,h)})):(l="POST",u=n);const c=new Headers(this.headers);return s&&c.set("Prefer",`count=${s}`),new wm.default({method:l,url:a,headers:c,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};Xl.default=_m;var Fn=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
85Object.defineProperty(ve,"__esModule",{value:!0});ve.PostgrestError=ve.PostgrestBuilder=ve.PostgrestTransformBuilder=ve.PostgrestFilterBuilder=ve.PostgrestQueryBuilder=ve.PostgrestClient=void 0;const Gd=Fn(Xl);ve.PostgrestClient=Gd.default;const Qd=Fn(ds);ve.PostgrestQueryBuilder=Qd.default;const Jd=Fn(Mr);ve.PostgrestFilterBuilder=Jd.default;const Yd=Fn(hs);ve.PostgrestTransformBuilder=Yd.default;const Xd=Fn(fs);ve.PostgrestBuilder=Xd.default;const Zd=Fn(ps);ve.PostgrestError=Zd.default;var km=ve.default={PostgrestClient:Gd.default,PostgrestQueryBuilder:Qd.default,PostgrestFilterBuilder:Jd.default,PostgrestTransformBuilder:Yd.default,PostgrestBuilder:Xd.default,PostgrestError:Zd.default};const{PostgrestClient:xm,PostgrestQueryBuilder:xg,PostgrestFilterBuilder:Sg,PostgrestTransformBuilder:Eg,PostgrestBuilder:jg,PostgrestError:Tg}=km;class Sm{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,i=parseInt(r.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
86import ws from "ws"
87new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
88
89Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const Em="2.15.5",jm=`realtime-js/${Em}`,Tm="1.0.0",qo=1e4,Cm=1e3,bm=100;var fr;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(fr||(fr={}));var Y;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Y||(Y={}));var Me;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(Me||(Me={}));var Go;(function(t){t.websocket="websocket"})(Go||(Go={}));var Mt;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Mt||(Mt={}));class Pm{constructor(){this.HEADER_LENGTH=1}decode(e,n){return e.constructor===ArrayBuffer?n(this._binaryDecode(e)):n(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const n=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,n,r)}_decodeBroadcast(e,n,r){const i=n.getUint8(1),s=n.getUint8(2);let o=this.HEADER_LENGTH+2;const l=r.decode(e.slice(o,o+i));o=o+i;const a=r.decode(e.slice(o,o+s));o=o+s;const u=JSON.parse(r.decode(e.slice(o,e.byteLength)));return{ref:null,topic:l,event:a,payload:u}}}class eh{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var D;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
vendor: 5,715 bytes, line 89
89srange="tsrange",t.tstzrange="tstzrange"})(D||(D={}));const gu=(t,e,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(e).reduce((s,o)=>(s[o]=Nm(o,t,e,i),s),{})},Nm=(t,e,n,r)=>{const i=e.find(l=>l.name===t),s=i==null?void 0:i.type,o=n[t];return s&&!r.includes(s)?th(s,o):Qo(o)},th=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return Im(e,n)}switch(t){case D.bool:return Om(e);case D.float4:case D.float8:case D.int2:case D.int4:case D.int8:case D.numeric:case D.oid:return Am(e);case D.json:case D.jsonb:return Rm(e);case D.timestamp:return $m(e);case D.abstime:case D.date:case D.daterange:case D.int4range:case D.int8range:case D.money:case D.reltime:case D.text:case D.time:case D.timestamptz:case D.timetz:case D.tsrange:case D.tstzrange:return Qo(e);default:return Qo(e)}},Qo=t=>t,Om=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},Am=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},Rm=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},Im=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let s;const o=t.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(l=>th(e,l))}return t},$m=t=>typeof t=="string"?t.replace(" ","T"):t,nh=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class Vs{constructor(e,n,r={},i=qo){this.channel=e,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var vu;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(vu||(vu={}));class pr{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:s,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=pr.syncState(this.state,i,s,o),this.pendingDiffs.forEach(a=>{this.state=pr.syncDiff(this.state,a,s,o)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=pr.syncDiff(this.state,i,s,o),l())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,i){const s=this.cloneDeep(e),o=this.transformState(n),l={},a={};return this.map(s,(u,c)=>{o[u]||(a[u]=c)}),this.map(o,(u,c)=>{const d=s[u];if(d){const h=c.map(_=>_.presence_ref),v=d.map(_=>_.presence_ref),y=c.filter(_=>v.indexOf(_.presence_ref)<0),k=d.filter(_=>h.indexOf(_.presence_ref)<0);y.length>0&&(l[u]=y),k.length>0&&(a[u]=k)}else l[u]=c}),this.syncDiff(s,{joins:l,leaves:a},r,i)}static syncDiff(e,n,r,i){const{joins:s,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(s,(l,a)=>{var u;const c=(u=e[l])!==null&&u!==void 0?u:[];if(e[l]=this.cloneDeep(a),c.length>0){const d=e[l].map(v=>v.presence_ref),h=c.filter(v=>d.indexOf(v.presence_ref)<0);e[l].unshift(...h)}r(l,c,a)}),this.map(o,(l,a)=>{let u=e[l];if(!u)return;const c=a.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),e[l]=u,i(l,u,a),u.length===0&&delete e[l]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const i=e[r];return"metas"in i?n[r]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=i,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var yu;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELET
89E="DELETE"})(yu||(yu={}));var mr;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(mr||(mr={}));var Ze;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Ze||(Ze={}));class Zl{constructor(e,n={config:{}},r){this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=Y.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Vs(this,Me.join,this.params,this.timeout),this.rejoinTimer=new eh(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Y.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Y.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Y.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Y.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Y.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Me.reply,{},(i,s)=>{this._trigger(this._replyEventName(s),i)}),this.presence=new pr(this),this.broadcastEndpointURL=nh(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Y.closed){const{config:{broadcast:o,presence:l,private:a}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(v=>v.filter))!==null&&i!==void 0?i:[],c=!!this.bindings[mr.PRESENCE]&&this.bindings[mr.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:c}),postgres_changes:u,private:a};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(v=>e==null?void 0:e(Ze.CHANNEL_ERROR,v)),this._onClose(()=>e==null?void 0:e(Ze.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:v})=>{var y;if(this.socket.setAuth(),v===void 0){e==null||e(Ze.SUBSCRIBED);return}else{const k=this.bindings.postgres_changes,_=(y=k==null?void 0:k.length)!==null&&y!==void 0?y:0,p=[];for(let f=0;f<_;f++){const m=k[f],{filter:{event:w,schema:E,table:S,filter:j}}=m,b=v&&v[f];if(b&&b.event===w&&b.schema===E&&b.table===S&&b.filter===j)p.push(Object.assign(Object.assign({},m),{id:b.id}));else{this.unsubscribe(),this.state=Y.errored,e==null||e(Ze.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=p,e&&e(Ze.SUBSCRIBED);return}}).receive("error",v=>{this.state=Y.errored,e==null||e(Ze.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(v).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(Ze.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===Y.joined&&e===mr.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,n,r)}async send(e,n={}){var r,i;if(!this._canPush()&&e.type==="broadcast"){const{event:s,payload:o}=e,a={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,l,a;const u=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((a=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||a===void 0)&&a.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Y.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Me.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new Vs(this,Me.leave,{},e),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}
89teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Y.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new Vs(this,e,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>bm){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var i,s;const o=e.toLocaleLowerCase(),{close:l,error:a,leave:u,join:c}=Me;if(r&&[l,a,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(v=>{var y,k,_;return((y=v.filter)===null||y===void 0?void 0:y.event)==="*"||((_=(k=v.filter)===null||k===void 0?void 0:k.event)===null||_===void 0?void 0:_.toLocaleLowerCase())===o}).map(v=>v.callback(h,r)):(s=this.bindings[o])===null||s===void 0||s.filter(v=>{var y,k,_,p,f,m;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in v){const w=v.id,E=(y=v.filter)===null||y===void 0?void 0:y.event;return w&&((k=n.ids)===null||k===void 0?void 0:k.includes(w))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((_=n.data)===null||_===void 0?void 0:_.type.toLocaleLowerCase()))}else{const w=(f=(p=v==null?void 0:v.filter)===null||p===void 0?void 0:p.event)===null||f===void 0?void 0:f.toLocaleLowerCase();return w==="*"||w===((m=n==null?void 0:n.event)===null||m===void 0?void 0:m.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===o}).map(v=>{if(typeof h=="object"&&"ids"in h){const y=h.data,{schema:k,table:_,commit_timestamp:p,type:f,errors:m}=y;h=Object.assign(Object.assign({},{schema:k,table:_,commit_timestamp:p,eventType:f,new:{},old:{},errors:m}),this._getPayloadRecords(y))}v.callback(h,r)})}_isClosed(){return this.state===Y.closed}_isJoined(){return this.state===Y.joined}_isJoining(){return this.state===Y.joining}_isLeaving(){return this.state===Y.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const i=e.toLocaleLowerCase(),s={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Zl.isEqual(i.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(Me.close,{},e)}_onError(e){this._on(Me.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Y.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=gu(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=gu(e.columns,e.old_record)),n}}const Ks=()=>{},li={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Lm=[1e3,2e3,5e3,1e4],Dm=1e4,Um=`
90  addEventListener("message", (e) => {
91    if (e.data.event === "start") {
92      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
93    }
94  });`;class zm{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=qo,this.transport=null,this.heartbeatIntervalMs=li.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ks,this.ref=0,this.reconnectTimer=null,this.logger=Ks,this.conn=null,this.sendBuffer=[],this.serializer
94=new Pm,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=i=>{let s;return i?s=i:typeof fetch>"u"?s=(...o)=>zr(async()=>{const{default:l}=await Promise.resolve().then(()=>Mn);return{default:l}},void 0).then(({default:l})=>l(...o)).catch(l=>{throw new Error(`Failed to load @supabase/node-fetch: ${l.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):s=fetch,(...o)=>s(...o)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${e}/${Go.websocket}`,this.httpEndpoint=nh(e),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=Sm.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n}
95
96To use Realtime in Node.js, you need to provide a WebSocket implementation:
97
98Option 1: Use Node.js 22+ which has native WebSocket support
99Option 2: Install and provide the "ws" package:
100
101  npm install ws
102
103  import ws from "ws"
104  const client = new RealtimeClient(url, {
105    ...options,
106    transport: ws
107  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:Tm}))}disconnect(e,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},e?this.conn.close(e,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case fr.connecting:return Mt.Connecting;case fr.open:return Mt.Open;case fr.closing:return Mt.Closing;default:return Mt.Closed}}isConnected(){return this.connectionState()===Mt.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,n={config:{}}){const r=`realtime:${e}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Zl(`realtime:${e}`,n,this);return this.channels.push(s),s}}push(e){const{topic:n,event:r,payload:i,ref:s}=e,o=()=>{this.encode(e,l=>{var a;(a=this.conn)===null||a===void 0||a.send(l)})};this.log("push",`${n} ${r} (${s})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(Cm,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},li.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
1070&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:i,payload:s,ref:o}=n,l=o?`(${o})`:"",a=s.status||"";this.log("receive",`${a} ${r} ${i} ${l}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(i,s,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(Me.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${e}${r}${i}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([Um],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n;e?n=e:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const i={access_token:n,version:jm};n&&r.updateJoinPayload(i),r.joinedOnce&&r._isJoined()&&r._push(Me.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new eh(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},li.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,i,s,o,l,a,u,c;if(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:qo,this.heartbeatIntervalMs=(i=e==null?void 0:e.heartbeatIntervalMs)!==null&&i!==void 0?i:li.HEARTBEAT_INTERVAL,this.worker=(s=e==null?void 0:e.worker)!==null&&s!==void 0?s:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=e==null?void 0:e.heartbeatCallback)!==null&&l!==void 0?l:Ks,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=e==null?void 0:e.reconnectAfterMs)!==null&&a!==void 0?a:d=>Lm[d-1]||Dm,this.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:(d,h)=>h(JSON.stringify(d)),this.decode=(c=e==null?void 0:e.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}
107class ea extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function X(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class Mm extends ea{constructor(e,n,r){super(e),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Jo extends ea{constructor(e,n){super(e),this.name="StorageUnknownError",this.originalError=n}}var Fm=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const rh=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>zr(async()=>{const{default:r}=await Promise.resolve().then(()=>Mn);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},Bm=()=>Fm(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield zr(()=>Promise.resolve().then(()=>Mn),void 0)).Response:Response}),Yo=t=>{if(Array.isArray(t))return t.map(n=>Yo(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));e[i]=Yo(r)}),e},Wm=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var en=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const qs=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),Hm=(t,e,n)=>en(void 0,void 0,void 0,function*(){const r=yield Bm();t instanceof r&&!(n!=null&&n.noResolveJson)?t.json().then(i=>{const s=t.status||500,o=(i==null?void 0:i.statusCode)||s+"";e(new Mm(qs(i),s,o))}).catch(i=>{e(new Jo(qs(i),i))}):e(new Jo(qs(t),t))}),Vm=(t,e,n,r)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?i:(Wm(r)?(i.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),i.body=JSON.stringify(r)):i.body=r,e!=null&&e.duplex&&(i.duplex=e.duplex),Object.assign(Object.assign({},i),n))};function Fr(t,e,n,r,i,s){return en(this,void 0,void 0,function*(){return new Promise((o,l)=>{t(n,Vm(e,r,i,s)).then(a=>{if(!a.ok)throw a;return r!=null&&r.noResolveJson?a:a.json()}).then(a=>o(a)).catch(a=>Hm(a,l,r))})})}function qi(t,e,n,r){return en(this,void 0,void 0,function*(){return Fr(t,"GET",e,n,r)})}function qe(t,e,n,r,i){return en(this,void 0,void 0,function*(){return Fr(t,"POST",e,r,i,n)})}function Xo(t,e,n,r,i){return en(this,void 0,void 0,function*(){return Fr(t,"PUT",e,r,i,n)})}function Km(t,e,n,r){return en(this,void 0,void 0,function*(){return Fr(t,"HEAD",e,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function ih(t,e,n,r,i){return en(this,void 0,void 0,function*(){return Fr(t,"DELETE",e,r,i,n)})}var de=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const qm={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},wu={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Gm{constructor(e,n={},r,i){this.shouldThrowOnError=!1,this.url=e,this.headers=n,this.bucketId=r,this.fetch=rh(i)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,n,r,i){return de(this,void 0,void 0,function*(){try{let s;const o=Object.assign(Object.assign({},wu),i);let l=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const a=o.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),a&&s.append("metadata",this.encodeMetadata(a)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.append("cacheControl",o.cacheControl),a&&s.append("metadata",this.encodeMetadata(a))):(s=r,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,a&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(a)))),i!=null&&i.headers&&(l=Object.assign(Object.assign({},l),i.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),d=yield(e=="PUT"?Xo:qe)(this.fetch,`${this.url}/object/${c}`,s,Object.assign({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(X(s))return{data:null,error:s};throw s}})}upload(e,n,r){return de(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,n,r)})}uploadToSignedUrl(e,n,r,i){return de(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(e),o=this._getFinalPath(s),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",n);try{let a;const u=Object.assign({upsert:wu.upsert},i),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",u.cacheControl),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.append("cacheControl",u.cacheControl)):(a=r,c["cac
107he-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield Xo(this.fetch,l.toString(),a,{headers:c});return{data:{path:s,fullPath:d.Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(X(a))return{data:null,error:a};throw a}})}createSignedUploadUrl(e,n){return de(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e);const i=Object.assign({},this.headers);n!=null&&n.upsert&&(i["x-upsert"]="true");const s=yield qe(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(this.url+s.url),l=o.searchParams.get("token");if(!l)throw new ea("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:l},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(X(r))return{data:null,error:r};throw r}})}update(e,n,r){return de(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,n,r)})}move(e,n,r){return de(this,void 0,void 0,function*(){try{return{data:yield qe(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(X(i))return{data:null,error:i};throw i}})}copy(e,n,r){return de(this,void 0,void 0,function*(){try{return{data:{path:(yield qe(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(X(i))return{data:null,error:i};throw i}})}createSignedUrl(e,n,r){return de(this,void 0,void 0,function*(){try{let i=this._getFinalPath(e),s=yield qe(this.fetch,`${this.url}/object/sign/${i}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(X(i))return{data:null,error:i};throw i}})}createSignedUrls(e,n,r){return de(this,void 0,void 0,function*(){try{const i=yield qe(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:e},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:i.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${s}`):null})),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(X(i))return{data:null,error:i};throw i}})}download(e,n){return de(this,void 0,void 0,function*(){const i=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=s?`?${s}`:"";try{const l=this._getFinalPath(e);return{data:yield(yield qi(this.fetch,`${this.url}/${i}/${l}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(X(l))return{data:null,error:l};throw l}})}info(e){return de(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{const r=yield qi(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Yo(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(X(r))return{data:null,error:r};throw r}})}exists(e){return de(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{return yield Km(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(X(r)&&r instanceof Jo){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}})}getPublicUrl(e,n){const r=this._getFinalPath(e),i=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&i.push(s);const l=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});a!==""&&i.push(a);let u=i.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${r}${u}`)}}}remove(e){return de(this,void 0,void 0,function*(){try{return{data:yield ih(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(X(n))return{data:null,error:n};throw n}})}list(e,n,r){return de(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},qm),n),{prefix:e||""});return{data:yield qe(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},r),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(X(i))return{data:null,error:i};throw i}})}listV2(e,n){return de(this,void 0,void 0,function*(){try{const r=Object.assign({},e);return{data:yield qe(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(X(r))return{data:null,error:r};throw r}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}}const Qm="2.12.1",Jm={"X-Client-Info":`storage-js/${Qm}`};var nn=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}
107return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};class Ym{constructor(e,n={},r,i){this.shouldThrowOnError=!1;const s=new URL(e);i!=null&&i.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href,this.headers=Object.assign(Object.assign({},Jm),n),this.fetch=rh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return nn(this,void 0,void 0,function*(){try{return{data:yield qi(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(X(e))return{data:null,error:e};throw e}})}getBucket(e){return nn(this,void 0,void 0,function*(){try{return{data:yield qi(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(X(n))return{data:null,error:n};throw n}})}createBucket(e,n={public:!1}){return nn(this,void 0,void 0,function*(){try{return{data:yield qe(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(X(r))return{data:null,error:r};throw r}})}updateBucket(e,n){return nn(this,void 0,void 0,function*(){try{return{data:yield Xo(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(X(r))return{data:null,error:r};throw r}})}emptyBucket(e){return nn(this,void 0,void 0,function*(){try{return{data:yield qe(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(X(n))return{data:null,error:n};throw n}})}deleteBucket(e){return nn(this,void 0,void 0,function*(){try{return{data:yield ih(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(X(n))return{data:null,error:n};throw n}})}}class Xm extends Ym{constructor(e,n={},r,i){super(e,n,r,i)}from(e){return new Gm(this.url,this.headers,e,this.fetch)}}const Zm="2.57.4";let rr="";typeof Deno<"u"?rr="deno":typeof document<"u"?rr="web":typeof navigator<"u"&&navigator.product==="ReactNative"?rr="react-native":rr="node";const e0={"X-Client-Info":`supabase-js-${rr}/${Zm}`},t0={headers:e0},n0={schema:"public"},r0={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},i0={};var s0=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const o0=t=>{let e;return t?e=t:typeof fetch>"u"?e=Wd:e=fetch,(...n)=>e(...n)},l0=()=>typeof Headers>"u"?Hd:Headers,a0=(t,e,n)=>{const r=o0(n),i=l0();return(s,o)=>s0(void 0,void 0,void 0,function*(){var l;const a=(l=yield e())!==null&&l!==void 0?l:t;let u=new i(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${a}`),r(s,Object.assign(Object.assign({},o),{headers:u}))})};var u0=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};function c0(t){return t.endsWith("/")?t:t+"/"}function d0(t,e){var n,r;const{db:i,auth:s,realtime:o,global:l}=t,{db:a,auth:u,realtime:c,global:d}=e,h={db:Object.assign(Object.assign({},a),i),auth:Object.assign(Object.assign({},u),s),realtime:Object.assign(Object.assign({},c),o),storage:{},global:Object.assign(Object.assign(Object.assign({},d),l),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>u0(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}function h0(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");
107if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(c0(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const sh="2.71.1",un=30*1e3,Zo=3,Gs=Zo*un,f0="http://localhost:9999",p0="supabase.auth.token",m0={"X-Client-Info":`gotrue-js/${sh}`},el="X-Supabase-Api-Version",oh={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},g0=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,v0=10*60*1e3;class ta extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function P(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class y0 extends ta{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function w0(t){return P(t)&&t.name==="AuthApiError"}class lh extends ta{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class At extends ta{constructor(e,n,r,i){super(e,r,i),this.name=n,this.status=r}}class dt extends At{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function _0(t){return P(t)&&t.name==="AuthSessionMissingError"}class ai extends At{constructor(){super("Auth session or user missing","AuthInvalidToken
107ResponseError",500,void 0)}}class ui extends At{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class ci extends At{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function k0(t){return P(t)&&t.name==="AuthImplicitGrantRedirectError"}class _u extends At{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class tl extends At{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Qs(t){return P(t)&&t.name==="AuthRetryableFetchError"}class ku extends At{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class nl extends At{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Gi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),xu=` 	
108\r=`.split(""),x0=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<xu.length;e+=1)t[xu[e].charCodeAt(0)]=-2;for(let e=0;e<Gi.length;e+=1)t[Gi[e].charCodeAt(0)]=e;return t})();function Su(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Gi[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Gi[r]),e.queuedBits-=6}}function ah(t,e,n){const r=x0[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Eu(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{j0(o,r,n)};for(let o=0;o<t.length;o+=1)ah(t.charCodeAt(o),i,s);return e.join("")}function S0(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function E0(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}S0(r,e)}}function j0(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function T0(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};for(let i=0;i<t.length;i+=1)ah(t.charCodeAt(i),n,r);return new Uint8Array(e)}function C0(t){const e=[];return E0(t,n=>e.push(n)),new Uint8Array(e)}function b0(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};return t.forEach(i=>Su(i,n,r)),Su(null,n,r),e.join("")}function P0(t){return Math.round(Date.now()/1e3)+t}function N0(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const De=()=>typeof window<"u"&&typeof document<"u",$t={tested:!1,writable:!1},uh=()=>{if(!De())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if($t.tested)return $t.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),$t.tested=!0,$t.writable=!0}catch{$t.tested=!0,$t.writable=!1}return $t.writable};function O0(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{e[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{e[i]=r}),e}const ch=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>zr(async()=>{const{default:r}=await Promise.resolve().then(()=>Mn);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},A0=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",cn=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},Lt=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},ct=async(t,e)=>{await t.removeItem(e)};class ms{constructor(){this.promise=new ms.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}ms.promiseConstructor=Promise;function Js(t){const e=t.split(".");if(e.length!==3)throw new nl("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!g0.test(e[r]))throw new nl("JWT not in base64url format");return{header:JSON.parse(Eu(e[0])),payload:JSON.parse(Eu(e[1])),signature:T0(e[2]),raw:{header:e[0],payload:e[1]}}}async function R0(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function I0(t,e){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await t(s);if(!e(s,null,o)){r(o);return}}catch(o){if(!e(s,o)){i(o);return}}})()})}function $0(t){return("0"+t.toString(16)).substr(-2)}function L0(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(e),Array.from(e,$0).join("")}async function D0(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",
108n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function U0(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await D0(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function rn(t,e,n=!1){const r=L0();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await cn(t,`${e}-code-verifier`,i);const s=await U0(r);return[s,r===s?"plain":"s256"]}const z0=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function M0(t){const e=t.headers.get(el);if(!e||!e.match(z0))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function F0(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function B0(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const W0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function sn(t){if(!W0.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ys(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function ju(t){return JSON.parse(JSON.stringify(t))}var H0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const zt=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),V0=[502,503,504];async function Tu(t){var e;if(!A0(t))throw new tl(zt(t),0);if(V0.includes(t.status))throw new tl(zt(t),t.status);let n;try{n=await t.json()}catch(s){throw new lh(zt(s),s)}let r;const i=M0(t);if(i&&i.getTime()>=oh["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new ku(zt(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new dt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new ku(zt(n),t.status,n.weak_password.reasons);throw new y0(zt(n),t.status||500,r)}const K0=(t,e,n,r)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function A(t,e,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[el]||(s[el]=oh["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",a=await q0(t,e,n+l,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(a):{data:Object.assign({},a),error:null}}async function q0(t,e,n,r,i,s){const o=K0(e,r,i,s);let l;try{l=await t(n,Object.assign({},o))}catch(a){throw console.error(a),new tl(zt(a),0)}if(l.ok||await Tu(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(a){await Tu(a)}}function Ye(t){var e;let n=null;Y0(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=P0(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function Cu(t){const e=Ye(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function gt(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function G0(t){return{data:t,error:null}}function Q0(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=t,o=H0(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},a=Object.assign({},o);return{data:{properties:l,user:a},error:null}}function J0(t){return t}function Y0(t){return t.access_token&&t.refresh_token&&t.expires_in}const Xs=["global","local","others"];var X0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};class Z0{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=ch(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,n=Xs[0]){if(Xs.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Xs.join(", ")}`);try{return await A(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(P(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await A(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:gt})}catch(r){if(P(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=X0(e,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await A(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:Q0,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(P(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await A(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:gt})}catch(n){if(P(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,i,s,o,l,a;try{const u={nextPage:null,lastPage:0,total:0},c=await A(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=e==null?void 0:e.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:J0});if(c.error)throw c.error;const d=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,v=(a=(l=c.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&a!==void 0?a:[];return v.length>0&&(v.forEach(y=>{const k=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(y.split(";")[1].split("=")[1]);u[`${_}Page`]=k}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(P(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){sn(e);try{return await A(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:gt})}catch(n){if(P(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){sn(e);try{return await A(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:gt})}catch(r){if(P(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){sn(e);
108try{return await A(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:gt})}catch(r){if(P(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){sn(e.userId);try{const{data:n,error:r}=await A(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(P(n))return{data:null,error:n};throw n}}async _deleteFactor(e){sn(e.userId),sn(e.id);try{return{data:await A(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(P(n))return{data:null,error:n};throw n}}}function bu(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}function eg(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const on={debug:!!(globalThis&&uh()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class dh extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class tg extends dh{}async function ng(t,e,n){on.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),on.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){on.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,i.name);try{return await n()}finally{on.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,i.name)}}else{if(e===0)throw on.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new tg(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(on.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}eg();const rg={url:f0,storageKey:p0,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:m0,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Pu(t,e,n){return await n()}const ln={};class Rr{constructor(e){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Rr.nextInstanceID,Rr.nextInstanceID+=1,this.instanceID>0&&De()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const i=Object.assign(Object.assign({},rg),e);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new Z0({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=ch(i.fetch),this.lock=i.lock||Pu,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:De()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=ng:this.lock=Pu,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:uh()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=bu(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=bu(this.memoryStorage)),De()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}get jwks(){var e,n;return(n=(e=ln[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){ln[this.storageKey]=Object.assign(Object.assign({},ln[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=ln[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){ln[this.storageKey]=Object.assign(Object.assign({},ln[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${sh}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const n=O0(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),De()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),k0(s)){const a=(e=s.details)===null||e===void 0?void 0:e.code;if(a==="identity_already_exists"||a==="identity_not_found"||a==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:o,redirectType:l}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return P(n)?{error:n}:{error:new lh("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,i;try{const s=await A(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=e==null?void 0:e.options)===null||i===void 0?void 0:i.captchaToken}},xform:Ye}),{data:o,error:l}=s;if(l||!o)return{data:{user:null,session:null},error:l};const a=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",a)),{data:{user:u,session:a},error:null}}catch(s){if(P(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(e){var n,r,i;try{let s;if("email"in e){const{email:c,password:d,options:h}=e;let v=null,y=null;this.flowType==="pkce"&&([v,y]=await rn(this.storage,this.storageKey)),s=await A(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:v,code_challenge_method:y},xform:Ye})}else if("phone"in e){const{phone:c,password:d,options:h}=e;s=await A(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(i=h==null?void 0:h.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Ye})}else throw new ui("You must provide either an email or phone number and a password");const{data:o,error:l}=s;if(l||!o)return{data:{user:null,session:null},error:l};const a=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",a)),{data:{user:u,session:a},error:null}}catch(s){if(P(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(e){try{let n;if("email"in e){const{email:s,password:o,options:l}=e;n=await A(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Cu})}else if("phone"in e){const{phone:s,password:o,options:l}=e;n=await A(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Cu})}else throw new ui("You must provide either an email or phone number and a password");const{data:r,error:i}=n;return i?{data:{user:null,session:null},error:i}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new ai}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(P(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(e){var n,r,i,s;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=e.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=e.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;if(n==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(e){var n,r,i,s,o,l,a,u,c,d,h,v;let y,k;if("message"in e)y=e.message,k=e.signature;else{const{chain:_,wallet:p,statement:f,options:m}=e;let w;if(De())if(typeof p=="object")w=p;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))w=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof p!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=p}const E=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in w&&w.signIn){const S=await w.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},m==null?void 0:m.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),f?{statement:f}:null));let j;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")j=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)j=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)y=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),k=j.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in w)||typeof w.signMessage!="function"||!("publicKey"in w)||typeof w!="object"||!w.publicKey||!("toBase58"in w.publicKey)||typeof w.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${E.host} wants you to sign in with your Solana account:`,w.publicKey.toBase58(),...f?["",f,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(i=(r=m==null?void 0:m.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=m==null?void 0:m.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${m.signInWithSolana.notBefore}`]:[],...!((o=m==null?void 0:m.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${m.signInWithSolana.expirationTime}`]:[],...!((l=m==null?void 0:m.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${m.signInWithSolana.chainId}`]:[],...!((a=m==null?void 0:m.signInWithSolana)===null||a===void 0)&&a.nonce?[`Nonce: ${m.signInWithSolana.nonce}`]:[],...!((u=m==null?void 0:m.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${m.signInWithSolana.requestId}`]:[],...!((d=(c=m==null?void 0:m.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...m.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(`
109`);const S=await w.signMessage(new TextEncoder().encode(y),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");k=S}}try{const{data:_,error:p}=await A(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:b0(k)}
109,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(v=e.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:Ye});if(p)throw p;return!_||!_.session||!_.user?{data:{user:null,session:null},error:new ai}:(_.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),{data:Object.assign({},_),error:p})}catch(_){if(P(_))return{data:{user:null,session:null},error:_};throw _}}async _exchangeCodeForSession(e){const n=await Lt(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{const{data:s,error:o}=await A(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Ye});if(await ct(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new ai}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(P(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(e){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=e,l=await A(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Ye}),{data:a,error:u}=l;return u?{data:{user:null,session:null},error:u}:!a||!a.session||!a.user?{data:{user:null,session:null},error:new ai}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:a,error:u})}catch(n){if(P(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(e){var n,r,i,s,o;try{if("email"in e){const{email:l,options:a}=e;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await rn(this.storage,this.storageKey));const{error:d}=await A(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=a==null?void 0:a.data)!==null&&n!==void 0?n:{},create_user:(r=a==null?void 0:a.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:a==null?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in e){const{phone:l,options:a}=e,{data:u,error:c}=await A(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(i=a==null?void 0:a.data)!==null&&i!==void 0?i:{},create_user:(s=a==null?void 0:a.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken},channel:(o=a==null?void 0:a.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new ui("You must provide either an email or phone number.")}catch(l){if(P(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(e){var n,r;try{let i,s;"options"in e&&(i=(n=e.options)===null||n===void 0?void 0:n.redirectTo,s=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:l}=await A(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Ye});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const a=o.session,u=o.user;return a!=null&&a.access_token&&(await this._saveSession(a),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",a)),{data:{user:u,session:a},error:null}}catch(i){if(P(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(e){var n,r,i;try{let s=null,o=null;return this.flowType==="pkce"&&([s,o]=await rn(this.storage,this.storageKey)),await A(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=e==null?void 0:e.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:o}),headers:this.headers,xform:G0})}catch(s){if(P(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new dt;const{error:i}=await A(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:i}})}catch(e){if(P(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:i,options:s}=e,{error:o}=await A(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:r,type:i,options:s}=e,{data:o,error:l}=await A(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new ui("You must provide either an email or phone number and a type")}catch(n){if(P(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await Lt(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
109id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<Gs:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await Lt(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=Ys()}if(this.storage.isServer&&e.user){let o=this.suppressGetSessionWarning;e=new Proxy(e,{get:(a,u,c)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(a,u,c))})}return{data:{session:e},error:null}}const{session:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{session:null},error:s}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await A(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:gt}):await this._useSession(async n=>{var r,i,s;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new dt}:await A(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:gt})})}catch(n){if(P(n))return _0(n)&&(await this._removeSession(),await ct(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new dt;const o=i.session;let l=null,a=null;this.flowType==="pkce"&&e.email!=null&&([l,a]=await rn(this.storage,this.storageKey));const{data:u,error:c}=await A(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:a}),jwt:o.access_token,xform:gt});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(P(r))return{data:{user:null},error:r};throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new dt;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=Js(e.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{session:l,error:a}=await this._callRefreshToken(e.refresh_token);if(a)return{data:{user:null,session:null},error:a};if(!l)return{data:{user:null,session:null},error:null};s=l}else{const{data:l,error:a}=await this._getUser(e.access_token);if(a)throw a;s={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(n){if(P(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:l}=n;if(l)throw l;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new dt;const{session:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{user:null,session:null},error:s}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(P(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(e,n){try{if(!De())throw new ci("No browser detected.");
109if(e.error||e.error_description||e.error_code)throw new ci(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new _u("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ci("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new _u("No code detected.");const{data:f,error:m}=await this._exchangeCodeForSession(e.code);if(m)throw m;const w=new URL(window.location.href);return w.searchParams.delete("code"),window.history.replaceState(window.history.state,"",w.toString()),{data:{session:f.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:l,expires_at:a,token_type:u}=e;if(!s||!l||!o||!u)throw new ci("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(l);let h=c+d;a&&(h=parseInt(a));const v=h-c;v*1e3<=un&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${d}s`);const y=h-d;c-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,h,c):c-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,h,c);const{data:k,error:_}=await this._getUser(s);if(_)throw _;const p={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:d,expires_at:h,refresh_token:o,token_type:u,user:k.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:p,redirectType:e.type},error:null}}catch(r){if(P(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await Lt(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return{error:s};const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,e);if(l&&!(w0(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return e!=="others"&&(await this._removeSession(),await ct(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const n=N0(),r={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",e,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(e))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",s),console.error(s)}})}async resetPasswordForEmail(e,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await rn(this.storage,this.storageKey,!0));try{return await A(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(P(s))return{data:null,error:s};throw s}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(n){if(P(n))return{data:null,error:n};throw n}}async linkIdentity(e){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var o,l,a,u,c;const{data:d,error:h}=s;if(h)throw h;const v=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(a=e.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:!0});return await A(this.fetch,"GET",v,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return De()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:e.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(P(r))return{data:{provider:e.provider,url:null},error:r};throw r}}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;
109if(o)throw o;return await A(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(P(n))return{data:null,error:n};throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await I0(async i=>(i>0&&await R0(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await A(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Ye})),(i,s)=>{const o=200*Math.pow(2,i);return s&&Qs(s)&&Date.now()+o-r<un})}catch(r){if(this._debug(n,"error",r),P(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),De()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await Lt(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Lt(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await cn(this.userStorage,this.storageKey+"-user",o)),i.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:Ys()}else if(i&&!i.user&&!i.user){const o=await Lt(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await ct(this.storage,this.storageKey+"-user"),await cn(this.storage,this.storageKey,i)):i.user=Ys()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Gs;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Gs}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),Qs(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(i.access_token);!l&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new dt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new ms;const{data:s,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!s.session)throw new dt;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const l={session:s.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(s){if(this._debug(i,"error",s),P(s)){const o={session:null,error:s};return Qs(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(e,n,r=!0){const i=`#_notifyAllSubscribers(${e})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(e,n)}catch(a){s.push(a)}});if(await Promise.all(o),s.length>0){for(let l=0;l<s.length;l+=1)console.error(s[l]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await cn(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=ju(i);await cn(this.storage,this.storageKey,s)}else{const i=ju(n);await cn(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),await ct(this.storage,this.storageKey),await ct(this.storage,this.storageKey+"-code-verifier"),await ct(this.storage,this.storageKey+"-user"),this.userStorage&&await ct(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&De()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
109catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),un);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-e)/un);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${un}ms, refresh threshold is ${Zo} ticks`),i<=Zo&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof dh)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!De()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await rn(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(l.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${i.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?{data:null,error:s}:await A(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(P(n))return{data:null,error:n};throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:a,error:u}=await A(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(e.factorType==="totp"&&(!((i=a==null?void 0:a.totp)===null||i===void 0)&&i.qr_code)&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),{data:a,error:null})})}catch(n){if(P(n))return{data:null,error:n};throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return{data:null,error:s};const{data:o,error:l}=await A(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:l})})}catch(n){if(P(n))return{data:null,error:n};throw n}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?{data:null,error:s}:await A(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(P(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){const{data:{user:e},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(e==null?void 0:e.factors)||[],i=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),s=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:i,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var n,r;const{data:{session:i},error:s}=e;if(s)return{data:null,error:s};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Js(i.access_token);let l=null;o.aal&&(l=o.aal);let a=l;((r=(n=i.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=o.amr||[];return{data:{currentLevel:l,nextLevel:a,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(l=>l.kid===e);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(l=>l.kid===e),r&&this.jwks_cached_at+v0>i)return r;const{data:s,error:o}=await A(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(l=>l.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:v,error:y}
109=await this.getSession();if(y||!v.session)return{data:null,error:y};r=v.session.access_token}const{header:i,payload:s,signature:o,raw:{header:l,payload:a}}=Js(r);n!=null&&n.allowExpired||F0(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:v}=await this.getUser(r);if(v)throw v;return{data:{claims:s,header:i,signature:o},error:null}}const c=B0(i.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,o,C0(`${l}.${a}`)))throw new nl("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(P(r))return{data:null,error:r};throw r}}}Rr.nextInstanceID=0;const ig=Rr;class sg extends ig{constructor(e){super(e)}}var og=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};class lg{constructor(e,n,r){var i,s,o;this.supabaseUrl=e,this.supabaseKey=n;const l=h0(e);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const a=`sb-${l.hostname.split(".")[0]}-auth-token`,u={db:n0,realtime:i0,auth:Object.assign(Object.assign({},r0),{storageKey:a}),global:t0},c=d0(r??{},u);this.storageKey=(i=c.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=c.auth)!==null&&o!==void 0?o:{},this.headers,c.global.fetch),this.fetch=a0(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new xm(new URL("rest/v1",l).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new Xm(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new em(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,n={},r={}){return this.rest.rpc(e,n,r)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,n;return og(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(e=r.session)===null||e===void 0?void 0:e.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:i,userStorage:s,storageKey:o,flowType:l,lock:a,debug:u},c,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new sg({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),c),storageKey:o,autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:i,userStorage:s,flowType:l,lock:a,debug:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(v=>v.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new zm(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(e,n,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const ag=(t,e,n)=>new lg(t,e,n);function ug(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}ug()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
109ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const cg="https://ijwfpfxxgheplchfbahd.supabase.co",dg="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imlqd2ZwZnh4Z2hlcGxjaGZiYWhkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODA3MjM3ODAsImV4cCI6MjA5NjI5OTc4MH0.nUIUnYOSUp35fYd_qlmrmLG4qIhK3n5iy169pth9gw8",hg=ag(cg,dg),an=[{url:"/כסא_נדנדה_2.png",caption:"עיצוב ישראלי"},{url:"/HEALED_LUVATON_(6).jpg",caption:"חומריות"},{url:"/LEATHER_AND_TOOLS_LUVATON_(2).jpg",caption:"מלאכת יד"},{url:"/Medium_Silk_Tricolor-GBS_1s.jpg",caption:"אמנות ועיצוב"},{url:"/כוסות_במנעד_צבעים_2.png",caption:"קרמיקה ואומנות"},{url:"/טאיזו_1.png",caption:"עיצוב קולינרי"}],fg=[{num:"01",title:"דיסקית דיגיטלית אישית",desc:"הדיסקית הדיגיטלית תאפשר כניסה לאירועים וקבלת הטבות שונות שיתפרסמו בסמוך למועד האירועים."},{num:"02",title:"הרשמה מוקדמת לאירועים",desc:"ההרשמה המוקדמת לרצועות התוכן, להשקות ולאירועי הקוקטייל, תפתח קודם כל לנרשמים בהרשמה המוקדמת, ותעניק את האפשרות לשריין מקום לפני כולם."},{num:"03",title:"כניסת VIP לאירועים נבחרים",desc:`במהלך אירועי הפסטיבל יהיו מספר אירועים אליהם יוכלו מחזיקי הדיסקית להיכנס ללא תשלום או ליהנות מהנחה משמעותית – בהם סיורי עיצוב, אירועי קוקטייל, שיחי גלריה ועוד.
110ברצועת התוכן המרכזית תינתן הנחה ברכישת כרטיסים, וכן תתאפשר רכישה מוקדמת לפני פתיחת ההרשמה לקהל הרחב. מחזיקי הדיסקית יקבלו GIVE AWAY בנקודות ובחללי סטודיו נבחרים, בהצגת הדיסקית.
111פרטים נוספים יימסרו בהמשך.`},{num:"04",title:"תוכניית האירוע לפני כולם",desc:"קבלת תוכניית האירועים ולוח הזמנים רגע לפני שהם מופצים לכלל האדריכלים והמעצבים."},{num:"05",title:"הרשמה מוקדמת לכיתות אמן",desc:"כיתות אמן נבחרות יאפשרו הצצה אל תהליכי יצירה ייחודיים של מעצבים שונים מעולמות הטקסטיל, העור, הקרמיקה ונוספים. כיתות האמן מאפשרות אירוח קבוצות של עד 8 איש. ההרשמה המוקדמת תאפשר שיריון מקום מבעוד מועד."},{num:"06",title:"קהילת האדריכלים ומעצבי הפנים של יום העיצוב",desc:"מפגשי נטוורקינג אקסקלוסיביים שמחברים את האדריכלים ומעצבי הפנים המובילים בישראל."}],pg=[{q:"מהו יום העיצוב הישראלי?",a:"יום העיצוב הישראלי הוא אירוע דגל של העיצוב בישראל שנוסד במטרה להעלות את המודעות למעצבי המוצר המקומיים, לסביבה הביתית- ארבעה ימים של פעילות עשירה הכוללת כיתות אמן בחללי סטודיו, סיורי עיצוב, רצועות תוכן, תערוכות ושיחות עם דמויות מובילות בתחום העיצוב. האירוע מתקיים בו-זמנית במגוון מוקדים בעיר תל אביב. ומזמן מעצבים מכל רחבי הארץ."},{q:"מתי והיכן מתקיים האירוע",a:"יום העיצוב הישראלי מתקיים ב-25-28 בנובמבר 2026, בשלושה מוקדים בעיר תל אביב - צפון יפו, מתחם נגה, מתחם החשמל."},{q:"למי מיועד האירוע?",a:'האירוע מיועד לאדריכלים, מעצבי פנים, יזמי נדל"ן, מותגי עיצוב, וכל מי שנלהב ומסוקרן מתרבות העיצוב הישראלית.'},{q:"מהי הקהילה המקצועית?",a:'הקהילה המקצועית היא מעגל הגישה המוקדמת של אנשי מקצוע מתחומי האדריכלות, העיצוב, האמנות והנדל"ן שנרשמו לפני פרסום התוכנייה. לחברי הקהילה גישה מוקדמת, כניסה חופשית לאירועים נבחרים, הזמנות להשקות ולאירועים סגורים.'},{q:"האם ההרשמה כרוכה בתשלום?",a:"ההצטרפות לקהילה המקצועית, אינה כרוכה בתשלום, אך פתוחה רק לבעלי מקצוע מהתחום. יש להקפיד לציין את המקצוע בעת ההרשמה."},{q:"מתי אקבל מידע נוסף לאחר ההרשמה?",a:"עם ביצוע ההרשמה, תקבלו אישור הרשמה מיידי. עדכוני תוכנייה יחלו מאוגוסט 2026. חברי הקהילה יקבלו את המידע לפני כולם."}];function mg(){const[t,e]=G.useState(0),[n,r]=G.useState(!1),i=G.useRef(null),s=G.useCallback(h=>{n||(r(!0),setTimeout(()=>{e(h),r(!1)},400))},[n]),o=G.useCallback(()=>s((t+1)%an.length),[t,s]),l=G.useCallback(()=>s((t-1+an.length)%an.length),[t,s]);G.useEffect(()=>(i.current=setInterval(o,4500),()=>{i.current&&clearInterval(i.current)}),[o]);const a=G.useCallback(()=>{i.current&&clearInterval(i.current),i.current=setInterval(o,4500)},[o]),u=()=>{l(),a()},c=()=>{o(),a()},d=h=>{s(h),a()};return g.jsxs("div",{className:"absolute inset-0 w-full overflow-hidden",children:[an.map((h,v)=>g.jsx("div",{className:"absolute inset-0 transition-opacity duration-700 ease-in-out",style:{opacity:v===t?n?0:1:0},"aria-hidden":v!==t,children:g.jsx("img",{src:h.url,alt:h.caption,className:"block w-full h-full object-cover"})},h.url)),g.jsx("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.48)"}}),g.jsx("div",{className:"absolute inset-x-0 top-0 h-40",style:{background:"linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%)"}}),g.jsx("div",{className:"absolute inset-x-0 bottom-0 h-[50%]",style:{background:"linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%)"}}),g.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px)",backgroundSize:"60px 60px"}}),g.jsxs("div",{className:"absolute bottom-10 left-6 md:left-10 flex items-center gap-5 z-10",children:[g.jsx("button",{onClick:c,"aria-label":"הבא",className:"w-10 h-10 flex items-center justify-center border border-white/20 text-white/60 hover:border-brand-500 hover:text-brand-400 transition-all duration-200",children:g.jsx(Kp,{size:16})}),g.jsx("button",{onClick:u,"aria-label":"הקודם",className:"w-10 h-10 flex items-center justify-center border border-white/20 text-white/60 hover:border-brand-500 hover:text-brand-400 transition-all duration-200",children:g.jsx(Vp,{size:16})}),g.jsx("div",{className:"flex items-center gap-2 mr-2",children:an.map((h,v)=>g.jsx("button",{onClick:()=>d(v),"aria-label":`שקופית ${v+1}`,className:"transition-all duration-300",style:{width:v===t?24:6,height:2,background:v===t?"#E84A1E":"rgba(255,255,255,0.3)"}},v))}),g.jsx("span",{className:"hidden sm:block font-sans text-xs text-white/40 uppercase",style:{letterSpacing:"0.15em"},children:an[t].caption})]})]})}function gg(){const[t,e]=G.useState(!1),[n,r]=G.useState(!1),[i,s]=G.useState(null),[o,l]=G.useState({full_name:"",studio:"",role:"",email:"",ph
111one:""}),[a,u]=G.useState("idle"),[c,d]=G.useState("");G.useEffect(()=>{const _=()=>e(window.scrollY>50);return window.addEventListener("scroll",_,{passive:!0}),()=>window.removeEventListener("scroll",_)},[]);const h=_=>{var p;(p=document.querySelector(_))==null||p.scrollIntoView({behavior:"smooth"}),r(!1)},v=_=>l(p=>({...p,[_.target.name]:_.target.value})),y=async _=>{_.preventDefault(),u("loading"),d("");const{error:p}=await hg.from("design_day_registrations").insert({full_name:o.full_name.trim(),studio:o.studio.trim(),role:o.role.trim(),email:o.email.trim().toLowerCase(),phone:o.phone.trim()||null});p?(d(p.code==="23505"?"כתובת המייל הזו כבר רשומה ברשימת המייסדים.":"אירעה שגיאה. אנא נסו שוב."),u("error")):u("success")},k=[["#about","האירוע"],["#community","אדריכלים"],["#vision","החזון"],["#register","הרשמה מוקדמת"]];return g.jsxs("div",{className:"min-h-screen bg-neutral-950 text-neutral-900 font-sans overflow-x-hidden",children:[g.jsxs("header",{className:`fixed top-0 inset-x-0 z-50 transition-all duration-300 ${t?"bg-white/95 backdrop-blur-sm border-b border-neutral-100":"bg-transparent"}`,children:[g.jsxs("nav",{className:"max-w-7xl mx-auto px-6 md:px-10 h-16 flex items-center justify-between",children:[g.jsx("button",{onClick:()=>h("#register"),className:"btn-primary py-2.5 px-5 text-xs hidden md:block",children:"הצטרפו עכשיו"}),g.jsx("div",{className:"hidden md:flex items-center gap-8",children:k.map(([_,p])=>g.jsx("button",{onClick:()=>h(_),className:`font-sans font-semibold text-xs uppercase transition-colors duration-200 hover:text-brand-400 ${t?"text-neutral-500":"text-white/75"}`,style:{fontWeight:600,letterSpacing:"0.08em"},children:p},_))}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("span",{className:`font-sans font-bold text-sm uppercase hidden sm:block transition-colors duration-300 ${t?"text-neutral-900":"text-white"}`,style:{fontWeight:800,letterSpacing:"0.1em"},children:"Design Day"}),g.jsx("img",{src:"/יום_העיצוב_הישראלי_.png",alt:"יום העיצוב הישראלי",className:"h-9 w-9 object-contain"})]}),g.jsx("button",{onClick:()=>r(!n),className:`md:hidden transition-colors duration-300 ${t?"text-neutral-700":"text-white"}`,children:n?g.jsx(Gp,{size:20}):g.jsx(qp,{size:20})})]}),n&&g.jsxs("div",{className:"md:hidden bg-white border-t border-neutral-100 px-6 py-6 space-y-4",children:[k.map(([_,p])=>g.jsx("button",{onClick:()=>h(_),className:"block w-full text-right font-sans font-bold text-base text-neutral-700 uppercase",style:{fontWeight:700,letterSpacing:"0.06em"},children:p},_)),g.jsx("button",{onClick:()=>h("#register"),className:"btn-primary w-full text-center mt-2",children:"הצטרפו עכשיו"})]})]}),g.jsxs("section",{className:"relative min-h-screen flex flex-col overflow-hidden bg-neutral-950",children:[g.jsx(mg,{}),g.jsxs("div",{className:"relative flex-1 flex flex-col justify-end max-w-7xl mx-auto w-full px-6 md:px-10 pb-32 pt-36",children:[g.jsx("div",{className:"absolute top-24 left-6 md:left-10 w-20 h-20 md:w-28 md:h-28 pointer-events-none",children:g.jsx("img",{src:"/יום_העיצוב_הישראלי_.png",alt:"יום העיצוב הישראלי",className:"w-full h-full object-contain drop-shadow-2xl",style:{transform:"rotate(8deg)",opacity:.9}})}),g.jsxs("div",{className:"max-w-4xl",children:[g.jsx("p",{className:"eyebrow mb-6 text-brand-400",children:"אירוע העיצוב הגדול של השנה"}),g.jsxs("h1",{className:"font-sans font-black text-white uppercase leading-none",style:{fontWeight:900,fontSize:"clamp(52px, 9vw, 120px)",lineHeight:.92,letterSpacing:"-0.02em"},children:["יום",g.jsx("br",{}),g.jsx("span",{style:{color:"#E84A1E"},children:"העיצוב"}),g.jsx("br",{}),"2026."]}),g.jsxs("div",{className:"flex items-center gap-5 mt-10 mb-10",children:[g.jsx("div",{className:"h-px w-12 bg-brand-500"}),g.jsxs("span",{className:"font-sans font-semibold text-sm text-neutral-300 uppercase",style:{fontWeight:600,letterSpacing:"0.15em"},children:[g.jsx("span",{dir:"ltr",children:"25–28"})," בנובמבר 2026"]}),g.jsx("div",{className:"h-px w-12 bg-brand-500"})]}),g.jsx("p",{className:"font-sans text-neutral-300 text-base md:text-lg max-w-xl mb-12",style:{lineHeight:1.8},children:"4 ימים של פסטיבל עיצוב בעיר תל אביב, עשרות אירועים, רצועות תוכן ייעודיות לאדריכלים ומעצבי פנים."}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[g.jsx("button",{onClick:()=>h("#register"),className:"btn-primary",children:"הצטרפו עכשיו"}),g.jsx("button",{onClick:()=>h("#about"),className:"btn-outline-white",children:"גלו עוד"})]}),g.jsx("p",{className:"font-sans text-brand-400 text-xs font-medium max-w-xl mt-8 text-right",style:{lineHeight:1.75,letterSpacing:"0.02em"},children:"אל קהילת יום העיצוב מצטרפים מדי שנה מאות אדריכלים, מעצבי פנים, יצרנים ומותגים."})]})]}),g.jsx("button",{onClick:()=>h("#about"),className:"relative mx-auto mb-6 flex flex-col items-center gap-2 text-neutral-500 hover:text-brand-400 transition-colors duration-200 z-10",children:g.jsx(hu,{size:16,className:"animate-bounce"})})]}),g.jsx("section",{id:"about",className:"py-28 md:py-36 px-6 md:px-10 bg-neutral-50",children:g.jsx("div",{className:"max-w-7xl mx-auto",children:g.jsxs("div",{className:"grid md:grid-cols-12 gap-10 md:gap-16 items-start",children:[g.jsxs("div",{className:"md:col-span-5",children:[g.jsx("div",{className:"aspect-[4/5] overflow-hidden bg-neutral-100",children:g.jsx("img",{src:"/DSC_7073.JPG",alt:"אדריכלות",className:"w-full h-full object-cover grayscale hover:grayscale-0 transition-all duration-700",style:{objectPosition:"50% 35%"}})}),g.jsx("div",{className:"grid grid-cols-3 border border-neutral-200 mt-px",children:[["4","ימים"],["20+","מוקדים"],["500+","אדריכלים ומעצבי פנים"]].map(([_,p])=>g.jsxs("div",{className:"px-4 py-5 border-l last:border-l-0 border-neutral-200",children:[g.jsx("div",{className:"font-sans font-black text-3xl text-brand-500",style:{fontWeight:900},children:_}),g.jsx("div",{className:"font-sans text-xs uppercase text-neutral-400 mt-1",style:{fontWeight:600,letterSpacing:"0.08em"},children:p})]},p))})]}),g.jsxs("div",{className:"md:col-span-7 md:pt-8",children:[g.jsx("p",{className:"eyebrow mb-5",children:"מהו יום העיצוב"}),g.jsx("div",{className:"rule mb-8"}),g.jsxs("h2",{className:"font-sans font-black uppercase text-neutral-900 mb
111-8",style:{fontWeight:900,fontSize:"clamp(36px, 5vw, 64px)",lineHeight:.95,letterSpacing:"-0.02em"},children:["Israeli Design Day",g.jsx("br",{}),g.jsx("span",{className:"text-brand-500",dir:"ltr",children:"25–28 November 2026"})]}),g.jsx("div",{className:"space-y-5 font-sans text-neutral-600 text-base",style:{lineHeight:1.85},children:g.jsxs("p",{children:[g.jsx("a",{href:"https://he.wikipedia.org/wiki/%D7%99%D7%95%D7%9D_%D7%94%D7%A2%D7%99%D7%A6%D7%95%D7%91_%D7%94%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99#:~:text=%D7%99%D7%95%D7%9D%20%D7%94%D7%A2%D7%99%D7%A6%D7%95%D7%91%20%D7%94%D7%99%D7%A9%D7%A8%D7%90%D7%9C%D7%99%20%D7%94%D7%95%D7%90%20%D7%9E%D7%95%D7%A2%D7%93%20%D7%A9%D7%A0%D7%AA%D7%99%20%D7%94%D7%9E%D7%A6%D7%95%D7%99%D7%9F%20%D7%91%D7%99%D7%A9%D7%A8%D7%90%D7%9C,%D7%91%D7%9B%D7%9C%20%D7%99%D7%95%D7%9D%20%D7%97%D7%9E%D7%99%D7%A9%D7%99%20%D7%A9%D7%9C%D7%A4%D7%A0%D7%99%20%D7%97%D7%92%20%D7%94%20%D7%97%D7%A0%D7%95%D7%9B%D7%94%20%5B4%5D.",target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"#D03A10",fontWeight:600,transition:"opacity 0.15s",cursor:"pointer"},onMouseEnter:_=>_.currentTarget.style.opacity="0.75",onMouseLeave:_=>_.currentTarget.style.opacity="1",children:"יום העיצוב"})," הישראלי נפרש על פני ארבעה ימים והופך את העיר למרחב פעיל של עיצוב, רעיונות ויצירה. זהו פסטיבל המפגיש בין אדריכלים, מעצבי פנים, יוצרים ומותגים, דרך רצועות תוכן ייעודיות, השקות, תערוכות ואירועי קוקטייל במוקדים שונים. במהלך הימים הללו נפתח דיאלוג חי בין פרקטיקה, חומר וחשיבה עיצובית עכשווית, ונוצר רצף חוויות מקצועיות שמאפשר הצצה אל תהליכי העבודה, מקורות ההשראה והכיוונים המעצבים את השפה המקומית והבינלאומית של העיצוב."]})}),g.jsx("div",{className:"mt-10 pt-10 border-t border-neutral-200 grid grid-cols-2 gap-8",children:[{label:"גבולות",sub:"בחינת גבולות צורה וחומר"},{label:"עיצוב פנים",sub:"מרחב, חומר ופרט"},{label:"חדשנות",sub:"טכנולוגיה פוגשת מלאכה"},{label:"מרחב",sub:"חוויית העיצוב במרחב האורבני"}].map(_=>g.jsxs("div",{children:[g.jsx("div",{className:"font-sans font-extrabold text-sm uppercase text-neutral-900 mb-1",style:{fontWeight:800,letterSpacing:"0.04em"},children:_.label}),g.jsx("div",{className:"font-sans text-xs text-neutral-400",style:{lineHeight:1.6},children:_.sub})]},_.label))})]})]})})}),g.jsx("section",{id:"community",className:"py-28 md:py-36 px-6 md:px-10 bg-neutral-900",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsxs("div",{className:"grid md:grid-cols-12 gap-8 mb-16 md:mb-20",children:[g.jsxs("div",{className:"md:col-span-7",children:[g.jsx("p",{className:"eyebrow mb-5",children:"קהילת האדריכלים ומעצבי הפנים של יום העיצוב"}),g.jsx("div",{className:"rule mb-8"}),g.jsx("h2",{className:"font-sans font-black uppercase text-white",style:{fontWeight:900,fontSize:"clamp(36px, 5vw, 68px)",lineHeight:.92,letterSpacing:"-0.02em"},children:"הצטרפו להרשמה המוקדמת."}),g.jsx("p",{className:"font-sans text-brand-400 mt-4",style:{fontSize:"clamp(15px, 1.4vw, 20px)",fontWeight:500,letterSpacing:"0.01em"},children:'ההרשמה מיועדת לאדריכלים, מעצבי פנים וקהל מקצועי מענף הבניה והנדל"ן'}),g.jsx("div",{className:"mt-8",children:g.jsx("img",{src:"/יום_העיצוב_הישראלי_.png",alt:"יום העיצוב הישראלי",className:"h-16 md:h-20 w-auto object-contain"})})]}),g.jsx("div",{className:"md:col-span-5 md:flex md:items-end",children:g.jsx("p",{className:"font-sans text-neutral-300 text-base",style:{lineHeight:1.85},children:'ההרשמה המוקדמת פתוחה לאדריכלים ומעצבי פנים ולקהל מקצועי מענף הבניה והנדל"ן. ההזמנה להצטרף כבר עכשיו, תאפשר להנגיש עבורכם את התכנים, רצועות התוכן והאירועים השונים. הנרשמים בהרשמה המוקדמת יקבלו את ההזמנות ויוכלו לשריין מקומות רגע לפני כל השאר.'})})]}),g.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-px bg-neutral-700",children:fg.map(_=>g.jsxs("div",{className:"bg-neutral-900 p-8 md:p-10 group hover:bg-neutral-800 transition-colors duration-300",children:[g.jsx("div",{className:"font-sans font-extrabold text-brand-500 text-sm mb-6",style:{fontWeight:800,letterSpacing:"0.1em"},children:_.num}),g.jsx("h3",{className:"font-sans font-extrabold text-white text-xl md:text-2xl mb-4",style:{fontWeight:800,lineHeight:1.2},children:_.title}),g.jsx("p",{className:"font-sans text-neutral-300 text-sm group-hover:text-neutral-200 transition-colors duration-300",style:{lineHeight:1.8,whiteSpace:"pre-line"},children:_.desc})]},_.num))}),g.jsxs("div",{className:"mt-12 flex flex-col sm:flex-row items-center justify-between gap-4 border border-neutral-700 px-4 sm:px-8 py-7",children:[g.jsx("button",{onClick:()=>h("#register"),className:"btn-primary w-full sm:w-auto flex-none text-center",children:"הצטרפו להרשמה המוקדמת"}),g.jsx("p",{className:"font-sans font-bold text-white uppercase text-center sm:text-right",style:{fontWeight:700,letterSpacing:"0.02em",fontSize:"clamp(9px, 2.2vw, 16px)"},children:"פותחים צוהר >> עולם עיצוב המוצר לסביבה הביתית"})]})]})}),g.jsxs("section",{id:"vision",className:"py-28 md:py-36 px-6 md:px-10 bg-brand-500 text-white relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none overflow-hidden select-none",children:g.jsx("span",{className:"font-sans font-black text-white/5 uppercase text-center",style:{fontWeight:900,fontSize:"20vw",lineHeight:1},children:"THE ISRAELI DESIGN DAY 2026"})}),g.jsx("div",{className:"relative max-w-7xl mx-auto",children:g.jsxs("div",{className:"max-w-3xl",children:[g.jsx("p",{className:"font-sans font-bold text-white/60 text-xs uppercase mb-5",style:{fontWeight:700,letterSpacing:"0.2em"},children:"החזון"}),g.jsx("div",{className:"w-10 h-0.5 bg-white/40 mb-10"}),g.jsx("h1",{className:"font-sans font-black text-white mb-3",style:{fontWeight:900,fontSize:"clamp(24px, 4.2vw, 64px)",lineHeight:.96,letterSpacing:"-0.03em"},children:"יוצרים את תרבות העיצוב המקומית"}),g.jsx("p",{className:"font-sans text-white/70 mb-10",style:{fontSize:"clamp(18px, 2.5vw, 26px)",lineHeight:1.5},children:"האירוע השנתי המוביל של עיצוב ישראלי"}),g.jsx("div",{className:"space-y-6 font-sans text-white/75 text-base md:text-lg",style:{lineHeight:1.85}}),g.jsx("div",{className:"mt-16 grid grid-cols-1 sm:grid-cols-3 gap-px bg-white/20",children:[{label:"קהילה",sub:"אדריכלים ומעצבי פנים"},{label:"מותגים",sub:"חומרים, מוצרים וטכנולוגיה"},{label:"קהל",sub:"קהל רחב סקרן ושוחר עיצוב"}].map(_=>g.jsxs("div",{className:"bg-brand-500 px-6 py-7 hover:bg-brand-600 transition-colors duration-200",children:[g.jsx("div",{className:"font-sans font-black text-white text-xl uppercase mb-1",style:{fontWeight:900,letterSpacing:"-0.01em"},children:_.label}),g.jsx("div",{className:"font-sans text-white/50 text-xs",children:_.sub})]},_.label))})]})})]}),g.jsx("section",{className:"py-28 md:py-36 px-6 md:px-10 bg-neutral-50 border-t border-neutral-100",children:g.jsx("div",{className:"max-w-7xl mx-auto",children:g.jsxs("div",{className:"grid md:grid-cols-12 gap-12 items-center",children:[g.jsx("div",{className:"md:col-span-4 lg:col-span-3",children:g.jsxs("div",{className:"aspect-[3/4] overflow-hidden bg-neutral-200 relative",children:[g.jsx("img",{src:"/DSC_7658 copy.jpg",alt:"המייסד",className:"w-full h-full object-cover grayscale"}),g.jsx("div",{className:"absolute bottom-0 inset-x-0 h-1 bg-brand-500"})]})}),g.jsxs("div",{className:"md:col-span-8 lg:col-span-8 lg:col-start-5",children:[g.jsx("p",{className:"eyebrow mb-5",children:"המייסדים"}),g.jsx("div",{className:"rule mb-8"}),g.jsxs("h2",{className:"font-sans font-black uppercase text-neutral-900 mb
111-8",style:{fontWeight:900,fontSize:"clamp(28px, 4vw, 48px)",lineHeight:.95,letterSpacing:"-0.02em"},children:["מאחורי",g.jsx("br",{}),"יום העיצוב"]}),g.jsxs("div",{className:"space-y-5 font-sans text-neutral-600 text-base",style:{lineHeight:1.85},children:[g.jsx("p",{children:"יום העיצוב הישראלי, בהובלת יזמת העיצוב ואשת התקשורת אורי סלע, נולד מתוך רצון לייצר במה קבועה ומשמעותית לעיצוב המקומי בישראל ולחזק את תרבות העיצוב המקומית. האירוע מחבר בין אדריכלים, מעצבי פנים ומעצבי מוצר, ומאפשר הצצה אל מאחורי הקלעים של היצירה המקומית דרך רצועות תוכן ייחודיות, ביקורי סטודיו, מפגשים ואירועי עומק הנבנים סביב תמה שנתית משתנה."}),g.jsxs("p",{children:["הפעילות כולה מתקיימת כחלק ממעטפת רחבה יותר של המותג LOCAL DOT COM, המתמחה בקידום יזמות בעיצוב בשוק המקומי. לצד יום העיצוב פועלים תחת המותג גם ",g.jsx("a",{href:"https://private.invoice4u.co.il/newsite/he/clearing/public/i4u-clearing?ProductGuid=bc7f3bb0-72a8-467d-8f58-750dcf96483e",target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"#D03A10",fontWeight:600,transition:"opacity 0.15s",cursor:"pointer"},onMouseEnter:_=>_.currentTarget.style.opacity="0.75",onMouseLeave:_=>_.currentTarget.style.opacity="1",children:"מועדון העיצוב הישראלי"}),", וכן פרויקטים נוספים כמו ",g.jsx("a",{href:"https://private.invoice4u.co.il/newsite/he/clearing/public/i4u-clearing?ProductGuid=d2866db8-f5b0-4065-9b63-2075e8699cff",target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"#D03A10",fontWeight:600,transition:"opacity 0.15s",cursor:"pointer"},onMouseEnter:_=>_.currentTarget.style.opacity="0.75",onMouseLeave:_=>_.currentTarget.style.opacity="1",children:"ספר"})," העוסק בפיתוח הטעם האישי ומציע הצצה אל שולחנם של כ־25 מעצבי מוצר מקומיים. יחד הם מייצרים אקו־סיסטם מקצועי שמחבר בין יצירה, קהילה ויזמות עיצובית עכשווית."]})]}),g.jsxs("div",{className:"mt-10 pt-8 border-t border-neutral-200",children:[g.jsx("div",{className:"font-sans font-extrabold text-neutral-900 text-base uppercase",style:{fontWeight:800,letterSpacing:"0.04em"},children:"יום העיצוב הישראלי"}),g.jsx("div",{className:"font-sans text-xs text-neutral-400 mt-1",children:"SINCE 2022"})]})]})]})})}),g.jsx("section",{id:"register",className:"py-28 md:py-36 px-6 md:px-10 bg-neutral-900",children:g.jsx("div",{className:"max-w-7xl mx-auto",children:g.jsxs("div",{className:"grid md:grid-cols-12 gap-12 md:gap-16",children:[g.jsxs("div",{className:"md:col-span-5",children:[g.jsx("p",{className:"eyebrow mb-5",children:"הרשמה מוקדמת"}),g.jsx("div",{className:"rule mb-8"}),g.jsxs("h2",{className:"font-sans font-black text-white mb-5",style:{fontWeight:900,fontSize:"clamp(28px, 4vw, 60px)",lineHeight:1.05,letterSpacing:"-0.02em"},children:["הצטרפו לקהילת"," ",g.jsx("span",{className:"text-brand-500",children:"האדריכלים והמעצבים"})," ","של יום העיצוב הישראלי"]}),g.jsx("p",{className:"font-sans text-neutral-200 mb-8",style:{fontSize:"clamp(15px, 1.4vw, 18px)",lineHeight:1.75},children:"קבלו גישה מוקדמת לאירועים, סיורים, מפגשים ותכנים שייחשפו בפניכם לאורך החודשים הקרובים עד לפסטיבל העיצוב בנובמבר."}),g.jsx("p",{className:"font-sans text-neutral-300 text-sm mb-10",style:{lineHeight:1.9},children:"ההרשמה המוקדמת תאפשר קבלת הזמנות והזדמנות לשריין מקום באירועים רגע לפני שמופצים לכולם."}),g.jsx("div",{className:"space-y-4",children:["עדיפות לשריון מקומות באירועים","כניסה חופשית לאירועים נבחרים","הנחה ברכישת כרטיסים לאירועי הפסטיבל","כרטיס חופשי להשתתפות בסיור עיצוב ייעודי לאדריכלים ומעצבי פנים (עד גמר מלאי הכרטיסים)","הזמנה לביקור מונחה ושיח גלריה בתערוכת יום העיצוב"].map(_=>g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx(Wp,{size:13,className:"text-brand-500 mt-0.5 flex-shrink-0"}),g.jsx("span",{className:"font-sans text-sm text-neutral-300",children:_})]},_))})]}),g.jsxs("div",{className:"md:col-span-7",children:[g.jsx("div",{className:"text-center mb-8 pb-8 border-b border-neutral-800",children:g.jsx("p",{className:"font-sans font-semibold uppercase",style:{fontSize:"clamp(12px, 1.1vw, 14px)",letterSpacing:"0.18em",color:"transparent",background:"linear-gradient(270deg, #fff 0%, #e0e0e0 50%, #E84A1E 100%)",WebkitBackgroun
111dClip:"text",backgroundClip:"text"},children:"4 ימים  |  עשרות אירועים  |  מאות אדריכלים ומעצבים  |  נובמבר 2026"})}),a==="success"?g.jsxs("div",{className:"flex flex-col items-center justify-center min-h-96 text-center border border-neutral-700 p-12",children:[g.jsx(Hp,{size:44,className:"text-brand-500 mb-6"}),g.jsx("p",{className:"font-sans text-neutral-300 text-sm max-w-sm",style:{lineHeight:1.85},children:"ההרשמה התקבלה בהצלחה. תודה שנרשמתם! צוות יום העיצוב הישראלי."})]}):g.jsxs("form",{onSubmit:y,className:"space-y-8",children:[g.jsxs("div",{className:"grid sm:grid-cols-2 gap-8",children:[g.jsxs("div",{className:"form-field-dark",children:[g.jsx("label",{children:"שם מלא *"}),g.jsx("input",{type:"text",name:"full_name",required:!0,value:o.full_name,onChange:v,placeholder:"שמכם המלא"})]}),g.jsxs("div",{className:"form-field-dark",children:[g.jsx("label",{children:"סטודיו / חברה *"}),g.jsx("input",{type:"text",name:"studio",required:!0,value:o.studio,onChange:v,placeholder:"שם הסטודיו"})]})]}),g.jsxs("div",{className:"form-field-dark",children:[g.jsx("label",{children:"תפקיד *"}),g.jsx("input",{type:"text",name:"role",required:!0,value:o.role,onChange:v,placeholder:'אדריכל / מעצב פנים / יזמי נדל"ן / ...'})]}),g.jsxs("div",{className:"grid sm:grid-cols-2 gap-8",children:[g.jsxs("div",{className:"form-field-dark",children:[g.jsx("label",{children:"אימייל *"}),g.jsx("input",{type:"email",name:"email",required:!0,value:o.email,onChange:v,placeholder:"[email protected]",dir:"ltr"})]}),g.jsxs("div",{className:"form-field-dark",children:[g.jsxs("label",{children:["טלפון ",g.jsx("span",{className:"text-neutral-400 normal-case",children:"(אופציונלי)"})]}),g.jsx("input",{type:"tel",name:"phone",value:o.phone,onChange:v,placeholder:"050-0000000",dir:"ltr"})]})]}),c&&g.jsx("p",{className:"font-sans text-sm text-red-400",children:c}),g.jsx("button",{type:"submit",disabled:a==="loading",className:"btn-primary w-full text-center disabled:opacity-50 disabled:cursor-not-allowed",children:a==="loading"?"שולח...":"שמרו לי מקום"}),g.jsx("p",{className:"font-sans text-xs text-neutral-400 text-center",style:{lineHeight:1.7},children:"ניצור קשר רק בנושאים הקשורים לפעילות יום העיצוב הישראלי. פרטיכם יישמרו באופן דיסקרטי ולא יועברו לגורם אחר."})]})]})]})})}),g.jsx("section",{className:"py-28 md:py-36 px-6 md:px-10 bg-neutral-50 border-t border-neutral-100",children:g.jsx("div",{className:"max-w-7xl mx-auto",children:g.jsxs("div",{className:"grid md:grid-cols-12 gap-12",children:[g.jsxs("div",{className:"md:col-span-4",children:[g.jsx("p",{className:"eyebrow mb-5",children:"שאלות נפוצות"}),g.jsx("div",{className:"rule mb-8"}),g.jsxs("h2",{className:"font-sans font-black uppercase text-neutral-900",style:{fontWeight:900,fontSize:"clamp(32px, 4vw, 52px)",lineHeight:.92,letterSpacing:"-0.02em"},children:["שאלות",g.jsx("br",{}),"& תשובות"]})]}),g.jsx("div",{className:"md:col-span-8",children:pg.map((_,p)=>g.jsxs("div",{className:"border-t border-neutral-200 last:border-b",children:[g.jsxs("button",{onClick:()=>s(i===p?null:p),className:"w-full flex items-center justify-between py-6 text-right gap-4 group",children:[g.jsx(hu,{size:15,className:`text-brand-500 flex-shrink-0 transition-transform duration-300 ${i===p?"rotate-180":""}`}),g.jsx("span",{className:"font-sans font-bold text-neutral-800 group-hover:text-brand-500 transition-colors duration-200 text-base text-right flex-1",style:{fontWeight:700},children:_.q})]}),i===p&&g.jsx("div",{className:"pb-6",children:g.jsx("p",{className:"font-sans text-sm text-neutral-500 text-right",style:{lineHeight:1.85},children:_.a})})]},p))})]})})}),g.jsx("section",{className:"py-20 md:py-28 px-6 md:px-10 bg-neutral-900 border-t border-neutral-800",children:g.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-8",children:[g.jsxs("div",{children:[g.jsx("h2",{className:"font-sans font-black uppercase text-white",style:{fontWeight:900,fontSize:"clamp(28px, 4vw, 52px)",lineHeight:.95,letterSpacing:"-0.02em"},children:"25–28 בנובמבר 2026"}),g.jsx("p",{className:"font-sans font-semibold text-neutral-500 text-sm uppercase mt-2",style:{fontWeight:600,letterSpacing:"0.15em"},children:"אירועי יום העיצוב הישראלי למעצבי פנים ואדריכלים"})]}),g.jsx("button",{onClick:()=>h("#register"),className:"btn-primary flex-shrink-0",children:"הצטרפו לקהילה המקצועית"})]})}),g.jsx("footer",{className:"px-6 md:px-10 py-8 bg-neutral-950 border-t border-neutral-800",children:g.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("img",{src:"/יום_העיצוב_הישראלי_.png",alt:"יום העיצוב הישראלי",className:"h-7 w-7 object-contain"}),g.jsx("span",{className:"font-sans font-bold text-xs text-neutral-300 uppercase",style:{fontWeight:700,letterSpacing:"0.1em"},children:"יום העיצוב הישראלי"})]}),g.jsx("p",{className:"font-sans text-xs text-neutral-600",children:"© 2026 יום העיצוב הישראלי. כל הזכויות שמורות."})]})})]})}Bd(document.getElementById("root")).render(g.jsx(G.StrictMode,{children:g.jsx(gg,{})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.