vendor: 4,752 bytes, lines 1-9
1var iy=e=>{throw TypeError(e)};var Bd=(e,t,n)=>t.has(e)||iy("Cannot "+n);var z=(e,t,n)=>(Bd(e,t,"read from private field"),n?n.call(e):t.get(e)),Ne=(e,t,n)=>t.has(e)?iy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,i)=>(Bd(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Fe=(e,t,n)=>(Bd(e,t,"access private method"),n);var Va=(e,t,n,i)=>({set _(s){he(e,t,s,n)},get _(){return z(e,t,i)}});function Bk(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function wl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ud={exports:{}},Ws={},$d={exports:{}},De={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var oy;function Uk(){if(oy)return De;oy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function w(F){return F===null||typeof F!="object"?null:(F=g&&F[g]||F["@@iterator"],typeof F=="function"?F:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function b(F,Z,T){this.props=F,this.context=Z,this.refs=S,this.updater=T||v}b.prototype.isReactComponent={},b.prototype.setState=function(F,Z){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,Z,"setState")},b.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function _(){}_.prototype=b.prototype;function P(F,Z,T){this.props=F,this.context=Z,this.refs=S,this.updater=T||v}var R=P.prototype=new _;R.constructor=P,k(R,b.prototype),R.isPureReactComponent=!0;var j=Array.isArray,O=Object.prototype.hasOwnProperty,L={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function I(F,Z,T){var de,be={},we=null,ie=null;if(Z!=null)for(de in Z.ref!==void 0&&(ie=Z.ref),Z.key!==void 0&&(we=""+Z.key),Z)O.call(Z,de)&&!V.hasOwnProperty(de)&&(be[de]=Z[de]);var pe=arguments.length-2;if(pe===1)be.children=T;else if(1<pe){for(var ke=Array(pe),Ee=0;Ee<pe;Ee++)ke[Ee]=arguments[Ee+2];be.children=ke}if(F&&F.defaultProps)for(de in pe=F.defaultProps,pe)be[de]===void 0&&(be[de]=pe[de]);return{$$typeof:e,type:F,key:we,ref:ie,props:be,_owner:L.current}}function D(F,Z){return{$$typeof:e,type:F.type,key:Z,ref:F.ref,props:F.props,_owner:F._owner}}function Q(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function q(F){var Z={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(T){return Z[T]})}var U=/\/+/g;function K(F,Z){return typeof F=="object"&&F!==null&&F.key!=null?q(""+F.key):Z.toString(36)}function J(F,Z,T,de,be){var we=typeof F;(we==="undefined"||we==="boolean")&&(F=null);var ie=!1;if(F===null)ie=!0;else switch(we){case"string":case"number":ie=!0;break;case"object":switch(F.$$typeof){case e:case t:ie=!0}}if(ie)return ie=F,be=be(ie),F=de===""?"."+K(ie,0):de,j(be)?(T="",F!=null&&(T=F.replace(U,"$&/")+"/"),J(be,Z,T,"",function(Ee){return Ee})):be!=null&&(Q(be)&&(be=D(be,T+(!be.key||ie&&ie.key===be.key?"":(""+be.key).replace(U,"$&/")+"/")+F)),Z.push(be)),1;if(ie=0,de=de===""?".":de+":",j(F))for(var pe=0;pe<F.length;pe++){we=F[pe];var ke=de+K(we,pe);ie+=J(we,Z,T,ke,be)}
vendor: 5,652 bytes, lines 9-25
9else if(ke=w(F),typeof ke=="function")for(F=ke.call(F),pe=0;!(we=F.next()).done;)we=we.value,ke=de+K(we,pe++),ie+=J(we,Z,T,ke,be);else if(we==="object")throw Z=String(F),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return ie}function X(F,Z,T){if(F==null)return F;var de=[],be=0;return J(F,de,"","",function(we){return Z.call(T,we,be++)}),de}function ee(F){if(F._status===-1){var Z=F._result;Z=Z(),Z.then(function(T){(F._status===0||F._status===-1)&&(F._status=1,F._result=T)},function(T){(F._status===0||F._status===-1)&&(F._status=2,F._result=T)}),F._status===-1&&(F._status=0,F._result=Z)}if(F._status===1)return F._result.default;throw F._result}var ae={current:null},$={transition:null},se={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:$,ReactCurrentOwner:L};function N(){throw Error("act(...) is not supported in production builds of React.")}return De.Children={map:X,forEach:function(F,Z,T){X(F,function(){Z.apply(this,arguments)},T)},count:function(F){var Z=0;return X(F,function(){Z++}),Z},toArray:function(F){return X(F,function(Z){return Z})||[]},only:function(F){if(!Q(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},De.Component=b,De.Fragment=n,De.Profiler=s,De.PureComponent=P,De.StrictMode=i,De.Suspense=f,De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,De.act=N,De.cloneElement=function(F,Z,T){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var de=k({},F.props),be=F.key,we=F.ref,ie=F._owner;if(Z!=null){if(Z.ref!==void 0&&(we=Z.ref,ie=L.current),Z.key!==void 0&&(be=""+Z.key),F.type&&F.type.defaultProps)var pe=F.type.defaultProps;for(ke in Z)O.call(Z,ke)&&!V.hasOwnProperty(ke)&&(de[ke]=Z[ke]===void 0&&pe!==void 0?pe[ke]:Z[ke])}var ke=arguments.length-2;if(ke===1)de.children=T;else if(1<ke){pe=Array(ke);for(var Ee=0;Ee<ke;Ee++)pe[Ee]=arguments[Ee+2];de.children=pe}return{$$typeof:e,type:F.type,key:be,ref:we,props:de,_owner:ie}},De.createContext=function(F){return F={$$typeof:u,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:l,_context:F},F.Consumer=F},De.createElement=I,De.createFactory=function(F){var Z=I.bind(null,F);return Z.type=F,Z},De.createRef=function(){return{current:null}},De.forwardRef=function(F){return{$$typeof:c,render:F}},De.isValidElement=Q,De.lazy=function(F){return{$$typeof:p,_payload:{_status:-1,_result:F},_init:ee}},De.memo=function(F,Z){return{$$typeof:h,type:F,compare:Z===void 0?null:Z}},De.startTransition=function(F){var Z=$.transition;$.transition={};try{F()}finally{$.transition=Z}},De.unstable_act=N,De.useCallback=function(F,Z){return ae.current.useCallback(F,Z)},De.useContext=function(F){return ae.current.useContext(F)},De.useDebugValue=function(){},De.useDeferredValue=function(F){return ae.current.useDeferredValue(F)},De.useEffect=function(F,Z){return ae.current.useEffect(F,Z)},De.useId=function(){return ae.current.useId()},De.useImperativeHandle=function(F,Z,T){return ae.current.useImperativeHandle(F,Z,T)},De.useInsertionEffect=function(F,Z){return ae.current.useInsertionEffect(F,Z)},De.useLayoutEffect=function(F,Z){return ae.current.useLayoutEffect(F,Z)},De.useMemo=function(F,Z){return ae.current.useMemo(F,Z)},De.useReducer=function(F,Z,T){return ae.current.useReducer(F,Z,T)},De.useRef=function(F){return ae.current.useRef(F)},De.useState=function(F){return ae.current.useState(F)},De.useSyncExternalStore=function(F,Z,T){return ae.current.useSyncExternalStore(F,Z,T)},De.useTransition=function(){return ae.current.useTransition()},De.version="18.3.1",De}var sy;function Ph(){return sy||(sy=1,$d.exports=Uk()),$d.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var ly;function $k(){if(ly)return Ws;ly=1;var e=Ph(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(c,f,h){var p,g={},w=null,v=null;h!==void 0&&(w=""+h),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(v=f.ref);for(p in f)i.call(f,p)&&!l.hasOwnProperty(p)&&(g[p]=f[p]);if(c&&c.defaultProps)for(p in f=c.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:c,key:w,ref:v,props:g,_owner:s.current}}return Ws.Fragment=n,Ws.jsx=u,Ws.jsxs=u,Ws}var ay;function Vk(){return ay||(ay=1,Ud.exports=$k()),Ud.exports}var x=Vk(),C=Ph();const Xr=wl(C),Oh=Bk({__proto__:null,default:Xr},[C]);var Ha={},Vd={exports:{}},Qt={},Hd={exports:{}},qd={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var uy;function Hk(){return uy||(uy=1,(function(e){function t($,se){var N=$.length;$.push(se);e:for(;0<N;){var F=N-1>>>1,Z=$[F];if(0<s(Z,se))$[F]=se,$[N]=Z,N=F;else break e}}function n($){return $.length===0?null:$[0]}function i($){if($.length===0)return null;var se=$[0],N=$.pop();if(N!==se){$[0]=N;e:for(var F=0,Z=$.length,T=Z>>>1;F<T;){var de=2*(F+1)-1,be=$[de],we=de+1,ie=$[we];if(0>s(be,N))we<Z&&0>s(ie,be)?($[F]=ie,$[we]=N,F=we):($[F]=be,$[de]=N,F=de);else if(we<Z&&0>
vendor: 50,363 bytes, lines 25-38
25s(ie,N))$[F]=ie,$[we]=N,F=we;else break e}}return se}function s($,se){var N=$.sortIndex-se.sortIndex;return N!==0?N:$.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],h=[],p=1,g=null,w=3,v=!1,k=!1,S=!1,b=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R($){for(var se=n(h);se!==null;){if(se.callback===null)i(h);else if(se.startTime<=$)i(h),se.sortIndex=se.expirationTime,t(f,se);else break;se=n(h)}}function j($){if(S=!1,R($),!k)if(n(f)!==null)k=!0,ee(O);else{var se=n(h);se!==null&&ae(j,se.startTime-$)}}function O($,se){k=!1,S&&(S=!1,_(I),I=-1),v=!0;var N=w;try{for(R(se),g=n(f);g!==null&&(!(g.expirationTime>se)||$&&!q());){var F=g.callback;if(typeof F=="function"){g.callback=null,w=g.priorityLevel;var Z=F(g.expirationTime<=se);se=e.unstable_now(),typeof Z=="function"?g.callback=Z:g===n(f)&&i(f),R(se)}else i(f);g=n(f)}if(g!==null)var T=!0;else{var de=n(h);de!==null&&ae(j,de.startTime-se),T=!1}return T}finally{g=null,w=N,v=!1}}var L=!1,V=null,I=-1,D=5,Q=-1;function q(){return!(e.unstable_now()-Q<D)}function U(){if(V!==null){var $=e.unstable_now();Q=$;var se=!0;try{se=V(!0,$)}finally{se?K():(L=!1,V=null)}}else L=!1}var K;if(typeof P=="function")K=function(){P(U)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,X=J.port2;J.port1.onmessage=U,K=function(){X.postMessage(null)}}else K=function(){b(U,0)};function ee($){V=$,L||(L=!0,K())}function ae($,se){I=b(function(){$(e.unstable_now())},se)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){k||v||(k=!0,ee(O))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function($){switch(w){case 1:case 2:case 3:var se=3;break;default:se=w}var N=w;w=se;try{return $()}finally{w=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,se){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var N=w;w=$;try{return se()}finally{w=N}},e.unstable_scheduleCallback=function($,se,N){var F=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?F+N:F):N=F,$){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=N+Z,$={id:p++,callback:se,priorityLevel:$,startTime:N,expirationTime:Z,sortIndex:-1},N>F?($.sortIndex=N,t(h,$),n(f)===null&&$===n(h)&&(S?(_(I),I=-1):S=!0,ae(j,N-F))):($.sortIndex=Z,t(f,$),k||v||(k=!0,ee(O))),$},e.unstable_shouldYield=q,e.unstable_wrapCallback=function($){var se=w;return function(){var N=w;w=se;try{return $.apply(this,arguments)}finally{w=N}}}})(qd)),qd}var cy;function qk(){return cy||(cy=1,Hd.exports=Hk()),Hd.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var dy;function Wk(){if(dy)return Qt;dy=1;var e=Ph(),t=qk();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(r,o){u(r,o),u(r+"Capture",o)}function u(r,o){for(s[r]=o,r=0;r<o.length;r++)i.add(o[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,p={},g={};function w(r){return f.call(g,r)?!0:f.call(p,r)?!1:h.test(r)?g[r]=!0:(p[r]=!0,!1)}function v(r,o,a,d){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function k(r,o,a,d){if(o===null||typeof o>"u"||v(r,o,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function S(r,o,a,d,m,y,E){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=r,this.type=o,this.sanitizeURL=y,this.removeEmptyString=E}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){b[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];b[o]=new S(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){b[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){b[r]=new S(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){b[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){b[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){b[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){b[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){b[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function P(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(_,P);b[o]=new S(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(_,P);b[o]=new S(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(_,P);b[o]=new S(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){b[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),b.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){b[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function R(r,o,a,d){var m=b.hasOwnProperty(o)?b[o]:null;(m!==null?m.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(k(o,a,m,d)&&(a=null),d||m===null?w(o)&&(a===null?r.removeAttribute(o):r.setAttribute(o,""+a)):m.mustUseProperty?r[m.propertyName]=a===null?m.type===3?!1:"":a:(o=m.attributeName,d=m.attributeNamespace,a===null?r.removeAttribute(o):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,d?r.setAttributeNS(d,o,a):r.setAttribute(o,a))))}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),L=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),q=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),$=Symbol.iterator;function se(r){return r===null||typeof r!="object"?null:(r=$&&r[$]||r["@@iterator"],typeof r=="function"?r:null)}var N=Object.assign,F;function Z(r){if(F===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);F=o&&o[1]||""}return` 34`+F+r}var T=!1;function de(r,o){if(!r||T)return"";T=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(G){var d=G}Reflect.construct(r,[],o)}else{try{o.call()}catch(G){d=G}r.call(o.prototype)}else{try{throw Error()}catch(G){d=G}r()}}catch(G){if(G&&d&&typeof G.stack=="string"){for(var m=G.stack.split(` 35`),y=d.stack.split(` 36`),E=m.length-1,A=y.length-1;1<=E&&0<=A&&m[E]!==y[A];)A--;for(;1<=E&&0<=A;E--,A--)if(m[E]!==y[A]){if(E!==1||A!==1)do if(E--,A--,0>A||m[E]!==y[A]){var M=` 37`+m[E].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=E&&0<=A);break}}}finally{T=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?Z(r):""}function be(r){switch(r.tag){case 5:return Z(r.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return r=de(r.type,!1),r;case 11:return r=de(r.type.render,!1),r;case 1:return r=de(r.type,!0),r;default:return""}}function we(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case V:return"Fragment";case L:return"Portal";case D:return"Profiler";case I:return"StrictMode";case K:return"Suspense";case J:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case q:return(r.displayName||"Context")+".Consumer";case Q:return(r._context.displayName||"Context")+".Provider";case U:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case X:return o=r.displayName||null,o!==null?o:we(r.type)||"Memo";case ee:o=r._payload,r=r._init;try{return we(r(o))}catch{}}return null}function ie(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(o);case 8:return o===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function pe(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ke(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ee(r){var o=ke(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),d=""+r[o];if(!r.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,y=a.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return m.call(this)},set:function(E){d=""+E,y.call(this,E)}}),Object.defineProperty(r,o,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(E){d=""+E},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Oe(r){r._valueTracker||(r._valueTracker=Ee(r))}function je(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var a=o.getValue(),d="";return r&&(d=ke(r)?r.checked?"true":"false":r.value),r=d,r!==a?(o.setValue(r),!0):!1}function ct(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Rt(r,o){var a=o.checked;return N({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function Cn(r,o){var a=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;a=pe(o.value!=null?o.value:a),r._wrapperState={initialChecked:d,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function _n(r,o){o=o.checked,o!=null&&R(r,"checked",o,!1)}function fn(r,o){_n(r,o);var a=pe(o.value),d=o.type;if(a!=null)d==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?Nn(r,o.type,a):o.hasOwnProperty("defaultValue")&&Nn(r,o.type,pe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function eo(r,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,a||o===r.value||(r.value=o),r.defaultValue=o}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function Nn(r,o,a){(o!=="number"||ct(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var _r=Array.isArray;function Nr(r,o,a,d){if(r=r.options,o){o={};for(var m=0;m<a.length;m++)o["$"+a[m]]=!0;for(a=0;a<r.length;a++)m=o.hasOwnProperty("$"+r[a].value),r[a].selected!==m&&(r[a].selected=m),m&&d&&(r[a].defaultSelected=!0)}else{for(a=""+pe(a),o=null,m=0;m<r.length;m++){if(r[m].value===a){r[m].selected=!0,d&&(r[m].defaultSelected=!0);return}o!==null||r[m].disabled||(o=r[m])}o!==null&&(o.selected=!0)}}function us(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return N({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Il(r,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(n(92));if(_r(a)){if(1<a.length)throw Error(n(93));a=a[0]}o=a}o==null&&(o=""),a=o}r._wrapperState={initialValue:pe(a)}}function Ll(r,o){var a=pe(o.value),d=pe(o.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),o.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),d!=null&&(r.defaultValue=""+d)}function jl(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function te(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?te(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Re,Me=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,d,m){MSApp.execUnsafeLocalFunction(function(){return r(o,a,d,m)})}:r})(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(Re=Re||document.createElement("div"),Re.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Re.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Ue(r,o){if(o){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=o;return}}r.textContent=o}var bt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ar=["Webkit","ms","Moz","O"];Object.keys(bt).forEach(function(r){ar.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),bt[o]=bt[r]})});function hn(r,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||bt.hasOwnProperty(r)&&bt[r]?(""+o).trim():o+"px"}function Rr(r,o){r=r.style;for(var a in o)if(o.hasOwnProperty(a)){var d=a.indexOf("--")===0,m=hn(a,o[a],d);a==="float"&&(a="cssFloat"),d?r.setProperty(a,m):r[a]=m}}var Si=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function kt(r,o){if(o){if(Si[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function $n(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 nn=null;function tc(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var nc=null,to=null,no=null;function Sp(r){if(r=Os(r)){if(typeof nc!="function")throw Error(n(280));var o=r.stateNode;o&&(o=ia(o),nc(r.stateNode,r.type,o))}}function bp(r){to?no?no.push(r):no=[r]:to=r}function kp(){if(to){var r=to,o=no;if(no=to=null,Sp(r),o)for(r=0;r<o.length;r++)Sp(o[r])}}function Ep(r,o){return r(o)}function Cp(){}var rc=!1;function _p(r,o,a){if(rc)return r(o,a);rc=!0;try{return Ep(r,o,a)}finally{rc=!1,(to!==null||no!==null)&&(Cp(),kp())}}function cs(r,o){var a=r.stateNode;if(a===null)return null;var d=ia(a);if(d===null)return null;a=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,o,typeof a));return a}var ic=!1;if(c)try{var ds={};Object.defineProperty(ds,"passive",{get:function(){ic=!0}}),window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch{ic=!1}function W1(r,o,a,d,m,y,E,A,M){var G=Array.prototype.slice.call(arguments,3);try{o.apply(a,G)}catch(re){this.onError(re)}}var fs=!1,Ml=null,Dl=!1,oc=null,Q1={onError:function(r){fs=!0,Ml=r}};function K1(r,o,a,d,m,y,E,A,M){fs=!1,Ml=null,W1.apply(Q1,arguments)}function G1(r,o,a,d,m,y,E,A,M){if(K1.apply(this,arguments),fs){if(fs){var G=Ml;fs=!1,Ml=null}else throw Error(n(198));Dl||(Dl=!0,oc=G)}}function bi(r){var o=r,a=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(a=o.return),r=o.return;while(r)}return o.tag===3?a:null}function Np(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function Rp(r){if(bi(r)!==r)throw Error(n(188))}function Y1(r){var o=r.alternate;if(!o){if(o=bi(r),o===null)throw Error(n(188));return o!==r?null:r}for(var a=r,d=o;;){var m=a.return;if(m===null)break;var y=m.alternate;if(y===null){if(d=m.return,d!==null){a=d;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===a)return Rp(m),r;if(y===d)return Rp(m),o;y=y.sibling}throw Error(n(188))}if(a.return!==d.return)a=m,d=y;else{for(var E=!1,A=m.child;A;){if(A===a){E=!0,a=m,d=y;break}if(A===d){E=!0,d=m,a=y;break}A=A.sibling}if(!E){for(A=y.child;A;){if(A===a){E=!0,a=y,d=m;break}if(A===d){E=!0,d=y,a=m;break}A=A.sibling}if(!E)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:o}function Tp(r){return r=Y1(r),r!==null?Pp(r):null}function Pp(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=Pp(r);if(o!==null)return o;r=r.sibling}return null}var Op=t.unstable_scheduleCallback,Ap=t.unstable_cancelCallback,X1=t.unstable_shouldYield,J1=t.unstable_requestPaint,lt=t.unstable_now,Z1=t.unstable_getCurrentPriorityLevel,sc=t.unstable_ImmediatePriority,Ip=t.unstable_UserBlockingPriority,Fl=t.unstable_NormalPriority,eb=t.unstable_LowPriority,Lp=t.unstable_IdlePriority,zl=null,Vn=null;function tb(r){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(zl,r,void 0,(r.current.flags&128)===128)}catch{}}var Rn=Math.clz32?Math.clz32:ib,nb=Math.log,rb=Math.LN2;function ib(r){return r>>>=0,r===0?32:31-(nb(r)/rb|0)|0}var Bl=64,Ul=4194304;function hs(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function $l(r,o){var a=r.pendingLanes;if(a===0)return 0;var d=0,m=r.suspendedLanes,y=r.pingedLanes,E=a&268435455;if(E!==0){var A=E&~m;A!==0?d=hs(A):(y&=E,y!==0&&(d=hs(y)))}else E=a&~m,E!==0?d=hs(E):y!==0&&(d=hs(y));if(d===0)return 0;if(o!==0&&o!==d&&(o&m)===0&&(m=d&-d,y=o&-o,m>=y||m===16&&(y&4194240)!==0))return o;if((d&4)!==0&&(d|=a&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=d;0<o;)a=31-Rn(o),m=1<<a,d|=r[a],o&=~m;return d}function ob(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sb(r,o){for(var a=r.suspendedLanes,d=r.pingedLanes,m=r.expirationTimes,y=r.pendingLanes;0<y;){var E=31-Rn(y),A=1<<E,M=m[E];M===-1?((A&a)===0||(A&d)!==0)&&(m[E]=ob(A,o)):M<=o&&(r.expiredLanes|=A),y&=~A}}function lc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function jp(){var r=Bl;return Bl<<=1,(Bl&4194240)===0&&(Bl=64),r}function ac(r){for(var o=[],a=0;31>a;a++)o.push(r);return o}function ps(r,o,a){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-Rn(o),r[o]=a}function lb(r,o){var a=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<a;){var m=31-Rn(a),y=1<<m;o[m]=0,d[m]=-1,r[m]=-1,a&=~y}}function uc(r,o){var a=r.entangledLanes|=o;for(r=r.entanglements;a;){var d=31-Rn(a),m=1<<d;m&o|r[d]&o&&(r[d]|=o),a&=~m}}var We=0;function Mp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Dp,cc,Fp,zp,Bp,dc=!1,Vl=[],Tr=null,Pr=null,Or=null,ms=new Map,gs=new Map,Ar=[],ab="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Up(r,o){switch(r){case"focusin":case"focusout":Tr=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":Or=null;break;case"pointerover":case"pointerout":ms.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":gs.delete(o.pointerId)}}function ys(r,o,a,d,m,y){return r===null||r.nativeEvent!==y?(r={blockedOn:o,domEventName:a,eventSystemFlags:d,nativeEvent:y,targetContainers:[m]},o!==null&&(o=Os(o),o!==null&&cc(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),r)}function ub(r,o,a,d,m){switch(o){case"focusin":return Tr=ys(Tr,r,o,a,d,m),!0;case"dragenter":return Pr=ys(Pr,r,o,a,d,m),!0;case"mouseover":return Or=ys(Or,r,o,a,d,m),!0;case"pointerover":var y=m.pointerId;return ms.set(y,ys(ms.get(y)||null,r,o,a,d,m)),!0;case"gotpointercapture":return y=m.pointerId,gs.set(y,ys(gs.get(y)||null,r,o,a,d,m)),!0}return!1}function $p(r){var o=ki(r.target);if(o!==null){var a=bi(o);if(a!==null){if(o=a.tag,o===13){if(o=Np(a),o!==null){r.blockedOn=o,Bp(r.priority,function(){Fp(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Hl(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var a=hc(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var d=new a.constructor(a.type,a);nn=d,a.target.dispatchEvent(d),nn=null}else return o=Os(a),o!==null&&cc(o),r.blockedOn=a,!1;o.shift()}return!0}function Vp(r,o,a){Hl(r)&&a.delete(o)}function cb(){dc=!1,Tr!==null&&Hl(Tr)&&(Tr=null),Pr!==null&&Hl(Pr)&&(Pr=null),Or!==null&&Hl(Or)&&(Or=null),ms.forEach(Vp),gs.forEach(Vp)}function vs(r,o){r.blockedOn===o&&(r.blockedOn=null,dc||(dc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,cb)))}function xs(r){function o(m){return vs(m,r)}if(0<Vl.length){vs(Vl[0],r);for(var a=1;a<Vl.length;a++){var d=Vl[a];d.blockedOn===r&&(d.blockedOn=null)}}for(Tr!==null&&vs(Tr,r),Pr!==null&&vs(Pr,r),Or!==null&&vs(Or,r),ms.forEach(o),gs.forEach(o),a=0;a<Ar.length;a++)d=Ar[a],d.blockedOn===r&&(d.blockedOn=null);for(;0<Ar.length&&(a=Ar[0],a.blockedOn===null);)$p(a),a.blockedOn===null&&Ar.shift()}var ro=j.ReactCurrentBatchConfig,ql=!0;function db(r,o,a,d){var m=We,y=ro.transition;ro.transition=null;try{We=1,fc(r,o,a,d)}finally{We=m,ro.transition=y}}function fb(r,o,a,d){var m=We,y=ro.transition;ro.transition=null;try{We=4,fc(r,o,a,d)}finally{We=m,ro.transition=y}}function fc(r,o,a,d){if(ql){var m=hc(r,o,a,d);if(m===null)Pc(r,o,d,Wl,a),Up(r,d);else if(ub(m,r,o,a,d))d.stopPropagation();else if(Up(r,d),o&4&&-1<ab.indexOf(r)){for(;m!==null;){var y=Os(m);if(y!==null&&Dp(y),y=hc(r,o,a,d),y===null&&Pc(r,o,d,Wl,a),y===m)break;m=y}m!==null&&d.stopPropagation()}else Pc(r,o,d,null,a)}}var Wl=null;function hc(r,o,a,d){if(Wl=null,r=tc(d),r=ki(r),r!==null)if(o=bi(r),o===null)r=null;else if(a=o.tag,a===13){if(r=Np(o),r!==null)return r;r=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Wl=r,null}function Hp(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Z1()){case sc:return 1;case Ip:return 4;case Fl:case eb:return 16;case Lp:return 536870912;default:return 16}default:return 16}}var Ir=null,pc=null,Ql=null;function qp(){if(Ql)return Ql;var r,o=pc,a=o.length,d,m="value"in Ir?Ir.value:Ir.textContent,y=m.length;for(r=0;r<a&&o[r]===m[r];r++);var E=a-r;for(d=1;d<=E&&o[a-d]===m[y-d];d++);return Ql=m.slice(r,1<d?1-d:void 0)}function Kl(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Gl(){return!0}function Wp(){return!1}function rn(r){function o(a,d,m,y,E){this._reactName=a,this._targetInst=m,this.type=d,this.nativeEvent=y,this.target=E,this.currentTarget=null;for(var A in r)r.hasOwnProperty(A)&&(a=r[A],this[A]=a?a(y):y[A]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Gl:Wp,this.isPropagationStopped=Wp,this}return N(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),o}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mc=rn(io),ws=N({},io,{view:0,detail:0}),hb=rn(ws),gc,yc,Ss,Yl=N({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ss&&(Ss&&r.type==="mousemove"?(gc=r.screenX-Ss.screenX,yc=r.screenY-Ss.screenY):yc=gc=0,Ss=r),gc)},movementY:function(r){return"movementY"in r?r.movementY:yc}}),Qp=rn(Yl),pb=N({},Yl,{dataTransfer:0}),mb=rn(pb),gb=N({},ws,{relatedTarget:0}),vc=rn(gb),yb=N({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),vb=rn(yb),xb=N({},io,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),wb=rn(xb),Sb=N({},io,{data:0}),Kp=rn(Sb),bb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kb={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"},Eb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cb(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=Eb[r])?!!o[r]:!1}function xc(){return Cb}var _b=N({},ws,{key:function(r){if(r.key){var o=bb[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Kl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?kb[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(r){return r.type==="keypress"?Kl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Kl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Nb=rn(_b),Rb=N({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gp=rn(Rb),Tb=N({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),Pb=rn(Tb),Ob=N({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ab=rn(Ob),Ib=N({},Yl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Lb=rn(Ib),jb=[9,13,27,32],wc=c&&"CompositionEvent"in window,bs=null;c&&"documentMode"in document&&(bs=document.documentMode);var Mb=c&&"TextEvent"in window&&!bs,Yp=c&&(!wc||bs&&8<bs&&11>=bs),Xp=" ",Jp=!1;function Zp(r,o){switch(r){case"keyup":return jb.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var oo=!1;function Db(r,o){switch(r){case"compositionend":return em(o);case"keypress":return o.which!==32?null:(Jp=!0,Xp);case"textInput":return r=o.data,r===Xp&&Jp?null:r;default:return null}}function Fb(r,o){if(oo)return r==="compositionend"||!wc&&Zp(r,o)?(r=qp(),Ql=pc=Ir=null,oo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Yp&&o.locale!=="ko"?null:o.data;default:return null}}var zb={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 tm(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!zb[r.type]:o==="textarea"}function nm(r,o,a,d){bp(d),o=ta(o,"onChange"),0<o.length&&(a=new mc("onChange","change",null,a,d),r.push({event:a,listeners:o}))}var ks=null,Es=null;function Bb(r){wm(r,0)}function Xl(r){var o=co(r);if(je(o))return r}function Ub(r,o){if(r==="change")return o}var rm=!1;if(c){var Sc;if(c){var bc="oninput"in document;if(!bc){var im=document.createElement("div");im.setAttribute("oninput","return;"),bc=typeof im.oninput=="function"}Sc=bc}else Sc=!1;rm=Sc&&(!document.documentMode||9<document.documentMode)}function om(){ks&&(ks.detachEvent("onpropertychange",sm),Es=ks=null)}function sm(r){if(r.propertyName==="value"&&Xl(Es)){var o=[];nm(o,Es,r,tc(r)),_p(Bb,o)}}function $b(r,o,a){r==="focusin"?(om(),ks=o,Es=a,ks.attachEvent("onpropertychange",sm)):r==="focusout"&&om()}function Vb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Xl(Es)}function Hb(r,o){if(r==="click")return Xl(o)}function qb(r,o){if(r==="input"||r==="change")return Xl(o)}function Wb(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Tn=typeof Object.is=="function"?Object.is:Wb;function Cs(r,o){if(Tn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var a=Object.keys(r),d=Object.keys(o);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var m=a[d];if(!f.call(o,m)||!Tn(r[m],o[m]))return!1}return!0}function lm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function am(r,o){var a=lm(r);r=0;for(var d;a;){if(a.nodeType===3){if(d=r+a.textContent.length,r<=o&&d>=o)return{node:a,offset:o-r};r=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=lm(a)}}function um(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?um(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function cm(){for(var r=window,o=ct();o instanceof r.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)r=o.contentWindow;else break;o=ct(r.document)}return o}function kc(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function Qb(r){var o=cm(),a=r.focusedElem,d=r.selectionRange;if(o!==a&&a&&a.ownerDocument&&um(a.ownerDocument.documentElement,a)){if(d!==null&&kc(a)){if(o=d.start,r=d.end,r===void 0&&(r=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(r,a.value.length);else if(r=(o=a.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var m=a.textContent.length,y=Math.min(d.start,m);d=d.end===void 0?y:Math.min(d.end,m),!r.extend&&y>d&&(m=d,d=y,y=m),m=am(a,y);var E=am(a,d);m&&E&&(r.rangeCount!==1||r.anchorNode!==m.node||r.anchorOffset!==m.offset||r.focusNode!==E.node||r.focusOffset!==E.offset)&&(o=o.createRange(),o.setStart(m.node,m.offset),r.removeAllRanges(),y>d?(r.addRange(o),r.extend(E.node,E.offset)):(o.setEnd(E.node,E.offset),r.addRange(o)))}}for(o=[],r=a;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)r=o[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Kb=c&&"documentMode"in document&&11>=document.documentMode,so=null,Ec=null,_s=null,Cc=!1;function dm(r,o,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Cc||so==null||so!==ct(d)||(d=so,"selectionStart"in d&&kc(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),_s&&Cs(_s,d)||(_s=d,d=ta(Ec,"onSelect"),0<d.length&&(o=new mc("onSelect","select",null,o,a),r.push({event:o,listeners:d}),o.target=so)))}function Jl(r,o){var a={};return a[r.toLowerCase()]=o.toLowerCase(),a["Webkit"+r]="webkit"+o,a["Moz"+r]="moz"+o,a}var lo={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionend:Jl("Transition","TransitionEnd")},_c={},fm={};c&&(fm=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function Zl(r){if(_c[r])return _c[r];if(!lo[r])return r;var o=lo[r],a;for(a in o)if(o.hasOwnProperty(a)&&a in fm)return _c[r]=o[a];return r}var hm=Zl("animationend"),pm=Zl("animationiteration"),mm=Zl("animationstart"),gm=Zl("transitionend"),ym=new Map,vm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(r,o){ym.set(r,o),l(o,[r])}for(var Nc=0;Nc<vm.length;Nc++){var Rc=vm[Nc],Gb=Rc.toLowerCase(),Yb=Rc[0].toUpperCase()+Rc.slice(1);Lr(Gb,"on"+Yb)}Lr(hm,"onAnimationEnd"),Lr(pm,"onAnimationIteration"),Lr(mm,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(gm,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),Xb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ns));function xm(r,o,a){var d=r.type||"unknown-event";r.currentTarget=a,G1(d,o,void 0,r),r.currentTarget=null}function wm(r,o){o=(o&4)!==0;for(var a=0;a<r.length;a++){var d=r[a],m=d.event;d=d.listeners;e:{var y=void 0;if(o)for(var E=d.length-1;0<=E;E--){var A=d[E],M=A.instance,G=A.currentTarget;if(A=A.listener,M!==y&&m.isPropagationStopped())break e;xm(m,A,G),y=M}else for(E=0;E<d.length;E++){if(A=d[E],M=A.instance,G=A.currentTarget,A=A.listener,M!==y&&m.isPropagationStopped())break e;xm(m,A,G),y=M}}}if(Dl)throw r=oc,Dl=!1,oc=null,r}function Je(r,o){var a=o[Mc];a===void 0&&(a=o[Mc]=new Set);var d=r+"__bubble";a.has(d)||(Sm(o,r,2,!1),a.add(d))}function Tc(r,o,a){var d=0;o&&(d|=4),Sm(a,r,d,o)}var ea="_reactListening"+Math.random().toString(36).slice(2);function Rs(r){if(!r[ea]){r[ea]=!0,i.forEach(function(a){a!=="selectionchange"&&(Xb.has(a)||Tc(a,!1,r),Tc(a,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[ea]||(o[ea]=!0,Tc("selectionchange",!1,o))}}function Sm(r,o,a,d){switch(Hp(o)){case 1:var m=db;break;case 4:m=fb;break;default:m=fc}a=m.bind(null,o,a,r),m=void 0,!ic||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),d?m!==void 0?r.addEventListener(o,a,{capture:!0,passive:m}):r.addEventListener(o,a,!0):m!==void 0?r.addEventListener(o,a,{passive:m}):r.addEventListener(o,a,!1)}function Pc(r,o,a,d,m){var y=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var A=d.stateNode.containerInfo;if(A===m||A.nodeType===8&&A.parentNode===m)break;if(E===4)for(E=d.return;E!==null;){var M=E.tag;if((M===3||M===4)&&(M=E.stateNode.containerInfo,M===m||M.nodeType===8&&M.parentNode===m))return;E=E.return}for(;A!==null;){if(E=ki(A),E===null)return;if(M=E.tag,M===5||M===6){d=y=E;continue e}A=A.parentNode}}d=d.return}_p(function(){var G=y,re=tc(a),oe=[];e:{var ne=ym.get(r);if(ne!==void 0){var fe=mc,ge=r;switch(r){case"keypress":if(Kl(a)===0)break e;case"keydown":case"keyup":fe=Nb;break;case"focusin":ge="focus",fe=vc;break;case"focusout":ge="blur",fe=vc;break;case"beforeblur":case"afterblur":fe=vc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Qp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=mb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=Pb;break;case hm:case pm:case mm:fe=vb;break;case gm:fe=Ab;break;case"scroll":fe=hb;break;case"wheel":fe=Lb;break;case"copy":case"cut":case"paste":fe=wb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Gp}var xe=(o&4)!==0,at=!xe&&r==="scroll",H=xe?ne!==null?ne+"Capture":null:ne;xe=[];for(var B=G,W;B!==null;){W=B;var ue=W.stateNode;if(W.tag===5&&ue!==null&&(W=ue,H!==null&&(ue=cs(B,H),ue!=null&&xe.push(Ts(B,ue,W)))),at)break;B=B.return}0<xe.length&&(ne=new fe(ne,ge,null,a,re),oe.push({event:ne,listeners:xe}))}}if((o&7)===0){e:{if(ne=r==="mouseover"||r==="pointerover",fe=r==="mouseout"||r==="pointerout",ne&&a!==nn&&(ge=a.relatedTarget||a.fromElement)&&(ki(ge)||ge[ur]))break e;if((fe||ne)&&(ne=re.window===re?re:(ne=re.ownerDocument)?ne.defaultView||ne.parentWindow:window,fe?(ge=a.relatedTarget||a.toElement,fe=G,ge=ge?ki(ge):null,ge!==null&&(at=bi(ge),ge!==at||ge.tag!==5&&ge.tag!==6)&&(ge=null)):(fe=null,ge=G),fe!==ge)){if(xe=Qp,ue="onMouseLeave",H="onMouseEnter",B="mouse",(r==="pointerout"||r==="pointerover")&&(xe=Gp,ue="onPointerLeave",H="onPointerEnter",B="pointer"),at=fe==null?ne:co(fe),W=ge==null?ne:co(ge),ne=new xe(ue,B+"leave",fe,a,re),ne.target=at,ne.relatedTarget=W,ue=null,ki(re)===G&&(xe=new xe(H,B+"enter",ge,a,re),xe.target=W,xe.relatedTarget=at,ue=xe),at=ue,fe&&ge)t:{for(xe=fe,H=ge,B=0,W=xe;W;W=ao(W))B++;for(W=0,ue=H;ue;ue=ao(ue))W++;for(;0<B-W;)xe=ao(xe),B--;for(;0<W-B;)H=ao(H),W--;for(;B--;){if(xe===H||H!==null&&xe===H.alternate)break t;xe=ao(xe),H=ao(H)}xe=null}else xe=null;fe!==null&&bm(oe,ne,fe,xe,!1),ge!==null&&at!==null&&bm(oe,at,ge,xe,!0)}}e:{if(ne=G?co(G):window,fe=ne.nodeName&&ne.nodeName.toLowerCase(),fe==="select"||fe==="input"&&ne.type==="file")var Se=Ub;else if(tm(ne))if(rm)Se=qb;else{Se=Vb;var Ce=$b}else(fe=ne.nodeName)&&fe.toLowerCase()==="input"&&(ne.type==="checkbox"||ne.type==="radio")&&(Se=Hb);if(Se&&(Se=Se(r,G))){nm(oe,Se,a,re);break e}Ce&&Ce(r,ne,G),r==="focusout"&&(Ce=ne._wrapperState)&&Ce.controlled&&ne.type==="number"&&Nn(ne,"number",ne.value)}switch(Ce=G?co(G):window,r){case"focusin":(tm(Ce)||Ce.contentEditable==="true")&&(so=Ce,Ec=G,_s=null);break;case"focusout":_s=Ec=so=null;break;case"mousedown":Cc=!0;break;case"contextmenu":case"mouseup":case"dragend":Cc=!1,dm(oe,a,re);break;case"selectionchange":if(Kb)break;case"keydown":case"keyup":dm(oe,a,re)}var _e;if(wc)e:{switch(r){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else oo?Zp(r,a)&&(Te="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(Yp&&a.locale!=="ko"&&(oo||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&oo&&(_e=qp()):(Ir=re,pc="value"in Ir?Ir.value:Ir.textContent,oo=!0)),Ce=ta(G,Te),0<Ce.length&&(Te=new Kp(Te,r,null,a,re),oe.push({event:Te,listeners:Ce}),_e?Te.data=_e:(_e=em(a),_e!==null&&(Te.data=_e)))),(_e=Mb?Db(r,a):Fb(r,a))&&(G=ta(G,"onBeforeInput"),0<G.length&&(re=new Kp("onBeforeInput","beforeinput",null,a,re),oe.push({event:re,listeners:G}),re.data=_e))}wm(oe,o)})}function Ts(r,o,a){return{instance:r,listener:o,currentTarget:a}}function ta(r,o){for(var a=o+"Capture",d=[];r!==null;){var m=r,y=m.stateNode;m.tag===5&&y!==null&&(m=y,y=cs(r,a),y!=null&&d.unshift(Ts(r,y,m)),y=cs(r,o),y!=null&&d.push(Ts(r,y,m))),r=r.return}return d}function ao(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function bm(r,o,a,d,m){for(var y=o._reactName,E=[];a!==null&&a!==d;){var A=a,M=A.alternate,G=A.stateNode;if(M!==null&&M===d)break;A.tag===5&&G!==null&&(A=G,m?(M=cs(a,y),M!=null&&E.unshift(Ts(a,M,A))):m||(M=cs(a,y),M!=null&&E.push(Ts(a,M,A)))),a=a.return}E.length!==0&&r.push({event:o,listeners:E})}var Jb=/\r\n?/g,Zb=/\u0000|\uFFFD/g;function km(r){return(typeof r=="string"?r:""+r).replace(Jb,` 38`).replace(Zb,"")}function na(r,o,a){if(o=km(o),km(r)!==o&&a)throw Error(n(425))}function ra(){}var Oc=null,Ac=null;function Ic(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Lc=typeof setTimeout=="function"?setTimeout:void 0,ek=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,tk=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(r){return Em.resolve(null).then(r).catch(nk)}:Lc;function nk(r){setTimeout(function(){throw r})}function jc(r,o){var a=o,d=0;do{var m=a.nextSibling;if(r.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(d===0){r.removeChild(m),xs(o);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=m}while(a);xs(o)}function jr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function Cm(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return r;o--}else a==="/$"&&o++}r=r.previousSibling}return null}var uo=Math.random().toString(36).slice(2),Hn="__reactFiber$"+uo,Ps="__reactProps$"+uo,ur="__reactContainer$"+uo,Mc="__reactEvents$"+uo,rk="__reactListeners$"+uo,ik="__reactHandles$"+uo;function ki(r){var o=r[Hn];if(o)return o;for(var a=r.parentNode;a;){if(o=a[ur]||a[Hn]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(r=Cm(r);r!==null;){if(a=r[Hn])return a;r=Cm(r)}return o}r=a,a=r.parentNode}return null}function Os(r){return r=r[Hn]||r[ur],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function co(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function ia(r){return r[Ps]||null}var Dc=[],fo=-1;function Mr(r){return{current:r}}function Ze(r){0>fo||(r.current=Dc[fo],Dc[fo]=null,fo--)}function Ge(r,o){fo++,Dc[fo]=r.current,r.current=o}var Dr={},Tt=Mr(Dr),$t=Mr(!1),Ei=Dr;function ho(r,o){var a=r.type.contextTypes;if(!a)return Dr;var d=r.stateNode;
vendor: 4,306 bytes, line 38
38if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in a)m[y]=o[y];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=m),m}function Vt(r){return r=r.childContextTypes,r!=null}function oa(){Ze($t),Ze(Tt)}function _m(r,o,a){if(Tt.current!==Dr)throw Error(n(168));Ge(Tt,o),Ge($t,a)}function Nm(r,o,a){var d=r.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var m in d)if(!(m in o))throw Error(n(108,ie(r)||"Unknown",m));return N({},a,d)}function sa(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Dr,Ei=Tt.current,Ge(Tt,r),Ge($t,$t.current),!0}function Rm(r,o,a){var d=r.stateNode;if(!d)throw Error(n(169));a?(r=Nm(r,o,Ei),d.__reactInternalMemoizedMergedChildContext=r,Ze($t),Ze(Tt),Ge(Tt,r)):Ze($t),Ge($t,a)}var cr=null,la=!1,Fc=!1;function Tm(r){cr===null?cr=[r]:cr.push(r)}function ok(r){la=!0,Tm(r)}function Fr(){if(!Fc&&cr!==null){Fc=!0;var r=0,o=We;try{var a=cr;for(We=1;r<a.length;r++){var d=a[r];do d=d(!0);while(d!==null)}cr=null,la=!1}catch(m){throw cr!==null&&(cr=cr.slice(r+1)),Op(sc,Fr),m}finally{We=o,Fc=!1}}return null}var po=[],mo=0,aa=null,ua=0,pn=[],mn=0,Ci=null,dr=1,fr="";function _i(r,o){po[mo++]=ua,po[mo++]=aa,aa=r,ua=o}function Pm(r,o,a){pn[mn++]=dr,pn[mn++]=fr,pn[mn++]=Ci,Ci=r;var d=dr;r=fr;var m=32-Rn(d)-1;d&=~(1<<m),a+=1;var y=32-Rn(o)+m;if(30<y){var E=m-m%5;y=(d&(1<<E)-1).toString(32),d>>=E,m-=E,dr=1<<32-Rn(o)+m|a<<m|d,fr=y+r}else dr=1<<y|a<<m|d,fr=r}function zc(r){r.return!==null&&(_i(r,1),Pm(r,1,0))}function Bc(r){for(;r===aa;)aa=po[--mo],po[mo]=null,ua=po[--mo],po[mo]=null;for(;r===Ci;)Ci=pn[--mn],pn[mn]=null,fr=pn[--mn],pn[mn]=null,dr=pn[--mn],pn[mn]=null}var on=null,sn=null,tt=!1,Pn=null;function Om(r,o){var a=xn(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=r,o=r.deletions,o===null?(r.deletions=[a],r.flags|=16):o.push(a)}function Am(r,o){switch(r.tag){case 5:var a=r.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,on=r,sn=jr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,on=r,sn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=Ci!==null?{id:dr,overflow:fr}:null,r.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=xn(18,null,null,0),a.stateNode=o,a.return=r,r.child=a,on=r,sn=null,!0):!1;default:return!1}}function Uc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function $c(r){if(tt){var o=sn;if(o){var a=o;if(!Am(r,o)){if(Uc(r))throw Error(n(418));o=jr(a.nextSibling);var d=on;o&&Am(r,o)?Om(d,a):(r.flags=r.flags&-4097|2,tt=!1,on=r)}}else{if(Uc(r))throw Error(n(418));r.flags=r.flags&-4097|2,tt=!1,on=r}}}function Im(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;on=r}function ca(r){if(r!==on)return!1;if(!tt)return Im(r),tt=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Ic(r.type,r.memoizedProps)),o&&(o=sn)){if(Uc(r))throw Lm(),Error(n(418));for(;o;)Om(r,o),o=jr(o.nextSibling)}if(Im(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(o===0){sn=jr(r.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}r=r.nextSibling}sn=null}}else sn=on?jr(r.stateNode.nextSibling):null;return!0}function Lm(){for(var r=sn;r;)r=jr(r.nextSibling)}function go(){sn=on=null,tt=!1}function Vc(r){Pn===null?Pn=[r]:Pn.push(r)}var sk=j.ReactCurrentBatchConfig;function As(r,o,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,r));var m=d,y=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===y?o.ref:(o=function(E){var A=m.refs;E===null?delete A[y]:A[y]=E},o._stringRef=y,o)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function da(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function jm(r){var o=r._init;return o(r._payload)}
vendor: 4,581 bytes, line 38
38function Mm(r){function o(H,B){if(r){var W=H.deletions;W===null?(H.deletions=[B],H.flags|=16):W.push(B)}}function a(H,B){if(!r)return null;for(;B!==null;)o(H,B),B=B.sibling;return null}function d(H,B){for(H=new Map;B!==null;)B.key!==null?H.set(B.key,B):H.set(B.index,B),B=B.sibling;return H}function m(H,B){return H=Wr(H,B),H.index=0,H.sibling=null,H}function y(H,B,W){return H.index=W,r?(W=H.alternate,W!==null?(W=W.index,W<B?(H.flags|=2,B):W):(H.flags|=2,B)):(H.flags|=1048576,B)}function E(H){return r&&H.alternate===null&&(H.flags|=2),H}function A(H,B,W,ue){return B===null||B.tag!==6?(B=Ld(W,H.mode,ue),B.return=H,B):(B=m(B,W),B.return=H,B)}function M(H,B,W,ue){var Se=W.type;return Se===V?re(H,B,W.props.children,ue,W.key):B!==null&&(B.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===ee&&jm(Se)===B.type)?(ue=m(B,W.props),ue.ref=As(H,B,W),ue.return=H,ue):(ue=ja(W.type,W.key,W.props,null,H.mode,ue),ue.ref=As(H,B,W),ue.return=H,ue)}function G(H,B,W,ue){return B===null||B.tag!==4||B.stateNode.containerInfo!==W.containerInfo||B.stateNode.implementation!==W.implementation?(B=jd(W,H.mode,ue),B.return=H,B):(B=m(B,W.children||[]),B.return=H,B)}function re(H,B,W,ue,Se){return B===null||B.tag!==7?(B=Li(W,H.mode,ue,Se),B.return=H,B):(B=m(B,W),B.return=H,B)}function oe(H,B,W){if(typeof B=="string"&&B!==""||typeof B=="number")return B=Ld(""+B,H.mode,W),B.return=H,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case O:return W=ja(B.type,B.key,B.props,null,H.mode,W),W.ref=As(H,null,B),W.return=H,W;case L:return B=jd(B,H.mode,W),B.return=H,B;case ee:var ue=B._init;return oe(H,ue(B._payload),W)}if(_r(B)||se(B))return B=Li(B,H.mode,W,null),B.return=H,B;da(H,B)}return null}function ne(H,B,W,ue){var Se=B!==null?B.key:null;if(typeof W=="string"&&W!==""||typeof W=="number")return Se!==null?null:A(H,B,""+W,ue);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case O:return W.key===Se?M(H,B,W,ue):null;case L:return W.key===Se?G(H,B,W,ue):null;case ee:return Se=W._init,ne(H,B,Se(W._payload),ue)}if(_r(W)||se(W))return Se!==null?null:re(H,B,W,ue,null);da(H,W)}return null}function fe(H,B,W,ue,Se){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return H=H.get(W)||null,A(B,H,""+ue,Se);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case O:return H=H.get(ue.key===null?W:ue.key)||null,M(B,H,ue,Se);case L:return H=H.get(ue.key===null?W:ue.key)||null,G(B,H,ue,Se);case ee:var Ce=ue._init;return fe(H,B,W,Ce(ue._payload),Se)}if(_r(ue)||se(ue))return H=H.get(W)||null,re(B,H,ue,Se,null);da(B,ue)}return null}function ge(H,B,W,ue){for(var Se=null,Ce=null,_e=B,Te=B=0,wt=null;_e!==null&&Te<W.length;Te++){_e.index>Te?(wt=_e,_e=null):wt=_e.sibling;var Ve=ne(H,_e,W[Te],ue);if(Ve===null){_e===null&&(_e=wt);break}r&&_e&&Ve.alternate===null&&o(H,_e),B=y(Ve,B,Te),Ce===null?Se=Ve:Ce.sibling=Ve,Ce=Ve,_e=wt}if(Te===W.length)return a(H,_e),tt&&_i(H,Te),Se;if(_e===null){for(;Te<W.length;Te++)_e=oe(H,W[Te],ue),_e!==null&&(B=y(_e,B,Te),Ce===null?Se=_e:Ce.sibling=_e,Ce=_e);return tt&&_i(H,Te),Se}for(_e=d(H,_e);Te<W.length;Te++)wt=fe(_e,H,Te,W[Te],ue),wt!==null&&(r&&wt.alternate!==null&&_e.delete(wt.key===null?Te:wt.key),B=y(wt,B,Te),Ce===null?Se=wt:Ce.sibling=wt,Ce=wt);return r&&_e.forEach(function(Qr){return o(H,Qr)}),tt&&_i(H,Te),Se}function xe(H,B,W,ue){var Se=se(W);if(typeof Se!="function")throw Error(n(150));if(W=Se.call(W),W==null)throw Error(n(151));for(var Ce=Se=null,_e=B,Te=B=0,wt=null,Ve=W.next();_e!==null&&!Ve.done;Te++,Ve=W.next()){_e.index>Te?(wt=_e,_e=null):wt=_e.sibling;var Qr=ne(H,_e,Ve.value,ue);if(Qr===null){_e===null&&(_e=wt);break}r&&_e&&Qr.alternate===null&&o(H,_e),B=y(Qr,B,Te),Ce===null?Se=Qr:Ce.sibling=Qr,Ce=Qr,_e=wt}if(Ve.done)return a(H,_e),tt&&_i(H,Te),Se;if(_e===null){for(;!Ve.done;Te++,Ve=W.next())Ve=oe(H,Ve.value,ue),Ve!==null&&(B=y(Ve,B,Te),Ce===null?Se=Ve:Ce.sibling=Ve,Ce=Ve);return tt&&_i(H,Te),Se}for(_e=d(H,_e);!Ve.done;Te++,Ve=W.next())Ve=fe(_e,H,Te,Ve.value,ue),Ve!==null&&(r&&Ve.alternate!==null&&_e.delete(Ve.key===null?Te:Ve.key),B=y(Ve,B,Te),Ce===null?Se=Ve:Ce.sibling=Ve,Ce=Ve);return r&&_e.forEach(function(zk){return o(H,zk)}),tt&&_i(H,Te),Se}function at(H,B,W,ue){if(typeof W=="object"&&W!==null&&W.type===V&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case O:e:{for(var Se=W.key,Ce=B;Ce!==null;){if(Ce.key===Se){if(Se=W.type,Se===V){if(Ce.tag===7){a(H,Ce.sibling),B=m(Ce,W.props.children),B.return=H,H=B;break e}}else if(Ce.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===ee&&jm(Se)===Ce.type){a(H,Ce.sibling),B=m(Ce,W.props),B.ref=As(H,
vendor: 6,214 bytes, line 38
38Ce,W),B.return=H,H=B;break e}a(H,Ce);break}else o(H,Ce);Ce=Ce.sibling}W.type===V?(B=Li(W.props.children,H.mode,ue,W.key),B.return=H,H=B):(ue=ja(W.type,W.key,W.props,null,H.mode,ue),ue.ref=As(H,B,W),ue.return=H,H=ue)}return E(H);case L:e:{for(Ce=W.key;B!==null;){if(B.key===Ce)if(B.tag===4&&B.stateNode.containerInfo===W.containerInfo&&B.stateNode.implementation===W.implementation){a(H,B.sibling),B=m(B,W.children||[]),B.return=H,H=B;break e}else{a(H,B);break}else o(H,B);B=B.sibling}B=jd(W,H.mode,ue),B.return=H,H=B}return E(H);case ee:return Ce=W._init,at(H,B,Ce(W._payload),ue)}if(_r(W))return ge(H,B,W,ue);if(se(W))return xe(H,B,W,ue);da(H,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,B!==null&&B.tag===6?(a(H,B.sibling),B=m(B,W),B.return=H,H=B):(a(H,B),B=Ld(W,H.mode,ue),B.return=H,H=B),E(H)):a(H,B)}return at}var yo=Mm(!0),Dm=Mm(!1),fa=Mr(null),ha=null,vo=null,Hc=null;function qc(){Hc=vo=ha=null}function Wc(r){var o=fa.current;Ze(fa),r._currentValue=o}function Qc(r,o,a){for(;r!==null;){var d=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),r===a)break;r=r.return}}function xo(r,o){ha=r,Hc=vo=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Ht=!0),r.firstContext=null)}function gn(r){var o=r._currentValue;if(Hc!==r)if(r={context:r,memoizedValue:o,next:null},vo===null){if(ha===null)throw Error(n(308));vo=r,ha.dependencies={lanes:0,firstContext:r}}else vo=vo.next=r;return o}var Ni=null;function Kc(r){Ni===null?Ni=[r]:Ni.push(r)}function Fm(r,o,a,d){var m=o.interleaved;return m===null?(a.next=a,Kc(o)):(a.next=m.next,m.next=a),o.interleaved=a,hr(r,d)}function hr(r,o){r.lanes|=o;var a=r.alternate;for(a!==null&&(a.lanes|=o),a=r,r=r.return;r!==null;)r.childLanes|=o,a=r.alternate,a!==null&&(a.childLanes|=o),a=r,r=r.return;return a.tag===3?a.stateNode:null}var zr=!1;function Gc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zm(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function pr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Br(r,o,a){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,($e&2)!==0){var m=d.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),d.pending=o,hr(r,a)}return m=d.interleaved,m===null?(o.next=o,Kc(d)):(o.next=m.next,m.next=o),d.interleaved=o,hr(r,a)}function pa(r,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var d=o.lanes;d&=r.pendingLanes,a|=d,o.lanes=a,uc(r,a)}}function Bm(r,o){var a=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var m=null,y=null;if(a=a.firstBaseUpdate,a!==null){do{var E={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};y===null?m=y=E:y=y.next=E,a=a.next}while(a!==null);y===null?m=y=o:y=y.next=o}else m=y=o;a={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:d.shared,effects:d.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=o:r.next=o,a.lastBaseUpdate=o}function ma(r,o,a,d){var m=r.updateQueue;zr=!1;var y=m.firstBaseUpdate,E=m.lastBaseUpdate,A=m.shared.pending;if(A!==null){m.shared.pending=null;var M=A,G=M.next;M.next=null,E===null?y=G:E.next=G,E=M;var re=r.alternate;re!==null&&(re=re.updateQueue,A=re.lastBaseUpdate,A!==E&&(A===null?re.firstBaseUpdate=G:A.next=G,re.lastBaseUpdate=M))}if(y!==null){var oe=m.baseState;E=0,re=G=M=null,A=y;do{var ne=A.lane,fe=A.eventTime;if((d&ne)===ne){re!==null&&(re=re.next={eventTime:fe,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var ge=r,xe=A;switch(ne=o,fe=a,xe.tag){case 1:if(ge=xe.payload,typeof ge=="function"){oe=ge.call(fe,oe,ne);break e}oe=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=xe.payload,ne=typeof ge=="function"?ge.call(fe,oe,ne):ge,ne==null)break e;oe=N({},oe,ne);break e;case 2:zr=!0}}A.callback!==null&&A.lane!==0&&(r.flags|=64,ne=m.effects,ne===null?m.effects=[A]:ne.push(A))}else fe={eventTime:fe,lane:ne,tag:A.tag,payload:A.payload,callback:A.callback,next:null},re===null?(G=re=fe,M=oe):re=re.next=fe,E|=ne;if(A=A.next,A===null){if(A=m.shared.pending,A===null)break;ne=A,A=ne.next,ne.next=null,m.lastBaseUpdate=ne,m.shared.pending=null}}while(!0);if(re===null&&(M=oe),m.baseState=M,m.firstBaseUpdate=G,m.lastBaseUpdate=re,o=m.shared.interleaved,o!==null){m=o;do E|=m.lane,m=m.next;while(m!==o)}else y===null&&(m.shared.lanes=0);Pi|=E,r.lanes=E,r.memoizedState=oe}}function Um(r,o,a){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var d=r[o],m=d.callback;if(m!==null){if(d.callback=null,d=a,typeof m!="function")throw Error(n(191,m));m.call(d)}}}var Is={},qn=Mr(Is),Ls=Mr(Is),js=Mr(Is);function Ri(r){if(r===Is)throw Error(n(174));return r}function Yc(r,o){switch(Ge(js,o),Ge(Ls,r),Ge(qn,Is),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ce(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=ce(o,r)}Ze(qn),Ge(qn,o)}function wo(){Ze(qn),Ze(Ls),Ze(js)}function $m(r){Ri(js.current);var o=Ri(qn.current),a=ce(o,r.type);o!==a&&(Ge(Ls,r),Ge(qn,a))}function Xc(r){Ls.current===r&&(Ze(qn),Ze(Ls))}var nt=Mr(0);function ga(r){for(var o=r;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Jc=[];function Zc(){for(var r=0;r<Jc.length;r++)Jc[r]._workInProgressVersionPrimary=null;Jc.length=0}var ya=j.ReactCurrentDispatcher,ed=j.ReactCurrentBatchConfig,Ti=0,rt=null,pt=null,vt=null,va=!1,Ms=!1,Ds=0,lk=0;function Pt(){throw Error(n(321))}function td(r,o){if(o===null)return!1;for(var a=0;a<o.length&&a<r.length;a++)if(!Tn(r[a],o[a]))return!1;return!0}
vendor: 6,773 bytes, line 38
38function nd(r,o,a,d,m,y){if(Ti=y,rt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ya.current=r===null||r.memoizedState===null?dk:fk,r=a(d,m),Ms){y=0;do{if(Ms=!1,Ds=0,25<=y)throw Error(n(301));y+=1,vt=pt=null,o.updateQueue=null,ya.current=hk,r=a(d,m)}while(Ms)}if(ya.current=Sa,o=pt!==null&&pt.next!==null,Ti=0,vt=pt=rt=null,va=!1,o)throw Error(n(300));return r}function rd(){var r=Ds!==0;return Ds=0,r}function Wn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?rt.memoizedState=vt=r:vt=vt.next=r,vt}function yn(){if(pt===null){var r=rt.alternate;r=r!==null?r.memoizedState:null}else r=pt.next;var o=vt===null?rt.memoizedState:vt.next;if(o!==null)vt=o,pt=r;else{if(r===null)throw Error(n(310));pt=r,r={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},vt===null?rt.memoizedState=vt=r:vt=vt.next=r}return vt}function Fs(r,o){return typeof o=="function"?o(r):o}function id(r){var o=yn(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=pt,m=d.baseQueue,y=a.pending;if(y!==null){if(m!==null){var E=m.next;m.next=y.next,y.next=E}d.baseQueue=m=y,a.pending=null}if(m!==null){y=m.next,d=d.baseState;var A=E=null,M=null,G=y;do{var re=G.lane;if((Ti&re)===re)M!==null&&(M=M.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),d=G.hasEagerState?G.eagerState:r(d,G.action);else{var oe={lane:re,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};M===null?(A=M=oe,E=d):M=M.next=oe,rt.lanes|=re,Pi|=re}G=G.next}while(G!==null&&G!==y);M===null?E=d:M.next=A,Tn(d,o.memoizedState)||(Ht=!0),o.memoizedState=d,o.baseState=E,o.baseQueue=M,a.lastRenderedState=d}if(r=a.interleaved,r!==null){m=r;do y=m.lane,rt.lanes|=y,Pi|=y,m=m.next;while(m!==r)}else m===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function od(r){var o=yn(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=a.dispatch,m=a.pending,y=o.memoizedState;if(m!==null){a.pending=null;var E=m=m.next;do y=r(y,E.action),E=E.next;while(E!==m);Tn(y,o.memoizedState)||(Ht=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),a.lastRenderedState=y}return[y,d]}function Vm(){}function Hm(r,o){var a=rt,d=yn(),m=o(),y=!Tn(d.memoizedState,m);if(y&&(d.memoizedState=m,Ht=!0),d=d.queue,sd(Qm.bind(null,a,d,r),[r]),d.getSnapshot!==o||y||vt!==null&&vt.memoizedState.tag&1){if(a.flags|=2048,zs(9,Wm.bind(null,a,d,m,o),void 0,null),xt===null)throw Error(n(349));(Ti&30)!==0||qm(a,o,m)}return m}function qm(r,o,a){r.flags|=16384,r={getSnapshot:o,value:a},o=rt.updateQueue,o===null?(o={lastEffect:null,stores:null},rt.updateQueue=o,o.stores=[r]):(a=o.stores,a===null?o.stores=[r]:a.push(r))}function Wm(r,o,a,d){o.value=a,o.getSnapshot=d,Km(o)&&Gm(r)}function Qm(r,o,a){return a(function(){Km(o)&&Gm(r)})}function Km(r){var o=r.getSnapshot;r=r.value;try{var a=o();return!Tn(r,a)}catch{return!0}}function Gm(r){var o=hr(r,1);o!==null&&Ln(o,r,1,-1)}function Ym(r){var o=Wn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fs,lastRenderedState:r},o.queue=r,r=r.dispatch=ck.bind(null,rt,r),[o.memoizedState,r]}function zs(r,o,a,d){return r={tag:r,create:o,destroy:a,deps:d,next:null},o=rt.updateQueue,o===null?(o={lastEffect:null,stores:null},rt.updateQueue=o,o.lastEffect=r.next=r):(a=o.lastEffect,a===null?o.lastEffect=r.next=r:(d=a.next,a.next=r,r.next=d,o.lastEffect=r)),r}function Xm(){return yn().memoizedState}function xa(r,o,a,d){var m=Wn();rt.flags|=r,m.memoizedState=zs(1|o,a,void 0,d===void 0?null:d)}function wa(r,o,a,d){var m=yn();d=d===void 0?null:d;var y=void 0;if(pt!==null){var E=pt.memoizedState;if(y=E.destroy,d!==null&&td(d,E.deps)){m.memoizedState=zs(o,a,y,d);return}}rt.flags|=r,m.memoizedState=zs(1|o,a,y,d)}function Jm(r,o){return xa(8390656,8,r,o)}function sd(r,o){return wa(2048,8,r,o)}function Zm(r,o){return wa(4,2,r,o)}function eg(r,o){return wa(4,4,r,o)}function tg(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function ng(r,o,a){return a=a!=null?a.concat([r]):null,wa(4,4,tg.bind(null,o,r),a)}function ld(){}function rg(r,o){var a=yn();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&td(o,d[1])?d[0]:(a.memoizedState=[r,o],r)}function ig(r,o){var a=yn();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&td(o,d[1])?d[0]:(r=r(),a.memoizedState=[r,o],r)}function og(r,o,a){return(Ti&21)===0?(r.baseState&&(r.baseState=!1,Ht=!0),r.memoizedState=a):(Tn(a,o)||(a=jp(),rt.lanes|=a,Pi|=a,r.baseState=!0),o)}function ak(r,o){var a=We;We=a!==0&&4>a?a:4,r(!0);var d=ed.transition;ed.transition={};try{r(!1),o()}finally{We=a,ed.transition=d}}function sg(){return yn().memoizedState}function uk(r,o,a){var d=Hr(r);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},lg(r))ag(o,a);else if(a=Fm(r,o,a,d),a!==null){var m=Ft();Ln(a,r,d,m),ug(a,o,d)}}function ck(r,o,a){var d=Hr(r),m={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(lg(r))ag(o,m);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var E=o.lastRenderedState,A=y(E,a);if(m.hasEagerState=!0,m.eagerState=A,Tn(A,E)){var M=o.interleaved;M===null?(m.next=m,Kc(o)):(m.next=M.next,M.next=m),o.interleaved=m;return}}catch{}finally{}a=Fm(r,o,m,d),a!==null&&(m=Ft(),Ln(a,r,d,m),ug(a,o,d))}}function lg(r){var o=r.alternate;return r===rt||o!==null&&o===rt}function ag(r,o){Ms=va=!0;var a=r.pending;a===null?o.next=o:(o.next=a.next,a.next=o),r.pending=o}function ug(r,o,a){if((a&4194240)!==0){var d=o.lanes;d&=r.pendingLanes,a|=d,o.lanes=a,uc(r,a)}}var Sa={readContext:gn,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},dk={readContext:gn,useCallback:function(r,o){return Wn().memoizedState=[r,o===void 0?null:o],r},useContext:gn,useEffect:Jm,useImperativeHandle:function(r,o,a){return a=a!=null?a.concat([r]):null,xa(4194308,4,tg.bind(null,o,r),a)},useLayoutEffect:function(r,o){return xa(4194308,4,r,o)},useInsertionEffect:function(r,o){return xa(4,2,r,o)},useMemo:function(r,o){var a=Wn();return o=o===void 0?null:o,r=r(),a.memoizedState=[r,o],r},useReducer:function(r,o,a){var d=Wn();return o=a!==void 0?a(o):o,d.memoizedState=d.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},d.queue=r,r=r.dispatch=uk.bind(null,rt,r),[d.memoizedState,r]}
vendor: 9,535 bytes, lines 38-40
38,useRef:function(r){var o=Wn();return r={current:r},o.memoizedState=r},useState:Ym,useDebugValue:ld,useDeferredValue:function(r){return Wn().memoizedState=r},useTransition:function(){var r=Ym(!1),o=r[0];return r=ak.bind(null,r[1]),Wn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,a){var d=rt,m=Wn();if(tt){if(a===void 0)throw Error(n(407));a=a()}else{if(a=o(),xt===null)throw Error(n(349));(Ti&30)!==0||qm(d,o,a)}m.memoizedState=a;var y={value:a,getSnapshot:o};return m.queue=y,Jm(Qm.bind(null,d,y,r),[r]),d.flags|=2048,zs(9,Wm.bind(null,d,y,a,o),void 0,null),a},useId:function(){var r=Wn(),o=xt.identifierPrefix;if(tt){var a=fr,d=dr;a=(d&~(1<<32-Rn(d)-1)).toString(32)+a,o=":"+o+"R"+a,a=Ds++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=lk++,o=":"+o+"r"+a.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},fk={readContext:gn,useCallback:rg,useContext:gn,useEffect:sd,useImperativeHandle:ng,useInsertionEffect:Zm,useLayoutEffect:eg,useMemo:ig,useReducer:id,useRef:Xm,useState:function(){return id(Fs)},useDebugValue:ld,useDeferredValue:function(r){var o=yn();return og(o,pt.memoizedState,r)},useTransition:function(){var r=id(Fs)[0],o=yn().memoizedState;return[r,o]},useMutableSource:Vm,useSyncExternalStore:Hm,useId:sg,unstable_isNewReconciler:!1},hk={readContext:gn,useCallback:rg,useContext:gn,useEffect:sd,useImperativeHandle:ng,useInsertionEffect:Zm,useLayoutEffect:eg,useMemo:ig,useReducer:od,useRef:Xm,useState:function(){return od(Fs)},useDebugValue:ld,useDeferredValue:function(r){var o=yn();return pt===null?o.memoizedState=r:og(o,pt.memoizedState,r)},useTransition:function(){var r=od(Fs)[0],o=yn().memoizedState;return[r,o]},useMutableSource:Vm,useSyncExternalStore:Hm,useId:sg,unstable_isNewReconciler:!1};function On(r,o){if(r&&r.defaultProps){o=N({},o),r=r.defaultProps;for(var a in r)o[a]===void 0&&(o[a]=r[a]);return o}return o}function ad(r,o,a,d){o=r.memoizedState,a=a(d,o),a=a==null?o:N({},o,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var ba={isMounted:function(r){return(r=r._reactInternals)?bi(r)===r:!1},enqueueSetState:function(r,o,a){r=r._reactInternals;var d=Ft(),m=Hr(r),y=pr(d,m);y.payload=o,a!=null&&(y.callback=a),o=Br(r,y,m),o!==null&&(Ln(o,r,m,d),pa(o,r,m))},enqueueReplaceState:function(r,o,a){r=r._reactInternals;var d=Ft(),m=Hr(r),y=pr(d,m);y.tag=1,y.payload=o,a!=null&&(y.callback=a),o=Br(r,y,m),o!==null&&(Ln(o,r,m,d),pa(o,r,m))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var a=Ft(),d=Hr(r),m=pr(a,d);m.tag=2,o!=null&&(m.callback=o),o=Br(r,m,d),o!==null&&(Ln(o,r,d,a),pa(o,r,d))}};function cg(r,o,a,d,m,y,E){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,E):o.prototype&&o.prototype.isPureReactComponent?!Cs(a,d)||!Cs(m,y):!0}function dg(r,o,a){var d=!1,m=Dr,y=o.contextType;return typeof y=="object"&&y!==null?y=gn(y):(m=Vt(o)?Ei:Tt.current,d=o.contextTypes,y=(d=d!=null)?ho(r,m):Dr),o=new o(a,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ba,r.stateNode=o,o._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=m,r.__reactInternalMemoizedMaskedChildContext=y),o}function fg(r,o,a,d){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,d),o.state!==r&&ba.enqueueReplaceState(o,o.state,null)}function ud(r,o,a,d){var m=r.stateNode;m.props=a,m.state=r.memoizedState,m.refs={},Gc(r);var y=o.contextType;typeof y=="object"&&y!==null?m.context=gn(y):(y=Vt(o)?Ei:Tt.current,m.context=ho(r,y)),m.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(ad(r,o,y,a),m.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(o=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),o!==m.state&&ba.enqueueReplaceState(m,m.state,null),ma(r,a,m,d),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308)}function So(r,o){try{var a="",d=o;do a+=be(d),d=d.return;while(d);var m=a}catch(y){m=` 39Error generating stack: `+y.message+` 40`+y.stack}return{value:r,source:o,stack:m,digest:null}}function cd(r,o,a){return{value:r,source:null,stack:a??null,digest:o??null}}function dd(r,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var pk=typeof WeakMap=="function"?WeakMap:Map;function hg(r,o,a){a=pr(-1,a),a.tag=3,a.payload={element:null};var d=o.value;return a.callback=function(){Ta||(Ta=!0,_d=d),dd(r,o)},a}function pg(r,o,a){a=pr(-1,a),a.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;a.payload=function(){return d(m)},a.callback=function(){dd(r,o)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(a.callback=function(){dd(r,o),typeof d!="function"&&($r===null?$r=new Set([this]):$r.add(this));var E=o.stack;this.componentDidCatch(o.value,{componentStack:E!==null?E:""})}),a}function mg(r,o,a){var d=r.pingCache;if(d===null){d=r.pingCache=new pk;var m=new Set;d.set(o,m)}else m=d.get(o),m===void 0&&(m=new Set,d.set(o,m));m.has(a)||(m.add(a),r=Rk.bind(null,r,o,a),o.then(r,r))}function gg(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function yg(r,o,a,d,m){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=pr(-1,1),o.tag=2,Br(a,o,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=m,r)}var mk=j.ReactCurrentOwner,Ht=!1;function Dt(r,o,a,d){o.child=r===null?Dm(o,null,a,d):yo(o,r.child,a,d)}function vg(r,o,a,d,m){a=a.render;var y=o.ref;return xo(o,m),d=nd(r,o,a,d,y,m),a=rd(),r!==null&&!Ht?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~m,mr(r,o,m)):(tt&&a&&zc(o),o.flags|=1,Dt(r,o,d,m),o.child)}function xg(r,o,a,d,m){if(r===null){var y=a.type;return typeof y=="function"&&!Id(y)&&y.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=y,wg(r,o,y,d,m)):(r=ja(a.type,null,d,o,o.mode,m),r.ref=o.ref,r.return=o,o.child=r)}if(y=r.child,(r.lanes&m)===0){var E=y.memoizedProps;if(a=a.compare,a=a!==null?a:Cs,a(E,d)&&r.ref===o.ref)return mr(r,o,m)}return o.flags|=1,r=Wr(y,d),r.ref=o.ref,r.return=o,o.child=r}function wg(r,o,a,d,m){if(r!==null){var y=r.memoizedProps;if(Cs(y,d)&&r.ref===o.ref)if(Ht=!1,o.pendingProps=d=y,(r.lanes&m)!==0)(r.flags&131072)!==0&&(Ht=!0);else return o.lanes=r.lanes,mr(r,o,m)}return fd(r,o,a,d,m)}function Sg(r,o,a){var d=o.pendingProps,m=d.children,y=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ge(ko,ln),ln|=a;else{if((a&1073741824)===0)return r=y!==null?y.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Ge(ko,ln),ln|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:a,Ge(ko,ln),ln|=d}else y!==null?(d=y.baseLanes|a,o.memoizedState=null):d=a,Ge(ko,ln),ln|=d;return Dt(r,o,m,a),o.child}function bg(r,o){var a=o.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function fd(r,o,a,d,m){var y=Vt(a)?Ei:Tt.current;return y=ho(o,y),xo(o,m),a=nd(r,o,a,d,y,m),d=rd(),r!==null&&!Ht?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~m,mr(r,o,m)):(tt&&d&&zc(o),o.flags|=1,Dt(r,o,a,m),o.child)}function kg(r,o,a,d,m){if(Vt(a)){var y=!0;sa(o)}else y=!1;if(xo(o,m),o.stateNode===null)Ea(r,o),dg(o,a,d),ud(o,a,d,m),d=!0;else if(r===null){var E=o.stateNode,A=o.memoizedProps;E.props=A;var M=E.context,G=a.contextType;typeof G=="object"&&G!==null?G=gn(G):(G=Vt(a)?Ei:Tt.current,G=ho(o,G));var re=a.getDerivedStateFromProps,oe=typeof re=="function"||typeof E.getSnapshotBeforeUpdate=="function";oe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==d||M!==G)&&fg(o,E,d,G),zr=!1;var ne=o.memoizedState;E.state=ne,ma(o,d,E,m),M=o.memoizedState,A!==d||ne!==M||$t.current||zr?(typeof re=="function"&&(ad(o,a,re,d),M=o.memoizedState),(A=zr||cg(o,a,A,d,ne,M,G))?(oe||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(o.flags|=4194308)):(typeof E.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=M),E.props=d,E.state=M,E.context=G,d=A):(typeof E.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{E=o.stateNode,zm(r,o),A=o.memoizedProps,G=o.type===o.elementType?A:On(o.type,A),E.props=G,oe=o.pendingProps,ne=E.context,M=a.contextType,typeof M=="object"&&M!==null?M=gn(M):(M=Vt(a)?Ei:Tt.current,M=ho(o,M));var fe=a.getDerivedStateFromProps;(re=typeof fe=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==oe||ne!==M)&&fg(o,E,d,M),zr=!1,ne=o.memoizedState,E.state=ne,ma(o,d,E,m);var ge=o.memoizedState;A!==oe||ne!==ge||$t.current||zr?(typeof fe=="function"&&(ad(o,a,fe,d),ge=o.memoizedState),(G=zr||cg(o,a,G,d,ne,ge,M)||
vendor: 38,470 bytes, line 40
40!1)?(re||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,ge,M),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,ge,M)),typeof E.componentDidUpdate=="function"&&(o.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof E.componentDidUpdate!="function"||A===r.memoizedProps&&ne===r.memoizedState||(o.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&ne===r.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=ge),E.props=d,E.state=ge,E.context=M,d=G):(typeof E.componentDidUpdate!="function"||A===r.memoizedProps&&ne===r.memoizedState||(o.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&ne===r.memoizedState||(o.flags|=1024),d=!1)}return hd(r,o,a,d,y,m)}function hd(r,o,a,d,m,y){bg(r,o);var E=(o.flags&128)!==0;if(!d&&!E)return m&&Rm(o,a,!1),mr(r,o,y);d=o.stateNode,mk.current=o;var A=E&&typeof a.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,r!==null&&E?(o.child=yo(o,r.child,null,y),o.child=yo(o,null,A,y)):Dt(r,o,A,y),o.memoizedState=d.state,m&&Rm(o,a,!0),o.child}function Eg(r){var o=r.stateNode;o.pendingContext?_m(r,o.pendingContext,o.pendingContext!==o.context):o.context&&_m(r,o.context,!1),Yc(r,o.containerInfo)}function Cg(r,o,a,d,m){return go(),Vc(m),o.flags|=256,Dt(r,o,a,d),o.child}var pd={dehydrated:null,treeContext:null,retryLane:0};function md(r){return{baseLanes:r,cachePool:null,transitions:null}}function _g(r,o,a){var d=o.pendingProps,m=nt.current,y=!1,E=(o.flags&128)!==0,A;if((A=E)||(A=r!==null&&r.memoizedState===null?!1:(m&2)!==0),A?(y=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(m|=1),Ge(nt,m&1),r===null)return $c(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(E=d.children,r=d.fallback,y?(d=o.mode,y=o.child,E={mode:"hidden",children:E},(d&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=E):y=Ma(E,d,0,null),r=Li(r,d,a,null),y.return=o,r.return=o,y.sibling=r,o.child=y,o.child.memoizedState=md(a),o.memoizedState=pd,r):gd(o,E));if(m=r.memoizedState,m!==null&&(A=m.dehydrated,A!==null))return gk(r,o,E,d,A,m,a);if(y){y=d.fallback,E=o.mode,m=r.child,A=m.sibling;var M={mode:"hidden",children:d.children};return(E&1)===0&&o.child!==m?(d=o.child,d.childLanes=0,d.pendingProps=M,o.deletions=null):(d=Wr(m,M),d.subtreeFlags=m.subtreeFlags&14680064),A!==null?y=Wr(A,y):(y=Li(y,E,a,null),y.flags|=2),y.return=o,d.return=o,d.sibling=y,o.child=d,d=y,y=o.child,E=r.child.memoizedState,E=E===null?md(a):{baseLanes:E.baseLanes|a,cachePool:null,transitions:E.transitions},y.memoizedState=E,y.childLanes=r.childLanes&~a,o.memoizedState=pd,d}return y=r.child,r=y.sibling,d=Wr(y,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=a),d.return=o,d.sibling=null,r!==null&&(a=o.deletions,a===null?(o.deletions=[r],o.flags|=16):a.push(r)),o.child=d,o.memoizedState=null,d}function gd(r,o){return o=Ma({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function ka(r,o,a,d){return d!==null&&Vc(d),yo(o,r.child,null,a),r=gd(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function gk(r,o,a,d,m,y,E){if(a)return o.flags&256?(o.flags&=-257,d=cd(Error(n(422))),ka(r,o,E,d)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=d.fallback,m=o.mode,d=Ma({mode:"visible",children:d.children},m,0,null),y=Li(y,m,E,null),y.flags|=2,d.return=o,y.return=o,d.sibling=y,o.child=d,(o.mode&1)!==0&&yo(o,r.child,null,E),o.child.memoizedState=md(E),o.memoizedState=pd,y);if((o.mode&1)===0)return ka(r,o,E,null);if(m.data==="$!"){if(d=m.nextSibling&&m.nextSibling.dataset,d)var A=d.dgst;return d=A,y=Error(n(419)),d=cd(y,d,void 0),ka(r,o,E,d)}if(A=(E&r.childLanes)!==0,Ht||A){if(d=xt,d!==null){switch(E&-E){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(d.suspendedLanes|E))!==0?0:m,m!==0&&m!==y.retryLane&&(y.retryLane=m,hr(r,m),Ln(d,r,m,-1))}return Ad(),d=cd(Error(n(421))),ka(r,o,E,d)}return m.data==="$?"?(o.flags|=128,o.child=r.child,o=Tk.bind(null,r),m._reactRetry=o,null):(r=y.treeContext,sn=jr(m.nextSibling),on=o,tt=!0,Pn=null,r!==null&&(pn[mn++]=dr,pn[mn++]=fr,pn[mn++]=Ci,dr=r.id,fr=r.overflow,Ci=o),o=gd(o,d.children),o.flags|=4096,o)}function Ng(r,o,a){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o),Qc(r.return,o,a)}function yd(r,o,a,d,m){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:m}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=a,y.tailMode=m)}function Rg(r,o,a){var d=o.pendingProps,m=d.revealOrder,y=d.tail;if(Dt(r,o,d.children,a),d=nt.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Ng(r,a,o);else if(r.tag===19)Ng(r,a,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(Ge(nt,d),(o.mode&1)===0)o.memoizedState=null;else switch(m){case"forwards":for(a=o.child,m=null;a!==null;)r=a.alternate,r!==null&&ga(r)===null&&(m=a),a=a.sibling;a=m,a===null?(m=o.child,o.child=null):(m=a.sibling,a.sibling=null),yd(o,!1,m,a,y);break;case"backwards":for(a=null,m=o.child,o.child=null;m!==null;){if(r=m.alternate,r!==null&&ga(r)===null){o.child=m;break}r=m.sibling,m.sibling=a,a=m,m=r}yd(o,!0,a,null,y);break;case"together":yd(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Ea(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function mr(r,o,a){if(r!==null&&(o.dependencies=r.dependencies),Pi|=o.lanes,(a&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,a=Wr(r,r.pendingProps),o.child=a,a.return=o;r.sibling!==null;)r=r.sibling,a=a.sibling=Wr(r,r.pendingProps),a.return=o;a.sibling=null}return o.child}function yk(r,o,a){switch(o.tag){case 3:Eg(o),go();break;case 5:$m(o);break;case 1:Vt(o.type)&&sa(o);break;case 4:Yc(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,m=o.memoizedProps.value;Ge(fa,d._currentValue),d._currentValue=m;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(Ge(nt,nt.current&1),o.flags|=128,null):(a&o.child.childLanes)!==0?_g(r,o,a):(Ge(nt,nt.current&1),r=mr(r,o,a),r!==null?r.sibling:null);Ge(nt,nt.current&1);break;case 19:if(d=(a&o.childLanes)!==0,(r.flags&128)!==0){if(d)return Rg(r,o,a);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Ge(nt,nt.current),d)break;return null;case 22:case 23:return o.lanes=0,Sg(r,o,a)}return mr(r,o,a)}var Tg,vd,Pg,Og;Tg=function(r,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},vd=function(){},Pg=function(r,o,a,d){var m=r.memoizedProps;if(m!==d){r=o.stateNode,Ri(qn.current);var y=null;switch(a){case"input":m=Rt(r,m),d=Rt(r,d),y=[];break;case"select":m=N({},m,{value:void 0}),d=N({},d,{value:void 0}),y=[];break;case"textarea":m=us(r,m),d=us(r,d),y=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=ra)}kt(a,d);var E;a=null;for(G in m)if(!d.hasOwnProperty(G)&&m.hasOwnProperty(G)&&m[G]!=null)if(G==="style"){var A=m[G];for(E in A)A.hasOwnProperty(E)&&(a||(a={}),a[E]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?y||(y=[]):(y=y||[]).push(G,null));for(G in d){var M=d[G];if(A=m!=null?m[G]:void 0,d.hasOwnProperty(G)&&M!==A&&(M!=null||A!=null))if(G==="style")if(A){for(E in A)!A.hasOwnProperty(E)||M&&M.hasOwnProperty(E)||(a||(a={}),a[E]="");for(E in M)M.hasOwnProperty(E)&&A[E]!==M[E]&&(a||(a={}),a[E]=M[E])}else a||(y||(y=[]),y.push(G,a)),a=M;else G==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,A=A?A.__html:void 0,M!=null&&A!==M&&(y=y||[]).push(G,M)):G==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(G,""+M):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(M!=null&&G==="onScroll"&&Je("scroll",r),y||A===M||(y=[])):(y=y||[]).push(G,M))}a&&(y=y||[]).push("style",a);var G=y;(o.updateQueue=G)&&(o.flags|=4)}},Og=function(r,o,a,d){a!==d&&(o.flags|=4)};function Bs(r,o){if(!tt)switch(r.tailMode){case"hidden":o=r.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Ot(r){var o=r.alternate!==null&&r.alternate.child===r.child,a=0,d=0;if(o)for(var m=r.child;m!==null;)a|=m.lanes|m.childLanes,d|=m.subtreeFlags&14680064,d|=m.flags&14680064,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)a|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=d,r.childLanes=a,o}function vk(r,o,a){var d=o.pendingProps;switch(Bc(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(o),null;case 1:return Vt(o.type)&&oa(),Ot(o),null;case 3:return d=o.stateNode,wo(),Ze($t),Ze(Tt),Zc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(ca(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Pn!==null&&(Td(Pn),Pn=null))),vd(r,o),Ot(o),null;case 5:Xc(o);var m=Ri(js.current);if(a=o.type,r!==null&&o.stateNode!=null)Pg(r,o,a,d,m),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return Ot(o),null}if(r=Ri(qn.current),ca(o)){d=o.stateNode,a=o.type;var y=o.memoizedProps;switch(d[Hn]=o,d[Ps]=y,r=(o.mode&1)!==0,a){case"dialog":Je("cancel",d),Je("close",d);break;case"iframe":case"object":case"embed":Je("load",d);break;case"video":case"audio":for(m=0;m<Ns.length;m++)Je(Ns[m],d);break;case"source":Je("error",d);break;case"img":case"image":case"link":Je("error",d),Je("load",d);break;case"details":Je("toggle",d);break;case"input":Cn(d,y),Je("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},Je("invalid",d);break;case"textarea":Il(d,y),Je("invalid",d)}kt(a,y),m=null;for(var E in y)if(y.hasOwnProperty(E)){var A=y[E];E==="children"?typeof A=="string"?d.textContent!==A&&(y.suppressHydrationWarning!==!0&&na(d.textContent,A,r),m=["children",A]):typeof A=="number"&&d.textContent!==""+A&&(y.suppressHydrationWarning!==!0&&na(d.textContent,A,r),m=["children",""+A]):s.hasOwnProperty(E)&&A!=null&&E==="onScroll"&&Je("scroll",d)}switch(a){case"input":Oe(d),eo(d,y,!0);break;case"textarea":Oe(d),jl(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=ra)}d=m,o.updateQueue=d,d!==null&&(o.flags|=4)}else{E=m.nodeType===9?m:m.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=te(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=E.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=E.createElement(a,{is:d.is}):(r=E.createElement(a),a==="select"&&(E=r,d.multiple?E.multiple=!0:d.size&&(E.size=d.size))):r=E.createElementNS(r,a),r[Hn]=o,r[Ps]=d,Tg(r,o,!1,!1),o.stateNode=r;e:{switch(E=$n(a,d),a){case"dialog":Je("cancel",r),Je("close",r),m=d;break;case"iframe":case"object":case"embed":Je("load",r),m=d;break;case"video":case"audio":for(m=0;m<Ns.length;m++)Je(Ns[m],r);m=d;break;case"source":Je("error",r),m=d;break;case"img":case"image":case"link":Je("error",r),Je("load",r),m=d;break;case"details":Je("toggle",r),m=d;break;case"input":Cn(r,d),m=Rt(r,d),Je("invalid",r);break;case"option":m=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},m=N({},d,{value:void 0}),Je("invalid",r);break;case"textarea":Il(r,d),m=us(r,d),Je("invalid",r);break;default:m=d}kt(a,m),A=m;for(y in A)if(A.hasOwnProperty(y)){var M=A[y];y==="style"?Rr(r,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Me(r,M)):y==="children"?typeof M=="string"?(a!=="textarea"||M!=="")&&Ue(r,M):typeof M=="number"&&Ue(r,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(s.hasOwnProperty(y)?M!=null&&y==="onScroll"&&Je("scroll",r):M!=null&&R(r,y,M,E))}switch(a){case"input":Oe(r),eo(r,d,!1);break;case"textarea":Oe(r),jl(r);break;case"option":d.value!=null&&r.setAttribute("value",""+pe(d.value));break;case"select":r.multiple=!!d.multiple,y=d.value,y!=null?Nr(r,!!d.multiple,y,!1):d.defaultValue!=null&&Nr(r,!!d.multiple,d.defaultValue,!0);break;default:typeof m.onClick=="function"&&(r.onclick=ra)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Ot(o),null;case 6:if(r&&o.stateNode!=null)Og(r,o,r.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(a=Ri(js.current),Ri(qn.current),ca(o)){if(d=o.stateNode,a=o.memoizedProps,d[Hn]=o,(y=d.nodeValue!==a)&&(r=on,r!==null))switch(r.tag){case 3:na(d.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&na(d.nodeValue,a,(r.mode&1)!==0)}y&&(o.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Hn]=o,o.stateNode=d}return Ot(o),null;case 13:if(Ze(nt),d=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(tt&&sn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Lm(),go(),o.flags|=98560,y=!1;else if(y=ca(o),d!==null&&d.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Hn]=o}else go(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ot(o),y=!1}else Pn!==null&&(Td(Pn),Pn=null),y=!0;if(!y)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(nt.current&1)!==0?mt===0&&(mt=3):Ad())),o.updateQueue!==null&&(o.flags|=4),Ot(o),null);case 4:return wo(),vd(r,o),r===null&&Rs(o.stateNode.containerInfo),Ot(o),null;case 10:return Wc(o.type._context),Ot(o),null;case 17:return Vt(o.type)&&oa(),Ot(o),null;case 19:if(Ze(nt),y=o.memoizedState,y===null)return Ot(o),null;if(d=(o.flags&128)!==0,E=y.rendering,E===null)if(d)Bs(y,!1);else{if(mt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(E=ga(r),E!==null){for(o.flags|=128,Bs(y,!1),d=E.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=a,a=o.child;a!==null;)y=a,r=d,y.flags&=14680066,E=y.alternate,E===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=E.childLanes,y.lanes=E.lanes,y.child=E.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=E.memoizedProps,y.memoizedState=E.memoizedState,y.updateQueue=E.updateQueue,y.type=E.type,r=E.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Ge(nt,nt.current&1|2),o.child}r=r.sibling}y.tail!==null&<()>Eo&&(o.flags|=128,d=!0,Bs(y,!1),o.lanes=4194304)}else{if(!d)if(r=ga(E),r!==null){if(o.flags|=128,d=!0,a=r.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),Bs(y,!0),y.tail===null&&y.tailMode==="hidden"&&!E.alternate&&!tt)return Ot(o),null}else 2*lt()-y.renderingStartTime>Eo&&a!==1073741824&&(o.flags|=128,d=!0,Bs(y,!1),o.lanes=4194304);y.isBackwards?(E.sibling=o.child,o.child=E):(a=y.last,a!==null?a.sibling=E:o.child=E,y.last=E)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=lt(),o.sibling=null,a=nt.current,Ge(nt,d?a&1|2:a&1),o):(Ot(o),null);case 22:case 23:return Od(),d=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(ln&1073741824)!==0&&(Ot(o),o.subtreeFlags&6&&(o.flags|=8192)):Ot(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function xk(r,o){switch(Bc(o),o.tag){case 1:return Vt(o.type)&&oa(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return wo(),Ze($t),Ze(Tt),Zc(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return Xc(o),null;case 13:if(Ze(nt),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));go()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Ze(nt),null;case 4:return wo(),null;case 10:return Wc(o.type._context),null;case 22:case 23:return Od(),null;case 24:return null;default:return null}}var Ca=!1,At=!1,wk=typeof WeakSet=="function"?WeakSet:Set,me=null;function bo(r,o){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){it(r,o,d)}else a.current=null}function xd(r,o,a){try{a()}catch(d){it(r,o,d)}}var Ag=!1;function Sk(r,o){if(Oc=ql,r=cm(),kc(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var m=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var E=0,A=-1,M=-1,G=0,re=0,oe=r,ne=null;t:for(;;){for(var fe;oe!==a||m!==0&&oe.nodeType!==3||(A=E+m),oe!==y||d!==0&&oe.nodeType!==3||(M=E+d),oe.nodeType===3&&(E+=oe.nodeValue.length),(fe=oe.firstChild)!==null;)ne=oe,oe=fe;for(;;){if(oe===r)break t;if(ne===a&&++G===m&&(A=E),ne===y&&++re===d&&(M=E),(fe=oe.nextSibling)!==null)break;oe=ne,ne=oe.parentNode}oe=fe}a=A===-1||M===-1?null:{start:A,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ac={focusedElem:r,selectionRange:a},ql=!1,me=o;me!==null;)if(o=me,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,me=r;else for(;me!==null;){o=me;try{var ge=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var xe=ge.memoizedProps,at=ge.memoizedState,H=o.stateNode,B=H.getSnapshotBeforeUpdate(o.elementType===o.type?xe:On(o.type,xe),at);H.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var W=o.stateNode.containerInfo;W.nodeType===1?W.textContent="":W.nodeType===9&&W.documentElement&&W.removeChild(W.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ue){it(o,o.return,ue)}if(r=o.sibling,r!==null){r.return=o.return,me=r;break}me=o.return}return ge=Ag,Ag=!1,ge}function Us(r,o,a){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&r)===r){var y=m.destroy;m.destroy=void 0,y!==void 0&&xd(o,a,y)}m=m.next}while(m!==d)}}function _a(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&r)===r){var d=a.create;a.destroy=d()}a=a.next}while(a!==o)}}function wd(r){var o=r.ref;if(o!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof o=="function"?o(r):o.current=r}}function Ig(r){var o=r.alternate;o!==null&&(r.alternate=null,Ig(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Hn],delete o[Ps],delete o[Mc],delete o[rk],delete o[ik])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Lg(r){return r.tag===5||r.tag===3||r.tag===4}function jg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Lg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Sd(r,o,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(r,o):a.insertBefore(r,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(r,a)):(o=a,o.appendChild(r)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=ra));else if(d!==4&&(r=r.child,r!==null))for(Sd(r,o,a),r=r.sibling;r!==null;)Sd(r,o,a),r=r.sibling}function bd(r,o,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?a.insertBefore(r,o):a.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(bd(r,o,a),r=r.sibling;r!==null;)bd(r,o,a),r=r.sibling}var Et=null,An=!1;function Ur(r,o,a){for(a=a.child;a!==null;)Mg(r,o,a),a=a.sibling}function Mg(r,o,a){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(zl,a)}catch{}switch(a.tag){case 5:At||bo(a,o);case 6:var d=Et,m=An;Et=null,Ur(r,o,a),Et=d,An=m,Et!==null&&(An?(r=Et,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):Et.removeChild(a.stateNode));break;case 18:Et!==null&&(An?(r=Et,a=a.stateNode,r.nodeType===8?jc(r.parentNode,a):r.nodeType===1&&jc(r,a),xs(r)):jc(Et,a.stateNode));break;case 4:d=Et,m=An,Et=a.stateNode.containerInfo,An=!0,Ur(r,o,a),Et=d,An=m;break;case 0:case 11:case 14:case 15:if(!At&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){m=d=d.next;do{var y=m,E=y.destroy;y=y.tag,E!==void 0&&((y&2)!==0||(y&4)!==0)&&xd(a,o,E),m=m.next}while(m!==d)}Ur(r,o,a);break;case 1:if(!At&&(bo(a,o),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(A){it(a,o,A)}Ur(r,o,a);break;case 21:Ur(r,o,a);break;case 22:a.mode&1?(At=(d=At)||a.memoizedState!==null,Ur(r,o,a),At=d):Ur(r,o,a);break;default:Ur(r,o,a)}}function Dg(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new wk),o.forEach(function(d){var m=Pk.bind(null,r,d);a.has(d)||(a.add(d),d.then(m,m))})}}function In(r,o){var a=o.deletions;if(a!==null)for(var d=0;d<a.length;d++){var m=a[d];try{var y=r,E=o,A=E;e:for(;A!==null;){switch(A.tag){case 5:Et=A.stateNode,An=!1;break e;case 3:Et=A.stateNode.containerInfo,An=!0;break e;case 4:Et=A.stateNode.containerInfo,An=!0;break e}A=A.return}if(Et===null)throw Error(n(160));Mg(y,E,m),Et=null,An=!1;var M=m.alternate;M!==null&&(M.return=null),m.return=null}catch(G){it(m,o,G)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Fg(o,r),o=o.sibling}function Fg(r,o){var a=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(In(o,r),Qn(r),d&4){try{Us(3,r,r.return),_a(3,r)}catch(xe){it(r,r.return,xe)}try{Us(5,r,r.return)}catch(xe){it(r,r.return,xe)}}break;case 1:In(o,r),Qn(r),d&512&&a!==null&&bo(a,a.return);break;case 5:if(In(o,r),Qn(r),d&512&&a!==null&&bo(a,a.return),r.flags&32){var m=r.stateNode;try{Ue(m,"")}catch(xe){it(r,r.return,xe)}}if(d&4&&(m=r.stateNode,m!=null)){var y=r.memoizedProps,E=a!==null?a.memoizedProps:y,A=r.type,M=r.updateQueue;if(r.updateQueue=null,M!==null)try{A==="input"&&y.type==="radio"&&y.name!=null&&_n(m,y),$n(A,E);var G=$n(A,y);for(E=0;E<M.length;E+=2){var re=M[E],oe=M[E+1];re==="style"?Rr(m,oe):re==="dangerouslySetInnerHTML"?Me(m,oe):re==="children"?Ue(m,oe):R(m,re,oe,G)}switch(A){case"input":fn(m,y);break;case"textarea":Ll(m,y);break;case"select":var ne=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!y.multiple;var fe=y.value;fe!=null?Nr(m,!!y.multiple,fe,!1):ne!==!!y.multiple&&(y.defaultValue!=null?Nr(m,!!y.multiple,y.defaultValue,!0):Nr(m,!!y.multiple,y.multiple?[]:"",!1))}m[Ps]=y}catch(xe){it(r,r.return,xe)}}break;case 6:if(In(o,r),Qn(r),d&4){if(r.stateNode===null)throw Error(n(162));m=r.stateNode,y=r.memoizedProps;try{m.nodeValue=y}catch(xe){it(r,r.return,xe)}}break;case 3:if(In(o,r),Qn(r),d&4&&a!==null&&a.memoizedState.isDehydrated)try{xs(o.containerInfo)}catch(xe){it(r,r.return,xe)}break;case 4:In(o,r),Qn(r);break;case 13:In(o,r),Qn(r),m=r.child,m.flags&8192&&(y=m.memoizedState!==null,m.stateNode.isHidden=y,!y||m.alternate!==null&&m.alternate.memoizedState!==null||(Cd=lt())),d&4&&Dg(r);break;case 22:if(re=a!==null&&a.memoizedState!==null,r.mode&1?(At=(G=At)||re,In(o,r),At=G):In(o,r),Qn(r),d&8192){if(G=r.memoizedState!==null,(r.stateNode.isHidden=G)&&!re&&(r.mode&1)!==0)for(me=r,re=r.child;re!==null;){for(oe=me=re;me!==null;){switch(ne=me,fe=ne.child,ne.tag){case 0:case 11:case 14:case 15:Us(4,ne,ne.return);break;case 1:bo(ne,ne.return);var ge=ne.stateNode;if(typeof ge.componentWillUnmount=="function"){d=ne,a=ne.return;try{o=d,ge.props=o.memoizedProps,ge.state=o.memoizedState,ge.componentWillUnmount()}catch(xe){it(d,a,xe)}}break;case 5:bo(ne,ne.return);break;case 22:if(ne.memoizedState!==null){Ug(oe);continue}}fe!==null?(fe.return=ne,me=fe):Ug(oe)}re=re.sibling}e:for(re=null,oe=r;;){if(oe.tag===5){if(re===null){re=oe;try{m=oe.stateNode,G?(y=m.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(A=oe.stateNode,M=oe.memoizedProps.style,E=M!=null&&M.hasOwnProperty("display")?M.display:null,A.style.display=hn("display",E))}catch(xe){it(r,r.return,xe)}}}else if(oe.tag===6){if(re===null)try{oe.stateNode.nodeValue=G?"":oe.memoizedProps}catch(xe){it(r,r.return,xe)}}else if((oe.tag!==22&&oe.tag!==23||oe.memoizedState===null||oe===r)&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===r)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===r)break e;re===oe&&(re=null),oe=oe.return}re===oe&&(re=null),oe.sibling.return=oe.return,oe=oe.sibling}}break;case 19:In(o,r),Qn(r),d&4&&Dg(r);break;case 21:break;default:In(o,r),Qn(r)}}function Qn(r){var o=r.flags;if(o&2){try{e:{for(var a=r.return;a!==null;){if(Lg(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var m=d.stateNode;d.flags&32&&(Ue(m,""),d.flags&=-33);var y=jg(r);bd(r,y,m);break;case 3:case 4:var E=d.stateNode.containerInfo,A=jg(r);Sd(r,A,E);break;default:throw Error(n(161))}}catch(M){it(r,r.return,M)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function bk(r,o,a){me=r,zg(r)}function zg(r,o,a){for(var d=(r.mode&1)!==0;me!==null;){var m=me,y=m.child;if(m.tag===22&&d){var E=m.memoizedState!==null||Ca;if(!E){var A=m.alternate,M=A!==null&&A.memoizedState!==null||At;A=Ca;var G=At;if(Ca=E,(At=M)&&!G)for(me=m;me!==null;)E=me,M=E.child,E.tag===22&&E.memoizedState!==null?$g(m):M!==null?(M.return=E,me=M):$g(m);for(;y!==null;)me=y,zg(y),y=y.sibling;me=m,Ca=A,At=G}Bg(r)}else(m.subtreeFlags&8772)!==0&&y!==null?(y.return=m,me=y):Bg(r)}}function Bg(r){for(;me!==null;){var o=me;if((o.flags&8772)!==0){var a=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:At||_a(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!At)if(a===null)d.componentDidMount();else{var m=o.elementType===o.type?a.memoizedProps:On(o.type,a.memoizedProps);d.componentDidUpdate(m,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&Um(o,y,d);break;case 3:var E=o.updateQueue;if(E!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}Um(o,E,a)}break;case 5:var A=o.stateNode;if(a===null&&o.flags&4){a=A;var M=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&a.focus();break;case"img":M.src&&(a.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var G=o.alternate;if(G!==null){var re=G.memoizedState;if(re!==null){var oe=re.dehydrated;oe!==null&&xs(oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}At||o.flags&512&&wd(o)}catch(ne){it(o,o.return,ne)}}if(o===r){me=null;break}if(a=o.sibling,a!==null){a.return=o.return,me=a;break}me=o.return}}function Ug(r){for(;me!==null;){var o=me;if(o===r){me=null;break}var a=o.sibling;if(a!==null){a.return=o.return,me=a;break}me=o.return}}function $g(r){for(;me!==null;){var o=me;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{_a(4,o)}catch(M){it(o,a,M)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var m=o.return;try{d.componentDidMount()}catch(M){it(o,m,M)}}var y=o.return;try{wd(o)}catch(M){it(o,y,M)}break;case 5:var E=o.return;try{wd(o)}catch(M){it(o,E,M)}}}catch(M){it(o,o.return,M)}if(o===r){me=null;break}var A=o.sibling;if(A!==null){A.return=o.return,me=A;break}me=o.return}}var kk=Math.ceil,Na=j.ReactCurrentDispatcher,kd=j.ReactCurrentOwner,vn=j.ReactCurrentBatchConfig,$e=0,xt=null,dt=null,Ct=0,ln=0,ko=Mr(0),mt=0,$s=null,Pi=0,Ra=0,Ed=0,Vs=null,qt=null,Cd=0,Eo=1/0,gr=null,Ta=!1,_d=null,$r=null,Pa=!1,Vr=null,Oa=0,Hs=0,Nd=null,Aa=-1,Ia=0;function Ft(){return($e&6)!==0?lt():Aa!==-1?Aa:Aa=lt()}function Hr(r){return(r.mode&1)===0?1:($e&2)!==0&&Ct!==0?Ct&-Ct:sk.transition!==null?(Ia===0&&(Ia=jp()),Ia):(r=We,r!==0||(r=window.event,r=r===void 0?16:Hp(r.type)),r)}function Ln(r,o,a,d){if(50<Hs)throw Hs=0,Nd=null,Error(n(185));ps(r,a,d),(($e&2)===0||r!==xt)&&(r===xt&&(($e&2)===0&&(Ra|=a),mt===4&&qr(r,Ct)),Wt(r,d),a===1&&$e===0&&(o.mode&1)===0&&(Eo=lt()+500,la&&Fr()))}function Wt(r,o){var a=r.callbackNode;sb(r,o);var d=$l(r,r===xt?Ct:0);if(d===0)a!==null&&Ap(a),r.callbackNode=null,r.callbackPriority=0;else if(o=d&-d,r.callbackPriority!==o){if(a!=null&&Ap(a),o===1)r.tag===0?ok(Hg.bind(null,r)):Tm(Hg.bind(null,r)),tk(function(){($e&6)===0&&Fr()}),a=null;else{switch(Mp(d)){case 1:a=sc;break;case 4:a=Ip;break;case 16:a=Fl;break;case 536870912:a=Lp;break;default:a=Fl}a=Jg(a,Vg.bind(null,r))}r.callbackPriority=o,r.callbackNode=a}}function Vg(r,o){if(Aa=-1,Ia=0,($e&6)!==0)throw Error(n(327));var a=r.callbackNode;if(Co()&&r.callbackNode!==a)return null;var d=$l(r,r===xt?Ct:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||o)o=La(r,d);else{o=d;var m=$e;$e|=2;var y=Wg();(xt!==r||Ct!==o)&&(gr=null,Eo=lt()+500,Ai(r,o));do try{_k();break}catch(A){qg(r,A)}while(!0);qc(),Na.current=y,$e=m,dt!==null?o=0:(xt=null,Ct=0,o=mt)}if(o!==0){if(o===2&&(m=lc(r),m!==0&&(d=m,o=Rd(r,m))),o===1)throw a=$s,Ai(r,0),qr(r,d),Wt(r,lt()),a;if(o===6)qr(r,d);else{if(m=r.current.alternate,(d&30)===0&&!Ek(m)&&(o=La(r,d),o===2&&(y=lc(r),y!==0&&(d=y,o=Rd(r,y))),o===1))throw a=$s,Ai(r,0),qr(r,d),Wt(r,lt()),a;switch(r.finishedWork=m,r.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:Ii(r,qt,gr);break;case 3:if(qr(r,d),(d&130023424)===d&&(o=Cd+500-lt(),10<o)){if($l(r,0)!==0)break;if(m=r.suspendedLanes,(m&d)!==d){Ft(),r.pingedLanes|=r.suspendedLanes&m;break}r.timeoutHandle=Lc(Ii.bind(null,r,qt,gr),o);break}Ii(r,qt,gr);break;case 4:if(qr(r,d),(d&4194240)===d)break;for(o=r.eventTimes,m=-1;0<d;){var E=31-Rn(d);y=1<<E,E=o[E],E>m&&(m=E),d&=~y}if(d=m,d=lt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*kk(d/1960))-d,10<d){r.timeoutHandle=Lc(Ii.bind(null,r,qt,gr),d);break}Ii(r,qt,gr);break;case 5:Ii(r,qt,gr);break;default:throw Error(n(329))}}}return Wt(r,lt()),r.callbackNode===a?Vg.bind(null,r):null}function Rd(r,o){var a=Vs;return r.current.memoizedState.isDehydrated&&(Ai(r,o).flags|=256),r=La(r,o),r!==2&&(o=qt,qt=a,o!==null&&Td(o)),r}function Td(r){qt===null?qt=r:qt.push.apply(qt,r)}function Ek(r){for(var o=r;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var m=a[d],y=m.getSnapshot;m=m.value;try{if(!Tn(y(),m))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function qr(r,o){for(o&=~Ed,o&=~Ra,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var a=31-Rn(o),d=1<<a;r[a]=-1,o&=~d}}function Hg(r){if(($e&6)!==0)throw Error(n(327));Co();var o=$l(r,0);if((o&1)===0)return Wt(r,lt()),null;var a=La(r,o);if(r.tag!==0&&a===2){var d=lc(r);d!==0&&(o=d,a=Rd(r,d))}if(a===1)throw a=$s,Ai(r,0),qr(r,o),Wt(r,lt()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Ii(r,qt,gr),Wt(r,lt()),null}function Pd(r,o){var a=$e;$e|=1;try{return r(o)}finally{$e=a,$e===0&&(Eo=lt()+500,la&&Fr())}}function Oi(r){Vr!==null&&Vr.tag===0&&($e&6)===0&&Co();var o=$e;$e|=1;var a=vn.transition,d=We;try{if(vn.transition=null,We=1,r)return r()}finally{We=d,vn.transition=a,$e=o,($e&6)===0&&Fr()}}function Od(){ln=ko.current,Ze(ko)}function Ai(r,o){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,ek(a)),dt!==null)for(a=dt.return;a!==null;){var d=a;switch(Bc(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&oa();break;case 3:wo(),Ze($t),Ze(Tt),Zc();break;case 5:Xc(d);break;case 4:wo();break;case 13:Ze(nt);break;case 19:Ze(nt);break;case 10:Wc(d.type._context);break;case 22:case 23:Od()}a=a.return}if(xt=r,dt=r=Wr(r.current,null),Ct=ln=o,mt=0,$s=null,Ed=Ra=Pi=0,qt=Vs=null,Ni!==null){for(o=0;o<Ni.length;o++)if(a=Ni[o],d=a.interleaved,d!==null){a.interleaved=null;var m=d.next,y=a.pending;if(y!==null){var E=y.next;y.next=m,d.next=E}a.pending=d}Ni=null}return r}function qg(r,o){do{var a=dt;try{if(qc(),ya.current=Sa,va){for(var d=rt.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}va=!1}if(Ti=0,vt=pt=rt=null,Ms=!1,Ds=0,kd.current=null,a===null||a.return===null){mt=1,$s=o,dt=null;break}e:{var y=r,E=a.return,A=a,M=o;if(o=Ct,A.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var G=M,re=A,oe=re.tag;if((re.mode&1)===0&&(oe===0||oe===11||oe===15)){var ne=re.alternate;ne?(re.updateQueue=ne.updateQueue,re.memoizedState=ne.memoizedState,re.lanes=ne.lanes):(re.updateQueue=null,re.memoizedState=null)}var fe=gg(E);if(fe!==null){fe.flags&=-257,yg(fe,E,A,y,o),fe.mode&1&&mg(y,G,o),o=fe,M=G;var ge=o.updateQueue;if(ge===null){var xe=new Set;xe.add(M),o.updateQueue=xe}else ge.add(M);break e}else{if((o&1)===0){mg(y,G,o),Ad();break e}M=Error(n(426))}}else if(tt&&A.mode&1){var at=gg(E);if(at!==null){(at.flags&65536)===0&&(at.flags|=256),yg(at,E,A,y,o),Vc(So(M,A));break e}}y=M=So(M,A),mt!==4&&(mt=2),Vs===null?Vs=[y]:Vs.push(y),y=E;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var H=hg(y,M,o);Bm(y,H);break e;case 1:A=M;var B=y.type,W=y.stateNode;if((y.flags&128)===0&&(typeof B.getDerivedStateFromError=="function"||W!==null&&typeof W.componentDidCatch=="function"&&($r===null||!$r.has(W)))){y.flags|=65536,o&=-o,y.lanes|=o;var ue=pg(y,A,o);Bm(y,ue);break e}}y=y.return}while(y!==null)}Kg(a)}catch(Se){o=Se,dt===a&&a!==null&&(dt=a=a.return);continue}break}while(!0)}function Wg(){var r=Na.current;return Na.current=Sa,r===null?Sa:r}function Ad(){(mt===0||mt===3||mt===2)&&(mt=4),xt===null||(Pi&268435455)===0&&(Ra&268435455)===0||qr(xt,Ct)}function La(r,o){var a=$e;$e|=2;var d=Wg();(xt!==r||Ct!==o)&&(gr=null,Ai(r,o));do try{Ck();break}catch(m){qg(r,m)}while(!0);if(qc(),$e=a,Na.current=d,dt!==null)throw Error(n(261));return xt=null,Ct=0,mt}function Ck(){for(;dt!==null;)Qg(dt)}function _k(){for(;dt!==null&&!X1();)Qg(dt)}function Qg(r){var o=Xg(r.alternate,r,ln);r.memoizedProps=r.pendingProps,o===null?Kg(r):dt=o,kd.current=null}function Kg(r){var o=r;do{var a=o.alternate;if(r=o.return,(o.flags&32768)===0){if(a=vk(a,o,ln),a!==null){dt=a;return}}else{if(a=xk(a,o),a!==null){a.flags&=32767,dt=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{mt=6,dt=null;return}}if(o=o.sibling,o!==null){dt=o;return}dt=o=r}while(o!==null);mt===0&&(mt=5)}function Ii(r,o,a){var d=We,m=vn.transition;try{vn.transition=null,We=1,Nk(r,o,a,d)}finally{vn.transition=m,We=d}return null}function Nk(r,o,a,d){do Co();while(Vr!==null);if(($e&6)!==0)throw Error(n(327));a=r.finishedWork;var m=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=a.lanes|a.childLanes;if(lb(r,y),r===xt&&(dt=xt=null,Ct=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Pa||(Pa=!0,Jg(Fl,function(){return Co(),null})),y=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||y){y=vn.transition,vn.transition=null;var E=We;We=1;var A=$e;$e|=4,kd.current=null,Sk(r,a),Fg(a,r),Qb(Ac),ql=!!Oc,Ac=Oc=null,r.current=a,bk(a),J1(),$e=A,We=E,vn.transition=y}else r.current=a;if(Pa&&(Pa=!1,Vr=r,Oa=m),y=r.pendingLanes,y===0&&($r=null),tb(a.stateNode),Wt(r,lt()),o!==null)for(d=r.onRecoverableError,a=0;a<o.length;a++)m=o[a],d(m.value,{componentStack:m.stack,digest:m.digest});if(Ta)throw Ta=!1,r=_d,_d=null,r;return(Oa&1)!==0&&r.tag!==0&&Co(),y=r.pendingLanes,(y&1)!==0?r===Nd?Hs++:(Hs=0,Nd=r):Hs=0,Fr(),null}function Co(){if(Vr!==null){var r=Mp(Oa),o=vn.transition,a=We;try{if(vn.transition=null,We=16>r?16:r,Vr===null)var d=!1;else{if(r=Vr,Vr=null,Oa=0,($e&6)!==0)throw Error(n(331));var m=$e;for($e|=4,me=r.current;me!==null;){var y=me,E=y.child;if((me.flags&16)!==0){var A=y.deletions;if(A!==null){for(var M=0;M<A.length;M++){var G=A[M];for(me=G;me!==null;){var re=me;switch(re.tag){case 0:case 11:case 15:Us(8,re,y)}var oe=re.child;if(oe!==null)oe.return=re,me=oe;else for(;me!==null;){re=me;var ne=re.sibling,fe=re.return;if(Ig(re),re===G){me=null;break}if(ne!==null){ne.return=fe,me=ne;break}me=fe}}}var ge=y.alternate;if(ge!==null){var xe=ge.child;if(xe!==null){ge.child=null;do{var at=xe.sibling;xe.sibling=null,xe=at}while(xe!==null)}}me=y}}if((y.subtreeFlags&2064)!==0&&E!==null)E.return=y,me=E;else e:for(;me!==null;){if(y=me,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Us(9,y,y.return)}var H=y.sibling;if(H!==null){H.return=y.return,me=H;break e}me=y.return}}var B=r.current;for(me=B;me!==null;){E=me;var W=E.child;if((E.subtreeFlags&2064)!==0&&W!==null)W.return=E,me=W;else e:for(E=B;me!==null;){if(A=me,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:_a(9,A)}}catch(Se){it(A,A.return,Se)}if(A===E){me=null;break e}var ue=A.sibling;if(ue!==null){ue.return=A.return,me=ue;break e}me=A.return}}if($e=m,Fr(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(zl,r)}catch{}d=!0}return d}finally{We=a,vn.transition=o}}return!1}function Gg(r,o,a){o=So(a,o),o=hg(r,o,1),r=Br(r,o,1),o=Ft(),r!==null&&(ps(r,1,o),Wt(r,o))}function it(r,o,a){if(r.tag===3)Gg(r,r,a);else for(;o!==null;){if(o.tag===3){Gg(o,r,a);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&($r===null||!$r.has(d))){r=So(a,r),r=pg(o,r,1),o=Br(
vendor: 4,141 bytes, line 40
40o,r,1),r=Ft(),o!==null&&(ps(o,1,r),Wt(o,r));break}}o=o.return}}function Rk(r,o,a){var d=r.pingCache;d!==null&&d.delete(o),o=Ft(),r.pingedLanes|=r.suspendedLanes&a,xt===r&&(Ct&a)===a&&(mt===4||mt===3&&(Ct&130023424)===Ct&&500>lt()-Cd?Ai(r,0):Ed|=a),Wt(r,o)}function Yg(r,o){o===0&&((r.mode&1)===0?o=1:(o=Ul,Ul<<=1,(Ul&130023424)===0&&(Ul=4194304)));var a=Ft();r=hr(r,o),r!==null&&(ps(r,o,a),Wt(r,a))}function Tk(r){var o=r.memoizedState,a=0;o!==null&&(a=o.retryLane),Yg(r,a)}function Pk(r,o){var a=0;switch(r.tag){case 13:var d=r.stateNode,m=r.memoizedState;m!==null&&(a=m.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),Yg(r,a)}var Xg;Xg=function(r,o,a){if(r!==null)if(r.memoizedProps!==o.pendingProps||$t.current)Ht=!0;else{if((r.lanes&a)===0&&(o.flags&128)===0)return Ht=!1,yk(r,o,a);Ht=(r.flags&131072)!==0}else Ht=!1,tt&&(o.flags&1048576)!==0&&Pm(o,ua,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;Ea(r,o),r=o.pendingProps;var m=ho(o,Tt.current);xo(o,a),m=nd(null,o,d,r,m,a);var y=rd();return o.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Vt(d)?(y=!0,sa(o)):y=!1,o.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Gc(o),m.updater=ba,o.stateNode=m,m._reactInternals=o,ud(o,d,r,a),o=hd(null,o,d,!0,y,a)):(o.tag=0,tt&&y&&zc(o),Dt(null,o,m,a),o=o.child),o;case 16:d=o.elementType;e:{switch(Ea(r,o),r=o.pendingProps,m=d._init,d=m(d._payload),o.type=d,m=o.tag=Ak(d),r=On(d,r),m){case 0:o=fd(null,o,d,r,a);break e;case 1:o=kg(null,o,d,r,a);break e;case 11:o=vg(null,o,d,r,a);break e;case 14:o=xg(null,o,d,On(d.type,r),a);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:On(d,m),fd(r,o,d,m,a);case 1:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:On(d,m),kg(r,o,d,m,a);case 3:e:{if(Eg(o),r===null)throw Error(n(387));d=o.pendingProps,y=o.memoizedState,m=y.element,zm(r,o),ma(o,d,null,a);var E=o.memoizedState;if(d=E.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){m=So(Error(n(423)),o),o=Cg(r,o,d,a,m);break e}else if(d!==m){m=So(Error(n(424)),o),o=Cg(r,o,d,a,m);break e}else for(sn=jr(o.stateNode.containerInfo.firstChild),on=o,tt=!0,Pn=null,a=Dm(o,null,d,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(go(),d===m){o=mr(r,o,a);break e}Dt(r,o,d,a)}o=o.child}return o;case 5:return $m(o),r===null&&$c(o),d=o.type,m=o.pendingProps,y=r!==null?r.memoizedProps:null,E=m.children,Ic(d,m)?E=null:y!==null&&Ic(d,y)&&(o.flags|=32),bg(r,o),Dt(r,o,E,a),o.child;case 6:return r===null&&$c(o),null;case 13:return _g(r,o,a);case 4:return Yc(o,o.stateNode.containerInfo),d=o.pendingProps,r===null?o.child=yo(o,null,d,a):Dt(r,o,d,a),o.child;case 11:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:On(d,m),vg(r,o,d,m,a);case 7:return Dt(r,o,o.pendingProps,a),o.child;case 8:return Dt(r,o,o.pendingProps.children,a),o.child;case 12:return Dt(r,o,o.pendingProps.children,a),o.child;case 10:e:{if(d=o.type._context,m=o.pendingProps,y=o.memoizedProps,E=m.value,Ge(fa,d._currentValue),d._currentValue=E,y!==null)if(Tn(y.value,E)){if(y.children===m.children&&!$t.current){o=mr(r,o,a);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var A=y.dependencies;if(A!==null){E=y.child;for(var M=A.firstContext;M!==null;){if(M.context===d){if(y.tag===1){M=pr(-1,a&-a),M.tag=2;var G=y.updateQueue;if(G!==null){G=G.shared;var re=G.pending;re===null?M.next=M:(M.next=re.next,re.next=M),G.pending=M}}y.lanes|=a,M=y.alternate,M!==null&&(M.lanes|=a),Qc(y.return,a,o),A.lanes|=a;break}M=M.next}}else if(y.tag===10)E=y.type===o.type?null:y.child;else if(y.tag===18){if(E=y.return,E===null)throw Error(n(341));E.lanes|=a,A=E.alternate,A!==null&&(A.lanes|=a),Qc(E,a,o),E=y.sibling}else E=y.child;if(E!==null)E.return=y;else for(E=y;E!==null;){if(E===o){E=null;break}if(y=E.sibling,y!==null){y.return=E.return,E=y;break}E=E.return}y=E}Dt(r,o,m.children,a),o=o.child}return o;
vendor: 6,935 bytes, line 40
40case 9:return m=o.type,d=o.pendingProps.children,xo(o,a),m=gn(m),d=d(m),o.flags|=1,Dt(r,o,d,a),o.child;case 14:return d=o.type,m=On(d,o.pendingProps),m=On(d.type,m),xg(r,o,d,m,a);case 15:return wg(r,o,o.type,o.pendingProps,a);case 17:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:On(d,m),Ea(r,o),o.tag=1,Vt(d)?(r=!0,sa(o)):r=!1,xo(o,a),dg(o,d,m),ud(o,d,m,a),hd(null,o,d,!0,r,a);case 19:return Rg(r,o,a);case 22:return Sg(r,o,a)}throw Error(n(156,o.tag))};function Jg(r,o){return Op(r,o)}function Ok(r,o,a,d){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xn(r,o,a,d){return new Ok(r,o,a,d)}function Id(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ak(r){if(typeof r=="function")return Id(r)?1:0;if(r!=null){if(r=r.$$typeof,r===U)return 11;if(r===X)return 14}return 2}function Wr(r,o){var a=r.alternate;return a===null?(a=xn(r.tag,o,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=o,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,o=r.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function ja(r,o,a,d,m,y){var E=2;if(d=r,typeof r=="function")Id(r)&&(E=1);else if(typeof r=="string")E=5;else e:switch(r){case V:return Li(a.children,m,y,o);case I:E=8,m|=8;break;case D:return r=xn(12,a,o,m|2),r.elementType=D,r.lanes=y,r;case K:return r=xn(13,a,o,m),r.elementType=K,r.lanes=y,r;case J:return r=xn(19,a,o,m),r.elementType=J,r.lanes=y,r;case ae:return Ma(a,m,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Q:E=10;break e;case q:E=9;break e;case U:E=11;break e;case X:E=14;break e;case ee:E=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=xn(E,a,o,m),o.elementType=r,o.type=d,o.lanes=y,o}function Li(r,o,a,d){return r=xn(7,r,d,o),r.lanes=a,r}function Ma(r,o,a,d){return r=xn(22,r,d,o),r.elementType=ae,r.lanes=a,r.stateNode={isHidden:!1},r}function Ld(r,o,a){return r=xn(6,r,null,o),r.lanes=a,r}function jd(r,o,a){return o=xn(4,r.children!==null?r.children:[],r.key,o),o.lanes=a,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function Ik(r,o,a,d,m){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ac(0),this.expirationTimes=ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function Md(r,o,a,d,m,y,E,A,M){return r=new Ik(r,o,a,A,M),o===1?(o=1,y===!0&&(o|=8)):o=0,y=xn(3,null,null,o),r.current=y,y.stateNode=r,y.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gc(y),r}function Lk(r,o,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:d==null?null:""+d,children:r,containerInfo:o,implementation:a}}function Zg(r){if(!r)return Dr;r=r._reactInternals;e:{if(bi(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Vt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(Vt(a))return Nm(r,a,o)}return o}function ey(r,o,a,d,m,y,E,A,M){return r=Md(a,d,!0,r,m,y,E,A,M),r.context=Zg(null),a=r.current,d=Ft(),m=Hr(a),y=pr(d,m),y.callback=o??null,Br(a,y,m),r.current.lanes=m,ps(r,m,d),Wt(r,d),r}function Da(r,o,a,d){var m=o.current,y=Ft(),E=Hr(m);return a=Zg(a),o.context===null?o.context=a:o.pendingContext=a,o=pr(y,E),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=Br(m,o,E),r!==null&&(Ln(r,m,E,y),pa(r,m,E)),E}function Fa(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function ty(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<o?a:o}}function Dd(r,o){ty(r,o),(r=r.alternate)&&ty(r,o)}function jk(){return null}var ny=typeof reportError=="function"?reportError:function(r){console.error(r)};function Fd(r){this._internalRoot=r}za.prototype.render=Fd.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));Da(r,o,null,null)},za.prototype.unmount=Fd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Oi(function(){Da(null,r,null,null)}),o[ur]=null}};function za(r){this._internalRoot=r}za.prototype.unstable_scheduleHydration=function(r){if(r){var o=zp();r={blockedOn:null,target:r,priority:o};for(var a=0;a<Ar.length&&o!==0&&o<Ar[a].priority;a++);Ar.splice(a,0,r),a===0&&$p(r)}};function zd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Ba(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function ry(){}function Mk(r,o,a,d,m){if(m){if(typeof d=="function"){var y=d;d=function(){var G=Fa(E);y.call(G)}}var E=ey(o,d,r,0,null,!1,!1,"",ry);return r._reactRootContainer=E,r[ur]=E.current,Rs(r.nodeType===8?r.parentNode:r),Oi(),E}for(;m=r.lastChild;)r.removeChild(m);if(typeof d=="function"){var A=d;d=function(){var G=Fa(M);A.call(G)}}var M=Md(r,0,!1,null,null,!1,!1,"",ry);return r._reactRootContainer=M,r[ur]=M.current,Rs(r.nodeType===8?r.parentNode:r),Oi(function(){Da(o,M,a,d)}),M}function Ua(r,o,a,d,m){var y=a._reactRootContainer;if(y){var E=y;if(typeof m=="function"){var A=m;m=function(){var M=Fa(E);A.call(M)}}Da(o,E,r,m)}else E=Mk(a,o,r,m,d);return Fa(E)}Dp=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var a=hs(o.pendingLanes);a!==0&&(uc(o,a|1),Wt(o,lt()),($e&6)===0&&(Eo=lt()+500,Fr()))}break;case 13:Oi(function(){var d=hr(r,1);if(d!==null){var m=Ft();Ln(d,r,1,m)}}),Dd(r,1)}},cc=function(r){if(r.tag===13){var o=hr(r,134217728);if(o!==null){var a=Ft();Ln(o,r,134217728,a)}Dd(r,134217728)}},Fp=function(r){if(r.tag===13){var o=Hr(r),a=hr(r,o);if(a!==null){var d=Ft();Ln(a,r,o,d)}Dd(r,o)}},zp=function(){return We},Bp=function(r,o){var a=We;try{return We=r,o()}finally{We=a}},nc=function(r,o,a){switch(o){case"input":if(fn(r,a),o=a.name,a.t
vendor: 4,339 bytes, line 40
40ype==="radio"&&o!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var d=a[o];if(d!==r&&d.form===r.form){var m=ia(d);if(!m)throw Error(n(90));je(d),fn(d,m)}}}break;case"textarea":Ll(r,a);break;case"select":o=a.value,o!=null&&Nr(r,!!a.multiple,o,!1)}},Ep=Pd,Cp=Oi;var Dk={usingClientEntryPoint:!1,Events:[Os,co,ia,bp,kp,Pd]},qs={findFiberByHostInstance:ki,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Fk={bundleType:qs.bundleType,version:qs.version,rendererPackageName:qs.rendererPackageName,rendererConfig:qs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Tp(r),r===null?null:r.stateNode},findFiberByHostInstance:qs.findFiberByHostInstance||jk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$a.isDisabled&&$a.supportsFiber)try{zl=$a.inject(Fk),Vn=$a}catch{}}return Qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dk,Qt.createPortal=function(r,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zd(o))throw Error(n(200));return Lk(r,o,null,a)},Qt.createRoot=function(r,o){if(!zd(r))throw Error(n(299));var a=!1,d="",m=ny;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(m=o.onRecoverableError)),o=Md(r,1,!1,null,null,a,!1,d,m),r[ur]=o.current,Rs(r.nodeType===8?r.parentNode:r),new Fd(o)},Qt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Tp(o),r=r===null?null:r.stateNode,r},Qt.flushSync=function(r){return Oi(r)},Qt.hydrate=function(r,o,a){if(!Ba(o))throw Error(n(200));return Ua(null,r,o,!0,a)},Qt.hydrateRoot=function(r,o,a){if(!zd(r))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,m=!1,y="",E=ny;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(E=a.onRecoverableError)),o=ey(o,null,r,1,a??null,m,!1,y,E),r[ur]=o.current,Rs(r),d)for(r=0;r<d.length;r++)a=d[r],m=a._getVersion,m=m(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,m]:o.mutableSourceEagerHydrationData.push(a,m);return new za(o)},Qt.render=function(r,o,a){if(!Ba(o))throw Error(n(200));return Ua(null,r,o,!1,a)},Qt.unmountComponentAtNode=function(r){if(!Ba(r))throw Error(n(40));return r._reactRootContainer?(Oi(function(){Ua(null,null,r,!1,function(){r._reactRootContainer=null,r[ur]=null})}),!0):!1},Qt.unstable_batchedUpdates=Pd,Qt.unstable_renderSubtreeIntoContainer=function(r,o,a,d){if(!Ba(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Ua(r,o,a,!1,d)},Qt.version="18.3.1-next-f1338f8080-20240426",Qt}var fy;function Bx(){if(fy)return Vd.exports;fy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vd.exports=Wk(),Vd.exports}var hy;function Qk(){if(hy)return Ha;hy=1;var e=Bx();return Ha.createRoot=e.createRoot,Ha.hydrateRoot=e.hydrateRoot,Ha}var Kk=Qk();const Gk=wl(Kk),Yk=20,Xk=1e6,kr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Wd=0;function Jk(){return Wd=(Wd+1)%Number.MAX_VALUE,Wd.toString()}const Qd=new Map,py=e=>{if(Qd.has(e))return;const t=setTimeout(()=>{Qd.delete(e),ol({type:kr.REMOVE_TOAST,toastId:e})},Xk);Qd.set(e,t)},Zk=(e,t)=>{switch(t.type){case kr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,Yk)};case kr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case kr.DISMISS_TOAST:{const{toastId:n}=t;
40return n?py(n):e.toasts.forEach(i=>{py(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case kr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},su=[];let lu={toasts:[]};function ol(e){lu=Zk(lu,e),su.forEach(t=>{t(lu)})}function eE({...e}){const t=Jk(),n=s=>ol({type:kr.UPDATE_TOAST,toast:{...s,id:t}}),i=()=>ol({type:kr.DISMISS_TOAST,toastId:t});return ol({type:kr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:s=>{s||i()}}}),{id:t,dismiss:i,update:n}}function tE(){const[e,t]=C.useState(lu);return C.useEffect(()=>(su.push(t),()=>{const n=su.indexOf(t);n>-1&&su.splice(n,1)}),[e]),{...e,toast:eE,dismiss:n=>ol({type:kr.DISMISS_TOAST,toastId:n})}}function Ux(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Ux(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function $x(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ux(e))&&(i&&(i+=" "),i+=t);return i}const my=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gy=$x,Ah=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return gy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:l}=t,u=Object.keys(s).map(h=>{const p=n==null?void 0:n[h],g=l==null?void 0:l[h];if(p===null)return null;const w=my(p)||my(g);return s[h][w]}),c=n&&Object.entries(n).reduce((h,p)=>{let[g,w]=p;return w===void 0||(h[g]=w),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,p)=>{let{class:g,className:w,...v}=p;return Object.entries(v).every(k=>{let[S,b]=k;return Array.isArray(b)?b.includes({...l,...c}[S]):{...l,...c}[S]===b})?[...h,g,w]:h},[]);return gy(e,u,f,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const nE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vx=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var rE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const iE=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:u,...c},f)=>C.createElement("svg",{ref:f,...rE,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Vx("lucide",s),...c},[...u.map(([h,p])=>C.createElement(h,p)),...Array.isArray(l)?l:[l]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const st=(e,t)=>{const n=C.forwardRef(({className:i,...s},l)=>C.createElement(iE,{ref:l,iconNode:t,className:Vx(`lucide-${nE(e)}`,i),...s}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const oE=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],sE=st("Calendar",oE);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const lE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Hx=st("Check",lE);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const aE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ih=st("ChevronDown",aE);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const uE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cE=st("ChevronRight",uE);/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const dE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],fE=st("ChevronUp",dE);/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const hE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],pE=st("CircleCheck",hE);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const mE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],gE=st("Clock",mE);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const yE=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],vE=st("Copy",yE);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const xE=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],wE=st("Download",xE);/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const SE=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],bE=st("ExternalLink",SE);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const kE=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],qx=st("FileText",kE);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const EE=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],CE=st("File",EE);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const _E=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],yy=st("Lightbulb",_E);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const NE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Kd=st("LoaderCircle",NE);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const RE=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],TE=st("Lock",RE);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const PE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],vy=st("Target",PE);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const OE=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Tf=st("TrendingUp",OE);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const AE=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],xy=st("TriangleAlert",AE);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const IE=[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]],LE=st("Type",IE);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const jE=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],ME=st("Upload",jE);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const DE=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],FE=st("User",DE);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const zE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,727 bytes, line 170
170],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Wx=st("X",zE),Lh="-",BE=e=>{const t=$E(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const c=u.split(Lh);return c[0]===""&&c.length!==1&&c.shift(),Qx(c,t)||UE(u)},getConflictingClassGroupIds:(u,c)=>{const f=n[u]||[];return c&&i[u]?[...f,...i[u]]:f}}},Qx=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),s=i?Qx(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const l=e.join(Lh);return(u=t.validators.find(({validator:c})=>c(l)))==null?void 0:u.classGroupId},wy=/^\[(.+)\]$/,UE=e=>{if(wy.test(e)){const t=wy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$E=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const s in n)Pf(n[s],i,s,t);return i},Pf=(e,t,n,i)=>{e.forEach(s=>{if(typeof s=="string"){const l=s===""?t:Sy(t,s);l.classGroupId=n;return}if(typeof s=="function"){if(VE(s)){Pf(s(i),t,n,i);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([l,u])=>{Pf(u,Sy(t,l),n,i)})})},Sy=(e,t)=>{let n=e;return t.split(Lh).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},VE=e=>e.isThemeGetter,HE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const s=(l,u)=>{n.set(l,u),t++,t>e&&(t=0,i=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return s(l,u),u},set(l,u){n.has(l)?n.set(l,u):s(l,u)}}},Of="!",Af=":",qE=Af.length,WE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const l=[];let u=0,c=0,f=0,h;for(let k=0;k<s.length;k++){let S=s[k];if(u===0&&c===0){if(S===Af){l.push(s.slice(f,k)),f=k+qE;continue}if(S==="/"){h=k;continue}}S==="["?u++:S==="]"?u--:S==="("?c++:S===")"&&c--}const p=l.length===0?s:s.substring(f),g=QE(p),w=g!==p,v=h&&h>f?h-f:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:g,maybePostfixModifierPosition:v}};if(t){const s=t+Af,l=i;i=u=>u.startsWith(s)?l(u.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},QE=e=>e.endsWith(Of)?e.substring(0,e.length-1):e.startsWith(Of)?e.substring(1):e,KE=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let l=[];return i.forEach(u=>{u[0]==="["||t[u]?(s.push(...l.sort(),u),l=[]):l.push(u)}),s.push(...l.sort()),s}},GE=e=>({cache:HE(e.cacheSize),parseClassName:WE(e),sortModifiers:KE(e),...BE(e)}),YE=/\s+/,XE=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,u=[],c=e.trim().split(YE);let f="";for(let h=c.length-1;h>=0;h-=1){const p=c[h],{isExternal:g,modifiers:w,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:S}=n(p);if(g){f=p+(f.length>0?" "+f:f);continue}let b=!!S,_=i(b?k.substring(0,S):k);if(!_){if(!b){f=p+(f.length>0?" "+f:f);continue}if(_=i(k),!_){f=p+(f.length>0?" "+f:f);continue}b=!1}const P=l(w).join(":"),R=v?P+Of:P,j=R+_;if(u.includes(j))continue;u.push(j);const O=s(_,b);for(let L=0;L<O.length;++L){const V=O[L];u.push(R+V)}f=p+(f.length>0?" "+f:f)}return f};function JE(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Kx(t))&&(i&&(i+=" "),i+=n);return i}const Kx=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Kx(e[i]))&&(n&&(n+=" "),n+=t);return n};function ZE(e,...t){let n,i,s,l=u;function u(f){const h=t.reduce((p,g)=>g(p),e());return n=GE(h),i=n.cache.get,s=n.cache.set,l=c,c(f)}function c(f){const h=i(f);if(h)return h;const p=XE(f,n);return s(f,p),p}return function(){return l(JE.apply(null,arguments))}}const gt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Gx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eC=/^\d+\/\d+$/,tC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_o=e=>eC.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Kr=e=>!!e&&Number.isInteger(Number(e)),Gd=e=>e.endsWith("%")&&Le(e.slice(0,-1)),yr=e=>tC.test(e),sC=()=>!0,lC=e=>nC.test(e)&&!rC.test(e),Xx=()=>!1,aC=e=>iC.test(e),uC=e=>oC.test(e),cC=e=>!ye(e)&&!ve(e),dC=e=>Zo(e,ew,Xx),ye=e=>Gx.test(e),ji=e=>Zo(e,tw,lC),Yd=e=>Zo(e,gC,Le),by=e=>Zo(e,Jx,Xx),fC=e=>Zo(e,Zx,uC),qa=e=>Zo(e,nw,aC),ve=e=>
vendor: 4,611 bytes, line 170
170Yx.test(e),Qs=e=>es(e,tw),hC=e=>es(e,yC),ky=e=>es(e,Jx),pC=e=>es(e,ew),mC=e=>es(e,Zx),Wa=e=>es(e,nw,!0),Zo=(e,t,n)=>{const i=Gx.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},es=(e,t,n=!1)=>{const i=Yx.exec(e);return i?i[1]?t(i[1]):n:!1},Jx=e=>e==="position"||e==="percentage",Zx=e=>e==="image"||e==="url",ew=e=>e==="length"||e==="size"||e==="bg-size",tw=e=>e==="length",gC=e=>e==="number",yC=e=>e==="family-name",nw=e=>e==="shadow",vC=()=>{const e=gt("color"),t=gt("font"),n=gt("text"),i=gt("font-weight"),s=gt("tracking"),l=gt("leading"),u=gt("breakpoint"),c=gt("container"),f=gt("spacing"),h=gt("radius"),p=gt("shadow"),g=gt("inset-shadow"),w=gt("text-shadow"),v=gt("drop-shadow"),k=gt("blur"),S=gt("perspective"),b=gt("aspect"),_=gt("ease"),P=gt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...j(),ve,ye],L=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],I=()=>[ve,ye,f],D=()=>[_o,"full","auto",...I()],Q=()=>[Kr,"none","subgrid",ve,ye],q=()=>["auto",{span:["full",Kr,ve,ye]},Kr,ve,ye],U=()=>[Kr,"auto",ve,ye],K=()=>["auto","min","max","fr",ve,ye],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...I()],ae=()=>[_o,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],$=()=>[e,ve,ye],se=()=>[...j(),ky,by,{position:[ve,ye]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",pC,dC,{size:[ve,ye]}],Z=()=>[Gd,Qs,ji],T=()=>["","none","full",h,ve,ye],de=()=>["",Le,Qs,ji],be=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Le,Gd,ky,by],pe=()=>["","none",k,ve,ye],ke=()=>["none",Le,ve,ye],Ee=()=>["none",Le,ve,ye],Oe=()=>[Le,ve,ye],je=()=>[_o,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yr],breakpoint:[yr],color:[sC],container:[yr],"drop-shadow":[yr],ease:["in","out","in-out"],font:[cC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yr],shadow:[yr],spacing:["px",Le],text:[yr],"text-shadow":[yr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_o,ye,ve,b]}],container:["container"],columns:[{columns:[Le,ye,ve,c]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Kr,"auto",ve,ye]}],basis:[{basis:[_o,"full","auto",c,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,_o,"auto","initial","none",ye]}],grow:[{grow:["",Le,ve,ye]}],shrink:[{shrink:["",Le,ve,ye]}],order:[{order:[Kr,"first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":U()}
vendor: 11,066 bytes, line 170
170],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[c,"screen",...ae()]}],"min-w":[{"min-w":[c,"screen","none",...ae()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",n,Qs,ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,Yd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gd,ye]}],"font-family":[{font:[hC,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ve,ye]}],"line-clamp":[{"line-clamp":[Le,"none",ve,Yd]}],leading:[{leading:[l,...I()]}],"list-image":[{"list-image":["none",ve,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ve,ji]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Le,"auto",ve,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Kr,ve,ye],radial:["",ve,ye],conic:[Kr,ve,ye]},mC,fC]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ve,ye]}],"outline-w":[{outline:["",Le,Qs,ji]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",p,Wa,qa]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",g,Wa,qa]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Le,ji]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",w,Wa,qa]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Le,ve,ye]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[ve,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ye]}],filter:[{filter:["","none",ve,ye]}],blur:[{blur:pe()}],brightness:[{brightness:[Le,ve,ye]}],contrast:[{contrast:[Le,ve,ye]}],"drop-shadow":[{"drop-shadow":["","none",v,Wa,qa]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Le,ve,ye]}],"hue-rotate":[{"hue-rotate":[Le,ve,ye]}],invert:[{invert:["",Le,ve,ye]}],saturate:[{saturate:[Le,ve,ye]}],sepia:[{sepia:["",Le,ve,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ye]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ve,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ve,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ve,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ve,ye]}],"backdrop-invert":[{"backdrop-invert":["",Le,ve,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ve,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ve,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ve,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ve,ye]}],ease:[{ease:["linear","initial",_,ve,ye]}],delay:[{delay:[Le,ve,ye]}],animate:[{animate:["none",P,ve,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ve,ye]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[ve,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:je()}],"translate-x":[{"translate-x":je()}],"translate-y":[{"translate-y":je()}],"translate-z":[{"translate-z":je()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}
vendor: 6,657 bytes, line 170
170],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve,ye]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Le,Qs,ji,Yd]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rw=ZE(vC);function et(...e){return rw($x(e))}const iw=C.forwardRef(({...e},t)=>x.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));iw.displayName="ToastProvider";const ow=C.forwardRef(({...e},t)=>x.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));ow.displayName="ToastViewport";const xC=Ah("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),sw=C.forwardRef(({className:e,variant:t,...n},i)=>x.jsx("div",{ref:i,className:et(xC({variant:t}),e),...n}));sw.displayName="Toast";const wC=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));wC.displayName="ToastAction";const lw=C.forwardRef(({className:e,...t},n)=>x.jsx("button",{ref:n,className:et("absolute right-2 top-2 rounded-md p-1 text-foreground
170/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:x.jsx(Wx,{className:"h-4 w-4"})}));lw.displayName="ToastClose";const aw=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("text-sm font-semibold",e),...t}));aw.displayName="ToastTitle";const uw=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("text-sm opacity-90",e),...t}));uw.displayName="ToastDescription";function SC(){const{toasts:e}=tE();return x.jsxs(iw,{children:[e.map(function({id:t,title:n,description:i,action:s,...l}){return x.jsxs(sw,{...l,children:[x.jsxs("div",{className:"grid gap-1",children:[n&&x.jsx(aw,{children:n}),i&&x.jsx(uw,{children:i})]}),s,x.jsx(lw,{})]},t)}),x.jsx(ow,{})]})}var Sl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ii,Th,Px,kC=(Px=class{constructor(){Ne(this,ii,bC);Ne(this,Th,!1)}setTimeoutProvider(e){he(this,ii,e)}setTimeout(e,t){return z(this,ii).setTimeout(e,t)}clearTimeout(e){z(this,ii).clearTimeout(e)}setInterval(e,t){return z(this,ii).setInterval(e,t)}clearInterval(e){z(this,ii).clearInterval(e)}},ii=new WeakMap,Th=new WeakMap,Px),Mi=new kC;function EC(e){setTimeout(e,0)}var Ki=typeof window>"u"||"Deno"in globalThis;function Yt(){}function CC(e,t){return typeof e=="function"?e(t):e}function If(e){return typeof e=="number"&&e>=0&&e!==1/0}function cw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hi(e,t){return typeof e=="function"?e(t):e}function bn(e,t){return typeof e=="function"?e(t):e}function Ey(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:l,queryKey:u,stale:c}=e;if(u){if(i){if(t.queryHash!==jh(u,t.options))return!1}else if(!cl(t.queryKey,u))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||s&&s!==t.state.fetchStatus||l&&!l(t))}function Cy(e,t){const{exact:n,status:i,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(ul(t.options.mutationKey)!==ul(l))return!1}else if(!cl(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function jh(e,t){return((t==null?void 0:t.queryKeyHashFn)||ul)(e)}function ul(e){return JSON.stringify(e,(t,n)=>jf(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function cl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>cl(e[n],t[n])):!1}var _C=Object.prototype.hasOwnProperty;function dw(e,t){if(e===t)return e;const n=_y(e)&&_y(t);if(!n&&!(jf(e)&&jf(t)))return t;const s=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),u=l.length,c=n?new Array(u):{};let f=0;for(let h=0;h<u;h++){const p=n?h:l[h],g=e[p],w=t[p];if(g===w){c[p]=g,(n?h<s:_C.call(e,p))&&f++;continue}if(g===null||w===null||typeof g!="object"||typeof w!="object"){c[p]=w;continue}const v=dw(g,w);c[p]=v,v===g&&f++}return s===u&&f===s?e:c}function Lf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function _y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jf(e){if(!Ny(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ny(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ny(e){return Object.prototype.toString.call(e)==="[object Object]"}function NC(e){return new Promise(t=>{Mi.setTimeout(t,e)})}function Mf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dw(e,t):t}function RC(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function TC(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Mh=Symbol();function fw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Mh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function PC(e,t){return typeof e=="function"?e(...t):!!e}var Fi,oi,Fo,Ox,OC=(Ox=class extends Sl{constructor(){super();Ne(this,Fi);Ne(this,oi);Ne(this,Fo);he(this,Fo,t=>{if(!Ki&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){z(this,oi)||this.setEventListener(z(this,Fo))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,oi))==null||t.call(this),he(this,oi,void 0))}setEventListener(t){var n;he(this,Fo,t),(n=z(this,oi))==null||n.call(this),he(this,oi,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){z(this,Fi)!==t&&(he(this,Fi,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 5,022 bytes, line 170
170this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof z(this,Fi)=="boolean"?z(this,Fi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Fi=new WeakMap,oi=new WeakMap,Fo=new WeakMap,Ox),Dh=new OC;function Df(){let e,t;const n=new Promise((s,l)=>{e=s,t=l});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var AC=EC;function IC(){let e=[],t=0,n=c=>{c()},i=c=>{c()},s=AC;const l=c=>{t?e.push(c):s(()=>{n(c)})},u=()=>{const c=e;e=[],c.length&&s(()=>{i(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||u()}return f},batchCalls:c=>(...f)=>{l(()=>{c(...f)})},schedule:l,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{s=c}}}var Nt=IC(),zo,si,Bo,Ax,LC=(Ax=class extends Sl{constructor(){super();Ne(this,zo,!0);Ne(this,si);Ne(this,Bo);he(this,Bo,t=>{if(!Ki&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){z(this,si)||this.setEventListener(z(this,Bo))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,si))==null||t.call(this),he(this,si,void 0))}setEventListener(t){var n;he(this,Bo,t),(n=z(this,si))==null||n.call(this),he(this,si,t(this.setOnline.bind(this)))}setOnline(t){z(this,zo)!==t&&(he(this,zo,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return z(this,zo)}},zo=new WeakMap,si=new WeakMap,Bo=new WeakMap,Ax),Su=new LC;function jC(e){return Math.min(1e3*2**e,3e4)}function hw(e){return(e??"online")==="online"?Su.isOnline():!0}var Ff=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function pw(e){let t=!1,n=0,i;const s=Df(),l=()=>s.status!=="pending",u=S=>{var b;if(!l()){const _=new Ff(S);w(_),(b=e.onCancel)==null||b.call(e,_)}},c=()=>{t=!0},f=()=>{t=!1},h=()=>Dh.isFocused()&&(e.networkMode==="always"||Su.isOnline())&&e.canRun(),p=()=>hw(e.networkMode)&&e.canRun(),g=S=>{l()||(i==null||i(),s.resolve(S))},w=S=>{l()||(i==null||i(),s.reject(S))},v=()=>new Promise(S=>{var b;i=_=>{(l()||h())&&S(_)},(b=e.onPause)==null||b.call(e)}).then(()=>{var S;i=void 0,l()||(S=e.onContinue)==null||S.call(e)}),k=()=>{if(l())return;let S;const b=n===0?e.initialPromise:void 0;try{S=b??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(g).catch(_=>{var L;if(l())return;const P=e.retry??(Ki?0:3),R=e.retryDelay??jC,j=typeof R=="function"?R(n,_):R,O=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,_);if(t||!O){w(_);return}n++,(L=e.onFail)==null||L.call(e,n,_),NC(j).then(()=>h()?void 0:v()).then(()=>{t?w(_):k()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(i==null||i(),s),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?k():v().then(k),s)}}var zi,Ix,mw=(Ix=class{constructor(){Ne(this,zi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),If(this.gcTime)&&he(this,zi,Mi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ki?1/0:300*1e3))}clearGcTimeout(){z(this,zi)&&(Mi.clearTimeout(z(this,zi)),he(this,zi,void 0))}},zi=new WeakMap,Ix),Bi,Uo,Sn,Ui,St,ml,$i,Mn,wr,Lx,MC=(Lx=class extends mw{constructor(t){super();Ne(this,Mn);Ne(this,Bi);Ne(this,Uo);Ne(this,Sn);Ne(this,Ui);Ne(this,St);Ne(this,ml);Ne(this,$i);he(this,$i,!1),he(this,ml,t.defaultOptions),this.setOptions(t.options),this.observers=[],he(this,Ui,t.client),he(this,Sn,z(this,Ui).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,he(this,Bi,Ry(this.options)),this.state=t.state??z(this,Bi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=z(this,St))==null?void 0:t.promise}setOptions(t){if(this.options={...z(this,ml),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Ry(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),he(this,Bi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&z(this,Sn).remove(this)}setData(t,n){const i=Mf(this.state.data,t,this.options);return Fe(this,Mn,wr).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){Fe(this,Mn,wr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=z(this,St))==null?void 0:i.promise;return(s=z(this,St))==null||s.cancel(t),n?n.then(Yt).catch(Yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(z(this,Bi))}isActive(){return this.observers.some(t=>bn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mh||this.state.dataUpdateCount+this.state.errorUpdate
170Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>hi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!cw(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=z(this,St))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=z(this,St))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),z(this,Sn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(z(this,St)&&(z(this,$i)?z(this,St).cancel({revert:!0}):z(this,St).cancelRetry()),this.scheduleGc()),z(this,Sn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,Mn,wr).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,p,g,w,v,k,S,b,_,P,R;if(this.state.fetchStatus!=="idle"&&((f=z(this,St))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(z(this,St))return z(this,St).continueRetry(),z(this,St).promise}if(t&&this.setOptions(t),!this.options.queryFn){const j=this.observers.find(O=>O.options.queryFn);j&&this.setOptions(j.options)}const i=new AbortController,s=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(he(this,$i,!0),i.signal)})},l=()=>{const j=fw(this.options,n),L=(()=>{const V={client:z(this,Ui),queryKey:this.queryKey,meta:this.meta};return s(V),V})();return he(this,$i,!1),this.options.persister?this.options.persister(j,L,this):j(L)},c=(()=>{const j={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:z(this,Ui),state:this.state,fetchFn:l};return s(j),j})();(h=this.options.behavior)==null||h.onFetch(c,this),he(this,Uo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&Fe(this,Mn,wr).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),he(this,St,pw({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:j=>{j instanceof Ff&&j.revert&&this.setState({...z(this,Uo),fetchStatus:"idle"}),i.abort()},onFail:(j,O)=>{Fe(this,Mn,wr).call(this,{type:"failed",failureCount:j,error:O})},onPause:()=>{Fe(this,Mn,wr).call(this,{type:"pause"})},onContinue:()=>{Fe(this,Mn,wr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const j=await z(this,St).start();if(j===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(j),(v=(w=z(this,Sn).config).onSuccess)==null||v.call(w,j,this),(S=(k=z(this,Sn).config).onSettled)==null||S.call(k,j,this.state.error,this),j}catch(j){if(j instanceof Ff){if(j.silent)return z(this,St).promise;if(j.revert){if(this.state.data===void 0)throw j;return this.state.data}}throw Fe(this,Mn,wr).call(this,{type:"error",error:j}),(_=(b=z(this,Sn).config).onError)==null||_.call(b,j,this),(R=(P=z(this,Sn).config).onSettled)==null||R.call(P,this.state.data,j,this),j}finally{this.scheduleGc()}}},Bi=new WeakMap,Uo=new WeakMap,Sn=new WeakMap,Ui=new WeakMap,St=new WeakMap,ml=new WeakMap,$i=new WeakMap,Mn=new WeakSet,wr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...gw(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return he(this,Uo,t.manual?s:void 0),s;case"error":const l=t.error;
vendor: 13,753 bytes, line 170
170return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),Nt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),z(this,Sn).notify({query:this,type:"updated",action:t})})},Lx);function gw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ry(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,ze,gl,Bt,Vi,$o,Sr,li,yl,Vo,Ho,Hi,qi,ai,qo,qe,tl,zf,Bf,Uf,$f,Vf,Hf,qf,yw,jx,DC=(jx=class extends Sl{constructor(t,n){super();Ne(this,qe);Ne(this,Gt);Ne(this,ze);Ne(this,gl);Ne(this,Bt);Ne(this,Vi);Ne(this,$o);Ne(this,Sr);Ne(this,li);Ne(this,yl);Ne(this,Vo);Ne(this,Ho);Ne(this,Hi);Ne(this,qi);Ne(this,ai);Ne(this,qo,new Set);this.options=n,he(this,Gt,t),he(this,li,null),he(this,Sr,Df()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(z(this,ze).addObserver(this),Ty(z(this,ze),this.options)?Fe(this,qe,tl).call(this):this.updateResult(),Fe(this,qe,$f).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wf(z(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wf(z(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,qe,Vf).call(this),Fe(this,qe,Hf).call(this),z(this,ze).removeObserver(this)}setOptions(t){const n=this.options,i=z(this,ze);if(this.options=z(this,Gt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof bn(this.options.enabled,z(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,qe,qf).call(this),z(this,ze).setOptions(this.options),n._defaulted&&!Lf(this.options,n)&&z(this,Gt).getQueryCache().notify({type:"observerOptionsUpdated",query:z(this,ze),observer:this});const s=this.hasListeners();s&&Py(z(this,ze),i,this.options,n)&&Fe(this,qe,tl).call(this),this.updateResult(),s&&(z(this,ze)!==i||bn(this.options.enabled,z(this,ze))!==bn(n.enabled,z(this,ze))||hi(this.options.staleTime,z(this,ze))!==hi(n.staleTime,z(this,ze)))&&Fe(this,qe,zf).call(this);const l=Fe(this,qe,Bf).call(this);s&&(z(this,ze)!==i||bn(this.options.enabled,z(this,ze))!==bn(n.enabled,z(this,ze))||l!==z(this,ai))&&Fe(this,qe,Uf).call(this,l)}getOptimisticResult(t){const n=z(this,Gt).getQueryCache().build(z(this,Gt),t),i=this.createResult(n,t);return zC(this,i)&&(he(this,Bt,i),he(this,$o,this.options),he(this,Vi,z(this,ze).state)),i}getCurrentResult(){return z(this,Bt)}trackResult(t,n){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&!this.options.experimental_prefetchInRender&&z(this,Sr).status==="pending"&&z(this,Sr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(t){z(this,qo).add(t)}getCurrentQuery(){return z(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=z(this,Gt).defaultQueryOptions(t),i=z(this,Gt).getQueryCache().build(z(this,Gt),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return Fe(this,qe,tl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),z(this,Bt)))}createResult(t,n){var D;const i=z(this,ze),s=this.options,l=z(this,Bt),u=z(this,Vi),c=z(this,$o),h=t!==i?t.state:z(this,gl),{state:p}=t;let g={...p},w=!1,v;if(n._optimisticResults){const Q=this.hasListeners(),q=!Q&&Ty(t,n),U=Q&&Py(t,i,n,s);(q||U)&&(g={...g,...gw(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:k,errorUpdatedAt:S,status:b}=g;v=g.data;let _=!1;if(n.placeholderData!==void 0&&v===void 0&&b==="pending"){let Q;l!=null&&l.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(Q=l.data,_=!0):Q=typeof n.placeholderData=="function"?n.placeholderData((D=z(this,Ho))==null?void 0:D.state.data,z(this,Ho)):n.placeholderData,Q!==void 0&&(b="success",v=Mf(l==null?void 0:l.data,Q,n),w=!0)}if(n.select&&v!==void 0&&!_)if(l&&v===(u==null?void 0:u.data)&&n.select===z(this,yl))v=z(this,Vo);else try{he(this,yl,n.select),v=n.select(v),v=Mf(l==null?void 0:l.data,v,n),he(this,Vo,v),he(this,li,null)}catch(Q){he(this,li,Q)}z(this,li)&&(k=z(this,li),v=z(this,Vo),S=Date.now(),b="error");const P=g.fetchStatus==="fetching",R=b==="pending",j=b==="error",O=R&&P,L=v!==void 0,I={status:b,fetchStatus:g.fetchStatus,isPending:R,isSuccess:b==="success",isError:j,isInitialLoading:O,isLoading:O,data:v,dataUpdatedAt:g.dataUpdatedAt,error:k,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&!R,isLoadingError:j&&!L,isPaused:g.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:j&&L,isStale:Fh(t,n),refetch:this.refetch,promise:z(this,Sr),isEnabled:bn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Q=K=>{I.status==="error"?K.reject(I.error):I.data!==void 0&&K.resolve(I.data)},q=()=>{const K=he(this,Sr,I.promise=Df());Q(K)},U=z(this,Sr);switch(U.status){case"pending":t.queryHash===i.queryHash&&Q(U);break;case"fulfilled":(I.status==="error"||I.data!==U.value)&&q();break;case"rejected":(I.status!=="error"||I.error!==U.reason)&&q();break}}return I}updateResult(){const t=z(this,Bt),n=this.createResult(z(this,ze),this.options);if(he(this,Vi,z(this,ze).state),he(this,$o,this.options),z(this,Vi).data!==void 0&&he(this,Ho,z(this,ze)),Lf(n,t))return;he(this,Bt,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!z(this,qo).size)return!0;const u=new Set(l??z(this,qo));return this.options.throwOnError&&u.add("error"),Object.keys(z(this,Bt)).some(c=>{const f=c;return z(this,Bt)[f]!==t[f]&&u.has(f)})};Fe(this,qe,yw).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,qe,$f).call(this)}},Gt=new WeakMap,ze=new WeakMap,gl=new WeakMap,Bt=new WeakMap,Vi=new WeakMap,$o=new WeakMap,Sr=new WeakMap,li=new WeakMap,yl=new WeakMap,Vo=new WeakMap,Ho=new WeakMap,Hi=new WeakMap,qi=new WeakMap,ai=new WeakMap,qo=new WeakMap,qe=new WeakSet,tl=function(t){Fe(this,qe,qf).call(this);let n=z(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Yt)),n},zf=function(){Fe(this,qe,Vf).call(this);const t=hi(this.options.staleTime,z(this,ze));if(Ki||z(this,Bt).isStale||!If(t))return;const i=cw(z(this,Bt).dataUpdatedAt,t)+1;he(this,Hi,Mi.setTimeout(()=>{z(this,Bt).isStale||this.updateResult()},i))},Bf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(z(this,ze)):this.options.refetchInterval)??!1},Uf=function(t){Fe(this,qe,Hf).call(this),he(this,ai,t),!(Ki||bn(this.options.enabled,z(this,ze))===!1||!If(z(this,ai))||z(this,ai)===0)&&he(this,qi,Mi.setInterval(()=>{(this.options.refetchIntervalInBackground||Dh.isFocused())&&Fe(this,qe,tl).call(this)},z(this,ai)))},$f=function(){Fe(this,qe,zf).call(this),Fe(this,qe,Uf).call(this,Fe(this,qe,Bf).call(this))},Vf=function(){z(this,Hi)&&(Mi.clearTimeout(z(this,Hi)),he(this,Hi,void 0))},Hf=function(){z(this,qi)&&(Mi.clearInterval(z(this,qi)),he(this,qi,void 0))},qf=function(){const t=z(this,Gt).getQueryCache().build(z(this,Gt),this.options);if(t===z(this,ze))return;const n=z(this,ze);he(this,ze,t),he(this,gl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},yw=function(t){Nt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(z(this,Bt))}),z(this,Gt).getQueryCache().notify({query:z(this,ze),type:"observerResultsUpdated"})})},jx);function FC(e,t){return bn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ty(e,t){return FC(e,t)||e.state.data!==void 0&&Wf(e,t,t.refetchOnMount)}function Wf(e,t,n){if(bn(t.enabled,e)!==!1&&hi(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Fh(e,t)}return!1}function Py(e,t,n,i){return(e!==t||bn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Fh(e,n)}function Fh(e,t){return bn(t.enabled,e)!==!1&&e.isStaleByTime(hi(t.staleTime,e))}function zC(e,t){return!Lf(e.getCurrentResult(),t)}function Oy(e){return{onFetch:(t,n)=>{var p,g,w,v,k;const i=t.options,s=(w=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,l=((v=t.state.data)==null?void 0:v.pages)||[],u=((k=t.state.data)==null?void 0:k.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let S=!1;const b=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(t.signal.aborted?S=!0:t.signal.addEventListener("abort",()=>{S=!0}),t.signal)})},_=fw(t.options,t.fetchOptions),P=async(R,j,O)=>{if(S)return Promise.reject();if(j==null&&R.pages.length)return Promise.resolve(R);const V=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:j,direction:O?"backward":"forward",meta:t.options.meta};return b(q),q})(),I=await _(V),{maxPages:D}=t.options,Q=O?TC:RC;return{pages:Q(R.pages,I,D),pageParams:Q(R.pageParams,j,D)}};if(s&&l.length){const R=s==="backward",j=R?BC:Ay,O={pages:l,pageParams:u},L=j(i,O);c=await P(O,L,R)}else{const R=e??l.length;do{const j=f===0?u[0]??i.initialPageParam:Ay(i,c);if(f>0&&j==null)break;c=await P(c,j),f++}while(f<R)}return c};t.options.persister?t.fetchFn=()=>{var S,b;return(b=(S=t.options).persister)==null?void 0:b.call(S,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function Ay(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function BC(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var vl,Yn,Ut,Wi,Xn,Jr,Mx,UC=(Mx=class extends mw{constructor(t){super();Ne(this,Xn);Ne(this,vl);Ne(this,Yn);Ne(this,Ut);Ne(this,Wi);he(this,vl,t.client),this.mutationId=t.mutationId,he(this,Ut,t.mutationCache),he(this,Yn,[]),this.state=t.state||$C(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){z(this,Yn).includes(t)||(z(this,Yn).push(t),this.clearGcTimeout(),z(this,Ut).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){he(this,Yn,z(this,Yn).filter(n=>n!==t)),this.scheduleGc(),z(this,Ut).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){z(this,Yn).length||(this.state.status==="pending"?this.scheduleGc():z(this,Ut).remove(this))}continue(){var t;return((t=z(this,Wi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,c,f,h,p,g,w,v,k,S,b,_,P,R,j,O,L,V,I,D;const n=()=>{Fe(this,Xn,Jr).call(this,{type:"continue"})},i={client:z(this,vl),meta:this.options.meta,mutationKey:this.options.mutationKey};he(this,Wi,pw({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(Q,q)=>{Fe(this,Xn,Jr).call(this,{type:"failed",failureCount:Q,error:q})},onPause:()=>{Fe(this,Xn,Jr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>z(this,Ut).canRun(this)}));const s=this.state.status==="pending",l=!z(this,Wi).canStart();try{if(s)n();else{Fe(this,Xn,Jr).call(this,{type:"pending",variables:t,isPaused:l}),await((c=(u=z(this,Ut).config).onMutate)==null?void 0:c.call(u,t,this,i));const q=await((h=(f=this.options).onMutate)==null?void 0:h.call(f,t,i));q!==this.state.context&&Fe(this,Xn,Jr).call(this,{type:"pending",context:q,variables:t,isPaused:l})}const Q=await z(this,Wi).start();return await((g=(p=z(this,Ut).config).onSuccess)==null?void 0:g.call(p,Q,t,this.state.context,this,i)),await((v=(w=this.options).onSuccess)==null?void 0:v.call(w,Q,t,this.state.context,i)),await((S=(k=z(this,Ut).config).onSettled)==null?void 0:S.call(k,Q,null,this.state.variables,this.state.context,this,i)),await((_=(b=this.options).onSettled)==null?void 0:_.call(b,Q,null,t,this.state.context,i)),Fe(this,Xn,Jr).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((R=(P=z(this,Ut).config).onError)==null?void 0:R.call(P,Q,t,this.state.context,this,i)),await((O=(j=this.options).onError)==null?void 0:O.call(j,Q,t,this.state.context,i)),await((V=(L=z(this,Ut).config).onSettled)==null?void 0:V.call(L,void 0,Q,this.state.variables,this.state.context,this,i)),await((D=(I=this.options).onSettled)==null?void 0:D.call(I,void 0,Q,t,this.state.context,i)),Q}finally{Fe(this,Xn,Jr).call(this,{type:"error",error:Q})}}finally{z(this,Ut).runNext(this)}}},vl=new WeakMap,Yn=new WeakMap,Ut=new WeakMap,Wi=new WeakMap,Xn=new WeakSet,Jr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};
170case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Nt.batch(()=>{z(this,Yn).forEach(i=>{i.onMutationUpdate(t)}),z(this,Ut).notify({mutation:this,type:"updated",action:t})})},Mx);function $C(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var br,Dn,xl,Dx,VC=(Dx=class extends Sl{constructor(t={}){super();Ne(this,br);Ne(this,Dn);Ne(this,xl);this.config=t,he(this,br,new Set),he(this,Dn,new Map),he(this,xl,0)}build(t,n,i){const s=new UC({client:t,mutationCache:this,mutationId:++Va(this,xl)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){z(this,br).add(t);const n=Qa(t);if(typeof n=="string"){const i=z(this,Dn).get(n);i?i.push(t):z(this,Dn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(z(this,br).delete(t)){const n=Qa(t);if(typeof n=="string"){const i=z(this,Dn).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&z(this,Dn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Qa(t);if(typeof n=="string"){const i=z(this,Dn).get(n),s=i==null?void 0:i.find(l=>l.state.status==="pending");return!s||s===t}else return!0}runNext(t){var i;const n=Qa(t);if(typeof n=="string"){const s=(i=z(this,Dn).get(n))==null?void 0:i.find(l=>
vendor: 4,791 bytes, line 170
170l!==t&&l.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Nt.batch(()=>{z(this,br).forEach(t=>{this.notify({type:"removed",mutation:t})}),z(this,br).clear(),z(this,Dn).clear()})}getAll(){return Array.from(z(this,br))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Cy(n,i))}findAll(t={}){return this.getAll().filter(n=>Cy(t,n))}notify(t){Nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Nt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Yt))))}},br=new WeakMap,Dn=new WeakMap,xl=new WeakMap,Dx);function Qa(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Jn,Fx,HC=(Fx=class extends Sl{constructor(t={}){super();Ne(this,Jn);this.config=t,he(this,Jn,new Map)}build(t,n,i){const s=n.queryKey,l=n.queryHash??jh(s,n);let u=this.get(l);return u||(u=new MC({client:t,queryKey:s,queryHash:l,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){z(this,Jn).has(t.queryHash)||(z(this,Jn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=z(this,Jn).get(t.queryHash);n&&(t.destroy(),n===t&&z(this,Jn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return z(this,Jn).get(t)}getAll(){return[...z(this,Jn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Ey(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>Ey(t,i)):n}notify(t){Nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Jn=new WeakMap,Fx),ot,ui,ci,Wo,Qo,di,Ko,Go,zx,qC=(zx=class{constructor(e={}){Ne(this,ot);Ne(this,ui);Ne(this,ci);Ne(this,Wo);Ne(this,Qo);Ne(this,di);Ne(this,Ko);Ne(this,Go);he(this,ot,e.queryCache||new HC),he(this,ui,e.mutationCache||new VC),he(this,ci,e.defaultOptions||{}),he(this,Wo,new Map),he(this,Qo,new Map),he(this,di,0)}mount(){Va(this,di)._++,z(this,di)===1&&(he(this,Ko,Dh.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,ot).onFocus())})),he(this,Go,Su.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,ot).onOnline())})))}unmount(){var e,t;Va(this,di)._--,z(this,di)===0&&((e=z(this,Ko))==null||e.call(this),he(this,Ko,void 0),(t=z(this,Go))==null||t.call(this),he(this,Go,void 0))}isFetching(e){return z(this,ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return z(this,ui).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=z(this,ot).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=z(this,ot).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return z(this,ot).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=z(this,ot).get(i.queryHash),l=s==null?void 0:s.state.data,u=CC(t,l);if(u!==void 0)return z(this,ot).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return Nt.batch(()=>z(this,ot).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=z(this,ot).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=z(this,ot);Nt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=z(this,ot);return Nt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Nt.batch(()=>z(this,ot).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Yt).catch(Yt)}invalidateQueries(e,t={}){return Nt.batch(()=>(z(this,ot).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=Nt.batch(()=>z(this,ot).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let l=s.fetch(void 0,n);return n.throwOnError||(l=l.catch(Yt)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Yt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=z(this,ot).build(this,t);return n.isStaleByTime(hi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Yt).catch(Yt)}
170fetchInfiniteQuery(e){return e.behavior=Oy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Yt).catch(Yt)}ensureInfiniteQueryData(e){return e.behavior=Oy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Su.isOnline()?z(this,ui).resumePausedMutations():Promise.resolve()}getQueryCache(){return z(this,ot)}getMutationCache(){return z(this,ui)}getDefaultOptions(){return z(this,ci)}setDefaultOptions(e){he(this,ci,e)}setQueryDefaults(e,t){z(this,Wo).set(ul(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...z(this,Wo).values()],n={};return t.forEach(i=>{cl(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){z(this,Qo).set(ul(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...z(this,Qo).values()],n={};return t.forEach(i=>{cl(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...z(this,ci).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Mh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...z(this,ci).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){z(this,ot).clear(),z(this,ui).clear()}},ot=new WeakMap,ui=new WeakMap,ci=new WeakMap,Wo=new WeakMap,Qo=new WeakMap,di=new WeakMap,Ko=new WeakMap,Go=new WeakMap,zx),vw=C.createContext(void 0),WC=e=>{const t=C.useContext(vw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QC=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(vw.Provider,{value:e,children:t})),xw=C.createContext(!1),KC=()=>C.useContext(xw);xw.Provider;function GC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var YC=C.createContext(GC()),XC=()=>C.useContext(YC),JC=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ZC=e=>{C.useEffect(()=>{e.clearReset()},[e])},e_=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||PC(n,[e.error,i])),t_=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},n_=(e,t)=>e.isLoading&&e.isFetching&&!t,r_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Iy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function i_(e,t,n){var g,w,v,k,S;const i=KC(),s=XC(),l=WC(),u=l.defaultQueryOptions(e);(w=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||w.call(g,u),u._optimisticResults=i?"isRestoring":"optimistic",t_(u),JC(u,s),ZC(s);const c=!l.getQueryCache().get(u.queryHash),[f]=C.useState(()=>new t(l,u)),h=f.getOptimisticResult(u),p=!i&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(b=>{const _=p?f.subscribe(Nt.batchCalls(b)):Yt;return f.updateResult(),_},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),C.useEffect(()=>{f.setOptions(u)},[u,f]),r_(u,h))throw Iy(u,f,s);if(e_({result:h,errorResetBoundary:s,throwOnError:u.throwOnError,query:l.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if((k=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||k.call(v,u,h),u.experimental_prefetchInRender&&!Ki&&n_(h,i)){const b=c?Iy(u,f,s):(S=l.getQueryCache().get(u.queryHash))==null?void 0:S.promise;b==null||b.catch(Yt).finally(()=>{f.updateResult()})}return u.notifyOnChangeProps?h:f.trackResult(h)}function o_(e,t){return i_(e,DC)}const s_=new qC({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});function l_(){const[e,t]=C.useState(!1),n=C.useRef(!1),[i,s]=C.useState(!1),l=C.useRef(!1),[u,c]=C.useState(!1),f=C.useRef(!1),h=C.useRef([]),p=C.useRef([]),g=C.useRef([]),w=C.useRef(null),v=(I=!1)=>{const D=document.createElement("div");return D.style.position="absolute",D.style.pointerEvents="none",D.style.transition="all 0.1s ease-in-out",D.style.zIndex="9999",I?D.style.border="2px s
170olid #2563EB":(D.style.border="2px solid #95a5fc",D.style.backgroundColor="rgba(99, 102, 241, 0.05)"),D},k=(I,D,Q=!1)=>{if(!D||!n.current)return;D.offsetWidth;const q=D.getBoundingClientRect();I.style.top=`${q.top+window.scrollY}px`,I.style.left=`${q.left+window.scrollX}px`,I.style.width=`${q.width}px`,I.style.height=`${q.height}px`;let U=I.querySelector("div");U||(U=document.createElement("div"),U.textContent=D.tagName.toLowerCase(),U.style.position="absolute",U.style.top="-27px",U.style.left="-2px",U.style.padding="2px 8px",U.style.fontSize="11px",U.style.fontWeight=Q?"500":"400",U.style.color=Q?"#ffffff":"#526cff",U.style.backgroundColor=Q?"#526cff":"#DBEAFE",U.style.borderRadius="3px",U.style.boxShadow="none",U.style.minWidth="24px",U.style.textAlign="center",I.appendChild(U))},S=I=>{if(!I)return[];const D=[...document.querySelectorAll(`[data-source-location="${I}"]`)];return D.length>0?D:[...document.querySelectorAll(`[data-visual-selector-id="${I}"]`)]},b=()=>{h.current.forEach(I=>{I&&I.parentNode&&I.remove()}),h.current=[],g.current=[]},_=I=>{if(!n.current||l.current)return;if(f.current){b();return}if(I.target.tagName.toLowerCase()==="path"){b();return}const D=I.target.closest("[data-source-location], [data-visual-selector-id]");if(!D){b();return}const Q=D.dataset.sourceLocation||D.dataset.visualSelectorId;if(D.dataset.sourceLocation,w.current===Q){b();return}const q=S(Q);b(),q.forEach(U=>{const K=v(!1);document.body.appendChild(K),h.current.push(K),k(K,U)}),g.current=q},P=()=>{l.current||b()},R=I=>{var X;if(!n.current)return;if(f.current){I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation(),window.parent.postMessage({type:"close-dropdowns"},"*");return}if(I.target.tagName.toLowerCase()==="path")return;I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation();const D=I.target.closest("[data-source-location], [data-visual-selector-id]");if(!D)return;const Q=D.dataset.sourceLocation||D.dataset.visualSelectorId;D.dataset.sourceLocation,p.current.forEach(ee=>{ee&&ee.parentNode&&ee.remove()}),p.current=[],S(Q).forEach(ee=>{const ae=v(!0);document.body.appendChild(ae),p.current.push(ae),k(ae,ee,!0)}),w.current=Q,b();
170const U=D.getBoundingClientRect(),K={top:U.top,left:U.left,right:U.right,bottom:U.bottom,width:U.width,height:U.height,centerX:U.left+U.width/2,centerY:U.top+U.height/2},J={type:"element-selected",tagName:D.tagName,classes:((X=D.className)==null?void 0:X.baseVal)||D.className||"",visualSelectorId:Q,content:D.innerText,dataSourceLocation:D.dataset.sourceLocation,isDynamicContent:D.dataset.dynamicContent==="true",linenumber:D.dataset.linenumber,filename:D.dataset.filename,position:K};window.parent.postMessage(J,"*")},j=()=>{p.current.forEach(I=>{I&&I.parentNode&&I.remove()}),p.current=[],w.current=null},O=(I,D,Q=!1)=>{const q=S(I);q.length!==0&&(q.forEach(U=>{var K;if(Q)U.className=D;else{const J=((K=U.className)==null?void 0:K.baseVal)||U.className||"";U.className=rw(J,D)}}),setTimeout(()=>{var U,K;w.current===I&&p.current.forEach((J,X)=>{X<q.length&&k(J,q[X])}),g.current.length>0&&((K=(U=g.current[0])==null?void 0:U.dataset)==null?void 0:K.visualSelectorId)===I&&h.current.forEach((X,ee)=>{ee<g.current.length&&k(X,g.current[ee])})},50))},L=(I,D)=>{const Q=S(I);Q.length!==0&&(Q.forEach(q=>{q.innerText=D}),setTimeout(()=>{w.current===I&&p.current.forEach((q,U)=>{U<Q.length&&k(q,Q[U])})},50))},V=I=>{t(I),n.current=I,I?(document.body.style.cursor="crosshair",document.addEventListener("mouseover",_),document.addEventListener("mouseout",P),document.addEventListener("click",R,!0)):(b(),p.current.forEach(D=>{D&&D.parentNode&&D.remove()}),p.current=[],g.current=[],w.current=null,document.body.style.cursor="default",document.removeEventListener("mouseover",_),document.removeEventListener("mouseout",P),document.removeEventListener("click",R,!0))};return C.useEffect(()=>{document.querySelectorAll("[data-linenumber]:not([data-visual-selector-id])").forEach((q,U)=>{const K=`visual-id-${q.dataset.filename}-${q.dataset.linenumber}-${U}`;q.dataset.visualSelectorId=K});const D=()=>{if(w.current){const q=S(w.current);if(q.length>0){const K=q[0].getBoundingClientRect(),J=window.innerHeight,X=window.innerWidth,ee=K.top<J&&K.bottom>0&&K.left<X&&K.right>
1700,ae={top:K.top,left:K.left,right:K.right,bottom:K.bottom,width:K.width,height:K.height,centerX:K.left+K.width/2,centerY:K.top+K.height/2};window.parent.postMessage({type:"element-position-update",position:ae,isInViewport:ee,visualSelectorId:w.current},"*")}}},Q=q=>{const U=q.data;switch(U.type){case"toggle-visual-edit-mode":V(U.data.enabled);break;case"update-classes":U.data&&U.data.classes!==void 0?O(U.data.visualSelectorId,U.data.classes,U.data.replace||!1):console.warn("[Agent] Invalid update-classes message:",U);break;case"unselect-element":j();break;case"refresh-page":window.location.reload();break;case"update-content":U.data&&U.data.content!==void 0?L(U.data.visualSelectorId,U.data.content):console.warn("[Agent] Invalid update-content message:",U);break;case"request-element-position":if(w.current){const K=S(w.current);if(K.length>0){const X=K[0].getBoundingClientRect(),ee=window.innerHeight,ae=window.innerWidth,$=X.top<ee&&X.bottom>0&&X.left<ae&&X.right>0,se={top:X.top,left:X.left,right:X.right,bottom:X.bottom,width:X.width,height:X.height,centerX:X.left+X.width/2,centerY:X.top+X.height/2};window.parent.postMessage({type:"element-position-update",position:se,isInViewport:$,visualSelectorId:w.current},"*")}}break;case"popover-drag-state":U.data&&U.data.isDragging!==void 0&&(s(U.data.isDragging),l.current=U.data.isDragging,U.data.isDragging&&b());break;case"dropdown-state":U.data&&U.data.isOpen!==void 0&&(c(U.data.isOpen),f.current=U.data.isOpen,U.data.isOpen&&b());break}};return window.addEventListener("message",Q),window.addEventListener("scroll",D,!0),document.addEventListener("scroll",D,!0),window.parent.postMessage({type:"visual-edit-agent-ready"},"*"),()=>{window.removeEventListener("message",Q),window.removeEventListener("scroll",D,!0),document.removeEventListener("scroll",D,!0),document.removeEventListener("mouseover",_),document.removeEventListener("mouseout",P),document.removeEventListener("click",R,!0),b(),p.current.forEach(q=>{q&&q.parentNode&&q.remove()})}},[]),C.useEffect(()=>{n.current=e},[e]),C.useEffect(()=>{l.current=i},[i]),C.useEffect(()=>{f.current=u},[u]),C.useEffect(()=>{const I=()=>{if(w.current){const Q=S(w.current);p.current.forEach((q,U)=>{U<Q.length&&k(q,Q[U])})}g.current.length>0&&h.current.forEach((Q,q)=>{q<g.current.length&&k(Q,g.current[q])})},D=new MutationObserver(Q=>{Q.some(U=>{const K=X=>{if(X.nodeType===Node.ELEMENT_NODE){if(X.dataset&&X.dataset.visualSelectorId)return!0;for(let ee=0;ee<X.children.length;ee++)if(K(X.children[ee]))return!0}return!1};return U.type==="attributes"&&(U.attributeName==="style"||U.attributeName==="class"||U.attributeName==="width"||U.attributeName==="height")&&K(U.target)})&&setTimeout(I,50)});return D.observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["style","class","width","height"]}),window.addEventListener("resize",I),window.addEventListener("scroll",I),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",I),D.disconnect()}},[]),null}var bl=Bx();const a_=wl(bl);/** 171 * @remix-run/router v1.23.0 172 * 173 * Copyright (c) Remix Software Inc. 174 * 175 * This source code is licensed under the MIT license found in the 176 * LICENSE.md file in the root directory of this source tree. 177 * 178 * @license MIT 179 */function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bu.apply(this,arguments)}var fi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(fi||(fi={}));const Ly="popstate";function u_(e){e===void 0&&(e={});function t(i,s){let{pathname:l,search:u,hash:c}=i.location;return Qf("",{pathname:l,search:u,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(i,s){return typeof s=="string"?s:Sw(s)}return d_(t,n,null,e)}function en(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ww(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c_(){return Math.random().toString(36).substr(2,8)}function jy(e,t){return{usr:e.state,key:e.key,idx:t}}function Qf(e,t,n,i){return n===void 0&&(n=null),bu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Iu(t):t,{state:n,key:t&&t.key||i||c_()})}function Sw(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Iu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function d_(e,t,n,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:l=!1}=i,u=s.history,c=fi.Pop,f=null,h=p();h==null&&(h=0,u.replaceState(bu({},u.state,{idx:h}),""));function p(){return(u.state||{idx:null}).idx}function g(){c=fi.Pop;let b=p(),_=b==null?null:b-h;h=b,f&&f({action:c,location:S.location,delta:_})}function w(b,_){c=fi.Push;let P=Qf(S.location,b,_);h=p()+1;let R=jy(P,h),j=S.createHref(P);try{u.pushState(R,"",j)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;s.location.assign(j)}l&&f&&f({action:c,location:S.location,delta:1})}function v(b,_){c=fi.Replace;let P=Qf(S.location,b,_);h=p();let R=jy(P,h),j=S.createHref(P);u.replaceState(R,"",j),l&&f&&f({action:c,location:S.location,delta:0})}function k(b){let _=s.location.origin!=="null"?s.location.origin:s.location.href,P=typeof b=="string"?b:Sw(b);return P=P.replace(/ $/,"%20"),en(_,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,_)}let S={get action(){return c},get location(){return e(s,u)},listen(b){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(Ly,g),f=b,()=>{s.removeEventListener(Ly,g),f=null}},createHref(b){return t(s,b)},createURL:k,encodeLocation(b){let _=k(b);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:v,go(b){return u.go(b)}};return S}var My;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(My||(My={}));function f_(e,t,n){return n===void 0&&(n="/"),h_(e,t,n)}function h_(e,t,n,i){let s=typeof t=="string"?Iu(t):t,l=Ew(s.pathname||"/",n);if(l==null)return null;let u=bw(e);p_(u);let c=null;for(let f=0;c==null&&f<u.length;++f){let h=__(l);c=k_(u[f],h)}return c}function bw(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let s=(l,u,c)=>{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};f.relativePath.startsWith("/")&&(en(f.relativePath.startsWith(i),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+i+'" is not val
179id. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(i.length));let h=Io([i,f.relativePath]),p=n.concat(f);l.children&&l.children.length>0&&(en(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),bw(l.children,t,p,h)),!(l.path==null&&!l.index)&&t.push({path:h,score:S_(h,l.index),routesMeta:p})};return e.forEach((l,u)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))s(l,u);else for(let f of kw(l.path))s(l,u,f)}),t}function kw(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return s?[l,""]:[l];let u=kw(i.join("/")),c=[];return c.push(...u.map(f=>f===""?l:[l,f].join("/"))),s&&c.push(...u),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function p_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:b_(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const m_=/^:[\w-]+$/,g_=3,y_=2,v_=1,x_=10,w_=-2,Dy=e=>e==="*";function S_(e,t){let n=e.split("/"),i=n.length;return n.some(Dy)&&(i+=w_),t&&(i+=y_),n.filter(s=>!Dy(s)).reduce((s,l)=>s+(m_.test(l)?g_:l===""?v_:x_),i)}function b_(e,t){return e.length===t.length&&e.slice(0,-1).every((i,s)=>i===t[s])?e[e.length-1]-t[t.length-1]:0}function k_(e,t,n){let{routesMeta:i}=e,s={},l="/",u=[];for(let c=0;c<i.length;++c){let f=i[c],h=c===i.length-1,p=l==="/"?t:t.slice(l.length)||"/",g=E_({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),w=f.route;if(!g)return null;
vendor: 4,131 bytes, lines 179-188
179Object.assign(s,g.params),u.push({params:s,pathname:Io([l,g.pathname]),pathnameBase:N_(Io([l,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(l=Io([l,g.pathnameBase]))}return u}function E_(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=C_(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let l=s[0],u=l.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:i.reduce((h,p,g)=>{let{paramName:w,isOptional:v}=p;if(w==="*"){let S=c[g]||"";u=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}const k=c[g];return v&&!k?h[w]=void 0:h[w]=(k||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:u,pattern:e}}function C_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ww(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,f)=>(i.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}function __(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ww(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ew(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}const Io=e=>e.join("/").replace(/\/\/+/g,"/"),N_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function R_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Cw=["post","put","patch","delete"];new Set(Cw);const T_=["get",...Cw];new Set(T_);/** 180 * React Router v6.30.1 181 * 182 * Copyright (c) Remix Software Inc. 183 * 184 * This source code is licensed under the MIT license found in the 185 * LICENSE.md file in the root directory of this source tree. 186 * 187 * @license MIT 188 */function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ku.apply(this,arguments)}const P_=C.createContext(null),O_=C.createContext(null),_w=C.createContext(null),Lu=C.createContext(null),ju=C.createContext({outlet:null,matches:[],isDataRoute:!1}),Nw=C.createContext(null);function zh(){return C.useContext(Lu)!=null}function Bh(){return zh()||en(!1),C.useContext(Lu).location}function A_(e,t){return I_(e,t)}function I_(e,t,n,i){zh()||en(!1);let{navigator:s}=C.useContext(_w),{matches:l}=C.useContext(ju),u=l[l.length-1],c=u?u.params:{};u&&u.pathname;let f=u?u.pathnameBase:"/";u&&u.route;let h=Bh(),p;if(t){var g;let b=typeof t=="string"?Iu(t):t;f==="/"||(g=b.pathname)!=null&&g.startsWith(f)||en(!1),p=b}else p=h;let w=p.pathname||"/",v=w;if(f!=="/"){let b=f.replace(/^\//,"").split("/");v="/"+w.replace(/^\//,"").split("/").slice(b.length).join("/")}let k=f_(e,{pathname:v}),S=F_(k&&k.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:Io([f,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?f:Io([f,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),l,n,i);return t&&S?C.createElement(Lu.Provider,{value:{location:ku({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:fi.Pop}},S):S}function L_(){let e=$_(),t=R_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application
188Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:s},n):null,null)}const j_=C.createElement(L_,null);class M_ extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(ju.Provider,{value:this.props.routeContext},C.createElement(Nw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function D_(e){let{routeContext:t,match:n,children:i}=e,s=C.useContext(P_);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(ju.Provider,{value:t},i)}function F_(e,t,n,i){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=i)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,c=(s=n)==null?void 0:s.errors;if(c!=null){let p=u.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);p>=0||en(!1),u=u.slice(0,Math.min(u.length,p+1))}let f=!1,h=-1;if(n&&i&&i.v7_partialHydration)for(let p=0;p<u.length;p++){let g=u[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=p),g.route.id){let{loaderData:w,errors:v}=n,k=g.route.loader&&w[g.route.id]===void 0&&(!v||v[g.route.id]===void 0);if(g.route.lazy||k){f=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((p,g,w)=>{let v,k=!1,S=null,b=null;n&&(v=c&&g.route.id?c[g.route.id]:void 0,S=g.route.errorElement||j_,f&&(h<0&&w===0?(V_("route-fallback"),k=!0,b=null):h===w&&(k=!0,b=g.route.hydrateFallbackElement||null)));let _=t.concat(u.slice(0,w+1)),P=()=>{let R;return v?R=S:k?R=b:g.route.Component?R=C.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=p,C.createElement(D_,{match:g,routeContext:{outlet:p,matches:_,isDataRoute:n!=null},children:R})};return n&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?C.createElement(M_,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:P(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):P()},null)}var Rw=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Rw||{});function z_(e){let t=C.useContext(O_);return t||en(!1),t}function B_(e){let t=C.useContext(ju);return t||en(!1),t}function U_(e){let t=B_(),n=t.matches[t.matches.length-1];return n.route.id||en(!1),n.route.id}function $_(){var e;let t=C.useContext(Nw),n=z_(Rw.UseRouteError),i=U_();return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}const Fy={};function V_(e,t,n){Fy[e]||(Fy[e]=!0)}function H_(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function au(e){en(!1)}function q_(e){let{basename:t="/",children:n=null,location:i,navigationType:s=fi.Pop,navigator:l,static:u=!1,future:c}=e;zh()&&en(!1);let f=t.replace(/^\/*/,"/"),h=C.useMemo(()=>({basename:f,navigator:l,static:u,future:ku({v7_relativeSplatPath:!1},c)}),[f,c,l,u]);typeof i=="string"&&(i=Iu(i));let{pathname:p="/",search:g="",hash:w="",state:v=null,key:k="default"}=i,S=C.useMemo(()=>{let b=Ew(p,f);return b==null?null:{location:{pathname:b,search:g,hash:w,state:v,key:k},navigationType:s}},[f,p,g,w,v,k,s]);return S==null?null:C.createElement(_w.Provider,{value:h},C.createElement(Lu.Provider,{children:n,value:S}))}function W_(e){let{children:t,location:n}=e;return A_(Kf(t),n)}new Promise(()=>{});function Kf(e,t){t===void 0&&(t=[]);let n=[];
188return C.Children.forEach(e,(i,s)=>{if(!C.isValidElement(i))return;let l=[...t,s];if(i.type===C.Fragment){n.push.apply(n,Kf(i.props.children,l));return}i.type!==au&&en(!1),!i.props.index||!i.props.children||en(!1);let u={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=Kf(i.props.children,l)),n.push(u)}),n}/** 189 * React Router DOM v6.30.1 190 * 191 * Copyright (c) Remix Software Inc. 192 * 193 * This source code is licensed under the MIT license found in the 194 * LICENSE.md file in the root directory of this source tree. 195 * 196 * @license MIT 197 */const Q_="6";try{window.__reactRouterVersion=Q_}catch{}const K_="startTransition",zy=Oh[K_];function G_(e){let{basename:t,children:n,future:i,window:s}=e,l=C.useRef();l.current==null&&(l.current=u_({window:s,v5Compat:!0}));let u=l.current,[c,f]=C.useState({action:u.action,location:u.location}),{v7_startTransition:h}=i||{},p=C.useCallback(g=>{h&&zy?zy(()=>f(g)):f(g)},[f,h]);return C.useLayoutEffect(()=>u.listen(p),[u,p]),C.useEffect(()=>H_(i),[i]),C.createElement(q_,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:i})}var By;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(By||(By={}));var Uy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Uy||(Uy={}));function Tw(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y_}=Object.prototype,{getPrototypeOf:Uh}=Object,{iterator:Mu,toStringTag:Pw}=Symbol,Du=(e=>t=>{const n=Y_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Un=e=>(e=e.toLowerCase(),t=>Du(t)===e),Fu=e=>t=>typeof t===e,{isArray:ts}=Array,Yo=Fu("undefined");function kl(e){return e!==null&&!Yo(e)&&e.constructor!==null&&!Yo(e.constructor)&&Xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ow=Un("ArrayBuffer");function X_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ow(e.buffer),t}const J_=Fu("string"),Xt=Fu("function"),Aw=Fu("number"),El=e=>e!==null&&typeof e=="object",Z_=e=>e===!0||e===!1,uu=e=>{if(Du(e)!=="object")return!1;const t=Uh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pw in e)&&!(Mu in e)},eN=e=>{if(!El(e)||kl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},tN=Un("Date"),nN=Un("File"),rN=Un("Blob"),iN=Un("FileList"),oN=e=>El(e)&&Xt(e.pipe),sN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xt(e.append)&&((t=Du(e))==="formdata"||t==="object"&&Xt(e.toString)&&e.toString()==="[object FormData]"))},lN=Un("URLSearchParams"),[aN,uN,cN,dN]=["ReadableStream","Request","Response","Headers"].map(Un),fN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),ts(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{if(kl(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let c;for(i=0;i<u;i++)c=l[i],t.call(null,e[c],c,e)}}function Iw(e,t){if(kl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,s;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const Di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lw=e=>!Yo(e)&&e!==Di;function Gf(){const{caseless:e,skipUndefined:t}=Lw(this)&&this||{},n={},i=(s,l)=>{const u=e&&Iw(n,l)||l;uu(n[u])&&uu(s)?n[u]=Gf(n[u],s):uu(s)?n[u]=Gf({},s):ts(s)?n[u]=s.slice():(!t||!Yo(s))&&(n[u]=s)};for(let s=0,l=arguments.length;s<l;s++)arguments[s]&&Cl(arguments[s],i);return n}const hN=(e,t,n,{allOwnKeys:i}={})=>(Cl(t,(s,l)=>{n&&Xt(s)?e[l]=Tw(s,n):e[l]=s},{allOwnKeys:i}),e),pN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mN=(e,t,n,i)=>
vendor: 1,815 bytes, line 197
197{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gN=(e,t,n,i)=>{let s,l,u;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),l=s.length;l-- >0;)u=s[l],(!i||i(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&Uh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yN=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},vN=e=>{if(!e)return null;if(ts(e))return e;let t=e.length;if(!Aw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Uh(Uint8Array)),wN=(e,t)=>{const i=(e&&e[Mu]).call(e);let s;for(;(s=i.next())&&!s.done;){const l=s.value;t.call(e,l[0],l[1])}},SN=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},bN=Un("HTMLFormElement"),kN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),$y=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),EN=Un("RegExp"),jw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Cl(n,(s,l)=>{let u;(u=t(s,l,e))!==!1&&(i[l]=u||s)}),Object.defineProperties(e,i)},CN=e=>{jw(e,(t,n)=>{if(Xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Xt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},_N=(e,t)=>{const n={},i=s=>{s.forEach(l=>{n[l]=!0})};return ts(e)?i(e):i(String(e).split(t)),n},NN=()=>{},RN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function TN(e){return!!(e&&Xt(e.append)&&e[Pw]==="FormData"&&e[Mu])}const PN=e=>{const t=new Array(10),n=(i,s)=>{if(El(i)){if(t.indexOf(i)>=0)return;if(kl(i))return i;
vendor: 4,537 bytes, line 197
197if(!("toJSON"in i)){t[s]=i;const l=ts(i)?[]:{};return Cl(i,(u,c)=>{const f=n(u,s+1);!Yo(f)&&(l[c]=f)}),t[s]=void 0,l}}return i};return n(e,0)},ON=Un("AsyncFunction"),AN=e=>e&&(El(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),Mw=((e,t)=>e?setImmediate:t?((n,i)=>(Di.addEventListener("message",({source:s,data:l})=>{s===Di&&l===n&&i.length&&i.shift()()},!1),s=>{i.push(s),Di.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xt(Di.postMessage)),IN=typeof queueMicrotask<"u"?queueMicrotask.bind(Di):typeof process<"u"&&process.nextTick||Mw,LN=e=>e!=null&&Xt(e[Mu]),Y={isArray:ts,isArrayBuffer:Ow,isBuffer:kl,isFormData:sN,isArrayBufferView:X_,isString:J_,isNumber:Aw,isBoolean:Z_,isObject:El,isPlainObject:uu,isEmptyObject:eN,isReadableStream:aN,isRequest:uN,isResponse:cN,isHeaders:dN,isUndefined:Yo,isDate:tN,isFile:nN,isBlob:rN,isRegExp:EN,isFunction:Xt,isStream:oN,isURLSearchParams:lN,isTypedArray:xN,isFileList:iN,forEach:Cl,merge:Gf,extend:hN,trim:fN,stripBOM:pN,inherits:mN,toFlatObject:gN,kindOf:Du,kindOfTest:Un,endsWith:yN,toArray:vN,forEachEntry:wN,matchAll:SN,isHTMLForm:bN,hasOwnProperty:$y,hasOwnProp:$y,reduceDescriptors:jw,freezeMethods:CN,toObjectSet:_N,toCamelCase:kN,noop:NN,toFiniteNumber:RN,findKey:Iw,global:Di,isContextDefined:Lw,isSpecCompliantForm:TN,toJSONObject:PN,isAsyncFn:ON,isThenable:AN,setImmediate:Mw,asap:IN,isIterable:LN};function Ae(e,t,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}Y.inherits(Ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const Dw=Ae.prototype,Fw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Fw[e]={value:e}});Object.defineProperties(Ae,Fw);Object.defineProperty(Dw,"isAxiosError",{value:!0});Ae.from=(e,t,n,i,s,l)=>{const u=Object.create(Dw);Y.toFlatObject(e,u,function(p){return p!==Error.prototype},h=>h!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Ae.call(u,c,f,n,i,s),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",l&&Object.assign(u,l),u};const jN=null;function Yf(e){return Y.isPlainObject(e)||Y.isArray(e)}function zw(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function Vy(e,t,n){return e?e.concat(t).map(function(s,l){return s=zw(s),!n&&l?"["+s+"]":s}).join(n?".":""):t}function MN(e){return Y.isArray(e)&&!e.some(Yf)}const DN=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function zu(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,b){return!Y.isUndefined(b[S])});const i=n.metaTokens,s=n.visitor||p,l=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(s))throw new TypeError("visitor must be a function");function h(k){if(k===null)return"";if(Y.isDate(k))return k.toISOString();if(Y.isBoolean(k))return k.toString();if(!f&&Y.isBlob(k))throw new Ae("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(k)||Y.isTypedArray(k)?f&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function p(k,S,b){let _=k;if(k&&!b&&typeof k=="object"){if(Y.endsWith(S,"{}"))S=i?S:S.slice(0,-2),k=JSON.stringify(k);else if(Y.isArray(k)&&MN(k)||(Y.isFileList(k)||Y.endsWith(S,"[]"))&&(_=Y.toArray(k)))return S=zw(S),_.forEach(function(R,j){!(Y.isUndefined(R)||R===null)&&t.append(u===!0?Vy([S],j,l):u===null?S:S+"[]",h(R))}),!1}return Yf(k)?!0:(t.append(Vy(b,S,l),h(k)),!1)}const g=[],w=Object.assign(DN,{defaultVisitor:p,convertValue:h,isVisitable:Yf});function v(k,S){if(!Y.isUndefined(k)){if(g.indexOf(k)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(k),Y.forEach(k,function(_,P){(!(Y.isUndefined(_)||_===null)&&s.call(t,_,Y.isString(P)?P.trim():P,S,w))===!0&&v(_,S?S.concat(P):[P])}),g.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return v(e),t}
vendor: 5,375 bytes, lines 197-198
197function Hy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function $h(e,t){this._pairs=[],e&&zu(e,this,t)}const Bw=$h.prototype;Bw.append=function(t,n){this._pairs.push([t,n])};Bw.toString=function(t){const n=t?function(i){return t.call(this,i,Hy)}:Hy;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function FN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Uw(e,t,n){if(!t)return e;const i=n&&n.encode||FN;Y.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let l;if(s?l=s(t,n):l=Y.isURLSearchParams(t)?t.toString():new $h(t,n).toString(i),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class qy{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(i){i!==null&&t(i)})}}const $w={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zN=typeof URLSearchParams<"u"?URLSearchParams:$h,BN=typeof FormData<"u"?FormData:null,UN=typeof Blob<"u"?Blob:null,$N={isBrowser:!0,classes:{URLSearchParams:zN,FormData:BN,Blob:UN},protocols:["http","https","file","blob","url","data"]},Vh=typeof window<"u"&&typeof document<"u",Xf=typeof navigator=="object"&&navigator||void 0,VN=Vh&&(!Xf||["ReactNative","NativeScript","NS"].indexOf(Xf.product)<0),HN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qN=Vh&&window.location.href||"http://localhost",WN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vh,hasStandardBrowserEnv:VN,hasStandardBrowserWebWorkerEnv:HN,navigator:Xf,origin:qN},Symbol.toStringTag,{value:"Module"})),Lt={...WN,...$N};function QN(e,t){return zu(e,new Lt.classes.URLSearchParams,{visitor:function(n,i,s,l){return Lt.isNode&&Y.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function KN(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function GN(e){const t={},n=Object.keys(e);let i;const s=n.length;let l;for(i=0;i<s;i++)l=n[i],t[l]=e[l];return t}function Vw(e){function t(n,i,s,l){let u=n[l++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),f=l>=n.length;return u=!u&&Y.isArray(s)?s.length:u,f?(Y.hasOwnProp(s,u)?s[u]=[s[u],i]:s[u]=i,!c):((!s[u]||!Y.isObject(s[u]))&&(s[u]=[]),t(n,i,s[u],l)&&Y.isArray(s[u])&&(s[u]=GN(s[u])),!c)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(i,s)=>{t(KN(i),s,n,0)}),n}return null}function YN(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const _l={transitional:$w,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,l=Y.isObject(t);if(l&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return s?JSON.stringify(Vw(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(l){if(i.indexOf("application/x-www-form-urlencoded")>-1)return QN(t,this.formSerializer).toString();if((c=Y.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return zu(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return l||s?(n.setContentType("application/json",!1),YN(t)):t}],transformResponse:[function(t){const n=this.transitional||_l.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(i&&!this.responseType||s)){const u=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(u)throw c.name==="SyntaxError"?Ae.from(c,Ae.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{_l.headers[e]={}});const XN=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JN=e=>{const t={};let n,i,s;return e&&e.split(` 198`).forEach(function(u){s=u.indexOf(":"),n=u.substring(0,s).trim().toLowerCase(),i=u.substring(s+1).trim(),!(!n||t[n]&&XN[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Wy=Symbol("internals");function Ks(e){return e&&String(e).trim().toLowerCase()}function cu(e){return e===!1||e==null?e:Y.isArray(e)?e.map(cu):String(e)}function ZN(e){const t=Object.create(null),n=/([^\s,;
198=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const eR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xd(e,t,n,i,s){if(Y.isFunction(i))return i.call(this,t,n);if(s&&(t=n),!!Y.isString(t)){if(Y.isString(i))return t.indexOf(i)!==-1;if(Y.isRegExp(i))return i.test(t)}}function tR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function nR(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(s,l,u){return this[i].call(this,t,s,l,u)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,n,i){const s=this;function l(c,f,h){const p=Ks(f);if(!p)throw new Error("header name must be a non-empty string");const g=Y.findKey(s,p);(!g||s[g]===void 0||h===!0||h===void 0&&s[g]!==!1)&&(s[g||f]=cu(c))}const u=(c,f)=>Y.forEach(c,(h,p)=>l(h,p,f));if(Y.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(Y.isString(t)&&(t=t.trim())&&!eR(t))u(JN(t),n);else if(Y.isObject(t)&&Y.isIterable(t)){let c={},f,h;for(const p of t){if(!Y.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[h=p[0]]=(f=c[h])?Y.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}u(c,n)}else t!=null&&l(n,t,i);return this}get(t,n){if(t=Ks(t),t){const i=Y.findKey(this,t);if(i){const s=this[i];if(!n)return s;if(n===!0)return ZN(s);if(Y.isFunction(n))return n.call(this,s,i);if(Y.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ks(t),t){const i=Y.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Xd(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let s=!1;function l(u){if(u=Ks(u),u){const c=Y.findKey(i,u);c&&(!n||Xd(i,i[c],c,n))&&(delete i[c],s=!0)}}return Y.isArray(t)?t.forEach(l):l(t),s}clear(t){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const l=n[i];(!t||Xd(this,this[l],l,t,!0))&&(delete this[l],s=!0)}return s}normalize(t){const n=this,i={};return Y.forEach(this,(s,l)=>{const u=Y.findKey(i,l);if(u){n[u]=cu(s),delete n[l];return}const c=t?tR(l):String(l).trim();c!==l&&delete n[l],n[c]=cu(s),i[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=t&&Y.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 199`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[Wy]=this[Wy]={accessors:{}}).accessors,s=this.prototype;function l(u){const c=Ks(u);i[c]||(nR(s,u),i[c]=!0)}return Y.isArray(t)?t.forEach(l):l(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Y.reduceDescriptors(Jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});Y.freezeMethods(Jt);function Jd(e,t){const n=this||_l,i=t||n,s=Jt.from(i.headers);let l=i.data;return Y.forEach(e,function(c){l=c.call(n,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function Hw(e){return!!(e&&e.__CANCEL__)}function ns(e,t,n){Ae.call(this,e??"canceled",Ae.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(ns,Ae,{__CANCEL__:!0});function qw(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function iR(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,l=0,u;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),p=i[l];u||(u=h),n[s]=f,i[s]=h;let g=l,w=0;for(;g!==s;)w+=n[g++],g=g%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),h-u<t)return;const v=p&&h-p;return v?Math.round(w*1e3/v):void 0}}function oR(e,t){let n=0,i=1e3/t,s,l;const u=(h,p=Date.now())=>{n=p,s=null,l&&(clearTimeout(l),l=null),e(...h)};return[(...h)=>{const p=Date.now(),g=p-n;g>=i?u(h,p):(s=h,l||(l=setTimeout(()=>{l=null,u(s)},i-g)))},()=>s&&u(s)]}const Eu=(e,t,n=3)=>{let i=0;const s=iR(50,250);return oR(l=>{const u=l.loaded,c=l.lengthComputable?l.total:void 0,f=u-i,h=s(f),p=u<=c;i=u;const g={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:h||void 0,estimated:h&&c&&p?(c-u)/h:void 0,event:l,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},Qy=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Ky=e=>(...t)=>Y.asap(()=>e(...t)),sR=Lt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Lt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Lt.origin),Lt.navigator&&/(msie|trident)/i.test(Lt.navigator.userAgent)):()=>!0,lR=Lt.hasStandardBrowserEnv?{write(e,t,n,i,s,l){const u=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Y.isString(i)&&u.push("path="+i),Y.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ww(e,t,n){let i=!aR(t);return e&&(i||n==!1)?uR(e,t):t}const Gy=e=>e instanceof Jt?{...e}:e;
vendor: 4,171 bytes, line 199
199function Gi(e,t){t=t||{};const n={};function i(h,p,g,w){return Y.isPlainObject(h)&&Y.isPlainObject(p)?Y.merge.call({caseless:w},h,p):Y.isPlainObject(p)?Y.merge({},p):Y.isArray(p)?p.slice():p}function s(h,p,g,w){if(Y.isUndefined(p)){if(!Y.isUndefined(h))return i(void 0,h,g,w)}else return i(h,p,g,w)}function l(h,p){if(!Y.isUndefined(p))return i(void 0,p)}function u(h,p){if(Y.isUndefined(p)){if(!Y.isUndefined(h))return i(void 0,h)}else return i(void 0,p)}function c(h,p,g){if(g in t)return i(h,p);if(g in e)return i(void 0,h)}const f={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(h,p,g)=>s(Gy(h),Gy(p),g,!0)};return Y.forEach(Object.keys({...e,...t}),function(p){const g=f[p]||s,w=g(e[p],t[p],p);Y.isUndefined(w)&&g!==c||(n[p]=w)}),n}const Qw=e=>{const t=Gi({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:l,headers:u,auth:c}=t;if(t.headers=u=Jt.from(u),t.url=Uw(Ww(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Y.isFormData(n)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(Y.isFunction(n.getHeaders)){const f=n.getHeaders(),h=["content-type","content-length"];Object.entries(f).forEach(([p,g])=>{h.includes(p.toLowerCase())&&u.set(p,g)})}}if(Lt.hasStandardBrowserEnv&&(i&&Y.isFunction(i)&&(i=i(t)),i||i!==!1&&sR(t.url))){const f=s&&l&&lR.read(l);f&&u.set(s,f)}return t},cR=typeof XMLHttpRequest<"u",dR=cR&&function(e){return new Promise(function(n,i){const s=Qw(e);let l=s.data;const u=Jt.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:h}=s,p,g,w,v,k;function S(){v&&v(),k&&k(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function _(){if(!b)return;const R=Jt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:R,config:e,request:b};qw(function(V){n(V),S()},function(V){i(V),S()},O),b=null}"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(_)},b.onabort=function(){b&&(i(new Ae("Request aborted",Ae.ECONNABORTED,e,b)),b=null)},b.onerror=function(j){const O=j&&j.message?j.message:"Network Error",L=new Ae(O,Ae.ERR_NETWORK,e,b);L.event=j||null,i(L),b=null},b.ontimeout=function(){let j=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||$w;s.timeoutErrorMessage&&(j=s.timeoutErrorMessage),i(new Ae(j,O.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,e,b)),b=null},l===void 0&&u.setContentType(null),"setRequestHeader"in b&&Y.forEach(u.toJSON(),function(j,O){b.setRequestHeader(O,j)}),Y.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),c&&c!=="json"&&(b.responseType=s.responseType),h&&([w,k]=Eu(h,!0),b.addEventListener("progress",w)),f&&b.upload&&([g,v]=Eu(f),b.upload.addEventListener("progress",g),b.upload.addEventListener("loadend",v)),(s.cancelToken||s.signal)&&(p=R=>{b&&(i(!R||R.type?new ns(null,e,b):R),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const P=rR(s.url);if(P&&Lt.protocols.indexOf(P)===-1){i(new Ae("Unsupported protocol "+P+":",Ae.ERR_BAD_REQUEST,e));return}b.send(l||null)})},fR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,s;const l=function(h){if(!s){s=!0,c();const p=h instanceof Error?h:this.reason;i.abort(p instanceof Ae?p:new ns(p instanceof Error?p.message:p)
vendor: 4,209 bytes, line 199
199)}};let u=t&&setTimeout(()=>{u=null,l(new Ae(`timeout ${t} of ms exceeded`,Ae.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(l):h.removeEventListener("abort",l)}),e=null)};e.forEach(h=>h.addEventListener("abort",l));const{signal:f}=i;return f.unsubscribe=()=>Y.asap(c),f}},hR=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,s;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},pR=async function*(e,t){for await(const n of mR(e))yield*hR(n,t)},mR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},Yy=(e,t,n,i)=>{const s=pR(e,t);let l=0,u,c=f=>{u||(u=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:h,value:p}=await s.next();if(h){c(),f.close();return}let g=p.byteLength;if(n){let w=l+=g;n(w)}f.enqueue(new Uint8Array(p))}catch(h){throw c(h),h}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Xy=64*1024,{isFunction:Ka}=Y,gR=(({Request:e,Response:t})=>({Request:e,Response:t}))(Y.global),{ReadableStream:Jy,TextEncoder:Zy}=Y.global,ev=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yR=e=>{e=Y.merge.call({skipUndefined:!0},gR,e);const{fetch:t,Request:n,Response:i}=e,s=t?Ka(t):typeof fetch=="function",l=Ka(n),u=Ka(i);if(!s)return!1;const c=s&&Ka(Jy),f=s&&(typeof Zy=="function"?(k=>S=>k.encode(S))(new Zy):async k=>new Uint8Array(await new n(k).arrayBuffer())),h=l&&c&&ev(()=>{let k=!1;const S=new n(Lt.origin,{body:new Jy,method:"POST",get duplex(){return k=!0,"half"}}).headers.has("Content-Type");return k&&!S}),p=u&&c&&ev(()=>Y.isReadableStream(new i("").body)),g={stream:p&&(k=>k.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!g[k]&&(g[k]=(S,b)=>{let _=S&&S[k];if(_)return _.call(S);throw new Ae(`Response type '${k}' is not supported`,Ae.ERR_NOT_SUPPORT,b)})});const w=async k=>{if(k==null)return 0;if(Y.isBlob(k))return k.size;if(Y.isSpecCompliantForm(k))return(await new n(Lt.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(k)||Y.isArrayBuffer(k))return k.byteLength;if(Y.isURLSearchParams(k)&&(k=k+""),Y.isString(k))return(await f(k)).byteLength},v=async(k,S)=>{const b=Y.toFiniteNumber(k.getContentLength());return b??w(S)};return async k=>{let{url:S,method:b,data:_,signal:P,cancelToken:R,timeout:j,onDownloadProgress:O,onUploadProgress:L,responseType:V,headers:I,withCredentials:D="same-origin",fetchOptions:Q}=Qw(k),q=t||fetch;V=V?(V+"").toLowerCase():"text";let U=fR([P,R&&R.toAbortSignal()],j),K=null;const J=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let X;try{if(L&&h&&b!=="get"&&b!=="head"&&(X=await v(I,_))!==0){let F=new n(S,{method:"POST",body:_,duplex:"half"}),Z;if(Y.isFormData(_)&&(Z=F.headers.get("content-type"))&&I.setContentType(Z),F.body){const[T,de]=Qy(X,Eu(Ky(L)));_=Yy(F.body,Xy,T,de)}}Y.isString(D)||(D=D?"include":"omit");const ee=l&&"credentials"in n.prototype,ae={...Q,signal:U,method:b.toUpperCase(),headers:I.normalize().toJSON(),body:_,duplex:"half",credentials:ee?D:void 0};K=l&&new n(S,ae);let $=await(l?q(K,Q):q(S,ae));const se=p&&(V==="stream"||V==="response");if(p&&(O||se&&J)){const F={};["status","statusText","headers"].forEach(be=>{F[be]=$[be]});const Z=Y.toFiniteNumber($.headers.get("content-length")),[T,de]=O&&Qy(Z,Eu(Ky(O),!0))||[];$=new i(Yy($.body,Xy,T,()=>{de&&de(),J&&J()}),F)}V=V||"text";let N=await g[Y.findKey(g,V)||"text"]($,k);return!se&&J&&J(),await new Promise((F,Z)=>{qw(F,Z,{data:N,headers:Jt.from($.headers),status:$.status,statusText:$.statusText,config:k,request:K})})}catch(ee){throw J&&J(),ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new Ae("Network Error",Ae.ERR_NETWORK,k,K),{cause:ee.cause||ee}):Ae.from(ee,ee&&ee.code,k,K)}}},vR=new Map,Kw=e=>{let t=e?e.env:{};const{fetch:n,Request:i,Response:s}=t,l=[i,s,n];let u=l.length,c=u,f,h,p=vR;for(;c--;)f=l[c],h=p.get(f),h===void 0&&p.set(f,h=c?new Map:yR(t)),p=h;return h};Kw();const Jf={http:jN,xhr:dR,fetch:{get:Kw}};Y.forEach(Jf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tv=e=>`- ${e}`,xR=e=>
vendor: 5,341 bytes, lines 199-202
199Y.isFunction(e)||e===null||e===!1,Gw={getAdapter:(e,t)=>{e=Y.isArray(e)?e:[e];const{length:n}=e;let i,s;const l={};for(let u=0;u<n;u++){i=e[u];let c;if(s=i,!xR(i)&&(s=Jf[(c=String(i)).toLowerCase()],s===void 0))throw new Ae(`Unknown adapter '${c}'`);if(s&&(Y.isFunction(s)||(s=s.get(t))))break;l[c||"#"+u]=s}if(!s){const u=Object.entries(l).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?u.length>1?`since : 200`+u.map(tv).join(` 201`):" "+tv(u[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Jf};function Zd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ns(null,e)}function nv(e){return Zd(e),e.headers=Jt.from(e.headers),e.data=Jd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gw.getAdapter(e.adapter||_l.adapter,e)(e).then(function(i){return Zd(e),i.data=Jd.call(e,e.transformResponse,i),i.headers=Jt.from(i.headers),i},function(i){return Hw(i)||(Zd(e),i&&i.response&&(i.response.data=Jd.call(e,e.transformResponse,i.response),i.response.headers=Jt.from(i.response.headers))),Promise.reject(i)})}const Yw="1.12.2",Bu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const rv={};Bu.transitional=function(t,n,i){function s(l,u){return"[Axios v"+Yw+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,c)=>{if(t===!1)throw new Ae(s(u," has been removed"+(n?" in "+n:"")),Ae.ERR_DEPRECATED);return n&&!rv[u]&&(rv[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,u,c):!0}};Bu.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function wR(e,t,n){if(typeof e!="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const l=i[s],u=t[l];if(u){const c=e[l],f=c===void 0||u(c,l,e);if(f!==!0)throw new Ae("option "+l+" must be "+f,Ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ae("Unknown option "+l,Ae.ERR_BAD_OPTION)}}const du={assertOptions:wR,validators:Bu},Kn=du.validators;let Qi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qy,response:new qy}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?l&&!String(i.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(i.stack+=` 202`+l):i.stack=l}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gi(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:l}=n;i!==void 0&&du.assertOptions(i,{silentJSONParsing:Kn.transitional(Kn.boolean),forcedJSONParsing:Kn.transitional(Kn.boolean),clarifyTimeoutError:Kn.transitional(Kn.boolean)},!1),s!=null&&(Y.isFunction(s)?n.paramsSerializer={serialize:s}:du.assertOptions(s,{encode:Kn.function,serialize:Kn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),du.assertOptions(n,{baseUrl:Kn.spelling("baseURL"),withXsrfToken:Kn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&Y.merge(l.common,l[n.method]);l&&Y.forEach(["delete","get","head","post","put","patch","common"],k=>{delete l[k]}),n.headers=Jt.concat(u,l);const c=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(f=f&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const h=[];this.interceptors.response.forEach(function(S){h.push(S.fulfilled,S.rejected)});let p,g=0,w;if(!f){const k=[nv.bind(this),void 0];for(k.unshift(...c),k.push(...h),w=k.length,p=Promise.resolve(n);g<w;)p=p.then(k[g++],k[g++]);return p}w=c.length;let v=n;for(;g<w;){const k=c[g++],S=c[g++];try{v=k(v)}catch(b){S.call(this,b);break}}try{p=nv.call(this,v)}catch(k){return Promise.reject(k)}for(g=0,w=h.length;g<w;)p=p.then(h[g++],h[g++]);return p}getUri(t){t=Gi(this.defaults,t);const n=Ww(t.baseURL,t.url,t.allowAbsoluteUrls);return Uw(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Qi.prototype[t]=function(n,i){return this.request(Gi(i||{},{method:t,url:n,data:(i||{}).data}))}});Y.forEach(["post","put","patch"],function(t){function n(i){return function(l,u,c){return this.request(Gi(c||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}Qi.prototype[t]=n(),Qi.prototype[t+"Form"]=n(!0)});let SR=class Xw{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(s=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](s);i._listeners=null}),this.promise.then=s=>{let l;const u=new Promise(c=>{i.subscribe(c),l=c}).then(s);return u.cancel=function(){i.unsubscribe(l)},u},t(function(l,u,c){i.reason||(i.reason=new ns(l,u,c),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
202subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Xw(function(s){t=s}),cancel:t}}};function bR(e){return function(n){return e.apply(null,n)}}function kR(e){return Y.isObject(e)&&e.isAxiosError===!0}const Zf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zf).forEach(([e,t])=>{Zf[t]=e});function Jw(e){const t=new Qi(e),n=Tw(Qi.prototype.request,t);return Y.extend(n,Qi.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Jw(Gi(e,s))},n}const ut=Jw(_l);ut.Axios=Qi;ut.CanceledError=ns;ut.CancelToken=SR;ut.isCancel=Hw;ut.VERSION=Yw;ut.toFormData=zu;ut.AxiosError=Ae;ut.Cancel=ut.CanceledError;ut.all=function(t){return Promise.all(t)};ut.spread=bR;ut.isAxiosError=kR;ut.mergeConfig=Gi;ut.AxiosHeaders=Jt;ut.formToJSON=e=>Vw(Y.isHTMLForm(e)?new FormData(e):e);ut.getAdapter=Gw.getAdapter;ut.HttpStatusCode=Zf;ut.default=ut;const{Axios:mD,AxiosError:gD,CanceledError:yD,isCancel:vD,CancelToken:xD,VERSION:wD,all:SD,Cancel:bD,isAxiosError:kD,spread:ED,toFormData:CD,AxiosHeaders:_D,HttpStatusCode:ND,formToJSON:RD,getAdapter:TD,mergeConfig:PD}=ut,ER=typeof window>"u",iv=!ER&&window.self!==window.top,_t=[];for(let e=0;e<256;++e)_t.push((e+256).toString(16).slice(1));function CR(e,t=0){return(_t[e[t+0]]+_t[e[t+1]]+_t[e[t+2]]+_t[e[t+3]]+"-"+_t[e[t+4]]+_t[e[t+5]]+"-"+_t[e[t+6]]+_t[e[t+7]]+"-"+_t[e[t+8]]+_t[e[t+9]]+"-"+_t[e[t+10]]+_t[e[t+11]]+_t[e[t+12]]+_t[e[t+13]]+_t[e[t+14]]+_t[e[t+15]]).toLowerCase()}let ef;const _R=new Uint8Array(16);function NR(){if(!ef){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ef=crypto.getRandomValues.bind(crypto)}return ef(_R)}const RR=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ov={randomUUID:RR};function TR(e,t,n){var s;e=e||{};const i=e.random??((s=e.rng)==null?void 0:s.call(e))??NR();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,CR(i)}function PR(e,t,n){return ov.randomUUID&&!e?ov.randomUUID():TR(e)}class OR extends Error{constructor(t,n,i,s,l){super(t),this.name="Base44Error",this.status=n,this.code=i,this.data=s,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function nl({baseURL:e,headers:t={},token:n,interceptResponses:i=!0,onError:s}){const l=ut.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(u=>{typeof window<"u"&&u.headers.set("X-Origin-URL",window.location.href);const c=PR();if(u.requestId=c,iv)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:e+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),i&&l.interceptors.response.use(u=>{var c;const f=(c=u.config)===null||c===void 0?void 0:c.requestId;try{iv&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var c,f,h,p,g,w,v,k;const S=((f=(c=u.response)===null||c===void 0?void 0:c.data)===null||f===void 0?void 0:f.message)||((p=(h=u.response)===null||h===void 0?void 0:h.data)===null||p===void 0?void 0:p.detail)||u.message,b=new OR(S,(g=u.response)===null||g===void 0?void 0:g.status,(v=(w=u.response)===null||w===void 0?void 0:w.data)===null||v===void 0?void 0:v.code,(k=u.response)===null||k===void 0?void 0:k.data,u);return s==null||s(b),Promise.reject(b)}),l}function sv(e,t){return new Proxy({}
202,{get(n,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return AR(e,t,i)}})}function AR(e,t,n){const i=`/apps/${t}/entities/${n}`;return{async list(s,l,u,c){const f={};return s&&(f.sort=s),l&&(f.limit=l),u&&(f.skip=u),c&&(f.fields=Array.isArray(c)?c.join(","):c),e.get(i,{params:f})},async filter(s,l,u,c,f){const h={q:JSON.stringify(s)};return l&&(h.sort=l),u&&(h.limit=u),c&&(h.skip=c),f&&(h.fields=Array.isArray(f)?f.join(","):f),e.get(i,{params:h})},async get(s){return e.get(`${i}/${s}`)},async create(s){return e.post(i,s)},async update(s,l){return e.put(`${i}/${s}`,l)},async delete(s){return e.delete(`${i}/${s}`)},async deleteMany(s){return e.delete(i,{data:s})},async bulkCreate(s){return e.post(`${i}/bulk`,s)},async importEntities(s){const l=new FormData;return l.append("file",s,s.name),e.post(`${i}/import`,l,{headers:{"Content-Type":"multipart/form-data"}})}}}function lv(e,t){return new Proxy({},{get(n,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return new Proxy({},{get(s,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return async u=>{if(typeof u=="string")throw new Error(`Integration ${l} must receive an object with named parameters, received: ${u}`);let c,f;return u instanceof FormData||u&&Object.values(u).some(h=>h instanceof File)?(c=new FormData,Object.keys(u).forEach(h=>{u[h]instanceof File?c.append(h,u[h],u[h].name):typeof u[h]=="object"&&u[h]!==null?c.append(h,JSON.stringify(u[h])):c.append(h,u[h])}),f="multipart/form-data"):(c=u,f="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${l}`,c||u,{headers:{"Content-Type":f}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${l}`,c||u,{headers:{"Content-Type":f}})}}})}})}function IR(e,t,n,i){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(s){return e.put(`/apps/${n}/entities/User/me`,s)},redirectToLogin(s){var l;if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const u=s?new URL(s,window.location.origin).toString():window.location.href,c=`${(l=i.appBaseUrl)!==null&&l!==void 0?l:""}/login?from_url=${encodeURIComponent(u)}`;window.location.href=c},logout(s){if(delete e.defaults.headers.common.Authorization,typeof window<"u"&&window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(l){console.error("Failed to remove token from localStorage:",l)}typeof window<"u"&&(s?window.location.href=s:window.location.reload())},setToken(s,l=!0){if(s&&(e.defaults.headers.common.Authorization=`Bearer ${s}`,t.defaults.headers.common.Authorization=`Bearer ${s}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",s),window.localStorage.setItem("token",s)}catch(u){console.error("Failed to save token to localStorage:",u)}},async loginViaEmailPassword(s,l,u){var c;try{const f=await e.post(`/apps/${n}/auth/login`,{email:s,password:l,...u&&{turnstile_token:u}}),{access_token:h,user:p}=f;return h&&this.setToken(h),{access_token:h,user:p}}catch(f){throw((c=f.response)===null||c===void 0?void 0:c.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(s,l){return e.post(`/apps/${n}/users/invite-user`,{user_email:s,role:l})},register(s){return e.post(`/apps/${n}/auth/register`,s)},verifyOtp({email:s,otpCode:l}){return e.post(`/apps/${n}/auth/verify-otp`,{email:s,otp_code:l})},resendOtp(s){return e.post(`/apps/${n}/auth/resend-otp`,{email:s})},resetPasswordRequest(s){return e.post(`/apps/${n}/auth/reset-password-request`,{email:s})},resetPassword({resetToken:s,newPassword:l}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:s,new_password:l})},changePassword({userId:s,currentPassword:l,newPassword:u}){return e.post(`/apps/${n}/auth/change-password`,{user_id:s,current_password:l,new_password:u})}}}function LR(e,t,n){return{async getAccessToken(i){const s=`/apps/${t}/auth/sso/accesstoken/${i}`,l={};return n&&(l["on-behalf-of"]=`Bearer ${n}`),e.get(s,{headers:l})}}}
202function jR(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token}}}function Hh(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:i=!0,removeFromUrl:s=!0}=e;let l=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(l=u.get(n),l){if(i&&MR(l,{storageKey:t}),s){u.delete(n);const c=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}return l}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(u){console.error("Error retrieving token from localStorage:",u)}return null}function MR(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(i){return console.error("Error saving token to localStorage:",i),!1}}function av(e,t){return{async invoke(n,i){if(typeof i=="string")throw new Error(`Function ${n} must receive an object with named parameters, received: ${i}`);let s,l;return i instanceof FormData||i&&Object.values(i).some(u=>
vendor: 12,730 bytes, line 202
202u instanceof File)?(s=new FormData,Object.keys(i).forEach(u=>{i[u]instanceof File?s.append(u,i[u],i[u].name):typeof i[u]=="object"&&i[u]!==null?s.append(u,JSON.stringify(i[u])):s.append(u,i[u])}),l="multipart/form-data"):(s=i,l="application/json"),e.post(`/apps/${t}/functions/${n}`,s||i,{headers:{"Content-Type":l}})}}}function uv({axios:e,socket:t,appId:n,serverUrl:i,token:s}){const l=`/apps/${n}/agents`;return{getConversations:()=>e.get(`${l}/conversations`),getConversation:v=>e.get(`${l}/conversations/${v}`),listConversations:v=>e.get(`${l}/conversations`,{params:v}),createConversation:v=>e.post(`${l}/conversations`,v),addMessage:async(v,k)=>{const S=`/agent-conversations/${v.id}`;return await t.updateModel(S,{...v,messages:[...v.messages||[],k]}),e.post(`${l}/conversations/${v.id}/messages`,k)},subscribeToConversation:(v,k)=>{const S=`/agent-conversations/${v}`;return t.subscribeToRoom(S,{connect:()=>{},update_model:({data:b})=>{const _=JSON.parse(b);k==null||k(_)}})},getWhatsAppConnectURL:v=>{const k=`${i}/api/apps/${n}/agents/${encodeURIComponent(v)}/whatsapp`,S=s??Hh();return S?`${k}?token=${S}`:k}}}function cv(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(i){await e.post(`${n}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await e.get(n,{params:i})},async getStats(i={}){return await e.get(`${n}/stats`,{params:i})}}}const ir=Object.create(null);ir.open="0";ir.close="1";ir.ping="2";ir.pong="3";ir.message="4";ir.upgrade="5";ir.noop="6";const fu=Object.create(null);Object.keys(ir).forEach(e=>{fu[ir[e]]=e});const eh={type:"error",data:"parser error"},Zw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",e0=typeof ArrayBuffer=="function",t0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,qh=({type:e,data:t},n,i)=>Zw&&t instanceof Blob?n?i(t):dv(t,i):e0&&(t instanceof ArrayBuffer||t0(t))?n?i(t):dv(new Blob([t]),i):i(ir[e]+(t||"")),dv=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+(i||""))},n.readAsDataURL(e)};function fv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let tf;function DR(e,t){if(Zw&&e.data instanceof Blob)return e.data.arrayBuffer().then(fv).then(t);if(e0&&(e.data instanceof ArrayBuffer||t0(e.data)))return t(fv(e.data));qh(e,!1,n=>{tf||(tf=new TextEncoder),t(tf.encode(n))})}const hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<hv.length;e++)rl[hv.charCodeAt(e)]=e;const FR=e=>{let t=e.length*.75,n=e.length,i,s=0,l,u,c,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),p=new Uint8Array(h);for(i=0;i<n;i+=4)l=rl[e.charCodeAt(i)],u=rl[e.charCodeAt(i+1)],c=rl[e.charCodeAt(i+2)],f=rl[e.charCodeAt(i+3)],p[s++]=l<<2|u>>4,p[s++]=(u&15)<<4|c>>2,p[s++]=(c&3)<<6|f&63;return h},zR=typeof ArrayBuffer=="function",Wh=(e,t)=>{if(typeof e!="string")return{type:"message",data:n0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:BR(e.substring(1),t)}:fu[n]?e.length>1?{type:fu[n],data:e.substring(1)}:{type:fu[n]}:eh},BR=(e,t)=>{if(zR){const n=FR(e);return n0(n,t)}else return{base64:!0,data:e}},n0=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},r0="�",UR=(e,t)=>{const n=e.length,i=new Array(n);let s=0;e.forEach((l,u)=>{qh(l,!1,c=>{i[u]=c,++s===n&&t(i.join(r0))})})},$R=(e,t)=>{const n=e.split(r0),i=[];for(let s=0;s<n.length;s++){const l=Wh(n[s],t);if(i.push(l),l.type==="error")break}return i};function VR(){return new TransformStream({transform(e,t){DR(e,n=>{const i=n.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const l=new DataView(s.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{s=new Uint8Array(9);const l=new DataView(s.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(s[0]|=128),t.enqueue(s),t.enqueue(n)})}})}let nf;function Ga(e){return e.reduce((t,n)=>t+n.length,0)}function Ya(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let i=0;for(let s=0;s<t;s++)n[s]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),n}function HR(e,t){nf||(nf=new TextDecoder);const n=[];let i=0,s=-1,l=!1;return new TransformStream({transform(u,c){for(n.push(u);;){if(i===0){if(Ga(n)<1)break;const f=Ya(n,1);l=(f[0]&128)===128,s=f[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(Ga(n)<2)break;const f=Ya(n,2);s=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),i=3}else if(i===2){if(Ga(n)<8)break;const f=Ya(n,8),h=new DataView(f.buffer,f.byteOffset,f.length),p=h.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(eh);break}s=p*Math.pow(2,32)+h.getUint32(4),i=3}else{if(Ga(n)<s)break;const f=Ya(n,s);c.enqueue(Wh(l?f:nf.decode(f),t)),i=0}if(s===0||s>e){c.enqueue(eh);break}}}})}const i0=4;function ht(e){if(e)return qR(e)}function qR(e){for(var t in ht.prototype)e[t]=ht.prototype[t];return e}ht.prototype.on=ht.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ht.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ht.prototype.off=ht.prototype.removeListener=ht.prototype.removeAllListeners=ht.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,s=0;s<n.length;s++)if(i=n[s],i===t||i.fn===t){n.splice(s,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ht.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,s=n.length;i<s;++i)n[i].apply(this,t)}return this};ht.prototype.emitReserved=ht.prototype.emit;ht.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ht.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Uu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),kn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),WR="arraybuffer";function o0(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const QR=kn.setTimeout,KR=kn.clearTimeout;function $u(e,t){t.useNativeTimers?(e.setTimeoutFn=QR.bind(kn),e.clearTimeoutFn=KR.bind(kn)):(e.setTimeoutFn=kn.setTimeout.bind(kn),e.clearTimeoutFn=kn.clearTimeout.bind(kn))}const GR=1.33;function YR(e){return typeof e=="string"?XR(e):Math.ceil((e.byteLength||e.size)*GR)}function XR(e){let t=0,n=0;for(let i=0,s=e.length;i<s;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}function s0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function JR(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function ZR(e){let t={},n=e.split("&");for(let i=0,s=n.length;i<s;i++){let l=n[i].split("=");t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class eT extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class Qh extends ht{constructor(t){super(),this.writable=!1,$u(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,i){return super.emitReserved("error",new eT(t,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Wh(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=JR(t);return n.length?"?"+n:""}}class tT extends Qh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};$R(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,UR(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=s0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let l0=!1;try{l0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const nT=l0;function rT(){}class iT extends tT{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(s,l)=>{this.onError("xhr post error",s,l)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}class nr extends ht{constructor(t,n,i){super(),this.createRequest=t,$u(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;const n=o0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=nr.requestsCount++,nr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=rT,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete nr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}nr.requestsCount=0;nr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",pv);else if(typeof addEventListener=="function"){const e="onpagehide"in kn?"pagehide":"unload";addEventListener(e,pv,!1)}}function pv(){for(let e in nr.requests)nr.requests.hasOwnProperty(e)&&nr.requests[e].abort()}
vendor: 4,370 bytes, line 202
202const oT=(function(){const e=a0({xdomain:!1});return e&&e.responseType!==null})();class sT extends iT{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=oT&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new nr(a0,this.uri(),t)}}function a0(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||nT))return new XMLHttpRequest}catch{}if(!t)try{return new kn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const u0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class lT extends Qh{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,i=u0?{}:o0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],s=n===t.length-1;qh(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}s&&Uu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=s0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const rf=kn.WebSocket||kn.MozWebSocket;class aT extends lT{createSocket(t,n,i){return u0?new rf(t,n,i):n?new rf(t,n):new rf(t)}doWrite(t,n){this.ws.send(n)}}class uT extends Qh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=HR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=t.readable.pipeThrough(n).getReader(),s=VR();s.readable.pipeTo(t.writable),this._writer=s.writable.getWriter();const l=()=>{i.read().then(({done:c,value:f})=>{c||(this.onPacket(f),l())}).catch(c=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],s=n===t.length-1;this._writer.write(i).then(()=>{s&&Uu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const cT={websocket:aT,webtransport:uT,polling:sT},dT=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,fT=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function th(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let s=dT.exec(e||""),l={},u=14;for(;u--;)l[fT[u]]=s[u]||"";return n!=-1&&i!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=hT(l,l.path),l.queryKey=pT(l,l.query),l}function hT(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function pT(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,l){s&&(n[s]=l)}),n}const nh=typeof addEventListener=="function"&&typeof removeEventListener=="function",hu=[];nh&&addEventListener("offline",()=>
vendor: 24,259 bytes, line 202
202{hu.forEach(e=>e())},!1);class pi extends ht{constructor(t,n){if(super(),this.binaryType=WR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const i=th(t);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=th(n.host).host);$u(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const s=i.prototype.name;this.transports.push(s),this._transportsByName[s]=i}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ZR(this.opts.query)),nh&&(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"})},hu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=i0,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&pi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",pi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(n+=YR(s)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Uu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,i){return this._sendPacket("message",t,n,i),this}send(t,n,i){return this._sendPacket("message",t,n,i),this}_sendPacket(t,n,i,s){if(typeof n=="function"&&(s=n,n=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:t,data:n,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(pi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){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(),nh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=hu.indexOf(this._offlineEventListener);i!==-1&&hu.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}pi.protocol=i0;class mT extends pi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),i=!1;pi.priorWebsocketSuccess=!1;const s=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!i)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;pi.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,p(),n.close(),n=null)}const u=g=>{const w=new Error("probe error: "+g);w.transport=n.name,l(),this.emitReserved("upgradeError",w)};function c(){u("transport closed")}function f(){u("socket closed")}function h(g){n&&g.name!==n.name&&l()}const p=()=>{n.removeListener("open",s),n.removeListener("error",u),n.removeListener("close",c),this.off("close",f),this.off("upgrading",h)};n.once("open",s),n.once("error",u),n.once("close",c),this.once("close",f),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}let gT=class extends mT{constructor(t,n={}){const i=typeof t=="object"?t:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>cT[s]).filter(s=>!!s)),super(t,i)}};function yT(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=th(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+t,i.href=i.protocol+"://"+l+(n&&n.port===i.port?"":":"+i.port),i}const vT=typeof ArrayBuffer=="function",xT=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,c0=Object.prototype.toString,wT=typeof Blob=="function"||typeof Blob<"u"&&c0.call(Blob)==="[object BlobConstructor]",ST=typeof File=="function"||typeof File<"u"&&c0.call(File)==="[object FileConstructor]";function Kh(e){return vT&&(e instanceof ArrayBuffer||xT(e))||wT&&e instanceof Blob||ST&&e instanceof File}function pu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(pu(e[n]))return!0;return!1}if(Kh(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return pu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&pu(e[n]))return!0;return!1}function bT(e){const t=[],n=e.data,i=e;return i.data=rh(n,t),i.attachments=t.length,{packet:i,buffers:t}}function rh(e,t){if(!e)return e;if(Kh(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=rh(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=rh(e[i],t));return n}return e}function kT(e,t){return e.data=ih(e.data,t),delete e.attachments,e}function ih(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=ih(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=ih(e[n],t));return e}const ET=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],CT=5;var Be;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Be||(Be={}));class _T{constructor(t){this.replacer=t}encode(t){return(t.type===Be.EVENT||t.type===Be.ACK)&&pu(t)?this.encodeAsBinary({type:t.type===Be.EVENT?Be.BINARY_EVENT:Be.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Be.BINARY_EVENT||t.type===Be.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=bT(t),i=this.encodeAsString(n.packet),s=n.buffers;return s.unshift(i),s}}function mv(e){return Object.prototype.toString.call(e)==="[object Object]"}class Gh extends ht{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const i=n.type===Be.BINARY_EVENT;i||n.type===Be.BINARY_ACK?(n.type=i?Be.EVENT:Be.ACK,this.reconstructor=new NT(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Kh(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(Be[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Be.BINARY_EVENT||i.type===Be.BINARY_ACK){const l=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(l,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(t.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(l,n)}else i.nsp="/";const s=t.charAt(n+1);if(s!==""&&Number(s)==s){const l=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}i.id=Number(t.substring(l,n+1))}if(t.charAt(++n)){const l=this.tryParse(t.substr(n));if(Gh.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Be.CONNECT:return mv(n);case Be.DISCONNECT:return n===void 0;case Be.CONNECT_ERROR:return typeof n=="string"||mv(n);case Be.EVENT:case Be.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&ET.indexOf(n[0])===-1);case Be.ACK:case Be.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class NT{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=kT(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const RT=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Gh,Encoder:_T,get PacketType(){return Be},protocol:CT},Symbol.toStringTag,{value:"Module"}));function Fn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const TT=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class d0 extends ht{constructor(t,n,i){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=t,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Fn(t,"open",this.onopen.bind(this)),Fn(t,"packet",this.onpacket.bind(this)),Fn(t,"error",this.onerror.bind(this)),Fn(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var i,s,l;if(TT.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:Be.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,g=n.pop();this._registerAckCallback(p,g),u.id=p}const c=(s=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||s===void 0?void 0:s.writable,f=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!c||(f?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,n){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[t]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error("operation has timed out"))},s),u=(...c)=>{this.io.clearTimeoutFn(l),n.apply(this,c)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((i,s)=>{const l=(u,c)=>u?s(u):i(c);l.withError=!0,n.push(l),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((s,...l)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Be.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(i=>String(i.id)===t)){const i=this.acks[t];delete this.acks[t],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Be.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 Be.EVENT:case Be.BINARY_EVENT:this.onevent(t);break;case Be.ACK:case Be.BINARY_ACK:this.onack(t);break;case Be.DISCONNECT:this.ondisconnect();break;case Be.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let i=!1;return function(...s){i||(i=!0,n.packet({type:Be.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Be.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function rs(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}rs.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};rs.prototype.reset=function(){this.attempts=0};rs.prototype.setMin=function(e){this.ms=e};rs.prototype.setMax=function(e){this.max=e};rs.prototype.setJitter=function(e){this.jitter=e};class oh extends ht{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,$u(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new rs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||RT;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new gT(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Fn(n,"open",function(){i.onopen(),t&&t()}),l=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),t?t(c):this.maybeReconnectOnOpen()},u=Fn(n,"error",l);if(this._timeout!==!1){const c=this._timeout,f=this.setTimeoutFn(()=>{s(),l(new Error("timeout")),n.close()},c);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(s),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Fn(t,"ping",this.onping.bind(this)),Fn(t,"data",this.ondata.bind(this)),Fn(t,"error",this.onerror.bind(this)),Fn(t,"close",this.onclose.bind(this)),Fn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Uu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new d0(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[i],t.options)}
202cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Gs={};function mu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=yT(e,t.path||"/socket.io"),i=n.source,s=n.id,l=n.path,u=Gs[s]&&l in Gs[s].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let f;return c?f=new oh(i,t):(Gs[s]||(Gs[s]=new oh(i,t)),f=Gs[s]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(mu,{Manager:oh,Socket:d0,io:mu,connect:mu});function gv(e,t){var n;const i=mu(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(n=e.token)!==null&&n!==void 0?n:Hh()}});return i.on("connect",async()=>{var s;return console.log("connect",i.id),(s=t.connect)===null||s===void 0?void 0:s.call(t)}),i.on("update_model",async s=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,s)}),i.on("error",async s=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,s)}),i.on("connect_error",async s=>{var l;return console.error("connect_error",s),(l=t.error)===null||l===void 0?void 0:l.call(t,s)}),i}function PT({config:e}){let t={...e};const n={},i={connect:async()=>{const v=[];Object.keys(n).forEach(k=>{f(k);const S=g(k);S==null||S.forEach(({connect:b})=>{const _=async()=>b==null?void 0:b();v.push(_())})}),await Promise.all(v)},update_model:async v=>{const S=g(v.room).map(b=>{var _;return(_=b.update_model)===null||_===void 0?void 0:_.call(b,v)});await Promise.all(S)},error:async v=>{console.error("error",v);const k=Object.values(n).flat().map(S=>{var b;return(b=S.error)===null||b===void 0?void 0:b.call(S,v)});await Promise.all(k)}};let s=gv(e,i);function l(){u()}function u(){s&&s.disconnect()}function c(v){l(),t={...t,...v},s=gv(t,i)}function f(v){s.emit("join",v)}function h(v){s.emit("leave",v)}async function p(v,k){var S;const b=JSON.stringify(k);return(S=i.update_model)===null||S===void 0?void 0:S.call(i,{room:v,data:b})}function g(v){return n[v]}return{socket:s,subscribeToRoom:(v,k)=>(n[v]||(f(v),n[v]=[]),n[v].push(k),()=>{var S,b;n[v]=(b=(S=n[v])===null||S===void 0?void 0:S.filter(_=>_!==k))!==null&&b!==void 0?b:[],n[v].length===0&&h(v)}),updateConfig:c,updateModel:p,disconnect:u}}function OT(e){const{serverUrl:t="https://base44.app",appId:n,token:i,serviceToken:s,requiresAuth:l=!1,appBaseUrl:u,options:c,functionsVersion:f,headers:h}=e,g=PT({config:{serverUrl:t,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:n,token:i}}),w={...h,"X-App-Id":String(n)},v=f?{...w,"Base44-Functions-Version":f}:w,k=nl({baseURL:`${t}/api`,headers:w,token:i,onError:c==null?void 0:c.onError}),S=nl({baseURL:`${t}/api`,headers:v,token:i,interceptResponses:!1,onError:c==null?void 0:c.onError}),b=nl({baseURL:`${t}/api`,headers:w,token:s,onError:c==null?void 0:c.onError}),_=nl({baseURL:`${t}/api`,headers:v,token:s,interceptResponses:!1}),P={entities:sv(k,n),integrations:lv(k,n),auth:IR(k,S,n,{appBaseUrl:u}),functions:av(S,n),agents:uv({axios:k,socket:g,appId:n,serverUrl:t,token:i}),appLogs:cv(k,n),cleanup:()=>{g.disconnect()}},R={entities:sv(b,n),integrations:lv(b,n),sso:LR(b,n,i),connectors:jR(b,n),functions:av(_,n),agents:uv({axios:b,socket:g,appId:n,serverUrl:t,token:i}),appLogs:cv(b,n),cleanup:()=>{g.disconnect()}};if(typeof window<"u"){const O=i||Hh();O&&P.auth.setToken(O)}return l&&typeof window<"u"&&setTimeout(async()=>{try{await P.auth.isAuthenticated()||P.auth.redirectToLogin(window.location.href)}catch(O){console.error("Authentication check failed:",O),P.auth.redirectToLogin(window.location.href)}},0),{...P,setToken(O){P.auth.setToken(O),g.updateConfig({token:O})},getConfig(){return{serverUrl:t,appId:n,requiresAuth:l}},get asServiceRole(){if(!s)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return R}}}const f0=typeof window>"u",AT=f0?{localStorage:new Map}:window,of=AT.localStorage,IT=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Ys=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>
202{if(f0)return t;const i=`base44_${IT(e)}`,s=new URLSearchParams(window.location.search),l=s.get(e);if(n){s.delete(e);const c=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(l)return of.setItem(i,l),l;if(t)return of.setItem(i,t),t;const u=of.getItem(i);return u||null},LT=()=>({appId:Ys("app_id",{defaultValue:"6913a3e49d024b122d3dc581"}),serverUrl:Ys("server_url",{defaultValue:"https://app.base44.com"}),token:Ys("access_token",{removeFromUrl:!0}),fromUrl:Ys("from_url",{defaultValue:window.location.href}),functionsVersion:Ys("functions_version")}),Ao={...LT()},{appId:jT,serverUrl:MT,token:DT,functionsVersion:FT}=Ao,It=OT({appId:jT,serverUrl:MT,token:DT,functionsVersion:FT,requiresAuth:!1}),h0=C.createContext(),zT=({children:e})=>{const[t,n]=C.useState(null),[i,s]=C.useState(!1),[l,u]=C.useState(!0),[c,f]=C.useState(!0),[h,p]=C.useState(null),[g,w]=C.useState(null);C.useEffect(()=>{v()},[]);const v=async()=>{var _,P;try{f(!0),p(null);const R=nl({baseURL:`${Ao.serverUrl}/api/apps/public`,headers:{"X-App-Id":Ao.appId},token:Ao.token,interceptResponses:!0});try{const j=await R.get(`/prod/public-settings/by-id/${Ao.appId}`);w(j),Ao.token?await k():(u(!1),s(!1)),f(!1)}catch(j){if(console.error("App state check failed:",j),j.status===403&&((P=(_=j.data)==null?void 0:_.extra_data)!=null&&P.reason)){const O=j.data.extra_data.reason;p(O==="auth_required"?{type:"auth_required",message:"Authentication required"}:O==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:O,message:j.message})}else p({type:"unknown",message:j.message||"Failed to load app"});f(!1),u(!1)}}catch(R){console.error("Unexpected error:",R),p({type:"unknown",message:R.message||"An unexpected error occurred"}),f(!1),u(!1)}},k=async()=>{try{u(!0);const _=await It.auth.me();n(_),s(!0),u(!1)}catch(_){console.error("User auth check failed:",_),u(!1),s(!1),(_.status===401||_.status===403)&&p({type:"auth_required",message:"Authentication required"})}},S=(_=!0)=>{n(null),s(!1),_?It.auth.logout(window.location.href):It.auth.logout()},b=()=>{It.auth.redirectToLogin(window.location.href)};return x.jsx(h0.Provider,{value:{user:t,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:c,authError:h,appPublicSettings:g,logout:S,navigateToLogin:b,checkAppState:v},children:e})},p0=()=>{const e=C.useContext(h0);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};function yv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function m0(...e){return t=>{let n=!1;const i=e.map(s=>{const l=yv(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():yv(e[s],null)}}}}function yt(...e){return C.useCallback(m0(...e),e)}function dl(e){const t=UT(e),n=C.forwardRef((i,s)=>{const{children:l,...u}=i,c=C.Children.toArray(l),f=c.find(VT);if(f){const h=f.props.children,p=c.map(g=>g===f?C.Children.count(h)>1?C.Children.only(null):C.isValidElement(h)?h.props.children:null:g);return x.jsx(t,{...u,ref:s,children:C.isValidElement(h)?C.cloneElement(h,void 0,p):null})}return x.jsx(t,{...u,ref:s,children:l})});return n.displayName=`${e}.Slot`,n}var BT=dl("Slot");function UT(e){const t=C.forwardRef((n,i)=>{const{children:s,...l}=n;if(C.isValidElement(s)){const u=qT(s),c=HT(l,s.props);return s.type!==C.Fragment&&(c.ref=i?m0(i,u):u),C.cloneElement(s,c)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $T=Symbol("radix.slottable");function VT(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$T}function HT(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...c)=>{const f=l(...c);return s(...c),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}function qT(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const WT=Ah("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Xo=C.forwardRef(({className:e,variant:t,size:n,asChild:i=!1,...s},l)=>{const u=i?BT:"button";return x.jsx(u,{className:et(WT({variant:t,size:n,className:e})),ref:l,...s})});Xo.displayName="Button";const g0=C.forwardRef(({className:e,...t},n)=>
vendor: 30,433 bytes, line 202
202x.jsx("textarea",{className:et("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));g0.displayName="Textarea";function vv(e,[t,n]){return Math.min(n,Math.max(t,e))}function Qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Nl(e,t=[]){let n=[];function i(l,u){const c=C.createContext(u),f=n.length;n=[...n,u];const h=g=>{var _;const{scope:w,children:v,...k}=g,S=((_=w==null?void 0:w[e])==null?void 0:_[f])||c,b=C.useMemo(()=>k,Object.values(k));return x.jsx(S.Provider,{value:b,children:v})};h.displayName=l+"Provider";function p(g,w){var S;const v=((S=w==null?void 0:w[e])==null?void 0:S[f])||c,k=C.useContext(v);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[h,p]}const s=()=>{const l=n.map(u=>C.createContext(u));return function(c){const f=(c==null?void 0:c[e])||l;return C.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return s.scopeName=e,[i,QT(s,...t)]}function QT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const u=i.reduce((c,{useScope:f,scopeName:h})=>{const g=f(l)[`__scope${h}`];return{...c,...g}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function y0(e){const t=e+"CollectionProvider",[n,i]=Nl(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:b,children:_}=S,P=Xr.useRef(null),R=Xr.useRef(new Map).current;return x.jsx(s,{scope:b,itemMap:R,collectionRef:P,children:_})};u.displayName=t;const c=e+"CollectionSlot",f=dl(c),h=Xr.forwardRef((S,b)=>{const{scope:_,children:P}=S,R=l(c,_),j=yt(b,R.collectionRef);return x.jsx(f,{ref:j,children:P})});h.displayName=c;const p=e+"CollectionItemSlot",g="data-radix-collection-item",w=dl(p),v=Xr.forwardRef((S,b)=>{const{scope:_,children:P,...R}=S,j=Xr.useRef(null),O=yt(b,j),L=l(p,_);return Xr.useEffect(()=>(L.itemMap.set(j,{ref:j,...R}),()=>void L.itemMap.delete(j))),x.jsx(w,{[g]:"",ref:O,children:P})});v.displayName=p;function k(S){const b=l(e+"CollectionConsumer",S);return Xr.useCallback(()=>{const P=b.collectionRef.current;if(!P)return[];const R=Array.from(P.querySelectorAll(`[${g}]`));return Array.from(b.itemMap.values()).sort((L,V)=>R.indexOf(L.ref.current)-R.indexOf(V.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:u,Slot:h,ItemSlot:v},k,i]}var KT=C.createContext(void 0);function Yh(e){const t=C.useContext(KT);return e||t||"ltr"}var GT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=GT.reduce((e,t)=>{const n=dl(`Primitive.${t}`),i=C.forwardRef((s,l)=>{const{asChild:u,...c}=s,f=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(f,{...c,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function YT(e,t){e&&bl.flushSync(()=>e.dispatchEvent(t))}function mi(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function XT(e,t=globalThis==null?void 0:globalThis.document){const n=mi(e);C.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var JT="DismissableLayer",sh="dismissableLayer.update",ZT="dismissableLayer.pointerDownOutside",eP="dismissableLayer.focusOutside",xv,v0=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x0=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:c,...f}=e,h=C.useContext(v0),[p,g]=C.useState(null),w=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=C.useState({}),k=yt(t,V=>g(V)),S=Array.from(h.layers),[b]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(b),P=p?S.indexOf(p):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,j=P>=_,O=rP(V=>{const I=V.target,D=[...h.branches].some(Q=>Q.contains(I));!j||D||(s==null||s(V),u==null||u(V),V.defaultPrevented||c==null||c())},w),L=iP(V=>{const I=V.target;[...h.branches].some(Q=>Q.contains(I))||(l==null||l(V),u==null||u(V),V.defaultPrevented||c==null||c())},w);return XT(V=>{P===h.layers.size-1&&(i==null||i(V),!V.defaultPrevented&&c&&(V.preventDefault(),c()))},w),C.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(xv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),wv(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=xv)}},[p,w,n,h]),C.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),wv())},[p,h]),C.useEffect(()=>{const V=()=>v({});return document.addEventListener(sh,V),()=>document.removeEventListener(sh,V)},[]),x.jsx(Ke.div,{...f,ref:k,style:{pointerEvents:R?j?"auto":"none":void 0,...e.style},onFocusCapture:Qe(e.onFocusCapture,L.onFocusCapture),onBlurCapture:Qe(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Qe(e.onPointerDownCapture,O.onPointerDownCapture)})});x0.displayName=JT;var tP="DismissableLayerBranch",nP=C.forwardRef((e,t)=>{const n=C.useContext(v0),i=C.useRef(null),s=yt(t,i);return C.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),x.jsx(Ke.div,{...e,ref:s})});nP.displayName=tP;function rP(e,t=globalThis==null?void 0:globalThis.document){const n=mi(e),i=C.useRef(!1),s=C.useRef(()=>{});return C.useEffect(()=>{const l=c=>{if(c.target&&!i.current){let f=function(){w0(ZT,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=f,t.addEventListener("click",s.current,{once:!0})):f()}else t.removeEventListener("click",s.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function iP(e,t=globalThis==null?void 0:globalThis.document){const n=mi(e),i=C.useRef(!1);return C.useEffect(()=>{const s=l=>{l.target&&!i.current&&w0(eP,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function wv(){const e=new CustomEvent(sh);document.dispatchEvent(e)}function w0(e,t,n,{discrete:i}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?YT(s,l):s.dispatchEvent(l)}var sf=0;function oP(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sv()),document.body.insertAdjacentElement("beforeend",e[1]??Sv()),sf++,()=>{sf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sf--}},[])}function Sv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var lf="focusScope.autoFocusOnMount",af="focusScope.autoFocusOnUnmount",bv={bubbles:!1,cancelable:!0},sP="FocusScope",S0=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:l,...u}=e,[c,f]=C.useState(null),h=mi(s),p=mi(l),g=C.useRef(null),w=yt(t,S=>f(S)),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let S=function(R){if(v.paused||!c)return;const j=R.target;c.contains(j)?g.current=j:Zr(g.current,{select:!0})},b=function(R){if(v.paused||!c)return;const j=R.relatedTarget;j!==null&&(c.contains(j)||Zr(g.current,{select:!0}))},_=function(R){if(document.activeElement===document.body)for(const O of R)O.removedNodes.length>0&&Zr(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",b);const P=new MutationObserver(_);return c&&P.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",b),P.disconnect()}}},[i,c,v.paused]),C.useEffect(()=>{if(c){Ev.add(v);const S=document.activeElement;if(!c.contains(S)){const _=new CustomEvent(lf,bv);c.addEventListener(lf,h),c.dispatchEvent(_),_.defaultPrevented||(lP(fP(b0(c)),{select:!0}),document.activeElement===S&&Zr(c))}return()=>{c.removeEventListener(lf,h),setTimeout(()=>{const _=new CustomEvent(af,bv);c.addEventListener(af,p),c.dispatchEvent(_),_.defaultPrevented||Zr(S??document.body,{select:!0}),c.removeEventListener(af,p),Ev.remove(v)},0)}}},[c,h,p,v]);const k=C.useCallback(S=>{if(!n&&!i||v.paused)return;const b=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(b&&_){const P=S.currentTarget,[R,j]=aP(P);R&&j?!S.shiftKey&&_===j?(S.preventDefault(),n&&Zr(R,{select:!0})):S.shiftKey&&_===R&&(S.preventDefault(),n&&Zr(j,{select:!0})):_===P&&S.preventDefault()}},[n,i,v.paused]);return x.jsx(Ke.div,{tabIndex:-1,...u,ref:w,onKeyDown:k})});S0.displayName=sP;function lP(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Zr(i,{select:t}),document.activeElement!==n)return}function aP(e){const t=b0(e),n=kv(t,e),i=kv(t.reverse(),e);return[n,i]}function b0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kv(e,t){for(const n of e)if(!uP(n,{upTo:t}))return n}function uP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cP(e){return e instanceof HTMLInputElement&&"select"in e}function Zr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cP(e)&&t&&e.select()}}var Ev=dP();function dP(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Cv(e,t),e.unshift(t)},remove(t){var n;e=Cv(e,t),(n=e[0])==null||n.resume()}}}function Cv(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function fP(e){return e.filter(t=>t.tagName!=="A")}var jt=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},hP=Oh[" useId ".trim().toString()]||(()=>{}),pP=0;function Rl(e){const[t,n]=C.useState(hP());return jt(()=>{n(i=>i??String(pP++))},[e]),t?`radix-${t}`:""}const mP=["top","right","bottom","left"],gi=Math.min,un=Math.max,Cu=Math.round,Xa=Math.floor,rr=e=>({x:e,y:e}),gP={left:"right",right:"left",bottom:"top",top:"bottom"},yP={start:"end",end:"start"};function lh(e,t,n){return un(e,gi(t,n))}function Er(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function is(e){return e.split("-")[1]}function Xh(e){return e==="x"?"y":"x"}function Jh(e){return e==="y"?"height":"width"}const vP=new Set(["top","bottom"]);function tr(e){return vP.has(Cr(e))?"y":"x"}function Zh(e){return Xh(tr(e))}function xP(e,t,n){n===void 0&&(n=!1);const i=is(e),s=Zh(e),l=Jh(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=_u(u)),[u,_u(u)]}function wP(e){const t=_u(e);return[ah(e),t,ah(t)]}function ah(e){return e.replace(/start|end/g,t=>yP[t])}const _v=["left","right"],Nv=["right","left"],SP=["top","bottom"],bP=["bottom","top"];function kP(e,t,n){switch(e){case"top":case"bottom":return n?t?Nv:_v:t?_v:Nv;case"left":case"right":return t?SP:bP;default:return[]}}function EP(e,t,n,i){const s=is(e);let l=kP(Cr(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(ah)))),l}function _u(e){return e.replace(/left|right|bottom|top/g,t=>gP[t])}function CP(e){return{top:0,right:0,bottom:0,left:0,...e}}function k0(e){return typeof e!="number"?CP(e):{top:e,right:e,bottom:e,left:e}}function Nu(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function Rv(e,t,n){let{reference:i,floating:s}=e;const l=tr(t),u=Zh(t),c=Jh(u),f=Cr(t),h=l==="y",p=i.x+i.width/2-s.width/2,g=i.y+i.height/2-s.height/2,w=i[c]/2-s[c]/2;let v;switch(f){case"top":v={x:p,y:i.y-s.height};break;case"bottom":v={x:p,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:g};break;case"left":v={x:i.x-s.width,y:g};break;default:v={x:i.x,y:i.y}}switch(is(t)){case"start":v[u]-=w*(n&&h?-1:1);break;case"end":v[u]+=w*(n&&h?-1:1);break}return v}const _P=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,c=l.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:p,y:g}=Rv(h,i,f),w=i,v={},k=0;for(let S=0;S<c.length;S++){const{name:b,fn:_}=c[S],{x:P,y:R,data:j,reset:O}=await _({x:p,y:g,initialPlacement:i,placement:w,strategy:s,middlewareData:v,rects:h,platform:u,elements:{reference:e,floating:t}});p=P??p,g=R??g,v={...v,[b]:{...v[b],...j}},O&&k<=50&&(k++,typeof O=="object"&&(O.placement&&(w=O.placement),O.rects&&(h=O.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):O.rects),{x:p,y:g}=Rv(h,w,f)),S=-1)}return{x:p,y:g,placement:w,strategy:s,middlewareData:v}};async function fl(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:u,elements:c,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:w=!1,padding:v=0}=Er(t,e),k=k0(v),b=c[w?g==="floating"?"reference":"floating":g],_=Nu(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:f})),P=g==="floating"?{x:i,y:s,width:u.floating.width,height:u.floating.height}:u.reference,R=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),j=await(l.isElement==null?void 0:l.isElement(R))?await(l.getScale==null?void 0:l.getScale(R))||{x:1,y:1}:{x:1,y:1},O=Nu(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:P,offsetParent:R,strategy:f}):P);return{top:(_.top-O.top+k.top)/j.y,bottom:(O.bottom-_.bottom+k.bottom)/j.y,left:(_.left-O.left+k.left)/j.x,right:(O.right-_.right+k.right)/j.x}}const NP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:u,elements:c,middlewareData:f}=t,{element:h,padding:p=0}=Er(e,t)||{};if(h==null)return{};const g=k0(p),w={x:n,y:i},v=Zh(s),k=Jh(v),S=await u.getDimensions(h),b=v==="y",_=b?"top":"left",P=b?"bottom":"right",R=b?"clientHeight":"clientWidth",j=l.reference[k]+l.reference[v]-w[v]-l.floating[k],O=w[v]-l.reference[v],L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let V=L?L[R]:0;(!V||!await(u.isElement==null?void 0:u.isElement(L)))&&(V=c.floating[R]||l.floating[k]);const I=j/2-O/2,D=V/2-S[k]/2-1,Q=gi(g[_],D),q=gi(g[P],D),U=Q,K=V-S[k]-q,J=V/2-S[k]/2+I,X=lh(U,J,K),ee=!f.arrow&&is(s)!=null&&J!==X&&l.reference[k]/2-(J<U?Q:q)-S[k]/2<0,ae=ee?J<U?J-U:J-K:0;return{[v]:w[v]+ae,data:{[v]:X,centerOffset:J-X-ae,...ee&&{alignmentOffset:ae}},reset:ee}}}),RP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...b}=Er(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const _=Cr(s),P=tr(c),R=Cr(c)===c,j=await(f.isRTL==null?void 0:f.isRTL(h.floating)),O=w||(R||!S?[_u(c)]:wP(c)),L=k!=="none";!w&&L&&O.push(...EP(c,S,k,j));const V=[c,...O],I=await fl(t,b),D=[];let Q=((i=l.flip)==null?void 0:i.overflows)||[];if(p&&D.push(I[_]),g){const J=xP(s,u,j);D.push(I[J[0]],I[J[1]])}if(Q=[...Q,{placement:s,overflows:D}],!D.every(J=>J<=0)){var q,U;const J=(((q=l.flip)==null?void 0:q.index)||0)+1,X=V[J];if(X&&(!(g==="alignment"?P!==tr(X):!1)||Q.every($=>tr($.placement)===P?$.overflows[0]>0:!0)))return{data:{index:J,overflows:Q},reset:{placement:X}};let ee=(U=Q.filter(ae=>ae.overflows[0]<=0).sort((ae,$)=>ae.overflows[1]-$.overflows[1])[0])==null?void 0:U.placement;if(!ee)switch(v){case"bestFit":{var K;const ae=(K=Q.filter($=>{if(L){const se=tr($.placement);return se===P||se==="y"}return!0}).map($=>[$.placement,$.overflows.filter(se=>se>0).reduce((se,N)=>se+N,0)]).sort(($,se)=>$[1]-se[1])[0])==null?void 0:K[0];ae&&(ee=ae);break}case"initialPlacement":ee=c;break}if(s!==ee)return{reset:{placement:ee}}}return{}}}};function Tv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pv(e){return mP.some(t=>e[t]>=0)}const TP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=Er(e,t);switch(i){case"referenceHidden":{const l=await fl(t,{...s,elementContext:"reference"}),u=Tv(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Pv(u)}}}case"escaped":{const l=await fl(t,{...s,altBoundary:!0}),u=Tv(l,n.floating);return{data:{escapedOffsets:u,escaped:Pv(u)}}}default:return{}}}}},E0=new Set(["left","top"]);async function PP(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=Cr(n),c=is(n),f=tr(n)==="y",h=E0.has(u)?-1:1,p=l&&f?-1:1,g=Er(t,e);let{mainAxis:w,crossAxis:v,alignmentAxis:k}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof k=="number"&&(v=c==="end"?k*-1:k),f?{x:v*p,y:w*h}:{x:w*h,y:v*p}}const OP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:u,middlewareData:c}=t,f=await PP(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+f.x,y:l+f.y,data:{...f,placement:u}}}}},AP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:b=>{let{x:_,y:P}=b;return{x:_,y:P}}},...f}=Er(e,t),h={x:n,y:i},p=await fl(t,f),g=tr(Cr(s)),w=Xh(g);let v=h[w],k=h[g];if(l){const b=w==="y"?"top":"left",_=w==="y"?"bottom":"right",P=v+p[b],R=v-p[_];v=lh(P,v,R)}if(u){const b=g==="y"?"top":"left",_=g==="y"?"bottom":"right",P=k+p[b],R=k-p[_];k=lh(P,k,R)}const S=c.fn({...t,[w]:v,[g]:k});return{...S,data:{x:S.x-n,y:S.y-i,enabled:{[w]:l,[g]:u}}}}}},IP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:l,middlewareData:u}=t,{offset:c=0,mainAxis:f=!0,crossAxis:h=!0}=Er(e,t),p={x:n,y:i},g=tr(s),w=Xh(g);let v=p[w],k=p[g];const S=Er(c,t),b=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const R=w==="y"?"height":"width",j=l.reference[w]-l.floating[R]+b.mainAxis,O=l.reference[w]+l.reference[R]-b.mainAxis;v<j?v=j:v>O&&(v=O)}if(h){var _,P;const R=w==="y"?"width":"height",j=E0.has(Cr(s)),O=l.reference[g]-l.floating[R]+(j&&((_=u.offset)==null?void 0:_[g])||0)+(j?0:b.crossAxis),L=l.reference[g]+l.reference[R]+(j?0:((P=u.offset)==null?void 0:P[g])||0)-(j?b.crossAxis:0);k<O?k=O:k>L&&(k=L)}return{[w]:v,[g]:k}}}},LP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:l,platform:u,elements:c}=t,{apply:f=()=>{},...h}=Er(e,t),p=await fl(t,h),g=Cr(s),w=is(s),v=tr(s)==="y",{width:k,height:S}=l.floating;let b,_;g==="top"||g==="bottom"?(b=g,_=w===(await(u.isRTL==null?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(_=g,b=w==="end"?"top":"bottom");const P=S-p.top-p.bottom,R=k-p.left-p.right,j=gi(S-p[b],P),O=gi(k-p[_],R),L=!t.middlewareData.shift;let V=j,I=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=R),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(V=P),L&&!w){const Q=un(p.left,0),q=un(p.right,0),U=un(p.top,0),K=un(p.bottom,0);v?I=k-2*(Q!==0||q!==0?Q+q:un(p.left,p.right)):V=S-2*(U!==0||K!==0?U+K:un(p.top,p.bottom))}await f({...t,availableWidth:I,availableHeight:V});const D=await u.getDimensions(c.floating);return k!==D.width||S!==D.height?{reset:{rects:!0}}:{}}}};function Vu(){return typeof window<"u"}function os(e){return C0(e)?(e.nodeName||"").toLowerCase():"#document"}function dn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lr(e){var t;return(t=(C0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function C0(e){return Vu()?e instanceof Node||e instanceof dn(e).Node:!1}function zn(e){return Vu()?e instanceof Element||e instanceof dn(e).Element:!1}function or(e){return Vu()?e instanceof HTMLElement||e instanceof dn(e).HTMLElement:!1}function Ov(e){return!Vu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dn(e).ShadowRoot}const jP=new Set(["inline","contents"]);function Tl(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Bn(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!jP.has(s)}const MP=new Set(["table","td","th"]);function DP(e){return MP.has(os(e))}const FP=[":popover-open",":modal"];function Hu(e){return FP.some(t=>{try{return e.matches(t)}catch{return!1}})}const zP=["transform","translate","scale","rotate","perspective"],BP=["transform","translate","scale","rotate","perspective","filter"],UP=["paint","layout","strict","content"];function ep(e){const t=tp(),n=zn(e)?Bn(e):e;return zP.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||BP.some(i=>(n.willChange||"").includes(i))||UP.some(i=>(n.contain||"").includes(i))}function $P(e){let t=yi(e);for(;or(t)&&!Jo(t);){if(ep(t))return t;if(Hu(t))return null;t=yi(t)}return null}function tp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VP=new Set(["html","body","#document"]);function Jo(e){return VP.has(os(e))}function Bn(e){return dn(e).getComputedStyle(e)}function qu(e){return zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yi(e){if(os(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ov(e)&&e.host||lr(e);return Ov(t)?t.host:t}function _0(e){const t=yi(e);return Jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:or(t)&&Tl(t)?t:_0(t)}function hl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=_0(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),u=dn(s);if(l){const c=uh(u);return t.concat(u,u.visualViewport||[],Tl(s)?s:[],c&&n?hl(c):[])}return t.concat(s,hl(s,[],n))}function uh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function N0(e){const t=Bn(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=or(e),l=s?e.offsetWidth:n,u=s?e.offsetHeight:i,c=Cu(n)!==l||Cu(i)!==u;return c&&(n=l,i=u),{width:n,height:i,$:c}}function np(e){return zn(e)?e:e.contextElement}function Lo(e){const t=np(e);if(!or(t))return rr(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=N0(t);let u=(l?Cu(n.width):n.width)/i,c=(l?Cu(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const HP=rr(0);function R0(e){const t=dn(e);return!tp()||!t.visualViewport?HP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dn(e)?!1:t}function Yi(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=np(e);let u=rr(1);t&&(i?zn(i)&&(u=Lo(i)):u=Lo(e));const c=qP(l,n,i)?R0(l):rr(0);let f=(s.left+c.x)/u.x,h=(s.top+c.y)/u.y,p=s.width/u.x,g=s.height/u.y;if(l){const w=dn(l),v=i&&zn(i)?dn(i):i;let k=w,S=uh(k);for(;S&&i&&v!==k;){const b=Lo(S),_=S.getBoundingClientRect(),P=Bn(S),R=_.left+(S.clientLeft+parseFloat(P.paddingLeft))*b.x,j=_.top+(S.clientTop+parseFloat(P.paddingTop))*b.y;f*=b.x,h*=b.y,p*=b.x,g*=b.y,f+=R,h+=j,k=dn(S),S=uh(k)}}return Nu({width:p,height:g,x:f,y:h})}function Wu(e,t){const n=qu(e).scrollLeft;return t?t.left+n:Yi(lr(e)).left+n}function T0(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Wu(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function WP(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",u=lr(i),c=t?Hu(t.floating):!1;if(i===u||c&&l)return n;let f={scrollLeft:0,scrollTop:0},h=rr(1);const p=rr(0),g=or(i);if((g||!g&&!l)&&((os(i)!=="body"||Tl(u))&&(f=qu(i)),or(i))){const v=Yi(i);h=Lo(i),p.x=v.x+i.clientLeft,p.y=v.y+i.clientTop}const w=u&&!g&&!l?T0(u,f):rr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+w.x,y:n.y*h.y-f.scrollTop*h.y+p.y+w.y}}function QP(e){return Array.from(e.getClientRects())}function KP(e){const t=lr(e),n=qu(e),i=e.ownerDocument.body,s=un(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=un(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+Wu(e);const c=-n.scrollTop;return Bn(i).direction==="rtl"&&(u+=un(t.clientWidth,i.clientWidth)-s),{width:s,height:l,x:u,y:c}}const Av=25;function GP(e,t){const n=dn(e),i=lr(e),s=n.visualViewport;let l=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){l=s.width,u=s.height;const p=tp();(!p||p&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}const h=Wu(i);if(h<=0){const p=i.ownerDocument,g=p.body,w=getComputedStyle(g),v=p.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,k=Math.abs(i.clientWidth-g.clientWidth-v);k<=Av&&(l-=k)}else h<=Av&&(l+=h);return{width:l,height:u,x:c,y:f}}const YP=new Set(["absolute","fixed"]);function XP(e,t){const n=Yi(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=or(e)?Lo(e):rr(1),u=e.clientWidth*l.x,c=e.clientHeight*l.y,f=s*l.x,h=i*l.y;return{width:u,height:c,x:f,y:h}}function Iv(e,t,n){let i;if(t==="viewport")i=GP(e,n);else if(t==="document")i=KP(lr(e));else if(zn(t))i=XP(t,n);else{const s=R0(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Nu(i)}function P0(e,t){const n=yi(e);return n===t||!zn(n)||Jo(n)?!1:Bn(n).position==="fixed"||P0(n,t)}function JP(e,t){const n=t.get(e);if(n)return n;let i=hl(e,[],!1).filter(c=>zn(c)&&os(c)!=="body"),s=null;const l=Bn(e).position==="fixed";let u=l?yi(e):e;for(;zn(u)&&!Jo(u);){const c=Bn(u),f=ep(u);!f&&c.position==="fixed"&&(s=null),(l?!f&&!s:!f&&c.position==="static"&&!!s&&YP.has(s.position)||Tl(u)&&!f&&P0(e,u))?i=i.filter(p=>p!==u):s=c,u=yi(u)}return t.set(e,i),i}function ZP(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const u=[...n==="clippingAncestors"?Hu(t)?[]:JP(t,this._c):[].concat(n),i],c=u[0],f=u.reduce((h,p)=>{const g=Iv(t,p,s);return h.top=un(g.top,h.top),h.right=gi(g.right,h.right),h.bottom=gi(g.bottom,h.bottom),h.left=un(g.left,h.left),h},Iv(t,c,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function eO(e){const{width:t,height:n}=N0(e);return{width:t,height:n}}function tO(e,t,n){const i=or(t),s=lr(t),l=n==="fixed",u=Yi(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const f=rr(0);function h(){f.x=Wu(s)}if(i||!i&&!l)if((os(t)!=="body"||Tl(s))&&(c=qu(t)),i){const v=Yi(t,!0,l,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else s&&h();l&&!i&&s&&h();const p=s&&!i&&!l?T0(s,c):rr(0),g=u.left+c.scrollLeft-f.x-p.x,w=u.top+c.scrollTop-f.y-p.y;return{x:g,y:w,width:u.width,height:u.height}}function uf(e){return Bn(e).position==="static"}function Lv(e,t){if(!or(e)||Bn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return lr(e)===n&&(n=n.ownerDocument.body),n}function O0(e,t){const n=dn(e);if(Hu(e))return n;if(!or(e)){let s=yi(e);for(;s&&!Jo(s);){if(zn(s)&&!uf(s))return s;s=yi(s)}return n}let i=Lv(e,t);for(;i&&DP(i)&&uf(i);)i=Lv(i,t);return i&&Jo(i)&&uf(i)&&!ep(i)?n:i||$P(e)||n}const nO=async function(e){const t=this.getOffsetParent||O0,n=this.getDimensions,i=await n(e.floating);return{reference:tO(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function rO(e){return Bn(e).direction==="rtl"}const iO={convertOffsetParentRelativeRectToViewportRelativeRect:WP,getDocumentElement:lr,getClippingRect:ZP,getOffsetParent:O0,getElementRects:nO,getClientRects:QP,getDimensions:eO,getScale:Lo,isElement:zn,isRTL:rO};function A0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oO(e,t){let n=null,i;const s=lr(e);function l(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function u(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const h=e.getBoundingClientRect(),{left:p,top:g,width:w,height:v}=h;if(c||t(),!w||!v)return;const k=Xa(g),S=Xa(s.clientWidth-(p+w)),b=Xa(s.clientHeight-(g+v)),_=Xa(p),R={rootMargin:-k+"px "+-S+"px "+-b+"px "+-_+"px",threshold:un(0,gi(1,f))||1};let j=!0;function O(L){const V=L[0].intersectionRatio;if(V!==f){if(!j)return u();V?u(!1,V):i=setTimeout(()=>{u(!1,1e-7)},1e3)}V===1&&!A0(h,e.getBoundingClientRect())&&u(),j=!1}try{n=new IntersectionObserver(O,{...R,root:s.ownerDocument})}catch{n=new IntersectionObserver(O,R)}n.observe(e)}return u(!0),l}function sO(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=np(e),p=s||l?[...h?hl(h):[],...hl(t)]:[];p.forEach(_=>{s&&_.addEventListener("scroll",n,{passive:!0}),l&&_.addEventListener("resize",n)});const g=h&&c?oO(h,n):null;let w=-1,v=null;u&&(v=new ResizeObserver(_=>{let[P]=_;P&&P.target===h&&v&&(v.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(t)})),n()}),h&&!f&&v.observe(h),v.observe(t));let k,S=f?Yi(e):null;f&&b();function b(){const _=Yi(e);S&&!A0(S,_)&&n(),S=_,k=requestAnimationFrame(b)}return n(),()=>{var _;p.forEach(P=>{s&&P.removeEventListener("scroll",n),l&&P.removeEventListener("resize",n)}),g==null||g(),(_=v)==null||_.disconnect(),v=null,f&&cancelAnimationFrame(k)}}
vendor: 4,140 bytes, line 202
202const lO=OP,aO=AP,uO=RP,cO=LP,dO=TP,jv=NP,fO=IP,hO=(e,t,n)=>{const i=new Map,s={platform:iO,...n},l={...s.platform,_c:i};return _P(e,t,{...s,platform:l})};var pO=typeof document<"u",mO=function(){},gu=pO?C.useLayoutEffect:mO;function Ru(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Ru(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const l=s[i];if(!(l==="_owner"&&e.$$typeof)&&!Ru(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function I0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mv(e,t){const n=I0(e);return Math.round(t*n)/n}function cf(e){const t=C.useRef(e);return gu(()=>{t.current=e}),t}function gO(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:f,open:h}=e,[p,g]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,v]=C.useState(i);Ru(w,i)||v(i);const[k,S]=C.useState(null),[b,_]=C.useState(null),P=C.useCallback($=>{$!==L.current&&(L.current=$,S($))},[]),R=C.useCallback($=>{$!==V.current&&(V.current=$,_($))},[]),j=l||k,O=u||b,L=C.useRef(null),V=C.useRef(null),I=C.useRef(p),D=f!=null,Q=cf(f),q=cf(s),U=cf(h),K=C.useCallback(()=>{if(!L.current||!V.current)return;const $={placement:t,strategy:n,middleware:w};q.current&&($.platform=q.current),hO(L.current,V.current,$).then(se=>{const N={...se,isPositioned:U.current!==!1};J.current&&!Ru(I.current,N)&&(I.current=N,bl.flushSync(()=>{g(N)}))})},[w,t,n,q,U]);gu(()=>{h===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,g($=>({...$,isPositioned:!1})))},[h]);const J=C.useRef(!1);gu(()=>(J.current=!0,()=>{J.current=!1}),[]),gu(()=>{if(j&&(L.current=j),O&&(V.current=O),j&&O){if(Q.current)return Q.current(j,O,K);K()}},[j,O,K,Q,D]);const X=C.useMemo(()=>({reference:L,floating:V,setReference:P,setFloating:R}),[P,R]),ee=C.useMemo(()=>({reference:j,floating:O}),[j,O]),ae=C.useMemo(()=>{const $={position:n,left:0,top:0};if(!ee.floating)return $;const se=Mv(ee.floating,p.x),N=Mv(ee.floating,p.y);return c?{...$,transform:"translate("+se+"px, "+N+"px)",...I0(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:N}},[n,c,ee.floating,p.x,p.y]);return C.useMemo(()=>({...p,update:K,refs:X,elements:ee,floatingStyles:ae}),[p,K,X,ee,ae])}const yO=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?jv({element:i.current,padding:s}).fn(n):{}:i?jv({element:i,padding:s}).fn(n):{}}}},vO=(e,t)=>({...lO(e),options:[e,t]}),xO=(e,t)=>({...aO(e),options:[e,t]}),wO=(e,t)=>({...fO(e),options:[e,t]}),SO=(e,t)=>({...uO(e),options:[e,t]}),bO=(e,t)=>({...cO(e),options:[e,t]}),kO=(e,t)=>({...dO(e),options:[e,t]}),EO=(e,t)=>({...yO(e),options:[e,t]});var CO="Arrow",L0=C.forwardRef((e,t)=>{const{children:n,width:i=10,height:s=5,...l}=e;return x.jsx(Ke.svg,{...l,ref:t,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});L0.displayName=CO;var _O=L0;function NO(e){const[t,n]=C.useState(void 0);return jt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,c;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;u=h.inlineSize,c=h.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var rp="Popper",[j0,M0]=Nl(rp),[RO,D0]=j0(rp),F0=e=>{const{__scopePopper:t,children:n}=e,[i,s]=C.useState(null);return x.jsx(RO,{scope:t,anchor:i,onAnchorChange:s,children:n})};F0.displayName=rp;var z0="PopperAnchor",B0=C.forwardRef((e,t)=>
vendor: 9,229 bytes, line 202
202{const{__scopePopper:n,virtualRef:i,...s}=e,l=D0(z0,n),u=C.useRef(null),c=yt(t,u),f=C.useRef(null);return C.useEffect(()=>{const h=f.current;f.current=(i==null?void 0:i.current)||u.current,h!==f.current&&l.onAnchorChange(f.current)}),i?null:x.jsx(Ke.div,{...s,ref:c})});B0.displayName=z0;var ip="PopperContent",[TO,PO]=j0(ip),U0=C.forwardRef((e,t)=>{var ie,pe,ke,Ee,Oe,je;const{__scopePopper:n,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:v="optimized",onPlaced:k,...S}=e,b=D0(ip,n),[_,P]=C.useState(null),R=yt(t,ct=>P(ct)),[j,O]=C.useState(null),L=NO(j),V=(L==null?void 0:L.width)??0,I=(L==null?void 0:L.height)??0,D=i+(l!=="center"?"-"+l:""),Q=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},q=Array.isArray(h)?h:[h],U=q.length>0,K={padding:Q,boundary:q.filter(AO),altBoundary:U},{refs:J,floatingStyles:X,placement:ee,isPositioned:ae,middlewareData:$}=gO({strategy:"fixed",placement:D,whileElementsMounted:(...ct)=>sO(...ct,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[vO({mainAxis:s+I,alignmentAxis:u}),f&&xO({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?wO():void 0,...K}),f&&SO({...K}),bO({...K,apply:({elements:ct,rects:Rt,availableWidth:Cn,availableHeight:_n})=>{const{width:fn,height:eo}=Rt.reference,Nn=ct.floating.style;Nn.setProperty("--radix-popper-available-width",`${Cn}px`),Nn.setProperty("--radix-popper-available-height",`${_n}px`),Nn.setProperty("--radix-popper-anchor-width",`${fn}px`),Nn.setProperty("--radix-popper-anchor-height",`${eo}px`)}}),j&&EO({element:j,padding:c}),IO({arrowWidth:V,arrowHeight:I}),w&&kO({strategy:"referenceHidden",...K})]}),[se,N]=H0(ee),F=mi(k);jt(()=>{ae&&(F==null||F())},[ae,F]);const Z=(ie=$.arrow)==null?void 0:ie.x,T=(pe=$.arrow)==null?void 0:pe.y,de=((ke=$.arrow)==null?void 0:ke.centerOffset)!==0,[be,we]=C.useState();return jt(()=>{_&&we(window.getComputedStyle(_).zIndex)},[_]),x.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:ae?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:be,"--radix-popper-transform-origin":[(Ee=$.transformOrigin)==null?void 0:Ee.x,(Oe=$.transformOrigin)==null?void 0:Oe.y].join(" "),...((je=$.hide)==null?void 0:je.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(TO,{scope:n,placedSide:se,onArrowChange:O,arrowX:Z,arrowY:T,shouldHideArrow:de,children:x.jsx(Ke.div,{"data-side":se,"data-align":N,...S,ref:R,style:{...S.style,animation:ae?void 0:"none"}})})})});U0.displayName=ip;var $0="PopperArrow",OO={top:"bottom",right:"left",bottom:"top",left:"right"},V0=C.forwardRef(function(t,n){const{__scopePopper:i,...s}=t,l=PO($0,i),u=OO[l.placedSide];return x.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:x.jsx(_O,{...s,ref:n,style:{...s.style,display:"block"}})})});V0.displayName=$0;function AO(e){return e!==null}var IO=e=>({name:"transformOrigin",options:e,fn(t){var b,_,P;const{placement:n,rects:i,middlewareData:s}=t,u=((b=s.arrow)==null?void 0:b.centerOffset)!==0,c=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[h,p]=H0(n),g={start:"0%",center:"50%",end:"100%"}[p],w=(((_=s.arrow)==null?void 0:_.x)??0)+c/2,v=(((P=s.arrow)==null?void 0:P.y)??0)+f/2;let k="",S="";return h==="bottom"?(k=u?g:`${w}px`,S=`${-f}px`):h==="top"?(k=u?g:`${w}px`,S=`${i.floating.height+f}px`):h==="right"?(k=`${-f}px`,S=u?g:`${v}px`):h==="left"&&(k=`${i.floating.width+f}px`,S=u?g:`${v}px`),{data:{x:k,y:S}}}});function H0(e){const[t,n="center"]=e.split("-");return[t,n]}var LO=F0,jO=B0,MO=U0,DO=V0,FO="Portal",q0=C.forwardRef((e,t)=>{var c;const{container:n,...i}=e,[s,l]=C.useState(!1);jt(()=>l(!0),[]);const u=n||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return u?a_.createPortal(x.jsx(Ke.div,{...i,ref:t}),u):null});q0.displayName=FO;var zO=Oh[" useInsertionEffect ".trim().toString()]||jt;function Tu({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,l,u]=BO({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:s;{const p=C.useRef(e!==void 0);C.useEffect(()=>{const g=p.current;g!==c&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,i])}const h=C.useCallback(p=>{var g;if(c){const w=UO(p)?p(e):p;w!==e&&((g=u.current)==null||g.call(u,w))}else l(p)},[c,e,l,u]);return[f,h]}function BO({defaultProp:e,onChange:t}){const[n,i]=C.useState(e),s=C.useRef(n),l=C.useRef(t);return zO(()=>{l.current=t},[t]),C.useEffect(()=>{var u;s.current!==n&&((u=l.current)==null||u.call(l,n),s.current=n)},[n,s]),[n,i,l]}function UO(e){return typeof e=="function"}function $O(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var W0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),VO="VisuallyHidden",HO=C.forwardRef((e,t)=>x.jsx(Ke.span,{...e,ref:t,style:{...W0,...e.style}}));HO.displayName=VO;var qO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},No=new WeakMap,Ja=new WeakMap,Za={},df=0,Q0=function(e){return e&&(e.host||Q0(e.parentNode))},WO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Q0(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},QO=function(e,t,n,i){var s=WO(t,Array.isArray(e)?e:[e]);Za[n]||(Za[n]=new WeakMap);var l=Za[n],u=[],c=new Set,f=new Set(s),h=function(g){!g||c.has(g)||(c.add(g),h(g.parentNode))};s.forEach(h);var p=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(w){if(c.has(w))p(w);else try{var v=w.getAttribute(i),k=v!==null&&v!=="false",S=(No.get(w)||0)+1,b=(l.get(w)||0)+1;No.set(w,S),l.set(w,b),u.push(w),S===1&&k&&Ja.set(w,!0),b===1&&w.setAttribute(n,"true"),k||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return p(t),c.clear(),df++,function(){u.forEach(function(g){var w=No.get(g)-1,v=l.get(g)-1;No.set(g,w),l.set(g,v),w||(Ja.has(g)||g.removeAttribute(i),Ja.delete(g)),v||g.removeAttribute(n)}),df--,df||(No=new WeakMap,No=new WeakMap,Ja=new WeakMap,Za={})}},KO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=qO(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),QO(i,s,n,"aria-hidden")):function(){return null}},Zn=function(){return Zn=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Zn.apply(this,arguments)};function K0(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function GO(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var yu="right-scroll-bar-position",vu="width-before-scroll-bar",YO="with-scroll-bars-hidden",XO="--removed-body-scroll-bar-size";function ff(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JO(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var ZO=typeof window<"u"?C.useLayoutEffect:C.useEffect,Dv=new WeakMap;function eA(e,t){var n=JO(null,function(i){return e.forEach(function(s){return ff(s,i)})});return ZO(function(){var i=Dv.get(n);if(i){var s=new Set(i),l=new Set(e),u=n.current;s.forEach(function(c){l.has(c)||ff(c,null)}),l.forEach(function(c){s.has(c)||ff(c,u)})}Dv.set(n,e)},[e]),n}function tA(e){return e}function nA(e,t){t===void 0&&(t=tA);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,i);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(l){for(i=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){i=!0;var u=[];
vendor: 10,702 bytes, lines 202-242
202if(n.length){var c=n;n=[],c.forEach(l),u=n}var f=function(){var p=u;u=[],p.forEach(l)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){u.push(p),h()},filter:function(p){return u=u.filter(p),n}}}};return s}function rA(e){e===void 0&&(e={});var t=nA(null);return t.options=Zn({async:!0,ssr:!1},e),t}var G0=function(e){var t=e.sideCar,n=K0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,Zn({},n))};G0.isSideCarExport=!0;function iA(e,t){return e.useMedium(t),G0}var Y0=rA(),hf=function(){},Qu=C.forwardRef(function(e,t){var n=C.useRef(null),i=C.useState({onScrollCapture:hf,onWheelCapture:hf,onTouchMoveCapture:hf}),s=i[0],l=i[1],u=e.forwardProps,c=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,g=e.shards,w=e.sideCar,v=e.noRelative,k=e.noIsolation,S=e.inert,b=e.allowPinchZoom,_=e.as,P=_===void 0?"div":_,R=e.gapMode,j=K0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=w,L=eA([n,t]),V=Zn(Zn({},j),s);return C.createElement(C.Fragment,null,p&&C.createElement(O,{sideCar:Y0,removeScrollBar:h,shards:g,noRelative:v,noIsolation:k,inert:S,setCallbacks:l,allowPinchZoom:!!b,lockRef:n,gapMode:R}),u?C.cloneElement(C.Children.only(c),Zn(Zn({},V),{ref:L})):C.createElement(P,Zn({},V,{className:f,ref:L}),c))});Qu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qu.classNames={fullWidth:vu,zeroRight:yu};var oA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oA();return t&&e.setAttribute("nonce",t),e}function lA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sA())&&(lA(t,n),aA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cA=function(){var e=uA();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},X0=function(){var e=cA(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},dA={left:0,top:0,right:0,gap:0},pf=function(e){return parseInt(e||"",10)||0},fA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[pf(n),pf(i),pf(s)]},hA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dA;var t=fA(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},pA=X0(),jo="data-scroll-locked",mA=function(e,t,n,i){var s=e.left,l=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),` 203 .`.concat(YO,` { 204 overflow: hidden `).concat(i,`; 205 padding-right: `).concat(c,"px ").concat(i,`; 206 } 207 body[`).concat(jo,`] { 208 overflow: hidden `).concat(i,`; 209 overscroll-behavior: contain; 210 `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&` 211 padding-left: `.concat(s,`px; 212 padding-top: `).concat(l,`px; 213 padding-right: `).concat(u,`px; 214 margin-left:0; 215 margin-top:0; 216 margin-right: `).concat(c,"px ").concat(i,`; 217 `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),` 218 } 219 220 .`).concat(yu,` { 221 right: `).concat(c,"px ").concat(i,`; 222 } 223 224 .`).concat(vu,` { 225 margin-right: `).concat(c,"px ").concat(i,`; 226 } 227 228 .`).concat(yu," .").concat(yu,` { 229 right: 0 `).concat(i,`; 230 } 231 232 .`).concat(vu," .").concat(vu,` { 233 margin-right: 0 `).concat(i,`; 234 } 235 236 body[`).concat(jo,`] { 237 `).concat(XO,": ").concat(c,`px; 238 } 239`)},Fv=function(){var e=parseInt(document.body.getAttribute(jo)||"0",10);return isFinite(e)?e:0},gA=function(){C.useEffect(function(){return document.body.setAttribute(jo,(Fv()+1).toString()),function(){var e=Fv()-1;e<=0?document.body.removeAttribute(jo):document.body.setAttribute(jo,e.toString())}},[])},yA=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;gA();var l=C.useMemo(function(){return hA(s)},[s]);return C.createElement(pA,{styles:mA(l,!t,s,n?"":"!important")})},ch=!1;if(typeof window<"u")try{var eu=Object.defineProperty({},"passive",{get:function(){return ch=!0,!0}});window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,eu)}catch{ch=!1}var Ro=ch?{passive:!1}:!1,vA=function(e){return e.tagName==="TEXTAREA"},J0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vA(e)&&n[t]==="visible")},xA=function(e){return J0(e,"overflowY")},wA=function(e){return J0(e,"overflowX")},zv=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=Z0(e,i);if(s){var l=eS(e,i),u=l[1],c=l[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},SA=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},bA=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Z0=function(e,t){return e==="v"?xA(t):wA(t)},eS=function(e,t){return e==="v"?SA(t):bA(t)},kA=function(e,t){return e==="h"&&t==="rtl"?-1:1},EA=function(e,t,n,i,s){var l=kA(e,window.getComputedStyle(t).direction),u=l*i,c=n.target,f=t.contains(c),h=!1,p=u>0,g=0,w=0;do{if(!c)break;var v=eS(e,c),k=v[0],S=v[1],b=v[2],_=S-b-l*k;(k||_)&&Z0(e,c)&&(g+=_,w+=k);var P=c.parentNode;c=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(p&&Math.abs(g)<1||!p&&Math.abs(w)<1)&&(h=!0),h},tu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bv=function(e){return[e.deltaX,e.deltaY]},Uv=function(e){return e&&"current"in e?e.current:e},CA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_A=function(e){return` 240 .block-interactivity-`.concat(e,` {pointer-events: none;} 241 .allow-interactivity-`).concat(e,` {pointer-events: all;} 242`)},NA=0,To=[];function RA(e){var t=C.useRef([]),n=C.useRef([0,0]),i=C.useRef(),s=C.useState(NA++)[0],l=C.useState(X0)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=GO([e.lockRef.current],(e.shards||[]).map(Uv),!0).filter(Boolean);return S.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(S,b){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var _=tu(S),P=n.current,R="deltaX"in S?S.deltaX:P[0]-_[0],j="deltaY"in S?S.deltaY:P[1]-_[1],O,L=S.target,V=Math.abs(R)>Math.abs(j)?"h":"v";if("touches"in S&&V==="h"&&L.type==="range")return!1;var I=zv(V,L);if(!I)return!0;if(I?O=V:(O=V==="v"?"h":"v",I=zv(V,L)),!I)return!1;if(!i.current&&"changedTouches"in S&&(R||j)&&(i.current=O),!O)return!0;var D=i.current||O;return EA(D,b,S,D==="h"?R:j)},[]),f=C.useCallback(function(S){var b=S;if(!(!To.length||To[To.length-1]!==l)){var _="deltaY"in b?Bv(b):tu(b),P=t.current.filter(function(O){return O.name===b.type&&(O.target===b.target||b.target===O.shadowParent)&&CA(O.delta,_)})[0];if(P&&P.should){b.cancelable&&b.preventDefault();return}if(!P){var R=(u.current.shards||[]).map(Uv).filter(Boolean).filter(function(O){return O.contains(b.target)}),j=R.length>0?c(b,R[0]):!u.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),h=C.useCallback(function(S,b,_,P){var R={name:S,delta:b,target:_,should:P,shadowParent:TA(_)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(j){return j!==R})},1)},[]),p=C.useCallback(function(S){n.current=tu(S),i.current=void 0},[]),g=C.useCallback(function(S){h(S.type,Bv(S),S.target,c(S,e.lockRef.current))},[]),w=C.useCallback(function(S){h(S.type,tu(S),S.target,c(S,e.lockRef.current))},[]);C.useEffect(function(){return To.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",f,Ro),document.addEventListener("touchmove",f,Ro),document.addEventListener("touchstart",p,Ro),function(){To=To.filter(function(S){return S!==l}),document.removeEventListener("wheel",f,Ro),document.removeEventListener("touchmove",f,Ro),document.removeEventListener("touchstart",p,Ro)}},[]);var v=e.removeScrollBar,k=e.inert;return C.createElement(C.Fragment,null,k?C.createElement(l,{styles:_A(s)}):null,v?C.createElement(yA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function TA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const PA=iA(Y0,RA);var tS=C.forwardRef(function(e,t){return C.createElement(Qu,Zn({},e,{ref:t,sideCar:PA}))});tS.classNames=Qu.classNames;var OA=[" ","Enter","ArrowUp","ArrowDown"],AA=[" ","Enter"],Xi="Select",[Ku,Gu,IA]=y0(Xi),[ss]=Nl(Xi,[IA,M0]),Yu=M0(),[LA,vi]=ss(Xi),[jA,MA]=ss(Xi),nS=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:s,onOpenChange:l,value:u,defaultValue:c,onValueChange:f,dir:h,name:p,autoComplete:g,disabled:w,required:v,form:k}=e,S=Yu(t),[b,_]=C.useState(null),[P,R]=C.useState(null),[j,O]=C.useState(!1),L=Yh(h),[V,I]=Tu({prop:i,defaultProp:s??!1,onChange:l,caller:Xi}),[D,Q]=Tu({prop:u,defaultProp:c,onChange:f,caller:Xi}),q=C.useRef(null),U=b?k||!!b.closest("form"):!0,[K,J]=C.useState(new Set),X=Array.from(K).map(ee=>ee.props.value).join(";");return x.jsx(LO,{...S,children:x.jsxs(LA,{required:v,scope:t,trigger:b,onTriggerChange:_,valueNode:P,onValueNodeChange:R,valueNodeHasChildren:j,onValueNodeHasChildrenChange:O,contentId:Rl(),value:D,onValueChange:Q,open:V,onOpenChange:I,dir:L,triggerPointerDownPosRef:q,disabled:w,children:[x.jsx(Ku.Provider,{scope:t,children:x.jsx(jA,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(ee=>{J(ae=>new Set(ae).add(ee))},[]),onNativeOptionRemove:C.useCallback(ee=>{J(ae=>{const $=new Set(ae);return $.delete(ee),$})},[]),children:n})}),U?x.jsxs(_S,{"aria-hidden":!0,required:v,tabIndex:-1,name:p,autoComplete:g,value:D,onChange:ee=>Q(ee.target.value),disabled:w,form:k,children:[D===void 0?x.jsx("option",{value:""}):null,Array.from(K)]},X):null]})})};nS.displayName=Xi;var rS="SelectTrigger",iS=C.forwardRef((e,t)=>
vendor: 18,171 bytes, line 242
242{const{__scopeSelect:n,disabled:i=!1,...s}=e,l=Yu(n),u=vi(rS,n),c=u.disabled||i,f=yt(t,u.onTriggerChange),h=Gu(n),p=C.useRef("touch"),[g,w,v]=RS(S=>{const b=h().filter(R=>!R.disabled),_=b.find(R=>R.value===u.value),P=TS(b,S,_);P!==void 0&&u.onValueChange(P.value)}),k=S=>{c||(u.onOpenChange(!0),v()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return x.jsx(jO,{asChild:!0,...l,children:x.jsx(Ke.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":NS(u.value)?"":void 0,...s,ref:f,onClick:Qe(s.onClick,S=>{S.currentTarget.focus(),p.current!=="mouse"&&k(S)}),onPointerDown:Qe(s.onPointerDown,S=>{p.current=S.pointerType;const b=S.target;b.hasPointerCapture(S.pointerId)&&b.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(k(S),S.preventDefault())}),onKeyDown:Qe(s.onKeyDown,S=>{const b=g.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(b&&S.key===" ")&&OA.includes(S.key)&&(k(),S.preventDefault())})})})});iS.displayName=rS;var oS="SelectValue",sS=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:s,children:l,placeholder:u="",...c}=e,f=vi(oS,n),{onValueNodeHasChildrenChange:h}=f,p=l!==void 0,g=yt(t,f.onValueNodeChange);return jt(()=>{h(p)},[h,p]),x.jsx(Ke.span,{...c,ref:g,style:{pointerEvents:"none"},children:NS(f.value)?x.jsx(x.Fragment,{children:u}):l})});sS.displayName=oS;var DA="SelectIcon",lS=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...s}=e;return x.jsx(Ke.span,{"aria-hidden":!0,...s,ref:t,children:i||"â¼"})});lS.displayName=DA;var FA="SelectPortal",aS=e=>x.jsx(q0,{asChild:!0,...e});aS.displayName=FA;var Ji="SelectContent",uS=C.forwardRef((e,t)=>{const n=vi(Ji,e.__scopeSelect),[i,s]=C.useState();if(jt(()=>{s(new DocumentFragment)},[]),!n.open){const l=i;return l?bl.createPortal(x.jsx(cS,{scope:e.__scopeSelect,children:x.jsx(Ku.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),l):null}return x.jsx(dS,{...e,ref:t})});uS.displayName=Ji;var jn=10,[cS,xi]=ss(Ji),zA="SelectContentImpl",BA=dl("SelectContent.RemoveScroll"),dS=C.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:l,onPointerDownOutside:u,side:c,sideOffset:f,align:h,alignOffset:p,arrowPadding:g,collisionBoundary:w,collisionPadding:v,sticky:k,hideWhenDetached:S,avoidCollisions:b,..._}=e,P=vi(Ji,n),[R,j]=C.useState(null),[O,L]=C.useState(null),V=yt(t,ie=>j(ie)),[I,D]=C.useState(null),[Q,q]=C.useState(null),U=Gu(n),[K,J]=C.useState(!1),X=C.useRef(!1);C.useEffect(()=>{if(R)return KO(R)},[R]),oP();const ee=C.useCallback(ie=>{const[pe,...ke]=U().map(je=>je.ref.current),[Ee]=ke.slice(-1),Oe=document.activeElement;for(const je of ie)if(je===Oe||(je==null||je.scrollIntoView({block:"nearest"}),je===pe&&O&&(O.scrollTop=0),je===Ee&&O&&(O.scrollTop=O.scrollHeight),je==null||je.focus(),document.activeElement!==Oe))return},[U,O]),ae=C.useCallback(()=>ee([I,R]),[ee,I,R]);C.useEffect(()=>{K&&ae()},[K,ae]);const{onOpenChange:$,triggerPointerDownPosRef:se}=P;C.useEffect(()=>{if(R){let ie={x:0,y:0};const pe=Ee=>{var Oe,je;ie={x:Math.abs(Math.round(Ee.pageX)-(((Oe=se.current)==null?void 0:Oe.x)??0)),y:Math.abs(Math.round(Ee.pageY)-(((je=se.current)==null?void 0:je.y)??0))}},ke=Ee=>{ie.x<=10&&ie.y<=10?Ee.preventDefault():R.contains(Ee.target)||$(!1),document.removeEventListener("pointermove",pe),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",ke,{capture:!0})}}},[R,$,se]),C.useEffect(()=>{const ie=()=>$(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[$]);const[N,F]=RS(ie=>{const pe=U().filter(Oe=>!Oe.disabled),ke=pe.find(Oe=>Oe.ref.current===document.activeElement),Ee=TS(pe,ie,ke);Ee&&setTimeout(()=>Ee.ref.current.focus())}),Z=C.useCallback((ie,pe,ke)=>{const Ee=!X.current&&!ke;(P.value!==void 0&&P.value===pe||Ee)&&(D(ie),Ee&&(X.current=!0))},[P.value]),T=C.useCallback(()=>R==null?void 0:R.focus(),[R]),de=C.useCallback((ie,pe,ke)=>{const Ee=!X.current&&!ke;(P.value!==void 0&&P.value===pe||Ee)&&q(ie)},[P.value]),be=i==="popper"?dh:fS,we=be===dh?{side:c,sideOffset:f,align:h,alignOffset:p,arrowPadding:g,collisionBoundary:w,collisionPadding:v,sticky:k,hideWhenDetached:S,avoidCollisions:b}:{};return x.jsx(cS,{scope:n,content:R,viewport:O,onViewportChange:L,itemRefCallback:Z,selectedItem:I,onItemLeave:T,itemTextRefCallback:de,focusSelectedItem:ae,selectedItemText:Q,position:i,isPositioned:K,searchRef:N,children:x.jsx(tS,{as:BA,allowPinchZoom:!0,children:x.jsx(S0,{asChild:!0,trapped:P.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:Qe(s,ie=>{var pe;(pe=P.trigger)==null||pe.focus({preventScroll:!0}),ie.preventDefault()}),children:x.jsx(x0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:x.jsx(be,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:ie=>ie.preventDefault(),..._,...we,onPlaced:()=>J(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:Qe(_.onKeyDown,ie=>{const pe=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!pe&&ie.key.length===1&&F(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let Ee=U().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(Ee=Ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const Oe=ie.target,je=Ee.indexOf(Oe);Ee=Ee.slice(je+1)}setTimeout(()=>ee(Ee)),ie.preventDefault()}})})})})})})});dS.displayName=zA;var UA="SelectItemAlignedPosition",fS=C.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...s}=e,l=vi(Ji,n),u=xi(Ji,n),[c,f]=C.useState(null),[h,p]=C.useState(null),g=yt(t,V=>p(V)),w=Gu(n),v=C.useRef(!1),k=C.useRef(!0),{viewport:S,selectedItem:b,selectedItemText:_,focusSelectedItem:P}=u,R=C.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&h&&S&&b&&_){const V=l.trigger.getBoundingClientRect(),I=h.getBoundingClientRect(),D=l.valueNode.getBoundingClientRect(),Q=_.getBoundingClientRect();if(l.dir!=="rtl"){const Oe=Q.left-I.left,je=D.left-Oe,ct=V.left-je,Rt=V.width+ct,Cn=Math.max(Rt,I.width),_n=window.innerWidth-jn,fn=vv(je,[jn,Math.max(jn,_n-Cn)]);c.style.minWidth=Rt+"px",c.style.left=fn+"px"}else{const Oe=I.right-Q.right,je=window.innerWidth-D.right-Oe,ct=window.innerWidth-V.right-je,Rt=V.width+ct,Cn=Math.max(Rt,I.width),_n=window.innerWidth-jn,fn=vv(je,[jn,Math.max(jn,_n-Cn)]);c.style.minWidth=Rt+"px",c.style.right=fn+"px"}const q=w(),U=window.innerHeight-jn*2,K=S.scrollHeight,J=window.getComputedStyle(h),X=parseInt(J.borderTopWidth,10),ee=parseInt(J.paddingTop,10),ae=parseInt(J.borderBottomWidth,10),$=parseInt(J.paddingBottom,10),se=X+ee+K+$+ae,N=Math.min(b.offsetHeight*5,se),F=window.getComputedStyle(S),Z=parseInt(F.paddingTop,10),T=parseInt(F.paddingBottom,10),de=V.top+V.height/2-jn,be=U-de,we=b.offsetHeight/2,ie=b.offsetTop+we,pe=X+ee+ie,ke=se-pe;if(pe<=de){const Oe=q.length>0&&b===q[q.length-1].ref.current;c.style.bottom="0px";const je=h.clientHeight-S.offsetTop-S.offsetHeight,ct=Math.max(be,we+(Oe?T:0)+je+ae),Rt=pe+ct;c.style.height=Rt+"px"}else{const Oe=q.length>0&&b===q[0].ref.current;c.style.top="0px";const ct=Math.max(de,X+S.offsetTop+(Oe?Z:0)+we)+ke;c.style.height=ct+"px",S.scrollTop=pe-de+S.offsetTop}c.style.margin=`${jn}px 0`,c.style.minHeight=N+"px",c.style.maxHeight=U+"px",i==null||i(),requestAnimationFrame(()=>v.current=!0)}},[w,l.trigger,l.valueNode,c,h,S,b,_,l.dir,i]);jt(()=>R(),[R]);const[j,O]=C.useState();jt(()=>{h&&O(window.getComputedStyle(h).zIndex)},[h]);const L=C.useCallback(V=>{V&&k.current===!0&&(R(),P==null||P(),k.current=!1)},[R,P]);return x.jsx(VA,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:L,children:x.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:x.jsx(Ke.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});fS.displayName=UA;var $A="SelectPopperPosition",dh=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:s=jn,...l}=e,u=Yu(n);return x.jsx(MO,{...u,...l,ref:t,align:i,collisionPadding:s,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});dh.displayName=$A;var[VA,op]=ss(Ji,{}),fh="SelectViewport",hS=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...s}=e,l=xi(fh,n),u=op(fh,n),c=yt(t,l.onViewportChange),f=C.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),x.jsx(Ku.Slot,{scope:n,children:x.jsx(Ke.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Qe(s.onScroll,h=>{const p=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=u;if(w!=null&&w.current&&g){const v=Math.abs(f.current-p.scrollTop);if(v>0){const k=window.innerHeight-jn*2,S=parseFloat(g.style.minHeight),b=parseFloat(g.style.height),_=Math.max(S,b);if(_<k){const P=_+v,R=Math.min(k,P),j=P-R;g.style.height=R+"px",g.style.bottom==="0px"&&(p.scrollTop=j>0?j:0,g.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});hS.displayName=fh;var pS="SelectGroup",[HA,qA]=ss(pS),WA=C.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=Rl();return x.jsx(HA,{scope:n,id:s,children:x.jsx(Ke.div,{role:"group","aria-labelledby":s,...i,ref:t})})});WA.displayName=pS;var mS="SelectLabel",gS=C.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=qA(mS,n);return x.jsx(Ke.div,{id:s.id,...i,ref:t})});gS.displayName=mS;var Pu="SelectItem",[QA,yS]=ss(Pu),vS=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:s=!1,textValue:l,...u}=e,c=vi(Pu,n),f=xi(Pu,n),h=c.value===i,[p,g]=C.useState(l??""),[w,v]=C.useState(!1),k=yt(t,P=>{var R;return(R=f.itemRefCallback)==null?void 0:R.call(f,P,i,s)}),S=Rl(),b=C.useRef("touch"),_=()=>{s||(c.onValueChange(i),c.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(QA,{scope:n,value:i,disabled:s,textId:S,isSelected:h,onItemTextChange:C.useCallback(P=>{g(R=>R||((P==null?void 0:P.textContent)??"").trim())},[]),children:x.jsx(Ku.ItemSlot,{scope:n,value:i,disabled:s,textValue:p,children:x.jsx(Ke.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":h&&w,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:k,onFocus:Qe(u.onFocus,()=>v(!0)),onBlur:Qe(u.onBlur,()=>v(!1)),onClick:Qe(u.onClick,()=>{b.current!=="mouse"&&_()}),onPointerUp:Qe(u.onPointerUp,()=>{b.current==="mouse"&&_()}),onPointerDown:Qe(u.onPointerDown,P=>{b.current=P.pointerType}),onPointerMove:Qe(u.onPointerMove,P=>{var R;b.current=P.pointerType,s?(R=f.onItemLeave)==null||R.call(f):b.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Qe(u.onPointerLeave,P=>{var R;P.currentTarget===document.activeElement&&((R=f.onItemLeave)==null||R.call(f))}),onKeyDown:Qe(u.onKeyDown,P=>{var j;((j=f.searchRef)==null?void 0:j.current)!==""&&P.key===" "||(AA.includes(P.key)&&_(),P.key===" "&&P.preventDefault())})})})})});vS.displayName=Pu;var il="SelectItemText",xS=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:s,...l}=e,u=vi(il,n),c=xi(il,n),f=yS(il,n),h=MA(il,n),[p,g]=C.useState(null),w=yt(t,_=>g(_),f.onItemTextChange,_=>{var P;return(P=c.itemTextRefCallback)==null?void 0:P.call(c,_,f.value,f.disabled)}),v=p==null?void 0:p.textContent,k=C.useMemo(()=>x.jsx("option",{value:f.value,disabled:f.disabled,children:v},f.value),[f.disabled,f.value,v]),{onNativeOptionAdd:S,onNativeOptionRemove:b}=h;return jt(()=>(S(k),()=>b(k)),[S,b,k]),x.jsxs(x.Fragment,{children:[x.jsx(Ke.span,{id:f.textId,...l,ref:w}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?bl.createPortal(l.children,u.valueNode):null]})});xS.displayName=il;var wS="SelectItemIndicator",SS=C.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return yS(wS,n).isSelected?x.jsx(Ke.span,{"aria-hidden":!0,...i,ref:t}):null});SS.displayName=wS;var hh="SelectScrollUpButton",bS=C.forwardRef((e,t)=>{const n=xi(hh,e.__scopeSelect),i=op(hh,e.__scopeSelect),[s,l]=C.useState(!1),u=yt(t,i.onScrollButtonChange);return jt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=f.scrollTop>0;l(h)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),s?x.jsx(ES,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});bS.displayName=hh;var ph="SelectScrollDownButton",kS=C.forwardRef((e,t)=>{const n=xi(ph,e.__scopeSelect),i=op(ph,e.__scopeSelect),[s,l]=C.useState(!1),u=yt(t,i.onScrollButtonChange);return jt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)<h;l(p)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),s?x.jsx(ES,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});kS.displayName=ph;var ES=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...s}=e,l=xi("SelectScrollButton",n),u=C.useRef(null),c=Gu(n),f=C.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return C.useEffect(()=>()=>f(),[f]),jt(()=>{var p;const h=c().find(g=>g.ref.current===document.activeElement);(p=h==null?void 0:h.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),x.jsx(Ke.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:Qe(s.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(i,50))}),onPointerMove:Qe(s.onPointerMove,()=>{var h;(h=l.onItemLeave)==null||h.call(l),u.current===null&&(u.current=window.setInterval(i,50))}),onPointerLeave:Qe(s.onPointerLeave,()=>{f()})})}),KA="SelectSeparator",CS=C.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return x.jsx(Ke.div,{"aria-hidden":!0,...i,ref:t})});CS.displayName=KA;var mh="SelectArrow",GA=C.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=Yu(n),l=vi(mh,n),u=xi(mh,n);return l.open&&u.position==="popper"?x.jsx(DO,{...s,...i,ref:t}):null});GA.displayName=mh;var YA="SelectBubbleInput",_S=C.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const s=C.useRef(null),l=yt(i,s),u=$O(t);return C.useEffect(()=>{const c=s.current;if(!c)return;const f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(u!==t&&p){const g=new Event("change",{bubbles:!0});p.call(c,t),c.dispatchEvent(g)}},[u,t]),x.jsx(Ke.select,{...n,style:{...W0,...n.style},ref:l,defaultValue:t})});_S.displayName=YA;function NS(e){return e===""||e===void 0}function RS(e){const t=mi(e),n=C.useRef(""),i=C.useRef(0),s=C.useCallback(u=>{const c=n.current+u;t(c),(function f(h){n.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),l=C.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,l]}function TS(e,t,n){const s=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=XA(e,Math.max(l,0));s.length===1&&(u=u.filter(h=>h!==n));const f=u.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return f!==n?f:void 0}function XA(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var JA=nS,PS=iS,ZA=sS,e2=lS,t2=aS,OS=uS,n2=hS,AS=gS,IS=vS,r2=xS,i2=SS,LS=bS,jS=kS,MS=CS;const o2=JA,s2=ZA,DS=C.forwardRef(({className:e,children:t,...n},i)=>x.jsxs(PS,{ref:i,className:et("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,x.jsx(e2,{asChild:!0,children:x.jsx(Ih,{className:"h-4 w-4 opacity-50"})})]}));DS.displayName=PS.displayName;const FS=C.forwardRef(({className:e,...t},n)=>x.jsx(LS,{ref:n,className:et("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(fE,{className:"h-4 w-4"})}));FS.displayName=LS.displayName;const zS=C.forwardRef(({className:e,...t},n)=>x.jsx(jS,{ref:n,className:et("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(Ih,{className:"h-4 w-4"})}));zS.displayName=jS.displayName;const BS=C.forwardRef(({className:e,children:t,position:n="popper",...i},s)=>x.jsx(t2,{children:x.jsxs(OS,{ref:s,className:et("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
242de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...i,children:[x.jsx(FS,{}),x.jsx(n2,{className:et("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),x.jsx(zS,{})]})}));BS.displayName=OS.displayName;const l2=C.forwardRef(({className:e,...t},n)=>x.jsx(AS,{ref:n,className:et("px-2 py-1.5 text-sm font-semibold",e),...t}));l2.displayName=AS.displayName;const xu=C.forwardRef(({className:e,children:t,...n},i)=>x.jsxs(IS,{ref:i,className:et("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[x.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(i2,{children:x.jsx(Hx,{className:"h-4 w-4"})})}),x.jsx(r2,{children:t})]}));xu.displayName=IS.displayName;const a2=C.forwardRef(({className:e,...t},n)=>x.jsx(MS,{ref:n,className:et("-mx-1 my-1 h-px bg-muted",e),...t}));a2.displayName=MS.displayName;var mf="rovingFocusGroup.onEntryFocus",u2={bubbles:!1,cancelable:!0},Pl="RovingFocusGroup",[gh,US,c2]=y0(Pl),[d2,$S]=Nl(Pl,[c2]),[f2,h2]=d2(Pl),VS=C.forwardRef((e,t)=>x.jsx(gh.Provider,{scope:e.__scopeRovingFocusGroup,children:x.jsx(gh.Slot,{scope:e.__scopeRovingFocusGroup,children:x.jsx(p2,{...e,ref:t})})}));VS.displayName=Pl;var p2=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:s=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...g}=e,w=C.useRef(null),v=yt(t,w),k=Yh(l),[S,b]=Tu({prop:u,defaultProp:c??null,onChange:f,caller:Pl}),[_,P]=C.useState(!1),R=mi(h),j=US(n),O=C.useRef(!1),[L,V]=C.useState(0);return C.useEffect(()=>{const I=w.current;if(I)return I.addEventListener(mf,R),()=>I.removeEventListener(mf,R)},[R]),x.jsx(f2,{scope:n,orientation:i,dir:k,loop:s,currentTabStopId:S,onItemFocus:C.useCallback(I=>b(I),[b]),onItemShiftTab:C.useCallback(()=>P(!0),[]),onFocusableItemAdd:C.useCallback(()=>V(I=>I+1),[]),onFocusableItemRemove:C.useCallback(()=>V(I=>I-1),[]),children:x.jsx(Ke.div,{tabIndex:_||L===0?-1:0,"data-orientation":i,...g,ref:v,style:{outline:"none",...e.style},onMouseDown:Qe(e.onMouseDown,()=>{O.current=!0}),onFocus:Qe(e.onFocus,I=>{const D=!O.current;if(I.target===I.currentTarget&&D&&!_){const Q=new CustomEvent(mf,u2);if(I.currentTarget.dispatchEvent(Q),!Q.defaultPrevented){const q=j().filter(ee=>ee.focusable),U=q.find(ee=>ee.active),K=q.find(ee=>ee.id===S),X=[U,K,...q].filter(Boolean).map(ee=>ee.ref.current);WS(X,p)}}O.current=!1}),onBlur:Qe(e.onBlur,()=>P(!1))})})}),HS="RovingFocusGroupItem",qS=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:s=!1,tabStopId:l,children:u,...c}=e,f=Rl(),h=l||f,p=h2(HS,n),g=p.currentTabStopId===h,w=US(n),{onFocusableItemAdd:v,onFocusableItemRemove:k,currentTabStopId:S}=p;return C.useEffect(()=>{if(i)return v(),()=>k()},[i,v,k]),x.jsx(gh.ItemSlot,{scope:n,id:h,focusable:i,active:s,children:x.jsx(Ke.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:Qe(e.onMouseDown,b=>{i?p.onItemFocus(h):b.preventDefault()}),onFocus:Qe(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:Qe(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const _=y2(b,p.orientation,p.dir);if(_!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let R=w().filter(j=>j.focusable).map(j=>j.ref.current);if(_==="last")R.reverse();else if(_==="prev"||_==="next"){_==="prev"&&R.reverse();const j=R.indexOf(b.currentTarget);R=p.loop?v2(R,j+1):R.slice(j+1)}setTimeout(()=>WS(R))}}),children:typeof u=="function"?u({isCurrentTabStop:g,hasTabStop:S!=null}):u})})});qS.displayName=HS;var m2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function g2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function y2(e,t,n){const i=g2(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return m2[i]}function WS(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function v2(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var x2=VS,w2=qS;function S2(e,t){return C.useReducer((n,i)=>t[n][i]??n,e)}var QS=e=>{const{present:t,children:n}=e,i=b2(t),s=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),l=yt(i.ref,k2(s));return typeof n=="function"||i.isPresent?C.cloneElement(s,{ref:l}):null};QS.displayName="Presence";function b2(e){const[t,n]=C.useState(),i=C.useRef(null),s=C.useRef(e),l=C.useRef("none"),u=e?"mounted":"unmounted",[c,f]=S2(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const h=nu(i.current);l.current=c==="mounted"?h:"none"},[c]),jt(()=>{const h=i.current,p=s.current;if(p!==e){const w=l.current,v=nu(h);e?f("MOUNT"):v==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(p&&w!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),jt(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,g=v=>{const S=nu(i.current).includes(CSS.escape(v.animationName));if(v.target===t&&S&&(f("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},w=v=>{v.target===t&&(l.current=nu(i.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:C.useCallback(h=>{i.current=h?getComputedStyle(h):null,n(h)},[])}}function nu(e){return(e==null?void 0:e.animationName)||"none"}function k2(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}
242var Xu="Tabs",[E2]=Nl(Xu,[$S]),KS=$S(),[C2,sp]=E2(Xu),GS=C.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,onValueChange:s,defaultValue:l,orientation:u="horizontal",dir:c,activationMode:f="automatic",...h}=e,p=Yh(c),[g,w]=Tu({prop:i,onChange:s,defaultProp:l??"",caller:Xu});return x.jsx(C2,{scope:n,baseId:Rl(),value:g,onValueChange:w,orientation:u,dir:p,activationMode:f,children:x.jsx(Ke.div,{dir:p,"data-orientation":u,...h,ref:t})})});GS.displayName=Xu;var YS="TabsList",XS=C.forwardRef((e,t)=>{const{__scopeTabs:n,loop:i=!0,...s}=e,l=sp(YS,n),u=KS(n);return x.jsx(x2,{asChild:!0,...u,orientation:l.orientation,dir:l.dir,loop:i,children:x.jsx(Ke.div,{role:"tablist","aria-orientation":l.orientation,...s,ref:t})})});XS.displayName=YS;var JS="TabsTrigger",ZS=C.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,disabled:s=!1,...l}=e,u=sp(JS,n),c=KS(n),f=n1(u.baseId,i),h=r1(u.baseId,i),p=i===u.value;return x.jsx(w2,{asChild:!0,...c,focusable:!s,active:p,children:x.jsx(Ke.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:f,...l,ref:t,onMouseDown:Qe(e.onMouseDown,g=>{!s&&g.button===0&&g.ctrlKey===!1?u.onValueChange(i):g.preventDefault()}),onKeyDown:Qe(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&u.onValueChange(i)}),onFocus:Qe(e.onFocus,()=>{const g=u.activationMode!=="manual";!p&&!s&&g&&u.onValueChange(i)})})})});ZS.displayName=JS;var e1="TabsContent",t1=C.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,forceMount:s,children:l,...u}=e,c=sp(e1,n),f=n1(c.baseId,i),h=r1(c.baseId,i),p=i===c.value,g=C.useRef(p);return C.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),x.jsx(QS,{present:s||p,children:({present:w})=>x.jsx(Ke.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!w,id:h,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:w&&l})})});t1.displayName=e1;function n1(e,t){return`${e}-trigger-${t}`}function r1(e,t){return`${e}-content-${t}`}var _2=GS,i1=XS,o1=ZS,s1=t1;const N2=_2,l1=C.forwardRef(({className:e,...t},n)=>x.jsx(i1,{ref:n,className:et("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));l1.displayName=i1.displayName;const yh=C.forwardRef(({className:e,...t},n)=>x.jsx(o1,{ref:n,className:et("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));yh.displayName=o1.displayName;const vh=C.forwardRef(({className:e,...t},n)=>x.jsx(s1,{ref:n,className:et("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));vh.displayName=s1.displayName;function R2({onFileSelect:e,selectedFile:t,onClearFile:n,disabled:i}){const s=C.useRef(null),l=f=>{var p;const h=(p=f.target.files)==null?void 0:p[0];h&&e(h)},u=f=>{var p;f.preventDefault(),f.stopPropagation();const h=(p=f.dataTransfer.files)==null?void 0:p[0];h&&e(h)},c=f=>{f.preventDefault(),f.stopPropagation()};return x.jsxs("div",{children:[x.jsx("input",{ref:s,type:"file",accept:".txt,.pdf,.doc,.docx",onChange:l,className:"hidden",disabled:i}),t?x.jsxs("div",{className:"border border-gray-300 rounded-lg p-4 flex items-center justify-between bg-blue-50",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 flex items-center justify-center",children:x.jsx(CE,{className:"w-5 h-5 text-blue-600"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-medium text-gray-900",children:t.name}),x.jsxs("p",{className:"text-xs text-gray-500",children:[(t.size/1024).toFixed(2)," KB"]})]})]}),x.jsx(Xo,{variant:"ghost",size:"icon",onClick:f=>{f.stopPropagation(),n()},disabled:i,children:x.jsx(Wx,{className:"w-4 h-4"})})]}):x.jsxs("div",{onDrop:u,onDragOver:c,className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-blue-400 transition-colors cursor-pointer",onClick:()=>{var f;return(f=s.current)==null?void 0:f.click()},children:[x.jsx(ME,{className:"w-10 h-10 mx-auto mb-3 text-gray-400"}),x.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:[x.jsx("span",{className:"font-medium text-blue-600",children:"Click to upload"})," or drag and drop"]}),x.jsx("p",{className:"text-xs text-gray-500",children:"TXT, PDF, DOC, or DOCX (Max 10MB)"})]})]})}function T2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const P2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,O2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,A2={};function $v(e,t){return(A2.jsx?O2:P2).test(e)}const I2=/[ \t\n\f\r]/g;function L2(e){return typeof e=="object"?e.type==="text"?Vv(e.value):!1:Vv(e)}function Vv(e){return e.replace(I2,"")===""}
vendor: 5,364 bytes, line 242
242class Ol{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Ol.prototype.normal={};Ol.prototype.property={};Ol.prototype.space=void 0;function a1(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Ol(n,i,t)}function xh(e){return e.toLowerCase()}class tn{constructor(t,n){this.attribute=n,this.property=t}}tn.prototype.attribute="";tn.prototype.booleanish=!1;tn.prototype.boolean=!1;tn.prototype.commaOrSpaceSeparated=!1;tn.prototype.commaSeparated=!1;tn.prototype.defined=!1;tn.prototype.mustUseProperty=!1;tn.prototype.number=!1;tn.prototype.overloadedBoolean=!1;tn.prototype.property="";tn.prototype.spaceSeparated=!1;tn.prototype.space=void 0;let j2=0;const Ie=Zi(),ft=Zi(),wh=Zi(),le=Zi(),Ye=Zi(),Mo=Zi(),an=Zi();function Zi(){return 2**++j2}const Sh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:ft,commaOrSpaceSeparated:an,commaSeparated:Mo,number:le,overloadedBoolean:wh,spaceSeparated:Ye},Symbol.toStringTag,{value:"Module"})),gf=Object.keys(Sh);class lp extends tn{constructor(t,n,i,s){let l=-1;if(super(t,n),Hv(this,"space",s),typeof i=="number")for(;++l<gf.length;){const u=gf[l];Hv(this,gf[l],(i&Sh[u])===Sh[u])}}}lp.prototype.defined=!0;function Hv(e,t,n){n&&(e[t]=n)}function ls(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const l=new lp(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[xh(i)]=i,n[xh(l.attribute)]=i}return new Ol(t,n,e.space)}const u1=ls({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:Ye,ariaCurrent:null,ariaDescribedBy:Ye,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Ye,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Ye,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ye,ariaLevel:le,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Ye,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Ye,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:ft,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function c1(e,t){return t in e?e[t]:t}function d1(e,t){return c1(e,t.toLowerCase())}const M2=ls({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mo,acceptCharset:Ye,accessKey:Ye,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:Ye,autoFocus:Ie,autoPlay:Ie,blocking:Ye,capture:null,charSet:null,checked:Ie,cite:null,className:Ye,cols:le,colSpan:null,content:null,contentEditable:ft,controls:Ie,controlsList:Ye,coords:le|Mo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:wh,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:Ye,height:le,hidden:wh,high:le,href:null,hrefLang:null,htmlFor:Ye,httpEquiv:Ye,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:Ye,itemRef:Ye,itemScope:Ie,itemType:Ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ie,optimum:le,pattern:null,ping:Ye,placeholder:null,playsInl
242ine:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:Ye,required:Ie,reversed:Ie,rows:le,rowSpan:le,sandbox:Ye,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:ft,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ye,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:d1}),D2=ls({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
242-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:an,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:Ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mo,g2:Mo,glyphName:Mo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:an,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:le,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 9,087 bytes, lines 242-243
242Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:an,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:an,rev:an,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:an,requiredFeatures:an,requiredFonts:an,requiredFormats:an,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:an,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:an,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:an,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:c1}),f1=ls({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),h1=ls({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:d1}),p1=ls({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),F2={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},z2=/[A-Z]/g,qv=/-[a-z]/g,B2=/^data[-\w.:]+$/i;function U2(e,t){const n=xh(t);let i=t,s=tn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&B2.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(qv,V2);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!qv.test(l)){let u=l.replace(z2,$2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=lp}return new s(i,t)}function $2(e){return"-"+e.toLowerCase()}function V2(e){return e.charAt(1).toUpperCase()}const H2=a1([u1,M2,f1,h1,p1],"html"),ap=a1([u1,D2,f1,h1,p1],"svg");function q2(e){return e.join(" ").trim()}var Po={},yf,Wv;function W2(){if(Wv)return yf;Wv=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,f=` 243`,h="/",p="*",g="",w="comment",v="declaration";yf=function(S,b){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];b=b||{};var _=1,P=1;function R(K){var J=K.match(t);J&&(_+=J.length);var X=K.lastIndexOf(f);P=~X?K.length-X:P+K.length}function j(){var K={line:_,column:P};return function(J){return J.position=new O(K),I(),J}}function O(K){this.start=K,this.end={line:_,column:P},this.source=b.source}O.prototype.content=S;function L(K){var J=new Error(b.source+":"+_+":"+P+": "+K);if(J.reason=K,J.filename=b.source,J.line=_,J.column=P,J.source=S,!b.silent)throw J}function V(K){var J=K.exec(S);if(J){var X=J[0];return R(X),S=S.slice(X.length),J}}function I(){V(n)}function D(K){var J;for(K=K||[];J=Q();)J!==!1&&K.push(J);return K}function Q(){var K=j();if(!(h!=S.charAt(0)||p!=S.charAt(1))){for(var J=2;g!=S.charAt(J)&&(p!=S.charAt(J)||h!=S.charAt(J+1));)++J;if(J+=2,g===S.charAt(J-1))return L("End of comment missing");var X=S.slice(2,J-2);return P+=2,R(X),S=S.slice(J),P+=2,K({type:w,comment:X})}}function q(){var K=j(),J=V(i);if(J){if(Q(),!V(s))return L("property missing ':'");var X=V(l),ee=K({type:v,property:k(J[0].replace(e,g)),value:X?k(X[0].replace(e,g)):g});return V(u),ee}}function U(){var K=[];D(K);for(var J;J=q();)J!==!1&&(K.push(J),D(K));return K}return I(),U()};function k(S){return S?S.replace(c,g):g}return yf}var Qv;function Q2(){if(Qv)return Po;Qv=1;var e=Po&&Po.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=n;var t=e(W2());function n(i,s){var l=null;if(!i||typeof i!="string")return l;var u=(0,t.default)(i),c=typeof s=="function";return u.forEach(function(f){if(f.type==="declaration"){var h=f.property,p=f.value;c?s(h,p,f):p&&(l=l||{},l[h]=p)}}),l}return Po}var Xs={},Kv;function K2(){if(Kv)return Xs;Kv=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},u=function(h,p){return p.toUpperCase()},c=function(h,p){return"".concat(p,"-")},f=function(h,p){return p===void 0&&(p={}),l(h)?h:(h=h.toLowerCase(),p.reactCompat?h=h.replace(s,c):h=h.replace(i,c),h.replace(t,u))};return Xs.camelCase=f,Xs}var Js,Gv;function G2(){if(Gv)return Js;Gv=1;var e=Js&&Js.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Q2()),n=K2();function i(s,l){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(c,f){c&&f&&(u[(0,n.camelCase)(c,l)]=f)}),u}return i.default=i,Js=i,Js}var Y2=G2();const X2=wl(Y2),m1=g1("end"),up=g1("start");function g1(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function J2(e){const t=up(e),n=m1(e);if(t&&n)return{start:t,end:n}}function sl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yv(e.position):"start"in e||"end"in e?Yv(e):"line"in e||"column"in e?bh(e):""}function bh(e){return Xv(e&&e.line)+":"+Xv(e&&e.column)}function Yv(e){return bh(e&&e.start)+"-"+bh(e&&e.end)}function Xv(e){return e&&typeof e=="number"?e:1}class Mt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?s=t:!l.cause&&t&&(u=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?l.ruleId=i:(l.source=i.slice(0,f),l.ruleId=i.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=sl(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Mt.prototype.file="";Mt.prototype.name="";Mt.prototype.reason="";Mt.prototype.message="";Mt.prototype.stack="";Mt.prototype.column=void 0;Mt.prototype.line=void 0;Mt.prototype.ancestors=void 0;Mt.prototype.cause=void 0;Mt.prototype.fatal=void 0;Mt.prototype.place=void 0;Mt.prototype.ruleId=void 0;Mt.prototype.source=void 0;const cp={}.hasOwnProperty,Z2=new Map,eI=/[A-Z]/g,tI=new Set(["table","tbody","thead","tfoot","tr"]),nI=new Set(["td","th"]),y1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=dI(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 1,848 bytes, line 243
243if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=cI(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ap:H2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=v1(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function v1(e,t,n){if(t.type==="element")return iI(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return oI(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return lI(e,t,n);if(t.type==="mdxjsEsm")return sI(e,t);if(t.type==="root")return aI(e,t,n);if(t.type==="text")return uI(e,t)}function iI(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=ap,e.schema=s),e.ancestors.push(t);const l=w1(e,t.tagName,!1),u=fI(e,t);let c=fp(e,t);return tI.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!L2(f):!0})),x1(e,u,l,t),dp(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function oI(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}pl(e,t.position)}function sI(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pl(e,t.position)}function lI(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=ap,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:w1(e,t.name,!0),u=hI(e,t),c=fp(e,t);return x1(e,u,l,t),dp(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}
vendor: 4,454 bytes, line 243
243function aI(e,t,n){const i={};return dp(i,fp(e,t)),e.create(t,e.Fragment,i,n)}function uI(e,t){return t.value}function x1(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function dp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cI(e,t,n){return i;function i(s,l,u,c){const h=Array.isArray(u.children)?n:t;return c?h(l,u,c):h(l,u)}}function dI(e,t){return n;function n(i,s,l,u){const c=Array.isArray(l.children),f=up(i);return t(s,l,u,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function fI(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&cp.call(t.properties,s)){const l=pI(e,s,t.properties[s]);if(l){const[u,c]=l;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&nI.has(t.tagName)?i=c:n[u]=c}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function hI(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const u=l.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else pl(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else pl(e,t.position);else l=i.value===null?!0:i.value;n[s]=l}return n}function fp(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:Z2;for(;++i<t.children.length;){const l=t.children[i];let u;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;u=f+"-"+h,s.set(f,h+1)}}const c=v1(e,l,u);c!==void 0&&n.push(c)}return n}function pI(e,t,n){const i=U2(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?T2(n):q2(n)),i.property==="style"){let s=typeof n=="object"?n:mI(e,String(n));return e.stylePropertyNameCase==="css"&&(s=gI(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?F2[i.property]||i.property:i.attribute,n]}}function mI(e,t){try{return X2(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new Mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=y1+"#cannot-parse-style-attribute",s}}function w1(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,u;for(;++l<s.length;){const c=$v(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}i=u}else i=$v(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return cp.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);pl(e)}function pl(e,t){const n=new Mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=y1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function gI(e){const t={};let n;for(n in e)cp.call(e,n)&&(t[yI(n)]=e[n]);return t}function yI(e){let t=e.replace(eI,vI);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vI(e){return"-"+e.toLowerCase()}const vf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},xI={};function wI(e,t){const n=xI,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return S1(e,i,s)}function S1(e,t,n){if(SI(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Jv(e.children,t,n)}return Array.isArray(e)?Jv(e,t,n):""}function Jv(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=S1(e[s],t,n);return i.join("")}function SI(e){return!!(e&&typeof e=="object")}const Zv=document.createElement("i");function hp(e){const t="&"+e+";";Zv.innerHTML=t;const n=Zv.textContent;
vendor: 13,002 bytes, line 243
243return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function sr(e,t,n,i){const s=e.length;let l=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<i.length;)u=i.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function En(e,t){return e.length>0?(sr(e,e.length,0,t),e):t}const ex={}.hasOwnProperty;function bI(e){const t={};let n=-1;for(;++n<e.length;)kI(t,e[n]);return t}function kI(e,t){let n;for(n in t){const s=(ex.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){ex.call(s,u)||(s[u]=[]);const c=l[u];EI(s[u],Array.isArray(c)?c:c?[c]:[])}}}function EI(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);sr(e,0,0,i)}function b1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Do(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const er=wi(/[A-Za-z]/),cn=wi(/[\dA-Za-z]/),CI=wi(/[#-'*+\--9=?A-Z^-~]/);function kh(e){return e!==null&&(e<32||e===127)}const Eh=wi(/\d/),_I=wi(/[\dA-Fa-f]/),NI=wi(/[!-/:-@[-`{-~]/);function Pe(e){return e!==null&&e<-2}function Zt(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const RI=wi(new RegExp("\\p{P}|\\p{S}","u")),TI=wi(/\s/);function wi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function as(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&cn(e.charCodeAt(n+1))&&cn(e.charCodeAt(n+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(n+1);l<56320&&c>56319&&c<57344?(u=String.fromCharCode(l,c),s=1):u="�"}else u=String.fromCharCode(l);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Xe(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(f){return He(f)?(e.enter(n),c(f)):t(f)}function c(f){return He(f)&&l++<s?(e.consume(f),c):(e.exit(n),t(f))}}const PI={tokenize:OI};function OI(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Xe(e,t,"linePrefix")}function s(c){return e.enter("paragraph"),l(c)}function l(c){const f=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Pe(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),u)}}const AI={tokenize:II},tx={tokenize:LI};function II(e){const t=this,n=[];let i=0,s,l,u;return c;function c(R){if(i<n.length){const j=n[i];return t.containerState=j[1],e.attempt(j[0].continuation,f,h)(R)}return h(R)}function f(R){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&P();const j=t.events.length;let O=j,L;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){L=t.events[O][1].end;break}_(i);let V=j;for(;V<t.events.length;)t.events[V][1].end={...L},V++;return sr(t.events,O+1,0,t.events.slice(j)),t.events.length=V,h(R)}return c(R)}function h(R){if(i===n.length){if(!s)return w(R);if(s.currentConstruct&&s.currentConstruct.concrete)return k(R);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(tx,p,g)(R)}function p(R){return s&&P(),_(i),w(R)}function g(R){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,k(R)}function w(R){return t.containerState={},e.attempt(tx,v,k)(R)}function v(R){return i++,n.push([t.currentConstruct,t.containerState]),w(R)}function k(R){if(R===null){s&&P(),_(0),e.consume(R);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),S(R)}function S(R){if(R===null){b(e.exit("chunkFlow"),!0),_(0),e.consume(R);return}return Pe(R)?(e.consume(R),b(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(R),S)}function b(R,j){const O=t.sliceStream(R);if(j&&O.push(null),R.previous=l,l&&(l.next=R),l=R,s.defineSkip(R.start),s.write(O),t.parser.lazy[R.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<u&&(!s.events[L][1].end||s.events[L][1].end.offset>u))return;const V=t.events.length;let I=V,D,Q;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(D){Q=t.events[I][1].end;break}D=!0}for(_(i),L=V;L<t.events.length;)t.events[L][1].end={...Q},L++;sr(t.events,I+1,0,t.events.slice(V)),t.events.length=L}}function _(R){let j=n.length;for(;j-- >R;){const O=n[j];t.containerState=O[1],O[0].exit.call(t,e)}n.length=R}function P(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function LI(e,t,n){return Xe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nx(e){if(e===null||Zt(e)||TI(e))return 1;if(RI(e))return 2}function pp(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const Ch={name:"attention",resolveAll:jI,tokenize:MI};function jI(e,t){let n=-1,i,s,l,u,c,f,h,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[i][1].end},w={...e[n][1].start};rx(g,-f),rx(w,f),u={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[i][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:w},l={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:f>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[i][1].end={...u.start},e[n][1].start={...c.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=En(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=En(h,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",l,t]]),h=En(h,pp(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=En(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,h=En(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,sr(e,i-1,n-i+3,h),n=i+h.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function MI(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=nx(i);let l;return u;function u(f){return l=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===l)return e.consume(f),c;const h=e.exit("attentionSequence"),p=nx(f),g=!p||p===2&&s||n.includes(f),w=!s||s===2&&p||n.includes(i);return h._open=!!(l===42?g:g&&(s||!w)),h._close=!!(l===42?w:w&&(p||!g)),t(f)}}function rx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const DI={name:"autolink",tokenize:FI};function FI(e,t,n){let i=0;return s;function s(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(v){return er(v)?(e.consume(v),u):v===64?n(v):h(v)}function u(v){return v===43||v===45||v===46||cn(v)?(i=1,c(v)):h(v)}function c(v){return v===58?(e.consume(v),i=0,f):(v===43||v===45||v===46||cn(v))&&i++<32?(e.consume(v),c):(i=0,h(v))}function f(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):v===null||v===32||v===60||kh(v)?n(v):(e.consume(v),f)}function h(v){return v===64?(e.consume(v),p):CI(v)?(e.consume(v),h):n(v)}function p(v){return cn(v)?g(v):n(v)}function g(v){return v===46?(e.consume(v),i=0,p):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):w(v)}function w(v){if((v===45||cn(v))&&i++<63){const k=v===45?w:g;return e.consume(v),k}return n(v)}}const Ju={partial:!0,tokenize:zI};function zI(e,t,n){return i;function i(l){return He(l)?Xe(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Pe(l)?t(l):n(l)}}const k1={continuation:{tokenize:UI},exit:$I,name:"blockQuote",tokenize:BI};function BI(e,t,n){const i=this;return s;function s(u){if(u===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return He(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function UI(e,t,n){const i=this;return s;function s(u){return He(u)?Xe(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(k1,t,n)(u)}}function $I(e){e.exit("blockQuote")}const E1={name:"characterEscape",tokenize:VI};function VI(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return NI(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const C1={name:"characterReference",tokenize:HI};function HI(e,t,n){const i=this;let s=0,l,u;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,u=cn,p(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=_I,p):(e.enter("characterReferenceValue"),l=7,u=Eh,p(g))}function p(g){if(g===59&&s){const w=e.exit("characterReferenceValue");return u===cn&&!hp(i.sliceSerialize(w))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&s++<l?(e.consume(g),p):n(g)}}const ix={partial:!0,tokenize:WI},ox={concrete:!0,name:"codeFenced",tokenize:qI};function qI(e,t,n){const i=this,s={partial:!0,tokenize:O};let l=0,u=0,c;return f;function f(L){return h(L)}function h(L){const V=i.events[i.events.length-1];return l=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,c=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(L)}function p(L){return L===c?(u++,e.consume(L),p):u<3?n(L):(e.exit("codeFencedFenceSequence"),He(L)?Xe(e,g,"whitespace")(L):g(L))}function g(L){return L===null||Pe(L)?(e.exit("codeFencedFence"),i.interrupt?t(L):e.check(ix,S,j)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||Pe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):He(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xe(e,v,"whitespace")(L)):L===96&&L===c?n(L):(e.consume(L),w)}function v(L){return L===null||Pe(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(L))}function k(L){return L===null||Pe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===c?n(L):(e.consume(L),k)}function S(L){return e.attempt(s,j,b)(L)}function b(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),_}function _(L){return l>0&&He(L)?Xe(e,P,"linePrefix",l+1)(L):P(L)}function P(L){return L===null||Pe(L)?e.check(ix,S,j)(L):(e.enter("codeFlowValue"),R(L))}function R(L){return L===null||Pe(L)?(e.exit("codeFlowValue"),P(L)):(e.consume(L),R)}function j(L){return e.exit("codeFenced"),t(L)}function O(L,V,I){let D=0;return Q;function Q(X){return L.enter("lineEnding"),L.consume(X),L.exit("lineEnding"),q}function q(X){return L.enter("codeFencedFence"),He(X)?Xe(L,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):U(X)}function U(X){return X===c?(L.enter("codeFencedFenceSequence"),K(X)):I(X)}function K(X){return X===c?(D++,L.consume(X),K):D>=u?(L.exit("codeFencedFenceSequence"),He(X)?Xe(L,J,"whitespace")(X):J(X)):I(X)}function J(X){return X===null||Pe(X)?(L.exit("codeFencedFence"),V(X)):I(X)}}}function WI(e,t,n){const i=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const xf={name:"codeIndented",tokenize:KI},QI={partial:!0,tokenize:GI};function KI(e,t,n){const i=this;return s;
vendor: 5,057 bytes, line 243
243function s(h){return e.enter("codeIndented"),Xe(e,l,"linePrefix",5)(h)}function l(h){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?f(h):Pe(h)?e.attempt(QI,u,f)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Pe(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function f(h){return e.exit("codeIndented"),t(h)}}function GI(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):Pe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Xe(e,l,"linePrefix",5)(u)}function l(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Pe(u)?s(u):n(u)}}const YI={name:"codeText",previous:JI,resolve:XI,tokenize:ZI};function XI(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function JI(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ZI(e,t,n){let i=0,s,l;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),i++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(l=e.enter("codeTextSequence"),s=0,p(g)):Pe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Pe(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function p(g){return g===96?(e.consume(g),s++,p):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",h(g))}}class eL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&Zs(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zs(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zs(this.left,n.reverse())}}}function Zs(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function _1(e){const t={};let n=-1,i,s,l,u,c,f,h;const p=new eL(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,tL(p,n)),n=t[n],h=!0);else if(i[1]._container){for(l=n,s=void 0;l--;)if(u=p.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(p.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(i[1].end={...p.get(s)[1].start},c=p.slice(s,n),c.unshift(i),p.splice(s,n-s+1,c))}}return sr(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function tL(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,f=[],h={};let p,g,w=-1,v=n,k=0,S=0;const b=[S];for(;v;){for(;e.get(++s)[1]!==v;);l.push(s),v._tokenizer||(p=i.sliceStream(v),v.next||p.push(null),g&&u.defineSki
vendor: 19,286 bytes, line 243
243p(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(p),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=n;++w<c.length;)c[w][0]==="exit"&&c[w-1][0]==="enter"&&c[w][1].type===c[w-1][1].type&&c[w][1].start.line!==c[w][1].end.line&&(S=w+1,b.push(S),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):b.pop(),w=b.length;w--;){const _=c.slice(b[w],b[w+1]),P=l.pop();f.push([P,P+_.length-1]),e.splice(P,2,_)}for(f.reverse(),w=-1;++w<f.length;)h[k+f[w][0]]=k+f[w][1],k+=f[w][1]-f[w][0]-1;return h}const nL={resolve:iL,tokenize:oL},rL={partial:!0,tokenize:sL};function iL(e){return _1(e),e}function oL(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?l(c):Pe(c)?e.check(rL,u,l)(c):(e.consume(c),s)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function sL(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Xe(e,l,"linePrefix")}function l(u){if(u===null||Pe(u))return n(u);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function N1(e,t,n,i,s,l,u,c,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(_){return _===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(_),e.exit(l),w):_===null||_===32||_===41||kh(_)?n(_):(e.enter(i),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(_))}function w(_){return _===62?(e.enter(l),e.consume(_),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===62?(e.exit("chunkString"),e.exit(c),w(_)):_===null||_===60||Pe(_)?n(_):(e.consume(_),_===92?k:v)}function k(_){return _===60||_===62||_===92?(e.consume(_),v):v(_)}function S(_){return!p&&(_===null||_===41||Zt(_))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(i),t(_)):p<h&&_===40?(e.consume(_),p++,S):_===41?(e.consume(_),p--,S):_===null||_===32||_===40||kh(_)?n(_):(e.consume(_),_===92?b:S)}function b(_){return _===40||_===41||_===92?(e.consume(_),S):S(_)}}function R1(e,t,n,i,s,l){const u=this;let c=0,f;return h;function h(v){return e.enter(i),e.enter(s),e.consume(v),e.exit(s),e.enter(l),p}function p(v){return c>999||v===null||v===91||v===93&&!f||v===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(v):v===93?(e.exit(l),e.enter(s),e.consume(v),e.exit(s),e.exit(i),t):Pe(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||Pe(v)||c++>999?(e.exit("chunkString"),p(v)):(e.consume(v),f||(f=!He(v)),v===92?w:g)}function w(v){return v===91||v===92||v===93?(e.consume(v),c++,g):g(v)}}function T1(e,t,n,i,s,l){let u;return c;function c(w){return w===34||w===39||w===40?(e.enter(i),e.enter(s),e.consume(w),e.exit(s),u=w===40?41:w,f):n(w)}function f(w){return w===u?(e.enter(s),e.consume(w),e.exit(s),e.exit(i),t):(e.enter(l),h(w))}function h(w){return w===u?(e.exit(l),f(u)):w===null?n(w):Pe(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),Xe(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===u||w===null||Pe(w)?(e.exit("chunkString"),h(w)):(e.consume(w),w===92?g:p)}function g(w){return w===u||w===92?(e.consume(w),p):p(w)}}function ll(e,t){let n;return i;function i(s){return Pe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):He(s)?Xe(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const lL={name:"definition",tokenize:uL},aL={partial:!0,tokenize:cL};function uL(e,t,n){const i=this;let s;return l;function l(v){return e.enter("definition"),u(v)}function u(v){return R1.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function c(v){return s=Do(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),f):n(v)}function f(v){return Zt(v)?ll(e,h)(v):h(v)}function h(v){return N1(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function p(v){return e.attempt(aL,g,g)(v)}function g(v){return He(v)?Xe(e,w,"whitespace")(v):w(v)}function w(v){return v===null||Pe(v)?(e.exit("definition"),i.parser.defined.push(s),t(v)):n(v)}}function cL(e,t,n){return i;function i(c){return Zt(c)?ll(e,s)(c):n(c)}function s(c){return T1(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return He(c)?Xe(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Pe(c)?t(c):n(c)}}const dL={name:"hardBreakEscape",tokenize:fL};function fL(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Pe(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const hL={name:"headingAtx",resolve:pL,tokenize:mL};function pL(e,t){let n=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},sr(e,i,n-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function mL(e,t,n){let i=0;return s;function s(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),u(p)}function u(p){return p===35&&i++<6?(e.consume(p),u):p===null||Zt(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),f(p)):p===null||Pe(p)?(e.exit("atxHeading"),t(p)):He(p)?Xe(e,c,"whitespace")(p):(e.enter("atxHeadingText"),h(p))}function f(p){return p===35?(e.consume(p),f):(e.exit("atxHeadingSequence"),c(p))}function h(p){return p===null||p===35||Zt(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),h)}}const gL=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sx=["pre","script","style","textarea"],yL={concrete:!0,name:"htmlFlow",resolveTo:wL,tokenize:SL},vL={partial:!0,tokenize:kL},xL={partial:!0,tokenize:bL};function wL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function SL(e,t,n){const i=this;let s,l,u,c,f;return h;function h(T){return p(T)}function p(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),g}function g(T){return T===33?(e.consume(T),w):T===47?(e.consume(T),l=!0,S):T===63?(e.consume(T),s=3,i.interrupt?t:N):er(T)?(e.consume(T),u=String.fromCharCode(T),b):n(T)}function w(T){return T===45?(e.consume(T),s=2,v):T===91?(e.consume(T),s=5,c=0,k):er(T)?(e.consume(T),s=4,i.interrupt?t:N):n(T)}function v(T){return T===45?(e.consume(T),i.interrupt?t:N):n(T)}function k(T){const de="CDATA[";return T===de.charCodeAt(c++)?(e.consume(T),c===de.length?i.interrupt?t:U:k):n(T)}function S(T){return er(T)?(e.consume(T),u=String.fromCharCode(T),b):n(T)}function b(T){if(T===null||T===47||T===62||Zt(T)){const de=T===47,be=u.toLowerCase();return!de&&!l&&sx.includes(be)?(s=1,i.interrupt?t(T):U(T)):gL.includes(u.toLowerCase())?(s=6,de?(e.consume(T),_):i.interrupt?t(T):U(T)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(T):l?P(T):R(T))}return T===45||cn(T)?(e.consume(T),u+=String.fromCharCode(T),b):n(T)}function _(T){return T===62?(e.consume(T),i.interrupt?t:U):n(T)}function P(T){return He(T)?(e.consume(T),P):Q(T)}function R(T){return T===47?(e.consume(T),Q):T===58||T===95||er(T)?(e.consume(T),j):He(T)?(e.consume(T),R):Q(T)}function j(T){return T===45||T===46||T===58||T===95||cn(T)?(e.consume(T),j):O(T)}function O(T){return T===61?(e.consume(T),L):He(T)?(e.consume(T),O):R(T)}function L(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),f=T,V):He(T)?(e.consume(T),L):I(T)}function V(T){return T===f?(e.consume(T),f=null,D):T===null||Pe(T)?n(T):(e.consume(T),V)}function I(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Zt(T)?O(T):(e.consume(T),I)}function D(T){return T===47||T===62||He(T)?R(T):n(T)}function Q(T){return T===62?(e.consume(T),q):n(T)}function q(T){return T===null||Pe(T)?U(T):He(T)?(e.consume(T),q):n(T)}function U(T){return T===45&&s===2?(e.consume(T),ee):T===60&&s===1?(e.consume(T),ae):T===62&&s===4?(e.consume(T),F):T===63&&s===3?(e.consume(T),N):T===93&&s===5?(e.consume(T),se):Pe(T)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(vL,Z,K)(T)):T===null||Pe(T)?(e.exit("htmlFlowData"),K(T)):(e.consume(T),U)}function K(T){return e.check(xL,J,Z)(T)}function J(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),X}function X(T){return T===null||Pe(T)?K(T):(e.enter("htmlFlowData"),U(T))}function ee(T){return T===45?(e.consume(T),N):U(T)}function ae(T){return T===47?(e.consume(T),u="",$):U(T)}function $(T){if(T===62){const de=u.toLowerCase();return sx.includes(de)?(e.consume(T),F):U(T)}return er(T)&&u.length<8?(e.consume(T),u+=String.fromCharCode(T),$):U(T)}function se(T){return T===93?(e.consume(T),N):U(T)}function N(T){return T===62?(e.consume(T),F):T===45&&s===2?(e.consume(T),N):U(T)}function F(T){return T===null||Pe(T)?(e.exit("htmlFlowData"),Z(T)):(e.consume(T),F)}function Z(T){return e.exit("htmlFlow"),t(T)}}function bL(e,t,n){const i=this;return s;function s(u){return Pe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function kL(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Ju,t,n)}}const EL={name:"htmlText",tokenize:CL};function CL(e,t,n){const i=this;let s,l,u;return c;function c(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),f}function f(N){return N===33?(e.consume(N),h):N===47?(e.consume(N),O):N===63?(e.consume(N),R):er(N)?(e.consume(N),I):n(N)}function h(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),l=0,k):er(N)?(e.consume(N),P):n(N)}function p(N){return N===45?(e.consume(N),v):n(N)}function g(N){return N===null?n(N):N===45?(e.consume(N),w):Pe(N)?(u=g,ae(N)):(e.consume(N),g)}function w(N){return N===45?(e.consume(N),v):g(N)}function v(N){return N===62?ee(N):N===45?w(N):g(N)}function k(N){const F="CDATA[";return N===F.charCodeAt(l++)?(e.consume(N),l===F.length?S:k):n(N)}function S(N){return N===null?n(N):N===93?(e.consume(N),b):Pe(N)?(u=S,ae(N)):(e.consume(N),S)}function b(N){return N===93?(e.consume(N),_):S(N)}function _(N){return N===62?ee(N):N===93?(e.consume(N),_):S(N)}function P(N){return N===null||N===62?ee(N):Pe(N)?(u=P,ae(N)):(e.consume(N),P)}function R(N){return N===null?n(N):N===63?(e.consume(N),j):Pe(N)?(u=R,ae(N)):(e.consume(N),R)}function j(N){return N===62?ee(N):R(N)}function O(N){return er(N)?(e.consume(N),L):n(N)}function L(N){return N===45||cn(N)?(e.consume(N),L):V(N)}function V(N){return Pe(N)?(u=V,ae(N)):He(N)?(e.consume(N),V):ee(N)}function I(N){return N===45||cn(N)?(e.consume(N),I):N===47||N===62||Zt(N)?D(N):n(N)}function D(N){return N===47?(e.consume(N),ee):N===58||N===95||er(N)?(e.consume(N),Q):Pe(N)?(u=D,ae(N)):He(N)?(e.consume(N),D):ee(N)}function Q(N){return N===45||N===46||N===58||N===95||cn(N)?(e.consume(N),Q):q(N)}function q(N){return N===61?(e.consume(N),U):Pe(N)?(u=q,ae(N)):He(N)?(e.consume(N),q):D(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),s=N,K):Pe(N)?(u=U,ae(N)):He(N)?(e.consume(N),U):(e.consume(N),J)}function K(N){return N===s?(e.consume(N),s=void 0,X):N===null?n(N):Pe(N)?(u=K,ae(N)):(e.consume(N),K)}function J(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Zt(N)?D(N):(e.consume(N),J)}function X(N){return N===47||N===62||Zt(N)?D(N):n(N)}function ee(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function ae(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),$}function $(N){return He(N)?Xe(e,se,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):se(N)}function se(N){return e.enter("htmlTextData"),u(N)}}const mp={name:"labelEnd",resolveAll:TL,resolveTo:PL,tokenize:OL},_L={tokenize:AL},NL={tokenize:IL},RL={tokenize:LL};function TL(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&sr(e,0,e.length,n),e}function PL(e,t){let n=e.length,i=0,s,l,u,c;for(;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(u=n);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},p={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[u-2][1].start}};return c=[["enter",f,t],["enter",h,t]],c=En(c,e.slice(l+1,l+i+3)),c=En(c,[["enter",p,t]]),c=En(c,pp(t.parser.constructs.insideSpan.null,e.slice(l+i+4,u-3),t)),c=En(c,[["exit",p,t],e[u-2],e[u-1],["exit",h,t]]),c=En(c,e.slice(u+1)),c=En(c,[["exit",f,t]]),sr(e,l,e.length,c),e}function OL(e,t,n){const i=this;let s=i.events.length,l,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return c;function c(w){return l?l._inactive?g(w):(u=i.parser.defined.includes(Do(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(w),e.exit("labelMarker"),e.exit("labelEnd"),f):n(w)}function f(w){return w===40?e.attempt(_L,p,u?p:g)(w):w===91?e.attempt(NL,p,u?h:g)(w):u?p(w):g(w)}function h(w){return e.attempt(RL,p,g)(w)}function p(w){return t(w)}function g(w){return l._balanced=!0,n(w)}}function AL(e,t,n){return i;function i(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return Zt(g)?ll(e,l)(g):l(g)}function l(g){return g===41?p(g):N1(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return Zt(g)?ll(e,f)(g):p(g)}function c(g){return n(g)}function f(g){return g===34||g===39||g===40?T1(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return Zt(g)?ll(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function IL(e,t,n){const i=this;return s;function s(c){return R1.call(i,e,l,u,"reference","referenceMarker","referenceString")(c)}function l(c){return i.parser.defined.includes(Do(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function LL(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const jL={name:"labelStartImage",resolveAll:mp.resolveAll,tokenize:ML};function ML(e,t,n){const i=this;return s;function s(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const DL={name:"labelStartLink",resolveAll:mp.resolveAll,tokenize:FL};function FL(e,t,n){const i=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const wf={name:"lineEnding",tokenize:zL};function zL(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Xe(e,t,"linePrefix")}}const wu={name:"thematicBreak",tokenize:BL};function BL(e,t,n){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),u(h)}function u(h){return s=h,c(h)}function c(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Pe(h))?(e.exit("thematicBreak"),t(h)):n(h)}function f(h){return h===s?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),He(h)?Xe(e,c,"whitespace")(h):c(h))}}const Kt={continuation:{tokenize:HL},exit:WL,name:"list",tokenize:VL},UL={partial:!0,tokenize:QL},$L={partial:!0,tokenize:qL};function VL(e,t,n){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return c;function c(v){const k=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:Eh(v)){if(i.containerState.type||(i.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(wu,n,h)(v):h(v);if(!i.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(v)}return n(v)}function f(v){return Eh(v)&&++u<10?(e.consume(v),f):(!i.interrupt||u<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),h(v)):n(v)}function h(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,e.check(Ju,i.interrupt?n:p,e.attempt(UL,w,g))}function p(v){return i.containerState.initialBlankLine=!0,l++,w(v)}function g(v){return He(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),w):n(v)}function w(v){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function HL(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Ju,s,l);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Xe(e,t,"listItemIndent",i.containerState.size+1)(c)}function l(c){return i.containerState.furtherBlankLines||!He(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine
vendor: 9,097 bytes, lines 243-245
243=void 0,u(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt($L,t,u)(c))}function u(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Xe(e,e.attempt(Kt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function qL(e,t,n){const i=this;return Xe(e,s,"listItemIndent",i.containerState.size+1);function s(l){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(l):n(l)}}function WL(e){e.exit(this.containerState.type)}function QL(e,t,n){const i=this;return Xe(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const u=i.events[i.events.length-1];return!He(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const lx={name:"setextUnderline",resolveTo:KL,tokenize:GL};function KL(e,t){let n=e.length,i,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",u,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function GL(e,t,n){const i=this;let s;return l;function l(h){let p=i.events.length,g;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){g=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||g)?(e.enter("setextHeadingLine"),s=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),He(h)?Xe(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Pe(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const YL={tokenize:XL};function XL(e){const t=this,n=e.attempt(Ju,i,e.attempt(this.parser.constructs.flowInitial,s,Xe(e,e.attempt(this.parser.constructs.flow,s,e.attempt(nL,s)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const JL={resolveAll:O1()},ZL=P1("string"),ej=P1("text");function P1(e){return{resolveAll:O1(e==="text"?tj:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],l=n.attempt(s,u,c);return u;function u(p){return h(p)?l(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),f}function f(p){return h(p)?(n.exit("data"),l(p)):(n.consume(p),f)}function h(p){if(p===null)return!0;const g=s[p];let w=-1;if(g)for(;++w<g.length;){const v=g[w];if(!v.previous||v.previous.call(i,i.previous))return!0}return!1}}}function O1(e){return t;function t(n,i){let s=-1,l;for(;++s<=n.length;)l===void 0?n[s]&&n[s][1].type==="data"&&(l=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==l+2&&(n[l][1].end=n[s-1][1].end,n.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(n,i):n}}function tj(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let l=s.length,u=-1,c=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(h===-2)f=!0,c++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const nj={42:Kt,43:Kt,45:Kt,48:Kt,49:Kt,50:Kt,51:Kt,52:Kt,53:Kt,54:Kt,55:Kt,56:Kt,57:Kt,62:k1},rj={91:lL},ij={[-2]:xf,[-1]:xf,32:xf},oj={35:hL,42:wu,45:[lx,wu],60:yL,61:lx,95:wu,96:ox,126:ox},sj={38:C1,92:E1},lj={[-5]:wf,[-4]:wf,[-3]:wf,33:jL,38:C1,42:Ch,60:[DI,EL],91:DL,92:[dL,E1],93:mp,95:Ch,96:YI},aj={null:[Ch,JL]},uj={null:[42,95]},cj={null:[]},dj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uj,contentInitial:rj,disable:cj,document:nj,flow:oj,flowInitial:ij,insideSpan:aj,string:sj,text:lj},Symbol.toStringTag,{value:"Module"}));function fj(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},l=[];let u=[],c=[];const f={attempt:V(O),check:V(L),consume:P,enter:R,exit:j,interrupt:V(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:k,parser:e,previous:null,sliceSerialize:w,sliceStream:v,write:g};let p=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function g(q){return u=En(u,q),b(),u[u.length-1]!==null?[]:(I(t,0),h.events=pp(l,h.events,h),h.events)}function w(q,U){return pj(v(q),U)}function v(q){return hj(u,q)}function k(){const{_bufferIndex:q,_index:U,line:K,column:J,offset:X}=i;return{_bufferIndex:q,_index:U,line:K,column:J,offset:X}}function S(q){s[q.line]=q.column,Q()}function b(){let q;for(;i._index<u.length;){const U=u[i._index];if(typeof U=="string")for(q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===q&&i._bufferIndex<U.length;)_(U.charCodeAt(i._bufferIndex));else _(U)}}function _(q){p=p(q)}function P(q){Pe(q)?(i.line++,i.column=1,i.offset+=q===-3?2:1,Q()):q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=q}function R(q,U){const K=U||{};return K.type=q,K.start=k(),h.events.push(["enter",K,h]),c.push(K),K}function j(q){const U=c.pop();return U.end=k(),h.events.push(["exit",U,h]),U}function O(q,U){I(q,U.from)}function L(q,U){U.restore()}function V(q,U){return K;function K(J,X,ee){let ae,$,se,N;return Array.isArray(J)?Z(J):"tokenize"in J?Z([J]):F(J);function F(we){return ie;function ie(pe){const ke=pe!==null&&we[pe],Ee=pe!==null&&we.null,Oe=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return Z(Oe)(pe)}}function Z(we){return ae=we,$=0,we.length===0?ee:T(we[$])}function T(we){return ie;function ie(pe){return N=D(),se=we,we.partial||(h.currentConstruct=we),we.name&&h.parser.constructs.disable.null.includes(we.name)?be():we.tokenize.call(U?Object.assign(Object.create(h),U):h,f,de,be)(pe)}}function de(we){return q(se,N),X}function be(we){return N.restore(),++$<ae.length?T(ae[$]):ee}}}function I(q,U){q.resolveAll&&!l.includes(q)&&l.push(q),q.resolve&&sr(h.events,U,h.events.length-U,q.resolve(h.events.slice(U),h)),q.resolveTo&&(h.events=q.resolveTo(h.events,h))}function D(){const q=k(),U=h.previous,K=h.currentConstruct,J=h.events.length,X=Array.from(c);return{from:J,restore:ee};function ee(){i=q,h.previous=U,h.currentConstruct=K,h.events.length=J,c=X,Q()}}function Q(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function hj(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,l)];else{if(u=e.slice(n,s),i>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(i):u.shift()}l>0&&u.push(e[s].slice(0,l))}return u}function pj(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=` 244`;break}case-3:{u=`\r 245`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(l)}s=l===-2,i.push(u)}return i.join("")}function mj(e){const i={constructs:bI([dj,...(e||{}).extensions||[]]),content:s(PI),defined:[],document:s(AI),flow:s(YL),lazy:{},string:s(ZL),text:s(ej)};return i;function s(l){return u;function u(c){return fj(i,l,c)}}}function gj(e){for(;!_1(e););return e}const ax=/[\0\t\n\r]/g;function yj(){let e=1,t="",n=!0,i;return s;function s(l,u,c){const f=[];let h,p,g,w,v;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),g=0,t="",n&&(l.charCodeAt(0)===65279&&g++,n=void 0);g<l.length;){if(ax.lastIndex=g,h=ax.exec(l),w=h&&h.index!==void 0?h.index:l.length,v=l.charCodeAt(w),!h){t=l.slice(g);break}if(v===10&&g===w&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),g<w&&(f.push(l.slice(g,w)),e+=w-g),v){case 0:{f.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,f.push(-2);e++<p;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}g=w+1}return c&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const vj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xj(e){return e.replace(vj,wj)}function wj(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return b1(n.slice(l?2:1),l?16:10)}return hp(n)||e}const A1={}.hasOwnProperty;function Sj(e,t,n){return typeof t!="string"&&(n=t,t=void 0),bj(n)(gj(mj(n).document().write(yj()(e,t,!0))
vendor: 15,508 bytes, lines 245-249
245))}function bj(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Nn),autolinkProtocol:D,autolinkEmail:D,atxHeading:l(Cn),blockQuote:l(Ee),characterEscape:D,characterReference:D,codeFenced:l(Oe),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(Oe,u),codeText:l(je,u),codeTextData:D,data:D,codeFlowValue:D,definition:l(ct),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(Rt),hardBreakEscape:l(_n),hardBreakTrailing:l(_n),htmlFlow:l(fn,u),htmlFlowData:D,htmlText:l(fn,u),htmlTextData:D,image:l(eo),label:u,link:l(Nn),listItem:l(Nr),listItemValue:w,listOrdered:l(_r,g),listUnordered:l(_r),paragraph:l(us),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Cn),strong:l(Il),thematicBreak:l(jl)},exit:{atxHeading:f(),atxHeadingSequence:O,autolink:f(),autolinkEmail:ke,autolinkProtocol:pe,blockQuote:f(),characterEscapeValue:Q,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:we,characterReference:ie,codeFenced:f(b),codeFencedFence:S,codeFencedFenceInfo:v,codeFencedFenceMeta:k,codeFlowValue:Q,codeIndented:f(_),codeText:f(X),codeTextData:Q,data:Q,definition:f(),definitionDestinationString:j,definitionLabelString:P,definitionTitleString:R,emphasis:f(),hardBreakEscape:f(U),hardBreakTrailing:f(U),htmlFlow:f(K),htmlFlowData:Q,htmlText:f(J),htmlTextData:Q,image:f(ae),label:se,labelText:$,lineEnding:q,link:f(ee),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:de,resourceDestinationString:N,resourceTitleString:F,resource:Z,setextHeading:f(I),setextHeadingLineSequence:V,setextHeadingText:L,strong:f(),thematicBreak:f()}};I1(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(te){let ce={type:"root",children:[]};const Re={stack:[ce],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:p,data:n},Me=[];let Ue=-1;for(;++Ue<te.length;)if(te[Ue][1].type==="listOrdered"||te[Ue][1].type==="listUnordered")if(te[Ue][0]==="enter")Me.push(Ue);else{const bt=Me.pop();Ue=s(te,bt,Ue)}for(Ue=-1;++Ue<te.length;){const bt=t[te[Ue][0]];A1.call(bt,te[Ue][1].type)&&bt[te[Ue][1].type].call(Object.assign({sliceSerialize:te[Ue][2].sliceSerialize},Re),te[Ue][1])}if(Re.tokenStack.length>0){const bt=Re.tokenStack[Re.tokenStack.length-1];(bt[1]||ux).call(Re,void 0,bt[0])}for(ce.position={start:Gr(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:Gr(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<t.transforms.length;)ce=t.transforms[Ue](ce)||ce;return ce}function s(te,ce,Re){let Me=ce-1,Ue=-1,bt=!1,ar,hn,Rr,Si;for(;++Me<=Re;){const kt=te[Me];switch(kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{kt[0]==="enter"?Ue++:Ue--,Si=void 0;break}case"lineEndingBlank":{kt[0]==="enter"&&(ar&&!Si&&!Ue&&!Rr&&(Rr=Me),Si=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Si=void 0}if(!Ue&&kt[0]==="enter"&&kt[1].type==="listItemPrefix"||Ue===-1&&kt[0]==="exit"&&(kt[1].type==="listUnordered"||kt[1].type==="listOrdered")){if(ar){let $n=Me;for(hn=void 0;$n--;){const nn=te[$n];if(nn[1].type==="lineEnding"||nn[1].type==="lineEndingBlank"){if(nn[0]==="exit")continue;hn&&(te[hn][1].type="lineEndingBlank",bt=!0),nn[1].type="lineEnding",hn=$n}else if(!(nn[1].type==="linePrefix"||nn[1].type==="blockQuotePrefix"||nn[1].type==="blockQuotePrefixWhitespace"||nn[1].type==="blockQuoteMarker"||nn[1].type==="listItemIndent"))break}Rr&&(!hn||Rr<hn)&&(ar._spread=!0),ar.end=Object.assign({},hn?te[hn][1].start:kt[1].end),te.splice(hn||Me,0,["exit",ar,kt[2]]),Me++,Re++}if(kt[1].type==="listItemPrefix"){const $n={type:"listItem",_spread:!1,start:Object.assign({},kt[1].start),end:void 0};ar=$n,te.splice(Me,0,["enter",$n,kt[2]]),Me++,Re++,Rr=void 0,Si=!0}}}return te[ce][1]._spread=bt,Re}function l(te,ce){return Re;function Re(Me){c.call(this,te(Me),Me),ce&&ce.call(this,Me)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(te,ce,Re){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([ce,Re||void 0]),te.position={start:Gr(ce.start),end:void 0}}function f(te){return ce;function ce(Re){te&&te.call(this,Re),h.call(this,Re)}}function h(te,ce){const Re=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==te.type&&(ce?ce.call(this,te,Me[0]):(Me[1]||ux).call(this,te,Me[0]));else throw new Error("Cannot close `"+te.type+"` ("+sl({start:te.start,end:te.end})+"): itâs not open");Re.position.end=Gr(te.end)}function p(){return wI(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function w(te){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function v(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=te}function k(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=te}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/(\r?\n|\r)$/g,"")}function P(te){const ce=this.resume(),Re=this.stack[this.stack.length-1];Re.label=ce,Re.identifier=Do(this.sliceSerialize(te)).toLowerCase()}function R(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function j(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function O(te){const ce=this.stack[this.stack.length-1];if(!ce.depth){const Re=this.sliceSerialize(te).length;ce.depth=Re}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function V(te){const ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function D(te){const Re=this.stack[this.stack.length-1].children;let Me=Re[Re.length-1];(!Me||Me.type!=="text")&&(Me=Ll(),Me.position={start:Gr(te.start),end:void 0},Re.push(Me)),this.stack.push(Me)}function Q(te){const ce=this.stack.pop();ce.value+=this.sliceSerialize(te),ce.position.end=Gr(te.end)}function q(te){const ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=ce.children[ce.children.length-1];Re.position.end=Gr(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ce.type)&&(D.call(this,te),Q.call(this,te))}function U(){this.data.atHardBreak=!0}function K(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function J(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function X(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function ee(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=ce,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function ae(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=ce,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function $(te){const ce=this.sliceSerialize(te),Re=this.stack[this.stack.length-2];Re.label=xj(ce),Re.identifier=Do(ce).toLowerCase()}function se(){const te=this.stack[this.stack.length-1],ce=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const Me=te.children;Re.children=Me}else Re.alt=ce}function N(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function F(){const te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function Z(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function de(te){const ce=this.resume(),Re=this.stack[this.stack.length-1];Re.label=ce,Re.identifier=Do(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function be(te){this.data.characterReferenceType=te.type}function we(te){const ce=this.sliceSerialize(te),Re=this.data.characterReferenceType;let Me;Re?(Me=b1(ce,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=hp(ce);const Ue=this.stack[this.stack.length-1];Ue.value+=Me}function ie(te){const ce=this.stack.pop();ce.position.end=Gr(te.end)}function pe(te){Q.call(this,te);const ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(te)}function ke(te){Q.call(this,te);const ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(te)}function Ee(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function je(){return{type:"inlineCode",value:""}}function ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function Cn(){return{type:"heading",depth:0,children:[]}}function _n(){return{type:"break"}}function fn(){return{type:"html",value:""}}function eo(){return{type:"image",title:null,url:"",alt:null}}function Nn(){return{type:"link",title:null,url:"",children:[]}}function _r(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function Nr(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function us(){return{type:"paragraph",children:[]}}function Il(){return{type:"strong",children:[]}}function Ll(){return{type:"text",value:""}}function jl(){return{type:"thematicBreak"}}}function Gr(e){return{line:e.line,column:e.column,offset:e.offset}}function I1(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?I1(e,i):kj(e,i)}}function kj(e,t){let n;for(n in t)if(A1.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function ux(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+sl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+sl({start:t.start,end:t.end})+") is still open")}function Ej(e){const t=this;t.parser=n;function n(i){return Sj(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Cj(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function _j(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 246`}]}function Nj(e,t){const n=t.value?t.value+` 247`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Rj(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tj(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pj(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=as(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let u,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=l+1,c+=1,e.footnoteCounts.set(i,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function Oj(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Aj(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function L1(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=i:s.push({type:"text",value:i}),s}function Ij(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return L1(e,t);const s={src:as(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function Lj(e,t){const n={src:as(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function jj(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function Mj(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return L1(e,t);const s={href:as(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Dj(e,t){const n={href:as(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Fj(e,t,n){const i=e.all(t),s=n?zj(n):j1(t),l={},u=[];if(typeof t.checked=="boolean"){const p=i[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},i.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const p=i[c];(s||c!==0||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value:` 248`}),p.type==="element"&&p.tagName==="p"&&!s?u.push(...p.children):u.push(p)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:` 249`});const h={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,h),e.applyData(t,h)}function zj(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=j1(n[i])}return t}function j1(e){const t=e.spread;return t??e.children.length>1}function Bj(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,
vendor: 5,456 bytes, line 249
249!0)};return e.patch(t,l),e.applyData(t,l)}function Uj(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $j(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Vj(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hj(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=up(t.children[1]),f=m1(t.children[t.children.length-1]);c&&f&&(u.position={start:c,end:f}),s.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function qj(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let f=-1;const h=[];for(;++f<c;){const g=t.children[f],w={},v=u?u[f]:void 0;v&&(w.align=v);let k={type:"element",tagName:l,properties:w,children:[]};g&&(k.children=e.all(g),e.patch(g,k),k=e.applyData(g,k)),h.push(k)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,p),e.applyData(t,p)}function Wj(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const cx=9,dx=32;function Qj(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const l=[];for(;i;)l.push(fx(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return l.push(fx(t.slice(s),s>0,!1)),l.join("")}function fx(e,t,n){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===cx||l===dx;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(s-1);for(;l===cx||l===dx;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function Kj(e,t){const n={type:"text",value:Qj(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Gj(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Yj={blockquote:Cj,break:_j,code:Nj,delete:Rj,emphasis:Tj,footnoteReference:Pj,heading:Oj,html:Aj,imageReference:Ij,image:Lj,inlineCode:jj,linkReference:Mj,link:Dj,listItem:Fj,list:Bj,paragraph:Uj,root:$j,strong:Vj,table:Hj,tableCell:Wj,tableRow:qj,text:Kj,thematicBreak:Gj,toml:ru,yaml:ru,definition:ru,footnoteDefinition:ru};function ru(){}const M1=-1,Zu=0,al=1,Ou=2,gp=3,yp=4,vp=5,xp=6,D1=7,F1=8,hx=typeof self=="object"?self:globalThis,Xj=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,u]=t[s];switch(l){case Zu:case M1:return n(u,s);case al:{const c=n([],s);for(const f of u)c.push(i(f));return c}case Ou:{const c=n({},s);for(const[f,h]of u)c[i(f)]=i(h);return c}case gp:return n(new Date(u),s);case yp:{const{source:c,flags:f}=u;return n(new RegExp(c,f),s)}case vp:{const c=n(new Map,s);for(const[f,h]of u)c.set(i(f),i(h));return c}case xp:{const c=n(new Set,s);for(const f of u)c.add(i(f));return c}case D1:{const{name:c,message:f}=u;return n(new hx[c](f),s)}case F1:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new hx[l](u),s)};return i},px=e=>Xj(new Map,e)(0),Oo="",{toString:Jj}={},{keys:Zj}=Object,el=e=>{const t=typeof e;if(t!=="object"||!e)return[Zu,t];const n=Jj.call(e).slice(8,-1);switch(n){case"Array":return[al,Oo];case"Object":return[Ou,Oo];case"Date":return[gp,Oo];case"RegExp":return[yp,Oo];case"Map":return[vp,Oo];case"Set":return[xp,Oo];case"DataView":return[al,n]}return n.includes("Array")?[al,n]:n.includes("Error")?[D1,n]:[Ou,n]},iu=([e,t])=>e===Zu&&(t==="function"||t==="symbol"),eM=(e,t,n,i)=>{const s=(u,c)=>{const f=i.push(u)-1;return n.set(c,f),f},l=u=>{if(n.has(u))return n.get(u);let[c,f]=el(u);switch(c){case Zu:{let p=u;switch(f){case"bigint":c=F1,p=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);p=null;break;case"undefined":return s([M1],u)}return s([c,p],u)}case al:{if(f){let w=u;return f==="DataView"?w=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(w=new Uint8Array(u)),s([f,[...w]],u)}const p=[],g=s([c,p],u);for(const w of u)p.push(l(w));return g}case Ou:{if(f)switch(f){case"BigInt":return s([f,u.toString()],u);case"Boolean":case"Number":case"String":return s([f,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const p=[],g=s([c,p],u);for(const w of Zj(u))(e||!iu(el(u[w])))&&p.push([l(w),l(u[w])]);return g}case gp:return s([c,u.toISOString()],u);case yp:{const{source:p,flags:g}=u;return s([c,{source:p,flags:g}],u)}case vp:{const p=[],g=s([c,p],u);for(const[w,v]of u)(e||!(iu(el(w))||iu(el(v))))&&p.push([l(w),l(v)]);return g}case xp:{const p=[],g=s([c,p],u);for(const w of u)(e||!iu(el(w)))&&p.push(l(w));return g}}const{message:h}=u;return s([c,{name:f,message:h}],u)};return l},mx=(e,{json:t,lossy:n}={})=>{const i=[];return eM(!(t||n),!!t,new Map,i)(e),i},Au=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?px(mx(e,t)):structuredClone(e):(e,t)=>px(mx(e,t));function tM(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function nM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 3,920 bytes, lines 249-251
249function rM(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tM,i=e.options.footnoteBackLabel||nM,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const p=e.all(h),g=String(h.identifier).toUpperCase(),w=as(g.toLowerCase());let v=0;const k=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++v<=S;){k.length>0&&k.push({type:"text",value:" "});let P=typeof n=="string"?n:n(f,v);typeof P=="string"&&(P={type:"text",value:P}),k.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+w+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,v),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const b=p[p.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const P=b.children[b.children.length-1];P&&P.type==="text"?P.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...k)}else p.push(...k);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+w},children:e.wrap(p,!0)};e.patch(h,_),c.push(_)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Au(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` 250`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:` 251`}]}}const z1=(function(e){if(e==null)return lM;if(typeof e=="function")return ec(e);if(typeof e=="object")return Array.isArray(e)?iM(e):oM(e);if(typeof e=="string")return sM(e);throw new Error("Expected function, string, or object as test")});function iM(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=z1(e[n]);return ec(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function oM(e){const t=e;return ec(n);function n(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function sM(e){return ec(t);function t(n){return n&&n.type===e}}function ec(e){return t;function t(n,i,s){return!!(aM(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function lM(){return!0}function aM(e){return e!==null&&typeof e=="object"&&"type"in e}const B1=[],uM=!0,gx=!1,cM="skip";function dM(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const l=z1(s),u=i?-1:1;c(e,void 0,[])();function c(f,h,p){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return w;function w(){let v=B1,k,S,b;if((!t||l(f,h,p[p.length-1]||void 0))&&(v=fM(n(f,p)),v[0]===gx))return v;if("children"in f&&f.children){const _=f;if(_.children&&v[0]!==cM)for(S=(i?_.children.length:-1)+u,b=p.concat(_);S>-1&&S<_.children.length;){const P=_.children[S];if(k=c(P,S,b)(),k[0]===gx)return k;S=typeof k[1]=="number"?k[1]:S+u}}return v}}}function fM(e){return Array.isArray(e)?e:typeof e=="number"?[uM,e]:e==null?B1:[e]}function U1(e,t,n,i){let s,l,u;typeof t=="function"&&typeof n!="function"?(l=void 0,u=t,s=n):(l=t,u=n,s=i),dM(e,l,c,s);function c(f,h){const p=h[h.length-1],g=p?p.children.indexOf(f):void 0;return u(f,g,p)}}const _h={}.hasOwnProperty,hM={};function pM(e,t){const n=t||hM,i=new Map,s=new Map,l=new Map,u={...Yj,...n.handlers},c={all:h,applyData:gM,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:u,one:f,options:n,patch:mM,wrap:vM};return U1(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?i:s,w=String(p.identifier).toUpperCase();g.has(w)||g.set(w,p)}}),c;function f(p,g){const w=p.type,v=c.handlers[w];if(_h.call(c.handlers,w)&&v)return v(c,p,g);
vendor: 10,676 bytes, lines 251-255
251if(c.options.passThrough&&c.options.passThrough.includes(w)){if("children"in p){const{children:S,...b}=p,_=Au(b);return _.children=c.all(p),_}return Au(p)}return(c.options.unknownHandler||yM)(c,p,g)}function h(p){const g=[];if("children"in p){const w=p.children;let v=-1;for(;++v<w.length;){const k=c.one(w[v],p);if(k){if(v&&w[v-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=yx(k.value)),!Array.isArray(k)&&k.type==="element")){const S=k.children[0];S&&S.type==="text"&&(S.value=yx(S.value))}Array.isArray(k)?g.push(...k):g.push(k)}}}return g}}function mM(e,t){e.position&&(t.position=J2(e))}function gM(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,Au(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function yM(e,t){const n=t.data||{},i="value"in t&&!(_h.call(n,"hProperties")||_h.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function vM(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:` 252`});++i<e.length;)i&&n.push({type:"text",value:` 253`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:` 254`}),n}function yx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function vx(e,t){const n=pM(e,t),i=n.one(e,void 0),s=rM(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:` 255`},s),l}function xM(e,t){return e&&"run"in e?async function(n,i){const s=vx(n,{file:i,...t});await e.run(s,i)}:function(n,i){return vx(n,{file:i,...e||t})}}function xx(e){if(e)throw e}var Sf,wx;function wM(){if(wx)return Sf;wx=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var p=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!p&&!g)return!1;var w;for(w in h);return typeof w>"u"||e.call(h,w)},u=function(h,p){n&&p.name==="__proto__"?n(h,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):h[p.name]=p.newValue},c=function(h,p){if(p==="__proto__")if(e.call(h,p)){if(i)return i(h,p).value}else return;return h[p]};return Sf=function f(){var h,p,g,w,v,k,S=arguments[0],b=1,_=arguments.length,P=!1;for(typeof S=="boolean"&&(P=S,S=arguments[1]||{},b=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});b<_;++b)if(h=arguments[b],h!=null)for(p in h)g=c(S,p),w=c(h,p),S!==w&&(P&&w&&(l(w)||(v=s(w)))?(v?(v=!1,k=g&&s(g)?g:[]):k=g&&l(g)?g:{},u(S,{name:p,newValue:f(P,k,w)})):typeof w<"u"&&u(S,{name:p,newValue:w}));return S},Sf}var SM=wM();const bf=wl(SM);function Nh(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bM(){const e=[],t={run:n,use:i};return t;function n(...s){let l=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...s);function c(f,...h){const p=e[++l];let g=-1;if(f){u(f);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,p?kM(p,c)(...h):u(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function kM(e,t){let n;return i;function i(...u){const c=e.length>u.length;let f;c&&u.push(s);try{f=e.apply(this,u)}catch(h){const p=h;if(c&&n)throw p;return s(p)}c||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(u,...c){n||(n=!0,t(u,...c))}function l(u){s(null,u)}}const Gn={basename:EM,dirname:CM,extname:_M,join:NM,sep:"/"};function EM(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Al(e);let n=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,c=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else u<0&&(l=!0,u=s+1),c>-1&&(e.codePointAt(s)===t.codePointAt(c--)?c<0&&(i=s):(c=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function CM(e){if(Al(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _M(e){Al(e);let t=e.length,n=-1,i=0,s=-1,l=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function NM(...e){let t=-1,n;for(;++t<e.length;)Al(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":RM(n)}function RM(e){Al(e);const t=e.codePointAt(0)===47;let n=TM(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function TM(e,t){let n="",i=0,s=-1,l=0,u=-1,c,f;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(s===u-1||l===1))if(s!==u-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",i=0):(n=n.slice(0,f),i=n.length-1-n.lastIndexOf("/")),s=u,l=0;continue}}else if(n.length>0){n="",i=0,s=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,l=0}else c===46&&l>-1?l++:l=-1}return n}function Al(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const PM={cwd:OM};function OM(){return"/"}function Rh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function AM(e){if(typeof e=="string")e=new URL(e);else if(!Rh(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return IM(e)}function IM(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const kf=["history","path","basename","stem","extname","dirname"];class $1{constructor(t){let n;t?Rh(t)?n={path:t}:typeof t=="string"||LM(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":PM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<kf.length;){const l=kf[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)kf.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Gn.basename(this.path):void 0}set basename(t){Cf(t,"basename"),Ef(t,"basename"),this.path=Gn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Gn.dirname(this.path):void 0}set dirname(t){Sx(this.basename,"dirname"),this.path=Gn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Gn.extname(this.path):void 0}set extname(t){if(Ef(t,"extname"),Sx(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Gn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Rh(t)&&(t=AM(t)),Cf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Gn.basename(this.path,this.extname):void 0}set stem(t){Cf(t,"stem"),Ef(t,"stem"),this.path=Gn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new Mt(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ef(e,t){if(e&&e.includes(Gn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Gn.sep+"`")}function Cf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Sx(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function LM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jM=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),MM={}.hasOwnProperty;class wp extends jM{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bM()}copy(){const t=new wp;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(bf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Rf("data",this.frozen),this.namespace[t]=n,this):MM.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ou(t),i=this.parser||this.Parser;return _f("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),_f("process",this.parser||this.Parser),Nf("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,u){const c=ou(t),f=i.parse(c);
vendor: 4,869 bytes, line 255
255i.run(f,c,function(p,g,w){if(p||!g||!w)return h(p);const v=g,k=i.stringify(v,w);zM(k)?w.value=k:w.result=k,h(p,w)});function h(p,g){p||!g?u(p):l?l(g):n(void 0,g)}}}processSync(t){let n=!1,i;return this.freeze(),_f("processSync",this.parser||this.Parser),Nf("processSync",this.compiler||this.Compiler),this.process(t,s),kx("processSync","process",n),i;function s(l,u){n=!0,xx(l),i=u}}run(t,n,i){bx(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(u,c){const f=ou(n);s.run(t,f,h);function h(p,g,w){const v=g||t;p?c(p):u?u(v):i(void 0,v,w)}}}runSync(t,n){let i=!1,s;return this.run(t,n,l),kx("runSync","run",i),s;function l(u,c){xx(u),s=c,i=!0}}stringify(t,n){this.freeze();const i=ou(n),s=this.compiler||this.Compiler;return Nf("stringify",s),bx(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(Rf("use",this.frozen),t!=null)if(typeof t=="function")f(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(s.settings=bf(!0,s.settings,h.settings))}function c(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];l(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,w=-1;for(;++g<i.length;)if(i[g][0]===h){w=g;break}if(w===-1)i.push([h,...p]);else if(p.length>0){let[v,...k]=p;const S=i[w][1];Nh(S)&&Nh(v)&&(v=bf(!0,S,v)),i[w]=[h,v,...k]}}}}const DM=new wp().freeze();function _f(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bx(e){if(!Nh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ou(e){return FM(e)?e:new $1(e)}function FM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zM(e){return typeof e=="string"||BM(e)}function BM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const UM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ex=[],Cx={allowDangerousHtml:!0},$M=/^(https?|ircs?|mailto|xmpp)$/i,VM=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function HM(e){const t=qM(e),n=WM(e);return QM(t.runSync(t.parse(n),n),e)}function qM(e){const t=e.rehypePlugins||Ex,n=e.remarkPlugins||Ex,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Cx}:Cx;return DM().use(Ej).use(n).use(xM,i).use(t)}function WM(e){const t=e.children||"",n=new $1;return typeof t=="string"&&(n.value=t),n}function QM(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,u=t.skipHtml,c=t.unwrapDisallowed,f=t.urlTransform||KM;for(const p of VM)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+UM+p.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),U1(e,h),rI(e,{Fragment:x.Fragment,components:s,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});
255function h(p,g,w){if(p.type==="raw"&&w&&typeof g=="number")return u?w.children.splice(g,1):w.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let v;for(v in vf)if(Object.hasOwn(vf,v)&&Object.hasOwn(p.properties,v)){const k=p.properties[v],S=vf[v];(S===null||S.includes(p.tagName))&&(p.properties[v]=f(String(k||""),v,p))}}if(p.type==="element"){let v=n?!n.includes(p.tagName):l?l.includes(p.tagName):!1;if(!v&&i&&typeof g=="number"&&(v=!i(p,g,w)),v&&w&&typeof g=="number")return c&&p.children?w.children.splice(g,1,...p.children):w.children.splice(g,1),g}}}function KM(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||$M.test(e.slice(0,t))?e:""}function GM({output:e}){const[t,n]=C.useState(!1),i=async()=>{try{await navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)}catch(l){console.error("Failed to copy:",l)}},s=()=>{const l=new Blob([e],{type:"text/plain"}),u=URL.createObjectURL(l),c=document.createElement("a");c.href=u,c.download=`ROM-Synthesis-${Date.now()}.txt`,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(u)};return e?x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"flex gap-2 justify-end border-b pb-3",children:[x.jsxs(Xo,{variant:"outline",size:"sm",onClick:s,className:"flex items-center gap-2",children:[x.jsx(wE,{className:"w-4 h-4"}),"Download"]}),x.jsx(Xo,{variant:"outline",size:"sm",onClick:i,className:"flex items-center gap-2",children:t?x.jsxs(x.Fragment,{children:[x.jsx(Hx,{className:"w-4 h-4 text-green-600"}),x.jsx("span",{className:"text-green-600",children:"Copied!"})]}):x.jsxs(x.Fragment,{children:[x.jsx(vE,{className:"w-4 h-4"}),"Copy to Clipboard"]})})]}),x.jsx("div",{className:"prose prose-sm prose-blue max-w-none",children:x.jsx(HM,{components:{h1:({children:l})=>x.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-4 mt-6 border-b pb-2",children:l}),h2:({children:l})=>x.jsx("h2",{className:"text-xl font-bold text-gray-800 mb-3 mt-5",children:l}),h3:({children:l})=>x.jsx("h3",{className:"text-lg font-semibold text-gray-800 mb-2 mt-4",children:l}),p:({children:l})=>x.jsx("p",{className:"text-gray-700 leading-relaxed mb-3",children:l}),strong:({children:l})=>x.jsx("strong",{className:"font-bold text-gray-900",children:l}),em:({children:l})=>x.jsx("em",{className:"italic text-gray-800",children:l}),ul:({children:l})=>x.jsx("ul",{className:"list-disc list-outside ml-6 space-y-2 mb-4 text-gray-700",children:l}),ol:({children:l})=>x.jsx("ol",{className:"list-decimal list-outside ml-6 space-y-2 mb-4 text-gray-700",children:l}),li:({children:l})=>x.jsx("li",{className:"text-gray-700 leading-relaxed",children:l}),code:({inline:l,children:u,className:c})=>l?x.jsx("code",{className:"bg-gray-100 text-blue-800 px-2 py-0.5 rounded text-sm font-mono",children:u}):x.jsx("div",{className:"relative group my-4",children:x.jsx("pre",{className:"bg-gray-900 text-gray-100 rounded-lg p-4 overflow-x-auto",children:x.jsx("code",{className:c,children:u})})}),blockquote:({children:l})=>x.jsx("blockquote",{className:"border-l-4 border-blue-500 pl-4 my-4 text-gray-600 italic bg-blue-50 py-2 rounded-r",children:l}),a:({href:l,children:u})=>x.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:u}),hr:()=>x.jsx("hr",{className:"my-6 border-t-2 border-gray-200"}),table:({children:l})=>x.jsx("div",{className:"overflow-x-auto my-4",children:x.jsx("table",{className:"min-w-full border border-gray-300",children:l})}),thead:({children:l})=>x.jsx("thead",{className:"bg-gray-100",children:l}),th:({children:l})=>x.jsx("th",{className:"border border-gray-300 px-4 py-2 text-left font-semibold",children:l}),td:({children:l})=>x.jsx("td",{className:"border border-gray-300 px-4 py-2",children:l})},children:e})})]}):x.jsxs("div",{className:"text-center text-gray-400 py-12",children:[x.jsx("p",{className:"text-lg",children:"Your synthesis will appear here"}),x.jsx("p",{className:"text-sm mt-2",children:"Enter text or upload a file, then click Run"})]})}const ei=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("rounded-xl border bg-card text-card-foreground shadow",e),...t}));
255ei.displayName="Card";const ti=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("flex flex-col space-y-1.5 p-6",e),...t}));ti.displayName="CardHeader";const ni=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("font-semibold leading-none tracking-tight",e),...t}));ni.displayName="CardTitle";const YM=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("text-sm text-muted-foreground",e),...t}));YM.displayName="CardDescription";const ri=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("p-6 pt-0",e),...t}));ri.displayName="CardContent";const XM=C.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:et("flex items-center p-6 pt-0",e),...t}));XM.displayName="CardFooter";const JM=Ah("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function zt({className:e,variant:t,...n}){return x.jsx("div",{className:et(JM({variant:t}),e),...n})}function ZM({plan:e}){var k,S,b,_,P,R,j;const[t,n]=C.useState(!1),[i,s]=C.useState({}),[l,u]=C.useState(!1);if(!e||!e.meta)return null;const c=O=>{s(L=>({...L,[O]:!L[O]}))},f=async()=>{const O=eD(e);await navigator.clipboard.writeText(O),n(!0),setTimeout(()=>n(!1),2e3)},h=()=>{const O=tD(e),L=new Blob([O],{type:"text/csv"}),V=URL.createObjectURL(L),I=document.createElement("a");I.href=V,I.download=`ROM-Plan-${Date.now()}.csv`,document.body.appendChild(I),I.click(),document.body.removeChild(I),URL.revokeObjectURL(V)},p=()=>{const O=nD(e),L=new Blob([O],{type:"text/calendar"}),V=URL.createObjectURL(L),I=document.createElement("a");I.href=V,I.download=`ROM-Plan-${Date.now()}.ics`,document.body.appendChild(I),I.click(),document.body.removeChild(I),URL.revokeObjectURL(V)},g=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(e,null,2)),alert("JSON payload copied! You can POST this to Notion/Google/Email via your backend or Zapier.")}catch(O){console.error("Failed to copy JSON:",O)}},w=O=>O>=.75?"text-green-600 bg-green-50":O>=.55?"text-yellow-600 bg-yellow-50":"text-red-600 bg-red-50",v=(e.meta.overall_confidence||e._meta_confidence||.7)<.55;return x.jsxs("div",{className:"space-y-6",children:[x.jsx("div",{className:"flex items-center justify-end mb-6 pb-3 border-b",children:x.jsxs("div",{className:"relative",children:[x.jsxs(Xo,{variant:"outline",size:"sm",onClick:()=>u(!l),className:"flex items-center gap-2",children:[x.jsx(qx,{className:"w-4 h-4"}),"Export â¯"]}),l&&x.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white border border-gray-200 rounded-lg shadow-lg z-10",children:[x.jsx("button",{onClick:()=>{f(),u(!1)},className:"block w-full text-left px-3 py-2 text-sm hover:bg-gray-100 rounded-t-lg",children:"ð Copy Markdown"}),x.jsx("button",{onClick:()=>{h(),u(!1)},className:"block w-full text-left px-3 py-2 text-sm hover:bg-gray-100",children:"ð Download CSV"}),x.jsx("button",{onClick:()=>{p(),u(!1)},className:"block w-full text-left px-3 py-2 text-sm hover:bg-gray-100",children:"ð
Download ICS"}),x.jsx("button",{onClick:()=>{g(),u(!1)},className:"block w-full text-left px-3 py-2 text-sm hover:bg-gray-100 rounded-b-lg",children:"ð Copy JSON Payload"})]})]})}),v&&x.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4 flex items-start gap-3",children:[x.jsx(xy,{className:"w-5 h-5 text-yellow-600 mt-0.5"}),x.jsxs("div",{children:[x.jsx("p",{className:"font-medium text-yellow-900",children:"Low Confidence Warning"}),x.jsxs("p",{className:"text-sm text-yellow-700 mt-1",children:["Overall plan confidence is ",((e.meta.overall_confidence||e._meta_confidence||.7)*100).toFixed(0),"%. Review tasks carefully and consider gathering more information."]})]})]}),((k=e.ideas)==null?void 0:k.length)>0&&x.jsxs(ei,{className:"mb-6",children:[x.jsx(ti,{children:x.jsxs(ni,{className:"flex items-center gap-2",children:[x.jsx(yy,{className:"w-5 h-5"}),"Idea Space"]})}),x.jsx(ri,{children:x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:e.ideas.map((O,L)=>x.jsxs("div",{className:"border border-gray-200 rounded-lg p-3 hover:shadow-md transition-shadow",children:[x.jsxs("div",{className:"flex items-start justify-between mb-2",children:[x.jsxs("div",{className:"flex-1",children:[x.jsx(zt,{variant:"secondary",className:"text-xs mb-1",children:O.id}),x.jsx("p",{className:"text-sm text-gray-900 font-medium",children:O.description})]}),O.novelty&&x.jsxs(zt,{className:"bg-purple-100 text-purple-800 text-xs",children:[(O.novelty*100).toFixed(0),"% novel"]})]}),x.jsxs("div",{className:"flex gap-2 text-xs",children:[x.jsxs(zt,{variant:"outline",className:O.impact==="high"?"bg-green-50 text-green-700":O.impact==="medium"?"bg-yellow-50 text-yellow-700":"bg-gray-50 text-gray-700",children:["Impact: ",O.impact]}),x.jsxs(zt,{variant:"outline",className:O.effort==="low"?"bg-green-50 text-green-700":O.effort==="medium"?"bg-yellow-50 text-yellow-700":"bg-red-50 text-red-700",children:["Effort: ",O.effort]}),O.source_role&&x.jsx(zt,{variant:"outline",className:"bg-blue-50 text-blue-700",children:O.source_role})]})]},L))})})]}),x.jsxs(ei,{children:[x.jsx(ti,{children:x.jsxs(ni,{className:"flex items-center gap-2",children:[x.jsx(vy,{className:"w-5 h-5"}),"Plan Overview"]})}),x.jsxs(ri,{className:"space-y-4",children:[x.jsxs("div",{children:[x.jsx("h3",{className:"font-semibold text-lg mb-2",children:e.meta.objective}),x.jsx(zt,{variant:"secondary",children:e.meta.domain})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-medium text-gray-600 mb-1",children:"Decision Rationale"}),x.jsx("p",{className:"text-gray-700",children:e.meta.decision_rationale})]}),((S=e.meta.kpis)==null?void 0:S.length)>0&&x.jsxs("div",{children:[x.jsxs("p",{className:"text-sm font-medium text-gray-600 mb-2 flex items-center gap-2",children:[x.jsx(Tf,{className:"w-4 h-4"}),"Key Performance Indicators"]}),x.jsx("div",{className:"space-y-2",children:e.meta.kpis.map((O,L)=>x.jsxs("div",{className:"flex justify-between items-center bg-blue-50 px-3 py-2 rounded",children:[x.jsx("span",{className:"font-medium",children:O.name}),x.jsx("span",{className:"text-blue-700",children:O.target})]},L))})]}),((b=e.meta.risks)==null?void 0:b.length)>0&&x.jsxs("div",{children:[x.jsxs("p",{className:"text-sm font-medium text-gray-600 mb-2 flex items-center gap-2",children:[x.jsx(xy,{className:"w-4 h-4"}),"Identified Risks"]}),x.jsx("ul",{className:"list-disc list-inside space-y-1",children:e.meta.risks.map((O,L)=>x.jsx("li",{className:"text-sm text-gray-700",children:O},L))})]}),((_=e.meta.assumptions)==null?void 0:_.length)>0&&x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-medium text-gray-600 mb-2",children:"Assumptions"}),x.jsx("ul",{className:"list-disc list-inside space-y-1",children:e.meta.assumptions.map((O,L)=>x.jsx("li",{className:"text-sm text-gray-700",children:O},L))})]}),e.meta.last_refreshed&&x.jsxs("div",{className:"text-xs text-gray-500 pt-3 border-t",children:["Last refreshed: ",new Date(e.meta.last_refreshed).toLocaleStr
255ing()]})]})]}),x.jsxs("div",{className:"space-y-4",children:[x.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[x.jsx(pE,{className:"w-5 h-5"}),"Execution Plan"]}),e.plan.phases.map((O,L)=>{var V,I;return x.jsxs(ei,{children:[x.jsx(ti,{className:"cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>c(L),children:x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[i[L]?x.jsx(Ih,{className:"w-5 h-5 text-gray-500"}):x.jsx(cE,{className:"w-5 h-5 text-gray-500"}),x.jsxs("div",{children:[x.jsx(ni,{children:O.name}),x.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:[O.duration_days," days ⢠",((V=O.tasks)==null?void 0:V.length)||0," tasks"]})]})]}),x.jsx(zt,{variant:"outline",children:O.outcome})]})}),i[L]&&x.jsx(ri,{children:x.jsx("div",{className:"space-y-3",children:(I=O.tasks)==null?void 0:I.map((D,Q)=>{var q,U,K,J;return x.jsxs("div",{className:"border rounded-lg p-4 hover:shadow-md transition-shadow",children:[x.jsxs("div",{className:"flex items-start justify-between mb-2",children:[x.jsxs("div",{className:"flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx(zt,{variant:"secondary",className:"text-xs",children:D.id}),x.jsx("h4",{className:"font-semibold",children:D.title})]}),x.jsx("p",{className:"text-sm text-gray-600 mb-2",children:D.deliverable})]}),x.jsxs(zt,{className:w(D.confidence),children:[(D.confidence*100).toFixed(0),"%"]})]}),D.purpose&&x.jsx("p",{className:"text-sm text-gray-600 mb-2 italic",children:D.purpose}),x.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(FE,{className:"w-4 h-4 text-gray-400"}),x.jsx("span",{children:D.owner_role})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(gE,{className:"w-4 h-4 text-gray-400"}),x.jsxs("span",{children:[D.effort_hours,"h"]})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(sE,{className:"w-4 h-4 text-gray-400"}),x.jsxs("span",{children:["Day ",D.start_offset_days]})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(vy,{className:"w-4 h-4 text-gray-400"}),x.jsxs("span",{children:["Due: Day ",D.due_in_days]})]})]}),((q=D.checklist)==null?void 0:q.length)>0&&x.jsxs("div",{className:"mt-2",children:[x.jsx("p",{className:"text-xs font-medium text-gray-600 mb-1",children:"Checklist:"}),x.jsx("ul",{className:"list-disc list-inside space-y-0.5",children:D.checklist.map((X,ee)=>x.jsx("li",{className:"text-xs text-gray-600",children:X},ee))})]}),D.automation_suggestion&&x.jsxs("div",{className:"mt-2 bg-blue-50 border border-blue-200 rounded p-2",children:[x.jsx("p",{className:"text-xs font-medium text-blue-900 mb-1",children:"ð¡ Automation:"}),x.jsx("p",{className:"text-xs text-blue-800",children:D.automation_suggestion})]}),D.prompt_template&&x.jsxs("div",{className:"mt-2 bg-purple-50 border border-purple-200 rounded p-2",children:[x.jsx("p",{className:"text-xs font-medium text-purple-900 mb-1",children:"ð¤ AI Prompt Template:"}),x.jsx("code",{className:"text-xs text-purple-800 block whitespace-pre-wrap font-mono",children:D.prompt_template})]}),((U=D.depends_on)==null?void 0:U.length)>0&&x.jsxs("div",{className:"mt-2 text-xs text-gray-500",children:["Depends on: ",D.depends_on.join(", ")]}),D.privacy&&x.jsx("div",{className:"mt-2",children:x.jsxs(zt,{variant:"outline",className:"text-xs bg-yellow-50 text-yellow-700",children:[x.jsx(TE,{className:"w-3 h-3 mr-1"}),D.privacy]})}),((K=D.integrations)==null?void 0:K.length)>0&&x.jsx("div",{className:"mt-2 flex gap-1 flex-wrap",children:D.integrations.map((X,ee)=>x.jsx(zt,{variant:"outline",className:"text-xs",children:X},ee))}),((J=D.references)==null?void 0:J.length)>0&&x.jsxs("div",{className:"mt-3 border-t pt-2",children:[x.jsx("p",{className:"text-xs font-medium text-gray-600 mb-1",children:"References:"}),D.references.map((X,ee)=>x.jsxs("a",{href:X.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-start gap-2 text-xs text-blue-600 hover:text-blue-800 mt-1",children:[x.jsx(bE,{className:"w-3 h-3 mt-0.5 flex-shrink-0"}),x.jsxs("div",{className:"flex-1",children:[x.jsx("div",{className:"font-medium",children:X.title}),X.snippet&&x.jsx("div",{className:"text-gray-600 mt-0.5",children:X.snippet})]})]},ee))]})]},Q)})})})]},L)})]}),((P=e.experiments)==null?void 0:P.length)>0&&x.jsxs(ei,{className:"border-2 border-indigo-200 bg-indigo-50/30",children:[x.jsx(ti,{children:x.jsxs(ni,{className:"flex items-center gap-2 text-indigo-900",children:[x.jsx(Tf,{className:"w-5 h-5"}),"Experiments"]})}),x.jsx(ri,{children:x.jsx("div",{className:"space-y-4",children:e.experiments.map((O,L)=>{var V,I;return x.jsxs("div",{className:"bg-white rounded-lg p-4 border border-indigo-200",children:[x.jsx("h4",{className:"font-semibold text-indigo-900 mb-2",children:O.name}),x.jsxs("div",{className:"space-y-2 text-sm",children:[x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Hypothesis: "}),x.jsx("span",{className:"text-gray-600",children:O.hypothesis})]}),((V=O.steps)==null?void 0:V.length)>0&&x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Steps:"}),x.jsx("ol",{className:"list-decimal list-inside ml-2 mt-1 space-y-1",children:O.steps.map((D,Q)=>x.jsx("li",{className:"text-gray-600",children:D},Q))})]}),x.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Effort: "}),x.jsxs("span",{className:"text-gray-600",children:[O.effort_hours,"h"]})]}),x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"KPI: "}),x.jsx("span",{className:"text-gray-600",children:O.kpi})]})]}),x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Success: "}),x.jsx(zt,{variant:"outline",className:"ml-1",children:O.success_criteria})]}),O.risk_level&&x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Risk: "}),x.jsx(zt,{className:O.risk_level==="low"?"bg-green-100 text-green-800":O.risk_level==="medium"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800",children:O.risk_level})]}),O.user_impact&&x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Impact: "}),x.jsx("span",{className:"text-gray-600",children:O.user_impact})]}),((I=O.required_data)==null?void 0:I.length)>0&&x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Required Data: "}),x.jsx("span",{className:"text-gray-600",children:O.required_data.join(", ")})]})]})]},L)})})})]}),e.interactive_prompts&&Object.keys(e.interactive_prompts).length>0&&x.jsxs(ei,{className:"border-2 border-emerald-200 bg-emerald-50/30",children:[x.jsx(ti,{children:x.jsx(ni,{className:"flex items-center gap-2 text-emerald-900",children:"ð¬ Interactive Prompts"})}),x.jsx(ri,{children:x.jsx("div",{className:"space-y-3",children:Object.entries(e.interactive_prompts).map(([O,L])=>L&&x.jsxs("div",{className:"bg-white rounded-lg p-3 border border-emerald-200",children:[x.jsx("p",{className:"text-xs font-semibold text-emerald-900 mb-1",children:O.replace(/_/g," ").replace(/\b\w/g,V=>V.toUpperCase())}),x.jsx("p",{className:"text-sm text-gray-700 font-mono bg-gray-50 p-2 rounded",children:L})]},O))})})]}),((R=e.innovation)==null?void 0:R.length)>0&&x.jsxs(ei,{className:"border-2 border-purple-200 bg-purple-50/30",children:[x.jsx(ti,{children:x.jsxs(ni,{className:"flex items-center gap-2 text-purple-900",children:[x.jsx(yy,{className:"w-5 h-5"}),"Innovation Opportunities"]})}),x.jsx(ri,{children:x.jsx("div",{className:"space-y-4",children:e.innovation.map((O,L)=>{var V;return x.jsxs("div",{className:"bg-white rounded-lg p-4 border border-purple-200",children:[x.jsx("h4",{className:"font-semibold text-purple-900 mb-2",children:O.hypothesis}),x.jsxs("div",{className:"space-y-2 text-sm",children:[x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Experiment: "}),x.jsx("span",{className:"text-gray-600",children:O.experiment})]}),x.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Effort: "}),x.jsxs("span",{className:"text-gray-600",children:[O.effort_hours,"h"]})]}),x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"KPI: "}),x.jsx("span",{className:"text-gray-600",children:O.kpi})]})]}),x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Success: "}),x.jsx(zt,{variant:"outline",className:"ml-1",children:O.success_criteria})]}),O.user_impact&&x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Impact: "}),x.jsx("span",{className:"text-gray-600",children:O.user_impact})]}),((V=O.required_data)==null?void 0:V.length)>0&&x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-gray-700",children:"Required Data: "}),x.jsx("span",{className:"text-gray-600",children:O.required_data.join(", ")})]})]})]},L)})})})]}),((j=e.plan.alternatives_rejected)==null?void 0:j.length)>0&&x.jsxs(ei,{children:[x.jsx(ti,{children:x.jsx(ni,{className:"text-sm",children:"Alternatives Considered & Rejected"})}),x.jsx(ri,{children:x.jsx("div",{className:"space-y-2",children:e.plan.alternatives_rejected.map((O,L)=>x.jsxs("div",{className:"flex items-start gap-3 text-sm",children:[x.jsx(zt,{variant:"outline",children:O.owner}),x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:"font-medium",children:O.option}),x.jsxs("p",{className:"text-gray-600",children:["Reason: ",O.reason]})]})]},L))})})]})]})}function eD(e){var n;let t=`# ${e.meta.objective} 256 257`;return t+=`**Domain:** ${e.meta.domain} 258 259`,t+=`## Decision Rationale 260${e.meta.decision_rationale} 261 262`,((n=e.meta.kpis)==null?void 0:n.length)>0&&(t+=`## KPIs 263`,e.meta.kpis.forEach(i=>
263{t+=`- **${i.name}**: ${i.target} 264`}),t+=` 265`),t+=`## Execution Plan 266 267`,e.plan.phases.forEach(i=>{var s;t+=`### ${i.name} (${i.duration_days} days) 268`,t+=`*Outcome: ${i.outcome}* 269 270`,(s=i.tasks)==null||s.forEach(l=>{t+=`- **[${l.id}]** ${l.title} 271`,t+=` - Owner: ${l.owner_role} 272`,t+=` - Effort: ${l.effort_hours}h 273`,t+=` - Timeline: Day ${l.start_offset_days} - Day ${l.due_in_days} 274`,t+=` - Deliverable: ${l.deliverable} 275`,t+=` - Confidence: ${(l.confidence*100).toFixed(0)}% 276 277`})}),t}function tD(e){let t=`Phase,Task ID,Title,Owner,Effort (hours),Start Day,Due Day,Deliverable,Confidence,KPI Link 278`;return e.plan.phases.forEach(n=>{var i;(i=n.tasks)==null||i.forEach(s=>{t+=`"${n.name}","${s.id}","${s.title}","${s.owner_role}",${s.effort_hours},${s.start_offset_days},${s.due_in_days},"${s.deliverable}",${s.confidence},"${s.kpi_link||""}" 279`})}),t}function nD(e){const t=new Date;let n=`BEGIN:VCALENDAR 280VERSION:2.0 281PRODID:-//ROM Beta//Plan Export//EN 282CALSCALE:GREGORIAN 283METHOD:PUBLISH 284X-WR-CALNAME:ROM Plan - ${e.meta.objective} 285X-WR-TIMEZONE:UTC 286BEGIN:VTIMEZONE 287TZID:UTC 288END:VTIMEZONE 289`;return e.plan.phases.forEach(i=>{var s;(s=i.tasks)==null||s.forEach(l=>{const u=new Date(t);u.setDate(u.getDate()+l.start_offset_days);const c=new Date(t);c.setDate(c.getDate()+l.due_in_days);const f=h=>h.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z";n+=`BEGIN:VEVENT 290UID:${l.id}-${Date.now()}@rom-beta 291DTSTAMP:${f(t)} 292DTSTART:${f(u)} 293DTEND:${f(c)} 294SUMMARY:[${l.id}] ${l.title} 295DESCRIPTION:${l.deliverable}\\nOwner: ${l.owner_role}\\nEffort: ${l.effort_hours}h 296STATUS:CONFIRMED 297END:VEVENT 298`})}),n+="END:VCALENDAR",n}function wn(e,t){return{data:e,source:t,fetched_at:new Date().toISOString()}}const Yr={async search_web(e,t=5){try{const n=`Search the web for: "${e}". Return the top ${t} results with title, url, and snippet in JSON format.`,i=await It.integrations.Core.InvokeLLM({prompt:n,add_context_from_internet:!0,response_json_schema:{type:"object",properties:{results:{type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"},snippet:{type:"string"}}}}}}});return wn(i.results||[],"web_search")}catch(n){return console.error("search_web error:",n),wn([],"web_search")}},async fetch_url(e){try{const t=`Fetch and summarize the content from this URL: ${e}. Extract key information, main points, and relevant data.`,n=await It.integrations.Core.InvokeLLM({prompt:t,add_context_from_internet:!0,response_json_schema:{type:"object",properties:{title:{type:"string"},url:{type:"string"},snippet:{type:"string"},content:{type:"string"}}}});return wn([n],"url_fetch")}catch(t){return console.error("fetch_url error:",t),wn([],"url_fetch")}},async trends(e,t="US",n="7d"){try{const i=`Analyze current trends for "${e}" in ${t} over the last ${n}. Return trending topics, search volume changes, and related queries.`,s=await It.integrations.Core.InvokeLLM({prompt:i,add_context_from_internet:!0,response_json_schema:{type:"object",properties:{trends:{type:"array",items:{type:"object",properties:{title:{type:"string"},delta:{type:"string"},snippet:{type:"string"},url:{type:"string"}}}}}}});return wn(s.trends||[],"trends_analysis")}catch(i){return console.error("trends error:",i),wn([],"trends_analysis")}},async social(e,t="x",n="7d"){try{const i=`Search ${t} for discussions about "${e}" in the last ${n}. Return top conversations, engagement metrics, and sentiment.`,s=await It.integrations.Core.InvokeLLM({prompt:i,add_context_from_internet:!0,response_json_schema:{type:"object",properties:{posts:{type:"array",items:{type:"object",properties:{title:{type:"string"},snippet:{type:"string"},url:{type:"string"},engagement:{type:"string"},sentiment:{type:"string"}}}}}}});return wn(s.posts||[],`social_${t}`)}catch(i){return console.error("social error:",i),wn([],`social_${t}`)}},async analytics(e,t="30d"){try{const n=`Provide sample analytics data for ${e} over ${t}. Include trends, changes, and key insights.`,i=await It.integrations.Core.InvokeLLM({prompt:n,response_json_schema:{type:"object",properties:{metric:{type:"string"},current_value:{type:"number"},change_percent:{type:"number"},trend:{type:"string"},insights:{type:"array",items:{type:"object",properties:{title:{type:"string"},snippet:{type:"string"}}}}}}});return wn({metric:i.metric||e,current_value:i.current_value||0,change_percent:i.change_percent||0,trend:i.trend||"stable",insights:i.insights||[]},"internal_analytics")}catch(n){return console.error("analytics error:",n),wn({metric:e,insights:[]},"internal_analytics")}},async repo(e){try{const t=`Search internal documentation and knowledge base for: "${e}". Return relevant documents, code snippets, and past decisions.`,n=await It.integrations.Core.InvokeLLM({prompt:t,response_json_schema:{type:"object",properties:{documents:{type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"},snippet:{type:"string"},type:{type:"string"}}}}}}});return wn(n.documents||[],"repo_search")}catch(t){return console.error("repo error:",t),wn([],"repo_search")}}},vr={researcher:`You are RESEARCHER. Your job is to find verifiable facts using available tools. 299 300AVAILABLE TOOLS: 301- search_web(query, max_results): Search the internet 302- fetch_url(url): Get content from a specific URL 303- repo(query): Search internal documentation 304 305INSTRUCTIONS: 3061. Use tools to gather facts (you MUST use at least 2 tools) 3072. Every fact must cite a source URL 3083. Identify gaps where data is missing 309 310Return ONLY valid JSON in this EXACT format: 311{ 312 "facts": [ 313 { 314 "claim": "specific factual claim", 315 "source_url": "https://...", 316 "fetched_at": "ISO8601", 317 "confidence": 0.85 318 } 319 ], 320 "gaps": ["missing information 1", "missing information 2"], 321 "evidence_pack": [ 322 { 323 "url": "https://...", 324 "title": "Source Title", 325 "snippet": "relevant excerpt", 326 "fetched_at": "ISO8601" 327 } 328 ], 329 "tools_used": ["search_web", "fetch_url"] 330} 331 332No prose. Only JSON.`,pastPatterns:`You are PASTPATTERNS. Analyze historical data using available tools. 333 334AVAILABLE TOOLS: 335- analytics(metric, window): Get internal product metrics 336- repo(query): Search past plans and decisions 337 338INSTRUCTIONS: 3391. Use tools to find patterns in historical data 3402. Cite evidence from metrics or past documents 3413. Mark impact as positive or negative 342 343Return ONLY valid JSON: 344{ 345 "patterns": [ 346 { 347 "pattern": "description of pattern", 348 "evidence_metric": "metric name or document", 349 "impact": "positive", 350 "confidence": 0.75 351 } 352 ], 353 "evidence_pack": [ 354 { 355 "url": "internal://analytics/...", 356 "title": "Metric: ...", 357 "snippet": "data summary", 358 "fetched_at": "ISO8601" 359 } 360 ], 361 "tools_used": ["analytics", "repo"] 362}`,presentTrends:`You are PRESENTTRENDS. Identify what's happening RIGHT NOW using tools. 363 364AVAILABLE TOOLS: 365- trends(query, region, horizon): Get trend data
366- social(query, network, window): Social media discussions 367- search_web(query): Current search results 368 369INSTRUCTIONS: 3701. Use tools to identify current trends, constraints, and blockers 3712. Look for rising signals and market changes 3723. Cite sources for all trends 373 374Return ONLY valid JSON: 375{ 376 "trends": [ 377 { 378 "signal": "trend description", 379 "region": "US", 380 "delta": "rising", 381 "source_url": "https://..." 382 } 383 ], 384 "constraints": ["budget:<$10k", "deadline:<30d"], 385 "blockers": ["specific obstacle"], 386 "evidence_pack": [ 387 { 388 "url": "https://...", 389 "title": "Trend Source", 390 "snippet": "key data", 391 "fetched_at": "ISO8601" 392 } 393 ], 394 "tools_used": ["trends", "social"] 395}`,futurePrediction:`You are FUTUREPREDICTION. Forecast future scenarios using available data. 396 397AVAILABLE TOOLS: 398- analytics(metric, window): Historical metrics for forecasting 399- trends(query, region, horizon): Trend trajectories 400 401INSTRUCTIONS: 4021. Use tools to analyze historical data and trends 4032. Generate 2-4 scenarios with probabilities 4043. Include risks and expected value for each 405 406Return ONLY valid JSON: 407{ 408 "scenarios": [ 409 { 410 "name": "Aggressive Growth", 411 "p": 0.35, 412 "forecast": { 413 "kpi": "engagement", 414 "mean": 0.28, 415 "lo": 0.19, 416 "hi": 0.36 417 }, 418 "ev_note": "High risk, high reward", 419 "risks": ["market volatility", "resource constraints"] 420 } 421 ], 422 "evidence_pack": [ 423 { 424 "url": "internal://forecast", 425 "title": "Historical Data", 426 "snippet": "trend analysis", 427 "fetched_at": "ISO8601" 428 } 429 ], 430 "tools_used": ["analytics", "trends"] 431}`,cmoSynthesis:`You are CMO. Create marketing strategies from analyst insights. 432 433You have access to all analyst findings. Use them to propose 2-3 marketing plays. 434 435Return ONLY valid JSON: 436{ 437 "marketing_options": [ 438 { 439 "play": "UGC Sprint", 440 "kpi": "CTR", 441 "cost_estimate": "$5k", 442 "time_to_impact_days": 14, 443 "confidence": 0.8, 444 "sources": ["https://trend-source", "https://social-proof"] 445 } 446 ] 447}`,ctoSynthesis:`You are CTO. Propose technical initiatives from analyst insights. 448 449Consider feasibility, effort, dependencies, and risks. 450 451Return ONLY valid JSON: 452{ 453 "tech_options": [ 454 { 455 "initiative": "Auto-summary to Notion", 456 "effort_sprint_points": 8, 457 "dependencies": ["notion_api", "auth_system"], 458 "risk": "rate limits", 459 "mitigation": "implement queue system", 460 "confidence": 0.75 461 } 462 ] 463}`,cmoRebuttal:`You are CMO. Review CTO options and flag risks/adjustments. 464 465Return ONLY valid JSON: 466{ 467 "cmo_rebuttal": [ 468 { 469 "target_initiative": "Auto-summary to Notion", 470 "issue": "May not align with brand voice", 471 "adjustment": "Add brand review step" 472 } 473 ] 474}`,ctoRebuttal:`You are CTO. Review CMO plays and flag feasibility issues. 475 476Return ONLY valid JSON: 477{ 478 "cto_rebuttal": [ 479 { 480 "target_play": "UGC Sprint", 481 "issue": "Need moderation infrastructure", 482 "adjustment": "Add content moderation API" 483 } 484 ] 485}`,managerDecision:`You are MASTER MANAGER. You run an internal council critique and create ONE executable plan. 486 487INTERNAL PROCESS (DO NOT EXPOSE): 488- Simulate critique passes: first draft â audit â stronger final plan 489- Resolve conflicts between CMO and CTO views 490- Choose the best options using: Objective fit > Expected value > Constraints > Time-to-impact 491 492Selection policy: Objective fit > Expected value > Constraints > Time-to-impact > Complexity 493 494CRITICAL REQUIREMENTS: 4951. Generate 5+ actionable ideas with impact/effort ratings 4962. Every task must have integration payloads (notion, google_docs, email) 4973. Cite sources in "references" array for each task 4984. Include "privacy" field for internal data tasks 4995. Calculate overall_confidence from agent confidences 5006. Add 1-2 experiments with hypothesis and success criteria 5017. Provide interactive prompts for expanding/adjusting the plan 5028. Log why alternatives were rejected 503 504Return the EXACT schema: 505{ 506 "meta": { 507 "objective": "clear objective", 508 "domain": "business|education|personal|creative|mixed", 509 "decision_rationale": "why this plan", 510 "assumptions": ["assumption 1"], 511 "risks": ["risk 1"], 512 "kpis": [{"name": "CTR", "target": "2.5%"}], 513 "overall_confidence": 0.72, 514 "last_refreshed": "ISO8601" 515 }, 516 "ideas": [ 517 { 518 "id": "I01",
519 "description": "short idea description", 520 "impact": "low|medium|high", 521 "effort": "low|medium|high", 522 "novelty": 0.8, 523 "source_role": "cmo|cto|researcher" 524 } 525 ], 526 "plan": { 527 "phases": [ 528 { 529 "name": "Phase 1", 530 "duration_days": 7, 531 "outcome": "what's delivered", 532 "tasks": [ 533 { 534 "id": "T-001", 535 "title": "Task title", 536 "owner_role": "CMO", 537 "effort_hours": 3, 538 "start_offset_days": 0, 539 "due_in_days": 3, 540 "depends_on": [], 541 "deliverable": "specific output", 542 "kpi_link": "CTR", 543 "provenance": "cmo", 544 "confidence": 0.74, 545 "privacy": "internal_only", 546 "purpose": "why this task matters", 547 "checklist": ["step 1", "step 2"], 548 "automation_suggestion": "how to automate or use AI", 549 "prompt_template": "an LLM prompt template the user can paste", 550 "integrations": ["notion", "email"], 551 "payloads": { 552 "notion": { 553 "type": "page", 554 "title": "Notion page title", 555 "content_md": "# Content\\n\\nMarkdown content here" 556 }, 557 "google_docs": { 558 "title": "Google Doc title", 559 "body_md": "Document content" 560 }, 561 "email": { 562 "to": ["[email protected]"], 563 "subject": "Email subject", 564 "body": "Email body" 565 } 566 }, 567 "references": [ 568 { 569 "url": "https://source", 570 "title": "Source title", 571 "snippet": "relevant excerpt" 572 } 573 ] 574 } 575 ] 576 } 577 ], 578 "alternatives_rejected": [ 579 { 580 "owner": "CMO", 581 "option": "Paid ads campaign", 582 "reason": "budget constraint - exceeds $10k limit" 583 } 584 ] 585 }, 586 "experiments": [ 587 { 588 "name": "Experiment name", 589 "hypothesis": "Micro-lesson reels boost CTR", 590 "steps": ["Ship 10 test reels", "Track CTR for 2 weeks"], 591 "effort_hours": 12, 592 "kpi": "CTR", 593 "success_criteria": "CTR>2.5%", 594 "user_impact": "Higher engagement with bite-sized content", 595 "required_data": ["view duration", "click-through rates"], 596 "risk_level": "low|medium|high" 597 } 598 ], 599 "interactive_prompts": { 600 "expand_idea_prompt": "Take idea I01 and expand it into a 2-week sprint with detailed tasks", 601 "alternative_path_prompt": "Suggest a simpler, lower-budget version of this plan under $5k", 602 "diagnose_failure_prompt": "If Phase 1 underperforms, what are the top 3 diagnostic steps?" 603 }, 604 "exports": { 605 "markdown": true, 606 "csv": true, 607 "ics": true, 608 "webhook": {"enabled": true} 609 } 610} 611 612No prose. Only the complete JSON plan.`};async function xr(e,t,n,i=null,s=1){const l=`${t} 613 614USER INPUT: 615${n.userInput||""} 616 617DOCUMENTS/CONTEXT: 618${n.docs||""} 619 620${i?`TOOL RESULTS: 621${JSON.stringify(i,null,2)} 622`:""} 623${n.analystPack?`ANALYST INSIGHTS: 624${JSON.stringify(n.analystPack,null,2)} 625`:""} 626${n.opposing?`OPPOSING VIEW: 627${JSON.stringify(n.opposing,null,2)} 628`:""} 629${n.council?`FULL COUNCIL DATA: 630${JSON.stringify(n.council,null,2)} 631`:""} 632 633Generate your response now:`;for(let u=0;u<=s;u++)try{const c=await It.integrations.Core.InvokeLLM({prompt:l,add_context_from_internet:!1});let f;try{let h=c.trim();return h.startsWith("```json")?h=h.replace(/```json\n?/g,"").replace(/```\n?$/g,""):h.startsWith("```")&&(h=h.replace(/```\n?/g,"")),f=JSON.parse(h),f}catch(h){if(u<s){const p=`Fix this to valid JSON matching the schema. No prose, just JSON: 634 635${c}`;let w=(await It.integrations.Core.InvokeLLM({prompt:p,add_context_from_internet:!1})).trim();return w.startsWith("```json")&&(w=w.replace(/```json\n?/g,"").replace(/```\n?$/g,"")),f=JSON.parse(w),f}throw new Error(`Failed to parse JSON from ${e}: ${h.message}`)}}catch(c){if(u===s)throw c}}async function _x(e,t,n="",i){var s,l,u,c,f;try{i==null||i("Analysts gathering data with tools...");const[h,p,g,w]=await Promise.all([Promise.all([Yr.search_web(e,5),Yr.repo(e)]),Promise.all([Yr.analytics("engagement","30d"),Yr.repo("past plans")]),Promise.all([Yr.trends(e,"US","7d"),Yr.social(e,"x","7d")]),Promise.all([Yr.analytics("engagement","90d"),Yr.trends(e,"US","90d")])]);i==null||i("Analysts synthesizing findings...");const[v,k,S,b]=await Promise.all([xr("Researcher",vr.researcher,{userInput:e,docs:t},h),xr("PastPatterns",vr.pastPatterns,{userInput:e,docs:t},p),xr("PresentTrends",vr.presentTrends,{userInput:e,docs:t},g),xr("FuturePrediction",vr.futurePrediction,{userInput:e,docs:t},w)]),_={researcher:v,past:k,present:S,future:b};i==null||i("Executive synthesis...");const[P,R]=await Promise.all([xr("CMO",vr.cmoSynthesis,{userInput:e,analystPack:_}),xr("CTO",vr.ctoSynthesis,{userInput:e,analystPack:_})]);i==null||i("Processing rebuttals...");const[j,O]=await Promise.all([xr("CMO",vr.cmoRebuttal,{userInput:e,analystPack:_,opposing:R}),xr("CTO",vr.ctoRebuttal,{userInput:e,analystPack:_,opposing:P}
635)]),L={analystPack:_,cmoDraft:P,ctoDraft:R,cmoRebut:j,ctoRebut:O};i==null||i("Manager creating execution plan...");const V=await xr("Manager",vr.managerDecision,{userInput:e,council:L});if(!V.meta||!V.plan)throw new Error("Invalid plan schema from Manager");if(V.meta.last_refreshed||(V.meta.last_refreshed=new Date().toISOString()),!V.meta.overall_confidence){const I=[];(s=v==null?void 0:v.facts)==null||s.forEach(D=>I.push(D.confidence||.5)),(l=k==null?void 0:k.patterns)==null||l.forEach(D=>I.push(D.confidence||.5)),(u=P==null?void 0:P.marketing_options)==null||u.forEach(D=>I.push(D.confidence||.5)),(c=R==null?void 0:R.tech_options)==null||c.forEach(D=>I.push(D.confidence||.5)),(f=V==null?void 0:V.plan)!=null&&f.phases&&V.plan.phases.forEach(D=>{var Q;(Q=D.tasks)==null||Q.forEach(q=>I.push(q.confidence||.5))}),V.meta.overall_confidence=I.length>0?I.reduce((D,Q)=>D+Q,0)/I.length:.7}return{...V,_council_data:L}}catch(h){throw console.error("Council orchestration error:",h),h}}const Nx={classMode:{role:"An Academic Research Assistant and Plagiarism Checker.",task:"Synthesize the user's sources and prompt into a Compliant Research Paper Outline. The outline must include: a Thesis Statement, an Introduction summary, and three detailed Body Paragraph summaries with suggested topic sentences.",tag:"[Educational Compliance Cited]",label:"Academic Paper (Class Mode)",domain:"education"},cmoMode:{role:"A Chief Marketing Officer (CMO) and Data Strategist.",task:"Synthesize the user's input (internal data, reports, and content briefs) into a professional, action-oriented, High-Level Marketing Plan. The plan must clearly state the Audience, a Key Goal, and three Content Pillars.",tag:"[Internal Source Trace]",label:"Marketing Strategy (CMO Mode)",domain:"business"},workMode:{role:"A Senior Product Manager and Technical Writer.",task:"Synthesize the user's input (API documentation, R&D notes) into a concise, structured Product Specification (Product Spec). The spec must include: a User Story, Technical Requirements (3 points), and clear Next Steps.",tag:"[Meeting Notes Cited]",label:"Product Specification (Work Mode)",domain:"business"}};function rD(){const[e,t]=C.useState("classMode"),[n,i]=C.useState(""),[s,l]=C.useState(null),[u,c]=C.useState(""),[f,h]=C.useState(""),[p,g]=C.useState(null),[w,v]=C.useState(!1),[k,S]=C.useState(!1),[b,_]=C.useState("text"),[P,R]=C.useState(""),j=async I=>{l(I),S(!0),c("");try{const{file_url:D}=await It.integrations.Core.UploadFile({file:I}),q=await It.integrations.Core.InvokeLLM({prompt:"You are a document text extractor. Extract all the text content from the uploaded document and return it as plain text. Do not add any commentary, just return the extracted text content.",file_urls:[D],add_context_from_internet:!1});c(q),i(q)}catch(D){c(`Error extracting text from file: ${D.message}`),console.error("File extraction error:",D)}finally{S(!1)}},O=()=>{l(null),c("")},L=async()=>{const I=b==="file"?u:n;if(!I.trim()){h("Please enter some text or upload a file to synthesize.");return}v(!0),h(""),g(null),R("Initializing multi-agent council...");try{const D=Nx[e];R("Running multi-agent council orchestration...");const Q=await _x(I,`Mode: ${D.label} 636Domain: ${D.domain} 637Task: ${D.task}`,"",q=>R(q));g(Q)}catch(D){h(`**Error:** ${D.message||"Something went wrong. Please try again."}`),console.error("ROM Error:",D),g(null)}finally{v(!1),R("")}},V=async()=>{if(!(!p||w)){v(!0),R("Refreshing market signals...");try{const I=b==="file"?u:n,D=Nx[e],Q=await _x(I,`Mode: ${D.label} 638Domain: ${D.domain} 639Task: ${D.task}`,"",q=>R(q));g(Q)}catch(I){console.error("Refresh error:",I)}finally{v(!1),R("")}}};return x.jsxs("div",{className:"min-h-screen p-4 md:p-10 flex flex-col items-center",style:{backgroundColor:"#f3f4f6"},children:[x.jsxs("header",{className:"text-center mb-10 w-full max-w-7xl mx-auto",children:[x.jsx("h1",{className:"text-4xl font-extrabold text-gray-900",children:"ROM Beta Version"}),x.jsx("p",{className:"mt-2 text-xl text-gray-600",children:"Put your mind to matter"})]}),x.jsxs("main",{className:"w-full max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8",children:[x.jsxs("div",{className:"w-full bg-white p-6 md:p-8 rounded-xl h-full rom-card",children:[x.jsx("style",{jsx:!0,children:` 640 .rom-card { 641 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02); 642 transition: all 0.3s ease; 643 } 644 .rom-card:hover { 645 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); 646 } 647 .rom-gradient-button { 648 background-image: linear-gradient(to right, #1e40af, #3b82f6); 649 transition: all 0.3s ease; 650 color: white; 651 font-weight: bold; 652 padding: 0.75rem 1.5rem; 653 border-radius: 0.5rem; 654 font-size: 1.125rem; 655 border: none; 656 cursor: pointer; 657 width: 100%; 658 display: flex; 659 align-items: center; 660 justify-content: center; 661 } 662 .rom-gradient-button:hover:not(:disabled) { 663 box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4); 664 transform: translateY(-2px); 665 } 666 .rom-gradient-button:disabled { 667 opacity: 0.5;
668 cursor: not-allowed; 669 } 670 `}),x.jsxs("div",{className:"space-y-6",children:[x.jsxs("div",{children:[x.jsx("label",{htmlFor:"modeSelector",className:"block text-sm font-medium text-gray-700 mb-2",children:"1. Select Your Goal"}),x.jsxs(o2,{value:e,onValueChange:t,children:[x.jsx(DS,{className:"w-full p-3 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500 transition duration-150",children:x.jsx(s2,{})}),x.jsxs(BS,{children:[x.jsx(xu,{value:"classMode",children:"Academic Paper (Class Mode)"}),x.jsx(xu,{value:"cmoMode",children:"Marketing Strategy (CMO Mode)"}),x.jsx(xu,{value:"workMode",children:"Product Specification (Work Mode)"})]})]})]}),x.jsxs("div",{children:[x.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"2. Provide Your Input & Source Material"}),x.jsxs(N2,{value:b,onValueChange:_,className:"w-full",children:[x.jsxs(l1,{className:"grid w-full grid-cols-2 mb-4",children:[x.jsxs(yh,{value:"text",className:"flex items-center gap-2",children:[x.jsx(LE,{className:"w-4 h-4"}),"Paste Text"]}),x.jsxs(yh,{value:"file",className:"flex items-center gap-2",children:[x.jsx(qx,{className:"w-4 h-4"}),"Upload File"]})]}),x.jsx(vh,{value:"text",className:"mt-0",children:x.jsx(g0,{value:n,onChange:I=>i(I.target.value),rows:10,placeholder:"Paste lecture notes, research papers, internal meeting notes, or creative drafts here...",className:"w-full p-3 border border-gray-300 rounded-lg resize-none focus:ring-blue-500 focus:border-blue-500 transition duration-150"})}),x.jsxs(vh,{value:"file",className:"mt-0 space-y-4",children:[x.jsx(R2,{onFileSelect:j,selectedFile:s,onClearFile:O,disabled:k}),k&&x.jsxs("div",{className:"flex items-center justify-center gap-2 p-4 bg-blue-50 rounded-lg",children:[x.jsx(Kd,{className:"w-5 h-5 animate-spin text-blue-600"}),x.jsx("span",{className:"text-sm text-blue-600 font-medium",children:"Extracting text from file..."})]}),u&&!k&&x.jsxs("div",{className:"border border-gray-300 rounded-lg p-4 max-h-60 overflow-y-auto bg-gray-50",children:[x.jsx("p",{className:"text-xs font-medium text-gray-600 mb-2",children:"Extracted Text Preview:"}),x.jsx("p",{className:"text-sm text-gray-700 whitespace-pre-wrap",children:u})]})]})]})]}),x.jsx("button",{onClick:L,disabled:w||k,className:"rom-gradient-button",children:w?x.jsxs(x.Fragment,{children:[x.jsx(Kd,{className:"animate-spin mr-3 h-5 w-5 text-white"}),"Processing..."]}):"Run"})]})]}),x.jsx("div",{className:"w-full bg-white min-h-[400px] p-6 md:p-8 rounded-xl rom-card overflow-y-auto max-h-[800px]",children:w?x.jsx("div",{className:"flex items-center justify-center h-full min-h-[400px]",children:x.jsxs("div",{className:"text-center",children:[x.jsx(Kd,{className:"w-12 h-12 animate-spin text-blue-600 mx-auto mb-4"}),x.jsx("p",{className:"text-gray-600 font-medium",children:"Running multi-agent analysis..."}),P&&x.jsxs("div",{className:"mt-4 space-y-2",children:[x.jsx("p",{className:"text-sm text-blue-600 font-medium",children:P}),x.jsx("div",{className:"w-64 h-1 bg-gray-200 rounded-full mx-auto overflow-hidden",children:x.jsx("div",{className:"h-full bg-blue-600 rounded-full animate-pulse",style:{width:"70%"}})})]})]})}):p?x.jsxs(x.Fragment,{children:[p&&x.jsx("div",{className:"mb-4 flex justify-end",children:x.jsxs(Xo,{variant:"outline",size:"sm",onClick:V,disabled:w,className:"flex items-center gap-2",children:[x.jsx(Tf,{className:"w-4 h-4"}),"Refresh Signals"]})}),x.jsx(ZM,{plan:p})]}):f?x.jsx(GM,{output:f}):null})]}),x.jsxs("footer",{className:"text-center mt-10 text-gray-600 text-sm max-w-4xl w-full",children:[x.jsx("p",{children:"This beta demonstrates our core Orchestration."}),x.jsx("p",{className:"mt-1",children:"Get unlimited synthesis and full Digital Creative Identity features by joining our Premium Beta Waitlist."})]})]})}const iD={ROM:rD},V1={mainPage:"ROM",Pages:iD};function oD(){const e=Bh(),{isAuthenticated:t}=p0(),{Pages:n,mainPage:i}=V1,s=i;return C.useEffect(()=>{var l;(l=window.parent)==null||l.postMessage({type:"app_changed_url",url:window.location.href},"*")},[e]),C.useEffect(()=>{const l=e.pathname;let u;if(l==="/"||l==="")u=s;else{const c=l.replace(/^\//,"").split("/")[0];u=Object.keys(n).find(p=>p.toLowerCase()===c.toLowerCase())||null}t&&u&&It.appLogs.logUserInApp(u).catch(()=>{})},[e,t,n,s]),null}function sD({}){var s;const t=Bh().pathname.substring(1),{data:n,isFetched:i}=o_({queryKey:["user"],queryFn:async()=>{try{return{user:await It.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return x.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:x.jsx("div",{className:"max-w-md w-full",children:x.jsxs("div",{className:"text-center space-y-6",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),x.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),x.jsxs("div",{className:"space-y-3",children:[x.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),x.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",x.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),i&&n.isAuthenticated&&((s=n.user)==null?void 0:s.role)==="admin"&&x.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:x.jsxs("div",{className:"flex items-start space-x-3",children:[x.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:x.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),x.jsxs("div",{className:"text-left space-y-1",children:[x.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),x.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),x.jsx("div",{className:"pt-6",children:x.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[x.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const lD=()=>x.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:x.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:x.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),x.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),x.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),x.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[x.jsx("p",{children:"If you believe this is an error, you can:"}),x.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[x.jsx("li",{children:"Verify you are logged in with the correct account"}),x.jsx("li",{children:"Contact the app administrator for access"}),x.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:H1,Layout:Rx,mainPage:aD}=V1,q1=aD,uD=H1[q1],Tx=({children:e,currentPageName:t})=>Rx?x.jsx(Rx,{currentPageName:t,children:e}):x.jsx(x.Fragment,{children:e}),cD=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,isAuthenticated:i,navigateToLogin:s}=p0();if(t||e)return x.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:x.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return x.jsx(lD,{});if(n.type==="auth_required")return s(),null}return x.jsxs(W_,{children:[x.jsx(au,{path:"/",element:x.jsx(Tx,{currentPageName:q1,children:x.jsx(uD,{})})}),Object.entries(H1).map(([l,u])=>x.jsx(au,{path:`/${l}`,element:x.jsx(Tx,{currentPageName:l,children:x.jsx(u,{})})},l)),x.jsx(au,{path:"*",element:x.jsx(sD,{})})]})};function dD(){return x.jsx(zT,{children:x.jsxs(QC,{client:s_,children:[x.jsxs(G_,{children:[x.jsx(oD,{}),x.jsx(cD,{})]}),x.jsx(SC,{}),x.jsx(l_,{})]})})}Gk.createRoot(document.getElementById("root")).render(x.jsx(dD,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.