(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))c(m);new MutationObserver(m=>{for(const _ of m)if(_.type==="childList")for(const E of _.addedNodes)E.tagName==="LINK"&&E.rel==="modulepreload"&&c(E)}).observe(document,{childList:!0,subtree:!0});function o(m){const _={};return m.integrity&&(_.integrity=m.integrity),m.referrerPolicy&&(_.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?_.credentials="include":m.crossOrigin==="anonymous"?_.credentials="omit":_.credentials="same-origin",_}function c(m){if(m.ep)return;m.ep=!0;const _=o(m);fetch(m.href,_)}})();function uv(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var af={exports:{}},mi={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var D0;function Xm(){if(D0)return mi;D0=1;var d=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(c,m,_){var E=null;if(_!==void 0&&(E=""+_),m.key!==void 0&&(E=""+m.key),"key"in m){_={};for(var b in m)b!=="key"&&(_[b]=m[b])}else _=m;return m=_.ref,{$$typeof:d,type:c,key:E,ref:m!==void 0?m:null,props:_}}return mi.Fragment=r,mi.jsx=o,mi.jsxs=o,mi}var C0;function Ym(){return C0||(C0=1,af.exports=Xm()),af.exports}var I=Ym(),lf={exports:{}},ye={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var M0;function Qm(){if(M0)return ye;M0=1;var d=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),E=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),s=Symbol.iterator;function g(R){return R===null||typeof R!="object"?null:(R=s&&R[s]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,M={};function D(R,L,Q){this.props=R,this.context=L,this.refs=M,this.updater=Q||S}D.prototype.isReactComponent={},D.prototype.setState=function(R,L){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,L,"setState")},D.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function G(){}G.prototype=D.prototype;function V(R,L,Q){this.props=R,this.context=L,this.refs=M,this.updater=Q||S}var ge=V.prototype=new G;ge.constructor=V,O(ge,D.prototype),ge.isPureReactComponent=!0;var Se=Array.isArray;function He(){}var te={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function J(R,L,Q){var P=Q.ref;return{$$typeof:d,type:R,key:L,ref:P!==void 0?P:null,props:Q}}function ne(R,L){return J(R.type,L,R.props)}function ee(R){return typeof R=="object"&&R!==null&&R.$$typeof===d}function re(R){var L={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Q){return L[Q]})}var de=/\/+/g;function ze(R,L){return typeof R=="object"&&R!==null&&R.key!=null?re(""+R.key):L.toString(36)}function Je(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(He,He):(R.status="pending",R.then(function(L){R.status==="pending"&&(R.status="fulfilled",R.value=L)},function(L){R.status==="pending"&&(R.status="rejected",R.reason=L)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,L,Q,P,oe){var Ee=typeof R;(Ee==="undefined"||Ee==="boolean")&&(R=null);var se=!1;if(R===null)se=!0;else switch(Ee){case"bigint":case"string":case"number":se=!0;break;case"object":switch(R.$$typeof){case d:case r:se=!0;break;case f:return se=R._init,q(se(R._payload),L,Q,P,oe)}}if(se)return oe=oe(R),se=P===""?"."+ze(R,0):P,Se(oe)?(Q="",se!=null&&(Q=se.replace(de,"$&/")+"/"),q(oe,L,Q,"",function(hn){return hn})):oe!=null&&(ee(oe)&&(oe=ne(oe,Q+(oe.key==null||R&&R.key===oe.key?"":(""+oe.key).replace(de,"$&/")+"/")+se)),L.push(oe)),1;se=0;var Ue=P===""?".":P+":";if(Se(R))for(var Xe=0;Xe<R.length;Xe++)P=R[Xe],Ee=Ue+ze(P,Xe),se+=q(P,L,Q,Ee,oe);else if(Xe=g(R),typeof Xe=="function")for(R=Xe.call(R),Xe=0;!(P=R.next()).done;)P=P.value,Ee=Ue+ze(P,Xe++),se+=q(P,L,Q,Ee,oe);else if(Ee==="object"){if(typeof R.then=="function")return q(Je(R),L,Q,P,oe);throw L=String(R),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return se}function K(R,L,Q){if(R==null)return R;var P=[],oe=0;return q(R,P,"","",function(Ee){return L.call(Q,Ee,oe++)}),P}function ue(R){if(R._status===-1){var L=R._result;L=L(),L.then(function(Q){(R._status===0||R._status===-1)&&(R._status=1,R._result=Q)},function(Q){(R._status===0||R._status===-1)&&(R._status=2,R._result=Q)}),R._status===-1&&(R._status=0,R._result=L)}if(R._status===1)return R._result.default;throw R._result}var be=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},Ne={map:K,forEach:function(R,L,Q){K(R,function(){L.apply(this,arguments)},Q)},count:function(R){var L=0;return K(R,function(){L++}),L},toArray:function(R){return K(R,function(L){return L})||[]},only:function(R){if(!ee(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return ye.Activity=h,ye.Children=Ne,ye.Component=D,ye.Fragment=o,ye.Profiler=m,ye.PureComponent=V,ye.StrictMode=c,ye.Suspense=y,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,ye.__COMPILER_RUNTIME={__proto__:null,c:function(R){return te.H.useMemoCache(R)}},ye.cache=function(R){return function(){return R.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(R,L,Q){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var P=O({},R.props),oe=R.key;if(L!=null)for(Ee in L.key!==void 0&&(oe=""+L.key),L)!k.call(L,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&L.ref===void 0||(P[Ee]=L[Ee]);var Ee=arguments.length-2;if(Ee===1)P.children=Q;else if(1<Ee){for(var se=Array(Ee),Ue=0;Ue<Ee;Ue++)se[Ue]=arguments[Ue+2];P.children=se}return J(R.type,oe,P)},ye.createContext=function(R){return R={$$typeof:E,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:_,_context:R},R},ye.createElement=function(R,L,Q){var P,oe={},Ee=null;if(L!=null)for(P in L.key!==void 0&&(Ee=""+L.key),L)k.call(L,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(oe[P]=L[P]);var se=arguments.length-2;if(se===1)oe.children=Q;else if(1<se){for(var Ue=Array(se),Xe=0;Xe<se;Xe++)Ue[Xe]=arguments[Xe+2];oe.children=Ue}if(R&&R.defaultProps)for(P in se=R.defaultProps,se)oe[P]===void 0&&(oe[P]=se[P]);return J(R,Ee,oe)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(R){return{$$typeof:b,render:R}},ye.isValidElement=ee,ye.lazy=function(R){return{$$typeof:f,_payload:{_status:-1,_result:R},_init:ue}},ye.memo=function(R,L){return{$$typeof:u,type:R,compare:L===void 0?null:L}},ye.startTransition=function(R){var L=te.T,Q={};te.T=Q;try{var P=R(),oe=te.S;oe!==null&&oe(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(He,be)}catch(Ee){be(Ee)}finally{L!==null&&Q.types!==null&&(L.types=Q.types),te.T=L}},ye.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},ye.use=function(R){return te.H.use(R)},ye.useActionState=function(R,L,Q){return te.H.useActionState(R,L,Q)},ye.useCallback=function(R,L){return te.H.useCallback(R,L)},ye.useContext=function(R){return te.H.useContext(R)},ye.useDebugValue=function(){},ye.useDeferredValue=function(R,L){return te.H.useDeferredValue(R,L)},ye.useEffect=function(R,L){return te.H.useEffect(R,L)},ye.useEffectEvent=function(R){return te.H.useEffectEvent(R)},ye.useId=function(){return te.H.useId()},ye.useImperativeHandle=function(R,L,Q){return te.H.useImperativeHandle(R,L,Q)},ye.useInsertionEffect=function(R,L){return te.H.useInsertionEffect(R,L)},ye.useLayoutEffect=function(R,L){return te.H.useLayoutEffect(R,L)},ye.useMemo=function(R,L){return te.H.useMemo(R,L)},ye.useOptimistic=function(R,L){return te.H.useOptimistic(R,L)},ye.useReducer=function(R,L,Q){return te.H.useReducer(R,L,Q)},ye.useRef=function(R){return te.H.useRef(R)},ye.useState=function(R){return te.H.useState(R)},ye.useSyncExternalStore=function(R,L,Q){return te.H.useSyncExternalStore(R,L,Q)},ye.useTransition=function(){return te.H.useTransition()},ye.version="19.2.0",ye}var z0;function El(){return z0||(z0=1,lf.exports=Qm()),lf.exports}var he=El(),uf={exports:{}},gi={},rf={exports:{}},of={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var N0;function Vm(){return N0||(N0=1,(function(d){function r(q,K){var ue=q.length;q.push(K);e:for(;0<ue;){var be=ue-1>>>1,Ne=q[be];if(0<m(Ne,K))q[be]=K,q[ue]=Ne,ue=be;else break e}}function o(q){return q.length===0?null:q[0]}function c(q){if(q.length===0)return null;var K=q[0],ue=q.pop();if(ue!==K){q[0]=ue;e:for(var be=0,Ne=q.length,R=Ne>>>1;be<R;){var L=2*(be+1)-1,Q=q[L],P=L+1,oe=q[P];if(0>m(Q,ue))P<Ne&&0>m(oe,Q)?(q[be]=oe,q[P]=ue,be=P):(q[be]=Q,q[L]=ue,be=L);else if(P<Ne&&0>m(oe,ue))q[be]=oe,q[P]=ue,be=P;else break e}}return K}function m(q,K){var ue=q.sortIndex-K.sortIndex;return ue!==0?ue:q.id-K.id}if(d.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var _=performance;d.unstable_now=function(){return _.now()}}else{var E=Date,b=E.now();d.unstable_now=function(){return E.now()-b}}var y=[],u=[],f=1,h=null,s=3,g=!1,S=!1,O=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ge(q){for(var K=o(u);K!==null;){if(K.callback===null)c(u);else if(K.startTime<=q)c(u),K.sortIndex=K.expirationTime,r(y,K);else break;K=o(u)}}function Se(q){if(O=!1,ge(q),!S)if(o(y)!==null)S=!0,He||(He=!0,re());else{var K=o(u);K!==null&&Je(Se,K.startTime-q)}}var He=!1,te=-1,k=5,J=-1;function ne(){return M?!0:!(d.unstable_now()-J<k)}function ee(){if(M=!1,He){var q=d.unstable_now();J=q;var K=!0;try{e:{S=!1,O&&(O=!1,G(te),te=-1),g=!0;var ue=s;try{t:{for(ge(q),h=o(y);h!==null&&!(h.expirationTime>q&&ne());){var be=h.callback;if(typeof be=="function"){h.callback=null,s=h.priorityLevel;var Ne=be(h.expirationTime<=q);if(q=d.unstable_now(),typeof Ne=="function"){h.callback=Ne,ge(q),K=!0;break t}h===o(y)&&c(y),ge(q)}else c(y);h=o(y)}if(h!==null)K=!0;else{var R=o(u);R!==null&&Je(Se,R.startTime-q),K=!1}}break e}finally{h=null,s=ue,g=!1}K=void 0}}finally{K?re():He=!1}}}var re;if(typeof V=="function")re=function(){V(ee)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,ze=de.port2;de.port1.onmessage=ee,re=function(){ze.postMessage(null)}}else re=function(){D(ee,0)};function Je(q,K){te=D(function(){q(d.unstable_now())},K)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(q){q.callback=null},d.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<q?Math.floor(1e3/q):5},d.unstable_getCurrentPriorityLevel=function(){return s},d.unstable_next=function(q){switch(s){case 1:case 2:case 3:var K=3;break;default:K=s}var ue=s;s=K;try{return q()}finally{s=ue}},d.unstable_requestPaint=function(){M=!0},d.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ue=s;s=q;try{return K()}finally{s=ue}},d.unstable_scheduleCallback=function(q,K,ue){var be=d.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?be+ue:be):ue=be,q){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=ue+Ne,q={id:f++,callback:K,priorityLevel:q,startTime:ue,expirationTime:Ne,sortIndex:-1},ue>be?(q.sortIndex=ue,r(u,q),o(y)===null&&q===o(u)&&(O?(G(te),te=-1):O=!0,Je(Se,ue-be))):(q.sortIndex=Ne,r(y,q),S||g||(S=!0,He||(He=!0,re()))),q},d.unstable_shouldYield=ne,d.unstable_wrapCallback=function(q){var K=s;return function(){var ue=s;s=K;try{return q.apply(this,arguments)}finally{s=ue}}}})(of)),of}var B0;function Zm(){return B0||(B0=1,rf.exports=Vm()),rf.exports}var cf={exports:{}},mt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var q0;function Km(){if(q0)return mt;q0=1;var d=El();function r(y){var u="https://react.dev/errors/"+y;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+y+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},m=Symbol.for("react.portal");function _(y,u,f){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:h==null?null:""+h,children:y,containerInfo:u,implementation:f}}var E=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(y,u){if(y==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,mt.createPortal=function(y,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(r(299));return _(y,u,null,f)},mt.flushSync=function(y){var u=E.T,f=c.p;try{if(E.T=null,c.p=2,y)return y()}finally{E.T=u,c.p=f,c.d.f()}},mt.preconnect=function(y,u){typeof y=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,c.d.C(y,u))},mt.prefetchDNS=function(y){typeof y=="string"&&c.d.D(y)},mt.preinit=function(y,u){if(typeof y=="string"&&u&&typeof u.as=="string"){var f=u.as,h=b(f,u.crossOrigin),s=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;f==="style"?c.d.S(y,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:s,fetchPriority:g}):f==="script"&&c.d.X(y,{crossOrigin:h,integrity:s,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},mt.preinitModule=function(y,u){if(typeof y=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var f=b(u.as,u.crossOrigin);c.d.M(y,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&c.d.M(y)},mt.preload=function(y,u){if(typeof y=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var f=u.as,h=b(f,u.crossOrigin);c.d.L(y,f,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},mt.preloadModule=function(y,u){if(typeof y=="string")if(u){var f=b(u.as,u.crossOrigin);c.d.m(y,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else c.d.m(y)},mt.requestFormReset=function(y){c.d.r(y)},mt.unstable_batchedUpdates=function(y,u){return y(u)},mt.useFormState=function(y,u,f){return E.H.useFormState(y,u,f)},mt.useFormStatus=function(){return E.H.useHostTransitionStatus()},mt.version="19.2.0",mt}var U0;function Jm(){if(U0)return cf.exports;U0=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(r){console.error(r)}}return d(),cf.exports=Km(),cf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var L0;function Fm(){if(L0)return gi;L0=1;var d=Zm(),r=El(),o=Jm();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function E(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(_(e)!==e)throw Error(c(188))}function u(e){var t=e.alternate;if(!t){if(t=_(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,a=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return y(l),e;if(i===a)return y(l),t;i=i.sibling}throw Error(c(188))}if(n.return!==a.return)n=l,a=i;else{for(var v=!1,p=l.child;p;){if(p===n){v=!0,n=l,a=i;break}if(p===a){v=!0,a=l,n=i;break}p=p.sibling}if(!v){for(p=i.child;p;){if(p===n){v=!0,n=i,a=l;break}if(p===a){v=!0,a=i,n=l;break}p=p.sibling}if(!v)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,s=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),V=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case D:return"Profiler";case M:return"StrictMode";case Se:return"Suspense";case He:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case V:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case ge:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}var Je=Array.isArray,q=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},be=[],Ne=-1;function R(e){return{current:e}}function L(e){0>Ne||(e.current=be[Ne],be[Ne]=null,Ne--)}function Q(e,t){Ne++,be[Ne]=e.current,e.current=t}var P=R(null),oe=R(null),Ee=R(null),se=R(null);function Ue(e,t){switch(Q(Ee,t),Q(oe,e),Q(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Id(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(P),Q(P,e)}function Xe(){L(P),L(oe),L(Ee)}function hn(e){e.memoizedState!==null&&Q(se,e);var t=P.current,n=Id(t,e.type);t!==n&&(Q(oe,e),Q(P,n))}function Ca(e){oe.current===e&&(L(P),L(oe)),se.current===e&&(L(se),hi._currentValue=ue)}var Ol,Nn;function Lt(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||"",Nn=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ol+e+Nn}var jt=!1;function ua(e,t){if(!e||jt)return"";jt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var B=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){B=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){B=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&B&&typeof U.stack=="string")return[U.stack,B.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),v=i[0],p=i[1];if(v&&p){var A=v.split(`
`),N=p.split(`
`);for(l=a=0;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;for(;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;if(a===A.length||l===N.length)for(a=A.length-1,l=N.length-1;1<=a&&0<=l&&A[a]!==N[l];)l--;for(;1<=a&&0<=l;a--,l--)if(A[a]!==N[l]){if(a!==1||l!==1)do if(a--,l--,0>l||A[a]!==N[l]){var H=`
`+A[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=l);break}}}finally{jt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Lt(n):""}function Ci(e,t){switch(e.tag){case 26:case 27:case 5:return Lt(e.type);case 16:return Lt("Lazy");case 13:return e.child!==t&&t!==null?Lt("Suspense Fallback"):Lt("Suspense");case 19:return Lt("SuspenseList");case 0:case 15:return ua(e.type,!1);case 11:return ua(e.type.render,!1);case 1:return ua(e.type,!0);case 31:return Lt("Activity");default:return""}}function Tl(e){try{var t="",n=null;do t+=Ci(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ma=Object.prototype.hasOwnProperty,ra=d.unstable_scheduleCallback,oa=d.unstable_cancelCallback,kr=d.unstable_shouldYield,Xr=d.unstable_requestPaint,vt=d.unstable_now,Yr=d.unstable_getCurrentPriorityLevel,ca=d.unstable_ImmediatePriority,Mi=d.unstable_UserBlockingPriority,Wt=d.unstable_NormalPriority,Al=d.unstable_LowPriority,Bn=d.unstable_IdlePriority,Qr=d.log,Vr=d.unstable_setDisableYieldValue,fa=null,gt=null;function Ht(e){if(typeof Qr=="function"&&Vr(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(fa,e)}catch{}}var yt=Math.clz32?Math.clz32:T,zi=Math.log,Ni=Math.LN2;function T(e){return e>>>=0,e===0?32:31-(zi(e)/Ni|0)|0}var j=256,Z=262144,w=4194304;function X(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ve(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,i=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var p=a&134217727;return p!==0?(a=p&~i,a!==0?l=X(a):(v&=p,v!==0?l=X(v):n||(n=p&~e,n!==0&&(l=X(n))))):(p=a&~i,p!==0?l=X(p):v!==0?l=X(v):n||(n=a&~e,n!==0&&(l=X(n)))),l===0?0:t!==0&&t!==l&&(t&i)===0&&(i=l&-l,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:l}function F(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function le(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Be(){var e=w;return w<<=1,(w&62914560)===0&&(w=4194304),e}function me(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function De(e,t,n,a,l,i){var v=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var p=e.entanglements,A=e.expirationTimes,N=e.hiddenUpdates;for(n=v&~n;0<n;){var H=31-yt(n),Y=1<<H;p[H]=0,A[H]=-1;var B=N[H];if(B!==null)for(N[H]=null,H=0;H<B.length;H++){var U=B[H];U!==null&&(U.lane&=-536870913)}n&=~Y}a!==0&&ln(e,a,0),i!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=i&~(v&~t))}function ln(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function dn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-yt(n),l=1<<a;l&t|e[a]&t&&(e[a]|=t),n&=~l}}function Rl(e,t){var n=t&-t;return n=(n&42)!==0?1:qn(n),(n&(e.suspendedLanes|t))!==0?0:n}function qn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function za(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bi(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:S0(e.type))}function qi(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Gt=Math.random().toString(36).slice(2),ut="__reactFiber$"+Gt,bt="__reactProps$"+Gt,Na="__reactContainer$"+Gt,Zr="__reactEvents$"+Gt,zv="__reactListeners$"+Gt,Nv="__reactHandles$"+Gt,Hf="__reactResources$"+Gt,xl="__reactMarker$"+Gt;function Kr(e){delete e[ut],delete e[bt],delete e[Zr],delete e[zv],delete e[Nv]}function Ba(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Na]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=u0(e);e!==null;){if(n=e[ut])return n;e=u0(e)}return t}e=n,n=e.parentNode}return null}function qa(e){if(e=e[ut]||e[Na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Ua(e){var t=e[Hf];return t||(t=e[Hf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[xl]=!0}var Gf=new Set,$f={};function sa(e,t){La(e,t),La(e+"Capture",t)}function La(e,t){for($f[e]=t,e=0;e<t.length;e++)Gf.add(t[e])}var Bv=RegExp("^[: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]*$"),kf={},Xf={};function qv(e){return Ma.call(Xf,e)?!0:Ma.call(kf,e)?!1:Bv.test(e)?Xf[e]=!0:(kf[e]=!0,!1)}function Ui(e,t,n){if(qv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Li(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function vn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uv(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(v){n=""+v,i.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(v){n=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){if(!e._valueTracker){var t=Yf(e)?"checked":"value";e._valueTracker=Uv(e,t,""+e[t])}}function Qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Yf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ji(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Lv=/[\n"\\]/g;function kt(e){return e.replace(Lv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fr(e,t,n,a,l,i,v,p){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+$t(t)):e.value!==""+$t(t)&&(e.value=""+$t(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Pr(e,v,$t(t)):n!=null?Pr(e,v,$t(n)):a!=null&&e.removeAttribute("value"),l==null&&i!=null&&(e.defaultChecked=!!i),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+$t(p):e.removeAttribute("name")}function Vf(e,t,n,a,l,i,v,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Jr(e);return}n=n!=null?""+$t(n):"",t=t!=null?""+$t(t):n,p||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=p?e.checked:!!a,e.defaultChecked=!!a,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Jr(e)}function Pr(e,t,n){t==="number"&&ji(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ja(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&a&&(e[n].defaultSelected=!0)}else{for(n=""+$t(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,a&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Zf(e,t,n){if(t!=null&&(t=""+$t(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+$t(n):""}function Kf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(c(92));if(Je(a)){if(1<a.length)throw Error(c(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=$t(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Jr(e)}function Ha(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||jv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ff(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var l in t)a=t[l],t.hasOwnProperty(l)&&n[l]!==a&&Jf(e,l,a)}else for(var i in t)t.hasOwnProperty(i)&&Jf(e,i,t[i])}function Wr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Gv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hi(e){return Gv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var Ir=null;function eo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ga=null,$a=null;function Pf(e){var t=qa(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var l=a[bt]||null;if(!l)throw Error(c(90));Fr(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Qf(a)}break e;case"textarea":Zf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ja(e,!!n.multiple,t,!1)}}}var to=!1;function Wf(e,t,n){if(to)return e(t,n);to=!0;try{var a=e(t);return a}finally{if(to=!1,(Ga!==null||$a!==null)&&(Ru(),Ga&&(t=Ga,e=$a,$a=Ga=null,Pf(t),e)))for(t=0;t<e.length;t++)Pf(e[t])}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[bt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),no=!1;if(mn)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){no=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{no=!1}var Un=null,ao=null,Gi=null;function If(){if(Gi)return Gi;var e,t=ao,n=t.length,a,l="value"in Un?Un.value:Un.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var v=n-e;for(a=1;a<=v&&t[n-a]===l[i-a];a++);return Gi=l.slice(e,1<a?1-a:void 0)}function $i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ki(){return!0}function es(){return!1}function Et(e){function t(n,a,l,i,v){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=i,this.target=v,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ki:es,this.isPropagationStopped=es,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),t}var ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xi=Et(ha),Ml=h({},ha,{view:0,detail:0}),$v=Et(Ml),lo,io,zl,Yi=h({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ro,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zl&&(zl&&e.type==="mousemove"?(lo=e.screenX-zl.screenX,io=e.screenY-zl.screenY):io=lo=0,zl=e),lo)},movementY:function(e){return"movementY"in e?e.movementY:io}}),ts=Et(Yi),kv=h({},Yi,{dataTransfer:0}),Xv=Et(kv),Yv=h({},Ml,{relatedTarget:0}),uo=Et(Yv),Qv=h({},ha,{animationName:0,elapsedTime:0,pseudoElement:0}),Vv=Et(Qv),Zv=h({},ha,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kv=Et(Zv),Jv=h({},ha,{data:0}),ns=Et(Jv),Fv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pv={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"},Wv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wv[e])?!!t[e]:!1}function ro(){return Iv}var ey=h({},Ml,{key:function(e){if(e.key){var t=Fv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ro,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ty=Et(ey),ny=h({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),as=Et(ny),ay=h({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ro}),ly=Et(ay),iy=h({},ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),uy=Et(iy),ry=h({},Yi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),oy=Et(ry),cy=h({},ha,{newState:0,oldState:0}),fy=Et(cy),sy=[9,13,27,32],oo=mn&&"CompositionEvent"in window,Nl=null;mn&&"documentMode"in document&&(Nl=document.documentMode);var hy=mn&&"TextEvent"in window&&!Nl,ls=mn&&(!oo||Nl&&8<Nl&&11>=Nl),is=" ",us=!1;function rs(e,t){switch(e){case"keyup":return sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function os(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ka=!1;function dy(e,t){switch(e){case"compositionend":return os(t);case"keypress":return t.which!==32?null:(us=!0,is);case"textInput":return e=t.data,e===is&&us?null:e;default:return null}}function vy(e,t){if(ka)return e==="compositionend"||!oo&&rs(e,t)?(e=If(),Gi=ao=Un=null,ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ls&&t.locale!=="ko"?null:t.data;default:return null}}var yy={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 cs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yy[e.type]:t==="textarea"}function fs(e,t,n,a){Ga?$a?$a.push(a):$a=[a]:Ga=a,t=Nu(t,"onChange"),0<t.length&&(n=new Xi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Bl=null,ql=null;function my(e){Vd(e,0)}function Qi(e){var t=wl(e);if(Qf(t))return e}function ss(e,t){if(e==="change")return t}var hs=!1;if(mn){var co;if(mn){var fo="oninput"in document;if(!fo){var ds=document.createElement("div");ds.setAttribute("oninput","return;"),fo=typeof ds.oninput=="function"}co=fo}else co=!1;hs=co&&(!document.documentMode||9<document.documentMode)}function vs(){Bl&&(Bl.detachEvent("onpropertychange",ys),ql=Bl=null)}function ys(e){if(e.propertyName==="value"&&Qi(ql)){var t=[];fs(t,ql,e,eo(e)),Wf(my,t)}}function gy(e,t,n){e==="focusin"?(vs(),Bl=t,ql=n,Bl.attachEvent("onpropertychange",ys)):e==="focusout"&&vs()}function py(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qi(ql)}function _y(e,t){if(e==="click")return Qi(t)}function by(e,t){if(e==="input"||e==="change")return Qi(t)}function Ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:Ey;function Ul(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Ma.call(t,l)||!xt(e[l],t[l]))return!1}return!0}function ms(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gs(e,t){var n=ms(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ms(n)}}function ps(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ps(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _s(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ji(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ji(e.document)}return t}function so(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Sy=mn&&"documentMode"in document&&11>=document.documentMode,Xa=null,ho=null,Ll=null,vo=!1;function bs(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vo||Xa==null||Xa!==ji(a)||(a=Xa,"selectionStart"in a&&so(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ll&&Ul(Ll,a)||(Ll=a,a=Nu(ho,"onSelect"),0<a.length&&(t=new Xi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Xa)))}function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ya={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},yo={},Es={};mn&&(Es=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function va(e){if(yo[e])return yo[e];if(!Ya[e])return e;var t=Ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Es)return yo[e]=t[n];return e}var Ss=va("animationend"),Os=va("animationiteration"),Ts=va("animationstart"),Oy=va("transitionrun"),Ty=va("transitionstart"),Ay=va("transitioncancel"),As=va("transitionend"),Rs=new Map,mo="abort auxClick beforeToggle 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(" ");mo.push("scrollEnd");function It(e,t){Rs.set(e,t),sa(t,[e])}var Vi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xt=[],Qa=0,go=0;function Zi(){for(var e=Qa,t=go=Qa=0;t<e;){var n=Xt[t];Xt[t++]=null;var a=Xt[t];Xt[t++]=null;var l=Xt[t];Xt[t++]=null;var i=Xt[t];if(Xt[t++]=null,a!==null&&l!==null){var v=a.pending;v===null?l.next=l:(l.next=v.next,v.next=l),a.pending=l}i!==0&&xs(n,l,i)}}function Ki(e,t,n,a){Xt[Qa++]=e,Xt[Qa++]=t,Xt[Qa++]=n,Xt[Qa++]=a,go|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function po(e,t,n,a){return Ki(e,t,n,a),Ji(e)}function ya(e,t){return Ki(e,null,null,t),Ji(e)}function xs(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var l=!1,i=e.return;i!==null;)i.childLanes|=n,a=i.alternate,a!==null&&(a.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(l=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,l&&t!==null&&(l=31-yt(n),e=i.hiddenUpdates,a=e[l],a===null?e[l]=[t]:a.push(t),t.lane=n|536870912),i):null}function Ji(e){if(50<ii)throw ii=0,xc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Va={};function Ry(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,n,a){return new Ry(e,t,n,a)}function _o(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,t){var n=e.alternate;return n===null?(n=wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ws(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Fi(e,t,n,a,l,i){var v=0;if(a=e,typeof e=="function")_o(e)&&(v=1);else if(typeof e=="string")v=Mm(e,n,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=wt(31,n,t,l),e.elementType=J,e.lanes=i,e;case O:return ma(n.children,l,i,t);case M:v=8,l|=24;break;case D:return e=wt(12,n,t,l|2),e.elementType=D,e.lanes=i,e;case Se:return e=wt(13,n,t,l),e.elementType=Se,e.lanes=i,e;case He:return e=wt(19,n,t,l),e.elementType=He,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:v=10;break e;case G:v=9;break e;case ge:v=11;break e;case te:v=14;break e;case k:v=16,a=null;break e}v=29,n=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=wt(v,n,t,l),t.elementType=e,t.type=a,t.lanes=i,t}function ma(e,t,n,a){return e=wt(7,e,a,t),e.lanes=n,e}function bo(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Ds(e){var t=wt(18,null,null,0);return t.stateNode=e,t}function Eo(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Cs=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var n=Cs.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Tl(t)},Cs.set(e,t),t)}return{value:e,source:t,stack:Tl(t)}}var Za=[],Ka=0,Pi=null,jl=0,Qt=[],Vt=0,Ln=null,un=1,rn="";function pn(e,t){Za[Ka++]=jl,Za[Ka++]=Pi,Pi=e,jl=t}function Ms(e,t,n){Qt[Vt++]=un,Qt[Vt++]=rn,Qt[Vt++]=Ln,Ln=e;var a=un;e=rn;var l=32-yt(a)-1;a&=~(1<<l),n+=1;var i=32-yt(t)+l;if(30<i){var v=l-l%5;i=(a&(1<<v)-1).toString(32),a>>=v,l-=v,un=1<<32-yt(t)+l|n<<l|a,rn=i+e}else un=1<<i|n<<l|a,rn=e}function So(e){e.return!==null&&(pn(e,1),Ms(e,1,0))}function Oo(e){for(;e===Pi;)Pi=Za[--Ka],Za[Ka]=null,jl=Za[--Ka],Za[Ka]=null;for(;e===Ln;)Ln=Qt[--Vt],Qt[Vt]=null,rn=Qt[--Vt],Qt[Vt]=null,un=Qt[--Vt],Qt[Vt]=null}function zs(e,t){Qt[Vt++]=un,Qt[Vt++]=rn,Qt[Vt++]=Ln,un=t.id,rn=t.overflow,Ln=e}var ft=null,Qe=null,xe=!1,jn=null,Zt=!1,To=Error(c(519));function Hn(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(Yt(t,e)),To}function Ns(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ut]=e,t[bt]=a,n){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(n=0;n<ri.length;n++)Te(ri[n],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Vf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Kf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Fd(t.textContent,n)?(a.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),a.onScroll!=null&&Te("scroll",t),a.onScrollEnd!=null&&Te("scrollend",t),a.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||Hn(e,!0)}function Bs(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:ft=ft.return}}function Ja(e){if(e!==ft)return!1;if(!xe)return Bs(e),xe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||kc(e.type,e.memoizedProps)),n=!n),n&&Qe&&Hn(e),Bs(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Qe=i0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Qe=i0(e)}else t===27?(t=Qe,In(e.type)?(e=Zc,Zc=null,Qe=e):Qe=t):Qe=ft?Jt(e.stateNode.nextSibling):null;return!0}function ga(){Qe=ft=null,xe=!1}function Ao(){var e=jn;return e!==null&&(At===null?At=e:At.push.apply(At,e),jn=null),e}function Hl(e){jn===null?jn=[e]:jn.push(e)}var Ro=R(null),pa=null,_n=null;function Gn(e,t,n){Q(Ro,t._currentValue),t._currentValue=n}function bn(e){e._currentValue=Ro.current,L(Ro)}function xo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function wo(e,t,n,a){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var i=l.dependencies;if(i!==null){var v=l.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=l;for(var A=0;A<t.length;A++)if(p.context===t[A]){i.lanes|=n,p=i.alternate,p!==null&&(p.lanes|=n),xo(i.return,n,e),a||(v=null);break e}i=p.next}}else if(l.tag===18){if(v=l.return,v===null)throw Error(c(341));v.lanes|=n,i=v.alternate,i!==null&&(i.lanes|=n),xo(v,n,e),v=null}else v=l.child;if(v!==null)v.return=l;else for(v=l;v!==null;){if(v===e){v=null;break}if(l=v.sibling,l!==null){l.return=v.return,v=l;break}v=v.return}l=v}}function Fa(e,t,n,a){e=null;for(var l=t,i=!1;l!==null;){if(!i){if((l.flags&524288)!==0)i=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var v=l.alternate;if(v===null)throw Error(c(387));if(v=v.memoizedProps,v!==null){var p=l.type;xt(l.pendingProps.value,v.value)||(e!==null?e.push(p):e=[p])}}else if(l===se.current){if(v=l.alternate,v===null)throw Error(c(387));v.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(hi):e=[hi])}l=l.return}e!==null&&wo(t,e,n,a),t.flags|=262144}function Wi(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){pa=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return qs(pa,e)}function Ii(e,t){return pa===null&&_a(e),qs(e,t)}function qs(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_n===null){if(e===null)throw Error(c(308));_n=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _n=_n.next=t;return n}var xy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},wy=d.unstable_scheduleCallback,Dy=d.unstable_NormalPriority,tt={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Do(){return{controller:new xy,data:new Map,refCount:0}}function Gl(e){e.refCount--,e.refCount===0&&wy(Dy,function(){e.controller.abort()})}var $l=null,Co=0,Pa=0,Wa=null;function Cy(e,t){if($l===null){var n=$l=[];Co=0,Pa=Nc(),Wa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Co++,t.then(Us,Us),t}function Us(){if(--Co===0&&$l!==null){Wa!==null&&(Wa.status="fulfilled");var e=$l;$l=null,Pa=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function My(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Ls=q.S;q.S=function(e,t){bd=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Cy(e,t),Ls!==null&&Ls(e,t)};var ba=R(null);function Mo(){var e=ba.current;return e!==null?e:Ye.pooledCache}function eu(e,t){t===null?Q(ba,ba.current):Q(ba,t.pool)}function js(){var e=Mo();return e===null?null:{parent:tt._currentValue,pool:e}}var Ia=Error(c(460)),zo=Error(c(474)),tu=Error(c(542)),nu={then:function(){}};function Hs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gs(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ks(e),e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=a}},function(a){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ks(e),e}throw Sa=t,Ia}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sa=n,Ia):n}}var Sa=null;function $s(){if(Sa===null)throw Error(c(459));var e=Sa;return Sa=null,e}function ks(e){if(e===Ia||e===tu)throw Error(c(483))}var el=null,kl=0;function au(e){var t=kl;return kl+=1,el===null&&(el=[]),Gs(el,e,t)}function Xl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lu(e,t){throw t.$$typeof===s?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xs(e){function t(C,x){if(e){var z=C.deletions;z===null?(C.deletions=[x],C.flags|=16):z.push(x)}}function n(C,x){if(!e)return null;for(;x!==null;)t(C,x),x=x.sibling;return null}function a(C){for(var x=new Map;C!==null;)C.key!==null?x.set(C.key,C):x.set(C.index,C),C=C.sibling;return x}function l(C,x){return C=gn(C,x),C.index=0,C.sibling=null,C}function i(C,x,z){return C.index=z,e?(z=C.alternate,z!==null?(z=z.index,z<x?(C.flags|=67108866,x):z):(C.flags|=67108866,x)):(C.flags|=1048576,x)}function v(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,x,z,$){return x===null||x.tag!==6?(x=bo(z,C.mode,$),x.return=C,x):(x=l(x,z),x.return=C,x)}function A(C,x,z,$){var ce=z.type;return ce===O?H(C,x,z.props.children,$,z.key):x!==null&&(x.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===k&&Ea(ce)===x.type)?(x=l(x,z.props),Xl(x,z),x.return=C,x):(x=Fi(z.type,z.key,z.props,null,C.mode,$),Xl(x,z),x.return=C,x)}function N(C,x,z,$){return x===null||x.tag!==4||x.stateNode.containerInfo!==z.containerInfo||x.stateNode.implementation!==z.implementation?(x=Eo(z,C.mode,$),x.return=C,x):(x=l(x,z.children||[]),x.return=C,x)}function H(C,x,z,$,ce){return x===null||x.tag!==7?(x=ma(z,C.mode,$,ce),x.return=C,x):(x=l(x,z),x.return=C,x)}function Y(C,x,z){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=bo(""+x,C.mode,z),x.return=C,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case g:return z=Fi(x.type,x.key,x.props,null,C.mode,z),Xl(z,x),z.return=C,z;case S:return x=Eo(x,C.mode,z),x.return=C,x;case k:return x=Ea(x),Y(C,x,z)}if(Je(x)||re(x))return x=ma(x,C.mode,z,null),x.return=C,x;if(typeof x.then=="function")return Y(C,au(x),z);if(x.$$typeof===V)return Y(C,Ii(C,x),z);lu(C,x)}return null}function B(C,x,z,$){var ce=x!==null?x.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ce!==null?null:p(C,x,""+z,$);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case g:return z.key===ce?A(C,x,z,$):null;case S:return z.key===ce?N(C,x,z,$):null;case k:return z=Ea(z),B(C,x,z,$)}if(Je(z)||re(z))return ce!==null?null:H(C,x,z,$,null);if(typeof z.then=="function")return B(C,x,au(z),$);if(z.$$typeof===V)return B(C,x,Ii(C,z),$);lu(C,z)}return null}function U(C,x,z,$,ce){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return C=C.get(z)||null,p(x,C,""+$,ce);if(typeof $=="object"&&$!==null){switch($.$$typeof){case g:return C=C.get($.key===null?z:$.key)||null,A(x,C,$,ce);case S:return C=C.get($.key===null?z:$.key)||null,N(x,C,$,ce);case k:return $=Ea($),U(C,x,z,$,ce)}if(Je($)||re($))return C=C.get(z)||null,H(x,C,$,ce,null);if(typeof $.then=="function")return U(C,x,z,au($),ce);if($.$$typeof===V)return U(C,x,z,Ii(x,$),ce);lu(x,$)}return null}function ae(C,x,z,$){for(var ce=null,Ce=null,ie=x,_e=x=0,Re=null;ie!==null&&_e<z.length;_e++){ie.index>_e?(Re=ie,ie=null):Re=ie.sibling;var Me=B(C,ie,z[_e],$);if(Me===null){ie===null&&(ie=Re);break}e&&ie&&Me.alternate===null&&t(C,ie),x=i(Me,x,_e),Ce===null?ce=Me:Ce.sibling=Me,Ce=Me,ie=Re}if(_e===z.length)return n(C,ie),xe&&pn(C,_e),ce;if(ie===null){for(;_e<z.length;_e++)ie=Y(C,z[_e],$),ie!==null&&(x=i(ie,x,_e),Ce===null?ce=ie:Ce.sibling=ie,Ce=ie);return xe&&pn(C,_e),ce}for(ie=a(ie);_e<z.length;_e++)Re=U(ie,C,_e,z[_e],$),Re!==null&&(e&&Re.alternate!==null&&ie.delete(Re.key===null?_e:Re.key),x=i(Re,x,_e),Ce===null?ce=Re:Ce.sibling=Re,Ce=Re);return e&&ie.forEach(function(la){return t(C,la)}),xe&&pn(C,_e),ce}function fe(C,x,z,$){if(z==null)throw Error(c(151));for(var ce=null,Ce=null,ie=x,_e=x=0,Re=null,Me=z.next();ie!==null&&!Me.done;_e++,Me=z.next()){ie.index>_e?(Re=ie,ie=null):Re=ie.sibling;var la=B(C,ie,Me.value,$);if(la===null){ie===null&&(ie=Re);break}e&&ie&&la.alternate===null&&t(C,ie),x=i(la,x,_e),Ce===null?ce=la:Ce.sibling=la,Ce=la,ie=Re}if(Me.done)return n(C,ie),xe&&pn(C,_e),ce;if(ie===null){for(;!Me.done;_e++,Me=z.next())Me=Y(C,Me.value,$),Me!==null&&(x=i(Me,x,_e),Ce===null?ce=Me:Ce.sibling=Me,Ce=Me);return xe&&pn(C,_e),ce}for(ie=a(ie);!Me.done;_e++,Me=z.next())Me=U(ie,C,_e,Me.value,$),Me!==null&&(e&&Me.alternate!==null&&ie.delete(Me.key===null?_e:Me.key),x=i(Me,x,_e),Ce===null?ce=Me:Ce.sibling=Me,Ce=Me);return e&&ie.forEach(function(km){return t(C,km)}),xe&&pn(C,_e),ce}function ke(C,x,z,$){if(typeof z=="object"&&z!==null&&z.type===O&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case g:e:{for(var ce=z.key;x!==null;){if(x.key===ce){if(ce=z.type,ce===O){if(x.tag===7){n(C,x.sibling),$=l(x,z.props.children),$.return=C,C=$;break e}}else if(x.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===k&&Ea(ce)===x.type){n(C,x.sibling),$=l(x,z.props),Xl($,z),$.return=C,C=$;break e}n(C,x);break}else t(C,x);x=x.sibling}z.type===O?($=ma(z.props.children,C.mode,$,z.key),$.return=C,C=$):($=Fi(z.type,z.key,z.props,null,C.mode,$),Xl($,z),$.return=C,C=$)}return v(C);case S:e:{for(ce=z.key;x!==null;){if(x.key===ce)if(x.tag===4&&x.stateNode.containerInfo===z.containerInfo&&x.stateNode.implementation===z.implementation){n(C,x.sibling),$=l(x,z.children||[]),$.return=C,C=$;break e}else{n(C,x);break}else t(C,x);x=x.sibling}$=Eo(z,C.mode,$),$.return=C,C=$}return v(C);case k:return z=Ea(z),ke(C,x,z,$)}if(Je(z))return ae(C,x,z,$);if(re(z)){if(ce=re(z),typeof ce!="function")throw Error(c(150));return z=ce.call(z),fe(C,x,z,$)}if(typeof z.then=="function")return ke(C,x,au(z),$);if(z.$$typeof===V)return ke(C,x,Ii(C,z),$);lu(C,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,x!==null&&x.tag===6?(n(C,x.sibling),$=l(x,z),$.return=C,C=$):(n(C,x),$=bo(z,C.mode,$),$.return=C,C=$),v(C)):n(C,x)}return function(C,x,z,$){try{kl=0;var ce=ke(C,x,z,$);return el=null,ce}catch(ie){if(ie===Ia||ie===tu)throw ie;var Ce=wt(29,ie,null,C.mode);return Ce.lanes=$,Ce.return=C,Ce}finally{}}}var Oa=Xs(!0),Ys=Xs(!1),$n=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(qe&2)!==0){var l=a.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=Ji(e),xs(e,null,n),t}return Ki(e,a,t,n),Ji(e)}function Yl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,dn(e,n)}}function qo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var v={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?l=i=v:i=i.next=v,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Uo=!1;function Ql(){if(Uo){var e=Wa;if(e!==null)throw e}}function Vl(e,t,n,a){Uo=!1;var l=e.updateQueue;$n=!1;var i=l.firstBaseUpdate,v=l.lastBaseUpdate,p=l.shared.pending;if(p!==null){l.shared.pending=null;var A=p,N=A.next;A.next=null,v===null?i=N:v.next=N,v=A;var H=e.alternate;H!==null&&(H=H.updateQueue,p=H.lastBaseUpdate,p!==v&&(p===null?H.firstBaseUpdate=N:p.next=N,H.lastBaseUpdate=A))}if(i!==null){var Y=l.baseState;v=0,H=N=A=null,p=i;do{var B=p.lane&-536870913,U=B!==p.lane;if(U?(Ae&B)===B:(a&B)===B){B!==0&&B===Pa&&(Uo=!0),H!==null&&(H=H.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var ae=e,fe=p;B=t;var ke=n;switch(fe.tag){case 1:if(ae=fe.payload,typeof ae=="function"){Y=ae.call(ke,Y,B);break e}Y=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=fe.payload,B=typeof ae=="function"?ae.call(ke,Y,B):ae,B==null)break e;Y=h({},Y,B);break e;case 2:$n=!0}}B=p.callback,B!==null&&(e.flags|=64,U&&(e.flags|=8192),U=l.callbacks,U===null?l.callbacks=[B]:U.push(B))}else U={lane:B,tag:p.tag,payload:p.payload,callback:p.callback,next:null},H===null?(N=H=U,A=Y):H=H.next=U,v|=B;if(p=p.next,p===null){if(p=l.shared.pending,p===null)break;U=p,p=U.next,U.next=null,l.lastBaseUpdate=U,l.shared.pending=null}}while(!0);H===null&&(A=Y),l.baseState=A,l.firstBaseUpdate=N,l.lastBaseUpdate=H,i===null&&(l.shared.lanes=0),Kn|=v,e.lanes=v,e.memoizedState=Y}}function Qs(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Vs(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Qs(n[e],t)}var tl=R(null),iu=R(0);function Zs(e,t){e=Dn,Q(iu,e),Q(tl,t),Dn=e|t.baseLanes}function Lo(){Q(iu,Dn),Q(tl,tl.current)}function jo(){Dn=iu.current,L(tl),L(iu)}var Dt=R(null),Kt=null;function Yn(e){var t=e.alternate;Q(Ie,Ie.current&1),Q(Dt,e),Kt===null&&(t===null||tl.current!==null||t.memoizedState!==null)&&(Kt=e)}function Ho(e){Q(Ie,Ie.current),Q(Dt,e),Kt===null&&(Kt=e)}function Ks(e){e.tag===22?(Q(Ie,Ie.current),Q(Dt,e),Kt===null&&(Kt=e)):Qn()}function Qn(){Q(Ie,Ie.current),Q(Dt,Dt.current)}function Ct(e){L(Dt),Kt===e&&(Kt=null),L(Ie)}var Ie=R(0);function uu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Qc(n)||Vc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var En=0,pe=null,Ge=null,nt=null,ru=!1,nl=!1,Ta=!1,ou=0,Zl=0,al=null,zy=0;function Fe(){throw Error(c(321))}function Go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xt(e[n],t[n]))return!1;return!0}function $o(e,t,n,a,l,i){return En=i,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Mh:nc,Ta=!1,i=n(a,l),Ta=!1,nl&&(i=Fs(t,n,a,l)),Js(e),i}function Js(e){q.H=Fl;var t=Ge!==null&&Ge.next!==null;if(En=0,nt=Ge=pe=null,ru=!1,Zl=0,al=null,t)throw Error(c(300));e===null||at||(e=e.dependencies,e!==null&&Wi(e)&&(at=!0))}function Fs(e,t,n,a){pe=e;var l=0;do{if(nl&&(al=null),Zl=0,nl=!1,25<=l)throw Error(c(301));if(l+=1,nt=Ge=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}q.H=zh,i=t(n,a)}while(nl);return i}function Ny(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?Kl(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(pe.flags|=1024),t}function ko(){var e=ou!==0;return ou=0,e}function Xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Yo(e){if(ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ru=!1}En=0,nt=Ge=pe=null,nl=!1,Zl=ou=0,al=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?pe.memoizedState=nt=e:nt=nt.next=e,nt}function et(){if(Ge===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=nt===null?pe.memoizedState:nt.next;if(t!==null)nt=t,Ge=e;else{if(e===null)throw pe.alternate===null?Error(c(467)):Error(c(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},nt===null?pe.memoizedState=nt=e:nt=nt.next=e}return nt}function cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(e){var t=Zl;return Zl+=1,al===null&&(al=[]),e=Gs(al,e,t),t=pe,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Mh:nc),e}function fu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kl(e);if(e.$$typeof===V)return st(e)}throw Error(c(438,String(e)))}function Qo(e){var t=null,n=pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=pe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=cu(),pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ne;return t.index++,n}function Sn(e,t){return typeof t=="function"?t(e):t}function su(e){var t=et();return Vo(t,Ge,e)}function Vo(e,t,n){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=n;var l=e.baseQueue,i=a.pending;if(i!==null){if(l!==null){var v=l.next;l.next=i.next,i.next=v}t.baseQueue=l=i,a.pending=null}if(i=e.baseState,l===null)e.memoizedState=i;else{t=l.next;var p=v=null,A=null,N=t,H=!1;do{var Y=N.lane&-536870913;if(Y!==N.lane?(Ae&Y)===Y:(En&Y)===Y){var B=N.revertLane;if(B===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),Y===Pa&&(H=!0);else if((En&B)===B){N=N.next,B===Pa&&(H=!0);continue}else Y={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},A===null?(p=A=Y,v=i):A=A.next=Y,pe.lanes|=B,Kn|=B;Y=N.action,Ta&&n(i,Y),i=N.hasEagerState?N.eagerState:n(i,Y)}else B={lane:Y,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},A===null?(p=A=B,v=i):A=A.next=B,pe.lanes|=Y,Kn|=Y;N=N.next}while(N!==null&&N!==t);if(A===null?v=i:A.next=p,!xt(i,e.memoizedState)&&(at=!0,H&&(n=Wa,n!==null)))throw n;e.memoizedState=i,e.baseState=v,e.baseQueue=A,a.lastRenderedState=i}return l===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Zo(e){var t=et(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var a=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var v=l=l.next;do i=e(i,v.action),v=v.next;while(v!==l);xt(i,t.memoizedState)||(at=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function Ps(e,t,n){var a=pe,l=et(),i=xe;if(i){if(n===void 0)throw Error(c(407));n=n()}else n=t();var v=!xt((Ge||l).memoizedState,n);if(v&&(l.memoizedState=n,at=!0),l=l.queue,Fo(eh.bind(null,a,l,e),[e]),l.getSnapshot!==t||v||nt!==null&&nt.memoizedState.tag&1){if(a.flags|=2048,ll(9,{destroy:void 0},Is.bind(null,a,l,n,t),null),Ye===null)throw Error(c(349));i||(En&127)!==0||Ws(a,t,n)}return n}function Ws(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t=cu(),pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Is(e,t,n,a){t.value=n,t.getSnapshot=a,th(t)&&nh(e)}function eh(e,t,n){return n(function(){th(t)&&nh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xt(e,n)}catch{return!0}}function nh(e){var t=ya(e,2);t!==null&&Rt(t,e,2)}function Ko(e){var t=pt();if(typeof e=="function"){var n=e;if(e=n(),Ta){Ht(!0);try{n()}finally{Ht(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:e},t}function ah(e,t,n,a){return e.baseState=n,Vo(e,Ge,typeof a=="function"?a:Sn)}function By(e,t,n,a,l){if(vu(e))throw Error(c(485));if(e=t.action,e!==null){var i={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){i.listeners.push(v)}};q.T!==null?n(!0):i.isTransition=!1,a(i),n=t.pending,n===null?(i.next=t.pending=i,lh(t,i)):(i.next=n.next,t.pending=n.next=i)}}function lh(e,t){var n=t.action,a=t.payload,l=e.state;if(t.isTransition){var i=q.T,v={};q.T=v;try{var p=n(l,a),A=q.S;A!==null&&A(v,p),ih(e,t,p)}catch(N){Jo(e,t,N)}finally{i!==null&&v.types!==null&&(i.types=v.types),q.T=i}}else try{i=n(l,a),ih(e,t,i)}catch(N){Jo(e,t,N)}}function ih(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){uh(e,t,a)},function(a){return Jo(e,t,a)}):uh(e,t,n)}function uh(e,t,n){t.status="fulfilled",t.value=n,rh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,lh(e,n)))}function Jo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,rh(t),t=t.next;while(t!==a)}e.action=null}function rh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function ch(e,t){if(xe){var n=Ye.formState;if(n!==null){e:{var a=pe;if(xe){if(Qe){t:{for(var l=Qe,i=Zt;l.nodeType!==8;){if(!i){l=null;break t}if(l=Jt(l.nextSibling),l===null){l=null;break t}}i=l.data,l=i==="F!"||i==="F"?l:null}if(l){Qe=Jt(l.nextSibling),a=l.data==="F!";break e}}Hn(a)}a=!1}a&&(t=n[0])}}return n=pt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:t},n.queue=a,n=wh.bind(null,pe,a),a.dispatch=n,a=Ko(!1),i=tc.bind(null,pe,!1,a.queue),a=pt(),l={state:t,dispatch:null,action:e,pending:null},a.queue=l,n=By.bind(null,pe,l,i,n),l.dispatch=n,a.memoizedState=e,[t,n,!1]}function fh(e){var t=et();return sh(t,Ge,e)}function sh(e,t,n){if(t=Vo(e,t,oh)[0],e=su(Sn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Kl(t)}catch(v){throw v===Ia?tu:v}else a=t;t=et();var l=t.queue,i=l.dispatch;return n!==t.memoizedState&&(pe.flags|=2048,ll(9,{destroy:void 0},qy.bind(null,l,n),null)),[a,i,e]}function qy(e,t){e.action=t}function hh(e){var t=et(),n=Ge;if(n!==null)return sh(t,n,e);et(),t=t.memoizedState,n=et();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ll(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=pe.updateQueue,t===null&&(t=cu(),pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function dh(){return et().memoizedState}function hu(e,t,n,a){var l=pt();pe.flags|=e,l.memoizedState=ll(1|t,{destroy:void 0},n,a===void 0?null:a)}function du(e,t,n,a){var l=et();a=a===void 0?null:a;var i=l.memoizedState.inst;Ge!==null&&a!==null&&Go(a,Ge.memoizedState.deps)?l.memoizedState=ll(t,i,n,a):(pe.flags|=e,l.memoizedState=ll(1|t,i,n,a))}function vh(e,t){hu(8390656,8,e,t)}function Fo(e,t){du(2048,8,e,t)}function Uy(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=cu(),pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function yh(e){var t=et().memoizedState;return Uy({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function mh(e,t){return du(4,2,e,t)}function gh(e,t){return du(4,4,e,t)}function ph(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _h(e,t,n){n=n!=null?n.concat([e]):null,du(4,4,ph.bind(null,t,e),n)}function Po(){}function bh(e,t){var n=et();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Go(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Eh(e,t){var n=et();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Go(t,a[1]))return a[0];if(a=e(),Ta){Ht(!0);try{e()}finally{Ht(!1)}}return n.memoizedState=[a,t],a}function Wo(e,t,n){return n===void 0||(En&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Sd(),pe.lanes|=e,Kn|=e,n)}function Sh(e,t,n,a){return xt(n,t)?n:tl.current!==null?(e=Wo(e,n,a),xt(e,t)||(at=!0),e):(En&42)===0||(En&1073741824)!==0&&(Ae&261930)===0?(at=!0,e.memoizedState=n):(e=Sd(),pe.lanes|=e,Kn|=e,t)}function Oh(e,t,n,a,l){var i=K.p;K.p=i!==0&&8>i?i:8;var v=q.T,p={};q.T=p,tc(e,!1,t,n);try{var A=l(),N=q.S;if(N!==null&&N(p,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var H=My(A,a);Jl(e,t,H,Nt(e))}else Jl(e,t,a,Nt(e))}catch(Y){Jl(e,t,{then:function(){},status:"rejected",reason:Y},Nt())}finally{K.p=i,v!==null&&p.types!==null&&(v.types=p.types),q.T=v}}function Ly(){}function Io(e,t,n,a){if(e.tag!==5)throw Error(c(476));var l=Th(e).queue;Oh(e,l,t,ue,n===null?Ly:function(){return Ah(e),n(a)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),Jl(e,t.next.queue,{},Nt())}function ec(){return st(hi)}function Rh(){return et().memoizedState}function xh(){return et().memoizedState}function jy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nt();e=kn(n);var a=Xn(t,e,n);a!==null&&(Rt(a,t,n),Yl(a,t,n)),t={cache:Do()},e.payload=t;return}t=t.return}}function Hy(e,t,n){var a=Nt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vu(e)?Dh(t,n):(n=po(e,t,n,a),n!==null&&(Rt(n,e,a),Ch(n,t,a)))}function wh(e,t,n){var a=Nt();Jl(e,t,n,a)}function Jl(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vu(e))Dh(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var v=t.lastRenderedState,p=i(v,n);if(l.hasEagerState=!0,l.eagerState=p,xt(p,v))return Ki(e,t,l,0),Ye===null&&Zi(),!1}catch{}finally{}if(n=po(e,t,l,a),n!==null)return Rt(n,e,a),Ch(n,t,a),!0}return!1}function tc(e,t,n,a){if(a={lane:2,revertLane:Nc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vu(e)){if(t)throw Error(c(479))}else t=po(e,n,a,2),t!==null&&Rt(t,e,2)}function vu(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Dh(e,t){nl=ru=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ch(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,dn(e,n)}}var Fl={readContext:st,use:fu,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Fl.useEffectEvent=Fe;var Mh={readContext:st,use:fu,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:vh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,hu(4194308,4,ph.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hu(4194308,4,e,t)},useInsertionEffect:function(e,t){hu(4,2,e,t)},useMemo:function(e,t){var n=pt();t=t===void 0?null:t;var a=e();if(Ta){Ht(!0);try{e()}finally{Ht(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=pt();if(n!==void 0){var l=n(t);if(Ta){Ht(!0);try{n(t)}finally{Ht(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=Hy.bind(null,pe,e),[a.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=wh.bind(null,pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Po,useDeferredValue:function(e,t){var n=pt();return Wo(n,e,t)},useTransition:function(){var e=Ko(!1);return e=Oh.bind(null,pe,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=pe,l=pt();if(xe){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Ye===null)throw Error(c(349));(Ae&127)!==0||Ws(a,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,vh(eh.bind(null,a,i,e),[e]),a.flags|=2048,ll(9,{destroy:void 0},Is.bind(null,a,i,n,t),null),n},useId:function(){var e=pt(),t=Ye.identifierPrefix;if(xe){var n=rn,a=un;n=(a&~(1<<32-yt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ou++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=zy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ec,useFormState:ch,useActionState:ch,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=tc.bind(null,pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Qo,useCacheRefresh:function(){return pt().memoizedState=jy.bind(null,pe)},useEffectEvent:function(e){var t=pt(),n={impl:e};return t.memoizedState=n,function(){if((qe&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},nc={readContext:st,use:fu,useCallback:bh,useContext:st,useEffect:Fo,useImperativeHandle:_h,useInsertionEffect:mh,useLayoutEffect:gh,useMemo:Eh,useReducer:su,useRef:dh,useState:function(){return su(Sn)},useDebugValue:Po,useDeferredValue:function(e,t){var n=et();return Sh(n,Ge.memoizedState,e,t)},useTransition:function(){var e=su(Sn)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]},useSyncExternalStore:Ps,useId:Rh,useHostTransitionStatus:ec,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var n=et();return ah(n,Ge,e,t)},useMemoCache:Qo,useCacheRefresh:xh};nc.useEffectEvent=yh;var zh={readContext:st,use:fu,useCallback:bh,useContext:st,useEffect:Fo,useImperativeHandle:_h,useInsertionEffect:mh,useLayoutEffect:gh,useMemo:Eh,useReducer:Zo,useRef:dh,useState:function(){return Zo(Sn)},useDebugValue:Po,useDeferredValue:function(e,t){var n=et();return Ge===null?Wo(n,e,t):Sh(n,Ge.memoizedState,e,t)},useTransition:function(){var e=Zo(Sn)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]},useSyncExternalStore:Ps,useId:Rh,useHostTransitionStatus:ec,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var n=et();return Ge!==null?ah(n,Ge,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Qo,useCacheRefresh:xh};zh.useEffectEvent=yh;function ac(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var lc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Nt(),l=kn(a);l.payload=t,n!=null&&(l.callback=n),t=Xn(e,l,a),t!==null&&(Rt(t,e,a),Yl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Nt(),l=kn(a);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Xn(e,l,a),t!==null&&(Rt(t,e,a),Yl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nt(),a=kn(n);a.tag=2,t!=null&&(a.callback=t),t=Xn(e,a,n),t!==null&&(Rt(t,e,n),Yl(t,e,n))}};function Nh(e,t,n,a,l,i,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,v):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,a)||!Ul(l,i):!0}function Bh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&lc.enqueueReplaceState(t,t.state,null)}function Aa(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=h({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function qh(e){Vi(e)}function Uh(e){console.error(e)}function Lh(e){Vi(e)}function yu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function jh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function ic(e,t,n){return n=kn(n),n.tag=3,n.payload={element:null},n.callback=function(){yu(e,t)},n}function Hh(e){return e=kn(e),e.tag=3,e}function Gh(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var i=a.value;e.payload=function(){return l(i)},e.callback=function(){jh(t,n,a)}}var v=n.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){jh(t,n,a),typeof l!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function Gy(e,t,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Fa(t,n,l,!0),n=Dt.current,n!==null){switch(n.tag){case 31:case 13:return Kt===null?xu():n.alternate===null&&Pe===0&&(Pe=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===nu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Cc(e,a,l)),!1;case 22:return n.flags|=65536,a===nu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Cc(e,a,l)),!1}throw Error(c(435,n.tag))}return Cc(e,a,l),xu(),!1}if(xe)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==To&&(e=Error(c(422),{cause:a}),Hl(Yt(e,n)))):(a!==To&&(t=Error(c(423),{cause:a}),Hl(Yt(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=Yt(a,n),l=ic(e.stateNode,a,l),qo(e,l),Pe!==4&&(Pe=2)),!1;var i=Error(c(520),{cause:a});if(i=Yt(i,n),li===null?li=[i]:li.push(i),Pe!==4&&(Pe=2),t===null)return!0;a=Yt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=ic(n.stateNode,a,e),qo(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Jn===null||!Jn.has(i))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Hh(l),Gh(l,e,n,a),qo(n,l),!1}n=n.return}while(n!==null);return!1}var uc=Error(c(461)),at=!1;function ht(e,t,n,a){t.child=e===null?Ys(t,null,n,a):Oa(t,e.child,n,a)}function $h(e,t,n,a,l){n=n.render;var i=t.ref;if("ref"in a){var v={};for(var p in a)p!=="ref"&&(v[p]=a[p])}else v=a;return _a(t),a=$o(e,t,n,v,i,l),p=ko(),e!==null&&!at?(Xo(e,t,l),On(e,t,l)):(xe&&p&&So(t),t.flags|=1,ht(e,t,a,l),t.child)}function kh(e,t,n,a,l){if(e===null){var i=n.type;return typeof i=="function"&&!_o(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,Xh(e,t,i,a,l)):(e=Fi(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!vc(e,l)){var v=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(v,a)&&e.ref===t.ref)return On(e,t,l)}return t.flags|=1,e=gn(i,a),e.ref=t.ref,e.return=t,t.child=e}function Xh(e,t,n,a,l){if(e!==null){var i=e.memoizedProps;if(Ul(i,a)&&e.ref===t.ref)if(at=!1,t.pendingProps=a=i,vc(e,l))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,On(e,t,l)}return rc(e,t,n,a,l)}function Yh(e,t,n,a){var l=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,e!==null){for(a=t.child=e.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~i}else a=0,t.child=null;return Qh(e,t,i,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&eu(t,i!==null?i.cachePool:null),i!==null?Zs(t,i):Lo(),Ks(t);else return a=t.lanes=536870912,Qh(e,t,i!==null?i.baseLanes|n:n,n,a)}else i!==null?(eu(t,i.cachePool),Zs(t,i),Qn(),t.memoizedState=null):(e!==null&&eu(t,null),Lo(),Qn());return ht(e,t,l,n),t.child}function Pl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qh(e,t,n,a,l){var i=Mo();return i=i===null?null:{parent:tt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&eu(t,null),Lo(),Ks(t),e!==null&&Fa(e,t,a,!0),t.childLanes=l,null}function mu(e,t){return t=pu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vh(e,t,n){return Oa(t,e.child,null,n),e=mu(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function $y(e,t,n){var a=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(a.mode==="hidden")return e=mu(t,a),t.lanes=536870912,Pl(null,e);if(Ho(t),(e=Qe)?(e=l0(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:un,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},n=Ds(e),n.return=t,t.child=n,ft=t,Qe=null)):e=null,e===null)throw Hn(t);return t.lanes=536870912,null}return mu(t,a)}var i=e.memoizedState;if(i!==null){var v=i.dehydrated;if(Ho(t),l)if(t.flags&256)t.flags&=-257,t=Vh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(at||Fa(e,t,n,!1),l=(n&e.childLanes)!==0,at||l){if(a=Ye,a!==null&&(v=Rl(a,n),v!==0&&v!==i.retryLane))throw i.retryLane=v,ya(e,v),Rt(a,e,v),uc;xu(),t=Vh(e,t,n)}else e=i.treeContext,Qe=Jt(v.nextSibling),ft=t,xe=!0,jn=null,Zt=!1,e!==null&&zs(t,e),t=mu(t,a),t.flags|=4096;return t}return e=gn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function rc(e,t,n,a,l){return _a(t),n=$o(e,t,n,a,void 0,l),a=ko(),e!==null&&!at?(Xo(e,t,l),On(e,t,l)):(xe&&a&&So(t),t.flags|=1,ht(e,t,n,l),t.child)}function Zh(e,t,n,a,l,i){return _a(t),t.updateQueue=null,n=Fs(t,a,n,l),Js(e),a=ko(),e!==null&&!at?(Xo(e,t,i),On(e,t,i)):(xe&&a&&So(t),t.flags|=1,ht(e,t,n,i),t.child)}function Kh(e,t,n,a,l){if(_a(t),t.stateNode===null){var i=Va,v=n.contextType;typeof v=="object"&&v!==null&&(i=st(v)),i=new n(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=lc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},No(t),v=n.contextType,i.context=typeof v=="object"&&v!==null?st(v):Va,i.state=t.memoizedState,v=n.getDerivedStateFromProps,typeof v=="function"&&(ac(t,n,v,a),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(v=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),v!==i.state&&lc.enqueueReplaceState(i,i.state,null),Vl(t,a,i,l),Ql(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var p=t.memoizedProps,A=Aa(n,p);i.props=A;var N=i.context,H=n.contextType;v=Va,typeof H=="object"&&H!==null&&(v=st(H));var Y=n.getDerivedStateFromProps;H=typeof Y=="function"||typeof i.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,H||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(p||N!==v)&&Bh(t,i,a,v),$n=!1;var B=t.memoizedState;i.state=B,Vl(t,a,i,l),Ql(),N=t.memoizedState,p||B!==N||$n?(typeof Y=="function"&&(ac(t,n,Y,a),N=t.memoizedState),(A=$n||Nh(t,n,A,a,B,N,v))?(H||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=N),i.props=a,i.state=N,i.context=v,a=A):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Bo(e,t),v=t.memoizedProps,H=Aa(n,v),i.props=H,Y=t.pendingProps,B=i.context,N=n.contextType,A=Va,typeof N=="object"&&N!==null&&(A=st(N)),p=n.getDerivedStateFromProps,(N=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(v!==Y||B!==A)&&Bh(t,i,a,A),$n=!1,B=t.memoizedState,i.state=B,Vl(t,a,i,l),Ql();var U=t.memoizedState;v!==Y||B!==U||$n||e!==null&&e.dependencies!==null&&Wi(e.dependencies)?(typeof p=="function"&&(ac(t,n,p,a),U=t.memoizedState),(H=$n||Nh(t,n,H,a,B,U,A)||e!==null&&e.dependencies!==null&&Wi(e.dependencies))?(N||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,U,A),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,U,A)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=U),i.props=a,i.state=U,i.context=A,a=H):(typeof i.componentDidUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,gu(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Oa(t,e.child,null,l),t.child=Oa(t,null,n,l)):ht(e,t,n,l),t.memoizedState=i.state,e=t.child):e=On(e,t,l),e}function Jh(e,t,n,a){return ga(),t.flags|=256,ht(e,t,n,a),t.child}var oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(e){return{baseLanes:e,cachePool:js()}}function fc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function Fh(e,t,n){var a=t.pendingProps,l=!1,i=(t.flags&128)!==0,v;if((v=i)||(v=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),v&&(l=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(l?Yn(t):Qn(),(e=Qe)?(e=l0(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:un,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},n=Ds(e),n.return=t,t.child=n,ft=t,Qe=null)):e=null,e===null)throw Hn(t);return Vc(e)?t.lanes=32:t.lanes=536870912,null}var p=a.children;return a=a.fallback,l?(Qn(),l=t.mode,p=pu({mode:"hidden",children:p},l),a=ma(a,l,n,null),p.return=t,a.return=t,p.sibling=a,t.child=p,a=t.child,a.memoizedState=cc(n),a.childLanes=fc(e,v,n),t.memoizedState=oc,Pl(null,a)):(Yn(t),sc(t,p))}var A=e.memoizedState;if(A!==null&&(p=A.dehydrated,p!==null)){if(i)t.flags&256?(Yn(t),t.flags&=-257,t=hc(e,t,n)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),p=a.fallback,l=t.mode,a=pu({mode:"visible",children:a.children},l),p=ma(p,l,n,null),p.flags|=2,a.return=t,p.return=t,a.sibling=p,t.child=a,Oa(t,e.child,null,n),a=t.child,a.memoizedState=cc(n),a.childLanes=fc(e,v,n),t.memoizedState=oc,t=Pl(null,a));else if(Yn(t),Vc(p)){if(v=p.nextSibling&&p.nextSibling.dataset,v)var N=v.dgst;v=N,a=Error(c(419)),a.stack="",a.digest=v,Hl({value:a,source:null,stack:null}),t=hc(e,t,n)}else if(at||Fa(e,t,n,!1),v=(n&e.childLanes)!==0,at||v){if(v=Ye,v!==null&&(a=Rl(v,n),a!==0&&a!==A.retryLane))throw A.retryLane=a,ya(e,a),Rt(v,e,a),uc;Qc(p)||xu(),t=hc(e,t,n)}else Qc(p)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Qe=Jt(p.nextSibling),ft=t,xe=!0,jn=null,Zt=!1,e!==null&&zs(t,e),t=sc(t,a.children),t.flags|=4096);return t}return l?(Qn(),p=a.fallback,l=t.mode,A=e.child,N=A.sibling,a=gn(A,{mode:"hidden",children:a.children}),a.subtreeFlags=A.subtreeFlags&65011712,N!==null?p=gn(N,p):(p=ma(p,l,n,null),p.flags|=2),p.return=t,a.return=t,a.sibling=p,t.child=a,Pl(null,a),a=t.child,p=e.child.memoizedState,p===null?p=cc(n):(l=p.cachePool,l!==null?(A=tt._currentValue,l=l.parent!==A?{parent:A,pool:A}:l):l=js(),p={baseLanes:p.baseLanes|n,cachePool:l}),a.memoizedState=p,a.childLanes=fc(e,v,n),t.memoizedState=oc,Pl(e.child,a)):(Yn(t),n=e.child,e=n.sibling,n=gn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=n,t.memoizedState=null,n)}function sc(e,t){return t=pu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function pu(e,t){return e=wt(22,e,null,t),e.lanes=0,e}function hc(e,t,n){return Oa(t,e.child,null,n),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ph(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),xo(e.return,t,n)}function dc(e,t,n,a,l,i){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:i}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=a,v.tail=n,v.tailMode=l,v.treeForkCount=i)}function Wh(e,t,n){var a=t.pendingProps,l=a.revealOrder,i=a.tail;a=a.children;var v=Ie.current,p=(v&2)!==0;if(p?(v=v&1|2,t.flags|=128):v&=1,Q(Ie,v),ht(e,t,a,n),a=xe?jl:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,n,t);else if(e.tag===19)Ph(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&uu(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),dc(t,!1,l,n,i,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&uu(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}dc(t,!0,n,null,i,a);break;case"together":dc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Fa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Wi(e)))}function ky(e,t,n){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Gn(t,tt,e.memoizedState.cache),ga();break;case 27:case 5:hn(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Gn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ho(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Yn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Fh(e,t,n):(Yn(t),e=On(e,t,n),e!==null?e.sibling:null);Yn(t);break;case 19:var l=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Fa(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return Wh(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Q(Ie,Ie.current),a)break;return null;case 22:return t.lanes=0,Yh(e,t,n,t.pendingProps);case 24:Gn(t,tt,e.memoizedState.cache)}return On(e,t,n)}function Ih(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!vc(e,n)&&(t.flags&128)===0)return at=!1,ky(e,t,n);at=(e.flags&131072)!==0}else at=!1,xe&&(t.flags&1048576)!==0&&Ms(t,jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e=="function")_o(e)?(a=Aa(e,a),t.tag=1,t=Kh(null,t,e,a,n)):(t.tag=0,t=rc(null,t,e,a,n));else{if(e!=null){var l=e.$$typeof;if(l===ge){t.tag=11,t=$h(null,t,e,a,n);break e}else if(l===te){t.tag=14,t=kh(null,t,e,a,n);break e}}throw t=ze(e)||e,Error(c(306,t,""))}}return t;case 0:return rc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=Aa(a,t.pendingProps),Kh(e,t,a,l,n);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var i=t.memoizedState;l=i.element,Bo(e,t),Vl(t,a,null,n);var v=t.memoizedState;if(a=v.cache,Gn(t,tt,a),a!==i.cache&&wo(t,[tt],n,!0),Ql(),a=v.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Jh(e,t,a,n);break e}else if(a!==l){l=Yt(Error(c(424)),t),Hl(l),t=Jh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=Jt(e.firstChild),ft=t,xe=!0,jn=null,Zt=!0,n=Ys(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ga(),a===l){t=On(e,t,n);break e}ht(e,t,a,n)}t=t.child}return t;case 26:return gu(e,t),e===null?(n=f0(t.type,null,t.pendingProps,null))?t.memoizedState=n:xe||(n=t.type,e=t.pendingProps,a=Bu(Ee.current).createElement(n),a[ut]=t,a[bt]=e,dt(a,n,e),ot(a),t.stateNode=a):t.memoizedState=f0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hn(t),e===null&&xe&&(a=t.stateNode=r0(t.type,t.pendingProps,Ee.current),ft=t,Zt=!0,l=Qe,In(t.type)?(Zc=l,Qe=Jt(a.firstChild)):Qe=l),ht(e,t,t.pendingProps.children,n),gu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((l=a=Qe)&&(a=pm(a,t.type,t.pendingProps,Zt),a!==null?(t.stateNode=a,ft=t,Qe=Jt(a.firstChild),Zt=!1,l=!0):l=!1),l||Hn(t)),hn(t),l=t.type,i=t.pendingProps,v=e!==null?e.memoizedProps:null,a=i.children,kc(l,i)?a=null:v!==null&&kc(l,v)&&(t.flags|=32),t.memoizedState!==null&&(l=$o(e,t,Ny,null,null,n),hi._currentValue=l),gu(e,t),ht(e,t,a,n),t.child;case 6:return e===null&&xe&&((e=n=Qe)&&(n=_m(n,t.pendingProps,Zt),n!==null?(t.stateNode=n,ft=t,Qe=null,e=!0):e=!1),e||Hn(t)),null;case 13:return Fh(e,t,n);case 4:return Ue(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Oa(t,null,a,n):ht(e,t,a,n),t.child;case 11:return $h(e,t,t.type,t.pendingProps,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Gn(t,t.type,a.value),ht(e,t,a.children,n),t.child;case 9:return l=t.type._context,a=t.pendingProps.children,_a(t),l=st(l),a=a(l),t.flags|=1,ht(e,t,a,n),t.child;case 14:return kh(e,t,t.type,t.pendingProps,n);case 15:return Xh(e,t,t.type,t.pendingProps,n);case 19:return Wh(e,t,n);case 31:return $y(e,t,n);case 22:return Yh(e,t,n,t.pendingProps);case 24:return _a(t),a=st(tt),e===null?(l=Mo(),l===null&&(l=Ye,i=Do(),l.pooledCache=i,i.refCount++,i!==null&&(l.pooledCacheLanes|=n),l=i),t.memoizedState={parent:a,cache:l},No(t),Gn(t,tt,l)):((e.lanes&n)!==0&&(Bo(e,t),Vl(t,null,null,n),Ql()),l=e.memoizedState,i=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Gn(t,tt,a)):(a=i.cache,Gn(t,tt,a),a!==l.cache&&wo(t,[tt],n,!0))),ht(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Tn(e){e.flags|=4}function yc(e,t,n,a,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Rd())e.flags|=8192;else throw Sa=nu,zo}else e.flags&=-16777217}function ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!y0(t))if(Rd())e.flags|=8192;else throw Sa=nu,zo}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Be():536870912,e.lanes|=t,ol|=t)}function Wl(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Xy(e,t,n){var a=t.pendingProps;switch(Oo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bn(tt),Xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ja(t)?Tn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ao())),Ve(t),null;case 26:var l=t.type,i=t.memoizedState;return e===null?(Tn(t),i!==null?(Ve(t),ed(t,i)):(Ve(t),yc(t,l,null,a,n))):i?i!==e.memoizedState?(Tn(t),Ve(t),ed(t,i)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Tn(t),Ve(t),yc(t,l,e,a,n)),null;case 27:if(Ca(t),n=Ee.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tn(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ve(t),null}e=P.current,Ja(t)?Ns(t):(e=r0(l,a,n),t.stateNode=e,Tn(t))}return Ve(t),null;case 5:if(Ca(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tn(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ve(t),null}if(i=P.current,Ja(t))Ns(t);else{var v=Bu(Ee.current);switch(i){case 1:i=v.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:i=v.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":i=v.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":i=v.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":i=v.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?v.createElement("select",{is:a.is}):v.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?v.createElement(l,{is:a.is}):v.createElement(l)}}i[ut]=t,i[bt]=a;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)i.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=i;e:switch(dt(i,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Tn(t)}}return Ve(t),yc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Tn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=Ee.current,Ja(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,l=ft,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Fd(e.nodeValue,n)),e||Hn(t,!0)}else e=Bu(e).createTextNode(a),e[ut]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ja(t),n!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ut]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=Ao(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Ja(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(c(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(c(317));l[ut]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),l=!1}else l=Ao(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_u(t,t.updateQueue),Ve(t),null);case 4:return Xe(),e===null&&Lc(t.stateNode.containerInfo),Ve(t),null;case 10:return bn(t.type),Ve(t),null;case 19:if(L(Ie),a=t.memoizedState,a===null)return Ve(t),null;if(l=(t.flags&128)!==0,i=a.rendering,i===null)if(l)Wl(a,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=uu(e),i!==null){for(t.flags|=128,Wl(a,!1),e=i.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ws(n,e),n=n.sibling;return Q(Ie,Ie.current&1|2),xe&&pn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&vt()>Tu&&(t.flags|=128,l=!0,Wl(a,!1),t.lanes=4194304)}else{if(!l)if(e=uu(i),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),Wl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!xe)return Ve(t),null}else 2*vt()-a.renderingStartTime>Tu&&n!==536870912&&(t.flags|=128,l=!0,Wl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=vt(),e.sibling=null,n=Ie.current,Q(Ie,l?n&1|2:n&1),xe&&pn(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return Ct(t),jo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&_u(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&L(ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bn(tt),Ve(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Yy(e,t){switch(Oo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bn(tt),Xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ca(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(c(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Ie),null;case 4:return Xe(),null;case 10:return bn(t.type),null;case 22:case 23:return Ct(t),jo(),e!==null&&L(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bn(tt),null;case 25:return null;default:return null}}function td(e,t){switch(Oo(t),t.tag){case 3:bn(tt),Xe();break;case 26:case 27:case 5:Ca(t);break;case 4:Xe();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:L(Ie);break;case 10:bn(t.type);break;case 22:case 23:Ct(t),jo(),e!==null&&L(ba);break;case 24:bn(tt)}}function Il(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){a=void 0;var i=n.create,v=n.inst;a=i(),v.destroy=a}n=n.next}while(n!==l)}}catch(p){je(t,t.return,p)}}function Vn(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){var v=a.inst,p=v.destroy;if(p!==void 0){v.destroy=void 0,l=t;var A=n,N=p;try{N()}catch(H){je(l,A,H)}}}a=a.next}while(a!==i)}}catch(H){je(t,t.return,H)}}function nd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Vs(t,n)}catch(a){je(e,e.return,a)}}}function ad(e,t,n){n.props=Aa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){je(e,t,a)}}function ei(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(l){je(e,t,l)}}function on(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){je(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){je(e,t,l)}else n.current=null}function ld(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){je(e,e.return,l)}}function mc(e,t,n){try{var a=e.stateNode;hm(a,e.type,n,t),a[bt]=t}catch(l){je(e,e.return,l)}}function id(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&In(e.type)||e.tag===4}function gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||id(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&In(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yn));else if(a!==4&&(a===27&&In(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(pc(e,t,n),e=e.sibling;e!==null;)pc(e,t,n),e=e.sibling}function bu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&In(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}function ud(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,a,n),t[ut]=e,t[bt]=n}catch(i){je(e,e.return,i)}}var An=!1,lt=!1,_c=!1,rd=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Qy(e,t){if(e=e.containerInfo,Gc=$u,e=_s(e),so(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var v=0,p=-1,A=-1,N=0,H=0,Y=e,B=null;t:for(;;){for(var U;Y!==n||l!==0&&Y.nodeType!==3||(p=v+l),Y!==i||a!==0&&Y.nodeType!==3||(A=v+a),Y.nodeType===3&&(v+=Y.nodeValue.length),(U=Y.firstChild)!==null;)B=Y,Y=U;for(;;){if(Y===e)break t;if(B===n&&++N===l&&(p=v),B===i&&++H===a&&(A=v),(U=Y.nextSibling)!==null)break;Y=B,B=Y.parentNode}Y=U}n=p===-1||A===-1?null:{start:p,end:A}}else n=null}n=n||{start:0,end:0}}else n=null;for($c={focusedElem:e,selectionRange:n},$u=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)l=e[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,n=t,l=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var ae=Aa(n.type,l);e=a.getSnapshotBeforeUpdate(ae,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(fe){je(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Yc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function od(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n),a&4&&Il(5,n);break;case 1:if(xn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(v){je(n,n.return,v)}else{var l=Aa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){je(n,n.return,v)}}a&64&&nd(n),a&512&&ei(n,n.return);break;case 3:if(xn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Vs(e,t)}catch(v){je(n,n.return,v)}}break;case 27:t===null&&a&4&&ud(n);case 26:case 5:xn(e,n),t===null&&a&4&&ld(n),a&512&&ei(n,n.return);break;case 12:xn(e,n);break;case 31:xn(e,n),a&4&&sd(e,n);break;case 13:xn(e,n),a&4&&hd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=em.bind(null,n),bm(e,n))));break;case 22:if(a=n.memoizedState!==null||An,!a){t=t!==null&&t.memoizedState!==null||lt,l=An;var i=lt;An=a,(lt=t)&&!i?wn(e,n,(n.subtreeFlags&8772)!==0):xn(e,n),An=l,lt=i}break;case 30:break;default:xn(e,n)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Kr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ze=null,St=!1;function Rn(e,t,n){for(n=n.child;n!==null;)fd(e,t,n),n=n.sibling}function fd(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(fa,n)}catch{}switch(n.tag){case 26:lt||on(n,t),Rn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lt||on(n,t);var a=Ze,l=St;In(n.type)&&(Ze=n.stateNode,St=!1),Rn(e,t,n),ci(n.stateNode),Ze=a,St=l;break;case 5:lt||on(n,t);case 6:if(a=Ze,l=St,Ze=null,Rn(e,t,n),Ze=a,St=l,Ze!==null)if(St)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(n.stateNode)}catch(i){je(n,t,i)}else try{Ze.removeChild(n.stateNode)}catch(i){je(n,t,i)}break;case 18:Ze!==null&&(St?(e=Ze,n0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ml(e)):n0(Ze,n.stateNode));break;case 4:a=Ze,l=St,Ze=n.stateNode.containerInfo,St=!0,Rn(e,t,n),Ze=a,St=l;break;case 0:case 11:case 14:case 15:Vn(2,n,t),lt||Vn(4,n,t),Rn(e,t,n);break;case 1:lt||(on(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&ad(n,t,a)),Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:lt=(a=lt)||n.memoizedState!==null,Rn(e,t,n),lt=a;break;default:Rn(e,t,n)}}function sd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ml(e)}catch(n){je(t,t.return,n)}}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ml(e)}catch(n){je(t,t.return,n)}}function Vy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rd),t;default:throw Error(c(435,e.tag))}}function Eu(e,t){var n=Vy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var l=tm.bind(null,e,a);a.then(l,l)}})}function Ot(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],i=e,v=t,p=v;e:for(;p!==null;){switch(p.tag){case 27:if(In(p.type)){Ze=p.stateNode,St=!1;break e}break;case 5:Ze=p.stateNode,St=!1;break e;case 3:case 4:Ze=p.stateNode.containerInfo,St=!0;break e}p=p.return}if(Ze===null)throw Error(c(160));fd(i,v,l),Ze=null,St=!1,i=l.alternate,i!==null&&(i.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dd(t,e),t=t.sibling}var en=null;function dd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Tt(e),a&4&&(Vn(3,e,e.return),Il(3,e),Vn(5,e,e.return));break;case 1:Ot(t,e),Tt(e),a&512&&(lt||n===null||on(n,n.return)),a&64&&An&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=en;if(Ot(t,e),Tt(e),a&512&&(lt||n===null||on(n,n.return)),a&4){var i=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,l=l.ownerDocument||l;t:switch(a){case"title":i=l.getElementsByTagName("title")[0],(!i||i[xl]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(a),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,a,n),i[ut]=e,ot(i),a=i;break e;case"link":var v=d0("link","href",l).get(a+(n.href||""));if(v){for(var p=0;p<v.length;p++)if(i=v[p],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){v.splice(p,1);break t}}i=l.createElement(a),dt(i,a,n),l.head.appendChild(i);break;case"meta":if(v=d0("meta","content",l).get(a+(n.content||""))){for(p=0;p<v.length;p++)if(i=v[p],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){v.splice(p,1);break t}}i=l.createElement(a),dt(i,a,n),l.head.appendChild(i);break;default:throw Error(c(468,a))}i[ut]=e,ot(i),a=i}e.stateNode=a}else v0(l,e.type,e.stateNode);else e.stateNode=h0(l,a,e.memoizedProps);else i!==a?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,a===null?v0(l,e.type,e.stateNode):h0(l,a,e.memoizedProps)):a===null&&e.stateNode!==null&&mc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ot(t,e),Tt(e),a&512&&(lt||n===null||on(n,n.return)),n!==null&&a&4&&mc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ot(t,e),Tt(e),a&512&&(lt||n===null||on(n,n.return)),e.flags&32){l=e.stateNode;try{Ha(l,"")}catch(ae){je(e,e.return,ae)}}a&4&&e.stateNode!=null&&(l=e.memoizedProps,mc(e,l,n!==null?n.memoizedProps:l)),a&1024&&(_c=!0);break;case 6:if(Ot(t,e),Tt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ae){je(e,e.return,ae)}}break;case 3:if(Lu=null,l=en,en=qu(t.containerInfo),Ot(t,e),en=l,Tt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ml(t.containerInfo)}catch(ae){je(e,e.return,ae)}_c&&(_c=!1,vd(e));break;case 4:a=en,en=qu(e.stateNode.containerInfo),Ot(t,e),Tt(e),en=a;break;case 12:Ot(t,e),Tt(e);break;case 31:Ot(t,e),Tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Eu(e,a)));break;case 13:Ot(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ou=vt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Eu(e,a)));break;case 22:l=e.memoizedState!==null;var A=n!==null&&n.memoizedState!==null,N=An,H=lt;if(An=N||l,lt=H||A,Ot(t,e),lt=H,An=N,Tt(e),a&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(n===null||A||An||lt||Ra(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){A=n=t;try{if(i=A.stateNode,l)v=i.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{p=A.stateNode;var Y=A.memoizedProps.style,B=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;p.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ae){je(A,A.return,ae)}}}else if(t.tag===6){if(n===null){A=t;try{A.stateNode.nodeValue=l?"":A.memoizedProps}catch(ae){je(A,A.return,ae)}}}else if(t.tag===18){if(n===null){A=t;try{var U=A.stateNode;l?a0(U,!0):a0(A.stateNode,!1)}catch(ae){je(A,A.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Eu(e,n))));break;case 19:Ot(t,e),Tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Eu(e,a)));break;case 30:break;case 21:break;default:Ot(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(id(a)){n=a;break}a=a.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var l=n.stateNode,i=gc(e);bu(e,i,l);break;case 5:var v=n.stateNode;n.flags&32&&(Ha(v,""),n.flags&=-33);var p=gc(e);bu(e,p,v);break;case 3:case 4:var A=n.stateNode.containerInfo,N=gc(e);pc(e,N,A);break;default:throw Error(c(161))}}catch(H){je(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(e,t.alternate,t),t=t.sibling}function Ra(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vn(4,t,t.return),Ra(t);break;case 1:on(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ad(t,t.return,n),Ra(t);break;case 27:ci(t.stateNode);case 26:case 5:on(t,t.return),Ra(t);break;case 22:t.memoizedState===null&&Ra(t);break;case 30:Ra(t);break;default:Ra(t)}e=e.sibling}}function wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,l=e,i=t,v=i.flags;switch(i.tag){case 0:case 11:case 15:wn(l,i,n),Il(4,i);break;case 1:if(wn(l,i,n),a=i,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(N){je(a,a.return,N)}if(a=i,l=a.updateQueue,l!==null){var p=a.stateNode;try{var A=l.shared.hiddenCallbacks;if(A!==null)for(l.shared.hiddenCallbacks=null,l=0;l<A.length;l++)Qs(A[l],p)}catch(N){je(a,a.return,N)}}n&&v&64&&nd(i),ei(i,i.return);break;case 27:ud(i);case 26:case 5:wn(l,i,n),n&&a===null&&v&4&&ld(i),ei(i,i.return);break;case 12:wn(l,i,n);break;case 31:wn(l,i,n),n&&v&4&&sd(l,i);break;case 13:wn(l,i,n),n&&v&4&&hd(l,i);break;case 22:i.memoizedState===null&&wn(l,i,n),ei(i,i.return);break;case 30:break;default:wn(l,i,n)}t=t.sibling}}function bc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Gl(n))}function Ec(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gl(e))}function tn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yd(e,t,n,a),t=t.sibling}function yd(e,t,n,a){var l=t.flags;switch(t.tag){case 0:case 11:case 15:tn(e,t,n,a),l&2048&&Il(9,t);break;case 1:tn(e,t,n,a);break;case 3:tn(e,t,n,a),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gl(e)));break;case 12:if(l&2048){tn(e,t,n,a),e=t.stateNode;try{var i=t.memoizedProps,v=i.id,p=i.onPostCommit;typeof p=="function"&&p(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){je(t,t.return,A)}}else tn(e,t,n,a);break;case 31:tn(e,t,n,a);break;case 13:tn(e,t,n,a);break;case 23:break;case 22:i=t.stateNode,v=t.alternate,t.memoizedState!==null?i._visibility&2?tn(e,t,n,a):ti(e,t):i._visibility&2?tn(e,t,n,a):(i._visibility|=2,il(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),l&2048&&bc(v,t);break;case 24:tn(e,t,n,a),l&2048&&Ec(t.alternate,t);break;default:tn(e,t,n,a)}}function il(e,t,n,a,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,v=t,p=n,A=a,N=v.flags;switch(v.tag){case 0:case 11:case 15:il(i,v,p,A,l),Il(8,v);break;case 23:break;case 22:var H=v.stateNode;v.memoizedState!==null?H._visibility&2?il(i,v,p,A,l):ti(i,v):(H._visibility|=2,il(i,v,p,A,l)),l&&N&2048&&bc(v.alternate,v);break;case 24:il(i,v,p,A,l),l&&N&2048&&Ec(v.alternate,v);break;default:il(i,v,p,A,l)}t=t.sibling}}function ti(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,l=a.flags;switch(a.tag){case 22:ti(n,a),l&2048&&bc(a.alternate,a);break;case 24:ti(n,a),l&2048&&Ec(a.alternate,a);break;default:ti(n,a)}t=t.sibling}}var ni=8192;function ul(e,t,n){if(e.subtreeFlags&ni)for(e=e.child;e!==null;)md(e,t,n),e=e.sibling}function md(e,t,n){switch(e.tag){case 26:ul(e,t,n),e.flags&ni&&e.memoizedState!==null&&zm(n,en,e.memoizedState,e.memoizedProps);break;case 5:ul(e,t,n);break;case 3:case 4:var a=en;en=qu(e.stateNode.containerInfo),ul(e,t,n),en=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ni,ni=16777216,ul(e,t,n),ni=a):ul(e,t,n));break;default:ul(e,t,n)}}function gd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ai(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ct=a,_d(a,e)}gd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pd(e),e=e.sibling}function pd(e){switch(e.tag){case 0:case 11:case 15:ai(e),e.flags&2048&&Vn(9,e,e.return);break;case 3:ai(e);break;case 12:ai(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Su(e)):ai(e);break;default:ai(e)}}function Su(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ct=a,_d(a,e)}gd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vn(8,t,t.return),Su(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Su(t));break;default:Su(t)}e=e.sibling}}function _d(e,t){for(;ct!==null;){var n=ct;switch(n.tag){case 0:case 11:case 15:Vn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Gl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ct=a;else e:for(n=e;ct!==null;){a=ct;var l=a.sibling,i=a.return;if(cd(a),a===n){ct=null;break e}if(l!==null){l.return=i,ct=l;break e}ct=i}}}var Zy={getCacheForType:function(e){var t=st(tt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return st(tt).controller.signal}},Ky=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ye=null,Oe=null,Ae=0,Le=0,Mt=null,Zn=!1,rl=!1,Sc=!1,Dn=0,Pe=0,Kn=0,xa=0,Oc=0,zt=0,ol=0,li=null,At=null,Tc=!1,Ou=0,bd=0,Tu=1/0,Au=null,Jn=null,rt=0,Fn=null,cl=null,Cn=0,Ac=0,Rc=null,Ed=null,ii=0,xc=null;function Nt(){return(qe&2)!==0&&Ae!==0?Ae&-Ae:q.T!==null?Nc():Bi()}function Sd(){if(zt===0)if((Ae&536870912)===0||xe){var e=Z;Z<<=1,(Z&3932160)===0&&(Z=262144),zt=e}else zt=536870912;return e=Dt.current,e!==null&&(e.flags|=32),zt}function Rt(e,t,n){(e===Ye&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(fl(e,0),Pn(e,Ae,zt,!1)),Ke(e,n),((qe&2)===0||e!==Ye)&&(e===Ye&&((qe&2)===0&&(xa|=n),Pe===4&&Pn(e,Ae,zt,!1)),cn(e))}function Od(e,t,n){if((qe&6)!==0)throw Error(c(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||F(e,t),l=a?Py(e,t):Dc(e,t,!0),i=a;do{if(l===0){rl&&!a&&Pn(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!Jy(n)){l=Dc(e,t,!1),i=!1;continue}if(l===2){if(i=t,e.errorRecoveryDisabledLanes&i)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var p=e;l=li;var A=p.current.memoizedState.isDehydrated;if(A&&(fl(p,v).flags|=256),v=Dc(p,v,!1),v!==2){if(Sc&&!A){p.errorRecoveryDisabledLanes|=i,xa|=i,l=4;break e}i=At,At=l,i!==null&&(At===null?At=i:At.push.apply(At,i))}l=v}if(i=!1,l!==2)continue}}if(l===1){fl(e,0),Pn(e,t,0,!0);break}e:{switch(a=e,i=l,i){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Pn(a,t,zt,!Zn);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(l=Ou+300-vt(),10<l)){if(Pn(a,t,zt,!Zn),ve(a,0,!0)!==0)break e;Cn=t,a.timeoutHandle=e0(Td.bind(null,a,n,At,Au,Tc,t,zt,xa,ol,Zn,i,"Throttled",-0,0),l);break e}Td(a,n,At,Au,Tc,t,zt,xa,ol,Zn,i,null,-0,0)}}break}while(!0);cn(e)}function Td(e,t,n,a,l,i,v,p,A,N,H,Y,B,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},md(t,i,Y);var ae=(i&62914560)===i?Ou-vt():(i&4194048)===i?bd-vt():0;if(ae=Nm(Y,ae),ae!==null){Cn=i,e.cancelPendingCommit=ae(zd.bind(null,e,t,i,n,a,l,v,p,A,H,Y,null,B,U)),Pn(e,i,v,!N);return}}zd(e,t,i,n,a,l,v,p,A)}function Jy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],i=l.getSnapshot;l=l.value;try{if(!xt(i(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pn(e,t,n,a){t&=~Oc,t&=~xa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var l=t;0<l;){var i=31-yt(l),v=1<<i;a[i]=-1,l&=~v}n!==0&&ln(e,n,t)}function Ru(){return(qe&6)===0?(ui(0),!1):!0}function wc(){if(Oe!==null){if(Le===0)var e=Oe.return;else e=Oe,_n=pa=null,Yo(e),el=null,kl=0,e=Oe;for(;e!==null;)td(e.alternate,e),e=e.return;Oe=null}}function fl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ym(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cn=0,wc(),Ye=e,Oe=n=gn(e.current,null),Ae=t,Le=0,Mt=null,Zn=!1,rl=F(e,t),Sc=!1,ol=zt=Oc=xa=Kn=Pe=0,At=li=null,Tc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var l=31-yt(a),i=1<<l;t|=e[l],a&=~i}return Dn=t,Zi(),n}function Ad(e,t){pe=null,q.H=Fl,t===Ia||t===tu?(t=$s(),Le=3):t===zo?(t=$s(),Le=4):Le=t===uc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,Oe===null&&(Pe=1,yu(e,Yt(t,e.current)))}function Rd(){var e=Dt.current;return e===null?!0:(Ae&4194048)===Ae?Kt===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Kt:!1}function xd(){var e=q.H;return q.H=Fl,e===null?Fl:e}function wd(){var e=q.A;return q.A=Zy,e}function xu(){Pe=4,Zn||(Ae&4194048)!==Ae&&Dt.current!==null||(rl=!0),(Kn&134217727)===0&&(xa&134217727)===0||Ye===null||Pn(Ye,Ae,zt,!1)}function Dc(e,t,n){var a=qe;qe|=2;var l=xd(),i=wd();(Ye!==e||Ae!==t)&&(Au=null,fl(e,t)),t=!1;var v=Pe;e:do try{if(Le!==0&&Oe!==null){var p=Oe,A=Mt;switch(Le){case 8:wc(),v=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var N=Le;if(Le=0,Mt=null,sl(e,p,A,N),n&&rl){v=0;break e}break;default:N=Le,Le=0,Mt=null,sl(e,p,A,N)}}Fy(),v=Pe;break}catch(H){Ad(e,H)}while(!0);return t&&e.shellSuspendCounter++,_n=pa=null,qe=a,q.H=l,q.A=i,Oe===null&&(Ye=null,Ae=0,Zi()),v}function Fy(){for(;Oe!==null;)Dd(Oe)}function Py(e,t){var n=qe;qe|=2;var a=xd(),l=wd();Ye!==e||Ae!==t?(Au=null,Tu=vt()+500,fl(e,t)):rl=F(e,t);e:do try{if(Le!==0&&Oe!==null){t=Oe;var i=Mt;t:switch(Le){case 1:Le=0,Mt=null,sl(e,t,i,1);break;case 2:case 9:if(Hs(i)){Le=0,Mt=null,Cd(t);break}t=function(){Le!==2&&Le!==9||Ye!==e||(Le=7),cn(e)},i.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Hs(i)?(Le=0,Mt=null,Cd(t)):(Le=0,Mt=null,sl(e,t,i,7));break;case 5:var v=null;switch(Oe.tag){case 26:v=Oe.memoizedState;case 5:case 27:var p=Oe;if(v?y0(v):p.stateNode.complete){Le=0,Mt=null;var A=p.sibling;if(A!==null)Oe=A;else{var N=p.return;N!==null?(Oe=N,wu(N)):Oe=null}break t}}Le=0,Mt=null,sl(e,t,i,5);break;case 6:Le=0,Mt=null,sl(e,t,i,6);break;case 8:wc(),Pe=6;break e;default:throw Error(c(462))}}Wy();break}catch(H){Ad(e,H)}while(!0);return _n=pa=null,q.H=a,q.A=l,qe=n,Oe!==null?0:(Ye=null,Ae=0,Zi(),Pe)}function Wy(){for(;Oe!==null&&!kr();)Dd(Oe)}function Dd(e){var t=Ih(e.alternate,e,Dn);e.memoizedProps=e.pendingProps,t===null?wu(e):Oe=t}function Cd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zh(n,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=Zh(n,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Yo(t);default:td(n,t),t=Oe=ws(t,Dn),t=Ih(n,t,Dn)}e.memoizedProps=e.pendingProps,t===null?wu(e):Oe=t}function sl(e,t,n,a){_n=pa=null,Yo(t),el=null,kl=0;var l=t.return;try{if(Gy(e,l,t,n,Ae)){Pe=1,yu(e,Yt(n,e.current)),Oe=null;return}}catch(i){if(l!==null)throw Oe=l,i;Pe=1,yu(e,Yt(n,e.current)),Oe=null;return}t.flags&32768?(xe||a===1?e=!0:rl||(Ae&536870912)!==0?e=!1:(Zn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Dt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Md(t,e)):wu(t)}function wu(e){var t=e;do{if((t.flags&32768)!==0){Md(t,Zn);return}e=t.return;var n=Xy(t.alternate,t,Dn);if(n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Pe===0&&(Pe=5)}function Md(e,t){do{var n=Yy(e.alternate,e);if(n!==null){n.flags&=32767,Oe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=n}while(e!==null);Pe=6,Oe=null}function zd(e,t,n,a,l,i,v,p,A){e.cancelPendingCommit=null;do Du();while(rt!==0);if((qe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(i=t.lanes|t.childLanes,i|=go,De(e,n,i,v,p,A),e===Ye&&(Oe=Ye=null,Ae=0),cl=t,Fn=e,Cn=n,Ac=i,Rc=l,Ed=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nm(Wt,function(){return Ld(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null,l=K.p,K.p=2,v=qe,qe|=4;try{Qy(e,t,n)}finally{qe=v,K.p=l,q.T=a}}rt=1,Nd(),Bd(),qd()}}function Nd(){if(rt===1){rt=0;var e=Fn,t=cl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=q.T,q.T=null;var a=K.p;K.p=2;var l=qe;qe|=4;try{dd(t,e);var i=$c,v=_s(e.containerInfo),p=i.focusedElem,A=i.selectionRange;if(v!==p&&p&&p.ownerDocument&&ps(p.ownerDocument.documentElement,p)){if(A!==null&&so(p)){var N=A.start,H=A.end;if(H===void 0&&(H=N),"selectionStart"in p)p.selectionStart=N,p.selectionEnd=Math.min(H,p.value.length);else{var Y=p.ownerDocument||document,B=Y&&Y.defaultView||window;if(B.getSelection){var U=B.getSelection(),ae=p.textContent.length,fe=Math.min(A.start,ae),ke=A.end===void 0?fe:Math.min(A.end,ae);!U.extend&&fe>ke&&(v=ke,ke=fe,fe=v);var C=gs(p,fe),x=gs(p,ke);if(C&&x&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==x.node||U.focusOffset!==x.offset)){var z=Y.createRange();z.setStart(C.node,C.offset),U.removeAllRanges(),fe>ke?(U.addRange(z),U.extend(x.node,x.offset)):(z.setEnd(x.node,x.offset),U.addRange(z))}}}}for(Y=[],U=p;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<Y.length;p++){var $=Y[p];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}$u=!!Gc,$c=Gc=null}finally{qe=l,K.p=a,q.T=n}}e.current=t,rt=2}}function Bd(){if(rt===2){rt=0;var e=Fn,t=cl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=q.T,q.T=null;var a=K.p;K.p=2;var l=qe;qe|=4;try{od(e,t.alternate,t)}finally{qe=l,K.p=a,q.T=n}}rt=3}}function qd(){if(rt===4||rt===3){rt=0,Xr();var e=Fn,t=cl,n=Cn,a=Ed;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,cl=Fn=null,Ud(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(Jn=null),za(n),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(fa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=q.T,l=K.p,K.p=2,q.T=null;try{for(var i=e.onRecoverableError,v=0;v<a.length;v++){var p=a[v];i(p.value,{componentStack:p.stack})}}finally{q.T=t,K.p=l}}(Cn&3)!==0&&Du(),cn(e),l=e.pendingLanes,(n&261930)!==0&&(l&42)!==0?e===xc?ii++:(ii=0,xc=e):ii=0,ui(0)}}function Ud(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gl(t)))}function Du(){return Nd(),Bd(),qd(),Ld()}function Ld(){if(rt!==5)return!1;var e=Fn,t=Ac;Ac=0;var n=za(Cn),a=q.T,l=K.p;try{K.p=32>n?32:n,q.T=null,n=Rc,Rc=null;var i=Fn,v=Cn;if(rt=0,cl=Fn=null,Cn=0,(qe&6)!==0)throw Error(c(331));var p=qe;if(qe|=4,pd(i.current),yd(i,i.current,v,n),qe=p,ui(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(fa,i)}catch{}return!0}finally{K.p=l,q.T=a,Ud(e,t)}}function jd(e,t,n){t=Yt(n,t),t=ic(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(Ke(e,2),cn(e))}function je(e,t,n){if(e.tag===3)jd(e,e,n);else for(;t!==null;){if(t.tag===3){jd(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Jn===null||!Jn.has(a))){e=Yt(n,e),n=Hh(2),a=Xn(t,n,2),a!==null&&(Gh(n,a,t,e),Ke(a,2),cn(a));break}}t=t.return}}function Cc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Ky;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(Sc=!0,l.add(n),e=Iy.bind(null,e,t,n),t.then(e,e))}function Iy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ye===e&&(Ae&n)===n&&(Pe===4||Pe===3&&(Ae&62914560)===Ae&&300>vt()-Ou?(qe&2)===0&&fl(e,0):Oc|=n,ol===Ae&&(ol=0)),cn(e)}function Hd(e,t){t===0&&(t=Be()),e=ya(e,t),e!==null&&(Ke(e,t),cn(e))}function em(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hd(e,n)}function tm(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),Hd(e,n)}function nm(e,t){return ra(e,t)}var Cu=null,hl=null,Mc=!1,Mu=!1,zc=!1,Wn=0;function cn(e){e!==hl&&e.next===null&&(hl===null?Cu=hl=e:hl=hl.next=e),Mu=!0,Mc||(Mc=!0,lm())}function ui(e,t){if(!zc&&Mu){zc=!0;do for(var n=!1,a=Cu;a!==null;){if(e!==0){var l=a.pendingLanes;if(l===0)var i=0;else{var v=a.suspendedLanes,p=a.pingedLanes;i=(1<<31-yt(42|e)+1)-1,i&=l&~(v&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Xd(a,i))}else i=Ae,i=ve(a,a===Ye?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||F(a,i)||(n=!0,Xd(a,i));a=a.next}while(n);zc=!1}}function am(){Gd()}function Gd(){Mu=Mc=!1;var e=0;Wn!==0&&vm()&&(e=Wn);for(var t=vt(),n=null,a=Cu;a!==null;){var l=a.next,i=$d(a,t);i===0?(a.next=null,n===null?Cu=l:n.next=l,l===null&&(hl=n)):(n=a,(e!==0||(i&3)!==0)&&(Mu=!0)),a=l}rt!==0&&rt!==5||ui(e),Wn!==0&&(Wn=0)}function $d(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var v=31-yt(i),p=1<<v,A=l[v];A===-1?((p&n)===0||(p&a)!==0)&&(l[v]=le(p,t)):A<=t&&(e.expiredLanes|=p),i&=~p}if(t=Ye,n=Ae,n=ve(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&oa(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||F(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&oa(a),za(n)){case 2:case 8:n=Mi;break;case 32:n=Wt;break;case 268435456:n=Bn;break;default:n=Wt}return a=kd.bind(null,e),n=ra(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&oa(a),e.callbackPriority=2,e.callbackNode=null,2}function kd(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Du()&&e.callbackNode!==n)return null;var a=Ae;return a=ve(e,e===Ye?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Od(e,a,t),$d(e,vt()),e.callbackNode!=null&&e.callbackNode===n?kd.bind(null,e):null)}function Xd(e,t){if(Du())return null;Od(e,t,!0)}function lm(){mm(function(){(qe&6)!==0?ra(ca,am):Gd()})}function Nc(){if(Wn===0){var e=Pa;e===0&&(e=j,j<<=1,(j&261888)===0&&(j=256)),Wn=e}return Wn}function Yd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hi(""+e)}function Qd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function im(e,t,n,a,l){if(t==="submit"&&n&&n.stateNode===l){var i=Yd((l[bt]||null).action),v=a.submitter;v&&(t=(t=v[bt]||null)?Yd(t.formAction):v.getAttribute("formAction"),t!==null&&(i=t,v=null));var p=new Xi("action","action",null,a,l);e.push({event:p,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Wn!==0){var A=v?Qd(l,v):new FormData(l);Io(n,{pending:!0,data:A,method:l.method,action:i},null,A)}}else typeof i=="function"&&(p.preventDefault(),A=v?Qd(l,v):new FormData(l),Io(n,{pending:!0,data:A,method:l.method,action:i},i,A))},currentTarget:l}]})}}for(var Bc=0;Bc<mo.length;Bc++){var qc=mo[Bc],um=qc.toLowerCase(),rm=qc[0].toUpperCase()+qc.slice(1);It(um,"on"+rm)}It(Ss,"onAnimationEnd"),It(Os,"onAnimationIteration"),It(Ts,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(Oy,"onTransitionRun"),It(Ty,"onTransitionStart"),It(Ay,"onTransitionCancel"),It(As,"onTransitionEnd"),La("onMouseEnter",["mouseout","mouseover"]),La("onMouseLeave",["mouseout","mouseover"]),La("onPointerEnter",["pointerout","pointerover"]),La("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ri="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(" "),om=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ri));function Vd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],l=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var v=a.length-1;0<=v;v--){var p=a[v],A=p.instance,N=p.currentTarget;if(p=p.listener,A!==i&&l.isPropagationStopped())break e;i=p,l.currentTarget=N;try{i(l)}catch(H){Vi(H)}l.currentTarget=null,i=A}else for(v=0;v<a.length;v++){if(p=a[v],A=p.instance,N=p.currentTarget,p=p.listener,A!==i&&l.isPropagationStopped())break e;i=p,l.currentTarget=N;try{i(l)}catch(H){Vi(H)}l.currentTarget=null,i=A}}}}function Te(e,t){var n=t[Zr];n===void 0&&(n=t[Zr]=new Set);var a=e+"__bubble";n.has(a)||(Zd(t,e,2,!1),n.add(a))}function Uc(e,t,n){var a=0;t&&(a|=4),Zd(n,e,a,t)}var zu="_reactListening"+Math.random().toString(36).slice(2);function Lc(e){if(!e[zu]){e[zu]=!0,Gf.forEach(function(n){n!=="selectionchange"&&(om.has(n)||Uc(n,!1,e),Uc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zu]||(t[zu]=!0,Uc("selectionchange",!1,t))}}function Zd(e,t,n,a){switch(S0(t)){case 2:var l=Um;break;case 8:l=Lm;break;default:l=Wc}n=l.bind(null,t,n,e),l=void 0,!no||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),a?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function jc(e,t,n,a,l){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var v=a.tag;if(v===3||v===4){var p=a.stateNode.containerInfo;if(p===l)break;if(v===4)for(v=a.return;v!==null;){var A=v.tag;if((A===3||A===4)&&v.stateNode.containerInfo===l)return;v=v.return}for(;p!==null;){if(v=Ba(p),v===null)return;if(A=v.tag,A===5||A===6||A===26||A===27){a=i=v;continue e}p=p.parentNode}}a=a.return}Wf(function(){var N=i,H=eo(n),Y=[];e:{var B=Rs.get(e);if(B!==void 0){var U=Xi,ae=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":U=ty;break;case"focusin":ae="focus",U=uo;break;case"focusout":ae="blur",U=uo;break;case"beforeblur":case"afterblur":U=uo;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":U=ts;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Xv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=ly;break;case Ss:case Os:case Ts:U=Vv;break;case As:U=uy;break;case"scroll":case"scrollend":U=$v;break;case"wheel":U=oy;break;case"copy":case"cut":case"paste":U=Kv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=as;break;case"toggle":case"beforetoggle":U=fy}var fe=(t&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),C=fe?B!==null?B+"Capture":null:B;fe=[];for(var x=N,z;x!==null;){var $=x;if(z=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||z===null||C===null||($=Dl(x,C),$!=null&&fe.push(oi(x,$,z))),ke)break;x=x.return}0<fe.length&&(B=new U(B,ae,null,n,H),Y.push({event:B,listeners:fe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",B&&n!==Ir&&(ae=n.relatedTarget||n.fromElement)&&(Ba(ae)||ae[Na]))break e;if((U||B)&&(B=H.window===H?H:(B=H.ownerDocument)?B.defaultView||B.parentWindow:window,U?(ae=n.relatedTarget||n.toElement,U=N,ae=ae?Ba(ae):null,ae!==null&&(ke=_(ae),fe=ae.tag,ae!==ke||fe!==5&&fe!==27&&fe!==6)&&(ae=null)):(U=null,ae=N),U!==ae)){if(fe=ts,$="onMouseLeave",C="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(fe=as,$="onPointerLeave",C="onPointerEnter",x="pointer"),ke=U==null?B:wl(U),z=ae==null?B:wl(ae),B=new fe($,x+"leave",U,n,H),B.target=ke,B.relatedTarget=z,$=null,Ba(H)===N&&(fe=new fe(C,x+"enter",ae,n,H),fe.target=z,fe.relatedTarget=ke,$=fe),ke=$,U&&ae)t:{for(fe=cm,C=U,x=ae,z=0,$=C;$;$=fe($))z++;$=0;for(var ce=x;ce;ce=fe(ce))$++;for(;0<z-$;)C=fe(C),z--;for(;0<$-z;)x=fe(x),$--;for(;z--;){if(C===x||x!==null&&C===x.alternate){fe=C;break t}C=fe(C),x=fe(x)}fe=null}else fe=null;U!==null&&Kd(Y,B,U,fe,!1),ae!==null&&ke!==null&&Kd(Y,ke,ae,fe,!0)}}e:{if(B=N?wl(N):window,U=B.nodeName&&B.nodeName.toLowerCase(),U==="select"||U==="input"&&B.type==="file")var Ce=ss;else if(cs(B))if(hs)Ce=by;else{Ce=py;var ie=gy}else U=B.nodeName,!U||U.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?N&&Wr(N.elementType)&&(Ce=ss):Ce=_y;if(Ce&&(Ce=Ce(e,N))){fs(Y,Ce,n,H);break e}ie&&ie(e,B,N),e==="focusout"&&N&&B.type==="number"&&N.memoizedProps.value!=null&&Pr(B,"number",B.value)}switch(ie=N?wl(N):window,e){case"focusin":(cs(ie)||ie.contentEditable==="true")&&(Xa=ie,ho=N,Ll=null);break;case"focusout":Ll=ho=Xa=null;break;case"mousedown":vo=!0;break;case"contextmenu":case"mouseup":case"dragend":vo=!1,bs(Y,n,H);break;case"selectionchange":if(Sy)break;case"keydown":case"keyup":bs(Y,n,H)}var _e;if(oo)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ka?rs(e,n)&&(Re="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Re="onCompositionStart");Re&&(ls&&n.locale!=="ko"&&(ka||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ka&&(_e=If()):(Un=H,ao="value"in Un?Un.value:Un.textContent,ka=!0)),ie=Nu(N,Re),0<ie.length&&(Re=new ns(Re,e,null,n,H),Y.push({event:Re,listeners:ie}),_e?Re.data=_e:(_e=os(n),_e!==null&&(Re.data=_e)))),(_e=hy?dy(e,n):vy(e,n))&&(Re=Nu(N,"onBeforeInput"),0<Re.length&&(ie=new ns("onBeforeInput","beforeinput",null,n,H),Y.push({event:ie,listeners:Re}),ie.data=_e)),im(Y,e,N,n,H)}Vd(Y,t)})}function oi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nu(e,t){for(var n=t+"Capture",a=[];e!==null;){var l=e,i=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||i===null||(l=Dl(e,n),l!=null&&a.unshift(oi(e,l,i)),l=Dl(e,t),l!=null&&a.push(oi(e,l,i))),e.tag===3)return a;e=e.return}return[]}function cm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Kd(e,t,n,a,l){for(var i=t._reactName,v=[];n!==null&&n!==a;){var p=n,A=p.alternate,N=p.stateNode;if(p=p.tag,A!==null&&A===a)break;p!==5&&p!==26&&p!==27||N===null||(A=N,l?(N=Dl(n,i),N!=null&&v.unshift(oi(n,N,A))):l||(N=Dl(n,i),N!=null&&v.push(oi(n,N,A)))),n=n.return}v.length!==0&&e.push({event:t,listeners:v})}var fm=/\r\n?/g,sm=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(fm,`
`).replace(sm,"")}function Fd(e,t){return t=Jd(t),Jd(e)===t}function $e(e,t,n,a,l,i){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ha(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ha(e,""+a);break;case"className":Li(e,"class",a);break;case"tabIndex":Li(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Li(e,n,a);break;case"style":Ff(e,a,i);break;case"data":if(t!=="object"){Li(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Hi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&$e(e,t,"name",l.name,l,null),$e(e,t,"formEncType",l.formEncType,l,null),$e(e,t,"formMethod",l.formMethod,l,null),$e(e,t,"formTarget",l.formTarget,l,null)):($e(e,t,"encType",l.encType,l,null),$e(e,t,"method",l.method,l,null),$e(e,t,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Hi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=yn);break;case"onScroll":a!=null&&Te("scroll",e);break;case"onScrollEnd":a!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Hi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ui(e,"popover",a);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ui(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Hv.get(n)||n,Ui(e,n,a))}}function Hc(e,t,n,a,l,i){switch(n){case"style":Ff(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ha(e,a):(typeof a=="number"||typeof a=="bigint")&&Ha(e,""+a);break;case"onScroll":a!=null&&Te("scroll",e);break;case"onScrollEnd":a!=null&&Te("scrollend",e);break;case"onClick":a!=null&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$f.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),t=n.slice(2,l?n.length-7:void 0),i=e[bt]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,l),typeof a=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,l);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ui(e,n,a)}}}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var a=!1,l=!1,i;for(i in n)if(n.hasOwnProperty(i)){var v=n[i];if(v!=null)switch(i){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:$e(e,t,i,v,n,null)}}l&&$e(e,t,"srcSet",n.srcSet,n,null),a&&$e(e,t,"src",n.src,n,null);return;case"input":Te("invalid",e);var p=i=v=l=null,A=null,N=null;for(a in n)if(n.hasOwnProperty(a)){var H=n[a];if(H!=null)switch(a){case"name":l=H;break;case"type":v=H;break;case"checked":A=H;break;case"defaultChecked":N=H;break;case"value":i=H;break;case"defaultValue":p=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:$e(e,t,a,H,n,null)}}Vf(e,i,p,A,N,v,l,!1);return;case"select":Te("invalid",e),a=v=i=null;for(l in n)if(n.hasOwnProperty(l)&&(p=n[l],p!=null))switch(l){case"value":i=p;break;case"defaultValue":v=p;break;case"multiple":a=p;default:$e(e,t,l,p,n,null)}t=i,n=v,e.multiple=!!a,t!=null?ja(e,!!a,t,!1):n!=null&&ja(e,!!a,n,!0);return;case"textarea":Te("invalid",e),i=l=a=null;for(v in n)if(n.hasOwnProperty(v)&&(p=n[v],p!=null))switch(v){case"value":a=p;break;case"defaultValue":l=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(c(91));break;default:$e(e,t,v,p,n,null)}Kf(e,a,l,i);return;case"option":for(A in n)if(n.hasOwnProperty(A)&&(a=n[A],a!=null))switch(A){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:$e(e,t,A,a,n,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(a=0;a<ri.length;a++)Te(ri[a],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:$e(e,t,N,a,n,null)}return;default:if(Wr(t)){for(H in n)n.hasOwnProperty(H)&&(a=n[H],a!==void 0&&Hc(e,t,H,a,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(a=n[p],a!=null&&$e(e,t,p,a,n,null))}function hm(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,i=null,v=null,p=null,A=null,N=null,H=null;for(U in n){var Y=n[U];if(n.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":A=Y;default:a.hasOwnProperty(U)||$e(e,t,U,null,a,Y)}}for(var B in a){var U=a[B];if(Y=n[B],a.hasOwnProperty(B)&&(U!=null||Y!=null))switch(B){case"type":i=U;break;case"name":l=U;break;case"checked":N=U;break;case"defaultChecked":H=U;break;case"value":v=U;break;case"defaultValue":p=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:U!==Y&&$e(e,t,B,U,a,Y)}}Fr(e,v,p,A,N,H,i,l);return;case"select":U=v=p=B=null;for(i in n)if(A=n[i],n.hasOwnProperty(i)&&A!=null)switch(i){case"value":break;case"multiple":U=A;default:a.hasOwnProperty(i)||$e(e,t,i,null,a,A)}for(l in a)if(i=a[l],A=n[l],a.hasOwnProperty(l)&&(i!=null||A!=null))switch(l){case"value":B=i;break;case"defaultValue":p=i;break;case"multiple":v=i;default:i!==A&&$e(e,t,l,i,a,A)}t=p,n=v,a=U,B!=null?ja(e,!!n,B,!1):!!a!=!!n&&(t!=null?ja(e,!!n,t,!0):ja(e,!!n,n?[]:"",!1));return;case"textarea":U=B=null;for(p in n)if(l=n[p],n.hasOwnProperty(p)&&l!=null&&!a.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:$e(e,t,p,null,a,l)}for(v in a)if(l=a[v],i=n[v],a.hasOwnProperty(v)&&(l!=null||i!=null))switch(v){case"value":B=l;break;case"defaultValue":U=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(c(91));break;default:l!==i&&$e(e,t,v,l,a,i)}Zf(e,B,U);return;case"option":for(var ae in n)if(B=n[ae],n.hasOwnProperty(ae)&&B!=null&&!a.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:$e(e,t,ae,null,a,B)}for(A in a)if(B=a[A],U=n[A],a.hasOwnProperty(A)&&B!==U&&(B!=null||U!=null))switch(A){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:$e(e,t,A,B,a,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in n)B=n[fe],n.hasOwnProperty(fe)&&B!=null&&!a.hasOwnProperty(fe)&&$e(e,t,fe,null,a,B);for(N in a)if(B=a[N],U=n[N],a.hasOwnProperty(N)&&B!==U&&(B!=null||U!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:$e(e,t,N,B,a,U)}return;default:if(Wr(t)){for(var ke in n)B=n[ke],n.hasOwnProperty(ke)&&B!==void 0&&!a.hasOwnProperty(ke)&&Hc(e,t,ke,void 0,a,B);for(H in a)B=a[H],U=n[H],!a.hasOwnProperty(H)||B===U||B===void 0&&U===void 0||Hc(e,t,H,B,a,U);return}}for(var C in n)B=n[C],n.hasOwnProperty(C)&&B!=null&&!a.hasOwnProperty(C)&&$e(e,t,C,null,a,B);for(Y in a)B=a[Y],U=n[Y],!a.hasOwnProperty(Y)||B===U||B==null&&U==null||$e(e,t,Y,B,a,U)}function Pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dm(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],i=l.transferSize,v=l.initiatorType,p=l.duration;if(i&&p&&Pd(v)){for(v=0,p=l.responseEnd,a+=1;a<n.length;a++){var A=n[a],N=A.startTime;if(N>p)break;var H=A.transferSize,Y=A.initiatorType;H&&Pd(Y)&&(A=A.responseEnd,v+=H*(A<p?1:(p-N)/(A-N)))}if(--a,t+=8*(i+v)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Gc=null,$c=null;function Bu(e){return e.nodeType===9?e:e.ownerDocument}function Wd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Id(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xc=null;function vm(){var e=window.event;return e&&e.type==="popstate"?e===Xc?!1:(Xc=e,!0):(Xc=null,!1)}var e0=typeof setTimeout=="function"?setTimeout:void 0,ym=typeof clearTimeout=="function"?clearTimeout:void 0,t0=typeof Promise=="function"?Promise:void 0,mm=typeof queueMicrotask=="function"?queueMicrotask:typeof t0<"u"?function(e){return t0.resolve(null).then(e).catch(gm)}:e0;function gm(e){setTimeout(function(){throw e})}function In(e){return e==="head"}function n0(e,t){var n=t,a=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(l),ml(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ci(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ci(n);for(var i=n.firstChild;i;){var v=i.nextSibling,p=i.nodeName;i[xl]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=v}}else n==="body"&&ci(e.ownerDocument.body);n=l}while(n);ml(t)}function a0(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Yc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Yc(n),Kr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function pm(e,t,n,a){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[xl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function _m(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Jt(e.nextSibling),e===null))return null;return e}function l0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function Qc(e){return e.data==="$?"||e.data==="$~"}function Vc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bm(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zc=null;function i0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Jt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function u0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function r0(e,t,n){switch(t=Bu(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Kr(e)}var Ft=new Map,o0=new Set;function qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=K.d;K.d={f:Em,r:Sm,D:Om,C:Tm,L:Am,m:Rm,X:wm,S:xm,M:Dm};function Em(){var e=Mn.f(),t=Ru();return e||t}function Sm(e){var t=qa(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Mn.r(e)}var dl=typeof document>"u"?null:document;function c0(e,t,n){var a=dl;if(a&&typeof t=="string"&&t){var l=kt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),o0.has(l)||(o0.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),dt(t,"link",e),ot(t),a.head.appendChild(t)))}}function Om(e){Mn.D(e),c0("dns-prefetch",e,null)}function Tm(e,t){Mn.C(e,t),c0("preconnect",e,t)}function Am(e,t,n){Mn.L(e,t,n);var a=dl;if(a&&e&&t){var l='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+kt(n.imageSizes)+'"]')):l+='[href="'+kt(e)+'"]';var i=l;switch(t){case"style":i=vl(e);break;case"script":i=yl(e)}Ft.has(i)||(e=h({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ft.set(i,e),a.querySelector(l)!==null||t==="style"&&a.querySelector(fi(i))||t==="script"&&a.querySelector(si(i))||(t=a.createElement("link"),dt(t,"link",e),ot(t),a.head.appendChild(t)))}}function Rm(e,t){Mn.m(e,t);var n=dl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+kt(a)+'"][href="'+kt(e)+'"]',i=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=yl(e)}if(!Ft.has(i)&&(e=h({rel:"modulepreload",href:e},t),Ft.set(i,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(si(i)))return}a=n.createElement("link"),dt(a,"link",e),ot(a),n.head.appendChild(a)}}}function xm(e,t,n){Mn.S(e,t,n);var a=dl;if(a&&e){var l=Ua(a).hoistableStyles,i=vl(e);t=t||"default";var v=l.get(i);if(!v){var p={loading:0,preload:null};if(v=a.querySelector(fi(i)))p.loading=5;else{e=h({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ft.get(i))&&Kc(e,n);var A=v=a.createElement("link");ot(A),dt(A,"link",e),A._p=new Promise(function(N,H){A.onload=N,A.onerror=H}),A.addEventListener("load",function(){p.loading|=1}),A.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Uu(v,t,a)}v={type:"stylesheet",instance:v,count:1,state:p},l.set(i,v)}}}function wm(e,t){Mn.X(e,t);var n=dl;if(n&&e){var a=Ua(n).hoistableScripts,l=yl(e),i=a.get(l);i||(i=n.querySelector(si(l)),i||(e=h({src:e,async:!0},t),(t=Ft.get(l))&&Jc(e,t),i=n.createElement("script"),ot(i),dt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function Dm(e,t){Mn.M(e,t);var n=dl;if(n&&e){var a=Ua(n).hoistableScripts,l=yl(e),i=a.get(l);i||(i=n.querySelector(si(l)),i||(e=h({src:e,async:!0,type:"module"},t),(t=Ft.get(l))&&Jc(e,t),i=n.createElement("script"),ot(i),dt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function f0(e,t,n,a){var l=(l=Ee.current)?qu(l):null;if(!l)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=vl(n.href),n=Ua(l).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=vl(n.href);var i=Ua(l).hoistableStyles,v=i.get(e);if(v||(l=l.ownerDocument||l,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,v),(i=l.querySelector(fi(e)))&&!i._p&&(v.instance=i,v.state.loading=5),Ft.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ft.set(e,n),i||Cm(l,e,n,v.state))),t&&a===null)throw Error(c(528,""));return v}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yl(n),n=Ua(l).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function vl(e){return'href="'+kt(e)+'"'}function fi(e){return'link[rel="stylesheet"]['+e+"]"}function s0(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Cm(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",n),ot(t),e.head.appendChild(t))}function yl(e){return'[src="'+kt(e)+'"]'}function si(e){return"script[async]"+e}function h0(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kt(n.href)+'"]');if(a)return t.instance=a,ot(a),a;var l=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ot(a),dt(a,"style",l),Uu(a,n.precedence,e),t.instance=a;case"stylesheet":l=vl(n.href);var i=e.querySelector(fi(l));if(i)return t.state.loading|=4,t.instance=i,ot(i),i;a=s0(n),(l=Ft.get(l))&&Kc(a,l),i=(e.ownerDocument||e).createElement("link"),ot(i);var v=i;return v._p=new Promise(function(p,A){v.onload=p,v.onerror=A}),dt(i,"link",a),t.state.loading|=4,Uu(i,n.precedence,e),t.instance=i;case"script":return i=yl(n.src),(l=e.querySelector(si(i)))?(t.instance=l,ot(l),l):(a=n,(l=Ft.get(i))&&(a=h({},n),Jc(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),ot(l),dt(l,"link",a),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Uu(a,n.precedence,e));return t.instance}function Uu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,i=l,v=0;v<a.length;v++){var p=a[v];if(p.dataset.precedence===t)i=p;else if(i!==l)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Lu=null;function d0(e,t,n){if(Lu===null){var a=new Map,l=Lu=new Map;l.set(n,a)}else l=Lu,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var i=n[l];if(!(i[xl]||i[ut]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var v=i.getAttribute(t)||"";v=e+v;var p=a.get(v);p?p.push(i):a.set(v,[i])}}return a}function v0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Mm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function y0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function zm(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=vl(a.href),i=t.querySelector(fi(l));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ju.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,ot(i);return}i=t.ownerDocument||t,a=s0(a),(l=Ft.get(l))&&Kc(a,l),i=i.createElement("link"),ot(i);var v=i;v._p=new Promise(function(p,A){v.onload=p,v.onerror=A}),dt(i,"link",a),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ju.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Fc=0;function Nm(e,t){return e.stylesheets&&e.count===0&&Gu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Fc===0&&(Fc=62500*dm());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Fc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hu=null;function Gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hu=new Map,t.forEach(Bm,e),Hu=null,ju.call(e))}function Bm(e,t){if(!(t.state.loading&4)){var n=Hu.get(e);if(n)var a=n.get(null);else{n=new Map,Hu.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<l.length;i++){var v=l[i];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(n.set(v.dataset.precedence,v),a=v)}a&&n.set(null,a)}l=t.instance,v=l.getAttribute("data-precedence"),i=n.get(v)||a,i===a&&n.set(null,l),n.set(v,l),this.count++,a=ju.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),i?i.parentNode.insertBefore(l,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var hi={$$typeof:V,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function qm(e,t,n,a,l,i,v,p,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=me(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=me(0),this.hiddenUpdates=me(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=i,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function m0(e,t,n,a,l,i,v,p,A,N,H,Y){return e=new qm(e,t,n,v,A,N,H,Y,p),t=1,i===!0&&(t|=24),i=wt(3,null,null,t),e.current=i,i.stateNode=e,t=Do(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},No(i),e}function g0(e){return e?(e=Va,e):Va}function p0(e,t,n,a,l,i){l=g0(l),a.context===null?a.context=l:a.pendingContext=l,a=kn(t),a.payload={element:n},i=i===void 0?null:i,i!==null&&(a.callback=i),n=Xn(e,a,t),n!==null&&(Rt(n,e,t),Yl(n,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pc(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function b0(e){if(e.tag===13||e.tag===31){var t=ya(e,67108864);t!==null&&Rt(t,e,67108864),Pc(e,67108864)}}function E0(e){if(e.tag===13||e.tag===31){var t=Nt();t=qn(t);var n=ya(e,t);n!==null&&Rt(n,e,t),Pc(e,t)}}var $u=!0;function Um(e,t,n,a){var l=q.T;q.T=null;var i=K.p;try{K.p=2,Wc(e,t,n,a)}finally{K.p=i,q.T=l}}function Lm(e,t,n,a){var l=q.T;q.T=null;var i=K.p;try{K.p=8,Wc(e,t,n,a)}finally{K.p=i,q.T=l}}function Wc(e,t,n,a){if($u){var l=Ic(a);if(l===null)jc(e,t,a,ku,n),O0(e,a);else if(Hm(l,e,t,n,a))a.stopPropagation();else if(O0(e,a),t&4&&-1<jm.indexOf(e)){for(;l!==null;){var i=qa(l);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var v=X(i.pendingLanes);if(v!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;v;){var A=1<<31-yt(v);p.entanglements[1]|=A,v&=~A}cn(i),(qe&6)===0&&(Tu=vt()+500,ui(0))}}break;case 31:case 13:p=ya(i,2),p!==null&&Rt(p,i,2),Ru(),Pc(i,2)}if(i=Ic(a),i===null&&jc(e,t,a,ku,n),i===l)break;l=i}l!==null&&a.stopPropagation()}else jc(e,t,a,null,n)}}function Ic(e){return e=eo(e),ef(e)}var ku=null;function ef(e){if(ku=null,e=Ba(e),e!==null){var t=_(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=E(t),e!==null)return e;e=null}else if(n===31){if(e=b(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ku=e,null}function S0(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Yr()){case ca:return 2;case Mi:return 8;case Wt:case Al:return 32;case Bn:return 268435456;default:return 32}default:return 32}}var tf=!1,ea=null,ta=null,na=null,di=new Map,vi=new Map,aa=[],jm="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".split(" ");function O0(e,t){switch(e){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vi.delete(t.pointerId)}}function yi(e,t,n,a,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[l]},t!==null&&(t=qa(t),t!==null&&b0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Hm(e,t,n,a,l){switch(t){case"focusin":return ea=yi(ea,e,t,n,a,l),!0;case"dragenter":return ta=yi(ta,e,t,n,a,l),!0;case"mouseover":return na=yi(na,e,t,n,a,l),!0;case"pointerover":var i=l.pointerId;return di.set(i,yi(di.get(i)||null,e,t,n,a,l)),!0;case"gotpointercapture":return i=l.pointerId,vi.set(i,yi(vi.get(i)||null,e,t,n,a,l)),!0}return!1}function T0(e){var t=Ba(e.target);if(t!==null){var n=_(t);if(n!==null){if(t=n.tag,t===13){if(t=E(n),t!==null){e.blockedOn=t,qi(e.priority,function(){E0(n)});return}}else if(t===31){if(t=b(n),t!==null){e.blockedOn=t,qi(e.priority,function(){E0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ic(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ir=a,n.target.dispatchEvent(a),Ir=null}else return t=qa(n),t!==null&&b0(t),e.blockedOn=n,!1;t.shift()}return!0}function A0(e,t,n){Xu(e)&&n.delete(t)}function Gm(){tf=!1,ea!==null&&Xu(ea)&&(ea=null),ta!==null&&Xu(ta)&&(ta=null),na!==null&&Xu(na)&&(na=null),di.forEach(A0),vi.forEach(A0)}function Yu(e,t){e.blockedOn===t&&(e.blockedOn=null,tf||(tf=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,Gm)))}var Qu=null;function R0(e){Qu!==e&&(Qu=e,d.unstable_scheduleCallback(d.unstable_NormalPriority,function(){Qu===e&&(Qu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],l=e[t+2];if(typeof a!="function"){if(ef(a||n)===null)continue;break}var i=qa(n);i!==null&&(e.splice(t,3),t-=3,Io(i,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function ml(e){function t(A){return Yu(A,e)}ea!==null&&Yu(ea,e),ta!==null&&Yu(ta,e),na!==null&&Yu(na,e),di.forEach(t),vi.forEach(t);for(var n=0;n<aa.length;n++){var a=aa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<aa.length&&(n=aa[0],n.blockedOn===null);)T0(n),n.blockedOn===null&&aa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],i=n[a+1],v=l[bt]||null;if(typeof i=="function")v||R0(n);else if(v){var p=null;if(i&&i.hasAttribute("formAction")){if(l=i,v=i[bt]||null)p=v.formAction;else if(ef(l)!==null)continue}else p=v.action;typeof p=="function"?n[a+1]=p:(n.splice(a,3),a-=3),R0(n)}}}function x0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(v){return l=v})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function nf(e){this._internalRoot=e}Vu.prototype.render=nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,a=Nt();p0(n,a,e,t,null,null)},Vu.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;p0(e.current,2,null,e,null,null),Ru(),t[Na]=null}};function Vu(e){this._internalRoot=e}Vu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<aa.length&&t!==0&&t<aa[n].priority;n++);aa.splice(n,0,e),n===0&&T0(e)}};var w0=r.version;if(w0!=="19.2.0")throw Error(c(527,w0,"19.2.0"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=u(t),e=e!==null?f(e):null,e=e===null?null:e.stateNode,e};var $m={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{fa=Zu.inject($m),gt=Zu}catch{}}return gi.createRoot=function(e,t){if(!m(e))throw Error(c(299));var n=!1,a="",l=qh,i=Uh,v=Lh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=m0(e,1,!1,null,null,n,a,null,l,i,v,x0),e[Na]=t.current,Lc(e),new nf(t)},gi.hydrateRoot=function(e,t,n){if(!m(e))throw Error(c(299));var a=!1,l="",i=qh,v=Uh,p=Lh,A=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(v=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(A=n.formState)),t=m0(e,1,!0,t,n??null,a,l,A,i,v,p,x0),t.context=g0(null),n=t.current,a=Nt(),a=qn(a),l=kn(a),l.callback=null,Xn(n,l,a),n=a,t.current.lanes=n,Ke(t,n),cn(t),e[Na]=t.current,Lc(e),new Vu(t)},gi.version="19.2.0",gi}var j0;function Pm(){if(j0)return uf.exports;j0=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(r){console.error(r)}}return d(),uf.exports=Fm(),uf.exports}var Wm=Pm();const sn=Object.create(null);sn.open="0";sn.close="1";sn.ping="2";sn.pong="3";sn.message="4";sn.upgrade="5";sn.noop="6";const Nr=Object.create(null);Object.keys(sn).forEach(d=>{Nr[sn[d]]=d});const xf={type:"error",data:"parser error"},rv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ov=typeof ArrayBuffer=="function",cv=d=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(d):d&&d.buffer instanceof ArrayBuffer,Nf=({type:d,data:r},o,c)=>rv&&r instanceof Blob?o?c(r):H0(r,c):ov&&(r instanceof ArrayBuffer||cv(r))?o?c(r):H0(new Blob([r]),c):c(sn[d]+(r||"")),H0=(d,r)=>{const o=new FileReader;return o.onload=function(){const c=o.result.split(",")[1];r("b"+(c||""))},o.readAsDataURL(d)};function G0(d){return d instanceof Uint8Array?d:d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d.buffer,d.byteOffset,d.byteLength)}let ff;function Im(d,r){if(rv&&d.data instanceof Blob)return d.data.arrayBuffer().then(G0).then(r);if(ov&&(d.data instanceof ArrayBuffer||cv(d.data)))return r(G0(d.data));Nf(d,!1,o=>{ff||(ff=new TextEncoder),r(ff.encode(o))})}const $0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ai=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let d=0;d<$0.length;d++)Ai[$0.charCodeAt(d)]=d;const eg=d=>{let r=d.length*.75,o=d.length,c,m=0,_,E,b,y;d[d.length-1]==="="&&(r--,d[d.length-2]==="="&&r--);const u=new ArrayBuffer(r),f=new Uint8Array(u);for(c=0;c<o;c+=4)_=Ai[d.charCodeAt(c)],E=Ai[d.charCodeAt(c+1)],b=Ai[d.charCodeAt(c+2)],y=Ai[d.charCodeAt(c+3)],f[m++]=_<<2|E>>4,f[m++]=(E&15)<<4|b>>2,f[m++]=(b&3)<<6|y&63;return u},tg=typeof ArrayBuffer=="function",Bf=(d,r)=>{if(typeof d!="string")return{type:"message",data:fv(d,r)};const o=d.charAt(0);return o==="b"?{type:"message",data:ng(d.substring(1),r)}:Nr[o]?d.length>1?{type:Nr[o],data:d.substring(1)}:{type:Nr[o]}:xf},ng=(d,r)=>{if(tg){const o=eg(d);return fv(o,r)}else return{base64:!0,data:d}},fv=(d,r)=>{switch(r){case"blob":return d instanceof Blob?d:new Blob([d]);case"arraybuffer":default:return d instanceof ArrayBuffer?d:d.buffer}},sv="",ag=(d,r)=>{const o=d.length,c=new Array(o);let m=0;d.forEach((_,E)=>{Nf(_,!1,b=>{c[E]=b,++m===o&&r(c.join(sv))})})},lg=(d,r)=>{const o=d.split(sv),c=[];for(let m=0;m<o.length;m++){const _=Bf(o[m],r);if(c.push(_),_.type==="error")break}return c};function ig(){return new TransformStream({transform(d,r){Im(d,o=>{const c=o.length;let m;if(c<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,c);else if(c<65536){m=new Uint8Array(3);const _=new DataView(m.buffer);_.setUint8(0,126),_.setUint16(1,c)}else{m=new Uint8Array(9);const _=new DataView(m.buffer);_.setUint8(0,127),_.setBigUint64(1,BigInt(c))}d.data&&typeof d.data!="string"&&(m[0]|=128),r.enqueue(m),r.enqueue(o)})}})}let sf;function Ku(d){return d.reduce((r,o)=>r+o.length,0)}function Ju(d,r){if(d[0].length===r)return d.shift();const o=new Uint8Array(r);let c=0;for(let m=0;m<r;m++)o[m]=d[0][c++],c===d[0].length&&(d.shift(),c=0);return d.length&&c<d[0].length&&(d[0]=d[0].slice(c)),o}function ug(d,r){sf||(sf=new TextDecoder);const o=[];let c=0,m=-1,_=!1;return new TransformStream({transform(E,b){for(o.push(E);;){if(c===0){if(Ku(o)<1)break;const y=Ju(o,1);_=(y[0]&128)===128,m=y[0]&127,m<126?c=3:m===126?c=1:c=2}else if(c===1){if(Ku(o)<2)break;const y=Ju(o,2);m=new DataView(y.buffer,y.byteOffset,y.length).getUint16(0),c=3}else if(c===2){if(Ku(o)<8)break;const y=Ju(o,8),u=new DataView(y.buffer,y.byteOffset,y.length),f=u.getUint32(0);if(f>Math.pow(2,21)-1){b.enqueue(xf);break}m=f*Math.pow(2,32)+u.getUint32(4),c=3}else{if(Ku(o)<m)break;const y=Ju(o,m);b.enqueue(Bf(_?y:sf.decode(y),r)),c=0}if(m===0||m>d){b.enqueue(xf);break}}}})}const hv=4;function it(d){if(d)return rg(d)}function rg(d){for(var r in it.prototype)d[r]=it.prototype[r];return d}it.prototype.on=it.prototype.addEventListener=function(d,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+d]=this._callbacks["$"+d]||[]).push(r),this};it.prototype.once=function(d,r){function o(){this.off(d,o),r.apply(this,arguments)}return o.fn=r,this.on(d,o),this};it.prototype.off=it.prototype.removeListener=it.prototype.removeAllListeners=it.prototype.removeEventListener=function(d,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+d];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+d],this;for(var c,m=0;m<o.length;m++)if(c=o[m],c===r||c.fn===r){o.splice(m,1);break}return o.length===0&&delete this._callbacks["$"+d],this};it.prototype.emit=function(d){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),o=this._callbacks["$"+d],c=1;c<arguments.length;c++)r[c-1]=arguments[c];if(o){o=o.slice(0);for(var c=0,m=o.length;c<m;++c)o[c].apply(this,r)}return this};it.prototype.emitReserved=it.prototype.emit;it.prototype.listeners=function(d){return this._callbacks=this._callbacks||{},this._callbacks["$"+d]||[]};it.prototype.hasListeners=function(d){return!!this.listeners(d).length};const Lr=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,o)=>o(r,0),Pt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),og="arraybuffer";function dv(d,...r){return r.reduce((o,c)=>(d.hasOwnProperty(c)&&(o[c]=d[c]),o),{})}const cg=Pt.setTimeout,fg=Pt.clearTimeout;function jr(d,r){r.useNativeTimers?(d.setTimeoutFn=cg.bind(Pt),d.clearTimeoutFn=fg.bind(Pt)):(d.setTimeoutFn=Pt.setTimeout.bind(Pt),d.clearTimeoutFn=Pt.clearTimeout.bind(Pt))}const sg=1.33;function hg(d){return typeof d=="string"?dg(d):Math.ceil((d.byteLength||d.size)*sg)}function dg(d){let r=0,o=0;for(let c=0,m=d.length;c<m;c++)r=d.charCodeAt(c),r<128?o+=1:r<2048?o+=2:r<55296||r>=57344?o+=3:(c++,o+=4);return o}function vv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function vg(d){let r="";for(let o in d)d.hasOwnProperty(o)&&(r.length&&(r+="&"),r+=encodeURIComponent(o)+"="+encodeURIComponent(d[o]));return r}function yg(d){let r={},o=d.split("&");for(let c=0,m=o.length;c<m;c++){let _=o[c].split("=");r[decodeURIComponent(_[0])]=decodeURIComponent(_[1])}return r}class mg extends Error{constructor(r,o,c){super(r),this.description=o,this.context=c,this.type="TransportError"}}class qf extends it{constructor(r){super(),this.writable=!1,jr(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,o,c){return super.emitReserved("error",new mg(r,o,c)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const o=Bf(r,this.socket.binaryType);this.onPacket(o)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,o={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(o)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const o=vg(r);return o.length?"?"+o:""}}class gg extends qf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const o=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let c=0;this._polling&&(c++,this.once("pollComplete",function(){--c||o()})),this.writable||(c++,this.once("drain",function(){--c||o()}))}else o()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const o=c=>{if(this.readyState==="opening"&&c.type==="open"&&this.onOpen(),c.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(c)};lg(r,this.socket.binaryType).forEach(o),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,ag(r,o=>{this.doWrite(o,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",o=this.query||{};return this.opts.timestampRequests!==!1&&(o[this.opts.timestampParam]=vv()),!this.supportsBinary&&!o.sid&&(o.b64=1),this.createUri(r,o)}}let yv=!1;try{yv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const pg=yv;function _g(){}class bg extends gg{constructor(r){if(super(r),typeof location<"u"){const o=location.protocol==="https:";let c=location.port;c||(c=o?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||c!==r.port}}doWrite(r,o){const c=this.request({method:"POST",data:r});c.on("success",o),c.on("error",(m,_)=>{this.onError("xhr post error",m,_)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(o,c)=>{this.onError("xhr poll error",o,c)}),this.pollXhr=r}}class fn extends it{constructor(r,o,c){super(),this.createRequest=r,jr(this,c),this._opts=c,this._method=c.method||"GET",this._uri=o,this._data=c.data!==void 0?c.data:null,this._create()}_create(){var r;const o=dv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");o.xdomain=!!this._opts.xd;const c=this._xhr=this.createRequest(o);try{c.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){c.setDisableHeaderCheck&&c.setDisableHeaderCheck(!0);for(let m in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(m)&&c.setRequestHeader(m,this._opts.extraHeaders[m])}}catch{}if(this._method==="POST")try{c.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{c.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(c),"withCredentials"in c&&(c.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(c.timeout=this._opts.requestTimeout),c.onreadystatechange=()=>{var m;c.readyState===3&&((m=this._opts.cookieJar)===null||m===void 0||m.parseCookies(c.getResponseHeader("set-cookie"))),c.readyState===4&&(c.status===200||c.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof c.status=="number"?c.status:0)},0))},c.send(this._data)}catch(m){this.setTimeoutFn(()=>{this._onError(m)},0);return}typeof document<"u"&&(this._index=fn.requestsCount++,fn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=_g,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete fn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}fn.requestsCount=0;fn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k0);else if(typeof addEventListener=="function"){const d="onpagehide"in Pt?"pagehide":"unload";addEventListener(d,k0,!1)}}function k0(){for(let d in fn.requests)fn.requests.hasOwnProperty(d)&&fn.requests[d].abort()}const Eg=(function(){const d=mv({xdomain:!1});return d&&d.responseType!==null})();class Sg extends bg{constructor(r){super(r);const o=r&&r.forceBase64;this.supportsBinary=Eg&&!o}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new fn(mv,this.uri(),r)}}function mv(d){const r=d.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||pg))return new XMLHttpRequest}catch{}if(!r)try{return new Pt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const gv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Og extends qf{get name(){return"websocket"}doOpen(){const r=this.uri(),o=this.opts.protocols,c=gv?{}:dv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,o,c)}catch(m){return this.emitReserved("error",m)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let o=0;o<r.length;o++){const c=r[o],m=o===r.length-1;Nf(c,this.supportsBinary,_=>{try{this.doWrite(c,_)}catch{}m&&Lr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",o=this.query||{};return this.opts.timestampRequests&&(o[this.opts.timestampParam]=vv()),this.supportsBinary||(o.b64=1),this.createUri(r,o)}}const hf=Pt.WebSocket||Pt.MozWebSocket;class Tg extends Og{createSocket(r,o,c){return gv?new hf(r,o,c):o?new hf(r,o):new hf(r)}doWrite(r,o){this.ws.send(o)}}class Ag extends qf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const o=ug(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=r.readable.pipeThrough(o).getReader(),m=ig();m.readable.pipeTo(r.writable),this._writer=m.writable.getWriter();const _=()=>{c.read().then(({done:b,value:y})=>{b||(this.onPacket(y),_())}).catch(b=>{})};_();const E={type:"open"};this.query.sid&&(E.data=`{"sid":"${this.query.sid}"}`),this._writer.write(E).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let o=0;o<r.length;o++){const c=r[o],m=o===r.length-1;this._writer.write(c).then(()=>{m&&Lr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const Rg={websocket:Tg,webtransport:Ag,polling:Sg},xg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function wf(d){if(d.length>8e3)throw"URI too long";const r=d,o=d.indexOf("["),c=d.indexOf("]");o!=-1&&c!=-1&&(d=d.substring(0,o)+d.substring(o,c).replace(/:/g,";")+d.substring(c,d.length));let m=xg.exec(d||""),_={},E=14;for(;E--;)_[wg[E]]=m[E]||"";return o!=-1&&c!=-1&&(_.source=r,_.host=_.host.substring(1,_.host.length-1).replace(/;/g,":"),_.authority=_.authority.replace("[","").replace("]","").replace(/;/g,":"),_.ipv6uri=!0),_.pathNames=Dg(_,_.path),_.queryKey=Cg(_,_.query),_}function Dg(d,r){const o=/\/{2,9}/g,c=r.replace(o,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&c.splice(0,1),r.slice(-1)=="/"&&c.splice(c.length-1,1),c}function Cg(d,r){const o={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,m,_){m&&(o[m]=_)}),o}const Df=typeof addEventListener=="function"&&typeof removeEventListener=="function",Br=[];Df&&addEventListener("offline",()=>{Br.forEach(d=>d())},!1);class ia extends it{constructor(r,o){if(super(),this.binaryType=og,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(o=r,r=null),r){const c=wf(r);o.hostname=c.host,o.secure=c.protocol==="https"||c.protocol==="wss",o.port=c.port,c.query&&(o.query=c.query)}else o.host&&(o.hostname=wf(o.host).host);jr(this,o),this.secure=o.secure!=null?o.secure:typeof location<"u"&&location.protocol==="https:",o.hostname&&!o.port&&(o.port=this.secure?"443":"80"),this.hostname=o.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=o.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},o.transports.forEach(c=>{const m=c.prototype.name;this.transports.push(m),this._transportsByName[m]=c}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},o),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yg(this.opts.query)),Df&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Br.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const o=Object.assign({},this.opts.query);o.EIO=hv,o.transport=r,this.id&&(o.sid=this.id);const c=Object.assign({},this.opts,{query:o,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](c)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&ia.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const o=this.createTransport(r);o.open(),this.setTransport(o)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",o=>this._onClose("transport close",o))}onOpen(){this.readyState="open",ia.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const o=new Error("server error");o.code=r.data,this._onError(o);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let o=1;for(let c=0;c<this.writeBuffer.length;c++){const m=this.writeBuffer[c].data;if(m&&(o+=hg(m)),c>0&&o>this._maxPayload)return this.writeBuffer.slice(0,c);o+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Lr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,o,c){return this._sendPacket("message",r,o,c),this}send(r,o,c){return this._sendPacket("message",r,o,c),this}_sendPacket(r,o,c,m){if(typeof o=="function"&&(m=o,o=void 0),typeof c=="function"&&(m=c,c=null),this.readyState==="closing"||this.readyState==="closed")return;c=c||{},c.compress=c.compress!==!1;const _={type:r,data:o,options:c};this.emitReserved("packetCreate",_),this.writeBuffer.push(_),m&&this.once("flush",m),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},o=()=>{this.off("upgrade",o),this.off("upgradeError",o),r()},c=()=>{this.once("upgrade",o),this.once("upgradeError",o)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?c():r()}):this.upgrading?c():r()),this}_onError(r){if(ia.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,o){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Df&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const c=Br.indexOf(this._offlineEventListener);c!==-1&&Br.splice(c,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,o),this.writeBuffer=[],this._prevBufferLen=0}}}ia.protocol=hv;class Mg extends ia{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let o=this.createTransport(r),c=!1;ia.priorWebsocketSuccess=!1;const m=()=>{c||(o.send([{type:"ping",data:"probe"}]),o.once("packet",h=>{if(!c)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",o),!o)return;ia.priorWebsocketSuccess=o.name==="websocket",this.transport.pause(()=>{c||this.readyState!=="closed"&&(f(),this.setTransport(o),o.send([{type:"upgrade"}]),this.emitReserved("upgrade",o),o=null,this.upgrading=!1,this.flush())})}else{const s=new Error("probe error");s.transport=o.name,this.emitReserved("upgradeError",s)}}))};function _(){c||(c=!0,f(),o.close(),o=null)}const E=h=>{const s=new Error("probe error: "+h);s.transport=o.name,_(),this.emitReserved("upgradeError",s)};function b(){E("transport closed")}function y(){E("socket closed")}function u(h){o&&h.name!==o.name&&_()}const f=()=>{o.removeListener("open",m),o.removeListener("error",E),o.removeListener("close",b),this.off("close",y),this.off("upgrading",u)};o.once("open",m),o.once("error",E),o.once("close",b),this.once("close",y),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{c||o.open()},200):o.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const o=[];for(let c=0;c<r.length;c++)~this.transports.indexOf(r[c])&&o.push(r[c]);return o}}let zg=class extends Mg{constructor(r,o={}){const c=typeof r=="object"?r:o;(!c.transports||c.transports&&typeof c.transports[0]=="string")&&(c.transports=(c.transports||["polling","websocket","webtransport"]).map(m=>Rg[m]).filter(m=>!!m)),super(r,c)}};function Ng(d,r="",o){let c=d;o=o||typeof location<"u"&&location,d==null&&(d=o.protocol+"//"+o.host),typeof d=="string"&&(d.charAt(0)==="/"&&(d.charAt(1)==="/"?d=o.protocol+d:d=o.host+d),/^(https?|wss?):\/\//.test(d)||(typeof o<"u"?d=o.protocol+"//"+d:d="https://"+d),c=wf(d)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const _=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+_+":"+c.port+r,c.href=c.protocol+"://"+_+(o&&o.port===c.port?"":":"+c.port),c}const Bg=typeof ArrayBuffer=="function",qg=d=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(d):d.buffer instanceof ArrayBuffer,pv=Object.prototype.toString,Ug=typeof Blob=="function"||typeof Blob<"u"&&pv.call(Blob)==="[object BlobConstructor]",Lg=typeof File=="function"||typeof File<"u"&&pv.call(File)==="[object FileConstructor]";function Uf(d){return Bg&&(d instanceof ArrayBuffer||qg(d))||Ug&&d instanceof Blob||Lg&&d instanceof File}function qr(d,r){if(!d||typeof d!="object")return!1;if(Array.isArray(d)){for(let o=0,c=d.length;o<c;o++)if(qr(d[o]))return!0;return!1}if(Uf(d))return!0;if(d.toJSON&&typeof d.toJSON=="function"&&arguments.length===1)return qr(d.toJSON(),!0);for(const o in d)if(Object.prototype.hasOwnProperty.call(d,o)&&qr(d[o]))return!0;return!1}function jg(d){const r=[],o=d.data,c=d;return c.data=Cf(o,r),c.attachments=r.length,{packet:c,buffers:r}}function Cf(d,r){if(!d)return d;if(Uf(d)){const o={_placeholder:!0,num:r.length};return r.push(d),o}else if(Array.isArray(d)){const o=new Array(d.length);for(let c=0;c<d.length;c++)o[c]=Cf(d[c],r);return o}else if(typeof d=="object"&&!(d instanceof Date)){const o={};for(const c in d)Object.prototype.hasOwnProperty.call(d,c)&&(o[c]=Cf(d[c],r));return o}return d}function Hg(d,r){return d.data=Mf(d.data,r),delete d.attachments,d}function Mf(d,r){if(!d)return d;if(d&&d._placeholder===!0){if(typeof d.num=="number"&&d.num>=0&&d.num<r.length)return r[d.num];throw new Error("illegal attachments")}else if(Array.isArray(d))for(let o=0;o<d.length;o++)d[o]=Mf(d[o],r);else if(typeof d=="object")for(const o in d)Object.prototype.hasOwnProperty.call(d,o)&&(d[o]=Mf(d[o],r));return d}const Gg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],$g=5;var we;(function(d){d[d.CONNECT=0]="CONNECT",d[d.DISCONNECT=1]="DISCONNECT",d[d.EVENT=2]="EVENT",d[d.ACK=3]="ACK",d[d.CONNECT_ERROR=4]="CONNECT_ERROR",d[d.BINARY_EVENT=5]="BINARY_EVENT",d[d.BINARY_ACK=6]="BINARY_ACK"})(we||(we={}));class kg{constructor(r){this.replacer=r}encode(r){return(r.type===we.EVENT||r.type===we.ACK)&&qr(r)?this.encodeAsBinary({type:r.type===we.EVENT?we.BINARY_EVENT:we.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let o=""+r.type;return(r.type===we.BINARY_EVENT||r.type===we.BINARY_ACK)&&(o+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(o+=r.nsp+","),r.id!=null&&(o+=r.id),r.data!=null&&(o+=JSON.stringify(r.data,this.replacer)),o}encodeAsBinary(r){const o=jg(r),c=this.encodeAsString(o.packet),m=o.buffers;return m.unshift(c),m}}function X0(d){return Object.prototype.toString.call(d)==="[object Object]"}class Lf extends it{constructor(r){super(),this.reviver=r}add(r){let o;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");o=this.decodeString(r);const c=o.type===we.BINARY_EVENT;c||o.type===we.BINARY_ACK?(o.type=c?we.EVENT:we.ACK,this.reconstructor=new Xg(o),o.attachments===0&&super.emitReserved("decoded",o)):super.emitReserved("decoded",o)}else if(Uf(r)||r.base64)if(this.reconstructor)o=this.reconstructor.takeBinaryData(r),o&&(this.reconstructor=null,super.emitReserved("decoded",o));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let o=0;const c={type:Number(r.charAt(0))};if(we[c.type]===void 0)throw new Error("unknown packet type "+c.type);if(c.type===we.BINARY_EVENT||c.type===we.BINARY_ACK){const _=o+1;for(;r.charAt(++o)!=="-"&&o!=r.length;);const E=r.substring(_,o);if(E!=Number(E)||r.charAt(o)!=="-")throw new Error("Illegal attachments");c.attachments=Number(E)}if(r.charAt(o+1)==="/"){const _=o+1;for(;++o&&!(r.charAt(o)===","||o===r.length););c.nsp=r.substring(_,o)}else c.nsp="/";const m=r.charAt(o+1);if(m!==""&&Number(m)==m){const _=o+1;for(;++o;){const E=r.charAt(o);if(E==null||Number(E)!=E){--o;break}if(o===r.length)break}c.id=Number(r.substring(_,o+1))}if(r.charAt(++o)){const _=this.tryParse(r.substr(o));if(Lf.isPayloadValid(c.type,_))c.data=_;else throw new Error("invalid payload")}return c}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,o){switch(r){case we.CONNECT:return X0(o);case we.DISCONNECT:return o===void 0;case we.CONNECT_ERROR:return typeof o=="string"||X0(o);case we.EVENT:case we.BINARY_EVENT:return Array.isArray(o)&&(typeof o[0]=="number"||typeof o[0]=="string"&&Gg.indexOf(o[0])===-1);case we.ACK:case we.BINARY_ACK:return Array.isArray(o)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Xg{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const o=Hg(this.reconPack,this.buffers);return this.finishedReconstruction(),o}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Yg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Lf,Encoder:kg,get PacketType(){return we},protocol:$g},Symbol.toStringTag,{value:"Module"}));function an(d,r,o){return d.on(r,o),function(){d.off(r,o)}}const Qg=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _v extends it{constructor(r,o,c){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=o,c&&c.auth&&(this.auth=c.auth),this._opts=Object.assign({},c),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[an(r,"open",this.onopen.bind(this)),an(r,"packet",this.onpacket.bind(this)),an(r,"error",this.onerror.bind(this)),an(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...o){var c,m,_;if(Qg.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(o.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(o),this;const E={type:we.EVENT,data:o};if(E.options={},E.options.compress=this.flags.compress!==!1,typeof o[o.length-1]=="function"){const f=this.ids++,h=o.pop();this._registerAckCallback(f,h),E.id=f}const b=(m=(c=this.io.engine)===null||c===void 0?void 0:c.transport)===null||m===void 0?void 0:m.writable,y=this.connected&&!(!((_=this.io.engine)===null||_===void 0)&&_._hasPingExpired());return this.flags.volatile&&!b||(y?(this.notifyOutgoingListeners(E),this.packet(E)):this.sendBuffer.push(E)),this.flags={},this}_registerAckCallback(r,o){var c;const m=(c=this.flags.timeout)!==null&&c!==void 0?c:this._opts.ackTimeout;if(m===void 0){this.acks[r]=o;return}const _=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let b=0;b<this.sendBuffer.length;b++)this.sendBuffer[b].id===r&&this.sendBuffer.splice(b,1);o.call(this,new Error("operation has timed out"))},m),E=(...b)=>{this.io.clearTimeoutFn(_),o.apply(this,b)};E.withError=!0,this.acks[r]=E}emitWithAck(r,...o){return new Promise((c,m)=>{const _=(E,b)=>E?m(E):c(b);_.withError=!0,o.push(_),this.emit(r,...o)})}_addToQueue(r){let o;typeof r[r.length-1]=="function"&&(o=r.pop());const c={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((m,..._)=>c!==this._queue[0]?void 0:(m!==null?c.tryCount>this._opts.retries&&(this._queue.shift(),o&&o(m)):(this._queue.shift(),o&&o(null,..._)),c.pending=!1,this._drainQueue())),this._queue.push(c),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const o=this._queue[0];o.pending&&!r||(o.pending=!0,o.tryCount++,this.flags=o.flags,this.emit.apply(this,o.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:we.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,o){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,o),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(c=>String(c.id)===r)){const c=this.acks[r];delete this.acks[r],c.withError&&c.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case we.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case we.EVENT:case we.BINARY_EVENT:this.onevent(r);break;case we.ACK:case we.BINARY_ACK:this.onack(r);break;case we.DISCONNECT:this.ondisconnect();break;case we.CONNECT_ERROR:this.destroy();const c=new Error(r.data.message);c.data=r.data.data,this.emitReserved("connect_error",c);break}}onevent(r){const o=r.data||[];r.id!=null&&o.push(this.ack(r.id)),this.connected?this.emitEvent(o):this.receiveBuffer.push(Object.freeze(o))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const o=this._anyListeners.slice();for(const c of o)c.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const o=this;let c=!1;return function(...m){c||(c=!0,o.packet({type:we.ACK,id:r,data:m}))}}onack(r){const o=this.acks[r.id];typeof o=="function"&&(delete this.acks[r.id],o.withError&&r.data.unshift(null),o.apply(this,r.data))}onconnect(r,o){this.id=r,this.recovered=o&&this._pid===o,this._pid=o,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:we.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const o=this._anyListeners;for(let c=0;c<o.length;c++)if(r===o[c])return o.splice(c,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const o=this._anyOutgoingListeners;for(let c=0;c<o.length;c++)if(r===o[c])return o.splice(c,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const o=this._anyOutgoingListeners.slice();for(const c of o)c.apply(this,r.data)}}}function Sl(d){d=d||{},this.ms=d.min||100,this.max=d.max||1e4,this.factor=d.factor||2,this.jitter=d.jitter>0&&d.jitter<=1?d.jitter:0,this.attempts=0}Sl.prototype.duration=function(){var d=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),o=Math.floor(r*this.jitter*d);d=(Math.floor(r*10)&1)==0?d-o:d+o}return Math.min(d,this.max)|0};Sl.prototype.reset=function(){this.attempts=0};Sl.prototype.setMin=function(d){this.ms=d};Sl.prototype.setMax=function(d){this.max=d};Sl.prototype.setJitter=function(d){this.jitter=d};class zf extends it{constructor(r,o){var c;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(o=r,r=void 0),o=o||{},o.path=o.path||"/socket.io",this.opts=o,jr(this,o),this.reconnection(o.reconnection!==!1),this.reconnectionAttempts(o.reconnectionAttempts||1/0),this.reconnectionDelay(o.reconnectionDelay||1e3),this.reconnectionDelayMax(o.reconnectionDelayMax||5e3),this.randomizationFactor((c=o.randomizationFactor)!==null&&c!==void 0?c:.5),this.backoff=new Sl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(o.timeout==null?2e4:o.timeout),this._readyState="closed",this.uri=r;const m=o.parser||Yg;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=o.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var o;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(o=this.backoff)===null||o===void 0||o.setMin(r),this)}randomizationFactor(r){var o;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(o=this.backoff)===null||o===void 0||o.setJitter(r),this)}reconnectionDelayMax(r){var o;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(o=this.backoff)===null||o===void 0||o.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new zg(this.uri,this.opts);const o=this.engine,c=this;this._readyState="opening",this.skipReconnect=!1;const m=an(o,"open",function(){c.onopen(),r&&r()}),_=b=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",b),r?r(b):this.maybeReconnectOnOpen()},E=an(o,"error",_);if(this._timeout!==!1){const b=this._timeout,y=this.setTimeoutFn(()=>{m(),_(new Error("timeout")),o.close()},b);this.opts.autoUnref&&y.unref(),this.subs.push(()=>{this.clearTimeoutFn(y)})}return this.subs.push(m),this.subs.push(E),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(an(r,"ping",this.onping.bind(this)),an(r,"data",this.ondata.bind(this)),an(r,"error",this.onerror.bind(this)),an(r,"close",this.onclose.bind(this)),an(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(o){this.onclose("parse error",o)}}ondecoded(r){Lr(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,o){let c=this.nsps[r];return c?this._autoConnect&&!c.active&&c.connect():(c=new _v(this,r,o),this.nsps[r]=c),c}_destroy(r){const o=Object.keys(this.nsps);for(const c of o)if(this.nsps[c].active)return;this._close()}_packet(r){const o=this.encoder.encode(r);for(let c=0;c<o.length;c++)this.engine.write(o[c],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,o){var c;this.cleanup(),(c=this.engine)===null||c===void 0||c.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,o),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const o=this.backoff.duration();this._reconnecting=!0;const c=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(m=>{m?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",m)):r.onreconnect()}))},o);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const pi={};function Ur(d,r){typeof d=="object"&&(r=d,d=void 0),r=r||{};const o=Ng(d,r.path||"/socket.io"),c=o.source,m=o.id,_=o.path,E=pi[m]&&_ in pi[m].nsps,b=r.forceNew||r["force new connection"]||r.multiplex===!1||E;let y;return b?y=new zf(c,r):(pi[m]||(pi[m]=new zf(c,r)),y=pi[m]),o.query&&!r.query&&(r.query=o.queryKey),y.socket(o.path,r)}Object.assign(Ur,{Manager:zf,Socket:_v,io:Ur,connect:Ur});function Vg({code:d,isConnected:r,onCreateRoom:o,onJoinRoom:c,joinCode:m,setJoinCode:_}){const E=()=>{if(m){const y=m.trim();c(y)}},b=y=>{y.key==="Enter"&&E()};return I.jsx("div",{className:"mb-2",children:d?I.jsx(I.Fragment,{children:I.jsxs("p",{className:"text-lg",children:["Code: ",I.jsx("strong",{className:"text-3xl",children:d})]})}):I.jsxs(I.Fragment,{children:[I.jsx("button",{onClick:o,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Create Room"}),I.jsxs("div",{className:"inline-block whitespace-nowrap",children:[I.jsx("input",{type:"text",className:"width-212",value:m,onChange:y=>_(y.target.value),onKeyDown:b,placeholder:"Enter code to join"}),I.jsx("button",{onClick:E,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})]})})}function Zg({files:d,setFiles:r,dataChannels:o,dataChannelsRef:c,useFallback:m,socket:_,code:E,socketId:b,localFilesRef:y,downloadStates:u,setDownloadStates:f,cancelDownload:h,cancelRequestsRef:s,downloadCounts:g,handleDeleteFile:S,SERVER_URL:O}){const M=he.useRef(null),D=he.useRef({}),G=(k,J=256)=>new Promise(ne=>{if(!k.type.startsWith("image/")){ne(null);return}const ee=new Image,re=document.createElement("canvas"),de=re.getContext("2d");ee.onload=()=>{const{width:ze,height:Je}=ee,q=Math.min(J/ze,J/Je,1);re.width=ze*q,re.height=Je*q,de.drawImage(ee,0,0,re.width,re.height),re.toBlob(K=>{ne(K)},"image/jpeg",.7)},ee.src=URL.createObjectURL(k)}),V=async()=>{const k=M.current.files;if(!k||k.length===0)return;const J=Array.from(k).map(ne=>({name:ne.name,size:ne.size,peerId:b,thumbnail:!!ne.type.startsWith("image/")}));if(m){const ne=new FormData;Array.from(k).forEach(ee=>ne.append("files",ee));try{if(!(await fetch(`${O}/api/upload/${E}`,{method:"POST",body:ne,headers:{"x-socket-id":b}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",J)}catch(ee){console.error("Error uploading files:",ee)}}else{const ne=await Promise.all(Array.from(k).map(async ee=>({name:ee.name,thumbnail:ee.type.startsWith("image/")?await G(ee):null})));y.current={...y.current,...Object.fromEntries(Array.from(k).map(ee=>[ee.name,ee])),...Object.fromEntries(ne.filter(({thumbnail:ee})=>ee).map(({name:ee,thumbnail:re})=>[`${ee}_thumbnail`,re]))},ne.forEach(({name:ee,thumbnail:re})=>{if(re){const de=URL.createObjectURL(re);D.current[ee]=de,console.log(`Cached thumbnail URL for ${ee}: ${de}`)}}),console.log("Stored files in localFilesRef:",Object.keys(y.current)),_.emit("file-list",{code:E,files:J}),console.log("Shared file list:",J)}r(ne=>[...ne,...J]),M.current.value=""},ge=async k=>{if(s.current.has(k.name)&&(s.current.delete(k.name),console.log(`Cleared previous cancel for ${k.name}, starting new request to ${k.peerId}`)),u[k.name]?.status==="downloading"){h(k.name,k.peerId),console.log(`Canceling download for ${k.name}`);return}if(f(J=>({...J,[k.name]:{status:"downloading",progress:0,total:k.size,peerId:k.peerId}})),console.log(`Starting download for ${k.name}, downloadStates:`,{...u,[k.name]:{status:"downloading",progress:0}}),m){_.emit("download-start-fallback",{code:E,fileName:k.name});const J=document.createElement("a");J.href=`${O}/uploads/${k.path.split("/").pop()}`,J.download=k.name,J.click(),console.log(`Downloading file via server: ${k.name}`),f(ne=>({...ne,[k.name]:{status:"completed",progress:100}})),_.emit("download-end-fallback",{code:E,fileName:k.name})}else if(k.peerId===b){const J=y.current[k.name]||d.find(ne=>ne.name===k.name)?.file;if(J){_.emit("download-start-fallback",{code:E,fileName:k.name});const ne=URL.createObjectURL(J),ee=document.createElement("a");ee.href=ne,ee.download=k.name,ee.click(),URL.revokeObjectURL(ne),console.log(`Downloaded local file: ${k.name}`),f(re=>({...re,[k.name]:{status:"saved",progress:100}})),_.emit("download-end-fallback",{code:E,fileName:k.name})}else console.error(`Local file not found: ${k.name}`)}else o[k.peerId]?.readyState==="open"?(c.current[k.peerId].send(JSON.stringify({type:"request-file",fileName:k.name})),console.log(`Requested file ${k.name} from ${k.peerId}`)):console.error(`Data channel not open for peer ${k.peerId}`)},Se=k=>{const J=k.split(".").pop().toLowerCase();return`/imgs/${{exe:"executable.png",bin:"executable.png",dll:"executable.png",jpg:"picture.png",jpeg:"picture.png",png:"picture.png",gif:"picture.png",mp3:"audio.png",wav:"audio.png",ogg:"audio.png",mp4:"video.png",mkv:"video.png",avi:"video.png",mov:"video.png",wma:"video.png",pdf:"unknown.png",doc:"unknown.png",docx:"unknown.png",txt:"text.png",log:"text.png",bat:"script.png",sh:"script.png",html:"html.png",xml:"xml.png",zip:"archive.png",gz:"archive.png",bz:"archive.png"}[J]||"unknown.png"}`},He=k=>k?k<1024?`${k} B`:k<1024*1024?`${(k/1024).toFixed(2)} KB`:k<1024*1024*1024?`${(k/(1024*1024)).toFixed(2)} MB`:`${(k/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",te=k=>{if(!k.thumbnail)return console.log(`No thumbnail flag for ${k.name}`),null;if(D.current[k.name])return D.current[k.name];const J=y.current[`${k.name}_thumbnail`];if(J){const ne=URL.createObjectURL(J);return D.current[k.name]=ne,console.log(`Generated and cached thumbnail URL for ${k.name}: ${ne}`),ne}return console.log(`No thumbnail available for ${k.name}`),null};return he.useEffect(()=>()=>{Object.values(D.current).forEach(k=>{k&&URL.revokeObjectURL(k)}),D.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),I.jsxs("div",{children:[I.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),I.jsx("input",{type:"file",multiple:!0,ref:M,onChange:V,className:"mb-2"}),I.jsx("ul",{className:"space-y-2",children:d.map((k,J)=>(u[k.name]?.status==="downloading"||u[k.name]?.status,I.jsxs("li",{className:"flex items-center space-x-2",children:[k.thumbnail&&I.jsx("img",{src:te(k)||Se(k.name),alt:`${k.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${k.name}, requesting...`)}})||I.jsx("img",{src:Se(k.name),alt:"file icon",className:"w-6 h-6",onError:ne=>ne.target.style.display="none"}),I.jsxs("span",{children:["(",He(k.size),")"]}),k.peerId!==b&&I.jsx("button",{onClick:()=>ge(k),className:`px-4 py-2 rounded ${u[k.name]?.status==="saved"?"bg-green-500 text-white":u[k.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:u[k.name]?.status==="saved"?"Saved ✓":u[k.name]?.status==="downloading"?`Cancel ${(u[k.name]?.progress||0).toFixed(2)}%`:"Download"}),k.peerId===b&&I.jsx(I.Fragment,{children:I.jsx("button",{onClick:()=>S(k.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"})}),g[k.name]>0&&I.jsxs("span",{children:[g[k.name]," downloading"]}),I.jsx("span",{children:k.name})]},J)))})]})}function Kg({textHistory:d,setTextHistory:r,dataChannels:o,useFallback:c,socket:m,code:_,copied:E,setCopied:b}){const[y,u]=he.useState(""),f=()=>{y.trim()&&(console.log("handleSend:",{dataChannels:o,useFallback:c,code:_}),!c&&Object.keys(o).length>0?Object.keys(o).forEach(g=>{o[g].readyState==="open"&&(o[g].send(JSON.stringify({type:"text",text:y})),console.log(`Sent text to peer ${g}`))}):c&&m&&_&&(m.emit("text",{code:_,text:y}),console.log(`Sending text via socket for room ${_}: ${y}`)),r(g=>[...g,y]),u(""))},h=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),f())},s=g=>{const S=document.getElementById(`msg-${g}`);S?(navigator.clipboard.writeText(S.textContent),b(`msg-${g}`),setTimeout(()=>b(null),2e3)):console.warn(`Element msg-${g} not found or selection API unavailable`)};return I.jsxs("div",{className:"mb-4",children:[I.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),I.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:y,onChange:g=>u(g.target.value),onKeyDown:h,placeholder:"Enter text to share"}),I.jsx("button",{className:"bg-emerald-600 text-darkPurple px-4 py-2 rounded hover:bg-emerald-500",onClick:f,children:"Send"}),I.jsx("br",{}),I.jsxs("div",{className:"mt-2",id:"textview",children:[I.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),I.jsx("ul",{className:"list-disc pl-5",children:d?.length>0?d.map((g,S)=>I.jsxs("li",{children:[I.jsx("button",{className:"bg-sky-600 text-darkPurple px-4 py-2 rounded hover:bg-sky-500",onClick:()=>s(S),children:E===`msg-${S}`?"Copied!":"{}"}),I.jsx("pre",{id:`msg-${S}`,children:g})]},S)):I.jsx("li",{children:I.jsx("pre",{children:"No messages yet"})})})]})]})}var gl={},df={exports:{}},vf,Y0;function Jg(){if(Y0)return vf;Y0=1;var d="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vf=d,vf}var yf,Q0;function Fg(){if(Q0)return yf;Q0=1;var d=Jg();function r(){}function o(){}return o.resetWarningCache=r,yf=function(){function c(E,b,y,u,f,h){if(h!==d){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}c.isRequired=c;function m(){return c}var _={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:m,element:c,elementType:c,instanceOf:m,node:c,objectOf:m,oneOf:m,oneOfType:m,shape:m,exact:m,checkPropTypes:o,resetWarningCache:r};return _.PropTypes=_,_},yf}var V0;function jf(){return V0||(V0=1,df.exports=Fg()()),df.exports}var mf,Z0;function bv(){return Z0||(Z0=1,mf={L:1,M:0,Q:3,H:2}),mf}var gf,K0;function Ev(){return K0||(K0=1,gf={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),gf}var pf,J0;function Pg(){if(J0)return pf;J0=1;var d=Ev();function r(o){this.mode=d.MODE_8BIT_BYTE,this.data=o}return r.prototype={getLength:function(o){return this.data.length},write:function(o){for(var c=0;c<this.data.length;c++)o.put(this.data.charCodeAt(c),8)}},pf=r,pf}var _f,F0;function Wg(){if(F0)return _f;F0=1;var d=bv();function r(o,c){this.totalCount=o,this.dataCount=c}return r.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r.getRSBlocks=function(o,c){var m=r.getRsBlockTable(o,c);if(m==null)throw new Error("bad rs block @ typeNumber:"+o+"/errorCorrectLevel:"+c);for(var _=m.length/3,E=new Array,b=0;b<_;b++)for(var y=m[b*3+0],u=m[b*3+1],f=m[b*3+2],h=0;h<y;h++)E.push(new r(u,f));return E},r.getRsBlockTable=function(o,c){switch(c){case d.L:return r.RS_BLOCK_TABLE[(o-1)*4+0];case d.M:return r.RS_BLOCK_TABLE[(o-1)*4+1];case d.Q:return r.RS_BLOCK_TABLE[(o-1)*4+2];case d.H:return r.RS_BLOCK_TABLE[(o-1)*4+3];default:return}},_f=r,_f}var bf,P0;function Ig(){if(P0)return bf;P0=1;function d(){this.buffer=new Array,this.length=0}return d.prototype={get:function(r){var o=Math.floor(r/8);return(this.buffer[o]>>>7-r%8&1)==1},put:function(r,o){for(var c=0;c<o;c++)this.putBit((r>>>o-c-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),r&&(this.buffer[o]|=128>>>this.length%8),this.length++}},bf=d,bf}var Ef,W0;function Sv(){if(W0)return Ef;W0=1;for(var d={glog:function(o){if(o<1)throw new Error("glog("+o+")");return d.LOG_TABLE[o]},gexp:function(o){for(;o<0;)o+=255;for(;o>=256;)o-=255;return d.EXP_TABLE[o]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)d.EXP_TABLE[r]=1<<r;for(var r=8;r<256;r++)d.EXP_TABLE[r]=d.EXP_TABLE[r-4]^d.EXP_TABLE[r-5]^d.EXP_TABLE[r-6]^d.EXP_TABLE[r-8];for(var r=0;r<255;r++)d.LOG_TABLE[d.EXP_TABLE[r]]=r;return Ef=d,Ef}var Sf,I0;function Ov(){if(I0)return Sf;I0=1;var d=Sv();function r(o,c){if(o.length==null)throw new Error(o.length+"/"+c);for(var m=0;m<o.length&&o[m]==0;)m++;this.num=new Array(o.length-m+c);for(var _=0;_<o.length-m;_++)this.num[_]=o[_+m]}return r.prototype={get:function(o){return this.num[o]},getLength:function(){return this.num.length},multiply:function(o){for(var c=new Array(this.getLength()+o.getLength()-1),m=0;m<this.getLength();m++)for(var _=0;_<o.getLength();_++)c[m+_]^=d.gexp(d.glog(this.get(m))+d.glog(o.get(_)));return new r(c,0)},mod:function(o){if(this.getLength()-o.getLength()<0)return this;for(var c=d.glog(this.get(0))-d.glog(o.get(0)),m=new Array(this.getLength()),_=0;_<this.getLength();_++)m[_]=this.get(_);for(var _=0;_<o.getLength();_++)m[_]^=d.gexp(d.glog(o.get(_))+c);return new r(m,0).mod(o)}},Sf=r,Sf}var Of,e1;function ep(){if(e1)return Of;e1=1;var d=Ev(),r=Ov(),o=Sv(),c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(_){for(var E=_<<10;m.getBCHDigit(E)-m.getBCHDigit(m.G15)>=0;)E^=m.G15<<m.getBCHDigit(E)-m.getBCHDigit(m.G15);return(_<<10|E)^m.G15_MASK},getBCHTypeNumber:function(_){for(var E=_<<12;m.getBCHDigit(E)-m.getBCHDigit(m.G18)>=0;)E^=m.G18<<m.getBCHDigit(E)-m.getBCHDigit(m.G18);return _<<12|E},getBCHDigit:function(_){for(var E=0;_!=0;)E++,_>>>=1;return E},getPatternPosition:function(_){return m.PATTERN_POSITION_TABLE[_-1]},getMask:function(_,E,b){switch(_){case c.PATTERN000:return(E+b)%2==0;case c.PATTERN001:return E%2==0;case c.PATTERN010:return b%3==0;case c.PATTERN011:return(E+b)%3==0;case c.PATTERN100:return(Math.floor(E/2)+Math.floor(b/3))%2==0;case c.PATTERN101:return E*b%2+E*b%3==0;case c.PATTERN110:return(E*b%2+E*b%3)%2==0;case c.PATTERN111:return(E*b%3+(E+b)%2)%2==0;default:throw new Error("bad maskPattern:"+_)}},getErrorCorrectPolynomial:function(_){for(var E=new r([1],0),b=0;b<_;b++)E=E.multiply(new r([1,o.gexp(b)],0));return E},getLengthInBits:function(_,E){if(1<=E&&E<10)switch(_){case d.MODE_NUMBER:return 10;case d.MODE_ALPHA_NUM:return 9;case d.MODE_8BIT_BYTE:return 8;case d.MODE_KANJI:return 8;default:throw new Error("mode:"+_)}else if(E<27)switch(_){case d.MODE_NUMBER:return 12;case d.MODE_ALPHA_NUM:return 11;case d.MODE_8BIT_BYTE:return 16;case d.MODE_KANJI:return 10;default:throw new Error("mode:"+_)}else if(E<41)switch(_){case d.MODE_NUMBER:return 14;case d.MODE_ALPHA_NUM:return 13;case d.MODE_8BIT_BYTE:return 16;case d.MODE_KANJI:return 12;default:throw new Error("mode:"+_)}else throw new Error("type:"+E)},getLostPoint:function(_){for(var E=_.getModuleCount(),b=0,y=0;y<E;y++)for(var u=0;u<E;u++){for(var f=0,h=_.isDark(y,u),s=-1;s<=1;s++)if(!(y+s<0||E<=y+s))for(var g=-1;g<=1;g++)u+g<0||E<=u+g||s==0&&g==0||h==_.isDark(y+s,u+g)&&f++;f>5&&(b+=3+f-5)}for(var y=0;y<E-1;y++)for(var u=0;u<E-1;u++){var S=0;_.isDark(y,u)&&S++,_.isDark(y+1,u)&&S++,_.isDark(y,u+1)&&S++,_.isDark(y+1,u+1)&&S++,(S==0||S==4)&&(b+=3)}for(var y=0;y<E;y++)for(var u=0;u<E-6;u++)_.isDark(y,u)&&!_.isDark(y,u+1)&&_.isDark(y,u+2)&&_.isDark(y,u+3)&&_.isDark(y,u+4)&&!_.isDark(y,u+5)&&_.isDark(y,u+6)&&(b+=40);for(var u=0;u<E;u++)for(var y=0;y<E-6;y++)_.isDark(y,u)&&!_.isDark(y+1,u)&&_.isDark(y+2,u)&&_.isDark(y+3,u)&&_.isDark(y+4,u)&&!_.isDark(y+5,u)&&_.isDark(y+6,u)&&(b+=40);for(var O=0,u=0;u<E;u++)for(var y=0;y<E;y++)_.isDark(y,u)&&O++;var M=Math.abs(100*O/E/E-50)/5;return b+=M*10,b}};return Of=m,Of}var Tf,t1;function tp(){if(t1)return Tf;t1=1;var d=Pg(),r=Wg(),o=Ig(),c=ep(),m=Ov();function _(b,y){this.typeNumber=b,this.errorCorrectLevel=y,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var E=_.prototype;return E.addData=function(b){var y=new d(b);this.dataList.push(y),this.dataCache=null},E.isDark=function(b,y){if(b<0||this.moduleCount<=b||y<0||this.moduleCount<=y)throw new Error(b+","+y);return this.modules[b][y]},E.getModuleCount=function(){return this.moduleCount},E.make=function(){if(this.typeNumber<1){var b=1;for(b=1;b<40;b++){for(var y=r.getRSBlocks(b,this.errorCorrectLevel),u=new o,f=0,h=0;h<y.length;h++)f+=y[h].dataCount;for(var h=0;h<this.dataList.length;h++){var s=this.dataList[h];u.put(s.mode,4),u.put(s.getLength(),c.getLengthInBits(s.mode,b)),s.write(u)}if(u.getLengthInBits()<=f*8)break}this.typeNumber=b}this.makeImpl(!1,this.getBestMaskPattern())},E.makeImpl=function(b,y){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var u=0;u<this.moduleCount;u++){this.modules[u]=new Array(this.moduleCount);for(var f=0;f<this.moduleCount;f++)this.modules[u][f]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(b,y),this.typeNumber>=7&&this.setupTypeNumber(b),this.dataCache==null&&(this.dataCache=_.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,y)},E.setupPositionProbePattern=function(b,y){for(var u=-1;u<=7;u++)if(!(b+u<=-1||this.moduleCount<=b+u))for(var f=-1;f<=7;f++)y+f<=-1||this.moduleCount<=y+f||(0<=u&&u<=6&&(f==0||f==6)||0<=f&&f<=6&&(u==0||u==6)||2<=u&&u<=4&&2<=f&&f<=4?this.modules[b+u][y+f]=!0:this.modules[b+u][y+f]=!1)},E.getBestMaskPattern=function(){for(var b=0,y=0,u=0;u<8;u++){this.makeImpl(!0,u);var f=c.getLostPoint(this);(u==0||b>f)&&(b=f,y=u)}return y},E.createMovieClip=function(b,y,u){var f=b.createEmptyMovieClip(y,u),h=1;this.make();for(var s=0;s<this.modules.length;s++)for(var g=s*h,S=0;S<this.modules[s].length;S++){var O=S*h,M=this.modules[s][S];M&&(f.beginFill(0,100),f.moveTo(O,g),f.lineTo(O+h,g),f.lineTo(O+h,g+h),f.lineTo(O,g+h),f.endFill())}return f},E.setupTimingPattern=function(){for(var b=8;b<this.moduleCount-8;b++)this.modules[b][6]==null&&(this.modules[b][6]=b%2==0);for(var y=8;y<this.moduleCount-8;y++)this.modules[6][y]==null&&(this.modules[6][y]=y%2==0)},E.setupPositionAdjustPattern=function(){for(var b=c.getPatternPosition(this.typeNumber),y=0;y<b.length;y++)for(var u=0;u<b.length;u++){var f=b[y],h=b[u];if(this.modules[f][h]==null)for(var s=-2;s<=2;s++)for(var g=-2;g<=2;g++)s==-2||s==2||g==-2||g==2||s==0&&g==0?this.modules[f+s][h+g]=!0:this.modules[f+s][h+g]=!1}},E.setupTypeNumber=function(b){for(var y=c.getBCHTypeNumber(this.typeNumber),u=0;u<18;u++){var f=!b&&(y>>u&1)==1;this.modules[Math.floor(u/3)][u%3+this.moduleCount-8-3]=f}for(var u=0;u<18;u++){var f=!b&&(y>>u&1)==1;this.modules[u%3+this.moduleCount-8-3][Math.floor(u/3)]=f}},E.setupTypeInfo=function(b,y){for(var u=this.errorCorrectLevel<<3|y,f=c.getBCHTypeInfo(u),h=0;h<15;h++){var s=!b&&(f>>h&1)==1;h<6?this.modules[h][8]=s:h<8?this.modules[h+1][8]=s:this.modules[this.moduleCount-15+h][8]=s}for(var h=0;h<15;h++){var s=!b&&(f>>h&1)==1;h<8?this.modules[8][this.moduleCount-h-1]=s:h<9?this.modules[8][15-h-1+1]=s:this.modules[8][15-h-1]=s}this.modules[this.moduleCount-8][8]=!b},E.mapData=function(b,y){for(var u=-1,f=this.moduleCount-1,h=7,s=0,g=this.moduleCount-1;g>0;g-=2)for(g==6&&g--;;){for(var S=0;S<2;S++)if(this.modules[f][g-S]==null){var O=!1;s<b.length&&(O=(b[s]>>>h&1)==1);var M=c.getMask(y,f,g-S);M&&(O=!O),this.modules[f][g-S]=O,h--,h==-1&&(s++,h=7)}if(f+=u,f<0||this.moduleCount<=f){f-=u,u=-u;break}}},_.PAD0=236,_.PAD1=17,_.createData=function(b,y,u){for(var f=r.getRSBlocks(b,y),h=new o,s=0;s<u.length;s++){var g=u[s];h.put(g.mode,4),h.put(g.getLength(),c.getLengthInBits(g.mode,b)),g.write(h)}for(var S=0,s=0;s<f.length;s++)S+=f[s].dataCount;if(h.getLengthInBits()>S*8)throw new Error("code length overflow. ("+h.getLengthInBits()+">"+S*8+")");for(h.getLengthInBits()+4<=S*8&&h.put(0,4);h.getLengthInBits()%8!=0;)h.putBit(!1);for(;!(h.getLengthInBits()>=S*8||(h.put(_.PAD0,8),h.getLengthInBits()>=S*8));)h.put(_.PAD1,8);return _.createBytes(h,f)},_.createBytes=function(b,y){for(var u=0,f=0,h=0,s=new Array(y.length),g=new Array(y.length),S=0;S<y.length;S++){var O=y[S].dataCount,M=y[S].totalCount-O;f=Math.max(f,O),h=Math.max(h,M),s[S]=new Array(O);for(var D=0;D<s[S].length;D++)s[S][D]=255&b.buffer[D+u];u+=O;var G=c.getErrorCorrectPolynomial(M),V=new m(s[S],G.getLength()-1),ge=V.mod(G);g[S]=new Array(G.getLength()-1);for(var D=0;D<g[S].length;D++){var Se=D+ge.getLength()-g[S].length;g[S][D]=Se>=0?ge.get(Se):0}}for(var He=0,D=0;D<y.length;D++)He+=y[D].totalCount;for(var te=new Array(He),k=0,D=0;D<f;D++)for(var S=0;S<y.length;S++)D<s[S].length&&(te[k++]=s[S][D]);for(var D=0;D<h;D++)for(var S=0;S<y.length;S++)D<g[S].length&&(te[k++]=g[S][D]);return te},Tf=_,Tf}var Fu={},n1;function np(){if(n1)return Fu;n1=1,Object.defineProperty(Fu,"__esModule",{value:!0});var d=Object.assign||function(u){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var s in h)Object.prototype.hasOwnProperty.call(h,s)&&(u[s]=h[s])}return u},r=jf(),o=_(r),c=El(),m=_(c);function _(u){return u&&u.__esModule?u:{default:u}}function E(u,f){var h={};for(var s in u)f.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(u,s)&&(h[s]=u[s]);return h}var b={bgColor:o.default.oneOfType([o.default.object,o.default.string]).isRequired,bgD:o.default.string.isRequired,fgColor:o.default.oneOfType([o.default.object,o.default.string]).isRequired,fgD:o.default.string.isRequired,size:o.default.number.isRequired,title:o.default.string,viewBoxSize:o.default.number.isRequired,xmlns:o.default.string},y=(0,c.forwardRef)(function(u,f){var h=u.bgColor,s=u.bgD,g=u.fgD,S=u.fgColor,O=u.size,M=u.title,D=u.viewBoxSize,G=u.xmlns,V=G===void 0?"http://www.w3.org/2000/svg":G,ge=E(u,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return m.default.createElement("svg",d({},ge,{height:O,ref:f,viewBox:"0 0 "+D+" "+D,width:O,xmlns:V}),M?m.default.createElement("title",null,M):null,m.default.createElement("path",{d:s,fill:h}),m.default.createElement("path",{d:g,fill:S}))});return y.displayName="QRCodeSvg",y.propTypes=b,Fu.default=y,Fu}var a1;function ap(){if(a1)return gl;a1=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.QRCode=void 0;var d=Object.assign||function(O){for(var M=1;M<arguments.length;M++){var D=arguments[M];for(var G in D)Object.prototype.hasOwnProperty.call(D,G)&&(O[G]=D[G])}return O},r=jf(),o=h(r),c=bv(),m=h(c),_=tp(),E=h(_),b=El(),y=h(b),u=np(),f=h(u);function h(O){return O&&O.__esModule?O:{default:O}}function s(O,M){var D={};for(var G in O)M.indexOf(G)>=0||Object.prototype.hasOwnProperty.call(O,G)&&(D[G]=O[G]);return D}var g={bgColor:o.default.oneOfType([o.default.object,o.default.string]),fgColor:o.default.oneOfType([o.default.object,o.default.string]),level:o.default.string,size:o.default.number,value:o.default.string.isRequired},S=(0,b.forwardRef)(function(O,M){var D=O.bgColor,G=D===void 0?"#FFFFFF":D,V=O.fgColor,ge=V===void 0?"#000000":V,Se=O.level,He=Se===void 0?"L":Se,te=O.size,k=te===void 0?256:te,J=O.value,ne=s(O,["bgColor","fgColor","level","size","value"]),ee=new E.default(-1,m.default[He]);ee.addData(J),ee.make();var re=ee.modules;return y.default.createElement(f.default,d({},ne,{bgColor:G,bgD:re.map(function(de,ze){return de.map(function(Je,q){return Je?"":"M "+q+" "+ze+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:ge,fgD:re.map(function(de,ze){return de.map(function(Je,q){return Je?"M "+q+" "+ze+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:M,size:k,viewBoxSize:re.length}))});return gl.QRCode=S,S.displayName="QRCode",S.propTypes=g,gl.default=S,gl}var lp=ap();const ip=uv(lp);var Pu={},_i={},Wu={},l1;function Ut(){if(l1)return Wu;l1=1,Object.defineProperty(Wu,"__esModule",{value:!0});function d(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")}var r=function o(c,m){d(this,o),this.data=c,this.text=m.text||c,this.options=m};return Wu.default=r,Wu}var i1;function up(){if(i1)return _i;i1=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.CODE39=void 0;var d=(function(){function O(M,D){for(var G=0;G<D.length;G++){var V=D[G];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}return function(M,D,G){return D&&O(M.prototype,D),G&&O(M,G),M}})(),r=Ut(),o=c(r);function c(O){return O&&O.__esModule?O:{default:O}}function m(O,M){if(!(O instanceof M))throw new TypeError("Cannot call a class as a function")}function _(O,M){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:O}function E(O,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);O.prototype=Object.create(M&&M.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(O,M):O.__proto__=M)}var b=(function(O){E(M,O);function M(D,G){return m(this,M),D=D.toUpperCase(),G.mod43&&(D+=s(S(D))),_(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,D,G))}return d(M,[{key:"encode",value:function(){for(var G=f("*"),V=0;V<this.data.length;V++)G+=f(this.data[V])+"0";return G+=f("*"),{data:G,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),M})(o.default),y=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],u=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function f(O){return h(g(O))}function h(O){return u[O].toString(2)}function s(O){return y[O]}function g(O){return y.indexOf(O)}function S(O){for(var M=0,D=0;D<O.length;D++)M+=g(O[D]);return M=M%43,M}return _i.CODE39=b,_i}var nn={},Iu={},er={},We={},u1;function Ri(){if(u1)return We;u1=1,Object.defineProperty(We,"__esModule",{value:!0});var d;function r(y,u,f){return u in y?Object.defineProperty(y,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[u]=f,y}var o=We.SET_A=0,c=We.SET_B=1,m=We.SET_C=2;We.SHIFT=98;var _=We.START_A=103,E=We.START_B=104,b=We.START_C=105;return We.MODULO=103,We.STOP=106,We.FNC1=207,We.SET_BY_CODE=(d={},r(d,_,o),r(d,E,c),r(d,b,m),d),We.SWAP={101:o,100:c,99:m},We.A_START_CHAR="Ð",We.B_START_CHAR="Ñ",We.C_START_CHAR="Ò",We.A_CHARS="[\0-_È-Ï]",We.B_CHARS="[ -È-Ï]",We.C_CHARS="(Ï*[0-9]{2}Ï*)",We.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],We}var r1;function Hr(){if(r1)return er;r1=1,Object.defineProperty(er,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=Ut(),o=m(r),c=Ri();function m(u){return u&&u.__esModule?u:{default:u}}function _(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function E(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var y=(function(u){b(f,u);function f(h,s){_(this,f);var g=E(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h.substring(1),s));return g.bytes=h.split("").map(function(S){return S.charCodeAt(0)}),g}return d(f,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var s=this.bytes,g=s.shift()-105,S=c.SET_BY_CODE[g];if(S===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&s.unshift(c.FNC1);var O=f.next(s,1,S);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:f.getBar(g)+O.result+f.getBar((O.checksum+g)%c.MODULO)+f.getBar(c.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var s=this.options.ean128||!1;return typeof s=="string"&&(s=s.toLowerCase()==="true"),s}}],[{key:"getBar",value:function(s){return c.BARS[s]?c.BARS[s].toString():""}},{key:"correctIndex",value:function(s,g){if(g===c.SET_A){var S=s.shift();return S<32?S+64:S-32}else return g===c.SET_B?s.shift()-32:(s.shift()-48)*10+s.shift()-48}},{key:"next",value:function(s,g,S){if(!s.length)return{result:"",checksum:0};var O=void 0,M=void 0;if(s[0]>=200){M=s.shift()-105;var D=c.SWAP[M];D!==void 0?O=f.next(s,g+1,D):((S===c.SET_A||S===c.SET_B)&&M===c.SHIFT&&(s[0]=S===c.SET_A?s[0]>95?s[0]-96:s[0]:s[0]<32?s[0]+96:s[0]),O=f.next(s,g+1,S))}else M=f.correctIndex(s,S),O=f.next(s,g+1,S);var G=f.getBar(M),V=M*g;return{result:G+O.result,checksum:V+O.checksum}}}]),f})(o.default);return er.default=y,er}var tr={},o1;function rp(){if(o1)return tr;o1=1,Object.defineProperty(tr,"__esModule",{value:!0});var d=Ri(),r=function(b){return b.match(new RegExp("^"+d.A_CHARS+"*"))[0].length},o=function(b){return b.match(new RegExp("^"+d.B_CHARS+"*"))[0].length},c=function(b){return b.match(new RegExp("^"+d.C_CHARS+"*"))[0]};function m(E,b){var y=b?d.A_CHARS:d.B_CHARS,u=E.match(new RegExp("^("+y+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(u)return u[1]+"Ì"+_(E.substring(u[1].length));var f=E.match(new RegExp("^"+y+"+"))[0];return f.length===E.length?E:f+String.fromCharCode(b?205:206)+m(E.substring(f.length),!b)}function _(E){var b=c(E),y=b.length;if(y===E.length)return E;E=E.substring(y);var u=r(E)>=o(E);return b+String.fromCharCode(u?206:205)+m(E,u)}return tr.default=function(E){var b=void 0,y=c(E).length;if(y>=2)b=d.C_START_CHAR+_(E);else{var u=r(E)>o(E);b=(u?d.A_START_CHAR:d.B_START_CHAR)+m(E,u)}return b.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(f,h){return"Ë"+h})},tr}var c1;function op(){if(c1)return Iu;c1=1,Object.defineProperty(Iu,"__esModule",{value:!0});var d=Hr(),r=m(d),o=rp(),c=m(o);function m(u){return u&&u.__esModule?u:{default:u}}function _(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function E(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var y=(function(u){b(f,u);function f(h,s){if(_(this,f),/^[\x00-\x7F\xC8-\xD3]+$/.test(h))var g=E(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,(0,c.default)(h),s));else var g=E(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h,s));return E(g)}return f})(r.default);return Iu.default=y,Iu}var nr={},f1;function cp(){if(f1)return nr;f1=1,Object.defineProperty(nr,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=Hr(),o=m(r),c=Ri();function m(u){return u&&u.__esModule?u:{default:u}}function _(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function E(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var y=(function(u){b(f,u);function f(h,s){return _(this,f),E(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,c.A_START_CHAR+h,s))}return d(f,[{key:"valid",value:function(){return new RegExp("^"+c.A_CHARS+"+$").test(this.data)}}]),f})(o.default);return nr.default=y,nr}var ar={},s1;function fp(){if(s1)return ar;s1=1,Object.defineProperty(ar,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=Hr(),o=m(r),c=Ri();function m(u){return u&&u.__esModule?u:{default:u}}function _(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function E(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var y=(function(u){b(f,u);function f(h,s){return _(this,f),E(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,c.B_START_CHAR+h,s))}return d(f,[{key:"valid",value:function(){return new RegExp("^"+c.B_CHARS+"+$").test(this.data)}}]),f})(o.default);return ar.default=y,ar}var lr={},h1;function sp(){if(h1)return lr;h1=1,Object.defineProperty(lr,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=Hr(),o=m(r),c=Ri();function m(u){return u&&u.__esModule?u:{default:u}}function _(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function E(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var y=(function(u){b(f,u);function f(h,s){return _(this,f),E(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,c.C_START_CHAR+h,s))}return d(f,[{key:"valid",value:function(){return new RegExp("^"+c.C_CHARS+"+$").test(this.data)}}]),f})(o.default);return lr.default=y,lr}var d1;function hp(){if(d1)return nn;d1=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.CODE128C=nn.CODE128B=nn.CODE128A=nn.CODE128=void 0;var d=op(),r=y(d),o=cp(),c=y(o),m=fp(),_=y(m),E=sp(),b=y(E);function y(u){return u&&u.__esModule?u:{default:u}}return nn.CODE128=r.default,nn.CODE128A=c.default,nn.CODE128B=_.default,nn.CODE128C=b.default,nn}var _t={},ir={},zn={},v1;function xi(){return v1||(v1=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.SIDE_BIN="101",zn.MIDDLE_BIN="01010",zn.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},zn.EAN2_STRUCTURE=["LL","LG","GL","GG"],zn.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],zn.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]),zn}var ur={},rr={},y1;function wi(){if(y1)return rr;y1=1,Object.defineProperty(rr,"__esModule",{value:!0});var d=xi(),r=function(c,m,_){var E=c.split("").map(function(y,u){return d.BINARIES[m[u]]}).map(function(y,u){return y?y[c[u]]:""});if(_){var b=c.length-1;E=E.map(function(y,u){return u<b?y+_:y})}return E.join("")};return rr.default=r,rr}var m1;function Tv(){if(m1)return ur;m1=1,Object.defineProperty(ur,"__esModule",{value:!0});var d=(function(){function h(s,g){for(var S=0;S<g.length;S++){var O=g[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(s,O.key,O)}}return function(s,g,S){return g&&h(s.prototype,g),S&&h(s,S),s}})(),r=xi(),o=wi(),c=E(o),m=Ut(),_=E(m);function E(h){return h&&h.__esModule?h:{default:h}}function b(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function y(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:h}function u(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var f=(function(h){u(s,h);function s(g,S){b(this,s);var O=y(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,g,S));return O.fontSize=!S.flat&&S.fontSize>S.width*10?S.width*10:S.fontSize,O.guardHeight=S.height+O.fontSize/2+S.textMargin,O}return d(s,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(S,O){return this.text.substr(S,O)}},{key:"leftEncode",value:function(S,O){return(0,c.default)(S,O)}},{key:"rightText",value:function(S,O){return this.text.substr(S,O)}},{key:"rightEncode",value:function(S,O){return(0,c.default)(S,O)}},{key:"encodeGuarded",value:function(){var S={fontSize:this.fontSize},O={height:this.guardHeight};return[{data:r.SIDE_BIN,options:O},{data:this.leftEncode(),text:this.leftText(),options:S},{data:r.MIDDLE_BIN,options:O},{data:this.rightEncode(),text:this.rightText(),options:S},{data:r.SIDE_BIN,options:O}]}},{key:"encodeFlat",value:function(){var S=[r.SIDE_BIN,this.leftEncode(),r.MIDDLE_BIN,this.rightEncode(),r.SIDE_BIN];return{data:S.join(""),text:this.text}}}]),s})(_.default);return ur.default=f,ur}var g1;function dp(){if(g1)return ir;g1=1,Object.defineProperty(ir,"__esModule",{value:!0});var d=(function(){function h(s,g){for(var S=0;S<g.length;S++){var O=g[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(s,O.key,O)}}return function(s,g,S){return g&&h(s.prototype,g),S&&h(s,S),s}})(),r=function h(s,g,S){s===null&&(s=Function.prototype);var O=Object.getOwnPropertyDescriptor(s,g);if(O===void 0){var M=Object.getPrototypeOf(s);return M===null?void 0:h(M,g,S)}else{if("value"in O)return O.value;var D=O.get;return D===void 0?void 0:D.call(S)}},o=xi(),c=Tv(),m=_(c);function _(h){return h&&h.__esModule?h:{default:h}}function E(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function b(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:h}function y(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var u=function(s){var g=s.substr(0,12).split("").map(function(S){return+S}).reduce(function(S,O,M){return M%2?S+O*3:S+O},0);return(10-g%10)%10},f=(function(h){y(s,h);function s(g,S){E(this,s),g.search(/^[0-9]{12}$/)!==-1&&(g+=u(g));var O=b(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,g,S));return O.lastChar=S.lastChar,O}return d(s,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===u(this.data)}},{key:"leftText",value:function(){return r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var S=this.data.substr(1,6),O=o.EAN13_STRUCTURE[this.data[0]];return r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"leftEncode",this).call(this,S,O)}},{key:"rightText",value:function(){return r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var S=this.data.substr(7,6);return r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"rightEncode",this).call(this,S,"RRRRRR")}},{key:"encodeGuarded",value:function(){var S=r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(S.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(S.push({data:"00"}),S.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),S}}]),s})(m.default);return ir.default=f,ir}var or={},p1;function vp(){if(p1)return or;p1=1,Object.defineProperty(or,"__esModule",{value:!0});var d=(function(){function f(h,s){for(var g=0;g<s.length;g++){var S=s[g];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(h,S.key,S)}}return function(h,s,g){return s&&f(h.prototype,s),g&&f(h,g),h}})(),r=function f(h,s,g){h===null&&(h=Function.prototype);var S=Object.getOwnPropertyDescriptor(h,s);if(S===void 0){var O=Object.getPrototypeOf(h);return O===null?void 0:f(O,s,g)}else{if("value"in S)return S.value;var M=S.get;return M===void 0?void 0:M.call(g)}},o=Tv(),c=m(o);function m(f){return f&&f.__esModule?f:{default:f}}function _(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function E(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function b(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var y=function(h){var s=h.substr(0,7).split("").map(function(g){return+g}).reduce(function(g,S,O){return O%2?g+S:g+S*3},0);return(10-s%10)%10},u=(function(f){b(h,f);function h(s,g){return _(this,h),s.search(/^[0-9]{7}$/)!==-1&&(s+=y(s)),E(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,s,g))}return d(h,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===y(this.data)}},{key:"leftText",value:function(){return r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var g=this.data.substr(0,4);return r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"leftEncode",this).call(this,g,"LLLL")}},{key:"rightText",value:function(){return r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var g=this.data.substr(4,4);return r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"rightEncode",this).call(this,g,"RRRR")}}]),h})(c.default);return or.default=u,or}var cr={},_1;function yp(){if(_1)return cr;_1=1,Object.defineProperty(cr,"__esModule",{value:!0});var d=(function(){function s(g,S){for(var O=0;O<S.length;O++){var M=S[O];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(g,M.key,M)}}return function(g,S,O){return S&&s(g.prototype,S),O&&s(g,O),g}})(),r=xi(),o=wi(),c=E(o),m=Ut(),_=E(m);function E(s){return s&&s.__esModule?s:{default:s}}function b(s,g){if(!(s instanceof g))throw new TypeError("Cannot call a class as a function")}function y(s,g){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:s}function u(s,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);s.prototype=Object.create(g&&g.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(s,g):s.__proto__=g)}var f=function(g){var S=g.split("").map(function(O){return+O}).reduce(function(O,M,D){return D%2?O+M*9:O+M*3},0);return S%10},h=(function(s){u(g,s);function g(S,O){return b(this,g),y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,S,O))}return d(g,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var O=r.EAN5_STRUCTURE[f(this.data)];return{data:"1011"+(0,c.default)(this.data,O,"01"),text:this.text}}}]),g})(_.default);return cr.default=h,cr}var fr={},b1;function mp(){if(b1)return fr;b1=1,Object.defineProperty(fr,"__esModule",{value:!0});var d=(function(){function h(s,g){for(var S=0;S<g.length;S++){var O=g[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(s,O.key,O)}}return function(s,g,S){return g&&h(s.prototype,g),S&&h(s,S),s}})(),r=xi(),o=wi(),c=E(o),m=Ut(),_=E(m);function E(h){return h&&h.__esModule?h:{default:h}}function b(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function y(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:h}function u(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var f=(function(h){u(s,h);function s(g,S){return b(this,s),y(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,g,S))}return d(s,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var S=r.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,c.default)(this.data,S,"01"),text:this.text}}}]),s})(_.default);return fr.default=f,fr}var bi={},E1;function Av(){if(E1)return bi;E1=1,Object.defineProperty(bi,"__esModule",{value:!0});var d=(function(){function h(s,g){for(var S=0;S<g.length;S++){var O=g[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(s,O.key,O)}}return function(s,g,S){return g&&h(s.prototype,g),S&&h(s,S),s}})();bi.checksum=f;var r=wi(),o=_(r),c=Ut(),m=_(c);function _(h){return h&&h.__esModule?h:{default:h}}function E(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function b(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:h}function y(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var u=(function(h){y(s,h);function s(g,S){E(this,s),g.search(/^[0-9]{11}$/)!==-1&&(g+=f(g));var O=b(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,g,S));return O.displayValue=S.displayValue,S.fontSize>S.width*10?O.fontSize=S.width*10:O.fontSize=S.fontSize,O.guardHeight=S.height+O.fontSize/2+S.textMargin,O}return d(s,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==f(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var S="";return S+="101",S+=(0,o.default)(this.data.substr(0,6),"LLLLLL"),S+="01010",S+=(0,o.default)(this.data.substr(6,6),"RRRRRR"),S+="101",{data:S,text:this.text}}},{key:"guardedEncoding",value:function(){var S=[];return this.displayValue&&S.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),S.push({data:"101"+(0,o.default)(this.data[0],"L"),options:{height:this.guardHeight}}),S.push({data:(0,o.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),S.push({data:"01010",options:{height:this.guardHeight}}),S.push({data:(0,o.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),S.push({data:(0,o.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&S.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),S}}]),s})(m.default);function f(h){var s=0,g;for(g=1;g<11;g+=2)s+=parseInt(h[g]);for(g=0;g<11;g+=2)s+=parseInt(h[g])*3;return(10-s%10)%10}return bi.default=u,bi}var sr={},S1;function gp(){if(S1)return sr;S1=1,Object.defineProperty(sr,"__esModule",{value:!0});var d=(function(){function S(O,M){for(var D=0;D<M.length;D++){var G=M[D];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(O,G.key,G)}}return function(O,M,D){return M&&S(O.prototype,M),D&&S(O,D),O}})(),r=wi(),o=E(r),c=Ut(),m=E(c),_=Av();function E(S){return S&&S.__esModule?S:{default:S}}function b(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function y(S,O){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:S}function u(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(S,O):S.__proto__=O)}var f=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],h=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],s=(function(S){u(O,S);function O(M,D){b(this,O);var G=y(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,M,D));if(G.isValid=!1,M.search(/^[0-9]{6}$/)!==-1)G.middleDigits=M,G.upcA=g(M,"0"),G.text=D.text||""+G.upcA[0]+M+G.upcA[G.upcA.length-1],G.isValid=!0;else if(M.search(/^[01][0-9]{7}$/)!==-1)if(G.middleDigits=M.substring(1,M.length-1),G.upcA=g(G.middleDigits,M[0]),G.upcA[G.upcA.length-1]===M[M.length-1])G.isValid=!0;else return y(G);else return y(G);return G.displayValue=D.displayValue,D.fontSize>D.width*10?G.fontSize=D.width*10:G.fontSize=D.fontSize,G.guardHeight=D.height+G.fontSize/2+D.textMargin,G}return d(O,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var D="";return D+="101",D+=this.encodeMiddleDigits(),D+="010101",{data:D,text:this.text}}},{key:"guardedEncoding",value:function(){var D=[];return this.displayValue&&D.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),D.push({data:"101",options:{height:this.guardHeight}}),D.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),D.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&D.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),D}},{key:"encodeMiddleDigits",value:function(){var D=this.upcA[0],G=this.upcA[this.upcA.length-1],V=h[parseInt(G)][parseInt(D)];return(0,o.default)(this.middleDigits,V)}}]),O})(m.default);function g(S,O){for(var M=parseInt(S[S.length-1]),D=f[M],G="",V=0,ge=0;ge<D.length;ge++){var Se=D[ge];Se==="X"?G+=S[V++]:G+=Se}return G=""+O+G,""+G+(0,_.checksum)(G)}return sr.default=s,sr}var O1;function pp(){if(O1)return _t;O1=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.UPCE=_t.UPC=_t.EAN2=_t.EAN5=_t.EAN8=_t.EAN13=void 0;var d=dp(),r=s(d),o=vp(),c=s(o),m=yp(),_=s(m),E=mp(),b=s(E),y=Av(),u=s(y),f=gp(),h=s(f);function s(g){return g&&g.__esModule?g:{default:g}}return _t.EAN13=r.default,_t.EAN8=c.default,_t.EAN5=_.default,_t.EAN2=b.default,_t.UPC=u.default,_t.UPCE=h.default,_t}var wa={},hr={},pl={},T1;function _p(){return T1||(T1=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.START_BIN="1010",pl.END_BIN="11101",pl.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]),pl}var A1;function Rv(){if(A1)return hr;A1=1,Object.defineProperty(hr,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=_p(),o=Ut(),c=m(o);function m(u){return u&&u.__esModule?u:{default:u}}function _(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function E(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var y=(function(u){b(f,u);function f(){return _(this,f),E(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return d(f,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var s=this,g=this.data.match(/.{2}/g).map(function(S){return s.encodePair(S)}).join("");return{data:r.START_BIN+g+r.END_BIN,text:this.text}}},{key:"encodePair",value:function(s){var g=r.BINARIES[s[1]];return r.BINARIES[s[0]].split("").map(function(S,O){return(S==="1"?"111":"1")+(g[O]==="1"?"000":"0")}).join("")}}]),f})(c.default);return hr.default=y,hr}var dr={},R1;function bp(){if(R1)return dr;R1=1,Object.defineProperty(dr,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=Rv(),o=c(r);function c(u){return u&&u.__esModule?u:{default:u}}function m(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function _(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function E(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var b=function(f){var h=f.substr(0,13).split("").map(function(s){return parseInt(s,10)}).reduce(function(s,g,S){return s+g*(3-S%2*2)},0);return Math.ceil(h/10)*10-h},y=(function(u){E(f,u);function f(h,s){return m(this,f),h.search(/^[0-9]{13}$/)!==-1&&(h+=b(h)),_(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h,s))}return d(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===b(this.data)}}]),f})(o.default);return dr.default=y,dr}var x1;function Ep(){if(x1)return wa;x1=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.ITF14=wa.ITF=void 0;var d=Rv(),r=m(d),o=bp(),c=m(o);function m(_){return _&&_.__esModule?_:{default:_}}return wa.ITF=r.default,wa.ITF14=c.default,wa}var Bt={},vr={},w1;function Di(){if(w1)return vr;w1=1,Object.defineProperty(vr,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=Ut(),o=c(r);function c(u){return u&&u.__esModule?u:{default:u}}function m(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function _(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function E(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var b=(function(u){E(f,u);function f(h,s){return m(this,f),_(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h,s))}return d(f,[{key:"encode",value:function(){for(var s="110",g=0;g<this.data.length;g++){var S=parseInt(this.data[g]),O=S.toString(2);O=y(O,4-O.length);for(var M=0;M<O.length;M++)s+=O[M]=="0"?"100":"110"}return s+="1001",{data:s,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),f})(o.default);function y(u,f){for(var h=0;h<f;h++)u="0"+u;return u}return vr.default=b,vr}var yr={},Ei={},D1;function Gr(){if(D1)return Ei;D1=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.mod10=d,Ei.mod11=r;function d(o){for(var c=0,m=0;m<o.length;m++){var _=parseInt(o[m]);(m+o.length)%2===0?c+=_:c+=_*2%10+Math.floor(_*2/10)}return(10-c%10)%10}function r(o){for(var c=0,m=[2,3,4,5,6,7],_=0;_<o.length;_++){var E=parseInt(o[o.length-1-_]);c+=m[_%m.length]*E}return(11-c%11)%11}return Ei}var C1;function Sp(){if(C1)return yr;C1=1,Object.defineProperty(yr,"__esModule",{value:!0});var d=Di(),r=c(d),o=Gr();function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){return m(this,u),_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f+(0,o.mod10)(f),h))}return u})(r.default);return yr.default=b,yr}var mr={},M1;function Op(){if(M1)return mr;M1=1,Object.defineProperty(mr,"__esModule",{value:!0});var d=Di(),r=c(d),o=Gr();function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){return m(this,u),_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f+(0,o.mod11)(f),h))}return u})(r.default);return mr.default=b,mr}var gr={},z1;function Tp(){if(z1)return gr;z1=1,Object.defineProperty(gr,"__esModule",{value:!0});var d=Di(),r=c(d),o=Gr();function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){return m(this,u),f+=(0,o.mod10)(f),f+=(0,o.mod10)(f),_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f,h))}return u})(r.default);return gr.default=b,gr}var pr={},N1;function Ap(){if(N1)return pr;N1=1,Object.defineProperty(pr,"__esModule",{value:!0});var d=Di(),r=c(d),o=Gr();function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){return m(this,u),f+=(0,o.mod11)(f),f+=(0,o.mod10)(f),_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f,h))}return u})(r.default);return pr.default=b,pr}var B1;function Rp(){if(B1)return Bt;B1=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.MSI1110=Bt.MSI1010=Bt.MSI11=Bt.MSI10=Bt.MSI=void 0;var d=Di(),r=f(d),o=Sp(),c=f(o),m=Op(),_=f(m),E=Tp(),b=f(E),y=Ap(),u=f(y);function f(h){return h&&h.__esModule?h:{default:h}}return Bt.MSI=r.default,Bt.MSI10=c.default,Bt.MSI11=_.default,Bt.MSI1010=b.default,Bt.MSI1110=u.default,Bt}var Si={},q1;function xp(){if(q1)return Si;q1=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.pharmacode=void 0;var d=(function(){function y(u,f){for(var h=0;h<f.length;h++){var s=f[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,f,h){return f&&y(u.prototype,f),h&&y(u,h),u}})(),r=Ut(),o=c(r);function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){m(this,u);var s=_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f,h));return s.number=parseInt(f,10),s}return d(u,[{key:"encode",value:function(){for(var h=this.number,s="";!isNaN(h)&&h!=0;)h%2===0?(s="11100"+s,h=(h-2)/2):(s="100"+s,h=(h-1)/2);return s=s.slice(0,-2),{data:s,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),u})(o.default);return Si.pharmacode=b,Si}var Oi={},U1;function wp(){if(U1)return Oi;U1=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.codabar=void 0;var d=(function(){function y(u,f){for(var h=0;h<f.length;h++){var s=f[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,f,h){return f&&y(u.prototype,f),h&&y(u,h),u}})(),r=Ut(),o=c(r);function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){m(this,u),f.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(f="A"+f+"A");var s=_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f.toUpperCase(),h));return s.text=s.options.text||s.text.replace(/[A-D]/g,""),s}return d(u,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var h=[],s=this.getEncodings(),g=0;g<this.data.length;g++)h.push(s[this.data.charAt(g)]),g!==this.data.length-1&&h.push("0");return{text:this.text,data:h.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),u})(o.default);return Oi.codabar=b,Oi}var Da={},_r={},_l={},L1;function Dp(){return L1||(L1=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],_l.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],_l.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"],"	":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}),_l}var j1;function xv(){if(j1)return _r;j1=1,Object.defineProperty(_r,"__esModule",{value:!0});var d=(function(){function u(f,h){for(var s=0;s<h.length;s++){var g=h[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,h,s){return h&&u(f.prototype,h),s&&u(f,s),f}})(),r=Dp(),o=Ut(),c=m(o);function m(u){return u&&u.__esModule?u:{default:u}}function _(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function E(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var y=(function(u){b(f,u);function f(h,s){return _(this,f),E(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h,s))}return d(f,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var s=this.data.split("").flatMap(function(M){return r.MULTI_SYMBOLS[M]||M}),g=s.map(function(M){return f.getEncoding(M)}).join(""),S=f.checksum(s,20),O=f.checksum(s.concat(S),15);return{text:this.text,data:f.getEncoding("ÿ")+g+f.getEncoding(S)+f.getEncoding(O)+f.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(s){return r.BINARIES[f.symbolValue(s)]}},{key:"getSymbol",value:function(s){return r.SYMBOLS[s]}},{key:"symbolValue",value:function(s){return r.SYMBOLS.indexOf(s)}},{key:"checksum",value:function(s,g){var S=s.slice().reverse().reduce(function(O,M,D){var G=D%g+1;return O+f.symbolValue(M)*G},0);return f.getSymbol(S%47)}}]),f})(c.default);return _r.default=y,_r}var br={},H1;function Cp(){if(H1)return br;H1=1,Object.defineProperty(br,"__esModule",{value:!0});var d=(function(){function y(u,f){for(var h=0;h<f.length;h++){var s=f[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,f,h){return f&&y(u.prototype,f),h&&y(u,h),u}})(),r=xv(),o=c(r);function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){return m(this,u),_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f,h))}return d(u,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),u})(o.default);return br.default=b,br}var G1;function Mp(){if(G1)return Da;G1=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.CODE93FullASCII=Da.CODE93=void 0;var d=xv(),r=m(d),o=Cp(),c=m(o);function m(_){return _&&_.__esModule?_:{default:_}}return Da.CODE93=r.default,Da.CODE93FullASCII=c.default,Da}var Ti={},$1;function zp(){if($1)return Ti;$1=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.GenericBarcode=void 0;var d=(function(){function y(u,f){for(var h=0;h<f.length;h++){var s=f[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,f,h){return f&&y(u.prototype,f),h&&y(u,h),u}})(),r=Ut(),o=c(r);function c(y){return y&&y.__esModule?y:{default:y}}function m(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function _(y,u){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:y}function E(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(y,u):y.__proto__=u)}var b=(function(y){E(u,y);function u(f,h){return m(this,u),_(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f,h))}return d(u,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),u})(o.default);return Ti.GenericBarcode=b,Ti}var k1;function Np(){if(k1)return Pu;k1=1,Object.defineProperty(Pu,"__esModule",{value:!0});var d=up(),r=hp(),o=pp(),c=Ep(),m=Rp(),_=xp(),E=wp(),b=Mp(),y=zp();return Pu.default={CODE39:d.CODE39,CODE128:r.CODE128,CODE128A:r.CODE128A,CODE128B:r.CODE128B,CODE128C:r.CODE128C,EAN13:o.EAN13,EAN8:o.EAN8,EAN5:o.EAN5,EAN2:o.EAN2,UPC:o.UPC,UPCE:o.UPCE,ITF14:c.ITF14,ITF:c.ITF,MSI:m.MSI,MSI10:m.MSI10,MSI11:m.MSI11,MSI1010:m.MSI1010,MSI1110:m.MSI1110,pharmacode:_.pharmacode,codabar:E.codabar,CODE93:b.CODE93,CODE93FullASCII:b.CODE93FullASCII,GenericBarcode:y.GenericBarcode},Pu}var Er={},X1;function $r(){if(X1)return Er;X1=1,Object.defineProperty(Er,"__esModule",{value:!0});var d=Object.assign||function(r){for(var o=1;o<arguments.length;o++){var c=arguments[o];for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&(r[m]=c[m])}return r};return Er.default=function(r,o){return d({},r,o)},Er}var Sr={},Y1;function Bp(){if(Y1)return Sr;Y1=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=d;function d(r){var o=[];function c(m){if(Array.isArray(m))for(var _=0;_<m.length;_++)c(m[_]);else m.text=m.text||"",m.data=m.data||"",o.push(m)}return c(r),o}return Sr}var Or={},Q1;function qp(){if(Q1)return Or;Q1=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=d;function d(r){return r.marginTop=r.marginTop||r.margin,r.marginBottom=r.marginBottom||r.margin,r.marginRight=r.marginRight||r.margin,r.marginLeft=r.marginLeft||r.margin,r}return Or}var Tr={},Ar={},Rr={},V1;function wv(){if(V1)return Rr;V1=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.default=d;function d(r){var o=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var c in o)o.hasOwnProperty(c)&&(c=o[c],typeof r[c]=="string"&&(r[c]=parseInt(r[c],10)));return typeof r.displayValue=="string"&&(r.displayValue=r.displayValue!="false"),r}return Rr}var xr={},Z1;function Dv(){if(Z1)return xr;Z1=1,Object.defineProperty(xr,"__esModule",{value:!0});var d={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};return xr.default=d,xr}var K1;function Up(){if(K1)return Ar;K1=1,Object.defineProperty(Ar,"__esModule",{value:!0});var d=wv(),r=m(d),o=Dv(),c=m(o);function m(E){return E&&E.__esModule?E:{default:E}}function _(E){var b={};for(var y in c.default)c.default.hasOwnProperty(y)&&(E.hasAttribute("jsbarcode-"+y.toLowerCase())&&(b[y]=E.getAttribute("jsbarcode-"+y.toLowerCase())),E.hasAttribute("data-"+y.toLowerCase())&&(b[y]=E.getAttribute("data-"+y.toLowerCase())));return b.value=E.getAttribute("jsbarcode-value")||E.getAttribute("data-value"),b=(0,r.default)(b),b}return Ar.default=_,Ar}var wr={},Dr={},qt={},J1;function Cv(){if(J1)return qt;J1=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.getTotalWidthOfEncodings=qt.calculateEncodingAttributes=qt.getBarcodePadding=qt.getEncodingHeight=qt.getMaximumHeightOfEncodings=void 0;var d=$r(),r=o(d);function o(u){return u&&u.__esModule?u:{default:u}}function c(u,f){return f.height+(f.displayValue&&u.text.length>0?f.fontSize+f.textMargin:0)+f.marginTop+f.marginBottom}function m(u,f,h){if(h.displayValue&&f<u){if(h.textAlign=="center")return Math.floor((u-f)/2);if(h.textAlign=="left")return 0;if(h.textAlign=="right")return Math.floor(u-f)}return 0}function _(u,f,h){for(var s=0;s<u.length;s++){var g=u[s],S=(0,r.default)(f,g.options),O;S.displayValue?O=y(g.text,S,h):O=0;var M=g.data.length*S.width;g.width=Math.ceil(Math.max(O,M)),g.height=c(g,S),g.barcodePadding=m(O,M,S)}}function E(u){for(var f=0,h=0;h<u.length;h++)f+=u[h].width;return f}function b(u){for(var f=0,h=0;h<u.length;h++)u[h].height>f&&(f=u[h].height);return f}function y(u,f,h){var s;if(h)s=h;else if(typeof document<"u")s=document.createElement("canvas").getContext("2d");else return 0;s.font=f.fontOptions+" "+f.fontSize+"px "+f.font;var g=s.measureText(u);if(!g)return 0;var S=g.width;return S}return qt.getMaximumHeightOfEncodings=b,qt.getEncodingHeight=c,qt.getBarcodePadding=m,qt.calculateEncodingAttributes=_,qt.getTotalWidthOfEncodings=E,qt}var F1;function Lp(){if(F1)return Dr;F1=1,Object.defineProperty(Dr,"__esModule",{value:!0});var d=(function(){function b(y,u){for(var f=0;f<u.length;f++){var h=u[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}return function(y,u,f){return u&&b(y.prototype,u),f&&b(y,f),y}})(),r=$r(),o=m(r),c=Cv();function m(b){return b&&b.__esModule?b:{default:b}}function _(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}var E=(function(){function b(y,u,f){_(this,b),this.canvas=y,this.encodings=u,this.options=f}return d(b,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var u=0;u<this.encodings.length;u++){var f=(0,o.default)(this.options,this.encodings[u].options);this.drawCanvasBarcode(f,this.encodings[u]),this.drawCanvasText(f,this.encodings[u]),this.moveCanvasDrawing(this.encodings[u])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var u=this.canvas.getContext("2d");u.save(),(0,c.calculateEncodingAttributes)(this.encodings,this.options,u);var f=(0,c.getTotalWidthOfEncodings)(this.encodings),h=(0,c.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=f+this.options.marginLeft+this.options.marginRight,this.canvas.height=h,u.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(u.fillStyle=this.options.background,u.fillRect(0,0,this.canvas.width,this.canvas.height)),u.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(u,f){var h=this.canvas.getContext("2d"),s=f.data,g;u.textPosition=="top"?g=u.marginTop+u.fontSize+u.textMargin:g=u.marginTop,h.fillStyle=u.lineColor;for(var S=0;S<s.length;S++){var O=S*u.width+f.barcodePadding;s[S]==="1"?h.fillRect(O,g,u.width,u.height):s[S]&&h.fillRect(O,g,u.width,u.height*s[S])}}},{key:"drawCanvasText",value:function(u,f){var h=this.canvas.getContext("2d"),s=u.fontOptions+" "+u.fontSize+"px "+u.font;if(u.displayValue){var g,S;u.textPosition=="top"?S=u.marginTop+u.fontSize-u.textMargin:S=u.height+u.textMargin+u.marginTop+u.fontSize,h.font=s,u.textAlign=="left"||f.barcodePadding>0?(g=0,h.textAlign="left"):u.textAlign=="right"?(g=f.width-1,h.textAlign="right"):(g=f.width/2,h.textAlign="center"),h.fillText(f.text,g,S)}}},{key:"moveCanvasDrawing",value:function(u){var f=this.canvas.getContext("2d");f.translate(u.width,0)}},{key:"restoreCanvas",value:function(){var u=this.canvas.getContext("2d");u.restore()}}]),b})();return Dr.default=E,Dr}var Cr={},P1;function jp(){if(P1)return Cr;P1=1,Object.defineProperty(Cr,"__esModule",{value:!0});var d=(function(){function y(u,f){for(var h=0;h<f.length;h++){var s=f[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,f,h){return f&&y(u.prototype,f),h&&y(u,h),u}})(),r=$r(),o=m(r),c=Cv();function m(y){return y&&y.__esModule?y:{default:y}}function _(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}var E="http://www.w3.org/2000/svg",b=(function(){function y(u,f,h){_(this,y),this.svg=u,this.encodings=f,this.options=h,this.document=h.xmlDocument||document}return d(y,[{key:"render",value:function(){var f=this.options.marginLeft;this.prepareSVG();for(var h=0;h<this.encodings.length;h++){var s=this.encodings[h],g=(0,o.default)(this.options,s.options),S=this.createGroup(f,g.marginTop,this.svg);this.setGroupOptions(S,g),this.drawSvgBarcode(S,g,s),this.drawSVGText(S,g,s),f+=s.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,c.calculateEncodingAttributes)(this.encodings,this.options);var f=(0,c.getTotalWidthOfEncodings)(this.encodings),h=(0,c.getMaximumHeightOfEncodings)(this.encodings),s=f+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(s,h),this.options.background&&this.drawRect(0,0,s,h,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(f,h,s){var g=s.data,S;h.textPosition=="top"?S=h.fontSize+h.textMargin:S=0;for(var O=0,M=0,D=0;D<g.length;D++)M=D*h.width+s.barcodePadding,g[D]==="1"?O++:O>0&&(this.drawRect(M-h.width*O,S,h.width*O,h.height,f),O=0);O>0&&this.drawRect(M-h.width*(O-1),S,h.width*O,h.height,f)}},{key:"drawSVGText",value:function(f,h,s){var g=this.document.createElementNS(E,"text");if(h.displayValue){var S,O;g.setAttribute("style","font:"+h.fontOptions+" "+h.fontSize+"px "+h.font),h.textPosition=="top"?O=h.fontSize-h.textMargin:O=h.height+h.textMargin+h.fontSize,h.textAlign=="left"||s.barcodePadding>0?(S=0,g.setAttribute("text-anchor","start")):h.textAlign=="right"?(S=s.width-1,g.setAttribute("text-anchor","end")):(S=s.width/2,g.setAttribute("text-anchor","middle")),g.setAttribute("x",S),g.setAttribute("y",O),g.appendChild(this.document.createTextNode(s.text)),f.appendChild(g)}}},{key:"setSvgAttributes",value:function(f,h){var s=this.svg;s.setAttribute("width",f+"px"),s.setAttribute("height",h+"px"),s.setAttribute("x","0px"),s.setAttribute("y","0px"),s.setAttribute("viewBox","0 0 "+f+" "+h),s.setAttribute("xmlns",E),s.setAttribute("version","1.1"),s.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(f,h,s){var g=this.document.createElementNS(E,"g");return g.setAttribute("transform","translate("+f+", "+h+")"),s.appendChild(g),g}},{key:"setGroupOptions",value:function(f,h){f.setAttribute("style","fill:"+h.lineColor+";")}},{key:"drawRect",value:function(f,h,s,g,S){var O=this.document.createElementNS(E,"rect");return O.setAttribute("x",f),O.setAttribute("y",h),O.setAttribute("width",s),O.setAttribute("height",g),S.appendChild(O),O}}]),y})();return Cr.default=b,Cr}var Mr={},W1;function Hp(){if(W1)return Mr;W1=1,Object.defineProperty(Mr,"__esModule",{value:!0});var d=(function(){function c(m,_){for(var E=0;E<_.length;E++){var b=_[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}return function(m,_,E){return _&&c(m.prototype,_),E&&c(m,E),m}})();function r(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}var o=(function(){function c(m,_,E){r(this,c),this.object=m,this.encodings=_,this.options=E}return d(c,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),c})();return Mr.default=o,Mr}var I1;function Gp(){if(I1)return wr;I1=1,Object.defineProperty(wr,"__esModule",{value:!0});var d=Lp(),r=E(d),o=jp(),c=E(o),m=Hp(),_=E(m);function E(b){return b&&b.__esModule?b:{default:b}}return wr.default={CanvasRenderer:r.default,SVGRenderer:c.default,ObjectRenderer:_.default},wr}var bl={},ev;function Mv(){if(ev)return bl;ev=1,Object.defineProperty(bl,"__esModule",{value:!0});function d(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}function r(E,b){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:E}function o(E,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(E,b):E.__proto__=b)}var c=(function(E){o(b,E);function b(y,u){d(this,b);var f=r(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return f.name="InvalidInputException",f.symbology=y,f.input=u,f.message='"'+f.input+'" is not a valid input for '+f.symbology,f}return b})(Error),m=(function(E){o(b,E);function b(){d(this,b);var y=r(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return y.name="InvalidElementException",y.message="Not supported type to render on",y}return b})(Error),_=(function(E){o(b,E);function b(){d(this,b);var y=r(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return y.name="NoElementException",y.message="No element to render on.",y}return b})(Error);return bl.InvalidInputException=c,bl.InvalidElementException=m,bl.NoElementException=_,bl}var tv;function $p(){if(tv)return Tr;tv=1,Object.defineProperty(Tr,"__esModule",{value:!0});var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r=Up(),o=E(r),c=Gp(),m=E(c),_=Mv();function E(f){return f&&f.__esModule?f:{default:f}}function b(f){if(typeof f=="string")return y(f);if(Array.isArray(f)){for(var h=[],s=0;s<f.length;s++)h.push(b(f[s]));return h}else{if(typeof HTMLCanvasElement<"u"&&f instanceof HTMLImageElement)return u(f);if(f&&f.nodeName&&f.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&f instanceof SVGElement)return{element:f,options:(0,o.default)(f),renderer:m.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&f instanceof HTMLCanvasElement)return{element:f,options:(0,o.default)(f),renderer:m.default.CanvasRenderer};if(f&&f.getContext)return{element:f,renderer:m.default.CanvasRenderer};if(f&&(typeof f>"u"?"undefined":d(f))==="object"&&!f.nodeName)return{element:f,renderer:m.default.ObjectRenderer};throw new _.InvalidElementException}}function y(f){var h=document.querySelectorAll(f);if(h.length!==0){for(var s=[],g=0;g<h.length;g++)s.push(b(h[g]));return s}}function u(f){var h=document.createElement("canvas");return{element:h,options:(0,o.default)(f),renderer:m.default.CanvasRenderer,afterRender:function(){f.setAttribute("src",h.toDataURL())}}}return Tr.default=b,Tr}var zr={},nv;function kp(){if(nv)return zr;nv=1,Object.defineProperty(zr,"__esModule",{value:!0});var d=(function(){function c(m,_){for(var E=0;E<_.length;E++){var b=_[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}return function(m,_,E){return _&&c(m.prototype,_),E&&c(m,E),m}})();function r(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}var o=(function(){function c(m){r(this,c),this.api=m}return d(c,[{key:"handleCatch",value:function(_){if(_.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw _.message;else throw _;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(_){try{var E=_.apply(void 0,arguments);return this.api._options.valid(!0),E}catch(b){return this.handleCatch(b),this.api}}}]),c})();return zr.default=o,zr}var Af,av;function Xp(){if(av)return Af;av=1;var d=Np(),r=D(d),o=$r(),c=D(o),m=Bp(),_=D(m),E=qp(),b=D(E),y=$p(),u=D(y),f=wv(),h=D(f),s=kp(),g=D(s),S=Mv(),O=Dv(),M=D(O);function D(J){return J&&J.__esModule?J:{default:J}}var G=function(){},V=function(ne,ee,re){var de=new G;if(typeof ne>"u")throw Error("No element to render on was provided.");return de._renderProperties=(0,u.default)(ne),de._encodings=[],de._options=M.default,de._errorHandler=new g.default(de),typeof ee<"u"&&(re=re||{},re.format||(re.format=te()),de.options(re)[re.format](ee,re).render()),de};V.getModule=function(J){return r.default[J]};for(var ge in r.default)r.default.hasOwnProperty(ge)&&Se(r.default,ge);function Se(J,ne){G.prototype[ne]=G.prototype[ne.toUpperCase()]=G.prototype[ne.toLowerCase()]=function(ee,re){var de=this;return de._errorHandler.wrapBarcodeCall(function(){re.text=typeof re.text>"u"?void 0:""+re.text;var ze=(0,c.default)(de._options,re);ze=(0,h.default)(ze);var Je=J[ne],q=He(ee,Je,ze);return de._encodings.push(q),de})}}function He(J,ne,ee){J=""+J;var re=new ne(J,ee);if(!re.valid())throw new S.InvalidInputException(re.constructor.name,J);var de=re.encode();de=(0,_.default)(de);for(var ze=0;ze<de.length;ze++)de[ze].options=(0,c.default)(ee,de[ze].options);return de}function te(){return r.default.CODE128?"CODE128":Object.keys(r.default)[0]}G.prototype.options=function(J){return this._options=(0,c.default)(this._options,J),this},G.prototype.blank=function(J){var ne=new Array(J+1).join("0");return this._encodings.push({data:ne}),this},G.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var J;for(var ne in this._renderProperties){J=this._renderProperties[ne];var ee=(0,c.default)(this._options,J.options);ee.format=="auto"&&(ee.format=te()),this._errorHandler.wrapBarcodeCall(function(){var re=ee.value,de=r.default[ee.format.toUpperCase()],ze=He(re,de,ee);k(J,ze,ee)})}}},G.prototype.render=function(){if(!this._renderProperties)throw new S.NoElementException;if(Array.isArray(this._renderProperties))for(var J=0;J<this._renderProperties.length;J++)k(this._renderProperties[J],this._encodings,this._options);else k(this._renderProperties,this._encodings,this._options);return this},G.prototype._defaults=M.default;function k(J,ne,ee){ne=(0,_.default)(ne);for(var re=0;re<ne.length;re++)ne[re].options=(0,c.default)(ee,ne[re].options),(0,b.default)(ne[re].options);(0,b.default)(ee);var de=J.renderer,ze=new de(J.element,ne,ee);ze.render(),J.afterRender&&J.afterRender()}return typeof window<"u"&&(window.JsBarcode=V),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(J,ne){var ee=[];return jQuery(this).each(function(){ee.push(this)}),V(ee,J,ne)}),Af=V,Af}var Rf,lv;function Yp(){if(lv)return Rf;lv=1;function d(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(G){return typeof G}:d=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},d(M)}var r=m(El()),o=m(Xp()),c=m(jf());function m(M){return M&&M.__esModule?M:{default:M}}function _(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function E(M,D){for(var G=0;G<D.length;G++){var V=D[G];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}function b(M,D,G){return D&&E(M.prototype,D),M}function y(M,D){return D&&(d(D)==="object"||typeof D=="function")?D:f(M)}function u(M){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},u(M)}function f(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function h(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&s(M,D)}function s(M,D){return s=Object.setPrototypeOf||function(V,ge){return V.__proto__=ge,V},s(M,D)}var g,S=r.default.version.split(/[.-]/);S[0]==="0"&&(S[1]==="13"||S[1]==="12")?g=function(D){return D.getDOMNode()}:g=function(D){return D};var O=(function(M){h(D,M);function D(G){var V;return _(this,D),V=y(this,u(D).call(this,G)),V.renderElementRef=r.default.createRef(),V.update=V.update.bind(f(V)),V}return b(D,[{key:"shouldComponentUpdate",value:function(V){var ge=this;return Object.keys(D.propTypes).some(function(Se){return ge.props[Se]!==V[Se]})}},{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var V=g(this.renderElementRef.current);try{new o.default(V,this.props.value,Object.assign({text:this.props.text||this.props.value},this.props))}catch(ge){window.console.error(ge)}}},{key:"render",value:function(){var V=this.props,ge=V.id,Se=V.className;if(this.props.renderer==="svg")return r.default.createElement("svg",{ref:this.renderElementRef,id:ge,className:Se});if(this.props.renderer==="canvas")return r.default.createElement("canvas",{ref:this.renderElementRef,id:ge,className:Se});if(this.props.renderer==="img")return r.default.createElement("img",{ref:this.renderElementRef,id:ge,className:Se})}}]),D})(r.default.Component);return O.propTypes={value:c.default.string.isRequired,text:c.default.string,renderer:c.default.string,format:c.default.string,width:c.default.number,height:c.default.number,displayValue:c.default.bool,fontOptions:c.default.string,font:c.default.string,textAlign:c.default.string,textPosition:c.default.string,textMargin:c.default.number,fontSize:c.default.number,background:c.default.string,lineColor:c.default.string,margin:c.default.number,marginTop:c.default.number,marginBottom:c.default.number,marginLeft:c.default.number,marginRight:c.default.number,id:c.default.string,className:c.default.string,ean128:c.default.bool},O.defaultProps={format:"CODE128",renderer:"svg",width:2,height:100,displayValue:!0,fontOptions:"",font:"monospace",textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,className:"",ean128:!1},Rf=O,Rf}var Qp=Yp();const Vp=uv(Qp),iv="",W=Ur("/",{transports:["polling"],withCredentials:!0});function Zp(){const[d,r]=he.useState(!0),[o,c]=he.useState(""),[m,_]=he.useState(""),[E,b]=he.useState(!1),[y,u]=he.useState(!1),[f,h]=he.useState(!1),[s,g]=he.useState(!1),[S,O]=he.useState(600),[M,D]=he.useState([]),[G,V]=he.useState(""),[ge,Se]=he.useState({}),[He,te]=he.useState([]),[k,J]=he.useState({}),[ne,ee]=he.useState([]),[re,de]=he.useState({}),[ze,Je]=he.useState(0),q=he.useRef({}),K=he.useRef([]),ue=he.useRef({}),be=he.useRef(new Set),Ne=he.useRef({}),R=he.useRef(new Set),L=he.useRef({}),Q=he.useRef({}),P=he.useRef({}),oe=he.useRef({}),Ee=he.useRef(0),se=he.useRef({}),Ue=he.useRef({}),Xe=he.useRef(M),hn=he.useRef(null),[Ca,Ol]=he.useState(0),[Nn,Lt]=he.useState(!1),[jt,ua]=he.useState("qr");window.binaryStateRef=se,window.localFilesRef=q,window.downloadStates=k,he.useEffect(()=>{window.downloadStates=k},[k]),he.useEffect(()=>{Xe.current=M},[M]);const Ci=window.location.protocol,Tl=window.location.hostname||"localhost",Ma="",ra=(o||"").replace(/ /g,"_"),oa=`${Ci}//${Tl}${Ma}/room/${ra||""}`,kr=()=>{Lt(T=>!T)},Xr=()=>{ua(T=>T==="qr"?"barcode":T==="barcode"?(Lt(!1),"hidden"):"qr")},vt=async T=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const j=T==="link"?oa:ra;await navigator.clipboard.writeText(j),b(T),setTimeout(()=>b(null),2e3)}catch(j){console.error(`Failed to copy ${T}:`,j)}},Yr=async()=>{try{const T=await fetch(`${iv}/api/generate-code`,{method:"GET",credentials:"include"}),{code:j,error:Z}=await T.json();if(Z){V(Z);return}c(j),u(!0),V(""),g(!1),W.emit("create",j,w=>{w?.error?(console.error(`Create room failed: ${w.error}`),V(`Failed to create room: ${w.error}`)):console.log(`Successfully created room ${j}`)})}catch(T){console.error("Error generating code:",T),V("Failed to generate room code")}},ca=T=>{if(!T){V("Please enter a room code");return}const j=T.replace(/_/g," ");c(j),V(""),g(!1),W.emit("join",j,Z=>{if(!Z||Z.error){const w=Z?.error||"Failed to join room";w.includes("Already in room")?(te([]),V(""),Je(X=>X+1),console.error(`Re-enter room: ${w}`)):(console.error(`Join room failed: ${w}`),retryCount<3?(console.log(`Retrying join room ${j}, attempt ${retryCount+1}/3`),setTimeout(()=>ca(T,retryCount+1),2e3)):(Wt(),V(`Failed to join room after retries: ${w}`),window.history.pushState({},"","/")))}else console.log(`Successfully joined room ${j}`),V("")})},Mi=()=>{W.emit("leave",o,T=>{T?.error?(console.error(`Leave room failed: ${T.error}`),V(`Failed to leave room: ${T.error}`),Wt(),Lt(!1),ua("qr"),te([]),c(""),_(""),q.current={},K.current=[],window.history.pushState({},"","/")):(console.log(`Successfully left room ${o}: ${T.message}`),Wt(),Lt(!1),ua("qr"),te([]),c(""),_(""),q.current={},K.current=[],window.history.pushState({},"","/"))})},Wt=()=>{c(""),u(!1),h(!1),g(!1),O(600),te([]),D([]),V(""),Se({}),ee([]),de({}),q.current={},Object.values(L.current).forEach(T=>{T.onicecandidate=null,T.oniceconnectionstatechange=null,T.onicecandidateerror=null,T.ondatachannel=null,T.onnegotiationneeded=null,T.close()}),Object.values(Q.current).forEach(T=>{T.readyState==="open"&&T.close()}),Object.values(P.current).forEach(T=>{T.readyState==="open"&&T.close()}),L.current={},Q.current={},P.current={},Object.keys(oe.current).forEach(T=>clearTimeout(oe.current[T])),oe.current={},ue.current={},be.current=new Set,Ne.current={},R.current=new Set,se.current={},Ue.current={}},Al=(T,j,Z=!1)=>{if(!T||T===W.id||T==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${T}`);return}if(s){console.log(`Skipping WebRTC setup for ${T} due to fallback mode`);return}if(L.current[T]){console.log(`WebRTC connection already exists for ${T}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${T} (${Z?"offerer":"answerer"}, attempt ${ue.current[T]||1}/3)`);const w=new RTCPeerConnection({iceServers:[{urls:"turn:twily.info:5349",username:"ana",credential:"butt"},{urls:"stun:stun.l.google.com:19302"}]});ue.current[T]=(ue.current[T]||0)+1,L.current[T]=w,w.ondatachannel=F=>{const le=F.channel;le.label==="file-share"?(Q.current[T]=le,le.onopen=()=>{console.log(`Main DataChannel opened with peer ${T}`),h(!0),O(0),Object.keys(oe.current).forEach(me=>{console.log(`Clearing timeout for ${me}`),clearTimeout(oe.current[me])}),oe.current={},ue.current[T]=0,Q.current.true&&delete Q.current.true,Se({...Q.current});const Be=K.current.map(me=>({name:me.name,size:me.size,peerId:me.peerId,thumbnail:!!q.current[`${me.name}_thumbnail`]}));le.send(JSON.stringify({type:"file-list",files:Be})),Be.forEach(me=>{const Ke=`${me.name}:${me.peerId}`;me.thumbnail&&me.peerId!==W.id&&!q.current[`${me.name}_thumbnail`]&&!R.current.has(Ke)&&Bn(me)}),y&&setTimeout(()=>{le.readyState==="open"?(le.send(JSON.stringify({type:"text-history",history:Xe.current})),console.log(`Sent text-history to ${T}:`,Xe.current)):console.warn(`Main channel not open for ${T}, skipping text-history send`)},1e3)},le.onmessage=Be=>yt(T,Be),le.onclose=()=>{console.log(`Main DataChannel closed with peer ${T}`),delete L.current[T],Se({...Q.current})},le.onerror=Be=>{console.error(`Main DataChannel error with ${T}:`,Be)}):le.label==="binary-transfer"&&(le.binaryType="arraybuffer",P.current[T]=le,le.onmessage=Be=>zi(T,Be),le.onclose=()=>{console.log(`Binary channel closed with peer ${T}`)},le.onerror=Be=>{console.error(`Binary channel error with ${T}:`,Be)})};let X=null,ve=null;return Z&&(X=w.createDataChannel("file-share"),Q.current[T]=X,X.onopen=()=>{console.log(`Main DataChannel opened with peer ${T} (joiner)`),h(!0),O(0),Object.keys(oe.current).forEach(le=>{console.log(`Clearing timeout for ${le}`),clearTimeout(oe.current[le])}),oe.current={},ue.current[T]=0,Q.current.true&&delete Q.current.true,Se({...Q.current});const F=K.current.map(le=>({name:le.name,size:le.size,peerId:le.peerId,thumbnail:!!q.current[`${le.name}_thumbnail`]}));X.send(JSON.stringify({type:"file-list",files:F})),F.forEach(le=>{const Be=`${le.name}:${le.peerId}`;le.thumbnail&&le.peerId!==W.id&&!q.current[`${le.name}_thumbnail`]&&!R.current.has(Be)&&Bn(le)}),y&&setTimeout(()=>{X.readyState==="open"?(X.send(JSON.stringify({type:"text-history",history:Xe.current})),console.log(`Sent text-history to ${T}:`,Xe.current)):console.warn(`Main channel not open for ${T}, skipping text-history send`)},1e3)},X.onmessage=F=>yt(T,F),X.onclose=()=>{console.log(`Main DataChannel closed with peer ${T}`),delete L.current[T],Se({...Q.current})},X.onerror=F=>{console.error(`Main DataChannel error with ${T}:`,F)},ve=w.createDataChannel("binary-transfer"),ve.binaryType="arraybuffer",P.current[T]=ve,ve.onmessage=F=>zi(T,F),ve.onclose=()=>{console.log(`Binary channel closed with peer ${T}`)},ve.onerror=F=>{console.error(`Binary channel error with ${T}:`,F)}),w.onicecandidate=F=>{F.candidate&&j&&(W.emit("ice-candidate",{code:j,candidate:F.candidate,to:T,from:W.id}),console.log(`Sent ICE candidate to ${T} from ${W.id}: ${F.candidate.candidate}`))},w.onicecandidateerror=F=>{console.error(`ICE candidate error for ${T}:`,F)},w.oniceconnectionstatechange=()=>{console.log(`ICE state with ${T} (${y?"creator":"joiner"}): ${w.iceConnectionState}`),typeof ue.current[T]<"u"?w.iceConnectionState==="failed"||w.iceConnectionState==="disconnected"?(console.log(`WebRTC ${w.iceConnectionState} with ${T}, retrying in 5s (attempt ${ue.current[T]}/3)`),setTimeout(()=>{w.iceConnectionState!=="connected"&&!s&&ue.current[T]<3?Al(T,j,Z):w.iceConnectionState!=="connected"&&!s&&(console.log(`Max retries reached for ${T}, switching to fallback`),g(!0),V("WebRTC connection failed after retries, using server fallback"),O(0),te([]),D([]),y&&W.emit("fallback",{code:j}))},5e3)):w.iceConnectionState==="connected"&&(h(!0),g(!1),V(""),clearTimeout(oe.current[T]),ue.current[T]=0):(console.log(`err: peerId ${T} not found in retryCountsRef`),g(!1))},w.onnegotiationneeded=async()=>{try{const F=await w.createOffer();await w.setLocalDescription(F),W.emit("offer",{code:j,offer:w.localDescription,to:T,from:W.id}),console.log(`Sent renegotiation offer to ${T} for room ${j}`)}catch(F){console.error(`Negotiation needed error for ${T}:`,F)}},Z&&w.createOffer().then(F=>{w.setLocalDescription(F),W.emit("offer",{code:j,offer:F,to:T,from:W.id}),console.log(`Sent offer to ${T} for room ${j}`)}).catch(F=>{console.error(`Error creating offer for ${T}:`,F),V("Failed to create WebRTC offer"),g(!0),O(0),te([]),D([]),y&&W.emit("fallback",{code:j})}),()=>clearTimeout(oe.current[T])};he.useEffect(()=>(W.on("peer-joined",T=>{if(!T||!T.peerId||T.peerId==="true"){console.error("Invalid peer-joined data:",T);return}const{peerId:j}=T;console.log(`Peer ${j} joined room ${o}`),Al(j,o,!0)}),W.on("peer-left",T=>{const{peerId:j}=T;if(L.current[j]){L.current[j].close(),Q.current[j]?.readyState==="open"&&Q.current[j].close(),P.current[j]?.readyState==="open"&&P.current[j].close(),delete L.current[j],delete Q.current[j],delete P.current[j],delete oe.current[j],Object.keys(se.current).forEach(w=>{se.current[w].peerId===j&&(delete se.current[w],R.current.delete(`${se.current[w]?.fileName}:${j}`))}),Se({...Q.current}),console.log(`Peer ${j} left room`),te(w=>{const X=w.filter(ve=>ve.peerId!==j);return Object.values(Q.current).forEach(ve=>{ve.readyState==="open"&&ve.send(JSON.stringify({type:"file-list",files:X.map(F=>({name:F.name,size:F.size,peerId:F.peerId,thumbnail:!!q.current[`${F.name}_thumbnail`]}))}))}),X});let Z=!1;Object.keys(Ue.current).forEach(w=>{Ue.current[w].delete(j)&&(Z=!0,Ht(w,Ue.current[w].size))}),Z&&de(w=>({...w}))}y&&Object.keys(L.current).length===0&&(h(!1),s?(g(!1),V("")):O(600))}),W.on("offer",async({code:T,offer:j,to:Z,from:w})=>{if(Z!==W.id||s||T!==o){console.log(`Ignoring offer from ${w} (to=${Z}, socket.id=${W.id}, useFallback=${s}, code mismatch: ${T} vs ${o})`);return}console.log(`Received offer from ${w} for room ${T}`),L.current[w]||(console.log(`No existing connection for ${w}, setting up as answerer`),Al(w,T,!1));try{const X=L.current[w];await X.setRemoteDescription(new RTCSessionDescription(j));const ve=await X.createAnswer();await X.setLocalDescription(ve),W.emit("answer",{code:T,answer:ve,to:w,from:W.id}),console.log(`Sent answer to ${w} from ${W.id} for room ${T}`)}catch(X){console.error(`Error handling offer from ${w}:`,X),V("Failed to process WebRTC offer"),g(!0),O(0),te([]),D([]),y&&W.emit("fallback",{code:T})}}),W.on("answer",async({code:T,answer:j,to:Z,from:w})=>{if(Z!==W.id||s||T!==o){console.log(`Ignoring answer from ${w} (to=${Z}, socket.id=${W.id}, useFallback=${s}, code mismatch: ${T} vs ${o})`);return}if(console.log(`Received answer from ${w} for room ${T}`),L.current[w])try{await L.current[w].setRemoteDescription(new RTCSessionDescription(j)),console.log(`Successfully set remote description for answer from ${w}`)}catch(X){console.error(`Error handling answer from ${w}:`,X),V("Failed to process WebRTC answer"),g(!0),O(0),te([]),D([]),y&&W.emit("fallback",{code:T})}else console.warn(`No peer connection found for ${w} when receiving answer`)}),W.on("room-status",({useFallback:T,textHistory:j,files:Z})=>{T&&(console.log(`Received room-status: useFallback=${T}, textHistory=`,j),g(T),D(j||[]),te(Z||[]),h(!0),O(0),V("Room is in fallback mode"))}),W.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),g(!0),V("Room switched to fallback mode"),O(0),te([]),D([]),de({}),Object.values(L.current).forEach(T=>T.close()),L.current={},Q.current={},P.current={},Object.keys(oe.current).forEach(T=>clearTimeout(oe.current[T])),oe.current={},ue.current={},R.current=new Set}),W.on("ice-candidate",async({code:T,candidate:j,from:Z,to:w})=>{if(w!==W.id||T!==o){console.log(`Ignoring ICE candidate from ${Z} (to=${w}, code mismatch: ${T} vs ${o})`);return}if(console.log(`Received ICE candidate from ${Z}`),L.current[Z])try{await L.current[Z].addIceCandidate(new RTCIceCandidate(j)),console.log(`Added ICE candidate from ${Z}`)}catch(X){console.error(`Error adding ICE candidate from ${Z}:`,X)}else console.warn(`No peer connection found for ${Z} when receiving ICE candidate`)}),W.on("error",T=>{Wt(),console.log("Server error:",T),V(T),T.includes("Invalid code")||T.includes("room not found")?window.history.pushState({},"","/"):T.includes("Room closed by")&&_("")}),W.on("files",T=>{console.log("Received files:",T),te(T)}),W.on("text",({text:T})=>{console.log(`Received text via socket for room ${o}:`,T),D(j=>[...j,T])}),W.on("file-list",({files:T})=>{te(j=>{const Z=T.filter(w=>!j.some(X=>X.name===w.name&&X.peerId===w.peerId)).map(w=>({...w,peerId:w.peerId||"unknown"}));return Z.forEach(w=>{const X=`${w.name}:${w.peerId}`;w.thumbnail&&!q.current[`${w.name}_thumbnail`]&&!R.current.has(X)?(console.log(`Requesting thumbnail for ${w.name} from ${w.peerId}`),Bn(w)):w.thumbnail&&console.log(`Thumbnail for ${w.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",T),[...j,...Z]})}),W.on("update-count-fallback",({fileName:T,count:j})=>{de(Z=>({...Z,[T]:j}))}),W.on("room-status-check",({exists:T,isInRoom:j})=>{T?j||(console.log(`Rejoining room ${o}`),ca(o)):(Wt(),V("Room closed"),_(""),console.log(`Room ${o} closed`))}),W.on("connect",()=>{console.log(`[CLIENT-CONNECT] Connected at ${new Date().toISOString()}`)}),W.on("disconnect",(T,j)=>{console.log(`[CLIENT-DISCONNECT] Disconnected. Reason: ${T} at ${new Date().toISOString()}`),j&&console.log(`[CLIENT-DETAILS] Message: ${j.message}, Description: ${j.description}, Context: ${j.context}`)}),W.on("ping",()=>{console.log(`[CLIENT-PING] Sent at ${new Date().toISOString()}`)}),W.on("pong",()=>{console.log(`[CLIENT-PONG] Received at ${new Date().toISOString()}`)}),()=>{W.off("peer-joined"),W.off("offer"),W.off("answer"),W.off("room-status"),W.off("fallback"),W.off("peer-left"),W.off("ice-candidate"),W.off("error"),W.off("files"),W.off("text"),W.off("file-list"),W.off("update-count-fallback"),W.off("room-status-check")}),[o,y,s]),he.useEffect(()=>{const T=()=>{o&&(W.emit("check-room-status",o),console.log(`Reconnected, checking room status for ${o}`))};return W.io.on("reconnect",T),()=>{W.io.off("reconnect",T)}},[o]),he.useEffect(()=>{const T=()=>{document.visibilityState==="visible"&&o&&(W.disconnected&&(W.connect(),console.log("Tab visible, reconnecting socket")),W.emit("check-room-status",o),console.log(`Tab visible, checking room status for ${o}`))};return document.addEventListener("visibilitychange",T),()=>{document.removeEventListener("visibilitychange",T)}},[o]),he.useEffect(()=>{if(y&&S>0&&!f&&!s){const T=setInterval(()=>{O(j=>j<=1?(Wt(),V("No one joined the room"),0):j-1)},1e3);return()=>clearInterval(T)}},[y,S,f,s,o]),he.useEffect(()=>{K.current=He,console.log("Updated filesRef:",K.current)},[He]),he.useEffect(()=>{const T=Object.keys(L.current);ee([W.id,...T].sort())},[ge,ze]),he.useEffect(()=>{hn.current&&Ol(hn.current.getBoundingClientRect().height)},[ne]),he.useEffect(()=>{if(!o){const T=window.location.pathname;if(T.startsWith("/room/")){const j=T.slice(6).replace(/_/g," ");ca(j)}}},[]);const Bn=T=>{const j=`${T.name}:${T.peerId}`;if(T.thumbnail&&T.peerId!==W.id&&!s){const Z=(Ne.current[T.name]||0)+1;if(Z>3){console.error(`Max retries reached for thumbnail ${T.name} from ${T.peerId}`);return}if(R.current.has(j)){console.log(`Thumbnail request for ${T.name} from ${T.peerId} already in progress, skipping`);return}const w=Q.current[T.peerId];w?.readyState==="open"?(Ne.current[T.name]=Z,R.current.add(j),w.send(JSON.stringify({type:"request-thumbnail",fileName:T.name})),console.log(`Requested thumbnail for ${T.name} from ${T.peerId} via WebRTC (retry ${Z})`)):(console.warn(`Data channel not ready for ${T.peerId}, retrying in 1s`),setTimeout(()=>{R.current.has(j)||Bn(T)},1e3))}else console.error(`Cannot request thumbnail for ${T.name}:`,{isThumbnail:T.thumbnail,isLocal:T.peerId===W.id,useFallback:s,channelOpen:Q.current[T.peerId]?.readyState})},Qr=async(T,j,Z,w)=>{const X=P.current[T];if(!X||X.readyState!=="open"){console.error(`Binary channel not open for ${T}`);return}if(w.size>100*1024){console.warn(`Thumbnail ${Z} size ${w.size} exceeds 100KB limit, skipping`);return}const ve=Ee.current++;console.log(`Sending ${j} ${Z} to ${T}, size: ${w.size}`),X.send(JSON.stringify({type:"start",transferId:ve,kind:j,fileName:Z,size:w.size}));const F=new FileReader;F.onload=()=>{const le=F.result,Be=new TextEncoder().encode(Z),me=8+Be.length,Ke=new ArrayBuffer(me+le.byteLength),De=new DataView(Ke);De.setUint32(0,ve),De.setUint32(4,Be.length),new Uint8Array(Ke).set(Be,8),new Uint8Array(Ke).set(new Uint8Array(le),me),X.send(Ke),X.send(JSON.stringify({type:"end",transferId:ve}))},F.onerror=le=>{console.error(`Error reading ${j} ${Z} for ${T}:`,le)},F.readAsArrayBuffer(w)},Vr=async(T,j,Z)=>{if(!j){console.error(`No fileName provided for sendFileChunked to ${T}`);return}const w=P.current[T];if(!w||w.readyState!=="open"){console.error(`Binary channel not open for ${T}`);return}be.current.has(j)&&(be.current.delete(j),console.log(`Cleared previous cancel for ${j}, starting new send to ${T}`));const X=Ee.current++;console.log(`Sending start message for file ${j} to ${T}, transferId: ${X}, size: ${Z.size}`),w.send(JSON.stringify({type:"start",transferId:X,kind:"file",fileName:j,size:Z.size}));const ve=8*1024*1024,F=4*1024*1024;w.bufferedAmountLowThreshold=F;let le;w.onbufferedamountlow=()=>{le&&(le(),le=null)};const Be=()=>w.bufferedAmount<=ve?Promise.resolve():new Promise(De=>{le=De});await Be();const me=16384;let Ke=0;for(console.log(`--- offset : ${Ke} --- file.size : ${Z.size}`);Ke<Z.size;){if(be.current.has(j)){console.log(`Canceled sending ${j} to ${T}`),w.send(JSON.stringify({type:"cancel",transferId:X}));return}const De=Z.slice(Ke,Ke+me);if(console.log(`--- slice.size : ${De.size}`),De.size===0)break;try{const ln=await new Promise((Bi,qi)=>{const Gt=new FileReader;Gt.onload=ut=>Bi(ut.target.result),Gt.onerror=qi,Gt.readAsArrayBuffer(De)});if(be.current.has(j)){console.log(`Canceled sending ${j} to ${T} during read`),w.send(JSON.stringify({type:"cancel",transferId:X}));return}const dn=new TextEncoder().encode(j),Rl=8+dn.length,qn=new ArrayBuffer(Rl+ln.byteLength),za=new DataView(qn);za.setUint32(0,X),za.setUint32(4,dn.length),new Uint8Array(qn).set(dn,8),new Uint8Array(qn).set(new Uint8Array(ln),Rl),w.send(qn),await Be(),Ke+=ln.byteLength}catch(ln){console.error(`Error reading ${j}:`,ln),w.send(JSON.stringify({type:"cancel",transferId:X}));return}}w.send(JSON.stringify({type:"end",transferId:X})),be.current.delete(j),console.log(`Finished sending ${j} to ${T}`)},fa=(T,j)=>{if(!be.current.has(T)){be.current.add(T);const Z=Q.current[j];Z&&Z.readyState==="open"&&(Z.send(JSON.stringify({type:"end-download",fileName:T})),Z.send(JSON.stringify({type:"cancel-download",fileName:T})),console.log(`Sent end-download and cancel-download for ${T} to ${j}`)),J(w=>{const X=w[T]?.status==="saved",{[T]:ve,...F}=w;return X?{...F,[T]:{status:"saved",progress:100,peerId:j}}:F}),Object.keys(se.current).forEach(w=>{const X=se.current[w];X.fileName===T&&X.peerId===j&&(delete se.current[w],R.current.delete(`${T}:${j}`))}),console.log(`Canceled download for ${T} locally`)}},gt=T=>{te(j=>j.filter(Z=>Z.name!==T)),delete q.current[T],delete q.current[`${T}_thumbnail`],Object.values(Q.current).forEach(j=>{j.readyState==="open"&&j.send(JSON.stringify({type:"remove-file",fileName:T}))}),Ue.current[T]&&(delete Ue.current[T],de(j=>{const{[T]:Z,...w}=j;return w}),Ht(T,0)),console.log(`Deleted file ${T} and notified peers`)},Ht=(T,j)=>{de(Z=>({...Z,[T]:j})),Object.values(Q.current).forEach(Z=>{Z.readyState==="open"&&Z.send(JSON.stringify({type:"update-count",fileName:T,count:j}))})},yt=(T,j)=>{const Z=j.data;try{if(typeof Z=="string"){const w=JSON.parse(Z);if(w.type==="text")D(X=>[...X,w.text]),console.log(`Received text via WebRTC from ${T}: ${w.text}`);else if(w.type==="text-history")console.log(`Received text-history from ${T}:`,w.history,"Current textHistory:",M),Array.isArray(w.history)?D(w.history):console.warn(`Invalid text-history format from ${T}:`,w.history);else if(w.type==="request-file"){const X=q.current[w.fileName];X?(console.log(`Handling request-file for ${w.fileName} from ${T}`),Ni(T,w.fileName,"start"),Vr(T,w.fileName,X)):console.error(`File not found: ${w.fileName}`)}else if(w.type==="request-thumbnail"){const X=q.current[`${w.fileName}_thumbnail`];X?(console.log(`Handling request-thumbnail for ${w.fileName} from ${T}`),Qr(T,"thumbnail",w.fileName,X)):console.error(`Thumbnail not found for ${w.fileName}`)}else w.type==="end-download"?Ni(T,w.fileName,"end"):w.type==="remove-file"?(te(X=>X.filter(ve=>ve.name!==w.fileName)),console.log(`Removed file ${w.fileName} from list`)):w.type==="update-count"?de(X=>({...X,[w.fileName]:w.count})):w.type==="file-list"&&te(X=>{const ve=w.files.filter(F=>!X.some(le=>le.name===F.name&&le.peerId===F.peerId)).map(F=>({...F,peerId:F.peerId||"unknown"}));return ve.forEach(F=>{const le=`${F.name}:${F.peerId}`;F.thumbnail&&!q.current[`${F.name}_thumbnail`]&&!R.current.has(le)?(console.log(`Requesting thumbnail for ${F.name} from ${F.peerId}`),Bn(F)):F.thumbnail&&console.log(`Thumbnail for ${F.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",w.files),[...X,...ve]})}else console.warn(`Unexpected non-string message on main channel from ${T}`),console.log(Z)}catch(w){console.error(`Error processing message from ${T}:`,w)}},zi=(T,j)=>{const Z=j.data;if(typeof Z=="string")try{const w=JSON.parse(Z);if(w.type==="start"){if(w.transferId===void 0||w.transferId===null||!w.fileName||!w.kind||!w.size){console.error(`Invalid start message from ${T}:`,w);return}if(se.current[w.transferId]){console.warn(`TransferId ${w.transferId} already exists for ${T}, ignoring new start for ${w.fileName}`);return}se.current[w.transferId]={kind:w.kind,fileName:w.fileName,chunks:[],expectedSize:w.size,received:0,peerId:T},console.log(`Started ${w.kind} transfer ${w.transferId} for ${w.fileName} from ${T}, expected size: ${w.size}`),w.kind==="file"&&J(X=>({...X,[w.fileName]:{status:"downloading",progress:0,total:w.size,received:0,peerId:T}}))}else if(w.type==="end"){const X=se.current[w.transferId];if(!X){console.warn(`No state for transferId ${w.transferId} from ${T}`);return}if(X.received>=X.expectedSize){const ve=new Blob(X.chunks,{type:X.kind==="thumbnail"?"image/jpeg":"application/octet-stream"});if(console.log(`Assembled ${X.kind} ${X.fileName}, size: ${ve.size}`),X.kind==="thumbnail")q.current[`${X.fileName}_thumbnail`]=ve,console.log(`Received thumbnail for ${X.fileName} from ${T}, size: ${ve.size}`),te(F=>F.map(le=>le.name===X.fileName&&le.peerId!==W.id?{...le,thumbnail:!0}:le)),R.current.delete(`${X.fileName}:${T}`);else if(X.kind==="file"){q.current[X.fileName]=ve;const F=URL.createObjectURL(ve);se.current[w.transferId].blobUrl=F,console.log(`Stored blobUrl ${F} for transferId ${w.transferId}, fileName: ${X.fileName}`),console.log("binaryStateRef.current keys: ",JSON.stringify(Object.keys(se.current))),console.log(`binaryStateRef.current[${w.transferId}]: `,JSON.stringify(se.current[w.transferId]));const le=document.createElement("a");le.href=F,le.download=X.fileName,le.click(),setTimeout(()=>{URL.revokeObjectURL(F),console.log(`Revoked blobUrl ${F} for transferId ${w.transferId}`)},5e3),J(me=>({...me,[X.fileName]:{status:"saved",progress:100,peerId:T}}));const Be=Q.current[T];Be&&Be.readyState==="open"&&Be.send(JSON.stringify({type:"end-download",fileName:X.fileName}))}}else console.warn(`Size mismatch for ${X.kind} ${X.fileName}: received ${X.received}, expected ${X.expectedSize}`),X.kind==="file"&&J(ve=>({...ve,[X.fileName]:{status:"error",progress:X.received/X.expectedSize*100}})),R.current.delete(`${X.fileName}:${T}`)}else if(w.type==="cancel"){const X=se.current[w.transferId];X&&X.kind==="file"&&J(ve=>({...ve,[X.fileName]:{status:"canceled",progress:0}})),R.current.delete(`${X.fileName}:${T}`),delete se.current[w.transferId]}}catch(w){console.error(`Error processing binary control message from ${T}:`,w)}else if(Z instanceof ArrayBuffer){if(Z.byteLength<8){console.warn(`Invalid binary message size from ${T}: ${Z.byteLength} bytes`);return}const w=new DataView(Z),X=w.getUint32(0),ve=w.getUint32(4);if(Z.byteLength<8+ve){console.warn(`Invalid binary message: insufficient length for fileName from ${T}`);return}const F=new Uint8Array(Z,8,ve),le=new TextDecoder().decode(F),Be=Z.slice(8+ve),me=se.current[X];if(me&&me.fileName===le){if(be.current.has(me.fileName)){console.log(`Ignoring chunk for canceled ${me.kind} ${me.fileName}`);return}if(me.chunks.push(Be),me.received+=Be.byteLength,me.kind==="file"){const Ke=Math.min(100,me.received/me.expectedSize*100);J(De=>({...De,[me.fileName]:{...De[me.fileName],progress:Ke,received:me.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${X} from ${T}: expected ${me?.fileName}, got ${le}`)}else if(Z instanceof Blob){console.log(`Received Blob message from ${T}, size: ${Z.size}`),console.dir(Z);const w=new FileReader;w.onload=()=>{const X=w.result;if(X.byteLength<4){console.warn(`Invalid Blob-converted ArrayBuffer size from ${T}: ${X.byteLength} bytes`);return}const ve=new DataView(X),F=ve.getUint32(0),le=ve.getUint32(4);if(X.byteLength<8+le){console.warn(`Invalid Blob-converted ArrayBuffer: insufficient length for fileName from ${T}`);return}const Be=new Uint8Array(X,8,le),me=new TextDecoder().decode(Be),Ke=X.slice(8+le),De=se.current[F];if(De&&De.fileName===me){if(be.current.has(De.fileName)){console.log(`Ignoring chunk for canceled ${De.kind} ${De.fileName}`);return}if(De.chunks.push(Ke),De.received+=Ke.byteLength,console.log(`Received Blob chunk for ${De.kind} ${De.fileName}, transferId ${F}: ${De.received}/${De.expectedSize}`),De.kind==="file"){const ln=Math.min(100,De.received/De.expectedSize*100);J(dn=>({...dn,[De.fileName]:{...dn[De.fileName],progress:ln,received:De.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${F} from ${T}: expected ${De?.fileName}, got ${me}`)},w.onerror=X=>{console.error(`Error reading Blob from ${T}:`,X)},w.readAsArrayBuffer(Z)}else console.warn(`Unexpected message type from ${T}:`,typeof Z),console.log(Z)},Ni=(T,j,Z)=>{if(q.current[j]){Ue.current[j]=Ue.current[j]||new Set,Z==="start"?(Ue.current[j].add(T),console.log(`Started download of ${j} by ${T}, count: ${Ue.current[j].size}`)):Z==="end"&&(Ue.current[j].delete(T),console.log(`Ended download of ${j} by ${T}, count: ${Ue.current[j].size}`));const w=Ue.current[j].size;Ht(j,w)}};return I.jsxs("div",{className:"container mx-auto left",style:{marginTop:`${Ca+50}px`},children:[I.jsxs(I.Fragment,{children:[o&&I.jsx(I.Fragment,{children:y&&S>0&&!f&&I.jsxs("p",{children:["Waiting for peer(s) to connect [WebRTC]... ",S,"s"]})}),I.jsx("h1",{className:"text-2xl font-bold mb-2 cursor-default",children:"Quick File Share"}),G&&I.jsx("p",{className:"text-red-500 mb-2",children:G}),I.jsx(Vg,{code:o,isConnected:f,onCreateRoom:Yr,onJoinRoom:ca,joinCode:m,setJoinCode:_})]}),o&&I.jsxs(I.Fragment,{children:[I.jsxs("p",{className:"text-lg",children:[Ci,"//",Tl,Ma,"/room/",I.jsx("strong",{children:ra||"N/A"})]}),I.jsxs("div",{className:`${Nn?jt=="qr"?"fullscreenqr_p":"fullscreenbar_p":jt=="qr"?"normalscreenqr_p":"normalscreenbar_p"}`,style:{float:"right",background:"#000",position:"relative",zIndex:"100",display:"flex",flexFlow:"column",alignItems:"flex-end",borderRadius:"10px"},children:[I.jsxs("button",{onClick:Xr,className:"mb-4 px-4 py-2 bg-zinc-800 text-white rounded hover:bg-zinc-900",children:["Switch to ",jt==="qr"?"Barcode":jt==="barcode"?"Hidden":"QR Code"]}),jt!=="hidden"&&I.jsx("div",{className:`printable-qr transition-all duration-300 cursor-pointer ${Nn?jt=="qr"?"fullscreenqr":"fullscreenbar":jt=="qr"?"normalscreenqr":"normalscreenbar"}`,onClick:kr,role:"button","aria-label":Nn?"Minimize":"Maximize",children:jt==="qr"?I.jsx(ip,{value:oa,size:256,bgColor:"#ffffff",fgColor:"#000000",level:"H",style:{height:"auto",maxWidth:"100%",width:"100%"}}):I.jsx(Vp,{value:oa,format:"CODE128",width:2,height:Nn?200:100,fontSize:Nn?20:14,background:"#ffffff",lineColor:"#000000",margin:10,flat:!0,style:{height:"auto",maxWidth:"100%",width:"100%"}})})]}),I.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:Mi,children:y?"Close Room":"Leave Room"}),"●",I.jsx("button",{onClick:()=>vt("link"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:E==="link"?"Copied!":"Copy Link"}),I.jsx("button",{onClick:()=>vt("code"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:E==="code"?"Copied!":"Copy Code"}),I.jsxs("div",{ref:hn,className:"mb-4 fixed top-0 right-10 text-right",children:[I.jsxs("h2",{className:"text-xl font-bold text-right",children:["Connected Users (",ne.length,"):"]}),I.jsx("ul",{children:ne.filter(T=>T!=null).map((T,j)=>I.jsxs("li",{children:[W.id&&T===W.id?"(You)":""," ",T]},T||`user-${j}`))})]}),I.jsx(Kg,{textHistory:M,setTextHistory:D,dataChannels:ge,useFallback:s,socket:W,code:o,copied:E,setCopied:b}),I.jsx(Zg,{files:He,setFiles:te,dataChannels:ge,dataChannelsRef:Q,useFallback:s,socket:W,code:o,socketId:W.id,localFilesRef:q,downloadStates:k,setDownloadStates:J,cancelDownload:fa,cancelRequestsRef:be,downloadCounts:re,handleDeleteFile:gt,SERVER_URL:iv}),s&&I.jsx("p",{className:"text-red-500",children:"Using server fallback"})]}),!o&&d&&I.jsx("a",{href:"/apk/",id:"apk",children:I.jsx("button",{children:"APK"})})]})}Wm.createRoot(document.getElementById("root")).render(I.jsx(he.StrictMode,{children:I.jsx(Zp,{})}));
