apiskill 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,299 @@
1
+ (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))l(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const p of u.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();function Wd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var su={exports:{}},ui={},iu={exports:{}},Se={};/**
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 wd;function vm(){if(wd)return Se;wd=1;var i=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),S=Symbol.iterator;function E(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,j={};function I(C,b,he){this.props=C,this.context=b,this.refs=j,this.updater=he||O}I.prototype.isReactComponent={},I.prototype.setState=function(C,b){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,b,"setState")},I.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function R(){}R.prototype=I.prototype;function W(C,b,he){this.props=C,this.context=b,this.refs=j,this.updater=he||O}var F=W.prototype=new R;F.constructor=W,P(F,I.prototype),F.isPureReactComponent=!0;var H=Array.isArray,X=Object.prototype.hasOwnProperty,V={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function M(C,b,he){var K,ye={},pe=null,xe=null;if(b!=null)for(K in b.ref!==void 0&&(xe=b.ref),b.key!==void 0&&(pe=""+b.key),b)X.call(b,K)&&!Q.hasOwnProperty(K)&&(ye[K]=b[K]);var ke=arguments.length-2;if(ke===1)ye.children=he;else if(1<ke){for(var Ce=Array(ke),Ge=0;Ge<ke;Ge++)Ce[Ge]=arguments[Ge+2];ye.children=Ce}if(C&&C.defaultProps)for(K in ke=C.defaultProps,ke)ye[K]===void 0&&(ye[K]=ke[K]);return{$$typeof:i,type:C,key:pe,ref:xe,props:ye,_owner:V.current}}function ae(C,b){return{$$typeof:i,type:C.type,key:b,ref:C.ref,props:C.props,_owner:C._owner}}function Y(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}function te(C){var b={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(he){return b[he]})}var Z=/\/+/g;function de(C,b){return typeof C=="object"&&C!==null&&C.key!=null?te(""+C.key):b.toString(36)}function Le(C,b,he,K,ye){var pe=typeof C;(pe==="undefined"||pe==="boolean")&&(C=null);var xe=!1;if(C===null)xe=!0;else switch(pe){case"string":case"number":xe=!0;break;case"object":switch(C.$$typeof){case i:case n:xe=!0}}if(xe)return xe=C,ye=ye(xe),C=K===""?"."+de(xe,0):K,H(ye)?(he="",C!=null&&(he=C.replace(Z,"$&/")+"/"),Le(ye,b,he,"",function(Ge){return Ge})):ye!=null&&(Y(ye)&&(ye=ae(ye,he+(!ye.key||xe&&xe.key===ye.key?"":(""+ye.key).replace(Z,"$&/")+"/")+C)),b.push(ye)),1;if(xe=0,K=K===""?".":K+":",H(C))for(var ke=0;ke<C.length;ke++){pe=C[ke];var Ce=K+de(pe,ke);xe+=Le(pe,b,he,Ce,ye)}else if(Ce=E(C),typeof Ce=="function")for(C=Ce.call(C),ke=0;!(pe=C.next()).done;)pe=pe.value,Ce=K+de(pe,ke++),xe+=Le(pe,b,he,Ce,ye);else if(pe==="object")throw b=String(C),Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return xe}function Te(C,b,he){if(C==null)return C;var K=[],ye=0;return Le(C,K,"","",function(pe){return b.call(he,pe,ye++)}),K}function De(C){if(C._status===-1){var b=C._result;b=b(),b.then(function(he){(C._status===0||C._status===-1)&&(C._status=1,C._result=he)},function(he){(C._status===0||C._status===-1)&&(C._status=2,C._result=he)}),C._status===-1&&(C._status=0,C._result=b)}if(C._status===1)return C._result.default;throw C._result}var je={current:null},q={transition:null},ne={ReactCurrentDispatcher:je,ReactCurrentBatchConfig:q,ReactCurrentOwner:V};function G(){throw Error("act(...) is not supported in production builds of React.")}return Se.Children={map:Te,forEach:function(C,b,he){Te(C,function(){b.apply(this,arguments)},he)},count:function(C){var b=0;return Te(C,function(){b++}),b},toArray:function(C){return Te(C,function(b){return b})||[]},only:function(C){if(!Y(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Se.Component=I,Se.Fragment=r,Se.Profiler=a,Se.PureComponent=W,Se.StrictMode=l,Se.Suspense=y,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,Se.act=G,Se.cloneElement=function(C,b,he){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var K=P({},C.props),ye=C.key,pe=C.ref,xe=C._owner;if(b!=null){if(b.ref!==void 0&&(pe=b.ref,xe=V.current),b.key!==void 0&&(ye=""+b.key),C.type&&C.type.defaultProps)var ke=C.type.defaultProps;for(Ce in b)X.call(b,Ce)&&!Q.hasOwnProperty(Ce)&&(K[Ce]=b[Ce]===void 0&&ke!==void 0?ke[Ce]:b[Ce])}var Ce=arguments.length-2;if(Ce===1)K.children=he;else if(1<Ce){ke=Array(Ce);for(var Ge=0;Ge<Ce;Ge++)ke[Ge]=arguments[Ge+2];K.children=ke}return{$$typeof:i,type:C.type,key:ye,ref:pe,props:K,_owner:xe}},Se.createContext=function(C){return C={$$typeof:p,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:u,_context:C},C.Consumer=C},Se.createElement=M,Se.createFactory=function(C){var b=M.bind(null,C);return b.type=C,b},Se.createRef=function(){return{current:null}},Se.forwardRef=function(C){return{$$typeof:h,render:C}},Se.isValidElement=Y,Se.lazy=function(C){return{$$typeof:N,_payload:{_status:-1,_result:C},_init:De}},Se.memo=function(C,b){return{$$typeof:g,type:C,compare:b===void 0?null:b}},Se.startTransition=function(C){var b=q.transition;q.transition={};try{C()}finally{q.transition=b}},Se.unstable_act=G,Se.useCallback=function(C,b){return je.current.useCallback(C,b)},Se.useContext=function(C){return je.current.useContext(C)},Se.useDebugValue=function(){},Se.useDeferredValue=function(C){return je.current.useDeferredValue(C)},Se.useEffect=function(C,b){return je.current.useEffect(C,b)},Se.useId=function(){return je.current.useId()},Se.useImperativeHandle=function(C,b,he){return je.current.useImperativeHandle(C,b,he)},Se.useInsertionEffect=function(C,b){return je.current.useInsertionEffect(C,b)},Se.useLayoutEffect=function(C,b){return je.current.useLayoutEffect(C,b)},Se.useMemo=function(C,b){return je.current.useMemo(C,b)},Se.useReducer=function(C,b,he){return je.current.useReducer(C,b,he)},Se.useRef=function(C){return je.current.useRef(C)},Se.useState=function(C){return je.current.useState(C)},Se.useSyncExternalStore=function(C,b,he){return je.current.useSyncExternalStore(C,b,he)},Se.useTransition=function(){return je.current.useTransition()},Se.version="18.3.1",Se}var kd;function Lu(){return kd||(kd=1,iu.exports=vm()),iu.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 Sd;function wm(){if(Sd)return ui;Sd=1;var i=Lu(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function p(h,y,g){var N,S={},E=null,O=null;g!==void 0&&(E=""+g),y.key!==void 0&&(E=""+y.key),y.ref!==void 0&&(O=y.ref);for(N in y)l.call(y,N)&&!u.hasOwnProperty(N)&&(S[N]=y[N]);if(h&&h.defaultProps)for(N in y=h.defaultProps,y)S[N]===void 0&&(S[N]=y[N]);return{$$typeof:n,type:h,key:E,ref:O,props:S,_owner:a.current}}return ui.Fragment=r,ui.jsx=p,ui.jsxs=p,ui}var jd;function km(){return jd||(jd=1,su.exports=wm()),su.exports}var d=km(),A=Lu();const Sm=Wd(A);var ql={},lu={exports:{}},Ot={},ou={exports:{}},au={};/**
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 xd;function jm(){return xd||(xd=1,(function(i){function n(q,ne){var G=q.length;q.push(ne);e:for(;0<G;){var C=G-1>>>1,b=q[C];if(0<a(b,ne))q[C]=ne,q[G]=b,G=C;else break e}}function r(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var ne=q[0],G=q.pop();if(G!==ne){q[0]=G;e:for(var C=0,b=q.length,he=b>>>1;C<he;){var K=2*(C+1)-1,ye=q[K],pe=K+1,xe=q[pe];if(0>a(ye,G))pe<b&&0>a(xe,ye)?(q[C]=xe,q[pe]=G,C=pe):(q[C]=ye,q[K]=G,C=K);else if(pe<b&&0>a(xe,G))q[C]=xe,q[pe]=G,C=pe;else break e}}return ne}function a(q,ne){var G=q.sortIndex-ne.sortIndex;return G!==0?G:q.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;i.unstable_now=function(){return u.now()}}else{var p=Date,h=p.now();i.unstable_now=function(){return p.now()-h}}var y=[],g=[],N=1,S=null,E=3,O=!1,P=!1,j=!1,I=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(q){for(var ne=r(g);ne!==null;){if(ne.callback===null)l(g);else if(ne.startTime<=q)l(g),ne.sortIndex=ne.expirationTime,n(y,ne);else break;ne=r(g)}}function H(q){if(j=!1,F(q),!P)if(r(y)!==null)P=!0,De(X);else{var ne=r(g);ne!==null&&je(H,ne.startTime-q)}}function X(q,ne){P=!1,j&&(j=!1,R(M),M=-1),O=!0;var G=E;try{for(F(ne),S=r(y);S!==null&&(!(S.expirationTime>ne)||q&&!te());){var C=S.callback;if(typeof C=="function"){S.callback=null,E=S.priorityLevel;var b=C(S.expirationTime<=ne);ne=i.unstable_now(),typeof b=="function"?S.callback=b:S===r(y)&&l(y),F(ne)}else l(y);S=r(y)}if(S!==null)var he=!0;else{var K=r(g);K!==null&&je(H,K.startTime-ne),he=!1}return he}finally{S=null,E=G,O=!1}}var V=!1,Q=null,M=-1,ae=5,Y=-1;function te(){return!(i.unstable_now()-Y<ae)}function Z(){if(Q!==null){var q=i.unstable_now();Y=q;var ne=!0;try{ne=Q(!0,q)}finally{ne?de():(V=!1,Q=null)}}else V=!1}var de;if(typeof W=="function")de=function(){W(Z)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,Te=Le.port2;Le.port1.onmessage=Z,de=function(){Te.postMessage(null)}}else de=function(){I(Z,0)};function De(q){Q=q,V||(V=!0,de())}function je(q,ne){M=I(function(){q(i.unstable_now())},ne)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(q){q.callback=null},i.unstable_continueExecution=function(){P||O||(P=!0,De(X))},i.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<q?Math.floor(1e3/q):5},i.unstable_getCurrentPriorityLevel=function(){return E},i.unstable_getFirstCallbackNode=function(){return r(y)},i.unstable_next=function(q){switch(E){case 1:case 2:case 3:var ne=3;break;default:ne=E}var G=E;E=ne;try{return q()}finally{E=G}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(q,ne){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var G=E;E=q;try{return ne()}finally{E=G}},i.unstable_scheduleCallback=function(q,ne,G){var C=i.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?C+G:C):G=C,q){case 1:var b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=G+b,q={id:N++,callback:ne,priorityLevel:q,startTime:G,expirationTime:b,sortIndex:-1},G>C?(q.sortIndex=G,n(g,q),r(y)===null&&q===r(g)&&(j?(R(M),M=-1):j=!0,je(H,G-C))):(q.sortIndex=b,n(y,q),P||O||(P=!0,De(X))),q},i.unstable_shouldYield=te,i.unstable_wrapCallback=function(q){var ne=E;return function(){var G=E;E=ne;try{return q.apply(this,arguments)}finally{E=G}}}})(au)),au}var Nd;function xm(){return Nd||(Nd=1,ou.exports=jm()),ou.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 Cd;function Nm(){if(Cd)return Ot;Cd=1;var i=Lu(),n=xm();function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,a={};function u(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(a[e]=t,e=0;e<t.length;e++)l.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,g=/^[: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]*$/,N={},S={};function E(e){return y.call(S,e)?!0:y.call(N,e)?!1:g.test(e)?S[e]=!0:(N[e]=!0,!1)}function O(e,t,s,o){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function P(e,t,s,o){if(t===null||typeof t>"u"||O(e,t,s,o))return!0;if(o)return!1;if(s!==null)switch(s.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function j(e,t,s,o,c,f,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=c,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=m}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];I[t]=new j(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new j(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){I[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function W(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R,W);I[t]=new j(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R,W);I[t]=new j(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R,W);I[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function F(e,t,s,o){var c=I.hasOwnProperty(t)?I[t]:null;(c!==null?c.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(P(t,s,c,o)&&(s=null),o||c===null?E(t)&&(s===null?e.removeAttribute(t):e.setAttribute(t,""+s)):c.mustUseProperty?e[c.propertyName]=s===null?c.type===3?!1:"":s:(t=c.attributeName,o=c.attributeNamespace,s===null?e.removeAttribute(t):(c=c.type,s=c===3||c===4&&s===!0?"":""+s,o?e.setAttributeNS(o,t,s):e.setAttribute(t,s))))}var H=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=Symbol.for("react.element"),V=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),te=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),Te=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),je=Symbol.for("react.offscreen"),q=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,C;function b(e){if(C===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);C=t&&t[1]||""}return`
34
+ `+C+e}var he=!1;function K(e,t){if(!e||he)return"";he=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(L){var o=L}Reflect.construct(e,[],t)}else{try{t.call()}catch(L){o=L}e.call(t.prototype)}else{try{throw Error()}catch(L){o=L}e()}}catch(L){if(L&&o&&typeof L.stack=="string"){for(var c=L.stack.split(`
35
+ `),f=o.stack.split(`
36
+ `),m=c.length-1,v=f.length-1;1<=m&&0<=v&&c[m]!==f[v];)v--;for(;1<=m&&0<=v;m--,v--)if(c[m]!==f[v]){if(m!==1||v!==1)do if(m--,v--,0>v||c[m]!==f[v]){var w=`
37
+ `+c[m].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=m&&0<=v);break}}}finally{he=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?b(e):""}function ye(e){switch(e.tag){case 5:return b(e.type);case 16:return b("Lazy");case 13:return b("Suspense");case 19:return b("SuspenseList");case 0:case 2:case 15:return e=K(e.type,!1),e;case 11:return e=K(e.type.render,!1),e;case 1:return e=K(e.type,!0),e;default:return""}}function pe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Q:return"Fragment";case V:return"Portal";case ae:return"Profiler";case M:return"StrictMode";case de:return"Suspense";case Le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case te:return(e.displayName||"Context")+".Consumer";case Y:return(e._context.displayName||"Context")+".Provider";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Te:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case De:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}function xe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(t);case 8:return t===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ge(e){var t=Ce(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,f=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){o=""+m,f.call(this,m)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(m){o=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sn(e){e._valueTracker||(e._valueTracker=Ge(e))}function rr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),o="";return e&&(o=Ce(e)?e.checked?"true":"false":e.value),e=o,e!==s?(t.setValue(e),!0):!1}function J(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ne(e,t){var s=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function st(e,t){var s=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;s=ke(t.value!=null?t.value:s),e._wrapperState={initialChecked:o,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qe(e,t){t=t.checked,t!=null&&F(e,"checked",t,!1)}function it(e,t){Qe(e,t);var s=ke(t.value),o=t.type;if(s!=null)o==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?On(e,t.type,s):t.hasOwnProperty("defaultValue")&&On(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ln(e,t,s){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function On(e,t,s){(t!=="number"||J(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var Tn=Array.isArray;function pn(e,t,s,o){if(e=e.options,t){t={};for(var c=0;c<s.length;c++)t["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=t.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&o&&(e[s].defaultSelected=!0)}else{for(s=""+ke(s),t=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Ns(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cs(e,t){var s=t.value;if(s==null){if(s=t.children,t=t.defaultValue,s!=null){if(t!=null)throw Error(r(92));if(Tn(s)){if(1<s.length)throw Error(r(93));s=s[0]}t=s}t==null&&(t=""),s=t}e._wrapperState={initialValue:ke(s)}}function ct(e,t){var s=ke(t.value),o=ke(t.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),t.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),o!=null&&(e.defaultValue=""+o)}function St(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Tt(e){switch(e){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 sr(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Tt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lr,ir=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,o,c){MSApp.execUnsafeLocalFunction(function(){return e(t,s,o,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Lr=Lr||document.createElement("div"),Lr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mt(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var _n={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(_n).forEach(function(e){Ar.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]})});function lr(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||_n.hasOwnProperty(e)&&_n[e]?(""+t).trim():t+"px"}function br(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var o=s.indexOf("--")===0,c=lr(s,t[s],o);s==="float"&&(s="cssFloat"),o?e.setProperty(s,c):e[s]=c}}var Li=G({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 Es(e,t){if(t){if(Li[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!="object")throw Error(r(62))}}function In(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Os=null;function Ln(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ts=null,hn=null,An=null;function or(e){if(e=Qs(e)){if(typeof Ts!="function")throw Error(r(280));var t=e.stateNode;t&&(t=ll(t),Ts(e.stateNode,e.type,t))}}function Pr(e){hn?An?An.push(e):An=[e]:hn=e}function Rt(){if(hn){var e=hn,t=An;if(An=hn=null,or(e),t)for(e=0;e<t.length;e++)or(t[e])}}function Qt(e,t){return e(t)}function Mr(){}var mn=!1;function _e(e,t,s){if(mn)return e(t,s);mn=!0;try{return Qt(e,t,s)}finally{mn=!1,(hn!==null||An!==null)&&(Mr(),Rt())}}function _t(e,t){var s=e.stateNode;if(s===null)return null;var o=ll(s);if(o===null)return null;s=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(r(231,t,typeof s));return s}var _s=!1;if(h)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){_s=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{_s=!1}function Rr(e,t,s,o,c,f,m,v,w){var L=Array.prototype.slice.call(arguments,3);try{t.apply(s,L)}catch(D){this.onError(D)}}var $t=!1,ur=null,$r=!1,bn=null,Ai={onError:function(e){$t=!0,ur=e}};function xo(e,t,s,o,c,f,m,v,w){$t=!1,ur=null,Rr.apply(Ai,arguments)}function bi(e,t,s,o,c,f,m,v,w){if(xo.apply(this,arguments),$t){if($t){var L=ur;$t=!1,ur=null}else throw Error(r(198));$r||($r=!0,bn=L)}}function Jt(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function Pi(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Mi(e){if(Jt(e)!==e)throw Error(r(188))}function Ri(e){var t=e.alternate;if(!t){if(t=Jt(e),t===null)throw Error(r(188));return t!==e?null:e}for(var s=e,o=t;;){var c=s.return;if(c===null)break;var f=c.alternate;if(f===null){if(o=c.return,o!==null){s=o;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===s)return Mi(c),e;if(f===o)return Mi(c),t;f=f.sibling}throw Error(r(188))}if(s.return!==o.return)s=c,o=f;else{for(var m=!1,v=c.child;v;){if(v===s){m=!0,s=c,o=f;break}if(v===o){m=!0,o=c,s=f;break}v=v.sibling}if(!m){for(v=f.child;v;){if(v===s){m=!0,s=f,o=c;break}if(v===o){m=!0,o=f,s=c;break}v=v.sibling}if(!m)throw Error(r(189))}}if(s.alternate!==o)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?e:t}function $i(e){return e=Ri(e),e!==null?Di(e):null}function Di(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Di(e);if(t!==null)return t;e=e.sibling}return null}var zi=n.unstable_scheduleCallback,Bi=n.unstable_cancelCallback,Is=n.unstable_shouldYield,No=n.unstable_requestPaint,ze=n.unstable_now,Co=n.unstable_getCurrentPriorityLevel,Ls=n.unstable_ImmediatePriority,Ui=n.unstable_UserBlockingPriority,Dr=n.unstable_NormalPriority,Eo=n.unstable_LowPriority,Fi=n.unstable_IdlePriority,zr=null,yt=null;function Oo(e){if(yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(zr,e,void 0,(e.current.flags&128)===128)}catch{}}var k=Math.clz32?Math.clz32:ve,z=Math.log,le=Math.LN2;function ve(e){return e>>>=0,e===0?32:31-(z(e)/le|0)|0}var ge=64,fe=4194304;function Je(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ae(e,t){var s=e.pendingLanes;if(s===0)return 0;var o=0,c=e.suspendedLanes,f=e.pingedLanes,m=s&268435455;if(m!==0){var v=m&~c;v!==0?o=Je(v):(f&=m,f!==0&&(o=Je(f)))}else m=s&~c,m!==0?o=Je(m):f!==0&&(o=Je(f));if(o===0)return 0;if(t!==0&&t!==o&&(t&c)===0&&(c=o&-o,f=t&-t,c>=f||c===16&&(f&4194240)!==0))return t;if((o&4)!==0&&(o|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)s=31-k(t),c=1<<s,o|=e[s],t&=~c;return o}function lt(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Vi(e,t){for(var s=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes;0<f;){var m=31-k(f),v=1<<m,w=c[m];w===-1?((v&s)===0||(v&o)!==0)&&(c[m]=lt(v,t)):w<=t&&(e.expiredLanes|=v),f&=~v}}function Br(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ot(){var e=ge;return ge<<=1,(ge&4194240)===0&&(ge=64),e}function Dt(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function Pn(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-k(t),e[t]=s}function Ki(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<s;){var c=31-k(s),f=1<<c;t[c]=0,o[c]=-1,e[c]=-1,s&=~f}}function yn(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var o=31-k(s),c=1<<o;c&t|e[o]&t&&(e[o]|=t),s&=~c}}var Ie=0;function Yu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Gu,To,Xu,Zu,ec,_o=!1,qi=[],Mn=null,Rn=null,$n=null,As=new Map,bs=new Map,Dn=[],Bp="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 tc(e,t){switch(e){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bs.delete(t.pointerId)}}function Ps(e,t,s,o,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:s,eventSystemFlags:o,nativeEvent:f,targetContainers:[c]},t!==null&&(t=Qs(t),t!==null&&To(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Up(e,t,s,o,c){switch(t){case"focusin":return Mn=Ps(Mn,e,t,s,o,c),!0;case"dragenter":return Rn=Ps(Rn,e,t,s,o,c),!0;case"mouseover":return $n=Ps($n,e,t,s,o,c),!0;case"pointerover":var f=c.pointerId;return As.set(f,Ps(As.get(f)||null,e,t,s,o,c)),!0;case"gotpointercapture":return f=c.pointerId,bs.set(f,Ps(bs.get(f)||null,e,t,s,o,c)),!0}return!1}function nc(e){var t=cr(e.target);if(t!==null){var s=Jt(t);if(s!==null){if(t=s.tag,t===13){if(t=Pi(s),t!==null){e.blockedOn=t,ec(e.priority,function(){Xu(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=Lo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var o=new s.constructor(s.type,s);Os=o,s.target.dispatchEvent(o),Os=null}else return t=Qs(s),t!==null&&To(t),e.blockedOn=s,!1;t.shift()}return!0}function rc(e,t,s){Hi(e)&&s.delete(t)}function Fp(){_o=!1,Mn!==null&&Hi(Mn)&&(Mn=null),Rn!==null&&Hi(Rn)&&(Rn=null),$n!==null&&Hi($n)&&($n=null),As.forEach(rc),bs.forEach(rc)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,_o||(_o=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Fp)))}function Rs(e){function t(c){return Ms(c,e)}if(0<qi.length){Ms(qi[0],e);for(var s=1;s<qi.length;s++){var o=qi[s];o.blockedOn===e&&(o.blockedOn=null)}}for(Mn!==null&&Ms(Mn,e),Rn!==null&&Ms(Rn,e),$n!==null&&Ms($n,e),As.forEach(t),bs.forEach(t),s=0;s<Dn.length;s++)o=Dn[s],o.blockedOn===e&&(o.blockedOn=null);for(;0<Dn.length&&(s=Dn[0],s.blockedOn===null);)nc(s),s.blockedOn===null&&Dn.shift()}var Ur=H.ReactCurrentBatchConfig,Wi=!0;function Vp(e,t,s,o){var c=Ie,f=Ur.transition;Ur.transition=null;try{Ie=1,Io(e,t,s,o)}finally{Ie=c,Ur.transition=f}}function Kp(e,t,s,o){var c=Ie,f=Ur.transition;Ur.transition=null;try{Ie=4,Io(e,t,s,o)}finally{Ie=c,Ur.transition=f}}function Io(e,t,s,o){if(Wi){var c=Lo(e,t,s,o);if(c===null)Qo(e,t,o,Qi,s),tc(e,o);else if(Up(c,e,t,s,o))o.stopPropagation();else if(tc(e,o),t&4&&-1<Bp.indexOf(e)){for(;c!==null;){var f=Qs(c);if(f!==null&&Gu(f),f=Lo(e,t,s,o),f===null&&Qo(e,t,o,Qi,s),f===c)break;c=f}c!==null&&o.stopPropagation()}else Qo(e,t,o,null,s)}}var Qi=null;function Lo(e,t,s,o){if(Qi=null,e=Ln(o),e=cr(e),e!==null)if(t=Jt(e),t===null)e=null;else if(s=t.tag,s===13){if(e=Pi(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qi=e,null}function sc(e){switch(e){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(Co()){case Ls:return 1;case Ui:return 4;case Dr:case Eo:return 16;case Fi:return 536870912;default:return 16}default:return 16}}var zn=null,Ao=null,Ji=null;function ic(){if(Ji)return Ji;var e,t=Ao,s=t.length,o,c="value"in zn?zn.value:zn.textContent,f=c.length;for(e=0;e<s&&t[e]===c[e];e++);var m=s-e;for(o=1;o<=m&&t[s-o]===c[f-o];o++);return Ji=c.slice(e,1<o?1-o:void 0)}function Yi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gi(){return!0}function lc(){return!1}function It(e){function t(s,o,c,f,m){this._reactName=s,this._targetInst=c,this.type=o,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(s=e[v],this[v]=s?s(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Gi:lc,this.isPropagationStopped=lc,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),t}var Fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bo=It(Fr),$s=G({},Fr,{view:0,detail:0}),qp=It($s),Po,Mo,Ds,Xi=G({},$s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ds&&(Ds&&e.type==="mousemove"?(Po=e.screenX-Ds.screenX,Mo=e.screenY-Ds.screenY):Mo=Po=0,Ds=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),oc=It(Xi),Hp=G({},Xi,{dataTransfer:0}),Wp=It(Hp),Qp=G({},$s,{relatedTarget:0}),Ro=It(Qp),Jp=G({},Fr,{animationName:0,elapsedTime:0,pseudoElement:0}),Yp=It(Jp),Gp=G({},Fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xp=It(Gp),Zp=G({},Fr,{data:0}),ac=It(Zp),eh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},th={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"},nh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nh[e])?!!t[e]:!1}function $o(){return rh}var sh=G({},$s,{key:function(e){if(e.key){var t=eh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?th[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$o,charCode:function(e){return e.type==="keypress"?Yi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ih=It(sh),lh=G({},Xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uc=It(lh),oh=G({},$s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$o}),ah=It(oh),uh=G({},Fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ch=It(uh),fh=G({},Xi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),dh=It(fh),ph=[9,13,27,32],Do=h&&"CompositionEvent"in window,zs=null;h&&"documentMode"in document&&(zs=document.documentMode);var hh=h&&"TextEvent"in window&&!zs,cc=h&&(!Do||zs&&8<zs&&11>=zs),fc=" ",dc=!1;function pc(e,t){switch(e){case"keyup":return ph.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vr=!1;function mh(e,t){switch(e){case"compositionend":return hc(t);case"keypress":return t.which!==32?null:(dc=!0,fc);case"textInput":return e=t.data,e===fc&&dc?null:e;default:return null}}function yh(e,t){if(Vr)return e==="compositionend"||!Do&&pc(e,t)?(e=ic(),Ji=Ao=zn=null,Vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cc&&t.locale!=="ko"?null:t.data;default:return null}}var gh={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 mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gh[e.type]:t==="textarea"}function yc(e,t,s,o){Pr(o),t=rl(t,"onChange"),0<t.length&&(s=new bo("onChange","change",null,s,o),e.push({event:s,listeners:t}))}var Bs=null,Us=null;function vh(e){Pc(e,0)}function Zi(e){var t=Qr(e);if(rr(t))return e}function wh(e,t){if(e==="change")return t}var gc=!1;if(h){var zo;if(h){var Bo="oninput"in document;if(!Bo){var vc=document.createElement("div");vc.setAttribute("oninput","return;"),Bo=typeof vc.oninput=="function"}zo=Bo}else zo=!1;gc=zo&&(!document.documentMode||9<document.documentMode)}function wc(){Bs&&(Bs.detachEvent("onpropertychange",kc),Us=Bs=null)}function kc(e){if(e.propertyName==="value"&&Zi(Us)){var t=[];yc(t,Us,e,Ln(e)),_e(vh,t)}}function kh(e,t,s){e==="focusin"?(wc(),Bs=t,Us=s,Bs.attachEvent("onpropertychange",kc)):e==="focusout"&&wc()}function Sh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zi(Us)}function jh(e,t){if(e==="click")return Zi(t)}function xh(e,t){if(e==="input"||e==="change")return Zi(t)}function Nh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:Nh;function Fs(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var c=s[o];if(!y.call(t,c)||!Yt(e[c],t[c]))return!1}return!0}function Sc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jc(e,t){var s=Sc(e);e=0;for(var o;s;){if(s.nodeType===3){if(o=e+s.textContent.length,e<=t&&o>=t)return{node:s,offset:t-e};e=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Sc(s)}}function xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nc(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=J(e.document)}return t}function Uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ch(e){var t=Nc(),s=e.focusedElem,o=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&xc(s.ownerDocument.documentElement,s)){if(o!==null&&Uo(s)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=s.textContent.length,f=Math.min(o.start,c);o=o.end===void 0?f:Math.min(o.end,c),!e.extend&&f>o&&(c=o,o=f,f=c),c=jc(s,f);var m=jc(s,o);c&&m&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),f>o?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<t.length;s++)e=t[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Eh=h&&"documentMode"in document&&11>=document.documentMode,Kr=null,Fo=null,Vs=null,Vo=!1;function Cc(e,t,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Vo||Kr==null||Kr!==J(o)||(o=Kr,"selectionStart"in o&&Uo(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Vs&&Fs(Vs,o)||(Vs=o,o=rl(Fo,"onSelect"),0<o.length&&(t=new bo("onSelect","select",null,t,s),e.push({event:t,listeners:o}),t.target=Kr)))}function el(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var qr={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionend:el("Transition","TransitionEnd")},Ko={},Ec={};h&&(Ec=document.createElement("div").style,"AnimationEvent"in window||(delete qr.animationend.animation,delete qr.animationiteration.animation,delete qr.animationstart.animation),"TransitionEvent"in window||delete qr.transitionend.transition);function tl(e){if(Ko[e])return Ko[e];if(!qr[e])return e;var t=qr[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Ec)return Ko[e]=t[s];return e}var Oc=tl("animationend"),Tc=tl("animationiteration"),_c=tl("animationstart"),Ic=tl("transitionend"),Lc=new Map,Ac="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 Bn(e,t){Lc.set(e,t),u(t,[e])}for(var qo=0;qo<Ac.length;qo++){var Ho=Ac[qo],Oh=Ho.toLowerCase(),Th=Ho[0].toUpperCase()+Ho.slice(1);Bn(Oh,"on"+Th)}Bn(Oc,"onAnimationEnd"),Bn(Tc,"onAnimationIteration"),Bn(_c,"onAnimationStart"),Bn("dblclick","onDoubleClick"),Bn("focusin","onFocus"),Bn("focusout","onBlur"),Bn(Ic,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ks="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(" "),_h=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ks));function bc(e,t,s){var o=e.type||"unknown-event";e.currentTarget=s,bi(o,t,void 0,e),e.currentTarget=null}function Pc(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var o=e[s],c=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var m=o.length-1;0<=m;m--){var v=o[m],w=v.instance,L=v.currentTarget;if(v=v.listener,w!==f&&c.isPropagationStopped())break e;bc(c,v,L),f=w}else for(m=0;m<o.length;m++){if(v=o[m],w=v.instance,L=v.currentTarget,v=v.listener,w!==f&&c.isPropagationStopped())break e;bc(c,v,L),f=w}}}if($r)throw e=bn,$r=!1,bn=null,e}function Me(e,t){var s=t[ea];s===void 0&&(s=t[ea]=new Set);var o=e+"__bubble";s.has(o)||(Mc(t,e,2,!1),s.add(o))}function Wo(e,t,s){var o=0;t&&(o|=4),Mc(s,e,o,t)}var nl="_reactListening"+Math.random().toString(36).slice(2);function qs(e){if(!e[nl]){e[nl]=!0,l.forEach(function(s){s!=="selectionchange"&&(_h.has(s)||Wo(s,!1,e),Wo(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nl]||(t[nl]=!0,Wo("selectionchange",!1,t))}}function Mc(e,t,s,o){switch(sc(t)){case 1:var c=Vp;break;case 4:c=Kp;break;default:c=Io}s=c.bind(null,t,s,e),c=void 0,!_s||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(t,s,{capture:!0,passive:c}):e.addEventListener(t,s,!0):c!==void 0?e.addEventListener(t,s,{passive:c}):e.addEventListener(t,s,!1)}function Qo(e,t,s,o,c){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var m=o.tag;if(m===3||m===4){var v=o.stateNode.containerInfo;if(v===c||v.nodeType===8&&v.parentNode===c)break;if(m===4)for(m=o.return;m!==null;){var w=m.tag;if((w===3||w===4)&&(w=m.stateNode.containerInfo,w===c||w.nodeType===8&&w.parentNode===c))return;m=m.return}for(;v!==null;){if(m=cr(v),m===null)return;if(w=m.tag,w===5||w===6){o=f=m;continue e}v=v.parentNode}}o=o.return}_e(function(){var L=f,D=Ln(s),B=[];e:{var $=Lc.get(e);if($!==void 0){var ee=bo,se=e;switch(e){case"keypress":if(Yi(s)===0)break e;case"keydown":case"keyup":ee=ih;break;case"focusin":se="focus",ee=Ro;break;case"focusout":se="blur",ee=Ro;break;case"beforeblur":case"afterblur":ee=Ro;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=oc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=Wp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=ah;break;case Oc:case Tc:case _c:ee=Yp;break;case Ic:ee=ch;break;case"scroll":ee=qp;break;case"wheel":ee=dh;break;case"copy":case"cut":case"paste":ee=Xp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=uc}var ie=(t&4)!==0,Ve=!ie&&e==="scroll",T=ie?$!==null?$+"Capture":null:$;ie=[];for(var x=L,_;x!==null;){_=x;var U=_.stateNode;if(_.tag===5&&U!==null&&(_=U,T!==null&&(U=_t(x,T),U!=null&&ie.push(Hs(x,U,_)))),Ve)break;x=x.return}0<ie.length&&($=new ee($,se,null,s,D),B.push({event:$,listeners:ie}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",$&&s!==Os&&(se=s.relatedTarget||s.fromElement)&&(cr(se)||se[gn]))break e;if((ee||$)&&($=D.window===D?D:($=D.ownerDocument)?$.defaultView||$.parentWindow:window,ee?(se=s.relatedTarget||s.toElement,ee=L,se=se?cr(se):null,se!==null&&(Ve=Jt(se),se!==Ve||se.tag!==5&&se.tag!==6)&&(se=null)):(ee=null,se=L),ee!==se)){if(ie=oc,U="onMouseLeave",T="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ie=uc,U="onPointerLeave",T="onPointerEnter",x="pointer"),Ve=ee==null?$:Qr(ee),_=se==null?$:Qr(se),$=new ie(U,x+"leave",ee,s,D),$.target=Ve,$.relatedTarget=_,U=null,cr(D)===L&&(ie=new ie(T,x+"enter",se,s,D),ie.target=_,ie.relatedTarget=Ve,U=ie),Ve=U,ee&&se)t:{for(ie=ee,T=se,x=0,_=ie;_;_=Hr(_))x++;for(_=0,U=T;U;U=Hr(U))_++;for(;0<x-_;)ie=Hr(ie),x--;for(;0<_-x;)T=Hr(T),_--;for(;x--;){if(ie===T||T!==null&&ie===T.alternate)break t;ie=Hr(ie),T=Hr(T)}ie=null}else ie=null;ee!==null&&Rc(B,$,ee,ie,!1),se!==null&&Ve!==null&&Rc(B,Ve,se,ie,!0)}}e:{if($=L?Qr(L):window,ee=$.nodeName&&$.nodeName.toLowerCase(),ee==="select"||ee==="input"&&$.type==="file")var oe=wh;else if(mc($))if(gc)oe=xh;else{oe=Sh;var ue=kh}else(ee=$.nodeName)&&ee.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(oe=jh);if(oe&&(oe=oe(e,L))){yc(B,oe,s,D);break e}ue&&ue(e,$,L),e==="focusout"&&(ue=$._wrapperState)&&ue.controlled&&$.type==="number"&&On($,"number",$.value)}switch(ue=L?Qr(L):window,e){case"focusin":(mc(ue)||ue.contentEditable==="true")&&(Kr=ue,Fo=L,Vs=null);break;case"focusout":Vs=Fo=Kr=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,Cc(B,s,D);break;case"selectionchange":if(Eh)break;case"keydown":case"keyup":Cc(B,s,D)}var ce;if(Do)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Vr?pc(e,s)&&(me="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(me="onCompositionStart");me&&(cc&&s.locale!=="ko"&&(Vr||me!=="onCompositionStart"?me==="onCompositionEnd"&&Vr&&(ce=ic()):(zn=D,Ao="value"in zn?zn.value:zn.textContent,Vr=!0)),ue=rl(L,me),0<ue.length&&(me=new ac(me,e,null,s,D),B.push({event:me,listeners:ue}),ce?me.data=ce:(ce=hc(s),ce!==null&&(me.data=ce)))),(ce=hh?mh(e,s):yh(e,s))&&(L=rl(L,"onBeforeInput"),0<L.length&&(D=new ac("onBeforeInput","beforeinput",null,s,D),B.push({event:D,listeners:L}),D.data=ce))}Pc(B,t)})}function Hs(e,t,s){return{instance:e,listener:t,currentTarget:s}}function rl(e,t){for(var s=t+"Capture",o=[];e!==null;){var c=e,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=_t(e,s),f!=null&&o.unshift(Hs(e,f,c)),f=_t(e,t),f!=null&&o.push(Hs(e,f,c))),e=e.return}return o}function Hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rc(e,t,s,o,c){for(var f=t._reactName,m=[];s!==null&&s!==o;){var v=s,w=v.alternate,L=v.stateNode;if(w!==null&&w===o)break;v.tag===5&&L!==null&&(v=L,c?(w=_t(s,f),w!=null&&m.unshift(Hs(s,w,v))):c||(w=_t(s,f),w!=null&&m.push(Hs(s,w,v)))),s=s.return}m.length!==0&&e.push({event:t,listeners:m})}var Ih=/\r\n?/g,Lh=/\u0000|\uFFFD/g;function $c(e){return(typeof e=="string"?e:""+e).replace(Ih,`
38
+ `).replace(Lh,"")}function sl(e,t,s){if(t=$c(t),$c(e)!==t&&s)throw Error(r(425))}function il(){}var Jo=null,Yo=null;function Go(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xo=typeof setTimeout=="function"?setTimeout:void 0,Ah=typeof clearTimeout=="function"?clearTimeout:void 0,Dc=typeof Promise=="function"?Promise:void 0,bh=typeof queueMicrotask=="function"?queueMicrotask:typeof Dc<"u"?function(e){return Dc.resolve(null).then(e).catch(Ph)}:Xo;function Ph(e){setTimeout(function(){throw e})}function Zo(e,t){var s=t,o=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(o===0){e.removeChild(c),Rs(t);return}o--}else s!=="$"&&s!=="$?"&&s!=="$!"||o++;s=c}while(s);Rs(t)}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function zc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(t===0)return e;t--}else s==="/$"&&t++}e=e.previousSibling}return null}var Wr=Math.random().toString(36).slice(2),on="__reactFiber$"+Wr,Ws="__reactProps$"+Wr,gn="__reactContainer$"+Wr,ea="__reactEvents$"+Wr,Mh="__reactListeners$"+Wr,Rh="__reactHandles$"+Wr;function cr(e){var t=e[on];if(t)return t;for(var s=e.parentNode;s;){if(t=s[gn]||s[on]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=zc(e);e!==null;){if(s=e[on])return s;e=zc(e)}return t}e=s,s=e.parentNode}return null}function Qs(e){return e=e[on]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function ll(e){return e[Ws]||null}var ta=[],Jr=-1;function Fn(e){return{current:e}}function Re(e){0>Jr||(e.current=ta[Jr],ta[Jr]=null,Jr--)}function be(e,t){Jr++,ta[Jr]=e.current,e.current=t}var Vn={},ft=Fn(Vn),jt=Fn(!1),fr=Vn;function Yr(e,t){var s=e.type.contextTypes;if(!s)return Vn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in s)c[f]=t[f];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function xt(e){return e=e.childContextTypes,e!=null}function ol(){Re(jt),Re(ft)}function Bc(e,t,s){if(ft.current!==Vn)throw Error(r(168));be(ft,t),be(jt,s)}function Uc(e,t,s){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return s;o=o.getChildContext();for(var c in o)if(!(c in t))throw Error(r(108,xe(e)||"Unknown",c));return G({},s,o)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,fr=ft.current,be(ft,e),be(jt,jt.current),!0}function Fc(e,t,s){var o=e.stateNode;if(!o)throw Error(r(169));s?(e=Uc(e,t,fr),o.__reactInternalMemoizedMergedChildContext=e,Re(jt),Re(ft),be(ft,e)):Re(jt),be(jt,s)}var vn=null,ul=!1,na=!1;function Vc(e){vn===null?vn=[e]:vn.push(e)}function $h(e){ul=!0,Vc(e)}function Kn(){if(!na&&vn!==null){na=!0;var e=0,t=Ie;try{var s=vn;for(Ie=1;e<s.length;e++){var o=s[e];do o=o(!0);while(o!==null)}vn=null,ul=!1}catch(c){throw vn!==null&&(vn=vn.slice(e+1)),zi(Ls,Kn),c}finally{Ie=t,na=!1}}return null}var Gr=[],Xr=0,cl=null,fl=0,zt=[],Bt=0,dr=null,wn=1,kn="";function pr(e,t){Gr[Xr++]=fl,Gr[Xr++]=cl,cl=e,fl=t}function Kc(e,t,s){zt[Bt++]=wn,zt[Bt++]=kn,zt[Bt++]=dr,dr=e;var o=wn;e=kn;var c=32-k(o)-1;o&=~(1<<c),s+=1;var f=32-k(t)+c;if(30<f){var m=c-c%5;f=(o&(1<<m)-1).toString(32),o>>=m,c-=m,wn=1<<32-k(t)+c|s<<c|o,kn=f+e}else wn=1<<f|s<<c|o,kn=e}function ra(e){e.return!==null&&(pr(e,1),Kc(e,1,0))}function sa(e){for(;e===cl;)cl=Gr[--Xr],Gr[Xr]=null,fl=Gr[--Xr],Gr[Xr]=null;for(;e===dr;)dr=zt[--Bt],zt[Bt]=null,kn=zt[--Bt],zt[Bt]=null,wn=zt[--Bt],zt[Bt]=null}var Lt=null,At=null,$e=!1,Gt=null;function qc(e,t){var s=Kt(5,null,null,0);s.elementType="DELETED",s.stateNode=t,s.return=e,t=e.deletions,t===null?(e.deletions=[s],e.flags|=16):t.push(s)}function Hc(e,t){switch(e.tag){case 5:var s=e.type;return t=t.nodeType!==1||s.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Lt=e,At=Un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Lt=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(s=dr!==null?{id:wn,overflow:kn}:null,e.memoizedState={dehydrated:t,treeContext:s,retryLane:1073741824},s=Kt(18,null,null,0),s.stateNode=t,s.return=e,e.child=s,Lt=e,At=null,!0):!1;default:return!1}}function ia(e){return(e.mode&1)!==0&&(e.flags&128)===0}function la(e){if($e){var t=At;if(t){var s=t;if(!Hc(e,t)){if(ia(e))throw Error(r(418));t=Un(s.nextSibling);var o=Lt;t&&Hc(e,t)?qc(o,s):(e.flags=e.flags&-4097|2,$e=!1,Lt=e)}}else{if(ia(e))throw Error(r(418));e.flags=e.flags&-4097|2,$e=!1,Lt=e}}}function Wc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Lt=e}function dl(e){if(e!==Lt)return!1;if(!$e)return Wc(e),$e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Go(e.type,e.memoizedProps)),t&&(t=At)){if(ia(e))throw Qc(),Error(r(418));for(;t;)qc(e,t),t=Un(t.nextSibling)}if(Wc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(t===0){At=Un(e.nextSibling);break e}t--}else s!=="$"&&s!=="$!"&&s!=="$?"||t++}e=e.nextSibling}At=null}}else At=Lt?Un(e.stateNode.nextSibling):null;return!0}function Qc(){for(var e=At;e;)e=Un(e.nextSibling)}function Zr(){At=Lt=null,$e=!1}function oa(e){Gt===null?Gt=[e]:Gt.push(e)}var Dh=H.ReactCurrentBatchConfig;function Js(e,t,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var o=s.stateNode}if(!o)throw Error(r(147,e));var c=o,f=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f?t.ref:(t=function(m){var v=c.refs;m===null?delete v[f]:v[f]=m},t._stringRef=f,t)}if(typeof e!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,e))}return e}function pl(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jc(e){var t=e._init;return t(e._payload)}function Yc(e){function t(T,x){if(e){var _=T.deletions;_===null?(T.deletions=[x],T.flags|=16):_.push(x)}}function s(T,x){if(!e)return null;for(;x!==null;)t(T,x),x=x.sibling;return null}function o(T,x){for(T=new Map;x!==null;)x.key!==null?T.set(x.key,x):T.set(x.index,x),x=x.sibling;return T}function c(T,x){return T=Xn(T,x),T.index=0,T.sibling=null,T}function f(T,x,_){return T.index=_,e?(_=T.alternate,_!==null?(_=_.index,_<x?(T.flags|=2,x):_):(T.flags|=2,x)):(T.flags|=1048576,x)}function m(T){return e&&T.alternate===null&&(T.flags|=2),T}function v(T,x,_,U){return x===null||x.tag!==6?(x=Xa(_,T.mode,U),x.return=T,x):(x=c(x,_),x.return=T,x)}function w(T,x,_,U){var oe=_.type;return oe===Q?D(T,x,_.props.children,U,_.key):x!==null&&(x.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===De&&Jc(oe)===x.type)?(U=c(x,_.props),U.ref=Js(T,x,_),U.return=T,U):(U=$l(_.type,_.key,_.props,null,T.mode,U),U.ref=Js(T,x,_),U.return=T,U)}function L(T,x,_,U){return x===null||x.tag!==4||x.stateNode.containerInfo!==_.containerInfo||x.stateNode.implementation!==_.implementation?(x=Za(_,T.mode,U),x.return=T,x):(x=c(x,_.children||[]),x.return=T,x)}function D(T,x,_,U,oe){return x===null||x.tag!==7?(x=Sr(_,T.mode,U,oe),x.return=T,x):(x=c(x,_),x.return=T,x)}function B(T,x,_){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Xa(""+x,T.mode,_),x.return=T,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case X:return _=$l(x.type,x.key,x.props,null,T.mode,_),_.ref=Js(T,null,x),_.return=T,_;case V:return x=Za(x,T.mode,_),x.return=T,x;case De:var U=x._init;return B(T,U(x._payload),_)}if(Tn(x)||ne(x))return x=Sr(x,T.mode,_,null),x.return=T,x;pl(T,x)}return null}function $(T,x,_,U){var oe=x!==null?x.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return oe!==null?null:v(T,x,""+_,U);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case X:return _.key===oe?w(T,x,_,U):null;case V:return _.key===oe?L(T,x,_,U):null;case De:return oe=_._init,$(T,x,oe(_._payload),U)}if(Tn(_)||ne(_))return oe!==null?null:D(T,x,_,U,null);pl(T,_)}return null}function ee(T,x,_,U,oe){if(typeof U=="string"&&U!==""||typeof U=="number")return T=T.get(_)||null,v(x,T,""+U,oe);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case X:return T=T.get(U.key===null?_:U.key)||null,w(x,T,U,oe);case V:return T=T.get(U.key===null?_:U.key)||null,L(x,T,U,oe);case De:var ue=U._init;return ee(T,x,_,ue(U._payload),oe)}if(Tn(U)||ne(U))return T=T.get(_)||null,D(x,T,U,oe,null);pl(x,U)}return null}function se(T,x,_,U){for(var oe=null,ue=null,ce=x,me=x=0,nt=null;ce!==null&&me<_.length;me++){ce.index>me?(nt=ce,ce=null):nt=ce.sibling;var Oe=$(T,ce,_[me],U);if(Oe===null){ce===null&&(ce=nt);break}e&&ce&&Oe.alternate===null&&t(T,ce),x=f(Oe,x,me),ue===null?oe=Oe:ue.sibling=Oe,ue=Oe,ce=nt}if(me===_.length)return s(T,ce),$e&&pr(T,me),oe;if(ce===null){for(;me<_.length;me++)ce=B(T,_[me],U),ce!==null&&(x=f(ce,x,me),ue===null?oe=ce:ue.sibling=ce,ue=ce);return $e&&pr(T,me),oe}for(ce=o(T,ce);me<_.length;me++)nt=ee(ce,T,me,_[me],U),nt!==null&&(e&&nt.alternate!==null&&ce.delete(nt.key===null?me:nt.key),x=f(nt,x,me),ue===null?oe=nt:ue.sibling=nt,ue=nt);return e&&ce.forEach(function(Zn){return t(T,Zn)}),$e&&pr(T,me),oe}function ie(T,x,_,U){var oe=ne(_);if(typeof oe!="function")throw Error(r(150));if(_=oe.call(_),_==null)throw Error(r(151));for(var ue=oe=null,ce=x,me=x=0,nt=null,Oe=_.next();ce!==null&&!Oe.done;me++,Oe=_.next()){ce.index>me?(nt=ce,ce=null):nt=ce.sibling;var Zn=$(T,ce,Oe.value,U);if(Zn===null){ce===null&&(ce=nt);break}e&&ce&&Zn.alternate===null&&t(T,ce),x=f(Zn,x,me),ue===null?oe=Zn:ue.sibling=Zn,ue=Zn,ce=nt}if(Oe.done)return s(T,ce),$e&&pr(T,me),oe;if(ce===null){for(;!Oe.done;me++,Oe=_.next())Oe=B(T,Oe.value,U),Oe!==null&&(x=f(Oe,x,me),ue===null?oe=Oe:ue.sibling=Oe,ue=Oe);return $e&&pr(T,me),oe}for(ce=o(T,ce);!Oe.done;me++,Oe=_.next())Oe=ee(ce,T,me,Oe.value,U),Oe!==null&&(e&&Oe.alternate!==null&&ce.delete(Oe.key===null?me:Oe.key),x=f(Oe,x,me),ue===null?oe=Oe:ue.sibling=Oe,ue=Oe);return e&&ce.forEach(function(gm){return t(T,gm)}),$e&&pr(T,me),oe}function Ve(T,x,_,U){if(typeof _=="object"&&_!==null&&_.type===Q&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case X:e:{for(var oe=_.key,ue=x;ue!==null;){if(ue.key===oe){if(oe=_.type,oe===Q){if(ue.tag===7){s(T,ue.sibling),x=c(ue,_.props.children),x.return=T,T=x;break e}}else if(ue.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===De&&Jc(oe)===ue.type){s(T,ue.sibling),x=c(ue,_.props),x.ref=Js(T,ue,_),x.return=T,T=x;break e}s(T,ue);break}else t(T,ue);ue=ue.sibling}_.type===Q?(x=Sr(_.props.children,T.mode,U,_.key),x.return=T,T=x):(U=$l(_.type,_.key,_.props,null,T.mode,U),U.ref=Js(T,x,_),U.return=T,T=U)}return m(T);case V:e:{for(ue=_.key;x!==null;){if(x.key===ue)if(x.tag===4&&x.stateNode.containerInfo===_.containerInfo&&x.stateNode.implementation===_.implementation){s(T,x.sibling),x=c(x,_.children||[]),x.return=T,T=x;break e}else{s(T,x);break}else t(T,x);x=x.sibling}x=Za(_,T.mode,U),x.return=T,T=x}return m(T);case De:return ue=_._init,Ve(T,x,ue(_._payload),U)}if(Tn(_))return se(T,x,_,U);if(ne(_))return ie(T,x,_,U);pl(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,x!==null&&x.tag===6?(s(T,x.sibling),x=c(x,_),x.return=T,T=x):(s(T,x),x=Xa(_,T.mode,U),x.return=T,T=x),m(T)):s(T,x)}return Ve}var es=Yc(!0),Gc=Yc(!1),hl=Fn(null),ml=null,ts=null,aa=null;function ua(){aa=ts=ml=null}function ca(e){var t=hl.current;Re(hl),e._currentValue=t}function fa(e,t,s){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===s)break;e=e.return}}function ns(e,t){ml=e,aa=ts=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Nt=!0),e.firstContext=null)}function Ut(e){var t=e._currentValue;if(aa!==e)if(e={context:e,memoizedValue:t,next:null},ts===null){if(ml===null)throw Error(r(308));ts=e,ml.dependencies={lanes:0,firstContext:e}}else ts=ts.next=e;return t}var hr=null;function da(e){hr===null?hr=[e]:hr.push(e)}function Xc(e,t,s,o){var c=t.interleaved;return c===null?(s.next=s,da(t)):(s.next=c.next,c.next=s),t.interleaved=s,Sn(e,o)}function Sn(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var qn=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,s){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ee&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,Sn(e,s)}return c=o.interleaved,c===null?(t.next=t,da(o)):(t.next=c.next,c.next=t),o.interleaved=t,Sn(e,s)}function yl(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,s|=o,t.lanes=s,yn(e,s)}}function ef(e,t){var s=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var c=null,f=null;if(s=s.firstBaseUpdate,s!==null){do{var m={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};f===null?c=f=m:f=f.next=m,s=s.next}while(s!==null);f===null?c=f=t:f=f.next=t}else c=f=t;s={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:o.shared,effects:o.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function gl(e,t,s,o){var c=e.updateQueue;qn=!1;var f=c.firstBaseUpdate,m=c.lastBaseUpdate,v=c.shared.pending;if(v!==null){c.shared.pending=null;var w=v,L=w.next;w.next=null,m===null?f=L:m.next=L,m=w;var D=e.alternate;D!==null&&(D=D.updateQueue,v=D.lastBaseUpdate,v!==m&&(v===null?D.firstBaseUpdate=L:v.next=L,D.lastBaseUpdate=w))}if(f!==null){var B=c.baseState;m=0,D=L=w=null,v=f;do{var $=v.lane,ee=v.eventTime;if((o&$)===$){D!==null&&(D=D.next={eventTime:ee,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var se=e,ie=v;switch($=t,ee=s,ie.tag){case 1:if(se=ie.payload,typeof se=="function"){B=se.call(ee,B,$);break e}B=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ie.payload,$=typeof se=="function"?se.call(ee,B,$):se,$==null)break e;B=G({},B,$);break e;case 2:qn=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,$=c.effects,$===null?c.effects=[v]:$.push(v))}else ee={eventTime:ee,lane:$,tag:v.tag,payload:v.payload,callback:v.callback,next:null},D===null?(L=D=ee,w=B):D=D.next=ee,m|=$;if(v=v.next,v===null){if(v=c.shared.pending,v===null)break;$=v,v=$.next,$.next=null,c.lastBaseUpdate=$,c.shared.pending=null}}while(!0);if(D===null&&(w=B),c.baseState=w,c.firstBaseUpdate=L,c.lastBaseUpdate=D,t=c.shared.interleaved,t!==null){c=t;do m|=c.lane,c=c.next;while(c!==t)}else f===null&&(c.shared.lanes=0);gr|=m,e.lanes=m,e.memoizedState=B}}function tf(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],c=o.callback;if(c!==null){if(o.callback=null,o=s,typeof c!="function")throw Error(r(191,c));c.call(o)}}}var Ys={},an=Fn(Ys),Gs=Fn(Ys),Xs=Fn(Ys);function mr(e){if(e===Ys)throw Error(r(174));return e}function ha(e,t){switch(be(Xs,t),be(Gs,e),be(an,Ys),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sr(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sr(t,e)}Re(an),be(an,t)}function rs(){Re(an),Re(Gs),Re(Xs)}function nf(e){mr(Xs.current);var t=mr(an.current),s=sr(t,e.type);t!==s&&(be(Gs,e),be(an,s))}function ma(e){Gs.current===e&&(Re(an),Re(Gs))}var Be=Fn(0);function vl(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ya=[];function ga(){for(var e=0;e<ya.length;e++)ya[e]._workInProgressVersionPrimary=null;ya.length=0}var wl=H.ReactCurrentDispatcher,va=H.ReactCurrentBatchConfig,yr=0,Ue=null,Xe=null,et=null,kl=!1,Zs=!1,ei=0,zh=0;function dt(){throw Error(r(321))}function wa(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Yt(e[s],t[s]))return!1;return!0}function ka(e,t,s,o,c,f){if(yr=f,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wl.current=e===null||e.memoizedState===null?Vh:Kh,e=s(o,c),Zs){f=0;do{if(Zs=!1,ei=0,25<=f)throw Error(r(301));f+=1,et=Xe=null,t.updateQueue=null,wl.current=qh,e=s(o,c)}while(Zs)}if(wl.current=xl,t=Xe!==null&&Xe.next!==null,yr=0,et=Xe=Ue=null,kl=!1,t)throw Error(r(300));return e}function Sa(){var e=ei!==0;return ei=0,e}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Ue.memoizedState=et=e:et=et.next=e,et}function Ft(){if(Xe===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=et===null?Ue.memoizedState:et.next;if(t!==null)et=t,Xe=e;else{if(e===null)throw Error(r(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},et===null?Ue.memoizedState=et=e:et=et.next=e}return et}function ti(e,t){return typeof t=="function"?t(e):t}function ja(e){var t=Ft(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var o=Xe,c=o.baseQueue,f=s.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}o.baseQueue=c=f,s.pending=null}if(c!==null){f=c.next,o=o.baseState;var v=m=null,w=null,L=f;do{var D=L.lane;if((yr&D)===D)w!==null&&(w=w.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),o=L.hasEagerState?L.eagerState:e(o,L.action);else{var B={lane:D,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};w===null?(v=w=B,m=o):w=w.next=B,Ue.lanes|=D,gr|=D}L=L.next}while(L!==null&&L!==f);w===null?m=o:w.next=v,Yt(o,t.memoizedState)||(Nt=!0),t.memoizedState=o,t.baseState=m,t.baseQueue=w,s.lastRenderedState=o}if(e=s.interleaved,e!==null){c=e;do f=c.lane,Ue.lanes|=f,gr|=f,c=c.next;while(c!==e)}else c===null&&(s.lanes=0);return[t.memoizedState,s.dispatch]}function xa(e){var t=Ft(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var o=s.dispatch,c=s.pending,f=t.memoizedState;if(c!==null){s.pending=null;var m=c=c.next;do f=e(f,m.action),m=m.next;while(m!==c);Yt(f,t.memoizedState)||(Nt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),s.lastRenderedState=f}return[f,o]}function rf(){}function sf(e,t){var s=Ue,o=Ft(),c=t(),f=!Yt(o.memoizedState,c);if(f&&(o.memoizedState=c,Nt=!0),o=o.queue,Na(af.bind(null,s,o,e),[e]),o.getSnapshot!==t||f||et!==null&&et.memoizedState.tag&1){if(s.flags|=2048,ni(9,of.bind(null,s,o,c,t),void 0,null),tt===null)throw Error(r(349));(yr&30)!==0||lf(s,t,c)}return c}function lf(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function of(e,t,s,o){t.value=s,t.getSnapshot=o,uf(t)&&cf(e)}function af(e,t,s){return s(function(){uf(t)&&cf(e)})}function uf(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Yt(e,s)}catch{return!0}}function cf(e){var t=Sn(e,1);t!==null&&tn(t,e,1,-1)}function ff(e){var t=un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e},t.queue=e,e=e.dispatch=Fh.bind(null,Ue,e),[t.memoizedState,e]}function ni(e,t,s,o){return e={tag:e,create:t,destroy:s,deps:o,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.lastEffect=e.next=e):(s=t.lastEffect,s===null?t.lastEffect=e.next=e:(o=s.next,s.next=e,e.next=o,t.lastEffect=e)),e}function df(){return Ft().memoizedState}function Sl(e,t,s,o){var c=un();Ue.flags|=e,c.memoizedState=ni(1|t,s,void 0,o===void 0?null:o)}function jl(e,t,s,o){var c=Ft();o=o===void 0?null:o;var f=void 0;if(Xe!==null){var m=Xe.memoizedState;if(f=m.destroy,o!==null&&wa(o,m.deps)){c.memoizedState=ni(t,s,f,o);return}}Ue.flags|=e,c.memoizedState=ni(1|t,s,f,o)}function pf(e,t){return Sl(8390656,8,e,t)}function Na(e,t){return jl(2048,8,e,t)}function hf(e,t){return jl(4,2,e,t)}function mf(e,t){return jl(4,4,e,t)}function yf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gf(e,t,s){return s=s!=null?s.concat([e]):null,jl(4,4,yf.bind(null,t,e),s)}function Ca(){}function vf(e,t){var s=Ft();t=t===void 0?null:t;var o=s.memoizedState;return o!==null&&t!==null&&wa(t,o[1])?o[0]:(s.memoizedState=[e,t],e)}function wf(e,t){var s=Ft();t=t===void 0?null:t;var o=s.memoizedState;return o!==null&&t!==null&&wa(t,o[1])?o[0]:(e=e(),s.memoizedState=[e,t],e)}function kf(e,t,s){return(yr&21)===0?(e.baseState&&(e.baseState=!1,Nt=!0),e.memoizedState=s):(Yt(s,t)||(s=ot(),Ue.lanes|=s,gr|=s,e.baseState=!0),t)}function Bh(e,t){var s=Ie;Ie=s!==0&&4>s?s:4,e(!0);var o=va.transition;va.transition={};try{e(!1),t()}finally{Ie=s,va.transition=o}}function Sf(){return Ft().memoizedState}function Uh(e,t,s){var o=Yn(e);if(s={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null},jf(e))xf(t,s);else if(s=Xc(e,t,s,o),s!==null){var c=vt();tn(s,e,o,c),Nf(s,t,o)}}function Fh(e,t,s){var o=Yn(e),c={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null};if(jf(e))xf(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var m=t.lastRenderedState,v=f(m,s);if(c.hasEagerState=!0,c.eagerState=v,Yt(v,m)){var w=t.interleaved;w===null?(c.next=c,da(t)):(c.next=w.next,w.next=c),t.interleaved=c;return}}catch{}finally{}s=Xc(e,t,c,o),s!==null&&(c=vt(),tn(s,e,o,c),Nf(s,t,o))}}function jf(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function xf(e,t){Zs=kl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Nf(e,t,s){if((s&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,s|=o,t.lanes=s,yn(e,s)}}var xl={readContext:Ut,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},Vh={readContext:Ut,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:pf,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,Sl(4194308,4,yf.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var s=un();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var o=un();return t=s!==void 0?s(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Uh.bind(null,Ue,e),[o.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:ff,useDebugValue:Ca,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=ff(!1),t=e[0];return e=Bh.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var o=Ue,c=un();if($e){if(s===void 0)throw Error(r(407));s=s()}else{if(s=t(),tt===null)throw Error(r(349));(yr&30)!==0||lf(o,t,s)}c.memoizedState=s;var f={value:s,getSnapshot:t};return c.queue=f,pf(af.bind(null,o,f,e),[e]),o.flags|=2048,ni(9,of.bind(null,o,f,s,t),void 0,null),s},useId:function(){var e=un(),t=tt.identifierPrefix;if($e){var s=kn,o=wn;s=(o&~(1<<32-k(o)-1)).toString(32)+s,t=":"+t+"R"+s,s=ei++,0<s&&(t+="H"+s.toString(32)),t+=":"}else s=zh++,t=":"+t+"r"+s.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Kh={readContext:Ut,useCallback:vf,useContext:Ut,useEffect:Na,useImperativeHandle:gf,useInsertionEffect:hf,useLayoutEffect:mf,useMemo:wf,useReducer:ja,useRef:df,useState:function(){return ja(ti)},useDebugValue:Ca,useDeferredValue:function(e){var t=Ft();return kf(t,Xe.memoizedState,e)},useTransition:function(){var e=ja(ti)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:rf,useSyncExternalStore:sf,useId:Sf,unstable_isNewReconciler:!1},qh={readContext:Ut,useCallback:vf,useContext:Ut,useEffect:Na,useImperativeHandle:gf,useInsertionEffect:hf,useLayoutEffect:mf,useMemo:wf,useReducer:xa,useRef:df,useState:function(){return xa(ti)},useDebugValue:Ca,useDeferredValue:function(e){var t=Ft();return Xe===null?t.memoizedState=e:kf(t,Xe.memoizedState,e)},useTransition:function(){var e=xa(ti)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:rf,useSyncExternalStore:sf,useId:Sf,unstable_isNewReconciler:!1};function Xt(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var s in e)t[s]===void 0&&(t[s]=e[s]);return t}return t}function Ea(e,t,s,o){t=e.memoizedState,s=s(o,t),s=s==null?t:G({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Nl={isMounted:function(e){return(e=e._reactInternals)?Jt(e)===e:!1},enqueueSetState:function(e,t,s){e=e._reactInternals;var o=vt(),c=Yn(e),f=jn(o,c);f.payload=t,s!=null&&(f.callback=s),t=Hn(e,f,c),t!==null&&(tn(t,e,c,o),yl(t,e,c))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var o=vt(),c=Yn(e),f=jn(o,c);f.tag=1,f.payload=t,s!=null&&(f.callback=s),t=Hn(e,f,c),t!==null&&(tn(t,e,c,o),yl(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=vt(),o=Yn(e),c=jn(s,o);c.tag=2,t!=null&&(c.callback=t),t=Hn(e,c,o),t!==null&&(tn(t,e,o,s),yl(t,e,o))}};function Cf(e,t,s,o,c,f,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,m):t.prototype&&t.prototype.isPureReactComponent?!Fs(s,o)||!Fs(c,f):!0}function Ef(e,t,s){var o=!1,c=Vn,f=t.contextType;return typeof f=="object"&&f!==null?f=Ut(f):(c=xt(t)?fr:ft.current,o=t.contextTypes,f=(o=o!=null)?Yr(e,c):Vn),t=new t(s,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Nl,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=f),t}function Of(e,t,s,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,o),t.state!==e&&Nl.enqueueReplaceState(t,t.state,null)}function Oa(e,t,s,o){var c=e.stateNode;c.props=s,c.state=e.memoizedState,c.refs={},pa(e);var f=t.contextType;typeof f=="object"&&f!==null?c.context=Ut(f):(f=xt(t)?fr:ft.current,c.context=Yr(e,f)),c.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(Ea(e,t,f,s),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Nl.enqueueReplaceState(c,c.state,null),gl(e,s,c,o),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function ss(e,t){try{var s="",o=t;do s+=ye(o),o=o.return;while(o);var c=s}catch(f){c=`
39
+ Error generating stack: `+f.message+`
40
+ `+f.stack}return{value:e,source:t,stack:c,digest:null}}function Ta(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function _a(e,t){try{console.error(t.value)}catch(s){setTimeout(function(){throw s})}}var Hh=typeof WeakMap=="function"?WeakMap:Map;function Tf(e,t,s){s=jn(-1,s),s.tag=3,s.payload={element:null};var o=t.value;return s.callback=function(){Ll||(Ll=!0,Ka=o),_a(e,t)},s}function _f(e,t,s){s=jn(-1,s),s.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var c=t.value;s.payload=function(){return o(c)},s.callback=function(){_a(e,t)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(s.callback=function(){_a(e,t),typeof o!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),s}function If(e,t,s){var o=e.pingCache;if(o===null){o=e.pingCache=new Hh;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(s)||(c.add(s),e=lm.bind(null,e,t,s),t.then(e,e))}function Lf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Af(e,t,s,o,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(t=jn(-1,1),t.tag=2,Hn(s,t,1))),s.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var Wh=H.ReactCurrentOwner,Nt=!1;function gt(e,t,s,o){t.child=e===null?Gc(t,null,s,o):es(t,e.child,s,o)}function bf(e,t,s,o,c){s=s.render;var f=t.ref;return ns(t,c),o=ka(e,t,s,o,f,c),s=Sa(),e!==null&&!Nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,xn(e,t,c)):($e&&s&&ra(t),t.flags|=1,gt(e,t,o,c),t.child)}function Pf(e,t,s,o,c){if(e===null){var f=s.type;return typeof f=="function"&&!Ga(f)&&f.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(t.tag=15,t.type=f,Mf(e,t,f,o,c)):(e=$l(s.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,(e.lanes&c)===0){var m=f.memoizedProps;if(s=s.compare,s=s!==null?s:Fs,s(m,o)&&e.ref===t.ref)return xn(e,t,c)}return t.flags|=1,e=Xn(f,o),e.ref=t.ref,e.return=t,t.child=e}function Mf(e,t,s,o,c){if(e!==null){var f=e.memoizedProps;if(Fs(f,o)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=o=f,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Nt=!0);else return t.lanes=e.lanes,xn(e,t,c)}return Ia(e,t,s,o,c)}function Rf(e,t,s){var o=t.pendingProps,c=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(ls,bt),bt|=s;else{if((s&1073741824)===0)return e=f!==null?f.baseLanes|s:s,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,be(ls,bt),bt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=f!==null?f.baseLanes:s,be(ls,bt),bt|=o}else f!==null?(o=f.baseLanes|s,t.memoizedState=null):o=s,be(ls,bt),bt|=o;return gt(e,t,c,s),t.child}function $f(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=512,t.flags|=2097152)}function Ia(e,t,s,o,c){var f=xt(s)?fr:ft.current;return f=Yr(t,f),ns(t,c),s=ka(e,t,s,o,f,c),o=Sa(),e!==null&&!Nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,xn(e,t,c)):($e&&o&&ra(t),t.flags|=1,gt(e,t,s,c),t.child)}function Df(e,t,s,o,c){if(xt(s)){var f=!0;al(t)}else f=!1;if(ns(t,c),t.stateNode===null)El(e,t),Ef(t,s,o),Oa(t,s,o,c),o=!0;else if(e===null){var m=t.stateNode,v=t.memoizedProps;m.props=v;var w=m.context,L=s.contextType;typeof L=="object"&&L!==null?L=Ut(L):(L=xt(s)?fr:ft.current,L=Yr(t,L));var D=s.getDerivedStateFromProps,B=typeof D=="function"||typeof m.getSnapshotBeforeUpdate=="function";B||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==o||w!==L)&&Of(t,m,o,L),qn=!1;var $=t.memoizedState;m.state=$,gl(t,o,m,c),w=t.memoizedState,v!==o||$!==w||jt.current||qn?(typeof D=="function"&&(Ea(t,s,D,o),w=t.memoizedState),(v=qn||Cf(t,s,v,o,$,w,L))?(B||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=w),m.props=o,m.state=w,m.context=L,o=v):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{m=t.stateNode,Zc(e,t),v=t.memoizedProps,L=t.type===t.elementType?v:Xt(t.type,v),m.props=L,B=t.pendingProps,$=m.context,w=s.contextType,typeof w=="object"&&w!==null?w=Ut(w):(w=xt(s)?fr:ft.current,w=Yr(t,w));var ee=s.getDerivedStateFromProps;(D=typeof ee=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==B||$!==w)&&Of(t,m,o,w),qn=!1,$=t.memoizedState,m.state=$,gl(t,o,m,c);var se=t.memoizedState;v!==B||$!==se||jt.current||qn?(typeof ee=="function"&&(Ea(t,s,ee,o),se=t.memoizedState),(L=qn||Cf(t,s,L,o,$,se,w)||!1)?(D||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,se,w),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,se,w)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=se),m.props=o,m.state=se,m.context=w,o=L):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),o=!1)}return La(e,t,s,o,f,c)}function La(e,t,s,o,c,f){$f(e,t);var m=(t.flags&128)!==0;if(!o&&!m)return c&&Fc(t,s,!1),xn(e,t,f);o=t.stateNode,Wh.current=t;var v=m&&typeof s.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&m?(t.child=es(t,e.child,null,f),t.child=es(t,null,v,f)):gt(e,t,v,f),t.memoizedState=o.state,c&&Fc(t,s,!0),t.child}function zf(e){var t=e.stateNode;t.pendingContext?Bc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bc(e,t.context,!1),ha(e,t.containerInfo)}function Bf(e,t,s,o,c){return Zr(),oa(c),t.flags|=256,gt(e,t,s,o),t.child}var Aa={dehydrated:null,treeContext:null,retryLane:0};function ba(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uf(e,t,s){var o=t.pendingProps,c=Be.current,f=!1,m=(t.flags&128)!==0,v;if((v=m)||(v=e!==null&&e.memoizedState===null?!1:(c&2)!==0),v?(f=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),be(Be,c&1),e===null)return la(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(m=o.children,e=o.fallback,f?(o=t.mode,f=t.child,m={mode:"hidden",children:m},(o&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=m):f=Dl(m,o,0,null),e=Sr(e,o,s,null),f.return=t,e.return=t,f.sibling=e,t.child=f,t.child.memoizedState=ba(s),t.memoizedState=Aa,e):Pa(t,m));if(c=e.memoizedState,c!==null&&(v=c.dehydrated,v!==null))return Qh(e,t,m,o,v,c,s);if(f){f=o.fallback,m=t.mode,c=e.child,v=c.sibling;var w={mode:"hidden",children:o.children};return(m&1)===0&&t.child!==c?(o=t.child,o.childLanes=0,o.pendingProps=w,t.deletions=null):(o=Xn(c,w),o.subtreeFlags=c.subtreeFlags&14680064),v!==null?f=Xn(v,f):(f=Sr(f,m,s,null),f.flags|=2),f.return=t,o.return=t,o.sibling=f,t.child=o,o=f,f=t.child,m=e.child.memoizedState,m=m===null?ba(s):{baseLanes:m.baseLanes|s,cachePool:null,transitions:m.transitions},f.memoizedState=m,f.childLanes=e.childLanes&~s,t.memoizedState=Aa,o}return f=e.child,e=f.sibling,o=Xn(f,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=s),o.return=t,o.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=o,t.memoizedState=null,o}function Pa(e,t){return t=Dl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cl(e,t,s,o){return o!==null&&oa(o),es(t,e.child,null,s),e=Pa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qh(e,t,s,o,c,f,m){if(s)return t.flags&256?(t.flags&=-257,o=Ta(Error(r(422))),Cl(e,t,m,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(f=o.fallback,c=t.mode,o=Dl({mode:"visible",children:o.children},c,0,null),f=Sr(f,c,m,null),f.flags|=2,o.return=t,f.return=t,o.sibling=f,t.child=o,(t.mode&1)!==0&&es(t,e.child,null,m),t.child.memoizedState=ba(m),t.memoizedState=Aa,f);if((t.mode&1)===0)return Cl(e,t,m,null);if(c.data==="$!"){if(o=c.nextSibling&&c.nextSibling.dataset,o)var v=o.dgst;return o=v,f=Error(r(419)),o=Ta(f,o,void 0),Cl(e,t,m,o)}if(v=(m&e.childLanes)!==0,Nt||v){if(o=tt,o!==null){switch(m&-m){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(o.suspendedLanes|m))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,Sn(e,c),tn(o,e,c,-1))}return Ya(),o=Ta(Error(r(421))),Cl(e,t,m,o)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=om.bind(null,e),c._reactRetry=t,null):(e=f.treeContext,At=Un(c.nextSibling),Lt=t,$e=!0,Gt=null,e!==null&&(zt[Bt++]=wn,zt[Bt++]=kn,zt[Bt++]=dr,wn=e.id,kn=e.overflow,dr=t),t=Pa(t,o.children),t.flags|=4096,t)}function Ff(e,t,s){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),fa(e.return,t,s)}function Ma(e,t,s,o,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=s,f.tailMode=c)}function Vf(e,t,s){var o=t.pendingProps,c=o.revealOrder,f=o.tail;if(gt(e,t,o.children,s),o=Be.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ff(e,s,t);else if(e.tag===19)Ff(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(be(Be,o),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(s=t.child,c=null;s!==null;)e=s.alternate,e!==null&&vl(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=t.child,t.child=null):(c=s.sibling,s.sibling=null),Ma(t,!1,c,s,f);break;case"backwards":for(s=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&vl(e)===null){t.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}Ma(t,!0,s,null,f);break;case"together":Ma(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xn(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),gr|=t.lanes,(s&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,s=Xn(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=Xn(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function Jh(e,t,s){switch(t.tag){case 3:zf(t),Zr();break;case 5:nf(t);break;case 1:xt(t.type)&&al(t);break;case 4:ha(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,c=t.memoizedProps.value;be(hl,o._currentValue),o._currentValue=c;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(be(Be,Be.current&1),t.flags|=128,null):(s&t.child.childLanes)!==0?Uf(e,t,s):(be(Be,Be.current&1),e=xn(e,t,s),e!==null?e.sibling:null);be(Be,Be.current&1);break;case 19:if(o=(s&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Vf(e,t,s);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),be(Be,Be.current),o)break;return null;case 22:case 23:return t.lanes=0,Rf(e,t,s)}return xn(e,t,s)}var Kf,Ra,qf,Hf;Kf=function(e,t){for(var s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Ra=function(){},qf=function(e,t,s,o){var c=e.memoizedProps;if(c!==o){e=t.stateNode,mr(an.current);var f=null;switch(s){case"input":c=Ne(e,c),o=Ne(e,o),f=[];break;case"select":c=G({},c,{value:void 0}),o=G({},o,{value:void 0}),f=[];break;case"textarea":c=Ns(e,c),o=Ns(e,o),f=[];break;default:typeof c.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=il)}Es(s,o);var m;s=null;for(L in c)if(!o.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var v=c[L];for(m in v)v.hasOwnProperty(m)&&(s||(s={}),s[m]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(a.hasOwnProperty(L)?f||(f=[]):(f=f||[]).push(L,null));for(L in o){var w=o[L];if(v=c!=null?c[L]:void 0,o.hasOwnProperty(L)&&w!==v&&(w!=null||v!=null))if(L==="style")if(v){for(m in v)!v.hasOwnProperty(m)||w&&w.hasOwnProperty(m)||(s||(s={}),s[m]="");for(m in w)w.hasOwnProperty(m)&&v[m]!==w[m]&&(s||(s={}),s[m]=w[m])}else s||(f||(f=[]),f.push(L,s)),s=w;else L==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,v=v?v.__html:void 0,w!=null&&v!==w&&(f=f||[]).push(L,w)):L==="children"?typeof w!="string"&&typeof w!="number"||(f=f||[]).push(L,""+w):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(a.hasOwnProperty(L)?(w!=null&&L==="onScroll"&&Me("scroll",e),f||v===w||(f=[])):(f=f||[]).push(L,w))}s&&(f=f||[]).push("style",s);var L=f;(t.updateQueue=L)&&(t.flags|=4)}},Hf=function(e,t,s,o){s!==o&&(t.flags|=4)};function ri(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,o=0;if(t)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,o|=c.subtreeFlags&14680064,o|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=s,t}function Yh(e,t,s){var o=t.pendingProps;switch(sa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return xt(t.type)&&ol(),pt(t),null;case 3:return o=t.stateNode,rs(),Re(jt),Re(ft),ga(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gt!==null&&(Wa(Gt),Gt=null))),Ra(e,t),pt(t),null;case 5:ma(t);var c=mr(Xs.current);if(s=t.type,e!==null&&t.stateNode!=null)qf(e,t,s,o,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(r(166));return pt(t),null}if(e=mr(an.current),dl(t)){o=t.stateNode,s=t.type;var f=t.memoizedProps;switch(o[on]=t,o[Ws]=f,e=(t.mode&1)!==0,s){case"dialog":Me("cancel",o),Me("close",o);break;case"iframe":case"object":case"embed":Me("load",o);break;case"video":case"audio":for(c=0;c<Ks.length;c++)Me(Ks[c],o);break;case"source":Me("error",o);break;case"img":case"image":case"link":Me("error",o),Me("load",o);break;case"details":Me("toggle",o);break;case"input":st(o,f),Me("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!f.multiple},Me("invalid",o);break;case"textarea":Cs(o,f),Me("invalid",o)}Es(s,f),c=null;for(var m in f)if(f.hasOwnProperty(m)){var v=f[m];m==="children"?typeof v=="string"?o.textContent!==v&&(f.suppressHydrationWarning!==!0&&sl(o.textContent,v,e),c=["children",v]):typeof v=="number"&&o.textContent!==""+v&&(f.suppressHydrationWarning!==!0&&sl(o.textContent,v,e),c=["children",""+v]):a.hasOwnProperty(m)&&v!=null&&m==="onScroll"&&Me("scroll",o)}switch(s){case"input":sn(o),ln(o,f,!0);break;case"textarea":sn(o),St(o);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(o.onclick=il)}o=c,t.updateQueue=o,o!==null&&(t.flags|=4)}else{m=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Tt(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=m.createElement(s,{is:o.is}):(e=m.createElement(s),s==="select"&&(m=e,o.multiple?m.multiple=!0:o.size&&(m.size=o.size))):e=m.createElementNS(e,s),e[on]=t,e[Ws]=o,Kf(e,t,!1,!1),t.stateNode=e;e:{switch(m=In(s,o),s){case"dialog":Me("cancel",e),Me("close",e),c=o;break;case"iframe":case"object":case"embed":Me("load",e),c=o;break;case"video":case"audio":for(c=0;c<Ks.length;c++)Me(Ks[c],e);c=o;break;case"source":Me("error",e),c=o;break;case"img":case"image":case"link":Me("error",e),Me("load",e),c=o;break;case"details":Me("toggle",e),c=o;break;case"input":st(e,o),c=Ne(e,o),Me("invalid",e);break;case"option":c=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},c=G({},o,{value:void 0}),Me("invalid",e);break;case"textarea":Cs(e,o),c=Ns(e,o),Me("invalid",e);break;default:c=o}Es(s,c),v=c;for(f in v)if(v.hasOwnProperty(f)){var w=v[f];f==="style"?br(e,w):f==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,w!=null&&ir(e,w)):f==="children"?typeof w=="string"?(s!=="textarea"||w!=="")&&Mt(e,w):typeof w=="number"&&Mt(e,""+w):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(a.hasOwnProperty(f)?w!=null&&f==="onScroll"&&Me("scroll",e):w!=null&&F(e,f,w,m))}switch(s){case"input":sn(e),ln(e,o,!1);break;case"textarea":sn(e),St(e);break;case"option":o.value!=null&&e.setAttribute("value",""+ke(o.value));break;case"select":e.multiple=!!o.multiple,f=o.value,f!=null?pn(e,!!o.multiple,f,!1):o.defaultValue!=null&&pn(e,!!o.multiple,o.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=il)}switch(s){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)Hf(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(r(166));if(s=mr(Xs.current),mr(an.current),dl(t)){if(o=t.stateNode,s=t.memoizedProps,o[on]=t,(f=o.nodeValue!==s)&&(e=Lt,e!==null))switch(e.tag){case 3:sl(o.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&sl(o.nodeValue,s,(e.mode&1)!==0)}f&&(t.flags|=4)}else o=(s.nodeType===9?s:s.ownerDocument).createTextNode(o),o[on]=t,t.stateNode=o}return pt(t),null;case 13:if(Re(Be),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($e&&At!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Qc(),Zr(),t.flags|=98560,f=!1;else if(f=dl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[on]=t}else Zr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),f=!1}else Gt!==null&&(Wa(Gt),Gt=null),f=!0;if(!f)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=s,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Be.current&1)!==0?Ze===0&&(Ze=3):Ya())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return rs(),Ra(e,t),e===null&&qs(t.stateNode.containerInfo),pt(t),null;case 10:return ca(t.type._context),pt(t),null;case 17:return xt(t.type)&&ol(),pt(t),null;case 19:if(Re(Be),f=t.memoizedState,f===null)return pt(t),null;if(o=(t.flags&128)!==0,m=f.rendering,m===null)if(o)ri(f,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=vl(e),m!==null){for(t.flags|=128,ri(f,!1),o=m.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=s,s=t.child;s!==null;)f=s,e=o,f.flags&=14680066,m=f.alternate,m===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=m.childLanes,f.lanes=m.lanes,f.child=m.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=m.memoizedProps,f.memoizedState=m.memoizedState,f.updateQueue=m.updateQueue,f.type=m.type,e=m.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return be(Be,Be.current&1|2),t.child}e=e.sibling}f.tail!==null&&ze()>os&&(t.flags|=128,o=!0,ri(f,!1),t.lanes=4194304)}else{if(!o)if(e=vl(m),e!==null){if(t.flags|=128,o=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),ri(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!$e)return pt(t),null}else 2*ze()-f.renderingStartTime>os&&s!==1073741824&&(t.flags|=128,o=!0,ri(f,!1),t.lanes=4194304);f.isBackwards?(m.sibling=t.child,t.child=m):(s=f.last,s!==null?s.sibling=m:t.child=m,f.last=m)}return f.tail!==null?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=ze(),t.sibling=null,s=Be.current,be(Be,o?s&1|2:s&1),t):(pt(t),null);case 22:case 23:return Ja(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(bt&1073741824)!==0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function Gh(e,t){switch(sa(t),t.tag){case 1:return xt(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rs(),Re(jt),Re(ft),ga(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ma(t),null;case 13:if(Re(Be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Be),null;case 4:return rs(),null;case 10:return ca(t.type._context),null;case 22:case 23:return Ja(),null;case 24:return null;default:return null}}var Ol=!1,ht=!1,Xh=typeof WeakSet=="function"?WeakSet:Set,re=null;function is(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(o){Fe(e,t,o)}else s.current=null}function $a(e,t,s){try{s()}catch(o){Fe(e,t,o)}}var Wf=!1;function Zh(e,t){if(Jo=Wi,e=Nc(),Uo(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var c=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{s.nodeType,f.nodeType}catch{s=null;break e}var m=0,v=-1,w=-1,L=0,D=0,B=e,$=null;t:for(;;){for(var ee;B!==s||c!==0&&B.nodeType!==3||(v=m+c),B!==f||o!==0&&B.nodeType!==3||(w=m+o),B.nodeType===3&&(m+=B.nodeValue.length),(ee=B.firstChild)!==null;)$=B,B=ee;for(;;){if(B===e)break t;if($===s&&++L===c&&(v=m),$===f&&++D===o&&(w=m),(ee=B.nextSibling)!==null)break;B=$,$=B.parentNode}B=ee}s=v===-1||w===-1?null:{start:v,end:w}}else s=null}s=s||{start:0,end:0}}else s=null;for(Yo={focusedElem:e,selectionRange:s},Wi=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var se=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(se!==null){var ie=se.memoizedProps,Ve=se.memoizedState,T=t.stateNode,x=T.getSnapshotBeforeUpdate(t.elementType===t.type?ie:Xt(t.type,ie),Ve);T.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(U){Fe(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return se=Wf,Wf=!1,se}function si(e,t,s){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var c=o=o.next;do{if((c.tag&e)===e){var f=c.destroy;c.destroy=void 0,f!==void 0&&$a(t,s,f)}c=c.next}while(c!==o)}}function Tl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var o=s.create;s.destroy=o()}s=s.next}while(s!==t)}}function Da(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function Qf(e){var t=e.alternate;t!==null&&(e.alternate=null,Qf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[on],delete t[Ws],delete t[ea],delete t[Mh],delete t[Rh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jf(e){return e.tag===5||e.tag===3||e.tag===4}function Yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function za(e,t,s){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=il));else if(o!==4&&(e=e.child,e!==null))for(za(e,t,s),e=e.sibling;e!==null;)za(e,t,s),e=e.sibling}function Ba(e,t,s){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ba(e,t,s),e=e.sibling;e!==null;)Ba(e,t,s),e=e.sibling}var at=null,Zt=!1;function Wn(e,t,s){for(s=s.child;s!==null;)Gf(e,t,s),s=s.sibling}function Gf(e,t,s){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(zr,s)}catch{}switch(s.tag){case 5:ht||is(s,t);case 6:var o=at,c=Zt;at=null,Wn(e,t,s),at=o,Zt=c,at!==null&&(Zt?(e=at,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):at.removeChild(s.stateNode));break;case 18:at!==null&&(Zt?(e=at,s=s.stateNode,e.nodeType===8?Zo(e.parentNode,s):e.nodeType===1&&Zo(e,s),Rs(e)):Zo(at,s.stateNode));break;case 4:o=at,c=Zt,at=s.stateNode.containerInfo,Zt=!0,Wn(e,t,s),at=o,Zt=c;break;case 0:case 11:case 14:case 15:if(!ht&&(o=s.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){c=o=o.next;do{var f=c,m=f.destroy;f=f.tag,m!==void 0&&((f&2)!==0||(f&4)!==0)&&$a(s,t,m),c=c.next}while(c!==o)}Wn(e,t,s);break;case 1:if(!ht&&(is(s,t),o=s.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=s.memoizedProps,o.state=s.memoizedState,o.componentWillUnmount()}catch(v){Fe(s,t,v)}Wn(e,t,s);break;case 21:Wn(e,t,s);break;case 22:s.mode&1?(ht=(o=ht)||s.memoizedState!==null,Wn(e,t,s),ht=o):Wn(e,t,s);break;default:Wn(e,t,s)}}function Xf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Xh),t.forEach(function(o){var c=am.bind(null,e,o);s.has(o)||(s.add(o),o.then(c,c))})}}function en(e,t){var s=t.deletions;if(s!==null)for(var o=0;o<s.length;o++){var c=s[o];try{var f=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 5:at=v.stateNode,Zt=!1;break e;case 3:at=v.stateNode.containerInfo,Zt=!0;break e;case 4:at=v.stateNode.containerInfo,Zt=!0;break e}v=v.return}if(at===null)throw Error(r(160));Gf(f,m,c),at=null,Zt=!1;var w=c.alternate;w!==null&&(w.return=null),c.return=null}catch(L){Fe(c,t,L)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zf(t,e),t=t.sibling}function Zf(e,t){var s=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),cn(e),o&4){try{si(3,e,e.return),Tl(3,e)}catch(ie){Fe(e,e.return,ie)}try{si(5,e,e.return)}catch(ie){Fe(e,e.return,ie)}}break;case 1:en(t,e),cn(e),o&512&&s!==null&&is(s,s.return);break;case 5:if(en(t,e),cn(e),o&512&&s!==null&&is(s,s.return),e.flags&32){var c=e.stateNode;try{Mt(c,"")}catch(ie){Fe(e,e.return,ie)}}if(o&4&&(c=e.stateNode,c!=null)){var f=e.memoizedProps,m=s!==null?s.memoizedProps:f,v=e.type,w=e.updateQueue;if(e.updateQueue=null,w!==null)try{v==="input"&&f.type==="radio"&&f.name!=null&&Qe(c,f),In(v,m);var L=In(v,f);for(m=0;m<w.length;m+=2){var D=w[m],B=w[m+1];D==="style"?br(c,B):D==="dangerouslySetInnerHTML"?ir(c,B):D==="children"?Mt(c,B):F(c,D,B,L)}switch(v){case"input":it(c,f);break;case"textarea":ct(c,f);break;case"select":var $=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var ee=f.value;ee!=null?pn(c,!!f.multiple,ee,!1):$!==!!f.multiple&&(f.defaultValue!=null?pn(c,!!f.multiple,f.defaultValue,!0):pn(c,!!f.multiple,f.multiple?[]:"",!1))}c[Ws]=f}catch(ie){Fe(e,e.return,ie)}}break;case 6:if(en(t,e),cn(e),o&4){if(e.stateNode===null)throw Error(r(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(ie){Fe(e,e.return,ie)}}break;case 3:if(en(t,e),cn(e),o&4&&s!==null&&s.memoizedState.isDehydrated)try{Rs(t.containerInfo)}catch(ie){Fe(e,e.return,ie)}break;case 4:en(t,e),cn(e);break;case 13:en(t,e),cn(e),c=e.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(Va=ze())),o&4&&Xf(e);break;case 22:if(D=s!==null&&s.memoizedState!==null,e.mode&1?(ht=(L=ht)||D,en(t,e),ht=L):en(t,e),cn(e),o&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!D&&(e.mode&1)!==0)for(re=e,D=e.child;D!==null;){for(B=re=D;re!==null;){switch($=re,ee=$.child,$.tag){case 0:case 11:case 14:case 15:si(4,$,$.return);break;case 1:is($,$.return);var se=$.stateNode;if(typeof se.componentWillUnmount=="function"){o=$,s=$.return;try{t=o,se.props=t.memoizedProps,se.state=t.memoizedState,se.componentWillUnmount()}catch(ie){Fe(o,s,ie)}}break;case 5:is($,$.return);break;case 22:if($.memoizedState!==null){nd(B);continue}}ee!==null?(ee.return=$,re=ee):nd(B)}D=D.sibling}e:for(D=null,B=e;;){if(B.tag===5){if(D===null){D=B;try{c=B.stateNode,L?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(v=B.stateNode,w=B.memoizedProps.style,m=w!=null&&w.hasOwnProperty("display")?w.display:null,v.style.display=lr("display",m))}catch(ie){Fe(e,e.return,ie)}}}else if(B.tag===6){if(D===null)try{B.stateNode.nodeValue=L?"":B.memoizedProps}catch(ie){Fe(e,e.return,ie)}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===e)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===e)break e;for(;B.sibling===null;){if(B.return===null||B.return===e)break e;D===B&&(D=null),B=B.return}D===B&&(D=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:en(t,e),cn(e),o&4&&Xf(e);break;case 21:break;default:en(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{e:{for(var s=e.return;s!==null;){if(Jf(s)){var o=s;break e}s=s.return}throw Error(r(160))}switch(o.tag){case 5:var c=o.stateNode;o.flags&32&&(Mt(c,""),o.flags&=-33);var f=Yf(e);Ba(e,f,c);break;case 3:case 4:var m=o.stateNode.containerInfo,v=Yf(e);za(e,v,m);break;default:throw Error(r(161))}}catch(w){Fe(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function em(e,t,s){re=e,ed(e)}function ed(e,t,s){for(var o=(e.mode&1)!==0;re!==null;){var c=re,f=c.child;if(c.tag===22&&o){var m=c.memoizedState!==null||Ol;if(!m){var v=c.alternate,w=v!==null&&v.memoizedState!==null||ht;v=Ol;var L=ht;if(Ol=m,(ht=w)&&!L)for(re=c;re!==null;)m=re,w=m.child,m.tag===22&&m.memoizedState!==null?rd(c):w!==null?(w.return=m,re=w):rd(c);for(;f!==null;)re=f,ed(f),f=f.sibling;re=c,Ol=v,ht=L}td(e)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,re=f):td(e)}}function td(e){for(;re!==null;){var t=re;if((t.flags&8772)!==0){var s=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||Tl(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!ht)if(s===null)o.componentDidMount();else{var c=t.elementType===t.type?s.memoizedProps:Xt(t.type,s.memoizedProps);o.componentDidUpdate(c,s.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var f=t.updateQueue;f!==null&&tf(t,f,o);break;case 3:var m=t.updateQueue;if(m!==null){if(s=null,t.child!==null)switch(t.child.tag){case 5:s=t.child.stateNode;break;case 1:s=t.child.stateNode}tf(t,m,s)}break;case 5:var v=t.stateNode;if(s===null&&t.flags&4){s=v;var w=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":w.autoFocus&&s.focus();break;case"img":w.src&&(s.src=w.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var L=t.alternate;if(L!==null){var D=L.memoizedState;if(D!==null){var B=D.dehydrated;B!==null&&Rs(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}ht||t.flags&512&&Da(t)}catch($){Fe(t,t.return,$)}}if(t===e){re=null;break}if(s=t.sibling,s!==null){s.return=t.return,re=s;break}re=t.return}}function nd(e){for(;re!==null;){var t=re;if(t===e){re=null;break}var s=t.sibling;if(s!==null){s.return=t.return,re=s;break}re=t.return}}function rd(e){for(;re!==null;){var t=re;try{switch(t.tag){case 0:case 11:case 15:var s=t.return;try{Tl(4,t)}catch(w){Fe(t,s,w)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var c=t.return;try{o.componentDidMount()}catch(w){Fe(t,c,w)}}var f=t.return;try{Da(t)}catch(w){Fe(t,f,w)}break;case 5:var m=t.return;try{Da(t)}catch(w){Fe(t,m,w)}}}catch(w){Fe(t,t.return,w)}if(t===e){re=null;break}var v=t.sibling;if(v!==null){v.return=t.return,re=v;break}re=t.return}}var tm=Math.ceil,_l=H.ReactCurrentDispatcher,Ua=H.ReactCurrentOwner,Vt=H.ReactCurrentBatchConfig,Ee=0,tt=null,Ye=null,ut=0,bt=0,ls=Fn(0),Ze=0,ii=null,gr=0,Il=0,Fa=0,li=null,Ct=null,Va=0,os=1/0,Nn=null,Ll=!1,Ka=null,Qn=null,Al=!1,Jn=null,bl=0,oi=0,qa=null,Pl=-1,Ml=0;function vt(){return(Ee&6)!==0?ze():Pl!==-1?Pl:Pl=ze()}function Yn(e){return(e.mode&1)===0?1:(Ee&2)!==0&&ut!==0?ut&-ut:Dh.transition!==null?(Ml===0&&(Ml=ot()),Ml):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:sc(e.type)),e)}function tn(e,t,s,o){if(50<oi)throw oi=0,qa=null,Error(r(185));Pn(e,s,o),((Ee&2)===0||e!==tt)&&(e===tt&&((Ee&2)===0&&(Il|=s),Ze===4&&Gn(e,ut)),Et(e,o),s===1&&Ee===0&&(t.mode&1)===0&&(os=ze()+500,ul&&Kn()))}function Et(e,t){var s=e.callbackNode;Vi(e,t);var o=Ae(e,e===tt?ut:0);if(o===0)s!==null&&Bi(s),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(s!=null&&Bi(s),t===1)e.tag===0?$h(id.bind(null,e)):Vc(id.bind(null,e)),bh(function(){(Ee&6)===0&&Kn()}),s=null;else{switch(Yu(o)){case 1:s=Ls;break;case 4:s=Ui;break;case 16:s=Dr;break;case 536870912:s=Fi;break;default:s=Dr}s=pd(s,sd.bind(null,e))}e.callbackPriority=t,e.callbackNode=s}}function sd(e,t){if(Pl=-1,Ml=0,(Ee&6)!==0)throw Error(r(327));var s=e.callbackNode;if(as()&&e.callbackNode!==s)return null;var o=Ae(e,e===tt?ut:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Rl(e,o);else{t=o;var c=Ee;Ee|=2;var f=od();(tt!==e||ut!==t)&&(Nn=null,os=ze()+500,wr(e,t));do try{sm();break}catch(v){ld(e,v)}while(!0);ua(),_l.current=f,Ee=c,Ye!==null?t=0:(tt=null,ut=0,t=Ze)}if(t!==0){if(t===2&&(c=Br(e),c!==0&&(o=c,t=Ha(e,c))),t===1)throw s=ii,wr(e,0),Gn(e,o),Et(e,ze()),s;if(t===6)Gn(e,o);else{if(c=e.current.alternate,(o&30)===0&&!nm(c)&&(t=Rl(e,o),t===2&&(f=Br(e),f!==0&&(o=f,t=Ha(e,f))),t===1))throw s=ii,wr(e,0),Gn(e,o),Et(e,ze()),s;switch(e.finishedWork=c,e.finishedLanes=o,t){case 0:case 1:throw Error(r(345));case 2:kr(e,Ct,Nn);break;case 3:if(Gn(e,o),(o&130023424)===o&&(t=Va+500-ze(),10<t)){if(Ae(e,0)!==0)break;if(c=e.suspendedLanes,(c&o)!==o){vt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Xo(kr.bind(null,e,Ct,Nn),t);break}kr(e,Ct,Nn);break;case 4:if(Gn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,c=-1;0<o;){var m=31-k(o);f=1<<m,m=t[m],m>c&&(c=m),o&=~f}if(o=c,o=ze()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*tm(o/1960))-o,10<o){e.timeoutHandle=Xo(kr.bind(null,e,Ct,Nn),o);break}kr(e,Ct,Nn);break;case 5:kr(e,Ct,Nn);break;default:throw Error(r(329))}}}return Et(e,ze()),e.callbackNode===s?sd.bind(null,e):null}function Ha(e,t){var s=li;return e.current.memoizedState.isDehydrated&&(wr(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=Ct,Ct=s,t!==null&&Wa(t)),e}function Wa(e){Ct===null?Ct=e:Ct.push.apply(Ct,e)}function nm(e){for(var t=e;;){if(t.flags&16384){var s=t.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var o=0;o<s.length;o++){var c=s[o],f=c.getSnapshot;c=c.value;try{if(!Yt(f(),c))return!1}catch{return!1}}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gn(e,t){for(t&=~Fa,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var s=31-k(t),o=1<<s;e[s]=-1,t&=~o}}function id(e){if((Ee&6)!==0)throw Error(r(327));as();var t=Ae(e,0);if((t&1)===0)return Et(e,ze()),null;var s=Rl(e,t);if(e.tag!==0&&s===2){var o=Br(e);o!==0&&(t=o,s=Ha(e,o))}if(s===1)throw s=ii,wr(e,0),Gn(e,t),Et(e,ze()),s;if(s===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kr(e,Ct,Nn),Et(e,ze()),null}function Qa(e,t){var s=Ee;Ee|=1;try{return e(t)}finally{Ee=s,Ee===0&&(os=ze()+500,ul&&Kn())}}function vr(e){Jn!==null&&Jn.tag===0&&(Ee&6)===0&&as();var t=Ee;Ee|=1;var s=Vt.transition,o=Ie;try{if(Vt.transition=null,Ie=1,e)return e()}finally{Ie=o,Vt.transition=s,Ee=t,(Ee&6)===0&&Kn()}}function Ja(){bt=ls.current,Re(ls)}function wr(e,t){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,Ah(s)),Ye!==null)for(s=Ye.return;s!==null;){var o=s;switch(sa(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ol();break;case 3:rs(),Re(jt),Re(ft),ga();break;case 5:ma(o);break;case 4:rs();break;case 13:Re(Be);break;case 19:Re(Be);break;case 10:ca(o.type._context);break;case 22:case 23:Ja()}s=s.return}if(tt=e,Ye=e=Xn(e.current,null),ut=bt=t,Ze=0,ii=null,Fa=Il=gr=0,Ct=li=null,hr!==null){for(t=0;t<hr.length;t++)if(s=hr[t],o=s.interleaved,o!==null){s.interleaved=null;var c=o.next,f=s.pending;if(f!==null){var m=f.next;f.next=c,o.next=m}s.pending=o}hr=null}return e}function ld(e,t){do{var s=Ye;try{if(ua(),wl.current=xl,kl){for(var o=Ue.memoizedState;o!==null;){var c=o.queue;c!==null&&(c.pending=null),o=o.next}kl=!1}if(yr=0,et=Xe=Ue=null,Zs=!1,ei=0,Ua.current=null,s===null||s.return===null){Ze=1,ii=t,Ye=null;break}e:{var f=e,m=s.return,v=s,w=t;if(t=ut,v.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){var L=w,D=v,B=D.tag;if((D.mode&1)===0&&(B===0||B===11||B===15)){var $=D.alternate;$?(D.updateQueue=$.updateQueue,D.memoizedState=$.memoizedState,D.lanes=$.lanes):(D.updateQueue=null,D.memoizedState=null)}var ee=Lf(m);if(ee!==null){ee.flags&=-257,Af(ee,m,v,f,t),ee.mode&1&&If(f,L,t),t=ee,w=L;var se=t.updateQueue;if(se===null){var ie=new Set;ie.add(w),t.updateQueue=ie}else se.add(w);break e}else{if((t&1)===0){If(f,L,t),Ya();break e}w=Error(r(426))}}else if($e&&v.mode&1){var Ve=Lf(m);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),Af(Ve,m,v,f,t),oa(ss(w,v));break e}}f=w=ss(w,v),Ze!==4&&(Ze=2),li===null?li=[f]:li.push(f),f=m;do{switch(f.tag){case 3:f.flags|=65536,t&=-t,f.lanes|=t;var T=Tf(f,w,t);ef(f,T);break e;case 1:v=w;var x=f.type,_=f.stateNode;if((f.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Qn===null||!Qn.has(_)))){f.flags|=65536,t&=-t,f.lanes|=t;var U=_f(f,v,t);ef(f,U);break e}}f=f.return}while(f!==null)}ud(s)}catch(oe){t=oe,Ye===s&&s!==null&&(Ye=s=s.return);continue}break}while(!0)}function od(){var e=_l.current;return _l.current=xl,e===null?xl:e}function Ya(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),tt===null||(gr&268435455)===0&&(Il&268435455)===0||Gn(tt,ut)}function Rl(e,t){var s=Ee;Ee|=2;var o=od();(tt!==e||ut!==t)&&(Nn=null,wr(e,t));do try{rm();break}catch(c){ld(e,c)}while(!0);if(ua(),Ee=s,_l.current=o,Ye!==null)throw Error(r(261));return tt=null,ut=0,Ze}function rm(){for(;Ye!==null;)ad(Ye)}function sm(){for(;Ye!==null&&!Is();)ad(Ye)}function ad(e){var t=dd(e.alternate,e,bt);e.memoizedProps=e.pendingProps,t===null?ud(e):Ye=t,Ua.current=null}function ud(e){var t=e;do{var s=t.alternate;if(e=t.return,(t.flags&32768)===0){if(s=Yh(s,t,bt),s!==null){Ye=s;return}}else{if(s=Gh(s,t),s!==null){s.flags&=32767,Ye=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ye=null;return}}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);Ze===0&&(Ze=5)}function kr(e,t,s){var o=Ie,c=Vt.transition;try{Vt.transition=null,Ie=1,im(e,t,s,o)}finally{Vt.transition=c,Ie=o}return null}function im(e,t,s,o){do as();while(Jn!==null);if((Ee&6)!==0)throw Error(r(327));s=e.finishedWork;var c=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var f=s.lanes|s.childLanes;if(Ki(e,f),e===tt&&(Ye=tt=null,ut=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||Al||(Al=!0,pd(Dr,function(){return as(),null})),f=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||f){f=Vt.transition,Vt.transition=null;var m=Ie;Ie=1;var v=Ee;Ee|=4,Ua.current=null,Zh(e,s),Zf(s,e),Ch(Yo),Wi=!!Jo,Yo=Jo=null,e.current=s,em(s),No(),Ee=v,Ie=m,Vt.transition=f}else e.current=s;if(Al&&(Al=!1,Jn=e,bl=c),f=e.pendingLanes,f===0&&(Qn=null),Oo(s.stateNode),Et(e,ze()),t!==null)for(o=e.onRecoverableError,s=0;s<t.length;s++)c=t[s],o(c.value,{componentStack:c.stack,digest:c.digest});if(Ll)throw Ll=!1,e=Ka,Ka=null,e;return(bl&1)!==0&&e.tag!==0&&as(),f=e.pendingLanes,(f&1)!==0?e===qa?oi++:(oi=0,qa=e):oi=0,Kn(),null}function as(){if(Jn!==null){var e=Yu(bl),t=Vt.transition,s=Ie;try{if(Vt.transition=null,Ie=16>e?16:e,Jn===null)var o=!1;else{if(e=Jn,Jn=null,bl=0,(Ee&6)!==0)throw Error(r(331));var c=Ee;for(Ee|=4,re=e.current;re!==null;){var f=re,m=f.child;if((re.flags&16)!==0){var v=f.deletions;if(v!==null){for(var w=0;w<v.length;w++){var L=v[w];for(re=L;re!==null;){var D=re;switch(D.tag){case 0:case 11:case 15:si(8,D,f)}var B=D.child;if(B!==null)B.return=D,re=B;else for(;re!==null;){D=re;var $=D.sibling,ee=D.return;if(Qf(D),D===L){re=null;break}if($!==null){$.return=ee,re=$;break}re=ee}}}var se=f.alternate;if(se!==null){var ie=se.child;if(ie!==null){se.child=null;do{var Ve=ie.sibling;ie.sibling=null,ie=Ve}while(ie!==null)}}re=f}}if((f.subtreeFlags&2064)!==0&&m!==null)m.return=f,re=m;else e:for(;re!==null;){if(f=re,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:si(9,f,f.return)}var T=f.sibling;if(T!==null){T.return=f.return,re=T;break e}re=f.return}}var x=e.current;for(re=x;re!==null;){m=re;var _=m.child;if((m.subtreeFlags&2064)!==0&&_!==null)_.return=m,re=_;else e:for(m=x;re!==null;){if(v=re,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:Tl(9,v)}}catch(oe){Fe(v,v.return,oe)}if(v===m){re=null;break e}var U=v.sibling;if(U!==null){U.return=v.return,re=U;break e}re=v.return}}if(Ee=c,Kn(),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(zr,e)}catch{}o=!0}return o}finally{Ie=s,Vt.transition=t}}return!1}function cd(e,t,s){t=ss(s,t),t=Tf(e,t,1),e=Hn(e,t,1),t=vt(),e!==null&&(Pn(e,1,t),Et(e,t))}function Fe(e,t,s){if(e.tag===3)cd(e,e,s);else for(;t!==null;){if(t.tag===3){cd(t,e,s);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Qn===null||!Qn.has(o))){e=ss(s,e),e=_f(t,e,1),t=Hn(t,e,1),e=vt(),t!==null&&(Pn(t,1,e),Et(t,e));break}}t=t.return}}function lm(e,t,s){var o=e.pingCache;o!==null&&o.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&s,tt===e&&(ut&s)===s&&(Ze===4||Ze===3&&(ut&130023424)===ut&&500>ze()-Va?wr(e,0):Fa|=s),Et(e,t)}function fd(e,t){t===0&&((e.mode&1)===0?t=1:(t=fe,fe<<=1,(fe&130023424)===0&&(fe=4194304)));var s=vt();e=Sn(e,t),e!==null&&(Pn(e,t,s),Et(e,s))}function om(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),fd(e,s)}function am(e,t){var s=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(r(314))}o!==null&&o.delete(t),fd(e,s)}var dd;dd=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||jt.current)Nt=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return Nt=!1,Jh(e,t,s);Nt=(e.flags&131072)!==0}else Nt=!1,$e&&(t.flags&1048576)!==0&&Kc(t,fl,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;El(e,t),e=t.pendingProps;var c=Yr(t,ft.current);ns(t,s),c=ka(null,t,o,e,c,s);var f=Sa();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(o)?(f=!0,al(t)):f=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,pa(t),c.updater=Nl,t.stateNode=c,c._reactInternals=t,Oa(t,o,e,s),t=La(null,t,o,!0,f,s)):(t.tag=0,$e&&f&&ra(t),gt(null,t,c,s),t=t.child),t;case 16:o=t.elementType;e:{switch(El(e,t),e=t.pendingProps,c=o._init,o=c(o._payload),t.type=o,c=t.tag=cm(o),e=Xt(o,e),c){case 0:t=Ia(null,t,o,e,s);break e;case 1:t=Df(null,t,o,e,s);break e;case 11:t=bf(null,t,o,e,s);break e;case 14:t=Pf(null,t,o,Xt(o.type,e),s);break e}throw Error(r(306,o,""))}return t;case 0:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:Xt(o,c),Ia(e,t,o,c,s);case 1:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:Xt(o,c),Df(e,t,o,c,s);case 3:e:{if(zf(t),e===null)throw Error(r(387));o=t.pendingProps,f=t.memoizedState,c=f.element,Zc(e,t),gl(t,o,null,s);var m=t.memoizedState;if(o=m.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){c=ss(Error(r(423)),t),t=Bf(e,t,o,s,c);break e}else if(o!==c){c=ss(Error(r(424)),t),t=Bf(e,t,o,s,c);break e}else for(At=Un(t.stateNode.containerInfo.firstChild),Lt=t,$e=!0,Gt=null,s=Gc(t,null,o,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Zr(),o===c){t=xn(e,t,s);break e}gt(e,t,o,s)}t=t.child}return t;case 5:return nf(t),e===null&&la(t),o=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,m=c.children,Go(o,c)?m=null:f!==null&&Go(o,f)&&(t.flags|=32),$f(e,t),gt(e,t,m,s),t.child;case 6:return e===null&&la(t),null;case 13:return Uf(e,t,s);case 4:return ha(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=es(t,null,o,s):gt(e,t,o,s),t.child;case 11:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:Xt(o,c),bf(e,t,o,c,s);case 7:return gt(e,t,t.pendingProps,s),t.child;case 8:return gt(e,t,t.pendingProps.children,s),t.child;case 12:return gt(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(o=t.type._context,c=t.pendingProps,f=t.memoizedProps,m=c.value,be(hl,o._currentValue),o._currentValue=m,f!==null)if(Yt(f.value,m)){if(f.children===c.children&&!jt.current){t=xn(e,t,s);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var v=f.dependencies;if(v!==null){m=f.child;for(var w=v.firstContext;w!==null;){if(w.context===o){if(f.tag===1){w=jn(-1,s&-s),w.tag=2;var L=f.updateQueue;if(L!==null){L=L.shared;var D=L.pending;D===null?w.next=w:(w.next=D.next,D.next=w),L.pending=w}}f.lanes|=s,w=f.alternate,w!==null&&(w.lanes|=s),fa(f.return,s,t),v.lanes|=s;break}w=w.next}}else if(f.tag===10)m=f.type===t.type?null:f.child;else if(f.tag===18){if(m=f.return,m===null)throw Error(r(341));m.lanes|=s,v=m.alternate,v!==null&&(v.lanes|=s),fa(m,s,t),m=f.sibling}else m=f.child;if(m!==null)m.return=f;else for(m=f;m!==null;){if(m===t){m=null;break}if(f=m.sibling,f!==null){f.return=m.return,m=f;break}m=m.return}f=m}gt(e,t,c.children,s),t=t.child}return t;case 9:return c=t.type,o=t.pendingProps.children,ns(t,s),c=Ut(c),o=o(c),t.flags|=1,gt(e,t,o,s),t.child;case 14:return o=t.type,c=Xt(o,t.pendingProps),c=Xt(o.type,c),Pf(e,t,o,c,s);case 15:return Mf(e,t,t.type,t.pendingProps,s);case 17:return o=t.type,c=t.pendingProps,c=t.elementType===o?c:Xt(o,c),El(e,t),t.tag=1,xt(o)?(e=!0,al(t)):e=!1,ns(t,s),Ef(t,o,c),Oa(t,o,c,s),La(null,t,o,!0,e,s);case 19:return Vf(e,t,s);case 22:return Rf(e,t,s)}throw Error(r(156,t.tag))};function pd(e,t){return zi(e,t)}function um(e,t,s,o){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,s,o){return new um(e,t,s,o)}function Ga(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cm(e){if(typeof e=="function")return Ga(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Z)return 11;if(e===Te)return 14}return 2}function Xn(e,t){var s=e.alternate;return s===null?(s=Kt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function $l(e,t,s,o,c,f){var m=2;if(o=e,typeof e=="function")Ga(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case Q:return Sr(s.children,c,f,t);case M:m=8,c|=8;break;case ae:return e=Kt(12,s,t,c|2),e.elementType=ae,e.lanes=f,e;case de:return e=Kt(13,s,t,c),e.elementType=de,e.lanes=f,e;case Le:return e=Kt(19,s,t,c),e.elementType=Le,e.lanes=f,e;case je:return Dl(s,c,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:m=10;break e;case te:m=9;break e;case Z:m=11;break e;case Te:m=14;break e;case De:m=16,o=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return t=Kt(m,s,t,c),t.elementType=e,t.type=o,t.lanes=f,t}function Sr(e,t,s,o){return e=Kt(7,e,o,t),e.lanes=s,e}function Dl(e,t,s,o){return e=Kt(22,e,o,t),e.elementType=je,e.lanes=s,e.stateNode={isHidden:!1},e}function Xa(e,t,s){return e=Kt(6,e,null,t),e.lanes=s,e}function Za(e,t,s){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fm(e,t,s,o,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dt(0),this.expirationTimes=Dt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dt(0),this.identifierPrefix=o,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function eu(e,t,s,o,c,f,m,v,w){return e=new fm(e,t,s,v,w),t===1?(t=1,f===!0&&(t|=8)):t=0,f=Kt(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:o,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},pa(f),e}function dm(e,t,s){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:o==null?null:""+o,children:e,containerInfo:t,implementation:s}}function hd(e){if(!e)return Vn;e=e._reactInternals;e:{if(Jt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var s=e.type;if(xt(s))return Uc(e,s,t)}return t}function md(e,t,s,o,c,f,m,v,w){return e=eu(s,o,!0,e,c,f,m,v,w),e.context=hd(null),s=e.current,o=vt(),c=Yn(s),f=jn(o,c),f.callback=t??null,Hn(s,f,c),e.current.lanes=c,Pn(e,c,o),Et(e,o),e}function zl(e,t,s,o){var c=t.current,f=vt(),m=Yn(c);return s=hd(s),t.context===null?t.context=s:t.pendingContext=s,t=jn(f,m),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=Hn(c,t,m),e!==null&&(tn(e,c,m,f),yl(e,c,m)),m}function Bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function tu(e,t){yd(e,t),(e=e.alternate)&&yd(e,t)}function pm(){return null}var gd=typeof reportError=="function"?reportError:function(e){console.error(e)};function nu(e){this._internalRoot=e}Ul.prototype.render=nu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));zl(e,t,null,null)},Ul.prototype.unmount=nu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vr(function(){zl(null,e,null,null)}),t[gn]=null}};function Ul(e){this._internalRoot=e}Ul.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zu();e={blockedOn:null,target:e,priority:t};for(var s=0;s<Dn.length&&t!==0&&t<Dn[s].priority;s++);Dn.splice(s,0,e),s===0&&nc(e)}};function ru(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vd(){}function hm(e,t,s,o,c){if(c){if(typeof o=="function"){var f=o;o=function(){var L=Bl(m);f.call(L)}}var m=md(t,o,e,0,null,!1,!1,"",vd);return e._reactRootContainer=m,e[gn]=m.current,qs(e.nodeType===8?e.parentNode:e),vr(),m}for(;c=e.lastChild;)e.removeChild(c);if(typeof o=="function"){var v=o;o=function(){var L=Bl(w);v.call(L)}}var w=eu(e,0,!1,null,null,!1,!1,"",vd);return e._reactRootContainer=w,e[gn]=w.current,qs(e.nodeType===8?e.parentNode:e),vr(function(){zl(t,w,s,o)}),w}function Vl(e,t,s,o,c){var f=s._reactRootContainer;if(f){var m=f;if(typeof c=="function"){var v=c;c=function(){var w=Bl(m);v.call(w)}}zl(t,m,e,c)}else m=hm(s,t,e,c,o);return Bl(m)}Gu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var s=Je(t.pendingLanes);s!==0&&(yn(t,s|1),Et(t,ze()),(Ee&6)===0&&(os=ze()+500,Kn()))}break;case 13:vr(function(){var o=Sn(e,1);if(o!==null){var c=vt();tn(o,e,1,c)}}),tu(e,1)}},To=function(e){if(e.tag===13){var t=Sn(e,134217728);if(t!==null){var s=vt();tn(t,e,134217728,s)}tu(e,134217728)}},Xu=function(e){if(e.tag===13){var t=Yn(e),s=Sn(e,t);if(s!==null){var o=vt();tn(s,e,t,o)}tu(e,t)}},Zu=function(){return Ie},ec=function(e,t){var s=Ie;try{return Ie=e,t()}finally{Ie=s}},Ts=function(e,t,s){switch(t){case"input":if(it(e,s),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<s.length;t++){var o=s[t];if(o!==e&&o.form===e.form){var c=ll(o);if(!c)throw Error(r(90));rr(o),it(o,c)}}}break;case"textarea":ct(e,s);break;case"select":t=s.value,t!=null&&pn(e,!!s.multiple,t,!1)}},Qt=Qa,Mr=vr;var mm={usingClientEntryPoint:!1,Events:[Qs,Qr,ll,Pr,Rt,Qa]},ai={findFiberByHostInstance:cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ym={bundleType:ai.bundleType,version:ai.version,rendererPackageName:ai.rendererPackageName,rendererConfig:ai.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:H.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$i(e),e===null?null:e.stateNode},findFiberByHostInstance:ai.findFiberByHostInstance||pm,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 Kl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kl.isDisabled&&Kl.supportsFiber)try{zr=Kl.inject(ym),yt=Kl}catch{}}return Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mm,Ot.createPortal=function(e,t){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ru(t))throw Error(r(200));return dm(e,t,null,s)},Ot.createRoot=function(e,t){if(!ru(e))throw Error(r(299));var s=!1,o="",c=gd;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=eu(e,1,!1,null,null,s,!1,o,c),e[gn]=t.current,qs(e.nodeType===8?e.parentNode:e),new nu(t)},Ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=$i(t),e=e===null?null:e.stateNode,e},Ot.flushSync=function(e){return vr(e)},Ot.hydrate=function(e,t,s){if(!Fl(t))throw Error(r(200));return Vl(null,e,t,!0,s)},Ot.hydrateRoot=function(e,t,s){if(!ru(e))throw Error(r(405));var o=s!=null&&s.hydratedSources||null,c=!1,f="",m=gd;if(s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onRecoverableError!==void 0&&(m=s.onRecoverableError)),t=md(t,null,e,1,s??null,c,!1,f,m),e[gn]=t.current,qs(e),o)for(e=0;e<o.length;e++)s=o[e],c=s._getVersion,c=c(s._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[s,c]:t.mutableSourceEagerHydrationData.push(s,c);return new Ul(t)},Ot.render=function(e,t,s){if(!Fl(t))throw Error(r(200));return Vl(null,e,t,!1,s)},Ot.unmountComponentAtNode=function(e){if(!Fl(e))throw Error(r(40));return e._reactRootContainer?(vr(function(){Vl(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1},Ot.unstable_batchedUpdates=Qa,Ot.unstable_renderSubtreeIntoContainer=function(e,t,s,o){if(!Fl(s))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Vl(e,t,s,!1,o)},Ot.version="18.3.1-next-f1338f8080-20240426",Ot}var Ed;function Cm(){if(Ed)return lu.exports;Ed=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),lu.exports=Nm(),lu.exports}var Od;function Em(){if(Od)return ql;Od=1;var i=Cm();return ql.createRoot=i.createRoot,ql.hydrateRoot=i.hydrateRoot,ql}var Om=Em();const Tm=Wd(Om);/**
41
+ * @license lucide-react v0.468.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 _m=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qd=(...i)=>i.filter((n,r,l)=>!!n&&n.trim()!==""&&l.indexOf(n)===r).join(" ").trim();/**
46
+ * @license lucide-react v0.468.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 Im={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.468.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 Lm=A.forwardRef(({color:i="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:a="",children:u,iconNode:p,...h},y)=>A.createElement("svg",{ref:y,...Im,width:n,height:n,stroke:i,strokeWidth:l?Number(r)*24/Number(n):r,className:Qd("lucide",a),...h},[...p.map(([g,N])=>A.createElement(g,N)),...Array.isArray(u)?u:[u]]));/**
56
+ * @license lucide-react v0.468.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 We=(i,n)=>{const r=A.forwardRef(({className:l,...a},u)=>A.createElement(Lm,{ref:u,iconNode:n,className:Qd(`lucide-${_m(i)}`,l),...a}));return r.displayName=`${i}`,r};/**
61
+ * @license lucide-react v0.468.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 ki=We("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/**
66
+ * @license lucide-react v0.468.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 Si=We("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71
+ * @license lucide-react v0.468.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 ji=We("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
76
+ * @license lucide-react v0.468.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 mi=We("ClipboardCopy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/**
81
+ * @license lucide-react v0.468.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 Am=We("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
86
+ * @license lucide-react v0.468.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 bm=We("Download",[["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"}]]);/**
91
+ * @license lucide-react v0.468.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 Td=We("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
96
+ * @license lucide-react v0.468.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 jr=We("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
101
+ * @license lucide-react v0.468.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 Pm=We("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
106
+ * @license lucide-react v0.468.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 Jd=We("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
111
+ * @license lucide-react v0.468.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 no=We("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
116
+ * @license lucide-react v0.468.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 Mm=We("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
121
+ * @license lucide-react v0.468.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 Au=We("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
126
+ * @license lucide-react v0.468.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 co=We("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
131
+ * @license lucide-react v0.468.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 ro=We("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
136
+ * @license lucide-react v0.468.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 Rm=We("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
141
+ * @license lucide-react v0.468.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 $m=We("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
146
+ * @license lucide-react v0.468.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 so=We("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
151
+ * @license lucide-react v0.468.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 Yd=We("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
156
+ * @license lucide-react v0.468.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 fo=We("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
161
+ * @license lucide-react v0.468.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 io=We("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),bu=Symbol.for("yaml.alias"),ju=Symbol.for("yaml.document"),nr=Symbol.for("yaml.map"),Gd=Symbol.for("yaml.pair"),dn=Symbol.for("yaml.scalar"),ks=Symbol.for("yaml.seq"),Wt=Symbol.for("yaml.node.type"),Ir=i=>!!i&&typeof i=="object"&&i[Wt]===bu,po=i=>!!i&&typeof i=="object"&&i[Wt]===ju,Oi=i=>!!i&&typeof i=="object"&&i[Wt]===nr,He=i=>!!i&&typeof i=="object"&&i[Wt]===Gd,Pe=i=>!!i&&typeof i=="object"&&i[Wt]===dn,Ti=i=>!!i&&typeof i=="object"&&i[Wt]===ks;function Ke(i){if(i&&typeof i=="object")switch(i[Wt]){case nr:case ks:return!0}return!1}function qe(i){if(i&&typeof i=="object")switch(i[Wt]){case bu:case nr:case dn:case ks:return!0}return!1}const Xd=i=>(Pe(i)||Ke(i))&&!!i.anchor,xr=Symbol("break visit"),Dm=Symbol("skip children"),yi=Symbol("remove node");function Ss(i,n){const r=zm(n);po(i)?fs(null,i.contents,r,Object.freeze([i]))===yi&&(i.contents=null):fs(null,i,r,Object.freeze([]))}Ss.BREAK=xr;Ss.SKIP=Dm;Ss.REMOVE=yi;function fs(i,n,r,l){const a=Bm(i,n,r,l);if(qe(a)||He(a))return Um(i,l,a),fs(i,a,r,l);if(typeof a!="symbol"){if(Ke(n)){l=Object.freeze(l.concat(n));for(let u=0;u<n.items.length;++u){const p=fs(u,n.items[u],r,l);if(typeof p=="number")u=p-1;else{if(p===xr)return xr;p===yi&&(n.items.splice(u,1),u-=1)}}}else if(He(n)){l=Object.freeze(l.concat(n));const u=fs("key",n.key,r,l);if(u===xr)return xr;u===yi&&(n.key=null);const p=fs("value",n.value,r,l);if(p===xr)return xr;p===yi&&(n.value=null)}}return a}function zm(i){return typeof i=="object"&&(i.Collection||i.Node||i.Value)?Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i):i}function Bm(i,n,r,l){var a,u,p,h,y;if(typeof r=="function")return r(i,n,l);if(Oi(n))return(a=r.Map)==null?void 0:a.call(r,i,n,l);if(Ti(n))return(u=r.Seq)==null?void 0:u.call(r,i,n,l);if(He(n))return(p=r.Pair)==null?void 0:p.call(r,i,n,l);if(Pe(n))return(h=r.Scalar)==null?void 0:h.call(r,i,n,l);if(Ir(n))return(y=r.Alias)==null?void 0:y.call(r,i,n,l)}function Um(i,n,r){const l=n[n.length-1];if(Ke(l))l.items[i]=r;else if(He(l))i==="key"?l.key=r:l.value=r;else if(po(l))l.contents=r;else{const a=Ir(l)?"alias":"scalar";throw new Error(`Cannot replace node with ${a} parent`)}}const Fm={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Vm=i=>i.replace(/[!,[\]{}]/g,n=>Fm[n]);class wt{constructor(n,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},wt.defaultYaml,n),this.tags=Object.assign({},wt.defaultTags,r)}clone(){const n=new wt(this.yaml,this.tags);return n.docStart=this.docStart,n}atDocument(){const n=new wt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:wt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},wt.defaultTags);break}return n}add(n,r){this.atNextDocument&&(this.yaml={explicit:wt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},wt.defaultTags),this.atNextDocument=!1);const l=n.trim().split(/[ \t]+/),a=l.shift();switch(a){case"%TAG":{if(l.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),l.length<2))return!1;const[u,p]=l;return this.tags[u]=p,!0}case"%YAML":{if(this.yaml.explicit=!0,l.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[u]=l;if(u==="1.1"||u==="1.2")return this.yaml.version=u,!0;{const p=/^\d+\.\d+$/.test(u);return r(6,`Unsupported YAML version ${u}`,p),!1}}default:return r(0,`Unknown directive ${a}`,!0),!1}}tagName(n,r){if(n==="!")return"!";if(n[0]!=="!")return r(`Not a valid tag: ${n}`),null;if(n[1]==="<"){const p=n.slice(2,-1);return p==="!"||p==="!!"?(r(`Verbatim tags aren't resolved, so ${n} is invalid.`),null):(n[n.length-1]!==">"&&r("Verbatim tags must end with a >"),p)}const[,l,a]=n.match(/^(.*!)([^!]*)$/s);a||r(`The ${n} tag has no suffix`);const u=this.tags[l];if(u)try{return u+decodeURIComponent(a)}catch(p){return r(String(p)),null}return l==="!"?n:(r(`Could not resolve tag: ${n}`),null)}tagString(n){for(const[r,l]of Object.entries(this.tags))if(n.startsWith(l))return r+Vm(n.substring(l.length));return n[0]==="!"?n:`!<${n}>`}toString(n){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],l=Object.entries(this.tags);let a;if(n&&l.length>0&&qe(n.contents)){const u={};Ss(n.contents,(p,h)=>{qe(h)&&h.tag&&(u[h.tag]=!0)}),a=Object.keys(u)}else a=[];for(const[u,p]of l)u==="!!"&&p==="tag:yaml.org,2002:"||(!n||a.some(h=>h.startsWith(p)))&&r.push(`%TAG ${u} ${p}`);return r.join(`
166
+ `)}}wt.defaultYaml={explicit:!1,version:"1.2"};wt.defaultTags={"!!":"tag:yaml.org,2002:"};function Zd(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(i)}`;throw new Error(r)}return!0}function ep(i){const n=new Set;return Ss(i,{Value(r,l){l.anchor&&n.add(l.anchor)}}),n}function tp(i,n){for(let r=1;;++r){const l=`${i}${r}`;if(!n.has(l))return l}}function Km(i,n){const r=[],l=new Map;let a=null;return{onAnchor:u=>{r.push(u),a??(a=ep(i));const p=tp(n,a);return a.add(p),p},setAnchors:()=>{for(const u of r){const p=l.get(u);if(typeof p=="object"&&p.anchor&&(Pe(p.node)||Ke(p.node)))p.node.anchor=p.anchor;else{const h=new Error("Failed to resolve repeated object (this should not happen)");throw h.source=u,h}}},sourceObjects:l}}function ds(i,n,r,l){if(l&&typeof l=="object")if(Array.isArray(l))for(let a=0,u=l.length;a<u;++a){const p=l[a],h=ds(i,l,String(a),p);h===void 0?delete l[a]:h!==p&&(l[a]=h)}else if(l instanceof Map)for(const a of Array.from(l.keys())){const u=l.get(a),p=ds(i,l,a,u);p===void 0?l.delete(a):p!==u&&l.set(a,p)}else if(l instanceof Set)for(const a of Array.from(l)){const u=ds(i,l,a,a);u===void 0?l.delete(a):u!==a&&(l.delete(a),l.add(u))}else for(const[a,u]of Object.entries(l)){const p=ds(i,l,a,u);p===void 0?delete l[a]:p!==u&&(l[a]=p)}return i.call(n,r,l)}function Ht(i,n,r){if(Array.isArray(i))return i.map((l,a)=>Ht(l,String(a),r));if(i&&typeof i.toJSON=="function"){if(!r||!Xd(i))return i.toJSON(n,r);const l={aliasCount:0,count:1,res:void 0};r.anchors.set(i,l),r.onCreate=u=>{l.res=u,delete r.onCreate};const a=i.toJSON(n,r);return r.onCreate&&r.onCreate(a),a}return typeof i=="bigint"&&!(r!=null&&r.keep)?Number(i):i}class Pu{constructor(n){Object.defineProperty(this,Wt,{value:n})}clone(){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(n.range=this.range.slice()),n}toJS(n,{mapAsMap:r,maxAliasCount:l,onAnchor:a,reviver:u}={}){if(!po(n))throw new TypeError("A document argument is required");const p={anchors:new Map,doc:n,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof l=="number"?l:100},h=Ht(this,"",p);if(typeof a=="function")for(const{count:y,res:g}of p.anchors.values())a(g,y);return typeof u=="function"?ds(u,{"":h},"",h):h}}class Mu extends Pu{constructor(n){super(bu),this.source=n,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(n,r){let l;r!=null&&r.aliasResolveCache?l=r.aliasResolveCache:(l=[],Ss(n,{Node:(u,p)=>{(Ir(p)||Xd(p))&&l.push(p)}}),r&&(r.aliasResolveCache=l));let a;for(const u of l){if(u===this)break;u.anchor===this.source&&(a=u)}return a}toJSON(n,r){if(!r)return{source:this.source};const{anchors:l,doc:a,maxAliasCount:u}=r,p=this.resolve(a,r);if(!p){const y=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(y)}let h=l.get(p);if(h||(Ht(p,null,r),h=l.get(p)),(h==null?void 0:h.res)===void 0){const y="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(y)}if(u>=0&&(h.count+=1,h.aliasCount===0&&(h.aliasCount=Xl(a,p,l)),h.count*h.aliasCount>u)){const y="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(y)}return h.res}toString(n,r,l){const a=`*${this.source}`;if(n){if(Zd(this.source),n.options.verifyAliasOrder&&!n.anchors.has(this.source)){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(u)}if(n.implicitKey)return`${a} `}return a}}function Xl(i,n,r){if(Ir(n)){const l=n.resolve(i),a=r&&l&&r.get(l);return a?a.count*a.aliasCount:0}else if(Ke(n)){let l=0;for(const a of n.items){const u=Xl(i,a,r);u>l&&(l=u)}return l}else if(He(n)){const l=Xl(i,n.key,r),a=Xl(i,n.value,r);return Math.max(l,a)}return 1}const np=i=>!i||typeof i!="function"&&typeof i!="object";class we extends Pu{constructor(n){super(dn),this.value=n}toJSON(n,r){return r!=null&&r.keep?this.value:Ht(this.value,n,r)}toString(){return String(this.value)}}we.BLOCK_FOLDED="BLOCK_FOLDED";we.BLOCK_LITERAL="BLOCK_LITERAL";we.PLAIN="PLAIN";we.QUOTE_DOUBLE="QUOTE_DOUBLE";we.QUOTE_SINGLE="QUOTE_SINGLE";const qm="tag:yaml.org,2002:";function Hm(i,n,r){if(n){const l=r.filter(u=>u.tag===n),a=l.find(u=>!u.format)??l[0];if(!a)throw new Error(`Tag ${n} not found`);return a}return r.find(l=>{var a;return((a=l.identify)==null?void 0:a.call(l,i))&&!l.format})}function xi(i,n,r){var S,E,O;if(po(i)&&(i=i.contents),qe(i))return i;if(He(i)){const P=(E=(S=r.schema[nr]).createNode)==null?void 0:E.call(S,r.schema,null,r);return P.items.push(i),P}(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt<"u"&&i instanceof BigInt)&&(i=i.valueOf());const{aliasDuplicateObjects:l,onAnchor:a,onTagObj:u,schema:p,sourceObjects:h}=r;let y;if(l&&i&&typeof i=="object"){if(y=h.get(i),y)return y.anchor??(y.anchor=a(i)),new Mu(y.anchor);y={anchor:null,node:null},h.set(i,y)}n!=null&&n.startsWith("!!")&&(n=qm+n.slice(2));let g=Hm(i,n,p.tags);if(!g){if(i&&typeof i.toJSON=="function"&&(i=i.toJSON()),!i||typeof i!="object"){const P=new we(i);return y&&(y.node=P),P}g=i instanceof Map?p[nr]:Symbol.iterator in Object(i)?p[ks]:p[nr]}u&&(u(g),delete r.onTagObj);const N=g!=null&&g.createNode?g.createNode(r.schema,i,r):typeof((O=g==null?void 0:g.nodeClass)==null?void 0:O.from)=="function"?g.nodeClass.from(r.schema,i,r):new we(i);return n?N.tag=n:g.default||(N.tag=g.tag),y&&(y.node=N),N}function lo(i,n,r){let l=r;for(let a=n.length-1;a>=0;--a){const u=n[a];if(typeof u=="number"&&Number.isInteger(u)&&u>=0){const p=[];p[u]=l,l=p}else l=new Map([[u,l]])}return xi(l,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}const fi=i=>i==null||typeof i=="object"&&!!i[Symbol.iterator]().next().done;class rp extends Pu{constructor(n,r){super(n),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(n){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return n&&(r.schema=n),r.items=r.items.map(l=>qe(l)||He(l)?l.clone(n):l),this.range&&(r.range=this.range.slice()),r}addIn(n,r){if(fi(n))this.add(r);else{const[l,...a]=n,u=this.get(l,!0);if(Ke(u))u.addIn(a,r);else if(u===void 0&&this.schema)this.set(l,lo(this.schema,a,r));else throw new Error(`Expected YAML collection at ${l}. Remaining path: ${a}`)}}deleteIn(n){const[r,...l]=n;if(l.length===0)return this.delete(r);const a=this.get(r,!0);if(Ke(a))return a.deleteIn(l);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${l}`)}getIn(n,r){const[l,...a]=n,u=this.get(l,!0);return a.length===0?!r&&Pe(u)?u.value:u:Ke(u)?u.getIn(a,r):void 0}hasAllNullValues(n){return this.items.every(r=>{if(!He(r))return!1;const l=r.value;return l==null||n&&Pe(l)&&l.value==null&&!l.commentBefore&&!l.comment&&!l.tag})}hasIn(n){const[r,...l]=n;if(l.length===0)return this.has(r);const a=this.get(r,!0);return Ke(a)?a.hasIn(l):!1}setIn(n,r){const[l,...a]=n;if(a.length===0)this.set(l,r);else{const u=this.get(l,!0);if(Ke(u))u.setIn(a,r);else if(u===void 0&&this.schema)this.set(l,lo(this.schema,a,r));else throw new Error(`Expected YAML collection at ${l}. Remaining path: ${a}`)}}}const Wm=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function Cn(i,n){return/^\n+$/.test(i)?i.substring(1):n?i.replace(/^(?! *$)/gm,n):i}const Cr=(i,n,r)=>i.endsWith(`
167
+ `)?Cn(r,n):r.includes(`
168
+ `)?`
169
+ `+Cn(r,n):(i.endsWith(" ")?"":" ")+r,sp="flow",xu="block",Zl="quoted";function ho(i,n,r="flow",{indentAtStart:l,lineWidth:a=80,minContentWidth:u=20,onFold:p,onOverflow:h}={}){if(!a||a<0)return i;a<u&&(u=0);const y=Math.max(1+u,1+a-n.length);if(i.length<=y)return i;const g=[],N={};let S=a-n.length;typeof l=="number"&&(l>a-Math.max(2,u)?g.push(0):S=a-l);let E,O,P=!1,j=-1,I=-1,R=-1;r===xu&&(j=_d(i,j,n.length),j!==-1&&(S=j+y));for(let F;F=i[j+=1];){if(r===Zl&&F==="\\"){switch(I=j,i[j+1]){case"x":j+=3;break;case"u":j+=5;break;case"U":j+=9;break;default:j+=1}R=j}if(F===`
170
+ `)r===xu&&(j=_d(i,j,n.length)),S=j+n.length+y,E=void 0;else{if(F===" "&&O&&O!==" "&&O!==`
171
+ `&&O!==" "){const H=i[j+1];H&&H!==" "&&H!==`
172
+ `&&H!==" "&&(E=j)}if(j>=S)if(E)g.push(E),S=E+y,E=void 0;else if(r===Zl){for(;O===" "||O===" ";)O=F,F=i[j+=1],P=!0;const H=j>R+1?j-2:I-1;if(N[H])return i;g.push(H),N[H]=!0,S=H+y,E=void 0}else P=!0}O=F}if(P&&h&&h(),g.length===0)return i;p&&p();let W=i.slice(0,g[0]);for(let F=0;F<g.length;++F){const H=g[F],X=g[F+1]||i.length;H===0?W=`
173
+ ${n}${i.slice(0,X)}`:(r===Zl&&N[H]&&(W+=`${i[H]}\\`),W+=`
174
+ ${n}${i.slice(H+1,X)}`)}return W}function _d(i,n,r){let l=n,a=n+1,u=i[a];for(;u===" "||u===" ";)if(n<a+r)u=i[++n];else{do u=i[++n];while(u&&u!==`
175
+ `);l=n,a=n+1,u=i[a]}return l}const mo=(i,n)=>({indentAtStart:n?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth}),yo=i=>/^(%|---|\.\.\.)/m.test(i);function Qm(i,n,r){if(!n||n<0)return!1;const l=n-r,a=i.length;if(a<=l)return!1;for(let u=0,p=0;u<a;++u)if(i[u]===`
176
+ `){if(u-p>l)return!0;if(p=u+1,a-p<=l)return!1}return!0}function gi(i,n){const r=JSON.stringify(i);if(n.options.doubleQuotedAsJSON)return r;const{implicitKey:l}=n,a=n.options.doubleQuotedMinMultiLineLength,u=n.indent||(yo(i)?" ":"");let p="",h=0;for(let y=0,g=r[y];g;g=r[++y])if(g===" "&&r[y+1]==="\\"&&r[y+2]==="n"&&(p+=r.slice(h,y)+"\\ ",y+=1,h=y,g="\\"),g==="\\")switch(r[y+1]){case"u":{p+=r.slice(h,y);const N=r.substr(y+2,4);switch(N){case"0000":p+="\\0";break;case"0007":p+="\\a";break;case"000b":p+="\\v";break;case"001b":p+="\\e";break;case"0085":p+="\\N";break;case"00a0":p+="\\_";break;case"2028":p+="\\L";break;case"2029":p+="\\P";break;default:N.substr(0,2)==="00"?p+="\\x"+N.substr(2):p+=r.substr(y,6)}y+=5,h=y+1}break;case"n":if(l||r[y+2]==='"'||r.length<a)y+=1;else{for(p+=r.slice(h,y)+`
177
+
178
+ `;r[y+2]==="\\"&&r[y+3]==="n"&&r[y+4]!=='"';)p+=`
179
+ `,y+=2;p+=u,r[y+2]===" "&&(p+="\\"),y+=1,h=y+1}break;default:y+=1}return p=h?p+r.slice(h):r,l?p:ho(p,u,Zl,mo(n,!1))}function Nu(i,n){if(n.options.singleQuote===!1||n.implicitKey&&i.includes(`
180
+ `)||/[ \t]\n|\n[ \t]/.test(i))return gi(i,n);const r=n.indent||(yo(i)?" ":""),l="'"+i.replace(/'/g,"''").replace(/\n+/g,`$&
181
+ ${r}`)+"'";return n.implicitKey?l:ho(l,r,sp,mo(n,!1))}function ps(i,n){const{singleQuote:r}=n.options;let l;if(r===!1)l=gi;else{const a=i.includes('"'),u=i.includes("'");a&&!u?l=Nu:u&&!a?l=gi:l=r?Nu:gi}return l(i,n)}let Cu;try{Cu=new RegExp(`(^|(?<!
182
+ ))
183
+ +(?!
184
+ |$)`,"g")}catch{Cu=/\n+(?!\n|$)/g}function eo({comment:i,type:n,value:r},l,a,u){const{blockQuote:p,commentString:h,lineWidth:y}=l.options;if(!p||/\n[\t ]+$/.test(r))return ps(r,l);const g=l.indent||(l.forceBlockIndent||yo(r)?" ":""),N=p==="literal"?!0:p==="folded"||n===we.BLOCK_FOLDED?!1:n===we.BLOCK_LITERAL?!0:!Qm(r,y,g.length);if(!r)return N?`|
185
+ `:`>
186
+ `;let S,E;for(E=r.length;E>0;--E){const X=r[E-1];if(X!==`
187
+ `&&X!==" "&&X!==" ")break}let O=r.substring(E);const P=O.indexOf(`
188
+ `);P===-1?S="-":r===O||P!==O.length-1?(S="+",u&&u()):S="",O&&(r=r.slice(0,-O.length),O[O.length-1]===`
189
+ `&&(O=O.slice(0,-1)),O=O.replace(Cu,`$&${g}`));let j=!1,I,R=-1;for(I=0;I<r.length;++I){const X=r[I];if(X===" ")j=!0;else if(X===`
190
+ `)R=I;else break}let W=r.substring(0,R<I?R+1:I);W&&(r=r.substring(W.length),W=W.replace(/\n+/g,`$&${g}`));let H=(j?g?"2":"1":"")+S;if(i&&(H+=" "+h(i.replace(/ ?[\r\n]+/g," ")),a&&a()),!N){const X=r.replace(/\n+/g,`
191
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${g}`);let V=!1;const Q=mo(l,!0);p!=="folded"&&n!==we.BLOCK_FOLDED&&(Q.onOverflow=()=>{V=!0});const M=ho(`${W}${X}${O}`,g,xu,Q);if(!V)return`>${H}
192
+ ${g}${M}`}return r=r.replace(/\n+/g,`$&${g}`),`|${H}
193
+ ${g}${W}${r}${O}`}function Jm(i,n,r,l){const{type:a,value:u}=i,{actualString:p,implicitKey:h,indent:y,indentStep:g,inFlow:N}=n;if(h&&u.includes(`
194
+ `)||N&&/[[\]{},]/.test(u))return ps(u,n);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return h||N||!u.includes(`
195
+ `)?ps(u,n):eo(i,n,r,l);if(!h&&!N&&a!==we.PLAIN&&u.includes(`
196
+ `))return eo(i,n,r,l);if(yo(u)){if(y==="")return n.forceBlockIndent=!0,eo(i,n,r,l);if(h&&y===g)return ps(u,n)}const S=u.replace(/\n+/g,`$&
197
+ ${y}`);if(p){const E=j=>{var I;return j.default&&j.tag!=="tag:yaml.org,2002:str"&&((I=j.test)==null?void 0:I.test(S))},{compat:O,tags:P}=n.doc.schema;if(P.some(E)||O!=null&&O.some(E))return ps(u,n)}return h?S:ho(S,y,sp,mo(n,!1))}function Ru(i,n,r,l){const{implicitKey:a,inFlow:u}=n,p=typeof i.value=="string"?i:Object.assign({},i,{value:String(i.value)});let{type:h}=i;h!==we.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(p.value)&&(h=we.QUOTE_DOUBLE);const y=N=>{switch(N){case we.BLOCK_FOLDED:case we.BLOCK_LITERAL:return a||u?ps(p.value,n):eo(p,n,r,l);case we.QUOTE_DOUBLE:return gi(p.value,n);case we.QUOTE_SINGLE:return Nu(p.value,n);case we.PLAIN:return Jm(p,n,r,l);default:return null}};let g=y(h);if(g===null){const{defaultKeyType:N,defaultStringType:S}=n.options,E=a&&N||S;if(g=y(E),g===null)throw new Error(`Unsupported default string type ${E}`)}return g}function ip(i,n){const r=Object.assign({blockQuote:!0,commentString:Wm,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},i.schema.toStringOptions,n);let l;switch(r.collectionStyle){case"block":l=!1;break;case"flow":l=!0;break;default:l=null}return{anchors:new Set,doc:i,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:l,options:r}}function Ym(i,n){var a;if(n.tag){const u=i.filter(p=>p.tag===n.tag);if(u.length>0)return u.find(p=>p.format===n.format)??u[0]}let r,l;if(Pe(n)){l=n.value;let u=i.filter(p=>{var h;return(h=p.identify)==null?void 0:h.call(p,l)});if(u.length>1){const p=u.filter(h=>h.test);p.length>0&&(u=p)}r=u.find(p=>p.format===n.format)??u.find(p=>!p.format)}else l=n,r=i.find(u=>u.nodeClass&&l instanceof u.nodeClass);if(!r){const u=((a=l==null?void 0:l.constructor)==null?void 0:a.name)??(l===null?"null":typeof l);throw new Error(`Tag not resolved for ${u} value`)}return r}function Gm(i,n,{anchors:r,doc:l}){if(!l.directives)return"";const a=[],u=(Pe(i)||Ke(i))&&i.anchor;u&&Zd(u)&&(r.add(u),a.push(`&${u}`));const p=i.tag??(n.default?null:n.tag);return p&&a.push(l.directives.tagString(p)),a.join(" ")}function gs(i,n,r,l){var y;if(He(i))return i.toString(n,r,l);if(Ir(i)){if(n.doc.directives)return i.toString(n);if((y=n.resolvedAliases)!=null&&y.has(i))throw new TypeError("Cannot stringify circular structure without alias nodes");n.resolvedAliases?n.resolvedAliases.add(i):n.resolvedAliases=new Set([i]),i=i.resolve(n.doc)}let a;const u=qe(i)?i:n.doc.createNode(i,{onTagObj:g=>a=g});a??(a=Ym(n.doc.schema.tags,u));const p=Gm(u,a,n);p.length>0&&(n.indentAtStart=(n.indentAtStart??0)+p.length+1);const h=typeof a.stringify=="function"?a.stringify(u,n,r,l):Pe(u)?Ru(u,n,r,l):u.toString(n,r,l);return p?Pe(u)||h[0]==="{"||h[0]==="["?`${p} ${h}`:`${p}
198
+ ${n.indent}${h}`:h}function Xm({key:i,value:n},r,l,a){const{allNullValues:u,doc:p,indent:h,indentStep:y,options:{commentString:g,indentSeq:N,simpleKeys:S}}=r;let E=qe(i)&&i.comment||null;if(S){if(E)throw new Error("With simple keys, key nodes cannot have comments");if(Ke(i)||!qe(i)&&typeof i=="object"){const Q="With simple keys, collection cannot be used as a key value";throw new Error(Q)}}let O=!S&&(!i||E&&n==null&&!r.inFlow||Ke(i)||(Pe(i)?i.type===we.BLOCK_FOLDED||i.type===we.BLOCK_LITERAL:typeof i=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!O&&(S||!u),indent:h+y});let P=!1,j=!1,I=gs(i,r,()=>P=!0,()=>j=!0);if(!O&&!r.inFlow&&I.length>1024){if(S)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");O=!0}if(r.inFlow){if(u||n==null)return P&&l&&l(),I===""?"?":O?`? ${I}`:I}else if(u&&!S||n==null&&O)return I=`? ${I}`,E&&!P?I+=Cr(I,r.indent,g(E)):j&&a&&a(),I;P&&(E=null),O?(E&&(I+=Cr(I,r.indent,g(E))),I=`? ${I}
199
+ ${h}:`):(I=`${I}:`,E&&(I+=Cr(I,r.indent,g(E))));let R,W,F;qe(n)?(R=!!n.spaceBefore,W=n.commentBefore,F=n.comment):(R=!1,W=null,F=null,n&&typeof n=="object"&&(n=p.createNode(n))),r.implicitKey=!1,!O&&!E&&Pe(n)&&(r.indentAtStart=I.length+1),j=!1,!N&&y.length>=2&&!r.inFlow&&!O&&Ti(n)&&!n.flow&&!n.tag&&!n.anchor&&(r.indent=r.indent.substring(2));let H=!1;const X=gs(n,r,()=>H=!0,()=>j=!0);let V=" ";if(E||R||W){if(V=R?`
200
+ `:"",W){const Q=g(W);V+=`
201
+ ${Cn(Q,r.indent)}`}X===""&&!r.inFlow?V===`
202
+ `&&F&&(V=`
203
+
204
+ `):V+=`
205
+ ${r.indent}`}else if(!O&&Ke(n)){const Q=X[0],M=X.indexOf(`
206
+ `),ae=M!==-1,Y=r.inFlow??n.flow??n.items.length===0;if(ae||!Y){let te=!1;if(ae&&(Q==="&"||Q==="!")){let Z=X.indexOf(" ");Q==="&"&&Z!==-1&&Z<M&&X[Z+1]==="!"&&(Z=X.indexOf(" ",Z+1)),(Z===-1||M<Z)&&(te=!0)}te||(V=`
207
+ ${r.indent}`)}}else(X===""||X[0]===`
208
+ `)&&(V="");return I+=V+X,r.inFlow?H&&l&&l():F&&!H?I+=Cr(I,r.indent,g(F)):j&&a&&a(),I}function lp(i,n){(i==="debug"||i==="warn")&&console.warn(n)}const Hl="<<",En={identify:i=>i===Hl||typeof i=="symbol"&&i.description===Hl,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new we(Symbol(Hl)),{addToJSMap:op}),stringify:()=>Hl},Zm=(i,n)=>(En.identify(n)||Pe(n)&&(!n.type||n.type===we.PLAIN)&&En.identify(n.value))&&(i==null?void 0:i.doc.schema.tags.some(r=>r.tag===En.tag&&r.default));function op(i,n,r){if(r=i&&Ir(r)?r.resolve(i.doc):r,Ti(r))for(const l of r.items)uu(i,n,l);else if(Array.isArray(r))for(const l of r)uu(i,n,l);else uu(i,n,r)}function uu(i,n,r){const l=i&&Ir(r)?r.resolve(i.doc):r;if(!Oi(l))throw new Error("Merge sources must be maps or map aliases");const a=l.toJSON(null,i,Map);for(const[u,p]of a)n instanceof Map?n.has(u)||n.set(u,p):n instanceof Set?n.add(u):Object.prototype.hasOwnProperty.call(n,u)||Object.defineProperty(n,u,{value:p,writable:!0,enumerable:!0,configurable:!0});return n}function ap(i,n,{key:r,value:l}){if(qe(r)&&r.addToJSMap)r.addToJSMap(i,n,l);else if(Zm(i,r))op(i,n,l);else{const a=Ht(r,"",i);if(n instanceof Map)n.set(a,Ht(l,a,i));else if(n instanceof Set)n.add(a);else{const u=ey(r,a,i),p=Ht(l,u,i);u in n?Object.defineProperty(n,u,{value:p,writable:!0,enumerable:!0,configurable:!0}):n[u]=p}}return n}function ey(i,n,r){if(n===null)return"";if(typeof n!="object")return String(n);if(qe(i)&&(r!=null&&r.doc)){const l=ip(r.doc,{});l.anchors=new Set;for(const u of r.anchors.keys())l.anchors.add(u.anchor);l.inFlow=!0,l.inStringifyKey=!0;const a=i.toString(l);if(!r.mapKeyWarned){let u=JSON.stringify(a);u.length>40&&(u=u.substring(0,36)+'..."'),lp(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${u}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return a}return JSON.stringify(n)}function $u(i,n,r){const l=xi(i,void 0,r),a=xi(n,void 0,r);return new kt(l,a)}class kt{constructor(n,r=null){Object.defineProperty(this,Wt,{value:Gd}),this.key=n,this.value=r}clone(n){let{key:r,value:l}=this;return qe(r)&&(r=r.clone(n)),qe(l)&&(l=l.clone(n)),new kt(r,l)}toJSON(n,r){const l=r!=null&&r.mapAsMap?new Map:{};return ap(r,l,this)}toString(n,r,l){return n!=null&&n.doc?Xm(this,n,r,l):JSON.stringify(this)}}function up(i,n,r){return(n.inFlow??i.flow?ny:ty)(i,n,r)}function ty({comment:i,items:n},r,{blockItemPrefix:l,flowChars:a,itemIndent:u,onChompKeep:p,onComment:h}){const{indent:y,options:{commentString:g}}=r,N=Object.assign({},r,{indent:u,type:null});let S=!1;const E=[];for(let P=0;P<n.length;++P){const j=n[P];let I=null;if(qe(j))!S&&j.spaceBefore&&E.push(""),oo(r,E,j.commentBefore,S),j.comment&&(I=j.comment);else if(He(j)){const W=qe(j.key)?j.key:null;W&&(!S&&W.spaceBefore&&E.push(""),oo(r,E,W.commentBefore,S))}S=!1;let R=gs(j,N,()=>I=null,()=>S=!0);I&&(R+=Cr(R,u,g(I))),S&&I&&(S=!1),E.push(l+R)}let O;if(E.length===0)O=a.start+a.end;else{O=E[0];for(let P=1;P<E.length;++P){const j=E[P];O+=j?`
209
+ ${y}${j}`:`
210
+ `}}return i?(O+=`
211
+ `+Cn(g(i),y),h&&h()):S&&p&&p(),O}function ny({items:i},n,{flowChars:r,itemIndent:l}){const{indent:a,indentStep:u,flowCollectionPadding:p,options:{commentString:h}}=n;l+=u;const y=Object.assign({},n,{indent:l,inFlow:!0,type:null});let g=!1,N=0;const S=[];for(let P=0;P<i.length;++P){const j=i[P];let I=null;if(qe(j))j.spaceBefore&&S.push(""),oo(n,S,j.commentBefore,!1),j.comment&&(I=j.comment);else if(He(j)){const W=qe(j.key)?j.key:null;W&&(W.spaceBefore&&S.push(""),oo(n,S,W.commentBefore,!1),W.comment&&(g=!0));const F=qe(j.value)?j.value:null;F?(F.comment&&(I=F.comment),F.commentBefore&&(g=!0)):j.value==null&&(W!=null&&W.comment)&&(I=W.comment)}I&&(g=!0);let R=gs(j,y,()=>I=null);g||(g=S.length>N||R.includes(`
212
+ `)),P<i.length-1?R+=",":n.options.trailingComma&&(n.options.lineWidth>0&&(g||(g=S.reduce((W,F)=>W+F.length+2,2)+(R.length+2)>n.options.lineWidth)),g&&(R+=",")),I&&(R+=Cr(R,l,h(I))),S.push(R),N=S.length}const{start:E,end:O}=r;if(S.length===0)return E+O;if(!g){const P=S.reduce((j,I)=>j+I.length+2,2);g=n.options.lineWidth>0&&P>n.options.lineWidth}if(g){let P=E;for(const j of S)P+=j?`
213
+ ${u}${a}${j}`:`
214
+ `;return`${P}
215
+ ${a}${O}`}else return`${E}${p}${S.join(" ")}${p}${O}`}function oo({indent:i,options:{commentString:n}},r,l,a){if(l&&a&&(l=l.replace(/^\n+/,"")),l){const u=Cn(n(l),i);r.push(u.trimStart())}}function Er(i,n){const r=Pe(n)?n.value:n;for(const l of i)if(He(l)&&(l.key===n||l.key===r||Pe(l.key)&&l.key.value===r))return l}class qt extends rp{static get tagName(){return"tag:yaml.org,2002:map"}constructor(n){super(nr,n),this.items=[]}static from(n,r,l){const{keepUndefined:a,replacer:u}=l,p=new this(n),h=(y,g)=>{if(typeof u=="function")g=u.call(r,y,g);else if(Array.isArray(u)&&!u.includes(y))return;(g!==void 0||a)&&p.items.push($u(y,g,l))};if(r instanceof Map)for(const[y,g]of r)h(y,g);else if(r&&typeof r=="object")for(const y of Object.keys(r))h(y,r[y]);return typeof n.sortMapEntries=="function"&&p.items.sort(n.sortMapEntries),p}add(n,r){var p;let l;He(n)?l=n:!n||typeof n!="object"||!("key"in n)?l=new kt(n,n==null?void 0:n.value):l=new kt(n.key,n.value);const a=Er(this.items,l.key),u=(p=this.schema)==null?void 0:p.sortMapEntries;if(a){if(!r)throw new Error(`Key ${l.key} already set`);Pe(a.value)&&np(l.value)?a.value.value=l.value:a.value=l.value}else if(u){const h=this.items.findIndex(y=>u(l,y)<0);h===-1?this.items.push(l):this.items.splice(h,0,l)}else this.items.push(l)}delete(n){const r=Er(this.items,n);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(n,r){const l=Er(this.items,n),a=l==null?void 0:l.value;return(!r&&Pe(a)?a.value:a)??void 0}has(n){return!!Er(this.items,n)}set(n,r){this.add(new kt(n,r),!0)}toJSON(n,r,l){const a=l?new l:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(a);for(const u of this.items)ap(r,a,u);return a}toString(n,r,l){if(!n)return JSON.stringify(this);for(const a of this.items)if(!He(a))throw new Error(`Map items must all be pairs; found ${JSON.stringify(a)} instead`);return!n.allNullValues&&this.hasAllNullValues(!1)&&(n=Object.assign({},n,{allNullValues:!0})),up(this,n,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:n.indent||"",onChompKeep:l,onComment:r})}}const js={collection:"map",default:!0,nodeClass:qt,tag:"tag:yaml.org,2002:map",resolve(i,n){return Oi(i)||n("Expected a mapping for this tag"),i},createNode:(i,n,r)=>qt.from(i,n,r)};class Or extends rp{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(n){super(ks,n),this.items=[]}add(n){this.items.push(n)}delete(n){const r=Wl(n);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(n,r){const l=Wl(n);if(typeof l!="number")return;const a=this.items[l];return!r&&Pe(a)?a.value:a}has(n){const r=Wl(n);return typeof r=="number"&&r<this.items.length}set(n,r){const l=Wl(n);if(typeof l!="number")throw new Error(`Expected a valid index, not ${n}.`);const a=this.items[l];Pe(a)&&np(r)?a.value=r:this.items[l]=r}toJSON(n,r){const l=[];r!=null&&r.onCreate&&r.onCreate(l);let a=0;for(const u of this.items)l.push(Ht(u,String(a++),r));return l}toString(n,r,l){return n?up(this,n,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(n.indent||"")+" ",onChompKeep:l,onComment:r}):JSON.stringify(this)}static from(n,r,l){const{replacer:a}=l,u=new this(n);if(r&&Symbol.iterator in Object(r)){let p=0;for(let h of r){if(typeof a=="function"){const y=r instanceof Set?h:String(p++);h=a.call(r,y,h)}u.items.push(xi(h,void 0,l))}}return u}}function Wl(i){let n=Pe(i)?i.value:i;return n&&typeof n=="string"&&(n=Number(n)),typeof n=="number"&&Number.isInteger(n)&&n>=0?n:null}const xs={collection:"seq",default:!0,nodeClass:Or,tag:"tag:yaml.org,2002:seq",resolve(i,n){return Ti(i)||n("Expected a sequence for this tag"),i},createNode:(i,n,r)=>Or.from(i,n,r)},go={identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,n,r,l){return n=Object.assign({actualString:!0},n),Ru(i,n,r,l)}},vo={identify:i=>i==null,createNode:()=>new we(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new we(null),stringify:({source:i},n)=>typeof i=="string"&&vo.test.test(i)?i:n.options.nullStr},Du={identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new we(i[0]==="t"||i[0]==="T"),stringify({source:i,value:n},r){if(i&&Du.test.test(i)){const l=i[0]==="t"||i[0]==="T";if(n===l)return i}return n?r.options.trueStr:r.options.falseStr}};function rn({format:i,minFractionDigits:n,tag:r,value:l}){if(typeof l=="bigint")return String(l);const a=typeof l=="number"?l:Number(l);if(!isFinite(a))return isNaN(a)?".nan":a<0?"-.inf":".inf";let u=Object.is(l,-0)?"-0":JSON.stringify(l);if(!i&&n&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(u)){let p=u.indexOf(".");p<0&&(p=u.length,u+=".");let h=n-(u.length-p-1);for(;h-- >0;)u+="0"}return u}const cp={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:rn},fp={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){const n=Number(i.value);return isFinite(n)?n.toExponential():rn(i)}},dp={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){const n=new we(parseFloat(i)),r=i.indexOf(".");return r!==-1&&i[i.length-1]==="0"&&(n.minFractionDigits=i.length-r-1),n},stringify:rn},wo=i=>typeof i=="bigint"||Number.isInteger(i),zu=(i,n,r,{intAsBigInt:l})=>l?BigInt(i):parseInt(i.substring(n),r);function pp(i,n,r){const{value:l}=i;return wo(l)&&l>=0?r+l.toString(n):rn(i)}const hp={identify:i=>wo(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,n,r)=>zu(i,2,8,r),stringify:i=>pp(i,8,"0o")},mp={identify:wo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,n,r)=>zu(i,0,10,r),stringify:rn},yp={identify:i=>wo(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,n,r)=>zu(i,2,16,r),stringify:i=>pp(i,16,"0x")},ry=[js,xs,go,vo,Du,hp,mp,yp,cp,fp,dp];function Id(i){return typeof i=="bigint"||Number.isInteger(i)}const Ql=({value:i})=>JSON.stringify(i),sy=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:Ql},{identify:i=>i==null,createNode:()=>new we(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ql},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:i=>i==="true",stringify:Ql},{identify:Id,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,n,{intAsBigInt:r})=>r?BigInt(i):parseInt(i,10),stringify:({value:i})=>Id(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:Ql}],iy={default:!0,tag:"",test:/^/,resolve(i,n){return n(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},ly=[js,xs].concat(sy,iy),Bu={identify:i=>i instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(i,n){if(typeof atob=="function"){const r=atob(i.replace(/[\n\r]/g,"")),l=new Uint8Array(r.length);for(let a=0;a<r.length;++a)l[a]=r.charCodeAt(a);return l}else return n("This environment does not support reading binary tags; either Buffer or atob is required"),i},stringify({comment:i,type:n,value:r},l,a,u){if(!r)return"";const p=r;let h;if(typeof btoa=="function"){let y="";for(let g=0;g<p.length;++g)y+=String.fromCharCode(p[g]);h=btoa(y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(n??(n=we.BLOCK_LITERAL),n!==we.QUOTE_DOUBLE){const y=Math.max(l.options.lineWidth-l.indent.length,l.options.minContentWidth),g=Math.ceil(h.length/y),N=new Array(g);for(let S=0,E=0;S<g;++S,E+=y)N[S]=h.substr(E,y);h=N.join(n===we.BLOCK_LITERAL?`
216
+ `:" ")}return Ru({comment:i,type:n,value:h},l,a,u)}};function gp(i,n){if(Ti(i))for(let r=0;r<i.items.length;++r){let l=i.items[r];if(!He(l)){if(Oi(l)){l.items.length>1&&n("Each pair must have its own sequence indicator");const a=l.items[0]||new kt(new we(null));if(l.commentBefore&&(a.key.commentBefore=a.key.commentBefore?`${l.commentBefore}
217
+ ${a.key.commentBefore}`:l.commentBefore),l.comment){const u=a.value??a.key;u.comment=u.comment?`${l.comment}
218
+ ${u.comment}`:l.comment}l=a}i.items[r]=He(l)?l:new kt(l)}}else n("Expected a sequence for this tag");return i}function vp(i,n,r){const{replacer:l}=r,a=new Or(i);a.tag="tag:yaml.org,2002:pairs";let u=0;if(n&&Symbol.iterator in Object(n))for(let p of n){typeof l=="function"&&(p=l.call(n,String(u++),p));let h,y;if(Array.isArray(p))if(p.length===2)h=p[0],y=p[1];else throw new TypeError(`Expected [key, value] tuple: ${p}`);else if(p&&p instanceof Object){const g=Object.keys(p);if(g.length===1)h=g[0],y=p[h];else throw new TypeError(`Expected tuple with one key, not ${g.length} keys`)}else h=p;a.items.push($u(h,y,r))}return a}const Uu={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:gp,createNode:vp};class ms extends Or{constructor(){super(),this.add=qt.prototype.add.bind(this),this.delete=qt.prototype.delete.bind(this),this.get=qt.prototype.get.bind(this),this.has=qt.prototype.has.bind(this),this.set=qt.prototype.set.bind(this),this.tag=ms.tag}toJSON(n,r){if(!r)return super.toJSON(n);const l=new Map;r!=null&&r.onCreate&&r.onCreate(l);for(const a of this.items){let u,p;if(He(a)?(u=Ht(a.key,"",r),p=Ht(a.value,u,r)):u=Ht(a,"",r),l.has(u))throw new Error("Ordered maps must not include duplicate keys");l.set(u,p)}return l}static from(n,r,l){const a=vp(n,r,l),u=new this;return u.items=a.items,u}}ms.tag="tag:yaml.org,2002:omap";const Fu={collection:"seq",identify:i=>i instanceof Map,nodeClass:ms,default:!1,tag:"tag:yaml.org,2002:omap",resolve(i,n){const r=gp(i,n),l=[];for(const{key:a}of r.items)Pe(a)&&(l.includes(a.value)?n(`Ordered maps must not include duplicate keys: ${a.value}`):l.push(a.value));return Object.assign(new ms,r)},createNode:(i,n,r)=>ms.from(i,n,r)};function wp({value:i,source:n},r){return n&&(i?kp:Sp).test.test(n)?n:i?r.options.trueStr:r.options.falseStr}const kp={identify:i=>i===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new we(!0),stringify:wp},Sp={identify:i=>i===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new we(!1),stringify:wp},oy={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:rn},ay={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){const n=Number(i.value);return isFinite(n)?n.toExponential():rn(i)}},uy={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){const n=new we(parseFloat(i.replace(/_/g,""))),r=i.indexOf(".");if(r!==-1){const l=i.substring(r+1).replace(/_/g,"");l[l.length-1]==="0"&&(n.minFractionDigits=l.length)}return n},stringify:rn},_i=i=>typeof i=="bigint"||Number.isInteger(i);function ko(i,n,r,{intAsBigInt:l}){const a=i[0];if((a==="-"||a==="+")&&(n+=1),i=i.substring(n).replace(/_/g,""),l){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const p=BigInt(i);return a==="-"?BigInt(-1)*p:p}const u=parseInt(i,r);return a==="-"?-1*u:u}function Vu(i,n,r){const{value:l}=i;if(_i(l)){const a=l.toString(n);return l<0?"-"+r+a.substr(1):r+a}return rn(i)}const cy={identify:_i,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,n,r)=>ko(i,2,2,r),stringify:i=>Vu(i,2,"0b")},fy={identify:_i,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,n,r)=>ko(i,1,8,r),stringify:i=>Vu(i,8,"0")},dy={identify:_i,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,n,r)=>ko(i,0,10,r),stringify:rn},py={identify:_i,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,n,r)=>ko(i,2,16,r),stringify:i=>Vu(i,16,"0x")};class ys extends qt{constructor(n){super(n),this.tag=ys.tag}add(n){let r;He(n)?r=n:n&&typeof n=="object"&&"key"in n&&"value"in n&&n.value===null?r=new kt(n.key,null):r=new kt(n,null),Er(this.items,r.key)||this.items.push(r)}get(n,r){const l=Er(this.items,n);return!r&&He(l)?Pe(l.key)?l.key.value:l.key:l}set(n,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const l=Er(this.items,n);l&&!r?this.items.splice(this.items.indexOf(l),1):!l&&r&&this.items.push(new kt(n))}toJSON(n,r){return super.toJSON(n,r,Set)}toString(n,r,l){if(!n)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},n,{allNullValues:!0}),r,l);throw new Error("Set items must all have null values")}static from(n,r,l){const{replacer:a}=l,u=new this(n);if(r&&Symbol.iterator in Object(r))for(let p of r)typeof a=="function"&&(p=a.call(r,p,p)),u.items.push($u(p,null,l));return u}}ys.tag="tag:yaml.org,2002:set";const Ku={collection:"map",identify:i=>i instanceof Set,nodeClass:ys,default:!1,tag:"tag:yaml.org,2002:set",createNode:(i,n,r)=>ys.from(i,n,r),resolve(i,n){if(Oi(i)){if(i.hasAllNullValues(!0))return Object.assign(new ys,i);n("Set items must all have null values")}else n("Expected a mapping for this tag");return i}};function qu(i,n){const r=i[0],l=r==="-"||r==="+"?i.substring(1):i,a=p=>n?BigInt(p):Number(p),u=l.replace(/_/g,"").split(":").reduce((p,h)=>p*a(60)+a(h),a(0));return r==="-"?a(-1)*u:u}function jp(i){let{value:n}=i,r=p=>p;if(typeof n=="bigint")r=p=>BigInt(p);else if(isNaN(n)||!isFinite(n))return rn(i);let l="";n<0&&(l="-",n*=r(-1));const a=r(60),u=[n%a];return n<60?u.unshift(0):(n=(n-u[0])/a,u.unshift(n%a),n>=60&&(n=(n-u[0])/a,u.unshift(n))),l+u.map(p=>String(p).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const xp={identify:i=>typeof i=="bigint"||Number.isInteger(i),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,n,{intAsBigInt:r})=>qu(i,r),stringify:jp},Np={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>qu(i,!1),stringify:jp},So={identify:i=>i instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(i){const n=i.match(So.test);if(!n)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,l,a,u,p,h]=n.map(Number),y=n[7]?Number((n[7]+"00").substr(1,3)):0;let g=Date.UTC(r,l-1,a,u||0,p||0,h||0,y);const N=n[8];if(N&&N!=="Z"){let S=qu(N,!1);Math.abs(S)<30&&(S*=60),g-=6e4*S}return new Date(g)},stringify:({value:i})=>(i==null?void 0:i.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},Ld=[js,xs,go,vo,kp,Sp,cy,fy,dy,py,oy,ay,uy,Bu,En,Fu,Uu,Ku,xp,Np,So],Ad=new Map([["core",ry],["failsafe",[js,xs,go]],["json",ly],["yaml11",Ld],["yaml-1.1",Ld]]),bd={binary:Bu,bool:Du,float:dp,floatExp:fp,floatNaN:cp,floatTime:Np,int:mp,intHex:yp,intOct:hp,intTime:xp,map:js,merge:En,null:vo,omap:Fu,pairs:Uu,seq:xs,set:Ku,timestamp:So},hy={"tag:yaml.org,2002:binary":Bu,"tag:yaml.org,2002:merge":En,"tag:yaml.org,2002:omap":Fu,"tag:yaml.org,2002:pairs":Uu,"tag:yaml.org,2002:set":Ku,"tag:yaml.org,2002:timestamp":So};function cu(i,n,r){const l=Ad.get(n);if(l&&!i)return r&&!l.includes(En)?l.concat(En):l.slice();let a=l;if(!a)if(Array.isArray(i))a=[];else{const u=Array.from(Ad.keys()).filter(p=>p!=="yaml11").map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${u} or define customTags array`)}if(Array.isArray(i))for(const u of i)a=a.concat(u);else typeof i=="function"&&(a=i(a.slice()));return r&&(a=a.concat(En)),a.reduce((u,p)=>{const h=typeof p=="string"?bd[p]:p;if(!h){const y=JSON.stringify(p),g=Object.keys(bd).map(N=>JSON.stringify(N)).join(", ");throw new Error(`Unknown custom tag ${y}; use one of ${g}`)}return u.includes(h)||u.push(h),u},[])}const my=(i,n)=>i.key<n.key?-1:i.key>n.key?1:0;class Hu{constructor({compat:n,customTags:r,merge:l,resolveKnownTags:a,schema:u,sortMapEntries:p,toStringDefaults:h}){this.compat=Array.isArray(n)?cu(n,"compat"):n?cu(null,n):null,this.name=typeof u=="string"&&u||"core",this.knownTags=a?hy:{},this.tags=cu(r,this.name,l),this.toStringOptions=h??null,Object.defineProperty(this,nr,{value:js}),Object.defineProperty(this,dn,{value:go}),Object.defineProperty(this,ks,{value:xs}),this.sortMapEntries=typeof p=="function"?p:p===!0?my:null}clone(){const n=Object.create(Hu.prototype,Object.getOwnPropertyDescriptors(this));return n.tags=this.tags.slice(),n}}function yy(i,n){var y;const r=[];let l=n.directives===!0;if(n.directives!==!1&&i.directives){const g=i.directives.toString(i);g?(r.push(g),l=!0):i.directives.docStart&&(l=!0)}l&&r.push("---");const a=ip(i,n),{commentString:u}=a.options;if(i.commentBefore){r.length!==1&&r.unshift("");const g=u(i.commentBefore);r.unshift(Cn(g,""))}let p=!1,h=null;if(i.contents){if(qe(i.contents)){if(i.contents.spaceBefore&&l&&r.push(""),i.contents.commentBefore){const S=u(i.contents.commentBefore);r.push(Cn(S,""))}a.forceBlockIndent=!!i.comment,h=i.contents.comment}const g=h?void 0:()=>p=!0;let N=gs(i.contents,a,()=>h=null,g);h&&(N+=Cr(N,"",u(h))),(N[0]==="|"||N[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${N}`:r.push(N)}else r.push(gs(i.contents,a));if((y=i.directives)!=null&&y.docEnd)if(i.comment){const g=u(i.comment);g.includes(`
219
+ `)?(r.push("..."),r.push(Cn(g,""))):r.push(`... ${g}`)}else r.push("...");else{let g=i.comment;g&&p&&(g=g.replace(/^\n+/,"")),g&&((!p||h)&&r[r.length-1]!==""&&r.push(""),r.push(Cn(u(g),"")))}return r.join(`
220
+ `)+`
221
+ `}class jo{constructor(n,r,l){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Wt,{value:ju});let a=null;typeof r=="function"||Array.isArray(r)?a=r:l===void 0&&r&&(l=r,r=void 0);const u=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},l);this.options=u;let{version:p}=u;l!=null&&l._directives?(this.directives=l._directives.atDocument(),this.directives.yaml.explicit&&(p=this.directives.yaml.version)):this.directives=new wt({version:p}),this.setSchema(p,l),this.contents=n===void 0?null:this.createNode(n,a,l)}clone(){const n=Object.create(jo.prototype,{[Wt]:{value:ju}});return n.commentBefore=this.commentBefore,n.comment=this.comment,n.errors=this.errors.slice(),n.warnings=this.warnings.slice(),n.options=Object.assign({},this.options),this.directives&&(n.directives=this.directives.clone()),n.schema=this.schema.clone(),n.contents=qe(this.contents)?this.contents.clone(n.schema):this.contents,this.range&&(n.range=this.range.slice()),n}add(n){us(this.contents)&&this.contents.add(n)}addIn(n,r){us(this.contents)&&this.contents.addIn(n,r)}createAlias(n,r){if(!n.anchor){const l=ep(this);n.anchor=!r||l.has(r)?tp(r||"a",l):r}return new Mu(n.anchor)}createNode(n,r,l){let a;if(typeof r=="function")n=r.call({"":n},"",n),a=r;else if(Array.isArray(r)){const I=W=>typeof W=="number"||W instanceof String||W instanceof Number,R=r.filter(I).map(String);R.length>0&&(r=r.concat(R)),a=r}else l===void 0&&r&&(l=r,r=void 0);const{aliasDuplicateObjects:u,anchorPrefix:p,flow:h,keepUndefined:y,onTagObj:g,tag:N}=l??{},{onAnchor:S,setAnchors:E,sourceObjects:O}=Km(this,p||"a"),P={aliasDuplicateObjects:u??!0,keepUndefined:y??!1,onAnchor:S,onTagObj:g,replacer:a,schema:this.schema,sourceObjects:O},j=xi(n,N,P);return h&&Ke(j)&&(j.flow=!0),E(),j}createPair(n,r,l={}){const a=this.createNode(n,null,l),u=this.createNode(r,null,l);return new kt(a,u)}delete(n){return us(this.contents)?this.contents.delete(n):!1}deleteIn(n){return fi(n)?this.contents==null?!1:(this.contents=null,!0):us(this.contents)?this.contents.deleteIn(n):!1}get(n,r){return Ke(this.contents)?this.contents.get(n,r):void 0}getIn(n,r){return fi(n)?!r&&Pe(this.contents)?this.contents.value:this.contents:Ke(this.contents)?this.contents.getIn(n,r):void 0}has(n){return Ke(this.contents)?this.contents.has(n):!1}hasIn(n){return fi(n)?this.contents!==void 0:Ke(this.contents)?this.contents.hasIn(n):!1}set(n,r){this.contents==null?this.contents=lo(this.schema,[n],r):us(this.contents)&&this.contents.set(n,r)}setIn(n,r){fi(n)?this.contents=r:this.contents==null?this.contents=lo(this.schema,Array.from(n),r):us(this.contents)&&this.contents.setIn(n,r)}setSchema(n,r={}){typeof n=="number"&&(n=String(n));let l;switch(n){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new wt({version:"1.1"}),l={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=n:this.directives=new wt({version:n}),l={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,l=null;break;default:{const a=JSON.stringify(n);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${a}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(l)this.schema=new Hu(Object.assign(l,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:n,jsonArg:r,mapAsMap:l,maxAliasCount:a,onAnchor:u,reviver:p}={}){const h={anchors:new Map,doc:this,keep:!n,mapAsMap:l===!0,mapKeyWarned:!1,maxAliasCount:typeof a=="number"?a:100},y=Ht(this.contents,r??"",h);if(typeof u=="function")for(const{count:g,res:N}of h.anchors.values())u(N,g);return typeof p=="function"?ds(p,{"":y},"",y):y}toJSON(n,r){return this.toJS({json:!0,jsonArg:n,mapAsMap:!1,onAnchor:r})}toString(n={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in n&&(!Number.isInteger(n.indent)||Number(n.indent)<=0)){const r=JSON.stringify(n.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return yy(this,n)}}function us(i){if(Ke(i))return!0;throw new Error("Expected a YAML collection as document contents")}class Cp extends Error{constructor(n,r,l,a){super(),this.name=n,this.code=l,this.message=a,this.pos=r}}class di extends Cp{constructor(n,r,l){super("YAMLParseError",n,r,l)}}class gy extends Cp{constructor(n,r,l){super("YAMLWarning",n,r,l)}}const Pd=(i,n)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(h=>n.linePos(h));const{line:l,col:a}=r.linePos[0];r.message+=` at line ${l}, column ${a}`;let u=a-1,p=i.substring(n.lineStarts[l-1],n.lineStarts[l]).replace(/[\n\r]+$/,"");if(u>=60&&p.length>80){const h=Math.min(u-39,p.length-79);p="…"+p.substring(h),u-=h-1}if(p.length>80&&(p=p.substring(0,79)+"…"),l>1&&/^ *$/.test(p.substring(0,u))){let h=i.substring(n.lineStarts[l-2],n.lineStarts[l-1]);h.length>80&&(h=h.substring(0,79)+`…
222
+ `),p=h+p}if(/[^ ]/.test(p)){let h=1;const y=r.linePos[1];(y==null?void 0:y.line)===l&&y.col>a&&(h=Math.max(1,Math.min(y.col-a,80-u)));const g=" ".repeat(u)+"^".repeat(h);r.message+=`:
223
+
224
+ ${p}
225
+ ${g}
226
+ `}};function vs(i,{flow:n,indicator:r,next:l,offset:a,onError:u,parentIndent:p,startOnNewline:h}){let y=!1,g=h,N=h,S="",E="",O=!1,P=!1,j=null,I=null,R=null,W=null,F=null,H=null,X=null;for(const M of i)switch(P&&(M.type!=="space"&&M.type!=="newline"&&M.type!=="comma"&&u(M.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),P=!1),j&&(g&&M.type!=="comment"&&M.type!=="newline"&&u(j,"TAB_AS_INDENT","Tabs are not allowed as indentation"),j=null),M.type){case"space":!n&&(r!=="doc-start"||(l==null?void 0:l.type)!=="flow-collection")&&M.source.includes(" ")&&(j=M),N=!0;break;case"comment":{N||u(M,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const ae=M.source.substring(1)||" ";S?S+=E+ae:S=ae,E="",g=!1;break}case"newline":g?S?S+=M.source:(!H||r!=="seq-item-ind")&&(y=!0):E+=M.source,g=!0,O=!0,(I||R)&&(W=M),N=!0;break;case"anchor":I&&u(M,"MULTIPLE_ANCHORS","A node can have at most one anchor"),M.source.endsWith(":")&&u(M.offset+M.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),I=M,X??(X=M.offset),g=!1,N=!1,P=!0;break;case"tag":{R&&u(M,"MULTIPLE_TAGS","A node can have at most one tag"),R=M,X??(X=M.offset),g=!1,N=!1,P=!0;break}case r:(I||R)&&u(M,"BAD_PROP_ORDER",`Anchors and tags must be after the ${M.source} indicator`),H&&u(M,"UNEXPECTED_TOKEN",`Unexpected ${M.source} in ${n??"collection"}`),H=M,g=r==="seq-item-ind"||r==="explicit-key-ind",N=!1;break;case"comma":if(n){F&&u(M,"UNEXPECTED_TOKEN",`Unexpected , in ${n}`),F=M,g=!1,N=!1;break}default:u(M,"UNEXPECTED_TOKEN",`Unexpected ${M.type} token`),g=!1,N=!1}const V=i[i.length-1],Q=V?V.offset+V.source.length:a;return P&&l&&l.type!=="space"&&l.type!=="newline"&&l.type!=="comma"&&(l.type!=="scalar"||l.source!=="")&&u(l.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),j&&(g&&j.indent<=p||(l==null?void 0:l.type)==="block-map"||(l==null?void 0:l.type)==="block-seq")&&u(j,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:F,found:H,spaceBefore:y,comment:S,hasNewline:O,anchor:I,tag:R,newlineAfterProp:W,end:Q,start:X??Q}}function Ni(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes(`
227
+ `))return!0;if(i.end){for(const n of i.end)if(n.type==="newline")return!0}return!1;case"flow-collection":for(const n of i.items){for(const r of n.start)if(r.type==="newline")return!0;if(n.sep){for(const r of n.sep)if(r.type==="newline")return!0}if(Ni(n.key)||Ni(n.value))return!0}return!1;default:return!0}}function Eu(i,n,r){if((n==null?void 0:n.type)==="flow-collection"){const l=n.end[0];l.indent===i&&(l.source==="]"||l.source==="}")&&Ni(n)&&r(l,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Ep(i,n,r){const{uniqueKeys:l}=i.options;if(l===!1)return!1;const a=typeof l=="function"?l:(u,p)=>u===p||Pe(u)&&Pe(p)&&u.value===p.value;return n.some(u=>a(u.key,r))}const Md="All mapping items must start at the same column";function vy({composeNode:i,composeEmptyNode:n},r,l,a,u){var N;const p=(u==null?void 0:u.nodeClass)??qt,h=new p(r.schema);r.atRoot&&(r.atRoot=!1);let y=l.offset,g=null;for(const S of l.items){const{start:E,key:O,sep:P,value:j}=S,I=vs(E,{indicator:"explicit-key-ind",next:O??(P==null?void 0:P[0]),offset:y,onError:a,parentIndent:l.indent,startOnNewline:!0}),R=!I.found;if(R){if(O&&(O.type==="block-seq"?a(y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in O&&O.indent!==l.indent&&a(y,"BAD_INDENT",Md)),!I.anchor&&!I.tag&&!P){g=I.end,I.comment&&(h.comment?h.comment+=`
228
+ `+I.comment:h.comment=I.comment);continue}(I.newlineAfterProp||Ni(O))&&a(O??E[E.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((N=I.found)==null?void 0:N.indent)!==l.indent&&a(y,"BAD_INDENT",Md);r.atKey=!0;const W=I.end,F=O?i(r,O,I,a):n(r,W,E,null,I,a);r.schema.compat&&Eu(l.indent,O,a),r.atKey=!1,Ep(r,h.items,F)&&a(W,"DUPLICATE_KEY","Map keys must be unique");const H=vs(P??[],{indicator:"map-value-ind",next:j,offset:F.range[2],onError:a,parentIndent:l.indent,startOnNewline:!O||O.type==="block-scalar"});if(y=H.end,H.found){R&&((j==null?void 0:j.type)==="block-map"&&!H.hasNewline&&a(y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&I.start<H.found.offset-1024&&a(F.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const X=j?i(r,j,H,a):n(r,y,P,null,H,a);r.schema.compat&&Eu(l.indent,j,a),y=X.range[2];const V=new kt(F,X);r.options.keepSourceTokens&&(V.srcToken=S),h.items.push(V)}else{R&&a(F.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),H.comment&&(F.comment?F.comment+=`
229
+ `+H.comment:F.comment=H.comment);const X=new kt(F);r.options.keepSourceTokens&&(X.srcToken=S),h.items.push(X)}}return g&&g<y&&a(g,"IMPOSSIBLE","Map comment with trailing content"),h.range=[l.offset,y,g??y],h}function wy({composeNode:i,composeEmptyNode:n},r,l,a,u){const p=(u==null?void 0:u.nodeClass)??Or,h=new p(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let y=l.offset,g=null;for(const{start:N,value:S}of l.items){const E=vs(N,{indicator:"seq-item-ind",next:S,offset:y,onError:a,parentIndent:l.indent,startOnNewline:!0});if(!E.found)if(E.anchor||E.tag||S)(S==null?void 0:S.type)==="block-seq"?a(E.end,"BAD_INDENT","All sequence items must start at the same column"):a(y,"MISSING_CHAR","Sequence item without - indicator");else{g=E.end,E.comment&&(h.comment=E.comment);continue}const O=S?i(r,S,E,a):n(r,E.end,N,null,E,a);r.schema.compat&&Eu(l.indent,S,a),y=O.range[2],h.items.push(O)}return h.range=[l.offset,y,g??y],h}function Ii(i,n,r,l){let a="";if(i){let u=!1,p="";for(const h of i){const{source:y,type:g}=h;switch(g){case"space":u=!0;break;case"comment":{r&&!u&&l(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const N=y.substring(1)||" ";a?a+=p+N:a=N,p="";break}case"newline":a&&(p+=y),u=!0;break;default:l(h,"UNEXPECTED_TOKEN",`Unexpected ${g} at node end`)}n+=y.length}}return{comment:a,offset:n}}const fu="Block collections are not allowed within flow collections",du=i=>i&&(i.type==="block-map"||i.type==="block-seq");function ky({composeNode:i,composeEmptyNode:n},r,l,a,u){var I;const p=l.start.source==="{",h=p?"flow map":"flow sequence",y=(u==null?void 0:u.nodeClass)??(p?qt:Or),g=new y(r.schema);g.flow=!0;const N=r.atRoot;N&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let S=l.offset+l.start.source.length;for(let R=0;R<l.items.length;++R){const W=l.items[R],{start:F,key:H,sep:X,value:V}=W,Q=vs(F,{flow:h,indicator:"explicit-key-ind",next:H??(X==null?void 0:X[0]),offset:S,onError:a,parentIndent:l.indent,startOnNewline:!1});if(!Q.found){if(!Q.anchor&&!Q.tag&&!X&&!V){R===0&&Q.comma?a(Q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${h}`):R<l.items.length-1&&a(Q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${h}`),Q.comment&&(g.comment?g.comment+=`
230
+ `+Q.comment:g.comment=Q.comment),S=Q.end;continue}!p&&r.options.strict&&Ni(H)&&a(H,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(R===0)Q.comma&&a(Q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${h}`);else if(Q.comma||a(Q.start,"MISSING_CHAR",`Missing , between ${h} items`),Q.comment){let M="";e:for(const ae of F)switch(ae.type){case"comma":case"space":break;case"comment":M=ae.source.substring(1);break e;default:break e}if(M){let ae=g.items[g.items.length-1];He(ae)&&(ae=ae.value??ae.key),ae.comment?ae.comment+=`
231
+ `+M:ae.comment=M,Q.comment=Q.comment.substring(M.length+1)}}if(!p&&!X&&!Q.found){const M=V?i(r,V,Q,a):n(r,Q.end,X,null,Q,a);g.items.push(M),S=M.range[2],du(V)&&a(M.range,"BLOCK_IN_FLOW",fu)}else{r.atKey=!0;const M=Q.end,ae=H?i(r,H,Q,a):n(r,M,F,null,Q,a);du(H)&&a(ae.range,"BLOCK_IN_FLOW",fu),r.atKey=!1;const Y=vs(X??[],{flow:h,indicator:"map-value-ind",next:V,offset:ae.range[2],onError:a,parentIndent:l.indent,startOnNewline:!1});if(Y.found){if(!p&&!Q.found&&r.options.strict){if(X)for(const de of X){if(de===Y.found)break;if(de.type==="newline"){a(de,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}Q.start<Y.found.offset-1024&&a(Y.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else V&&("source"in V&&((I=V.source)==null?void 0:I[0])===":"?a(V,"MISSING_CHAR",`Missing space after : in ${h}`):a(Y.start,"MISSING_CHAR",`Missing , or : between ${h} items`));const te=V?i(r,V,Y,a):Y.found?n(r,Y.end,X,null,Y,a):null;te?du(V)&&a(te.range,"BLOCK_IN_FLOW",fu):Y.comment&&(ae.comment?ae.comment+=`
232
+ `+Y.comment:ae.comment=Y.comment);const Z=new kt(ae,te);if(r.options.keepSourceTokens&&(Z.srcToken=W),p){const de=g;Ep(r,de.items,ae)&&a(M,"DUPLICATE_KEY","Map keys must be unique"),de.items.push(Z)}else{const de=new qt(r.schema);de.flow=!0,de.items.push(Z);const Le=(te??ae).range;de.range=[ae.range[0],Le[1],Le[2]],g.items.push(de)}S=te?te.range[2]:Y.end}}const E=p?"}":"]",[O,...P]=l.end;let j=S;if((O==null?void 0:O.source)===E)j=O.offset+O.source.length;else{const R=h[0].toUpperCase()+h.substring(1),W=N?`${R} must end with a ${E}`:`${R} in block collection must be sufficiently indented and end with a ${E}`;a(S,N?"MISSING_CHAR":"BAD_INDENT",W),O&&O.source.length!==1&&P.unshift(O)}if(P.length>0){const R=Ii(P,j,r.options.strict,a);R.comment&&(g.comment?g.comment+=`
233
+ `+R.comment:g.comment=R.comment),g.range=[l.offset,j,R.offset]}else g.range=[l.offset,j,j];return g}function pu(i,n,r,l,a,u){const p=r.type==="block-map"?vy(i,n,r,l,u):r.type==="block-seq"?wy(i,n,r,l,u):ky(i,n,r,l,u),h=p.constructor;return a==="!"||a===h.tagName?(p.tag=h.tagName,p):(a&&(p.tag=a),p)}function Sy(i,n,r,l,a){var E;const u=l.tag,p=u?n.directives.tagName(u.source,O=>a(u,"TAG_RESOLVE_FAILED",O)):null;if(r.type==="block-seq"){const{anchor:O,newlineAfterProp:P}=l,j=O&&u?O.offset>u.offset?O:u:O??u;j&&(!P||P.offset<j.offset)&&a(j,"MISSING_CHAR","Missing newline after block sequence props")}const h=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!u||!p||p==="!"||p===qt.tagName&&h==="map"||p===Or.tagName&&h==="seq")return pu(i,n,r,a,p);let y=n.schema.tags.find(O=>O.tag===p&&O.collection===h);if(!y){const O=n.schema.knownTags[p];if((O==null?void 0:O.collection)===h)n.schema.tags.push(Object.assign({},O,{default:!1})),y=O;else return O?a(u,"BAD_COLLECTION_TYPE",`${O.tag} used for ${h} collection, but expects ${O.collection??"scalar"}`,!0):a(u,"TAG_RESOLVE_FAILED",`Unresolved tag: ${p}`,!0),pu(i,n,r,a,p)}const g=pu(i,n,r,a,p,y),N=((E=y.resolve)==null?void 0:E.call(y,g,O=>a(u,"TAG_RESOLVE_FAILED",O),n.options))??g,S=qe(N)?N:new we(N);return S.range=g.range,S.tag=p,y!=null&&y.format&&(S.format=y.format),S}function jy(i,n,r){const l=n.offset,a=xy(n,i.options.strict,r);if(!a)return{value:"",type:null,comment:"",range:[l,l,l]};const u=a.mode===">"?we.BLOCK_FOLDED:we.BLOCK_LITERAL,p=n.source?Ny(n.source):[];let h=p.length;for(let j=p.length-1;j>=0;--j){const I=p[j][1];if(I===""||I==="\r")h=j;else break}if(h===0){const j=a.chomp==="+"&&p.length>0?`
234
+ `.repeat(Math.max(1,p.length-1)):"";let I=l+a.length;return n.source&&(I+=n.source.length),{value:j,type:u,comment:a.comment,range:[l,I,I]}}let y=n.indent+a.indent,g=n.offset+a.length,N=0;for(let j=0;j<h;++j){const[I,R]=p[j];if(R===""||R==="\r")a.indent===0&&I.length>y&&(y=I.length);else{I.length<y&&r(g+I.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),a.indent===0&&(y=I.length),N=j,y===0&&!i.atRoot&&r(g,"BAD_INDENT","Block scalar values in collections must be indented");break}g+=I.length+R.length+1}for(let j=p.length-1;j>=h;--j)p[j][0].length>y&&(h=j+1);let S="",E="",O=!1;for(let j=0;j<N;++j)S+=p[j][0].slice(y)+`
235
+ `;for(let j=N;j<h;++j){let[I,R]=p[j];g+=I.length+R.length+1;const W=R[R.length-1]==="\r";if(W&&(R=R.slice(0,-1)),R&&I.length<y){const H=`Block scalar lines must not be less indented than their ${a.indent?"explicit indentation indicator":"first line"}`;r(g-R.length-(W?2:1),"BAD_INDENT",H),I=""}u===we.BLOCK_LITERAL?(S+=E+I.slice(y)+R,E=`
236
+ `):I.length>y||R[0]===" "?(E===" "?E=`
237
+ `:!O&&E===`
238
+ `&&(E=`
239
+
240
+ `),S+=E+I.slice(y)+R,E=`
241
+ `,O=!0):R===""?E===`
242
+ `?S+=`
243
+ `:E=`
244
+ `:(S+=E+R,E=" ",O=!1)}switch(a.chomp){case"-":break;case"+":for(let j=h;j<p.length;++j)S+=`
245
+ `+p[j][0].slice(y);S[S.length-1]!==`
246
+ `&&(S+=`
247
+ `);break;default:S+=`
248
+ `}const P=l+a.length+n.source.length;return{value:S,type:u,comment:a.comment,range:[l,P,P]}}function xy({offset:i,props:n},r,l){if(n[0].type!=="block-scalar-header")return l(n[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:a}=n[0],u=a[0];let p=0,h="",y=-1;for(let E=1;E<a.length;++E){const O=a[E];if(!h&&(O==="-"||O==="+"))h=O;else{const P=Number(O);!p&&P?p=P:y===-1&&(y=i+E)}}y!==-1&&l(y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${a}`);let g=!1,N="",S=a.length;for(let E=1;E<n.length;++E){const O=n[E];switch(O.type){case"space":g=!0;case"newline":S+=O.source.length;break;case"comment":r&&!g&&l(O,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),S+=O.source.length,N=O.source.substring(1);break;case"error":l(O,"UNEXPECTED_TOKEN",O.message),S+=O.source.length;break;default:{const P=`Unexpected token in block scalar header: ${O.type}`;l(O,"UNEXPECTED_TOKEN",P);const j=O.source;j&&typeof j=="string"&&(S+=j.length)}}}return{mode:u,indent:p,chomp:h,comment:N,length:S}}function Ny(i){const n=i.split(/\n( *)/),r=n[0],l=r.match(/^( *)/),u=[l!=null&&l[1]?[l[1],r.slice(l[1].length)]:["",r]];for(let p=1;p<n.length;p+=2)u.push([n[p],n[p+1]]);return u}function Cy(i,n,r){const{offset:l,type:a,source:u,end:p}=i;let h,y;const g=(E,O,P)=>r(l+E,O,P);switch(a){case"scalar":h=we.PLAIN,y=Ey(u,g);break;case"single-quoted-scalar":h=we.QUOTE_SINGLE,y=Oy(u,g);break;case"double-quoted-scalar":h=we.QUOTE_DOUBLE,y=Ty(u,g);break;default:return r(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[l,l+u.length,l+u.length]}}const N=l+u.length,S=Ii(p,N,n,r);return{value:y,type:h,comment:S.comment,range:[l,N,S.offset]}}function Ey(i,n){let r="";switch(i[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${i[0]}`;break}case"@":case"`":{r=`reserved character ${i[0]}`;break}}return r&&n(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Op(i)}function Oy(i,n){return(i[i.length-1]!=="'"||i.length===1)&&n(i.length,"MISSING_CHAR","Missing closing 'quote"),Op(i.slice(1,-1)).replace(/''/g,"'")}function Op(i){let n,r;try{n=new RegExp(`(.*?)(?<![ ])[ ]*\r?
249
+ `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
250
+ `,"sy")}catch{n=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let l=n.exec(i);if(!l)return i;let a=l[1],u=" ",p=n.lastIndex;for(r.lastIndex=p;l=r.exec(i);)l[1]===""?u===`
251
+ `?a+=u:u=`
252
+ `:(a+=u+l[1],u=" "),p=r.lastIndex;const h=/[ \t]*(.*)/sy;return h.lastIndex=p,l=h.exec(i),a+u+((l==null?void 0:l[1])??"")}function Ty(i,n){let r="";for(let l=1;l<i.length-1;++l){const a=i[l];if(!(a==="\r"&&i[l+1]===`
253
+ `))if(a===`
254
+ `){const{fold:u,offset:p}=_y(i,l);r+=u,l=p}else if(a==="\\"){let u=i[++l];const p=Iy[u];if(p)r+=p;else if(u===`
255
+ `)for(u=i[l+1];u===" "||u===" ";)u=i[++l+1];else if(u==="\r"&&i[l+1]===`
256
+ `)for(u=i[++l+1];u===" "||u===" ";)u=i[++l+1];else if(u==="x"||u==="u"||u==="U"){const h={x:2,u:4,U:8}[u];r+=Ly(i,l+1,h,n),l+=h}else{const h=i.substr(l-1,2);n(l-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${h}`),r+=h}}else if(a===" "||a===" "){const u=l;let p=i[l+1];for(;p===" "||p===" ";)p=i[++l+1];p!==`
257
+ `&&!(p==="\r"&&i[l+2]===`
258
+ `)&&(r+=l>u?i.slice(u,l+1):a)}else r+=a}return(i[i.length-1]!=='"'||i.length===1)&&n(i.length,"MISSING_CHAR",'Missing closing "quote'),r}function _y(i,n){let r="",l=i[n+1];for(;(l===" "||l===" "||l===`
259
+ `||l==="\r")&&!(l==="\r"&&i[n+2]!==`
260
+ `);)l===`
261
+ `&&(r+=`
262
+ `),n+=1,l=i[n+1];return r||(r=" "),{fold:r,offset:n}}const Iy={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
263
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Ly(i,n,r,l){const a=i.substr(n,r),p=a.length===r&&/^[0-9a-fA-F]+$/.test(a)?parseInt(a,16):NaN;if(isNaN(p)){const h=i.substr(n-2,r+2);return l(n-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${h}`),h}return String.fromCodePoint(p)}function Tp(i,n,r,l){const{value:a,type:u,comment:p,range:h}=n.type==="block-scalar"?jy(i,n,l):Cy(n,i.options.strict,l),y=r?i.directives.tagName(r.source,S=>l(r,"TAG_RESOLVE_FAILED",S)):null;let g;i.options.stringKeys&&i.atKey?g=i.schema[dn]:y?g=Ay(i.schema,a,y,r,l):n.type==="scalar"?g=by(i,a,n,l):g=i.schema[dn];let N;try{const S=g.resolve(a,E=>l(r??n,"TAG_RESOLVE_FAILED",E),i.options);N=Pe(S)?S:new we(S)}catch(S){const E=S instanceof Error?S.message:String(S);l(r??n,"TAG_RESOLVE_FAILED",E),N=new we(a)}return N.range=h,N.source=a,u&&(N.type=u),y&&(N.tag=y),g.format&&(N.format=g.format),p&&(N.comment=p),N}function Ay(i,n,r,l,a){var h;if(r==="!")return i[dn];const u=[];for(const y of i.tags)if(!y.collection&&y.tag===r)if(y.default&&y.test)u.push(y);else return y;for(const y of u)if((h=y.test)!=null&&h.test(n))return y;const p=i.knownTags[r];return p&&!p.collection?(i.tags.push(Object.assign({},p,{default:!1,test:void 0})),p):(a(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),i[dn])}function by({atKey:i,directives:n,schema:r},l,a,u){const p=r.tags.find(h=>{var y;return(h.default===!0||i&&h.default==="key")&&((y=h.test)==null?void 0:y.test(l))})||r[dn];if(r.compat){const h=r.compat.find(y=>{var g;return y.default&&((g=y.test)==null?void 0:g.test(l))})??r[dn];if(p.tag!==h.tag){const y=n.tagString(p.tag),g=n.tagString(h.tag),N=`Value may be parsed as either ${y} or ${g}`;u(a,"TAG_RESOLVE_FAILED",N,!0)}}return p}function Py(i,n,r){if(n){r??(r=n.length);for(let l=r-1;l>=0;--l){let a=n[l];switch(a.type){case"space":case"comment":case"newline":i-=a.source.length;continue}for(a=n[++l];(a==null?void 0:a.type)==="space";)i+=a.source.length,a=n[++l];break}}return i}const My={composeNode:_p,composeEmptyNode:Wu};function _p(i,n,r,l){const a=i.atKey,{spaceBefore:u,comment:p,anchor:h,tag:y}=r;let g,N=!0;switch(n.type){case"alias":g=Ry(i,n,l),(h||y)&&l(n,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":g=Tp(i,n,y,l),h&&(g.anchor=h.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{g=Sy(My,i,n,r,l),h&&(g.anchor=h.source.substring(1))}catch(S){const E=S instanceof Error?S.message:String(S);l(n,"RESOURCE_EXHAUSTION",E)}break;default:{const S=n.type==="error"?n.message:`Unsupported token (type: ${n.type})`;l(n,"UNEXPECTED_TOKEN",S),N=!1}}return g??(g=Wu(i,n.offset,void 0,null,r,l)),h&&g.anchor===""&&l(h,"BAD_ALIAS","Anchor cannot be an empty string"),a&&i.options.stringKeys&&(!Pe(g)||typeof g.value!="string"||g.tag&&g.tag!=="tag:yaml.org,2002:str")&&l(y??n,"NON_STRING_KEY","With stringKeys, all keys must be strings"),u&&(g.spaceBefore=!0),p&&(n.type==="scalar"&&n.source===""?g.comment=p:g.commentBefore=p),i.options.keepSourceTokens&&N&&(g.srcToken=n),g}function Wu(i,n,r,l,{spaceBefore:a,comment:u,anchor:p,tag:h,end:y},g){const N={type:"scalar",offset:Py(n,r,l),indent:-1,source:""},S=Tp(i,N,h,g);return p&&(S.anchor=p.source.substring(1),S.anchor===""&&g(p,"BAD_ALIAS","Anchor cannot be an empty string")),a&&(S.spaceBefore=!0),u&&(S.comment=u,S.range[2]=y),S}function Ry({options:i},{offset:n,source:r,end:l},a){const u=new Mu(r.substring(1));u.source===""&&a(n,"BAD_ALIAS","Alias cannot be an empty string"),u.source.endsWith(":")&&a(n+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const p=n+r.length,h=Ii(l,p,i.strict,a);return u.range=[n,p,h.offset],h.comment&&(u.comment=h.comment),u}function $y(i,n,{offset:r,start:l,value:a,end:u},p){const h=Object.assign({_directives:n},i),y=new jo(void 0,h),g={atKey:!1,atRoot:!0,directives:y.directives,options:y.options,schema:y.schema},N=vs(l,{indicator:"doc-start",next:a??(u==null?void 0:u[0]),offset:r,onError:p,parentIndent:0,startOnNewline:!0});N.found&&(y.directives.docStart=!0,a&&(a.type==="block-map"||a.type==="block-seq")&&!N.hasNewline&&p(N.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),y.contents=a?_p(g,a,N,p):Wu(g,N.end,l,null,N,p);const S=y.contents.range[2],E=Ii(u,S,!1,p);return E.comment&&(y.comment=E.comment),y.range=[r,S,E.offset],y}function ci(i){if(typeof i=="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];const{offset:n,source:r}=i;return[n,n+(typeof r=="string"?r.length:1)]}function Rd(i){var a;let n="",r=!1,l=!1;for(let u=0;u<i.length;++u){const p=i[u];switch(p[0]){case"#":n+=(n===""?"":l?`
264
+
265
+ `:`
266
+ `)+(p.substring(1)||" "),r=!0,l=!1;break;case"%":((a=i[u+1])==null?void 0:a[0])!=="#"&&(u+=1),r=!1;break;default:r||(l=!0),r=!1}}return{comment:n,afterEmptyLine:l}}class Dy{constructor(n={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,l,a,u)=>{const p=ci(r);u?this.warnings.push(new gy(p,l,a)):this.errors.push(new di(p,l,a))},this.directives=new wt({version:n.version||"1.2"}),this.options=n}decorate(n,r){const{comment:l,afterEmptyLine:a}=Rd(this.prelude);if(l){const u=n.contents;if(r)n.comment=n.comment?`${n.comment}
267
+ ${l}`:l;else if(a||n.directives.docStart||!u)n.commentBefore=l;else if(Ke(u)&&!u.flow&&u.items.length>0){let p=u.items[0];He(p)&&(p=p.key);const h=p.commentBefore;p.commentBefore=h?`${l}
268
+ ${h}`:l}else{const p=u.commentBefore;u.commentBefore=p?`${l}
269
+ ${p}`:l}}r?(Array.prototype.push.apply(n.errors,this.errors),Array.prototype.push.apply(n.warnings,this.warnings)):(n.errors=this.errors,n.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Rd(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(n,r=!1,l=-1){for(const a of n)yield*this.next(a);yield*this.end(r,l)}*next(n){switch(n.type){case"directive":this.directives.add(n.source,(r,l,a)=>{const u=ci(n);u[0]+=r,this.onError(u,"BAD_DIRECTIVE",l,a)}),this.prelude.push(n.source),this.atDirectives=!0;break;case"document":{const r=$y(this.options,this.directives,n,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(n,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(n.source);break;case"error":{const r=n.source?`${n.message}: ${JSON.stringify(n.source)}`:n.message,l=new di(ci(n),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(l):this.doc.errors.push(l);break}case"doc-end":{if(!this.doc){const l="Unexpected doc-end without preceding document";this.errors.push(new di(ci(n),"UNEXPECTED_TOKEN",l));break}this.doc.directives.docEnd=!0;const r=Ii(n.end,n.offset+n.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const l=this.doc.comment;this.doc.comment=l?`${l}
270
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new di(ci(n),"UNEXPECTED_TOKEN",`Unsupported token ${n.type}`))}}*end(n=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(n){const l=Object.assign({_directives:this.directives},this.options),a=new jo(void 0,l);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),a.range=[0,r,r],this.decorate(a,!1),yield a}}}const Ip="\uFEFF",Lp="",Ap="",Ou="";function zy(i){switch(i){case Ip:return"byte-order-mark";case Lp:return"doc-mode";case Ap:return"flow-error-end";case Ou:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
271
+ `:case`\r
272
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(i[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function nn(i){switch(i){case void 0:case" ":case`
273
+ `:case"\r":case" ":return!0;default:return!1}}const $d=new Set("0123456789ABCDEFabcdef"),By=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Jl=new Set(",[]{}"),Uy=new Set(` ,[]{}
274
+ \r `),hu=i=>!i||Uy.has(i);class Fy{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(n,r=!1){if(n){if(typeof n!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+n:n,this.lineEndPos=null}this.atEnd=!r;let l=this.next??"stream";for(;l&&(r||this.hasChars(1));)l=yield*this.parseNext(l)}atLineEnd(){let n=this.pos,r=this.buffer[n];for(;r===" "||r===" ";)r=this.buffer[++n];return!r||r==="#"||r===`
275
+ `?!0:r==="\r"?this.buffer[n+1]===`
276
+ `:!1}charAt(n){return this.buffer[this.pos+n]}continueScalar(n){let r=this.buffer[n];if(this.indentNext>0){let l=0;for(;r===" ";)r=this.buffer[++l+n];if(r==="\r"){const a=this.buffer[l+n+1];if(a===`
277
+ `||!a&&!this.atEnd)return n+l+1}return r===`
278
+ `||l>=this.indentNext||!r&&!this.atEnd?n+l:-1}if(r==="-"||r==="."){const l=this.buffer.substr(n,3);if((l==="---"||l==="...")&&nn(this.buffer[n+3]))return-1}return n}getLine(){let n=this.lineEndPos;return(typeof n!="number"||n!==-1&&n<this.pos)&&(n=this.buffer.indexOf(`
279
+ `,this.pos),this.lineEndPos=n),n===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[n-1]==="\r"&&(n-=1),this.buffer.substring(this.pos,n))}hasChars(n){return this.pos+n<=this.buffer.length}setNext(n){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=n,null}peek(n){return this.buffer.substr(this.pos,n)}*parseNext(n){switch(n){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let n=this.getLine();if(n===null)return this.setNext("stream");if(n[0]===Ip&&(yield*this.pushCount(1),n=n.substring(1)),n[0]==="%"){let r=n.length,l=n.indexOf("#");for(;l!==-1;){const u=n[l-1];if(u===" "||u===" "){r=l-1;break}else l=n.indexOf("#",l+1)}for(;;){const u=n[r-1];if(u===" "||u===" ")r-=1;else break}const a=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(n.length-a),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(n.length-r),yield*this.pushNewline(),"stream"}return yield Lp,yield*this.parseLineStart()}*parseLineStart(){const n=this.charAt(0);if(!n&&!this.atEnd)return this.setNext("line-start");if(n==="-"||n==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&nn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!nn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[n,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((n==="-"||n==="?"||n===":")&&nn(r)){const l=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=l,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const n=this.getLine();if(n===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(n[r]){case"#":yield*this.pushCount(n.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(hu),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(n.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let n,r,l=-1;do n=yield*this.pushNewline(),n>0?(r=yield*this.pushSpaces(!1),this.indentValue=l=r):r=0,r+=yield*this.pushSpaces(!0);while(n+r>0);const a=this.getLine();if(a===null)return this.setNext("flow");if((l!==-1&&l<this.indentNext&&a[0]!=="#"||l===0&&(a.startsWith("---")||a.startsWith("..."))&&nn(a[3]))&&!(l===this.indentNext-1&&this.flowLevel===1&&(a[0]==="]"||a[0]==="}")))return this.flowLevel=0,yield Ap,yield*this.parseLineStart();let u=0;for(;a[u]===",";)u+=yield*this.pushCount(1),u+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(u+=yield*this.pushIndicators(),a[u]){case void 0:return"flow";case"#":return yield*this.pushCount(a.length-u),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(hu),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const p=this.charAt(1);if(this.flowKey||nn(p)||p===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const n=this.charAt(0);let r=this.buffer.indexOf(n,this.pos+1);if(n==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let u=0;for(;this.buffer[r-1-u]==="\\";)u+=1;if(u%2===0)break;r=this.buffer.indexOf('"',r+1)}const l=this.buffer.substring(0,r);let a=l.indexOf(`
280
+ `,this.pos);if(a!==-1){for(;a!==-1;){const u=this.continueScalar(a+1);if(u===-1)break;a=l.indexOf(`
281
+ `,u)}a!==-1&&(r=a-(l[a-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let n=this.pos;for(;;){const r=this.buffer[++n];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>nn(r)||r==="#")}*parseBlockScalar(){let n=this.pos-1,r=0,l;e:for(let u=this.pos;l=this.buffer[u];++u)switch(l){case" ":r+=1;break;case`
282
+ `:n=u,r=0;break;case"\r":{const p=this.buffer[u+1];if(!p&&!this.atEnd)return this.setNext("block-scalar");if(p===`
283
+ `)break}default:break e}if(!l&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const u=this.continueScalar(n+1);if(u===-1)break;n=this.buffer.indexOf(`
284
+ `,u)}while(n!==-1);if(n===-1){if(!this.atEnd)return this.setNext("block-scalar");n=this.buffer.length}}let a=n+1;for(l=this.buffer[a];l===" ";)l=this.buffer[++a];if(l===" "){for(;l===" "||l===" "||l==="\r"||l===`
285
+ `;)l=this.buffer[++a];n=a-1}else if(!this.blockScalarKeep)do{let u=n-1,p=this.buffer[u];p==="\r"&&(p=this.buffer[--u]);const h=u;for(;p===" ";)p=this.buffer[--u];if(p===`
286
+ `&&u>=this.pos&&u+1+r>h)n=u;else break}while(!0);return yield Ou,yield*this.pushToIndex(n+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const n=this.flowLevel>0;let r=this.pos-1,l=this.pos-1,a;for(;a=this.buffer[++l];)if(a===":"){const u=this.buffer[l+1];if(nn(u)||n&&Jl.has(u))break;r=l}else if(nn(a)){let u=this.buffer[l+1];if(a==="\r"&&(u===`
287
+ `?(l+=1,a=`
288
+ `,u=this.buffer[l+1]):r=l),u==="#"||n&&Jl.has(u))break;if(a===`
289
+ `){const p=this.continueScalar(l+1);if(p===-1)break;l=Math.max(l,p-2)}}else{if(n&&Jl.has(a))break;r=l}return!a&&!this.atEnd?this.setNext("plain-scalar"):(yield Ou,yield*this.pushToIndex(r+1,!0),n?"flow":"doc")}*pushCount(n){return n>0?(yield this.buffer.substr(this.pos,n),this.pos+=n,n):0}*pushToIndex(n,r){const l=this.buffer.slice(this.pos,n);return l?(yield l,this.pos+=l.length,l.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(hu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const n=this.flowLevel>0,r=this.charAt(1);if(nn(r)||n&&Jl.has(r))return n?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let n=this.pos+2,r=this.buffer[n];for(;!nn(r)&&r!==">";)r=this.buffer[++n];return yield*this.pushToIndex(r===">"?n+1:n,!1)}else{let n=this.pos+1,r=this.buffer[n];for(;r;)if(By.has(r))r=this.buffer[++n];else if(r==="%"&&$d.has(this.buffer[n+1])&&$d.has(this.buffer[n+2]))r=this.buffer[n+=3];else break;return yield*this.pushToIndex(n,!1)}}*pushNewline(){const n=this.buffer[this.pos];return n===`
290
+ `?yield*this.pushCount(1):n==="\r"&&this.charAt(1)===`
291
+ `?yield*this.pushCount(2):0}*pushSpaces(n){let r=this.pos-1,l;do l=this.buffer[++r];while(l===" "||n&&l===" ");const a=r-this.pos;return a>0&&(yield this.buffer.substr(this.pos,a),this.pos=r),a}*pushUntil(n){let r=this.pos,l=this.buffer[r];for(;!n(l);)l=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class Vy{constructor(){this.lineStarts=[],this.addNewLine=n=>this.lineStarts.push(n),this.linePos=n=>{let r=0,l=this.lineStarts.length;for(;r<l;){const u=r+l>>1;this.lineStarts[u]<n?r=u+1:l=u}if(this.lineStarts[r]===n)return{line:r+1,col:1};if(r===0)return{line:0,col:n};const a=this.lineStarts[r-1];return{line:r,col:n-a+1}}}}function er(i,n){for(let r=0;r<i.length;++r)if(i[r].type===n)return!0;return!1}function Dd(i){for(let n=0;n<i.length;++n)switch(i[n].type){case"space":case"comment":case"newline":break;default:return n}return-1}function bp(i){switch(i==null?void 0:i.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Yl(i){switch(i.type){case"document":return i.start;case"block-map":{const n=i.items[i.items.length-1];return n.sep??n.start}case"block-seq":return i.items[i.items.length-1].start;default:return[]}}function cs(i){var r;if(i.length===0)return[];let n=i.length;e:for(;--n>=0;)switch(i[n].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=i[++n])==null?void 0:r.type)==="space";);return i.splice(n,i.length)}function zd(i){if(i.start.type==="flow-seq-start")for(const n of i.items)n.sep&&!n.value&&!er(n.start,"explicit-key-ind")&&!er(n.sep,"map-value-ind")&&(n.key&&(n.value=n.key),delete n.key,bp(n.value)?n.value.end?Array.prototype.push.apply(n.value.end,n.sep):n.value.end=n.sep:Array.prototype.push.apply(n.start,n.sep),delete n.sep)}class Ky{constructor(n){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Fy,this.onNewLine=n}*parse(n,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const l of this.lexer.lex(n,r))yield*this.next(l);r||(yield*this.end())}*next(n){if(this.source=n,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=n.length;return}const r=zy(n);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+n.length);break;case"space":this.atNewLine&&n[0]===" "&&(this.indent+=n.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=n.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=n.length}else{const l=`Not a YAML token: ${n}`;yield*this.pop({type:"error",offset:this.offset,message:l,source:n}),this.offset+=n.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const n=this.peek(1);if(this.type==="doc-end"&&(n==null?void 0:n.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!n)return yield*this.stream();switch(n.type){case"document":return yield*this.document(n);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(n);case"block-scalar":return yield*this.blockScalar(n);case"block-map":return yield*this.blockMap(n);case"block-seq":return yield*this.blockSequence(n);case"flow-collection":return yield*this.flowCollection(n);case"doc-end":return yield*this.documentEnd(n)}yield*this.pop()}peek(n){return this.stack[this.stack.length-n]}*pop(n){const r=n??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const l=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in l?l.indent:0:r.type==="flow-collection"&&l.type==="document"&&(r.indent=0),r.type==="flow-collection"&&zd(r),l.type){case"document":l.value=r;break;case"block-scalar":l.props.push(r);break;case"block-map":{const a=l.items[l.items.length-1];if(a.value){l.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(a.sep)a.value=r;else{Object.assign(a,{key:r,sep:[]}),this.onKeyLine=!a.explicitKey;return}break}case"block-seq":{const a=l.items[l.items.length-1];a.value?l.items.push({start:[],value:r}):a.value=r;break}case"flow-collection":{const a=l.items[l.items.length-1];!a||a.value?l.items.push({start:[],key:r,sep:[]}):a.sep?a.value=r:Object.assign(a,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((l.type==="document"||l.type==="block-map"||l.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const a=r.items[r.items.length-1];a&&!a.sep&&!a.value&&a.start.length>0&&Dd(a.start)===-1&&(r.indent===0||a.start.every(u=>u.type!=="comment"||u.indent<r.indent))&&(l.type==="document"?l.end=a.start:l.items.push({start:a.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const n={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&n.start.push(this.sourceToken),this.stack.push(n);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(n){if(n.value)return yield*this.lineEnd(n);switch(this.type){case"doc-start":{Dd(n.start)!==-1?(yield*this.pop(),yield*this.step()):n.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":n.start.push(this.sourceToken);return}const r=this.startBlockValue(n);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(n){if(this.type==="map-value-ind"){const r=Yl(this.peek(2)),l=cs(r);let a;n.end?(a=n.end,a.push(this.sourceToken),delete n.end):a=[this.sourceToken];const u={type:"block-map",offset:n.offset,indent:n.indent,items:[{start:l,key:n,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(n)}*blockScalar(n){switch(this.type){case"space":case"comment":case"newline":n.props.push(this.sourceToken);return;case"scalar":if(n.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
292
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
293
+ `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(n){var l;const r=n.items[n.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const a="end"in r.value?r.value.end:void 0,u=Array.isArray(a)?a[a.length-1]:void 0;(u==null?void 0:u.type)==="comment"?a==null||a.push(this.sourceToken):n.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)n.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,n.indent)){const a=n.items[n.items.length-2],u=(l=a==null?void 0:a.value)==null?void 0:l.end;if(Array.isArray(u)){Array.prototype.push.apply(u,r.start),u.push(this.sourceToken),n.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=n.indent){const a=!this.onKeyLine&&this.indent===n.indent,u=a&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let p=[];if(u&&r.sep&&!r.value){const h=[];for(let y=0;y<r.sep.length;++y){const g=r.sep[y];switch(g.type){case"newline":h.push(y);break;case"space":break;case"comment":g.indent>n.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(p=r.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":u||r.value?(p.push(this.sourceToken),n.items.push({start:p}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):u||r.value?(p.push(this.sourceToken),n.items.push({start:p,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)n.items.push({start:[],key:null,sep:[this.sourceToken]});else if(er(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:p,key:null,sep:[this.sourceToken]}]});else if(bp(r.key)&&!er(r.sep,"newline")){const h=cs(r.start),y=r.key,g=r.sep;g.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:y,sep:g}]})}else p.length>0?r.sep=r.sep.concat(p,this.sourceToken):r.sep.push(this.sourceToken);else if(er(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const h=cs(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||u?n.items.push({start:p,key:null,sep:[this.sourceToken]}):er(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const h=this.flowScalar(this.type);u||r.value?(n.items.push({start:p,key:h,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(h):(Object.assign(r,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{const h=this.startBlockValue(n);if(h){if(h.type==="block-seq"){if(!r.explicitKey&&r.sep&&!er(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else a&&n.items.push({start:p});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(n){var l;const r=n.items[n.items.length-1];switch(this.type){case"newline":if(r.value){const a="end"in r.value?r.value.end:void 0,u=Array.isArray(a)?a[a.length-1]:void 0;(u==null?void 0:u.type)==="comment"?a==null||a.push(this.sourceToken):n.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)n.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,n.indent)){const a=n.items[n.items.length-2],u=(l=a==null?void 0:a.value)==null?void 0:l.end;if(Array.isArray(u)){Array.prototype.push.apply(u,r.start),u.push(this.sourceToken),n.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=n.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==n.indent)break;r.value||er(r.start,"seq-item-ind")?n.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>n.indent){const a=this.startBlockValue(n);if(a){this.stack.push(a);return}}yield*this.pop(),yield*this.step()}*flowCollection(n){const r=n.items[n.items.length-1];if(this.type==="flow-error-end"){let l;do yield*this.pop(),l=this.peek(1);while((l==null?void 0:l.type)==="flow-collection")}else if(n.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?n.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?n.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?n.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);!r||r.value?n.items.push({start:[],key:a,sep:[]}):r.sep?this.stack.push(a):Object.assign(r,{key:a,sep:[]});return}case"flow-map-end":case"flow-seq-end":n.end.push(this.sourceToken);return}const l=this.startBlockValue(n);l?this.stack.push(l):(yield*this.pop(),yield*this.step())}else{const l=this.peek(2);if(l.type==="block-map"&&(this.type==="map-value-ind"&&l.indent===n.indent||this.type==="newline"&&!l.items[l.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&l.type!=="flow-collection"){const a=Yl(l),u=cs(a);zd(n);const p=n.end.splice(1,n.end.length);p.push(this.sourceToken);const h={type:"block-map",offset:n.offset,indent:n.indent,items:[{start:u,key:n,sep:p}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=h}else yield*this.lineEnd(n)}}flowScalar(n){if(this.onNewLine){let r=this.source.indexOf(`
294
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
295
+ `,r)+1}return{type:n,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(n){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=Yl(n),l=cs(r);return l.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=Yl(n),l=cs(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(n,r){return this.type!=="comment"||this.indent<=r?!1:n.every(l=>l.type==="newline"||l.type==="space")}*documentEnd(n){this.type!=="doc-mode"&&(n.end?n.end.push(this.sourceToken):n.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(n){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:n.end?n.end.push(this.sourceToken):n.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function qy(i){const n=i.prettyErrors!==!1;return{lineCounter:i.lineCounter||n&&new Vy||null,prettyErrors:n}}function Hy(i,n={}){const{lineCounter:r,prettyErrors:l}=qy(n),a=new Ky(r==null?void 0:r.addNewLine),u=new Dy(n);let p=null;for(const h of u.compose(a.parse(i),!0,i.length))if(!p)p=h;else if(p.options.logLevel!=="silent"){p.errors.push(new di(h.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return l&&r&&(p.errors.forEach(Pd(i,r)),p.warnings.forEach(Pd(i,r))),p}function Wy(i,n,r){let l;const a=Hy(i,r);if(!a)return null;if(a.warnings.forEach(u=>lp(a.options.logLevel,u)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:l},r))}const Qy=new Set(["get","post","put","delete","patch","options","head"]);function Pp(i){const n=Gy(i);if(!n)throw new Error("请输入 API CLI 配置文本");let r;try{r=JSON.parse(n)}catch{r=Wy(n)}const l=r&&typeof r=="object"?r:{};return Ju(l.api??l.config??l.operation??r)}function Jy(){return Qu({method:"post",path:"/api/v1/example/{id}",summary:"创建示例",operationId:"createExample",tags:["示例","后台管理"],description:"接口用途、业务约束、鉴权说明等。",parameters:[{name:"id",location:"path",required:!0,type:"string",description:"示例 ID"}],requestBody:{required:!0,contentType:"application/json",fields:[{name:"name",type:"string",required:!0,description:"名称"},{name:"profile",type:"object",description:"扩展信息",children:[{name:"email",type:"string",description:"邮箱"}]}]},responses:[{status:"200",description:"OK",contentType:"application/json",fields:[{name:"data",type:"object",description:"响应数据",children:[{name:"id",type:"string",description:"记录 ID"}]}]}]})}function Qu(i){return JSON.stringify({api:Ju(i)})}function Ju(i){if(!i||typeof i!="object")throw new Error("接口配置不能为空");const n=i,r=rt(n.method).toLowerCase();if(!Qy.has(r))throw new Error("请选择有效的请求方法");const l=Zy(rt(n.path)),a=rt(n.summary);if(!l)throw new Error("接口路径不能为空");if(!a)throw new Error("接口名称不能为空");const u=vi(n.parameters).map(ao).filter(g=>g.name),p=n.requestBody&&typeof n.requestBody=="object"?n.requestBody:{},h=vi(p.fields).map(ao).filter(g=>g.name),y=vi(n.responses).map(Yy).filter(g=>g.status);return y.length||y.push({status:"200",description:"Success",contentType:"application/json",fields:[]}),{method:r,path:l,summary:a,description:rt(n.description),operationId:rt(n.operationId),tags:Xy(n.tags),parameters:u,requestBody:{required:!!p.required,contentType:rt(p.contentType)||"application/json",fields:h},responses:y}}function Yy(i){const n=i&&typeof i=="object"?i:{};return{status:rt(n.status)||"200",description:rt(n.description)||"Success",contentType:rt(n.contentType)||"application/json",fields:vi(n.fields).map(ao).filter(r=>r.name)}}function ao(i){const n=i&&typeof i=="object"?i:{},r=rt(n.location);return{name:rt(n.name),location:["query","path","header","cookie","body"].includes(r)?r:"query",required:!!n.required,type:rt(n.type)||"string",format:rt(n.format),description:rt(n.description),defaultValue:rt(n.defaultValue),enumValue:rt(n.enumValue),children:vi(n.children).map(ao).filter(l=>l.name)}}function Gy(i){return i.trim().replace(/^```(?:json|ya?ml|yaml)?\s*/i,"").replace(/```$/i,"").trim()}function Xy(i){return Array.isArray(i)?i.map(rt).filter(Boolean):rt(i).split(",").map(n=>n.trim()).filter(Boolean)}function Zy(i){return i?i.startsWith("/")?i:`/${i}`:""}function rt(i){return typeof i=="string"?i.trim():""}function vi(i){return Array.isArray(i)?i:[]}const eg="/api/openapi/import",tg="/api/openapi/document",ng="/api/openapi/auth-check",rg="/api/openapi/cache",sg="/api/openapi/versions",ig="/api/openapi/version-select",lg="/api/openapi/version-meta",og="/api/openapi/version-delete",ag="/api/openapi/version-export",ug="/api/mock/start",cg="/api/mock/status",fg="/api/openapi/custom-operation",dg="/api/openapi/custom-operation/delete",pg="/api/openapi/operation-links",hg="apiskill.swagger.syncedAt.v1",mg="apiskill.swagger.sourceUrl.v1",yg=["get","post","put","delete","patch","options","head"],gg=12;function vg(i){const n=i.paths??{};return Object.entries(n).flatMap(([r,l])=>yg.flatMap(a=>{var N;const u=l==null?void 0:l[a];if(!u)return[];const p=(N=u.tags)!=null&&N.length?u.tags:["未分组"],h=u.summary||u.description||"未命名接口",y=u.parameters??[],g=[a,r,h,u.description,u.operationId,p.join(" "),y.map(S=>`${S.name} ${S.description??""}`).join(" ")].filter(Boolean).join(" ").toLowerCase();return[{id:`${a.toUpperCase()} ${r}`,path:r,method:a,operation:u,tags:p,summary:h,hasBody:Ag(u),searchable:g}]})).sort((r,l)=>r.path.localeCompare(l.path)||r.method.localeCompare(l.method))}function wg(i){const n=new Map;return i.forEach(r=>{r.tags.forEach(l=>n.set(l,(n.get(l)??0)+1))}),[...n.entries()].map(([r,l])=>({name:r,count:l})).sort((r,l)=>l.count-r.count||r.name.localeCompare(l.name))}function wi(i){return i?decodeURIComponent(i.split("/").pop()??i):""}function Pt(i,n,r=new Set){var l;if(n){if(n.$ref){if(r.has(n.$ref))return{type:"object",description:`循环引用: ${wi(n.$ref)}`};r.add(n.$ref);const a=n.$ref.startsWith("#/")?n.$ref.slice(2).split("/").reduce((u,p)=>{if(u&&typeof u=="object")return u[decodeURIComponent(p)]},i):void 0;return Pt(i,a,r)}return(l=n.allOf)!=null&&l.length?kg(i,n.allOf,n):n}}function kg(i,n,r){return n.reduce((l,a)=>{const u=Pt(i,a)??{};return{...l,...u,description:[l.description,u.description].filter(Boolean).join(";")||l.description,required:[...new Set([...l.required??[],...u.required??[]])],properties:{...l.properties??{},...u.properties??{}}}},{...r,allOf:void 0})}function hs(i,n){var l,a,u;if(!n)return"-";if(n.$ref)return wi(n.$ref);const r=Pt(i,n)??n;if((l=r.enum)!=null&&l.length){const p=r.enum.map(_r).join(" | ");return`${r.type??"enum"}<${p}>`}return r.type==="array"?`${hs(i,r.items)}[]`:(a=r.anyOf)!=null&&a.length?r.anyOf.map(p=>hs(i,p)).join(" | "):(u=r.oneOf)!=null&&u.length?r.oneOf.map(p=>hs(i,p)).join(" | "):r.additionalProperties&&typeof r.additionalProperties=="object"?`Record<string, ${hs(i,r.additionalProperties)}>`:[r.type,r.format].filter(Boolean).join(":")||"object"}function Tr(i){var n;return((n=i==null?void 0:i.description)==null?void 0:n.trim())||""}function tr(i,n,r={}){var y;const l=r.depth??0;if(!n||l>gg)return[];if(n.$ref){if((y=r.seen)!=null&&y.has(n.$ref))return[{name:r.prefix||wi(n.$ref),path:r.prefix||wi(n.$ref),location:r.location,required:!1,type:wi(n.$ref),description:"循环引用,已停止展开",defaultValue:"",enumValue:"",depth:l}];const g=new Set(r.seen??[]);return g.add(n.$ref),tr(i,Pt(i,n),{...r,seen:g})}const a=Pt(i,n)??n,u=[],p=a.properties??{},h=a.required??r.requiredFields??[];if(a.type==="array"){const g=r.prefix||"[]";return u.push(mu(i,g,g,a,!1,l,r.location)),u.push(...tr(i,a.items,{...r,prefix:`${g}[]`,depth:l+1})),u}return Object.keys(p).length===0?(r.prefix&&u.push(mu(i,r.prefix.split(".").pop()??r.prefix,r.prefix,a,!1,l,r.location)),u):(bg(p).forEach(([g,N])=>{const S=r.prefix?`${r.prefix}.${g}`:g,E=h.includes(g);u.push(mu(i,g,S,N,E,l,r.location));const O=Pt(i,N)??N;if(O.type==="array"||!!(O.properties&&Object.keys(O.properties).length)||!!O.$ref){if(O.type==="array"){const j=O.items,I=Pt(i,j)??j;u.push(...tr(i,j,{...r,prefix:`${S}[]`,requiredFields:I==null?void 0:I.required,depth:l+1}));return}u.push(...tr(i,N,{...r,prefix:S,requiredFields:O.required,depth:l+1}))}}),u)}function Mp(i,n=[]){return Ci(n.filter(r=>r.in!=="body").map(r=>{var a;const l=Pg(r);return{name:r.name,path:r.name,location:r.in,required:!!r.required,type:hs(i,l),description:r.description||Tr(l)||"",defaultValue:(l==null?void 0:l.default)===void 0?"":_r(l.default),enumValue:((a=l==null?void 0:l.enum)==null?void 0:a.map(_r).join(", "))??"",depth:0}}))}function Sg(i,n){var p,h,y;const r=((p=n.requestBody)==null?void 0:p.content)??{},l=Object.fromEntries(Object.entries(r).map(([g,N])=>[g,Ci(tr(i,N.schema).map(S=>({...S,location:"body"})))]));if(Object.keys(l).length)return l;const a=(h=n.parameters)==null?void 0:h.find(g=>g.in==="body");if(!(a!=null&&a.schema))return{};const u=(y=n.consumes)!=null&&y.length?n.consumes:["application/json"];return Object.fromEntries(u.map(g=>[g,Ci(tr(i,a.schema).map(N=>({...N,location:"body"})))]))}function jg(i,n){const r=n.responses??{};return Object.fromEntries(Object.entries(r).map(([l,a])=>{var g;const u=a.content??{},p=Object.fromEntries(Object.entries(u).map(([N,S])=>[N,Ci(tr(i,S.schema).map(E=>({...E,location:`response ${l}`})))]));if(Object.keys(p).length)return[l,p];const h=a.schema??a.responseSchema;if(!h)return[l,{}];const y=(g=n.produces)!=null&&g.length?n.produces:["application/json"];return[l,Object.fromEntries(y.map(N=>[N,Ci(tr(i,h).map(S=>({...S,location:`response ${l}`})))]))]}))}function Rp(i,n){const r=n.operation,l=Eg(r);return{method:n.method,path:n.path,summary:n.summary,description:r.description||"",operationId:r.operationId||"",tags:n.tags,parameters:Mp(i,r.parameters).map(Cg),requestBody:{required:(l==null?void 0:l.required)??!1,contentType:(l==null?void 0:l.contentType)||"application/json",fields:l!=null&&l.schema?ws(i,l.schema):[]},responses:Object.entries(r.responses??{}).map(([a,u])=>{const p=Og(r,u);return{status:a,description:u.description||"",contentType:(p==null?void 0:p.contentType)||"application/json",fields:p!=null&&p.schema?ws(i,p.schema):[]}})}}function xg(i,n){return Qu(Rp(i,n))}function Ng(i){return JSON.stringify({method:i.method.toUpperCase(),path:i.path,tags:i.tags,summary:i.summary,operation:i.operation},null,2)}function Cg(i){return{name:i.path||i.name,location:Ig(i.location),required:i.required,type:Lg(i.type),description:i.description||"",defaultValue:i.defaultValue||"",enumValue:i.enumValue||""}}function Eg(i){var a,u,p,h,y;const n=((a=i.requestBody)==null?void 0:a.content)??{},r=Object.entries(n)[0];if(r!=null&&r[1].schema)return{required:!!((u=i.requestBody)!=null&&u.required),contentType:r[0],schema:r[1].schema};const l=(p=i.parameters)==null?void 0:p.find(g=>g.in==="body");if(l!=null&&l.schema)return{required:!!l.required,contentType:((h=i.consumes)==null?void 0:h.find(g=>g.includes("json")))??((y=i.consumes)==null?void 0:y[0])??"application/json",schema:l.schema}}function Og(i,n){var a,u;const r=Object.entries(n.content??{})[0];if(r!=null&&r[1].schema)return{contentType:r[0],schema:r[1].schema};const l=n.schema??n.responseSchema;if(l)return{contentType:((a=i.produces)==null?void 0:a.find(p=>p.includes("json")))??((u=i.produces)==null?void 0:u[0])??"application/json",schema:l}}function ws(i,n,r=new Set){const l=Pt(i,n)??n;if(n.$ref){if(r.has(n.$ref))return[];const a=new Set(r);return a.add(n.$ref),ws(i,l,a)}return l.type==="array"?[{name:"items",location:"body",type:"array",description:Tr(n)||Tr(l),children:l.items?ws(i,l.items,r):[]}]:Object.entries(l.properties??{}).map(([a,u])=>Tg(i,a,u,(l.required??[]).includes(a),r))}function Tg(i,n,r,l,a){var y;const u=Pt(i,r)??r,p=_g(i,r),h={name:n,location:"body",required:l,type:p,format:u.format||r.format||"",description:Tr(r)||Tr(u),defaultValue:u.default===void 0?"":_r(u.default),enumValue:((y=u.enum)==null?void 0:y.map(_r).join(", "))??""};if(p==="object"&&(h.children=r.$ref&&a.has(r.$ref)?[]:ws(i,u,Bd(r,a))),p==="array"){const g=u.items;h.children=g?ws(i,g,Bd(r,a)):[]}return h}function Bd(i,n){if(!i.$ref)return n;const r=new Set(n);return r.add(i.$ref),r}function _g(i,n){const r=Pt(i,n)??n;return r.type==="array"?"array":r.type==="object"||r.properties||n.$ref?"object":r.type==="integer"?"integer":r.type==="number"?"number":r.type==="boolean"?"boolean":"string"}function Ig(i){return i==="path"||i==="query"||i==="header"||i==="cookie"||i==="body"?i:"body"}function Lg(i){const n=i.toLowerCase();return n.includes("[]")||n.includes("array")?"array":n.includes("object")?"object":n.includes("integer")?"integer":n.includes("number")?"number":n.includes("boolean")?"boolean":"string"}function Ag(i){var n;return!!i.requestBody||!!((n=i.parameters)!=null&&n.some(r=>r.in==="body"))}function bg(i){return Object.entries(i).sort(([n],[r])=>n.localeCompare(r,void 0,{sensitivity:"base"}))}function Ci(i){return[...i].sort((n,r)=>{const l=n.path||n.name,a=r.path||r.name;return l.localeCompare(a,void 0,{sensitivity:"base"})})}function Pg(i){var n;if(i.schema)return i.schema;if(!(!i.type&&!i.format&&!i.items&&!((n=i.enum)!=null&&n.length)&&i.default===void 0))return{type:i.type,format:i.format,items:i.items,enum:i.enum,default:i.default,description:i.description}}function mu(i,n,r,l,a,u,p){var y;const h=Pt(i,l)??l;return{name:n,path:r,location:p,required:a,type:hs(i,l),description:Tr(l)||Tr(h),defaultValue:h.default===void 0?"":_r(h.default),enumValue:((y=h.enum)==null?void 0:y.map(_r).join(", "))??"",depth:u}}function _r(i){if(i==null)return"";if(typeof i=="string")return i;const n=JSON.stringify(i);return n===void 0?String(i):n}const Mg=["get","post","put","delete","patch","options","head"],Rg=["string","number","integer","boolean","array","object"],$g=["query","path","header","cookie"];function Dg({selectedVersionId:i,saving:n,initialConfig:r,onClose:l,onSave:a}){var xe,ke,Ce,Ge,sn,rr;const u=A.useMemo(()=>r??Pp(Jy()),[r]),[p,h]=A.useState(u.method),[y,g]=A.useState(u.path),[N,S]=A.useState(u.summary),[E,O]=A.useState(u.operationId??""),[P,j]=A.useState((u.tags??[]).join(",")),[I,R]=A.useState(u.description??""),[W,F]=A.useState(!!((xe=u.requestBody)!=null&&xe.required)),[H,X]=A.useState(((ke=u.requestBody)==null?void 0:ke.contentType)||"application/json"),[V,Q]=A.useState((Ce=u.parameters)!=null&&Ce.length?u.parameters:[mt("query")]),[M,ae]=A.useState((sn=(Ge=u.requestBody)==null?void 0:Ge.fields)!=null&&sn.length?u.requestBody.fields:[mt("body")]),[Y,te]=A.useState((rr=u.responses)!=null&&rr.length?u.responses:[pi()]),[Z,de]=A.useState(()=>Qu(u)),[Le,Te]=A.useState(!1),[De,je]=A.useState([]),q=A.useRef(!1),ne=A.useRef(null),G=r?"编辑当前接口":i?"追加到当前版本":"保存为新版本",C=A.useMemo(()=>Ug({method:p,path:y,summary:N,operationId:E,tags:P,description:I,requestBodyRequired:W,requestContentType:H,parameters:V,bodyFields:M,responses:Y}),[M,I,p,E,V,y,W,H,Y,N,P]);A.useEffect(()=>{if(q.current){q.current=!1;return}de(Fg(C))},[C]),A.useEffect(()=>{const J=ne.current;if(!J)return;const Ne=window.getComputedStyle(J),st=Number.parseFloat(Ne.lineHeight)||18,Qe=(Number.parseFloat(Ne.paddingTop)||0)+(Number.parseFloat(Ne.paddingBottom)||0)+(Number.parseFloat(Ne.borderTopWidth)||0)+(Number.parseFloat(Ne.borderBottomWidth)||0),it=st*3+Qe,ln=st*16+Qe;J.style.height="auto",J.style.height=`${Math.min(ln,Math.max(it,J.scrollHeight))}px`},[Z]);function b(J){J.preventDefault();const Ne=Ud(Z);if(Ne.errors.length){je(Ne.errors);return}je([]),a(Ne.config)}function he(J){de(J);const Ne=Ud(J);Ne.errors.length||(q.current=!0,je([]),K(Ne.config))}function K(J){var Ne,st,Qe,it,ln,On;h(J.method),g(J.path),S(J.summary),O(J.operationId??""),j((J.tags??[]).join(",")),R(J.description??""),F(!!((Ne=J.requestBody)!=null&&Ne.required)),X(((st=J.requestBody)==null?void 0:st.contentType)||"application/json"),Q((Qe=J.parameters)!=null&&Qe.length?J.parameters:[mt("query")]),ae((ln=(it=J.requestBody)==null?void 0:it.fields)!=null&&ln.length?J.requestBody.fields:[mt("body")]),te((On=J.responses)!=null&&On.length?J.responses:[pi()])}function ye(){if(Kg(Z,ne.current)){pe();return}navigator.clipboard.writeText(Z).then(pe).catch(()=>{})}function pe(){Te(!0),window.setTimeout(()=>Te(!1),1600)}return d.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true","aria-labelledby":"add-api-title",children:d.jsxs("form",{className:"api-config-dialog",onSubmit:b,noValidate:!0,children:[d.jsxs("div",{className:"import-dialog-header",children:[d.jsxs("div",{children:[d.jsx("p",{className:"eyebrow",children:"Manual API Config"}),d.jsx("h2",{id:"add-api-title",children:r?"编辑API配置":"新增API配置"})]}),d.jsx("span",{className:"import-badge running",children:G})]}),d.jsxs("div",{className:"api-config-body",children:[De.length?d.jsx(zg,{errors:De}):null,d.jsxs("section",{className:"api-config-section",children:[d.jsxs("div",{className:"section-title-row",children:[d.jsxs("div",{children:[d.jsx("h3",{children:"CLI配置"}),d.jsx("p",{children:"支持紧凑 JSON 或 YAML。CLI 与下方表单保持联动,粘贴有效配置后会自动同步表单。"})]}),d.jsxs("button",{type:"button",className:"secondary-button",onClick:ye,children:[Le?d.jsx(Si,{size:15}):d.jsx(mi,{size:15}),Le?"已复制":"复制"]})]}),d.jsx("textarea",{ref:ne,className:"api-cli-editor",value:Z,onChange:J=>he(J.target.value),rows:3,spellCheck:!1})]}),d.jsxs("section",{className:"api-config-section",children:[d.jsxs("div",{className:"section-title-row",children:[d.jsx("h3",{children:"基础信息"}),d.jsx("code",{children:i||"manual-new-version"})]}),d.jsxs("div",{className:"api-config-grid",children:[d.jsxs("label",{children:[d.jsx("span",{children:"方法 *"}),d.jsx("select",{value:p,onChange:J=>h(J.target.value),children:Mg.map(J=>d.jsx("option",{value:J,children:J.toUpperCase()},J))})]}),d.jsxs("label",{className:"span-2",children:[d.jsx("span",{children:"路径 *"}),d.jsx("input",{value:y,onChange:J=>g(J.target.value),placeholder:"/api/v1/example/{id}"})]}),d.jsxs("label",{children:[d.jsx("span",{children:"接口名称 *"}),d.jsx("input",{value:N,onChange:J=>S(J.target.value),placeholder:"查询示例详情"})]}),d.jsxs("label",{children:[d.jsx("span",{children:"Operation ID"}),d.jsx("input",{value:E,onChange:J=>O(J.target.value),placeholder:"getExampleDetail"})]}),d.jsxs("label",{children:[d.jsx("span",{children:"分组 Tags"}),d.jsx("input",{value:P,onChange:J=>j(J.target.value),placeholder:"示例,后台管理"})]}),d.jsxs("label",{className:"span-all",children:[d.jsx("span",{children:"说明"}),d.jsx("textarea",{value:I,onChange:J=>R(J.target.value),placeholder:"接口用途、业务约束、注意事项"})]})]})]}),d.jsx(Bg,{title:"参数",description:"用于 path / query / header / cookie 参数。body 字段请放到请求体。",fields:V,allowLocation:!0,onAdd:()=>Q([...V,mt("query")]),onChange:(J,Ne)=>Q(fn(V,J,Ne)),onRemove:J=>Q(hi(V,J,mt("query")))}),d.jsxs("section",{className:"api-config-section",children:[d.jsxs("div",{className:"section-title-row",children:[d.jsxs("div",{children:[d.jsx("h3",{children:"请求体"}),d.jsx("p",{children:"对象字段可以展开配置子字段,也支持用点号声明嵌套字段,例如 user.name。"})]}),d.jsxs("label",{className:"inline-check",children:[d.jsx("input",{type:"checkbox",checked:W,onChange:J=>F(J.target.checked)}),"必填"]})]}),d.jsx("div",{className:"api-config-grid compact",children:d.jsxs("label",{children:[d.jsx("span",{children:"Content-Type"}),d.jsx("input",{value:H,onChange:J=>X(J.target.value)})]})}),d.jsx(uo,{fields:M,onAdd:()=>ae([...M,mt("body")]),onChange:(J,Ne)=>ae(fn(M,J,{...Ne,location:"body"})),onRemove:J=>ae(hi(M,J,mt("body")))})]}),d.jsxs("section",{className:"api-config-section",children:[d.jsxs("div",{className:"section-title-row",children:[d.jsxs("div",{children:[d.jsx("h3",{children:"响应"}),d.jsx("p",{children:"每个状态码可配置一组响应字段,保存时会写入 OpenAPI responses。"})]}),d.jsxs("button",{type:"button",className:"secondary-button",onClick:()=>te([...Y,pi()]),children:[d.jsx(co,{size:15}),"状态码"]})]}),Y.map((J,Ne)=>{var st;return d.jsxs("div",{className:"response-config",children:[d.jsxs("div",{className:"api-config-grid compact",children:[d.jsxs("label",{children:[d.jsx("span",{children:"状态码 *"}),d.jsx("input",{value:J.status,onChange:Qe=>te(fn(Y,Ne,{...J,status:Qe.target.value}))})]}),d.jsxs("label",{children:[d.jsx("span",{children:"描述"}),d.jsx("input",{value:J.description??"",onChange:Qe=>te(fn(Y,Ne,{...J,description:Qe.target.value}))})]}),d.jsxs("label",{children:[d.jsx("span",{children:"Content-Type"}),d.jsx("input",{value:J.contentType??"application/json",onChange:Qe=>te(fn(Y,Ne,{...J,contentType:Qe.target.value}))})]}),d.jsx("button",{type:"button",className:"icon-danger-button",onClick:()=>te(hi(Y,Ne,pi())),children:d.jsx(fo,{size:15})})]}),d.jsx(uo,{fields:(st=J.fields)!=null&&st.length?J.fields:[mt("body")],onAdd:()=>te(fn(Y,Ne,{...J,fields:[...J.fields??[],mt("body")]})),onChange:(Qe,it)=>te(fn(Y,Ne,{...J,fields:fn(J.fields??[],Qe,{...it,location:"body"})})),onRemove:Qe=>te(fn(Y,Ne,{...J,fields:hi(J.fields??[],Qe,mt("body"))}))})]},`response-${Ne}`)})]})]}),d.jsxs("div",{className:"import-dialog-actions",children:[d.jsx("button",{className:"secondary-button",type:"button",onClick:l,disabled:n,children:"取消"}),d.jsxs("button",{className:"primary-button",type:"submit",disabled:n,children:[d.jsx(Rm,{size:16}),n?"保存中":"保存"]})]})]})})}function zg({errors:i}){return d.jsxs("div",{className:"api-config-errors",children:[d.jsx(ji,{size:17}),d.jsxs("div",{children:[d.jsx("strong",{children:"请补全必填配置"}),i.map(n=>d.jsx("p",{children:n},n))]})]})}function Bg({title:i,description:n,fields:r,allowLocation:l,onAdd:a,onChange:u,onRemove:p}){return d.jsxs("section",{className:"api-config-section",children:[d.jsxs("div",{className:"section-title-row",children:[d.jsxs("div",{children:[d.jsx("h3",{children:i}),d.jsx("p",{children:n})]}),d.jsxs("button",{type:"button",className:"secondary-button",onClick:a,children:[d.jsx(co,{size:15}),"字段"]})]}),d.jsx(uo,{fields:r,allowLocation:l,onAdd:a,onChange:u,onRemove:p})]})}function uo({fields:i,allowLocation:n,onAdd:r,onChange:l,onRemove:a}){return d.jsxs("div",{className:"field-config-table",children:[d.jsxs("div",{className:`field-config-head ${n?"with-location":""}`,children:[n?d.jsx("span",{children:"位置"}):null,d.jsx("span",{children:"字段名"}),d.jsx("span",{children:"类型"}),d.jsx("span",{children:"必填"}),d.jsx("span",{children:"说明"}),d.jsx("span",{children:"枚举"}),d.jsx("span",{})]}),i.map((u,p)=>{var h;return d.jsxs("div",{className:"field-config-item",children:[d.jsxs("div",{className:`field-config-row ${n?"with-location":""}`,children:[n?d.jsx("select",{value:u.location??"query",onChange:y=>l(p,{...u,location:y.target.value}),children:$g.map(y=>d.jsx("option",{value:y,children:y},y))}):null,d.jsx("input",{value:u.name,onChange:y=>l(p,{...u,name:y.target.value}),placeholder:"id / user.name"}),d.jsx("select",{value:u.type||"string",onChange:y=>l(p,qg(u,y.target.value)),children:Rg.map(y=>d.jsx("option",{value:y,children:y},y))}),d.jsx("label",{className:"field-check",children:d.jsx("input",{type:"checkbox",checked:!!u.required,onChange:y=>l(p,{...u,required:y.target.checked})})}),d.jsx("input",{value:u.description??"",onChange:y=>l(p,{...u,description:y.target.value}),placeholder:"字段说明"}),d.jsx("input",{value:u.enumValue??"",onChange:y=>l(p,{...u,enumValue:y.target.value}),placeholder:"a,b,c"}),d.jsx("button",{type:"button",className:"icon-danger-button",onClick:()=>a(p),"aria-label":"删除字段",children:d.jsx(fo,{size:15})})]}),u.type==="object"||u.type==="array"?d.jsxs("div",{className:"child-field-config",children:[d.jsx("div",{className:"child-field-title",children:"下一级结构"}),d.jsx(uo,{fields:(h=u.children)!=null&&h.length?u.children:[mt("body")],onAdd:()=>l(p,{...u,children:[...u.children??[],mt("body")]}),onChange:(y,g)=>l(p,{...u,children:fn(u.children??[],y,g)}),onRemove:y=>l(p,{...u,children:hi(u.children??[],y,mt("body"))})})]}):null]},`field-${p}`)}),d.jsxs("button",{type:"button",className:"field-add-row",onClick:r,children:[d.jsx(co,{size:14}),"增加字段"]})]})}function Ug(i){return{method:i.method,path:i.path,summary:i.summary,operationId:i.operationId,tags:i.tags.split(",").map(n=>n.trim()).filter(Boolean),description:i.description,parameters:i.parameters,requestBody:{required:i.requestBodyRequired,contentType:i.requestContentType,fields:i.bodyFields},responses:i.responses}}function Ud(i){try{return Vg(Pp(i))}catch(n){return{config:Hg(),errors:[n instanceof Error?n.message:"CLI 配置解析失败"]}}}function Fg(i){return JSON.stringify({api:i})}function Vg(i){var r,l,a;const n=[];if(i.method||n.push("请选择请求方法"),(r=i.path)!=null&&r.trim()||n.push("请填写接口路径"),(l=i.summary)!=null&&l.trim()||n.push("请填写接口名称"),to(i.parameters??[],"参数",n),to(((a=i.requestBody)==null?void 0:a.fields)??[],"请求体字段",n),(i.responses??[]).forEach((u,p)=>{var h;(h=u.status)!=null&&h.trim()||n.push(`响应 #${p+1} 请填写状态码`),to(u.fields??[],`响应 ${u.status||`#${p+1}`} 字段`,n)}),n.length)return{config:i,errors:n};try{return{config:Ju(i),errors:[]}}catch(u){return{config:i,errors:[u instanceof Error?u.message:"接口配置校验失败"]}}}function to(i,n,r,l=""){i.forEach((a,u)=>{var h;const p=`${n}${l?` ${l}`:""} #${u+1}`;$p(a)&&((h=a.name)!=null&&h.trim()||r.push(`${p} 请填写字段名`),(a.type==="object"||a.type==="array")&&to(a.children??[],n,r,a.name||`#${u+1}`))})}function Kg(i,n){if(n)return n.focus(),n.select(),document.execCommand("copy");const r=document.createElement("textarea");r.value=i,r.setAttribute("readonly","true"),r.style.position="fixed",r.style.left="-9999px",r.style.top="0",document.body.appendChild(r),r.focus(),r.select();try{return document.execCommand("copy")}finally{document.body.removeChild(r)}}function $p(i){var n,r,l,a,u;return!!((n=i.name)!=null&&n.trim()||(r=i.description)!=null&&r.trim()||(l=i.enumValue)!=null&&l.trim()||(a=i.defaultValue)!=null&&a.trim()||i.required||(u=i.children)!=null&&u.some($p))}function qg(i,n){var r;return n==="object"||n==="array"?{...i,type:n,children:(r=i.children)!=null&&r.length?i.children:[mt("body")]}:{...i,type:n,children:void 0}}function Hg(){return{method:"get",path:"",summary:"",responses:[pi()]}}function mt(i="query"){return{name:"",location:i,required:!1,type:"string",description:"",enumValue:""}}function pi(){return{status:"200",description:"Success",contentType:"application/json",fields:[mt("body")]}}function fn(i,n,r){return n>=i.length?[...i,r]:i.map((l,a)=>a===n?r:l)}function hi(i,n,r){const l=i.filter((a,u)=>u!==n);return l.length?l:[r]}function Wg({versions:i,selectedVersionId:n,currentVersion:r,disabled:l,onSelect:a,onPrepareUpdate:u,onUpdateEnvironment:p,onDelete:h}){const[y,g]=A.useState(!1),[N,S]=A.useState(""),[E,O]=A.useState(""),[P,j]=A.useState(""),[I,R]=A.useState(""),[W,F]=A.useState(""),H=A.useMemo(()=>r??i.find(Y=>Y.versionId===n),[r,n,i]);A.useEffect(()=>{y||(S(""),F(""))},[y]);function X(Y){F(""),S(Y.versionId||""),O(Y.environmentName||""),j(Y.environmentBaseUrl||"")}async function V(Y){R(Y),F("");try{await p(Y,E,P),S(""),F("环境已保存")}catch(te){F(te instanceof Error?te.message:"环境保存失败")}finally{R("")}}async function Q(Y){const te=Y.versionId;if(te&&window.confirm(`确认删除文档版本 ${yu(Y)}?`)){R(te),F("");try{await h(te),F("版本已删除")}catch(Z){F(Z instanceof Error?Z.message:"版本删除失败")}finally{R("")}}}async function M(Y){const te=Y.versionId;if(te){R(te),F("");try{await u(Y),g(!1)}catch(Z){F(Z instanceof Error?Z.message:"准备更新失败")}finally{R("")}}}function ae(Y){if(!Y)return;const te=document.createElement("a");te.href=`${ag}?versionId=${encodeURIComponent(Y)}`,te.download=`${Y}.json`,document.body.appendChild(te),te.click(),document.body.removeChild(te)}return d.jsxs("div",{className:"version-manager",children:[d.jsxs("button",{className:"version-manager-trigger",onClick:()=>g(!0),disabled:l||!i.length,children:[d.jsx(Yd,{size:16}),d.jsxs("span",{children:[d.jsx("strong",{children:H?yu(H):"无缓存版本"}),d.jsx("small",{children:H?[H.environmentName||"未设置环境",H.paths===void 0?"":`${H.paths} paths`,H.savedAt?Fd(H.savedAt):""].filter(Boolean).join(" · "):"导入或爬取文档后可管理版本"})]})]}),y?d.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true","aria-labelledby":"version-manager-title",children:d.jsxs("div",{className:"version-manager-dialog",children:[d.jsxs("div",{className:"import-dialog-header",children:[d.jsxs("div",{children:[d.jsx("p",{className:"eyebrow",children:"Document Versions"}),d.jsx("h2",{id:"version-manager-title",children:"文档版本管理"})]}),d.jsx("button",{className:"icon-secondary-button",onClick:()=>g(!1),"aria-label":"关闭",children:d.jsx(io,{size:17})})]}),d.jsxs("div",{className:"version-manager-body",children:[W?d.jsx("div",{className:W.includes("失败")||W.includes("不支持")?"version-message error":"version-message",children:W}):null,i.length?i.map(Y=>{const te=Y.versionId||"",Z=N===te,de=I===te,Le=te===n;return d.jsxs("section",{className:`version-item ${Le?"active":""}`,children:[d.jsxs("div",{className:"version-item-main",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"version-item-title",children:[d.jsx("strong",{children:yu(Y)}),Le?d.jsx("span",{children:"当前"}):null]}),d.jsx("p",{children:te})]}),d.jsxs("div",{className:"version-item-stats",children:[d.jsx("span",{children:Y.mode||"unknown"}),d.jsxs("span",{children:[Y.paths??0," paths"]}),d.jsxs("span",{children:[Y.schemas??0," schemas"]}),d.jsx("span",{children:Y.savedAt?Fd(Y.savedAt):"-"})]})]}),Z?d.jsxs("div",{className:"version-env-editor",children:[d.jsxs("label",{children:["环境名称",d.jsx("input",{value:E,onChange:Te=>O(Te.target.value),placeholder:"例如 dev / test / prod"})]}),d.jsxs("label",{children:["Base URL",d.jsx("input",{value:P,onChange:Te=>j(Te.target.value),placeholder:"https://api.example.com"})]})]}):d.jsxs("div",{className:"version-env-summary",children:[d.jsx("span",{children:Y.environmentName||"未设置环境"}),d.jsx("code",{children:Y.environmentBaseUrl||"未设置 Base URL"})]}),d.jsxs("div",{className:"version-item-actions",children:[d.jsxs("button",{className:"secondary-button",onClick:()=>a(te),disabled:Le||de||!te,children:[d.jsx(ro,{size:15}),"切换"]}),d.jsxs("button",{className:"primary-button",onClick:()=>M(Y),disabled:de||!te,children:[d.jsx(ro,{size:15}),"更新"]}),Z?d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"primary-button",onClick:()=>V(te),disabled:de||!te,children:[d.jsx(Si,{size:15}),"保存环境"]}),d.jsx("button",{className:"secondary-button",onClick:()=>S(""),disabled:de,children:"取消"})]}):d.jsxs("button",{className:"secondary-button",onClick:()=>X(Y),disabled:de||!te,children:[d.jsx(Au,{size:15}),"环境"]}),d.jsxs("button",{className:"secondary-button",onClick:()=>ae(te),disabled:!te,children:[d.jsx(bm,{size:15}),"导出"]}),d.jsxs("button",{className:"danger-button",onClick:()=>Q(Y),disabled:de||!te,children:[d.jsx(fo,{size:15}),"删除"]})]})]},te)}):d.jsx("p",{className:"muted",children:"暂无缓存版本。"})]})]})}):null]})}function yu(i){return i.title||i.inputUrl||i.versionId||"未命名版本"}function Fd(i){const n=new Date(i);return Number.isNaN(n.getTime())?i:n.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}const Qg=["all","get","post","put","delete","patch"],gu="apiskill-open-endpoint-tabs";function Vd(i){return{id:i.id,method:i.method,path:i.path,summary:i.summary||i.operation.operationId||i.path}}function vu(i,n){return`${i||"local"}::${n.id}`}function Jg(){const[i,n]=A.useState(null),[r,l]=A.useState("loading"),[a,u]=A.useState(""),[p,h]=A.useState(""),[y,g]=A.useState("all"),[N,S]=A.useState("all"),[E,O]=A.useState(!1),[P,j]=A.useState(""),[I,R]=A.useState(!1),[W,F]=A.useState([]),[H,X]=A.useState(!1),[V,Q]=A.useState(""),[M,ae]=A.useState("file"),[Y,te]=A.useState([]),[Z,de]=A.useState(""),[Le,Te]=A.useState(void 0),[De,je]=A.useState(""),[q,ne]=A.useState(""),[G,C]=A.useState(""),[b,he]=A.useState(""),[K,ye]=A.useState(null),[pe,xe]=A.useState("API Skill Document"),[ke,Ce]=A.useState("1.0.0"),[Ge,sn]=A.useState("Created from API Skill blank document."),[rr,J]=A.useState(!1),[Ne,st]=A.useState(""),[Qe,it]=A.useState(""),[ln,On]=A.useState(""),[Tn,pn]=A.useState(""),[Ns,Cs]=A.useState(""),[ct,St]=A.useState(null),[Tt,sr]=A.useState(null),[Lr,ir]=A.useState(!1),[Mt,_n]=A.useState(null),[Ar,lr]=A.useState(""),[br,Li]=A.useState(!1),[Es,In]=A.useState(void 0),[Os,Ln]=A.useState(void 0),[Ts,hn]=A.useState({}),[An,or]=A.useState(!1),Pr=A.useRef(null);A.useEffect(()=>{async function k(){try{await Rr()}catch(z){u(z instanceof Error?z.message:"读取最新缓存失败"),l("ready")}finally{$t()}}k(),Ls()},[]);const Rt=A.useMemo(()=>i?vg(i):[],[i]),Qt=A.useMemo(()=>new Map(Rt.map(k=>[k.id,k])),[Rt]),Mr=A.useMemo(()=>wg(Rt),[Rt]),mn=A.useMemo(()=>{const k=p.trim().toLowerCase();return Rt.filter(z=>{const le=!k||z.searchable.includes(k),ve=y==="all"||z.tags.includes(y),ge=N==="all"||z.method===N,fe=!E||z.hasBody;return le&&ve&&ge&&fe})},[E,Rt,N,p,y]),_e=A.useMemo(()=>{if(!(!P&&I))return Qt.get(P)??mn[0]},[I,Qt,mn,P]),_t=A.useMemo(()=>Y.find(k=>k.versionId===Z)??Le,[Z,Le,Y]),_s=_e?vu(Z,_e):"",ar=_e?Ts[_s]??Gl(_e.operation["x-apiskill-links"]):void 0;A.useEffect(()=>{_e&&_e.id!==P&&j(_e.id)},[_e,P]),A.useEffect(()=>{_e&&F(k=>k.some(z=>z.id===_e.id)?k:[...k,Vd(_e)])},[_e]),A.useEffect(()=>{F(k=>k.filter(z=>Qt.has(z.id)))},[Qt]),A.useEffect(()=>{var k;if(!(!Z||!Qt.size))try{const z=localStorage.getItem(gu);if(!z){X(!0);return}const le=JSON.parse(z);if(le.versionId!==Z){X(!0);return}const ve=le.tabIds.map(fe=>Qt.get(fe)).filter(fe=>!!fe).map(Vd);F(ve);const ge=le.selectedId&&Qt.has(le.selectedId)?le.selectedId:((k=ve[0])==null?void 0:k.id)??"";j(ge),R(le.allowEmptyDetail&&!ge)}catch{localStorage.removeItem(gu)}finally{X(!0)}},[Qt,Z]),A.useEffect(()=>{if(!Z||!H)return;const k={versionId:Z,tabIds:W.map(z=>z.id),selectedId:P,allowEmptyDetail:I};localStorage.setItem(gu,JSON.stringify(k))},[I,W,P,Z,H]),A.useEffect(()=>{if((ct==null?void 0:ct.status)!=="running")return;const k=window.setInterval(()=>{St(z=>!z||z.status!=="running"?z:{...z,progress:Math.min(88,z.progress+(z.mode==="crawl"||z.mode==="curl"?4:7))})},600);return()=>window.clearInterval(k)},[ct==null?void 0:ct.status,ct==null?void 0:ct.mode]);async function Rr(k){var ve,ge,fe,Je;X(!1);const z=k?await fetch(ig,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({versionId:k})}):await fetch(rg,{cache:"no-store"});if(z.status===404){n(null),de(""),Te(void 0),F([]),l("ready");return}if(!z.ok)throw new Error(`读取缓存失败: ${z.status}`);const le=await z.json();n(le.document),R(!1),F([]),je(((ve=le.meta)==null?void 0:ve.savedAt)||""),de(((ge=le.meta)==null?void 0:ge.versionId)||""),Te(le.meta),bn(le.meta,le.document),it(((fe=le.meta)==null?void 0:fe.resolvedUrl)||((Je=le.meta)==null?void 0:Je.inputUrl)||""),le.versions&&te(le.versions),l("ready")}async function $t(){const k=await fetch(sg,{cache:"no-store"});if(!k.ok)return;const z=await k.json();te(z.versions??[])}function ur(k){return k==="file"||k==="crawl"||k==="curl"||k==="upload"}function $r(k){if(ur(k))return k}function bn(k,z){const le=$r(k==null?void 0:k.mode);le&&ae(le),ur(k==null?void 0:k.mode)&&xo(k.mode,k.inputUrl||""),((k==null?void 0:k.mode)==="document"||(k==null?void 0:k.mode)==="manual")&&(z!=null&&z.info)&&(xe(z.info.title||"API Skill Document"),Ce(z.info.version||"1.0.0"),sn(z.info.description||""))}function Ai(k){return Z&&(_t==null?void 0:_t.mode)===k?Z:""}function xo(k,z){k==="crawl"?C(z):k==="curl"?he(z):k==="file"&&ne(z)}function bi(){return M==="crawl"?G.trim():M==="curl"?b.trim():M==="upload"?(K==null?void 0:K.name)||"":q.trim()}function Jt(k){return k==="curl"?"请输入 CURL 命令":k==="upload"?"请选择 JSON 或 YAML 文件":k==="crawl"?"请输入在线文档页地址":"请输入 Swagger/OpenAPI 文件地址"}function Pi(){M==="crawl"?C(""):M==="curl"?he(""):M==="upload"?(ye(null),Pr.current&&(Pr.current.value="")):ne("")}async function Mi(k){if(k==="upload"){if(!K)throw new Error(Jt(k));if(!/\.(json|ya?ml)$/i.test(K.name))throw new Error("仅支持 JSON、YAML 或 YML 文件");return{input:K.name,content:await K.text()}}const z=k==="crawl"?G.trim():k==="curl"?b.trim():q.trim();if(!z)throw new Error(Jt(k));return{input:z}}async function Ri(k,z={type:"none"},le=!1,ve){var Vi,Br;let ge;try{ge=await Mi(k)}catch(ot){const Dt=ot instanceof Error?ot.message:Jt(k);u(Dt),St({open:!0,mode:k,status:"error",progress:100,inputUrl:"",message:"未开始",error:Dt});return}const fe=ge.input,Je=Ai(k),Ae=ve!==void 0?ve||void 0:Je||void 0,lt=!!Ae;Q(k),u(""),St({open:!0,mode:k,status:"running",progress:k==="crawl"&&!le?6:k==="curl"?14:k==="crawl"?12:18,inputUrl:fe,message:k==="crawl"&&!le?"正在检测文档访问权限":k==="crawl"?lt?"正在爬取并更新当前版本文档":"正在由 Node 爬取在线文档并识别 OpenAPI JSON 地址":k==="curl"?lt?"正在执行 CURL 并更新当前版本文档":"正在解析并执行 CURL 请求":k==="upload"?lt?"正在解析上传文件并更新当前版本文档":"正在读取并解析上传的 JSON / YAML 文件":lt?"正在拉取并更新当前版本文档":"正在由 Node 拉取并解析 OpenAPI JSON 文件"});try{if(k!=="curl"&&k!=="upload"&&!le&&z.type==="none"){const Ki=await t0(fe,k);if(Ki.requiresAuth){sr({open:!0,mode:k,inputUrl:fe,message:Ki.message||"该文档地址需要用户名和密码",updateVersionId:Ae}),St(null),Q("");return}St(yn=>(yn==null?void 0:yn.status)==="running"?{...yn,progress:k==="crawl"?12:18,message:k==="crawl"?lt?"正在爬取并更新当前版本文档":"正在由 Node 爬取在线文档并识别 OpenAPI JSON 地址":lt?"正在拉取并更新当前版本文档":"正在由 Node 拉取并解析 OpenAPI JSON 文件"}:yn)}const ot=await Zg(fe,k,z,ge.content,Ae),Dt=ot.document,Pn=new Date().toISOString();localStorage.setItem(hg,Pn),localStorage.setItem(mg,fe),z.type==="basic"&&pn(""),X(!1),n(Dt),R(!1),F([]),je(Pn),de(((Vi=ot.meta)==null?void 0:Vi.versionId)||""),Te(ot.meta),it(((Br=ot.meta)==null?void 0:Br.resolvedUrl)||fe),bn(ot.meta,Dt),l("ready"),ot.versions?te(ot.versions):await $t(),St({open:!0,mode:k,status:"success",progress:100,inputUrl:fe,message:lt?"文档已更新并覆盖原版本":"文档已解析并保存为独立版本",meta:ot.meta})}catch(ot){const Dt=ot instanceof Error?ot.message:"导入失败,请检查地址或文档格式";u(Dt),St({open:!0,mode:k,status:"error",progress:100,inputUrl:fe,message:"处理失败",error:Dt})}finally{Q("")}}async function $i(){var ve,ge,fe,Je;const k=pe.trim();if(!k){u("请输入文档名称");return}const z=Ne||void 0,le=!!z;Q("blank"),u(""),St({open:!0,mode:"blank",status:"running",progress:45,inputUrl:k,message:le?"正在更新当前 OpenAPI 文档":"正在创建空白 OpenAPI 文档"});try{const Ae=await e0({title:k,version:ke.trim()||"1.0.0",description:Ge.trim(),versionId:z}),lt=((ve=Ae.meta)==null?void 0:ve.savedAt)||new Date().toISOString();X(!1),n(Ae.document),R(!0),F([]),j(""),je(lt),de(((ge=Ae.meta)==null?void 0:ge.versionId)||""),Te(Ae.meta),it(((fe=Ae.meta)==null?void 0:fe.resolvedUrl)||((Je=Ae.meta)==null?void 0:Je.inputUrl)||"manual-document"),bn(Ae.meta,Ae.document),l("ready"),Ae.versions?te(Ae.versions):await $t(),St({open:!0,mode:"blank",status:"success",progress:100,inputUrl:k,message:le?"文档已更新并覆盖原版本":"空白文档已创建,可以继续新增 API 配置",meta:Ae.meta}),J(!1),st("")}catch(Ae){const lt=Ae instanceof Error?Ae.message:"创建文档失败";u(lt),St({open:!0,mode:"blank",status:"error",progress:100,inputUrl:k,message:"创建失败",error:lt})}finally{Q("")}}async function Di(k,z){await navigator.clipboard.writeText(z),Cs(k),window.setTimeout(()=>Cs(""),1600)}function zi(){const k=(Tt==null?void 0:Tt.updateVersionId)??"";sr(null),Ri((Tt==null?void 0:Tt.mode)??"crawl",{type:"basic",username:ln,password:Tn},!0,k)}function Bi(k){F(z=>{const le=z.findIndex(ge=>ge.id===k),ve=z.filter(ge=>ge.id!==k);if(k===P){const ge=ve[le]??ve[le-1];R(!ge),j((ge==null?void 0:ge.id)??"")}return ve})}function Is(k){R(!1),j(k)}function No(k,z){const le=vu(Z,k);hn(ve=>({...ve,[le]:Gl(z)}))}async function ze(k,z,le){const ve=await fetch(lg,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({versionId:k,environmentName:z,environmentBaseUrl:le})}),ge=await ve.json();if(!ve.ok)throw new Error(ge.error||"环境保存失败");const fe=ge;te(fe.versions??[]),k===Z&&Te(fe.meta)}async function Co(k){const z=await fetch(og,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({versionId:k})}),le=await z.json();if(!z.ok)throw new Error(le.error||"版本删除失败");const ve=le;if(te(ve.versions??[]),k===Z){if(ve.nextVersionId){await Rr(ve.nextVersionId);return}n(null),de(""),Te(void 0),F([]),je(""),it(""),l("ready")}}async function Ls(){try{const k=await fetch(cg,{cache:"no-store"});if(!k.ok)return;_n(await k.json())}catch{}}async function Ui(){var k;if(!i||!yt.endpoints){lr("请先导入、爬取或新建 API 文档,并至少包含一个接口后再启动 MOCK 服务");return}Li(!0),lr(""),u("");try{const z=await fetch(ug,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({versionId:Z||void 0})}),le=await z.json();if(!z.ok)throw new Error(le.error||"MOCK 服务启动失败");const ve=le;_n(ve),lr((k=ve.mock)!=null&&k.url?`MOCK 服务已启动:${ve.mock.url}`:"MOCK 服务已启动")}catch(z){lr(z instanceof Error?z.message:"MOCK 服务启动失败")}finally{Li(!1)}}async function Dr(k){const z=k.versionId||"";if(!z)throw new Error("请选择要更新的文档版本");const le=k.mode||"";if(z!==Z){await Rr(z),(le==="document"||le==="manual")&&(st(z),J(!0));return}bn(k,i),(le==="document"||le==="manual")&&(st(z),J(!0)),u("")}async function Eo(k){var z,le,ve,ge;or(!0),u("");try{const fe=await n0(Z||void 0,k,Os),Je=((z=fe.meta)==null?void 0:z.savedAt)||new Date().toISOString();n(fe.document),je(Je),de(((le=fe.meta)==null?void 0:le.versionId)||""),Te(fe.meta),it(((ve=fe.meta)==null?void 0:ve.resolvedUrl)||((ge=fe.meta)==null?void 0:ge.inputUrl)||"manual-api-config"),l("ready"),ir(!1),In(void 0),Ln(void 0),await $t()}catch(fe){u(fe instanceof Error?fe.message:"新增接口保存失败")}finally{or(!1)}}async function Fi(k){var z,le,ve,ge;if(!Z){u("请先选择一个本地缓存版本");return}if(window.confirm(`确认删除 ${k.method.toUpperCase()} ${k.path}?`)){or(!0),u("");try{const fe=await r0(Z,k.method,k.path);n(fe.document),je(((z=fe.meta)==null?void 0:z.savedAt)||new Date().toISOString()),de(((le=fe.meta)==null?void 0:le.versionId)||Z),Te(fe.meta),it(((ve=fe.meta)==null?void 0:ve.resolvedUrl)||((ge=fe.meta)==null?void 0:ge.inputUrl)||"manual-api-config"),l("ready"),j(""),F(Je=>Je.filter(Ae=>Ae.id!==k.id)),await $t()}catch(fe){u(fe instanceof Error?fe.message:"删除接口失败")}finally{or(!1)}}}async function zr(k,z){var fe,Je;if(!Z)throw new Error("请先选择一个本地缓存版本");const le=await fetch(pg,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({versionId:Z,method:k.method,path:k.path,links:z})}),ve=await le.json();if(!le.ok)throw new Error(ve.error||"关联配置保存失败");const ge=ve;n(ge.document),je(((fe=ge.meta)==null?void 0:fe.savedAt)||new Date().toISOString()),de(((Je=ge.meta)==null?void 0:Je.versionId)||Z),Te(ge.meta),hn(Ae=>{var lt;return{...Ae,[vu(((lt=ge.meta)==null?void 0:lt.versionId)||Z,k)]:Gl(z)}}),ge.versions?te(ge.versions):await $t()}const yt=A.useMemo(()=>{var ve;const k=i!=null&&i.paths?Object.keys(i.paths).length:0,z=((ve=i==null?void 0:i.components)==null?void 0:ve.schemas)??(i==null?void 0:i.definitions)??{},le=Object.keys(z).length;return{paths:k,schemas:le,endpoints:Rt.length,tags:Mr.length}},[i,Rt.length,Mr.length]),Oo=!!Ai(M);return r==="loading"?d.jsxs("main",{className:"state-screen",children:[d.jsx(Am,{className:"state-icon"}),d.jsx("h1",{children:"正在读取最新缓存"}),d.jsx("p",{children:"如果没有缓存版本,将进入空文档状态。"})]}):r==="error"?d.jsxs("main",{className:"state-screen",children:[d.jsx(ji,{className:"state-icon error"}),d.jsx("h1",{children:"接口文档加载失败"}),d.jsx("p",{children:a})]}):d.jsxs("div",{className:"app-shell",children:[d.jsxs("header",{className:"topbar",children:[d.jsxs("div",{children:[d.jsx("p",{className:"eyebrow",children:"OpenAPI 3.0 Console"}),d.jsx("h1",{children:"API Skill Console"})]}),d.jsxs("div",{className:"topbar-actions",children:[d.jsx(Wg,{versions:Y,selectedVersionId:Z,currentVersion:_t,disabled:!!V,onSelect:k=>{!k||k===Z||Rr(k)},onPrepareUpdate:Dr,onUpdateEnvironment:ze,onDelete:Co}),d.jsxs("button",{className:"primary-button",onClick:()=>{In(void 0),Ln(void 0),ir(!0)},children:[d.jsx(co,{size:16}),"新增API配置"]}),d.jsxs("div",{className:"sync-meta",children:[d.jsxs("span",{children:["接口 ",yt.endpoints]}),d.jsxs("span",{children:["Schema ",yt.schemas]}),d.jsx("span",{children:De?`同步 ${g0(De)}`:"未加载文档"})]})]})]}),d.jsxs("section",{className:"source-panel",children:[d.jsxs("div",{className:"source-panel-header",children:[d.jsxs("div",{className:"source-tabs",role:"tablist","aria-label":"文档同步方式",children:[d.jsxs("button",{className:M==="file"?"active":"",onClick:()=>ae("file"),role:"tab","aria-selected":M==="file",children:[d.jsx(ro,{size:15}),"在线文档"]}),d.jsxs("button",{className:M==="crawl"?"active":"",onClick:()=>ae("crawl"),role:"tab","aria-selected":M==="crawl",children:[d.jsx(Td,{size:15}),"爬取网页"]}),d.jsxs("button",{className:M==="curl"?"active":"",onClick:()=>ae("curl"),role:"tab","aria-selected":M==="curl",children:[d.jsx(so,{size:15}),"执行CURL"]}),d.jsxs("button",{className:M==="upload"?"active":"",onClick:()=>ae("upload"),role:"tab","aria-selected":M==="upload",children:[d.jsx(jr,{size:15}),"导入文件"]})]}),d.jsxs("div",{className:"source-panel-actions",children:[d.jsxs("button",{className:"secondary-button",onClick:Ui,disabled:br,children:[d.jsx(Yd,{size:16,className:br?"spin":""}),br?"启动中":"启动MOCK服务"]}),d.jsxs("button",{className:"secondary-button",onClick:()=>{st(""),J(!0)},disabled:!!V,children:[d.jsx(ki,{size:16}),"新建文档"]})]})]}),d.jsxs("div",{className:"source-form",children:[M==="upload"?d.jsxs("label",{className:"source-file-picker",children:[d.jsx(jr,{size:16}),d.jsx("input",{ref:Pr,type:"file",accept:".json,.yaml,.yml,application/json,application/yaml,text/yaml,text/x-yaml",onChange:k=>{var z;return ye(((z=k.target.files)==null?void 0:z[0])??null)}},"source-upload-input"),d.jsx("span",{children:K?K.name:"选择 JSON / YAML 文件"})]},"source-upload-field"):d.jsxs("label",{className:`source-input ${M==="curl"?"source-input-multiline":""}`,children:[d.jsx(no,{size:16}),M==="curl"?d.jsx("textarea",{value:b,onChange:k=>he(k.target.value),placeholder:"粘贴 curl 命令,例如 curl 'https://example.com/openapi.yaml' -H 'accept: application/yaml'",spellCheck:!1},"source-curl-input"):d.jsx("input",{value:M==="file"?q:G,onChange:k=>{M==="file"?ne(k.target.value):C(k.target.value)},placeholder:M==="file"?"输入 Swagger/OpenAPI JSON 或 YAML 文件地址":"输入 Swagger UI / Knife4j / Redoc 在线文档页地址"},"source-url-input")]},"source-text-field"),d.jsxs("button",{className:"primary-button",onClick:()=>{Ri(M)},disabled:!!V||!bi(),children:[M==="crawl"?d.jsx(Td,{size:16,className:V==="crawl"?"spin":""}):M==="curl"?d.jsx(so,{size:16,className:V==="curl"?"spin":""}):M==="upload"?d.jsx(jr,{size:16,className:V==="upload"?"spin":""}):d.jsx(ro,{size:16,className:V==="file"?"spin":""}),V===M?"处理中":Oo?"更新":"确认"]}),d.jsx("button",{className:"secondary-button",onClick:Pi,disabled:!!V||!bi(),children:"清空"})]}),d.jsxs("div",{className:"source-meta",children:["当前文档源:",d.jsx("span",{children:Qe||"未加载"})]}),Mt!=null&&Mt.running&&Mt.mock?d.jsxs("div",{className:"source-meta",children:["MOCK服务:",d.jsx("span",{children:Mt.mock.url}),d.jsxs("small",{children:[Mt.mock.routesCount," routes"]})]}):null,Ar?d.jsx("div",{className:`version-message ${Ar.includes("失败")||Ar.includes("请先")?"error":""}`,children:Ar}):null]}),a?d.jsxs("div",{className:"inline-error",children:[d.jsx(ji,{size:16}),a]}):null,ct!=null&&ct.open?d.jsx(Xg,{state:ct,onClose:()=>St(null)}):null,Tt!=null&&Tt.open?d.jsx(Yg,{state:Tt,username:ln,password:Tn,onUsernameChange:On,onPasswordChange:pn,onClose:()=>sr(null),onSubmit:zi}):null,rr?d.jsx(Gg,{updating:!!Ne,title:pe,version:ke,description:Ge,saving:V==="blank",onTitleChange:xe,onVersionChange:Ce,onDescriptionChange:sn,onClose:()=>{V!=="blank"&&(J(!1),st(""))},onSubmit:$i}):null,Lr?d.jsx(Dg,{selectedVersionId:Z,saving:An,initialConfig:Es,onClose:()=>{ir(!1),In(void 0),Ln(void 0)},onSave:Eo}):null,d.jsxs("section",{className:"workspace",children:[d.jsxs("aside",{className:"sidebar",children:[d.jsxs("div",{className:"search-box",children:[d.jsx($m,{size:17}),d.jsx("input",{value:p,onChange:k=>h(k.target.value),placeholder:"搜索路径、摘要、参数、tag"}),p?d.jsx("button",{type:"button",className:"search-clear-button",onClick:()=>h(""),"aria-label":"清空搜索",children:d.jsx(io,{size:15})}):null]}),d.jsxs("div",{className:"filters",children:[d.jsxs("label",{children:[d.jsx(Pm,{size:15}),d.jsxs("select",{value:y,onChange:k=>g(k.target.value),children:[d.jsxs("option",{value:"all",children:["全部分组 (",yt.tags,")"]}),Mr.map(k=>d.jsxs("option",{value:k.name,children:[k.name," (",k.count,")"]},k.name))]})]}),d.jsxs("label",{className:"checkbox-line",children:[d.jsx("input",{type:"checkbox",checked:E,onChange:k=>O(k.target.checked)}),"仅看有请求体"]})]}),d.jsx("div",{className:"method-tabs","aria-label":"method filters",children:Qg.map(k=>d.jsx("button",{className:N===k?"active":"",onClick:()=>S(k),title:k==="all"?"全部方法":k.toUpperCase(),children:k==="all"?"ALL":k.toUpperCase()},k))}),d.jsxs("div",{className:"endpoint-count",children:["显示 ",mn.length," / ",Rt.length]}),d.jsx("div",{className:"endpoint-list",children:mn.map(k=>d.jsxs("button",{className:`endpoint-item ${k.id===(_e==null?void 0:_e.id)?"selected":""}`,onClick:()=>Is(k.id),children:[d.jsx("span",{className:`method method-${k.method}`,children:k.method.toUpperCase()}),d.jsxs("span",{className:"endpoint-main",children:[d.jsx("strong",{children:k.summary}),d.jsx("small",{children:k.path})]})]},k.id))})]}),d.jsxs("main",{className:"detail-pane",children:[W.length?d.jsx("div",{className:"opened-api-tabs","aria-label":"已打开 API 页签",children:W.map(k=>d.jsxs("div",{className:`opened-api-tab opened-api-tab-${k.method} ${k.id===(_e==null?void 0:_e.id)?"active":""}`,role:"button",tabIndex:0,onClick:()=>Is(k.id),onKeyDown:z=>{z.key!=="Enter"&&z.key!==" "||(z.preventDefault(),Is(k.id))},title:`${k.method.toUpperCase()} ${k.path}`,children:[d.jsx("span",{className:`opened-api-tab-method method-${k.method}`,children:k.method.toUpperCase()}),d.jsx("span",{className:"opened-api-tab-text",children:d.jsx("strong",{children:k.summary})}),d.jsx("button",{type:"button",className:"opened-api-tab-close","aria-label":"关闭页签",onClick:z=>{z.stopPropagation(),Bi(k.id)},children:d.jsx(io,{size:14})})]},k.id))}):null,i&&_e?d.jsx(s0,{doc:i,endpoint:_e,copied:Ns,onCopy:(k,z)=>Di(k,z),onEdit:()=>{In(Rp(i,_e)),Ln({method:_e.method,path:_e.path}),ir(!0)},onDelete:()=>void Fi(_e),onSaveLinks:zr,linksDraft:ar??Gl(_e.operation["x-apiskill-links"]),onLinksDraftChange:k=>No(_e,k),environmentBaseUrl:(_t==null?void 0:_t.environmentBaseUrl)||""}):i?mn.length?d.jsxs("div",{className:"empty-state",children:[d.jsx(jr,{size:32}),d.jsx("h2",{children:"未打开接口"}),d.jsx("p",{children:"从左侧列表选择接口后会在上方生成可关闭页签。"})]}):d.jsxs("div",{className:"empty-state",children:[d.jsx(jr,{size:32}),d.jsx("h2",{children:"没有匹配的接口"}),d.jsx("p",{children:"调整搜索词、分组或方法过滤条件。"})]}):d.jsxs("div",{className:"empty-state",children:[d.jsx(jr,{size:32}),d.jsx("h2",{children:"暂无 API 文档数据"}),d.jsx("p",{children:"导入现有 Swagger/OpenAPI 文档,或新建空白文档后从零维护接口。"})]})]})]})]})}function Yg({state:i,username:n,password:r,onUsernameChange:l,onPasswordChange:a,onClose:u,onSubmit:p}){return d.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true","aria-labelledby":"document-auth-title",children:d.jsxs("div",{className:"auth-dialog",children:[d.jsxs("div",{className:"import-dialog-header",children:[d.jsxs("div",{children:[d.jsx("p",{className:"eyebrow",children:"Document Auth"}),d.jsx("h2",{id:"document-auth-title",children:"输入文档访问凭据"})]}),d.jsx("span",{className:"import-badge running",children:"需要登录"})]}),d.jsxs("div",{className:"auth-dialog-body",children:[d.jsxs("div",{className:"auth-message",children:[d.jsx(Mm,{size:18}),d.jsx("span",{children:i.message})]}),d.jsxs("div",{className:"auth-target",children:[d.jsx("span",{children:"文档地址"}),d.jsx("strong",{children:i.inputUrl})]}),d.jsxs("div",{className:"auth-fields",children:[d.jsxs("label",{children:["用户名",d.jsx("input",{value:n,onChange:h=>l(h.target.value),autoComplete:"username",autoFocus:!0})]}),d.jsxs("label",{children:["密码",d.jsx("input",{value:r,onChange:h=>a(h.target.value),type:"password",autoComplete:"current-password",onKeyDown:h=>{h.key==="Enter"&&p()}})]})]})]}),d.jsxs("div",{className:"import-dialog-actions",children:[d.jsx("button",{className:"secondary-button",onClick:u,children:"取消"}),d.jsxs("button",{className:"primary-button",onClick:p,children:[d.jsx(Jd,{size:16}),"使用凭据继续"]})]})]})})}function Gg({updating:i,title:n,version:r,description:l,saving:a,onTitleChange:u,onVersionChange:p,onDescriptionChange:h,onClose:y,onSubmit:g}){return d.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true","aria-labelledby":"blank-document-title",children:d.jsxs("div",{className:"auth-dialog",children:[d.jsxs("div",{className:"import-dialog-header",children:[d.jsxs("div",{children:[d.jsx("p",{className:"eyebrow",children:"OpenAPI Document"}),d.jsx("h2",{id:"blank-document-title",children:i?"更新文档":"新建文档"})]}),d.jsx("button",{className:"icon-secondary-button",onClick:y,"aria-label":"关闭",disabled:a,children:d.jsx(io,{size:17})})]}),d.jsxs("div",{className:"blank-document-dialog-body",children:[d.jsxs("label",{className:"source-input",children:[d.jsx(jr,{size:16}),d.jsx("input",{value:n,onChange:N=>u(N.target.value),placeholder:"文档名称,例如 Customer Service API",autoFocus:!0})]}),d.jsxs("label",{className:"source-input",children:[d.jsx(ki,{size:16}),d.jsx("input",{value:r,onChange:N=>p(N.target.value),placeholder:"文档版本,例如 1.0.0"})]}),d.jsxs("label",{className:"source-input",children:[d.jsx(Au,{size:16}),d.jsx("input",{value:l,onChange:N=>h(N.target.value),placeholder:"文档描述,可选"})]})]}),d.jsxs("div",{className:"import-dialog-actions",children:[d.jsx("button",{className:"secondary-button",onClick:y,disabled:a,children:"取消"}),d.jsxs("button",{className:"primary-button",onClick:g,disabled:a||!n.trim(),children:[d.jsx(ki,{size:16,className:a?"spin":""}),a?"处理中":i?"更新":"创建"]})]})]})})}function Xg({state:i,onClose:n}){var a,u,p,h,y;const r=i.mode==="blank"?"新建空白文档":i.mode==="crawl"?"爬取在线文档":i.mode==="curl"?"执行 CURL":i.mode==="upload"?"上传 JSON / YAML 文件":"导入 JSON / YAML 文件",l=i.status!=="running";return d.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true","aria-labelledby":"import-status-title",children:d.jsxs("div",{className:"import-dialog",children:[d.jsxs("div",{className:"import-dialog-header",children:[d.jsxs("div",{children:[d.jsx("p",{className:"eyebrow",children:"OpenAPI Import"}),d.jsx("h2",{id:"import-status-title",children:r})]}),d.jsx("span",{className:`import-badge ${i.status}`,children:i.status==="running"?"处理中":i.status==="success"?"已完成":"失败"})]}),d.jsx("div",{className:"progress-track","aria-label":"导入进度",children:d.jsx("div",{className:`progress-bar ${i.status}`,style:{width:`${i.progress}%`}})}),d.jsxs("div",{className:"import-summary",children:[d.jsxs("div",{children:[d.jsx("span",{children:"输入地址"}),d.jsx("strong",{children:i.inputUrl||"-"})]}),d.jsxs("div",{children:[d.jsx("span",{children:"当前状态"}),d.jsx("strong",{children:i.message})]}),(a=i.meta)!=null&&a.resolvedUrl?d.jsxs("div",{children:[d.jsx("span",{children:"解析地址"}),d.jsx("strong",{children:i.meta.resolvedUrl})]}):null,(u=i.meta)!=null&&u.versionId?d.jsxs("div",{children:[d.jsx("span",{children:"版本"}),d.jsx("strong",{children:i.meta.versionId})]}):null,(p=i.meta)!=null&&p.savedPath?d.jsxs("div",{children:[d.jsx("span",{children:"保存位置"}),d.jsx("strong",{children:i.meta.savedPath})]}):null,i.status==="success"?d.jsxs("div",{className:"import-counts",children:[d.jsxs("span",{children:["接口路径 ",((h=i.meta)==null?void 0:h.paths)??0]}),d.jsxs("span",{children:["Schema ",((y=i.meta)==null?void 0:y.schemas)??0]})]}):null,i.error?d.jsxs("div",{className:"import-error",children:[d.jsx(ji,{size:16}),i.error]}):null]}),d.jsx("div",{className:"import-dialog-actions",children:d.jsx("button",{className:"secondary-button",onClick:n,disabled:!l,children:l?"关闭":"处理中"})})]})})}async function Zg(i,n,r,l,a){const u=await fetch(eg,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({url:i,mode:n,auth:r,content:l,versionId:a})}),p=await u.json();if(!u.ok)throw new Error(p.error||"导入失败");return p}async function e0(i){const n=await fetch(tg,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(i)}),r=await n.json();if(!n.ok)throw new Error(r.error||"创建文档失败");return r}async function t0(i,n){const r=await fetch(ng,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({url:i,mode:n})}),l=await r.json();if(!r.ok)throw new Error(l.error||"检测文档访问权限失败");return l}async function n0(i,n,r){const l=await fetch(fg,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({versionId:i,config:n,replaceTarget:r})}),a=await l.json();if(!l.ok)throw new Error(a.error||"新增接口保存失败");return a}async function r0(i,n,r){const l=await fetch(dg,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({versionId:i,method:n,path:r})}),a=await l.json();if(!l.ok)throw new Error(a.error||"删除接口失败");return a}function s0({doc:i,endpoint:n,copied:r,onCopy:l,onEdit:a,onDelete:u,onSaveLinks:p,linksDraft:h,onLinksDraftChange:y,environmentBaseUrl:g}){const N=A.useMemo(()=>Mp(i,n.operation.parameters),[i,n]),S=A.useMemo(()=>Sg(i,n.operation),[i,n]),E=A.useMemo(()=>jg(i,n.operation),[i,n]),O=A.useMemo(()=>xg(i,n),[i,n]),P=A.useMemo(()=>Ng(n),[n]),[j,I]=A.useState("ai"),[R,W]=A.useState(!1),F=j==="json"?P:O,H=j==="json"?"复制原始 Operation":"复制 API CLI";function X(){zp(n.path),navigator.clipboard.writeText(n.path).catch(()=>{}),W(!0),window.setTimeout(()=>W(!1),1600)}return d.jsxs("article",{className:"endpoint-detail",children:[d.jsxs("div",{className:"detail-header",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"endpoint-title-line",children:[d.jsx("span",{className:`method method-${n.method}`,children:n.method.toUpperCase()}),d.jsx("h2",{children:n.summary}),d.jsx("div",{className:"tag-row",children:n.tags.map(V=>d.jsx("span",{children:V},V))})]}),d.jsxs("div",{className:"path-row",children:[d.jsx("code",{className:"path-line",children:n.path}),d.jsxs("button",{type:"button",className:"path-copy-button",onClick:X,title:"复制 API 路由地址",children:[R?d.jsx(Si,{size:14}):d.jsx(mi,{size:14}),d.jsx("span",{children:R?"已复制":"复制"})]})]})]}),d.jsxs("div",{className:"detail-actions",children:[d.jsxs("button",{className:"secondary-button",onClick:a,children:[d.jsx(Au,{size:15}),"编辑"]}),d.jsxs("button",{className:"danger-button",onClick:u,children:[d.jsx(fo,{size:15}),"删除"]})]})]}),n.operation.description?d.jsx("p",{className:"description",children:n.operation.description}):null,d.jsxs("section",{className:"copy-preview",children:[d.jsxs("div",{className:"copy-preview-toolbar",children:[d.jsxs("div",{className:"copy-tabs",role:"tablist","aria-label":"可复制内容",children:[d.jsxs("button",{className:j==="ai"?"active":"",onClick:()=>I("ai"),role:"tab","aria-selected":j==="ai",children:[d.jsx(mi,{size:15}),"API Cli"]}),d.jsxs("button",{className:j==="json"?"active":"",onClick:()=>I("json"),role:"tab","aria-selected":j==="json",children:[d.jsx(ki,{size:15}),"原始 Operation"]}),d.jsxs("button",{className:j==="test"?"active":"",onClick:()=>I("test"),role:"tab","aria-selected":j==="test",children:[d.jsx(so,{size:15}),"测试请求"]}),d.jsxs("button",{className:j==="links"?"active":"",onClick:()=>I("links"),role:"tab","aria-selected":j==="links",children:[d.jsx(no,{size:15}),"关联地址"]})]}),j==="test"||j==="links"?null:d.jsxs("button",{className:"copy-inline-button",onClick:()=>l(j,F),children:[r===j?d.jsx(Si,{size:16}):d.jsx(mi,{size:16}),r===j?"已复制":H]})]}),j==="test"?d.jsx(l0,{doc:i,endpoint:n,environmentBaseUrl:g}):j==="links"?d.jsx(i0,{endpoint:n,links:h,onChange:y,onSave:V=>p(n,V)}):d.jsx("pre",{className:"copy-preview-content",children:F})]}),d.jsx(ku,{title:"请求参数",count:N.length,children:d.jsx(Su,{rows:N,empty:"无 query / path / header 参数"})}),d.jsx(ku,{title:"请求体",count:Object.values(S).reduce((V,Q)=>V+Q.length,0),children:Object.keys(S).length?Object.entries(S).map(([V,Q])=>d.jsxs("div",{className:"media-block",children:[d.jsx("h4",{children:V}),d.jsx(Su,{rows:Q,empty:"空对象或无字段说明"})]},V)):d.jsx("p",{className:"muted",children:"无请求体"})}),d.jsx(ku,{title:"响应字段",count:Object.values(E).reduce((V,Q)=>V+Object.values(Q).flat().length,0),children:Object.keys(n.operation.responses??{}).length?Object.entries(n.operation.responses??{}).map(([V,Q])=>{const M=E[V]??{};return d.jsxs("div",{className:"response-block",children:[d.jsxs("div",{className:"response-heading",children:[d.jsx("strong",{children:V}),d.jsx("span",{children:Q.description||"无描述"})]}),Object.keys(M).length?Object.entries(M).map(([ae,Y])=>d.jsxs("div",{className:"media-block",children:[d.jsx("h4",{children:ae}),d.jsx(Su,{rows:Y,empty:"空对象或无字段说明"})]},ae)):d.jsx("p",{className:"muted",children:"无字段说明"})]},V)}):d.jsx("p",{className:"muted",children:"无响应说明"})})]})}function i0({endpoint:i,links:n,onChange:r,onSave:l}){const[a,u]=A.useState(!1),[p,h]=A.useState("");A.useEffect(()=>{h("")},[i.id]);async function y(){u(!0),h("");try{await l(n),h("关联配置已保存")}catch(g){h(g instanceof Error?g.message:"关联配置保存失败")}finally{u(!1)}}return d.jsxs("div",{className:"endpoint-links-config",children:[p?d.jsx("div",{className:`version-message ${p.includes("失败")?"error":""}`,children:p}):null,d.jsxs("div",{className:"links-grid",children:[d.jsx(Kd,{title:"原型地址",value:n.prototype??Tu(),onChange:g=>r({...n,prototype:g})}),d.jsx(Kd,{title:"UI地址",value:n.ui??Tu(),onChange:g=>r({...n,ui:g})})]}),d.jsx("div",{className:"links-actions",children:d.jsxs("button",{className:"primary-button",onClick:y,disabled:a,children:[d.jsx(Si,{size:16}),a?"保存中":"保存关联配置"]})})]})}function Kd({title:i,value:n,onChange:r}){const l=n.sourceType==="online",a=n.sourceType==="curl";function u(h){r({...n,...h})}function p(){const h=a?n.curl:n.url;h&&(zp(h),navigator.clipboard.writeText(h).catch(()=>{}))}return d.jsxs("section",{className:"tester-panel link-editor-panel",children:[d.jsxs("div",{className:"tester-panel-title",children:[d.jsx(no,{size:15}),i]}),d.jsxs("div",{className:"tester-form-grid",children:[d.jsxs("label",{children:["类型",d.jsxs("select",{value:n.sourceType||"local",onChange:h=>u({sourceType:h.target.value}),children:[d.jsx("option",{value:"local",children:"本地文件地址"}),d.jsx("option",{value:"online",children:"在线地址"}),d.jsx("option",{value:"curl",children:"CURL"})]})]}),d.jsxs("label",{children:["标题",d.jsx("input",{value:n.title||"",onChange:h=>u({title:h.target.value}),placeholder:"例如 Figma 原型 / 用户列表页面"})]}),a?d.jsxs("label",{className:"span-all",children:["CURL 命令",d.jsx("textarea",{value:n.curl||"",onChange:h=>u({curl:h.target.value}),placeholder:"curl 'https://example.com/prototype' -H 'Authorization: Bearer ...'",spellCheck:!1})]}):d.jsxs("label",{className:"span-all",children:["地址",d.jsx("input",{value:n.url||"",onChange:h=>u({url:h.target.value}),placeholder:l?"https://example.com/prototype":"/Users/name/project/design/user-list.fig"})]}),l?d.jsxs(d.Fragment,{children:[d.jsxs("label",{children:["访问方式",d.jsxs("select",{value:n.authType||"none",onChange:h=>u({authType:h.target.value}),children:[d.jsx("option",{value:"none",children:"无需登录"}),d.jsx("option",{value:"browser",children:"浏览器登录 / Cookie"}),d.jsx("option",{value:"bearer",children:"Bearer Token"}),d.jsx("option",{value:"header",children:"自定义 Header"})]})]}),n.authType==="header"?d.jsxs("label",{children:["Header 名称",d.jsx("input",{value:n.headerName||"",onChange:h=>u({headerName:h.target.value}),placeholder:"X-Auth-Token"})]}):null,n.authType==="bearer"||n.authType==="header"?d.jsxs("label",{className:"span-all",children:["Token / Header 值",d.jsx("input",{value:n.token||"",onChange:h=>u({token:h.target.value}),placeholder:"仅保存在本地文档缓存中,用于记录访问凭据",type:"password"})]}):null]}):null,d.jsxs("label",{className:"span-all",children:["备注",d.jsx("input",{value:n.note||"",onChange:h=>u({note:h.target.value}),placeholder:a?"例如 CURL 里的 token 来源、过期方式或请求前置条件":l?"例如需要先登录公司 SSO,或 token 过期时找谁更新":"例如本地原型文件位置、分支或打开方式"})]})]}),d.jsxs("div",{className:"link-editor-actions",children:[d.jsxs("button",{className:"secondary-button",onClick:p,disabled:!(a?n.curl:n.url),children:[d.jsx(mi,{size:15}),a?"复制CURL":"复制地址"]}),l&&n.url?d.jsxs("a",{className:"secondary-button link-button",href:n.url,target:"_blank",rel:"noreferrer",children:[d.jsx(no,{size:15}),"打开地址"]}):null]})]})}function Gl(i){return{prototype:qd(i==null?void 0:i.prototype),ui:qd(i==null?void 0:i.ui)}}function qd(i){const n=(i==null?void 0:i.sourceType)==="online"||(i==null?void 0:i.sourceType)==="curl"?i.sourceType:"local";return{...Tu(),...i??{},sourceType:n,authType:(i==null?void 0:i.authType)||"none"}}function Tu(){return{sourceType:"local",title:"",url:"",curl:"",authType:"none",token:"",headerName:"",note:""}}function l0({doc:i,endpoint:n,environmentBaseUrl:r}){const l=n.operation.parameters??[],a=l.filter(K=>K.in==="path"),u=l.filter(K=>K.in==="query"),p=l.filter(K=>K.in==="header"),h=A.useMemo(()=>o0(n),[n]),y=A.useRef(""),[g,N]=A.useState(""),[S,E]=A.useState("none"),[O,P]=A.useState(""),[j,I]=A.useState("Authorization"),[R,W]=A.useState("header"),[F,H]=A.useState(""),[X,V]=A.useState(""),[Q,M]=A.useState({}),[ae,Y]=A.useState({}),[te,Z]=A.useState(""),[de,Le]=A.useState(`{
296
+ "Content-Type": "application/json"
297
+ }`),[Te,De]=A.useState(!1),[je,q]=A.useState(""),[ne,G]=A.useState(null);A.useEffect(()=>{M({}),Y({}),G(null),q(""),Z(h!=null&&h.schema?JSON.stringify(_u(i,h.schema),null,2):""),Le(h?`{
298
+ "Content-Type": "application/json"
299
+ }`:"{}")},[i,n.id,h]),A.useEffect(()=>{const K=r.trim();N(ye=>{const pe=y.current;return y.current=K,!ye||ye===pe?K:ye})},[r]);const C=A.useMemo(()=>{try{return Hd(g,n.path,l,Q,R==="query"?{[j]:O}:{})}catch{return n.path}},[R,j,O,g,n.path,l,Q]);function b(){const K={},ye={};l.forEach((pe,xe)=>{const ke=Ei(pe,xe),Ce=f0(a0(i,pe));(pe.in==="path"||pe.in==="query")&&(K[ke]=Ce),pe.in==="header"&&(ye[ke]=Ce)}),M(K),Y(ye),h!=null&&h.schema&&!["get","head"].includes(n.method)?(Z(JSON.stringify(Nr(i,h.schema),null,2)),Le(JSON.stringify({...p0(de),"Content-Type":h.mediaType},null,2))):Z(""),G(null),q("")}async function he(){De(!0),q(""),G(null);try{const K=Dp(de),ye=d0({customHeaders:K,headerParams:p,headerValues:ae,authType:S,authValue:O,apiKeyName:j,apiKeyLocation:R,basicUsername:F,basicPassword:X}),pe=Hd(g,n.path,l,Q,R==="query"?{[j]:O}:{}),xe=["get","head"].includes(n.method)?void 0:te.trim()||void 0,ke=await h0({url:pe,method:n.method.toUpperCase(),headers:ye,body:xe});G(ke)}catch(K){q(K instanceof Error?K.message:"请求失败")}finally{De(!1)}}return d.jsxs("div",{className:"request-tester",children:[d.jsxs("div",{className:"request-line",children:[d.jsx("span",{className:`method method-${n.method}`,children:n.method.toUpperCase()}),d.jsxs("label",{children:["Base URL",d.jsx("input",{value:g,onChange:K=>N(K.target.value),placeholder:"https://api.example.com"})]}),d.jsxs("div",{className:"request-actions",children:[d.jsxs("button",{className:"primary-button",onClick:he,disabled:Te,children:[d.jsx(so,{size:16}),Te?"请求中":"发送请求"]}),d.jsxs("button",{className:"secondary-button",onClick:b,disabled:Te,children:[d.jsx(ki,{size:16}),"MOCK数据"]})]})]}),d.jsx("code",{className:"request-preview",children:C}),d.jsxs("div",{className:"tester-grid",children:[d.jsxs("section",{className:"tester-panel",children:[d.jsxs("div",{className:"tester-panel-title",children:[d.jsx(Jd,{size:15}),"鉴权"]}),d.jsxs("div",{className:"tester-form-grid",children:[d.jsxs("label",{children:["类型",d.jsxs("select",{value:S,onChange:K=>E(K.target.value),children:[d.jsx("option",{value:"none",children:"None"}),d.jsx("option",{value:"bearer",children:"Bearer Token"}),d.jsx("option",{value:"jwt",children:"JWT Token"}),d.jsx("option",{value:"apiKey",children:"API Key"}),d.jsx("option",{value:"basic",children:"Basic Auth"})]})]}),S==="apiKey"?d.jsxs(d.Fragment,{children:[d.jsxs("label",{children:["Key 名称",d.jsx("input",{value:j,onChange:K=>I(K.target.value),placeholder:"X-API-Key"})]}),d.jsxs("label",{children:["位置",d.jsxs("select",{value:R,onChange:K=>W(K.target.value),children:[d.jsx("option",{value:"header",children:"Header"}),d.jsx("option",{value:"query",children:"Query"})]})]}),d.jsxs("label",{children:["Value",d.jsx("input",{value:O,onChange:K=>P(K.target.value),placeholder:"api key value"})]})]}):S==="basic"?d.jsxs(d.Fragment,{children:[d.jsxs("label",{children:["Username",d.jsx("input",{value:F,onChange:K=>H(K.target.value)})]}),d.jsxs("label",{children:["Password",d.jsx("input",{value:X,onChange:K=>V(K.target.value),type:"password"})]})]}):S!=="none"?d.jsxs("label",{children:["Token",d.jsx("input",{value:O,onChange:K=>P(K.target.value),placeholder:"token"})]}):null]})]}),d.jsxs("section",{className:"tester-panel",children:[d.jsx("div",{className:"tester-panel-title",children:"参数"}),d.jsx(wu,{title:"Path",parameters:a,values:Q,onChange:M}),d.jsx(wu,{title:"Query",parameters:u,values:Q,onChange:M}),d.jsx(wu,{title:"Header",parameters:p,values:ae,onChange:Y})]})]}),d.jsxs("div",{className:"tester-grid",children:[d.jsxs("section",{className:"tester-panel",children:[d.jsx("div",{className:"tester-panel-title",children:"请求头 JSON"}),d.jsx("textarea",{value:de,onChange:K=>Le(K.target.value),spellCheck:!1})]}),d.jsxs("section",{className:"tester-panel",children:[d.jsxs("div",{className:"tester-panel-title",children:["请求体 ",h?`(${h.mediaType})`:""]}),d.jsx("textarea",{value:te,onChange:K=>Z(K.target.value),disabled:!h||["get","head"].includes(n.method),spellCheck:!1,placeholder:h?"JSON / raw body":"该接口没有请求体"})]})]}),je?d.jsxs("div",{className:"import-error",children:[d.jsx(ji,{size:16}),je]}):null,d.jsxs("section",{className:"tester-panel response-panel",children:[d.jsx("div",{className:"tester-panel-title",children:"响应"}),ne?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"response-meta-line",children:[d.jsxs("span",{className:ne.status>=200&&ne.status<300?"status-ok":"status-error",children:[ne.status," ",ne.statusText]}),d.jsxs("span",{children:[ne.elapsedMs,"ms"]}),d.jsx("span",{children:ne.url})]}),d.jsx("pre",{children:m0(ne.body)})]}):d.jsx("p",{className:"muted",children:"发送请求后显示响应内容。"})]})]})}function wu({title:i,parameters:n,values:r,onChange:l}){return n.length?d.jsxs("div",{className:"param-editor",children:[d.jsx("h4",{children:i}),n.map((a,u)=>{var h;const p=Ei(a,u);return d.jsxs("label",{children:[d.jsxs("span",{children:[a.name,a.required?d.jsx("b",{children:"*"}):null]}),d.jsx("input",{value:r[p]??"",onChange:y=>l({...r,[p]:y.target.value}),placeholder:a.description||((h=a.schema)==null?void 0:h.description)||""})]},p)})]}):null}function o0(i){var p,h,y,g;const n=((p=i.operation.requestBody)==null?void 0:p.content)??{},r=Object.entries(n),a=r.find(([N])=>N.includes("json"))??r[0],u=(h=i.operation.parameters)==null?void 0:h.find(N=>N.in==="body");if(!a&&(u!=null&&u.schema))return{mediaType:((y=i.operation.consumes)==null?void 0:y.find(N=>N.includes("json")))??((g=i.operation.consumes)==null?void 0:g[0])??"application/json",schema:u.schema};if(a)return{mediaType:a[0],schema:a[1].schema}}function _u(i,n,r=0,l=new Set){var p;if(!n||r>8)return{};const a=Pt(i,n)??n;if(l.has(a))return{};if(l.add(a),a.default!==void 0)return a.default;if((p=a.enum)!=null&&p.length)return a.enum[0];if(a.type==="array")return[_u(i,a.items,r+1,l)];if(a.type==="integer"||a.type==="number")return 0;if(a.type==="boolean")return!1;if(a.type==="string")return"";const u=a.properties??{};return Object.fromEntries(Object.entries(u).map(([h,y])=>[h,_u(i,y,r+1,new Set(l))]))}function a0(i,n){var l;if(n.default!==void 0)return n.default;if((l=n.enum)!=null&&l.length)return n.enum[0];const r=u0(n);return Nr(i,r,n.name)}function Nr(i,n,r="",l=0,a=new Set){var N,S,E,O;if(!n||l>8)return Iu(r)??"mock-value";const u=Pt(i,n)??n;if(a.has(u))return{};const p=new Set(a);if(p.add(u),u.default!==void 0)return u.default;if(n.default!==void 0)return n.default;if((N=u.enum)!=null&&N.length)return u.enum[0];if((S=n.enum)!=null&&S.length)return n.enum[0];const h=Iu(r,u.format||n.format),y=u.type||n.type||(u.properties?"object":"");if(h!==void 0&&(!y||y==="string"||y==="integer"||y==="number"))return h;if((E=u.oneOf)!=null&&E.length)return Nr(i,u.oneOf[0],r,l+1,p);if((O=u.anyOf)!=null&&O.length)return Nr(i,u.anyOf[0],r,l+1,p);if(y==="array")return[Nr(i,u.items,r,l+1,p)];if(y==="integer"||y==="number")return c0(r);if(y==="boolean")return!0;if(y==="string")return h??"mock-value";const g=u.properties??{};return Object.keys(g).length?Object.fromEntries(Object.entries(g).map(([P,j])=>[P,Nr(i,j,P,l+1,p)])):u.additionalProperties&&typeof u.additionalProperties=="object"?{key:Nr(i,u.additionalProperties,"value",l+1,p)}:h??{}}function u0(i){var n;if(i.schema)return i.schema;if(!(!i.type&&!i.format&&!i.items&&!((n=i.enum)!=null&&n.length)&&i.default===void 0))return{type:i.type,format:i.format,items:i.items,enum:i.enum,default:i.default,description:i.description}}function Iu(i,n=""){const r=i.toLowerCase().replace(/[^a-z0-9]/g,"");if(n==="date-time")return new Date().toISOString();if(n==="date")return new Date().toISOString().slice(0,10);if(n==="email"||r.includes("email"))return"mock@example.com";if(n==="uuid"||r.includes("uuid"))return"00000000-0000-4000-8000-000000000000";if(r==="id"||r.endsWith("id")||r==="page"||r==="pagenum"||r==="pageindex")return 1;if(r==="pagesize"||r==="limit"||r==="size")return 10;if(r.includes("phone")||r.includes("mobile"))return"13800000000";if(r.includes("name")||r.includes("title")||r.includes("keyword"))return"mock-name";if(r.includes("url"))return"https://example.com";if(r.includes("date"))return new Date().toISOString().slice(0,10);if(r.includes("time"))return new Date().toISOString()}function c0(i){const n=Iu(i);return typeof n=="number"?n:1}function f0(i){return i==null?"":typeof i=="string"?i:typeof i=="number"||typeof i=="boolean"?String(i):JSON.stringify(i)}function Ei(i,n){return`${i.in}-${i.name}-${n}`}function Hd(i,n,r,l,a){if(!i.trim()&&!/^https?:\/\//i.test(n))throw new Error("请输入 Base URL,例如 https://api.example.com");const u=i.trim()||void 0;let p=n;r.forEach((y,g)=>{if(y.in!=="path")return;const N=l[Ei(y,g)]??"";p=p.replace(new RegExp(`\\{${y0(y.name)}\\}`,"g"),encodeURIComponent(N))});const h=new URL(p,u);return r.forEach((y,g)=>{if(y.in!=="query")return;const N=l[Ei(y,g)]??"";N&&h.searchParams.append(y.name,N)}),Object.entries(a).forEach(([y,g])=>{y.trim()&&g.trim()&&h.searchParams.set(y.trim(),g.trim())}),h.toString()}function d0({customHeaders:i,headerParams:n,headerValues:r,authType:l,authValue:a,apiKeyName:u,apiKeyLocation:p,basicUsername:h,basicPassword:y}){const g={...i};return n.forEach((N,S)=>{const E=r[Ei(N,S)];E&&(g[N.name]=E)}),(l==="bearer"||l==="jwt")&&a.trim()&&(g.Authorization=`Bearer ${a.trim()}`),l==="apiKey"&&p==="header"&&u.trim()&&a.trim()&&(g[u.trim()]=a.trim()),l==="basic"&&(h||y)&&(g.Authorization=`Basic ${btoa(`${h}:${y}`)}`),g}function Dp(i){if(!i.trim())return{};const n=JSON.parse(i);return Object.fromEntries(Object.entries(n).map(([r,l])=>[r,String(l)]))}function p0(i){try{return Dp(i)}catch{return{}}}async function h0(i){const n=await fetch("/api/request/send",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(i)}),r=await n.json();if(!n.ok)throw new Error(r.error||"请求失败");return r}function m0(i){try{return JSON.stringify(JSON.parse(i),null,2)}catch{return i}}function zp(i){const n=document.createElement("textarea");n.value=i,n.setAttribute("readonly","true"),n.style.position="fixed",n.style.left="-9999px",n.style.top="0",document.body.appendChild(n),n.focus(),n.select();try{return document.execCommand("copy")}finally{document.body.removeChild(n)}}function y0(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ku({title:i,count:n,children:r}){return d.jsxs("section",{className:"detail-section",children:[d.jsxs("div",{className:"section-title",children:[d.jsx("h3",{children:i}),d.jsx("span",{children:n})]}),r]})}function Su({rows:i,empty:n}){return i.length?d.jsx("div",{className:"table-wrap",children:d.jsxs("table",{children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"字段"}),d.jsx("th",{children:"位置"}),d.jsx("th",{children:"必填"}),d.jsx("th",{children:"类型"}),d.jsx("th",{children:"说明"}),d.jsx("th",{children:"默认值"}),d.jsx("th",{children:"枚举"})]})}),d.jsx("tbody",{children:i.map((r,l)=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{style:{paddingLeft:r.depth*16},children:r.name})}),d.jsx("td",{children:r.location||"-"}),d.jsx("td",{children:r.required?"是":"否"}),d.jsx("td",{children:r.type}),d.jsx("td",{children:r.description||"-"}),d.jsx("td",{children:r.defaultValue||"-"}),d.jsx("td",{children:r.enumValue||"-"})]},`${r.location}-${r.path}-${r.depth}-${l}`))})]})}):d.jsx("p",{className:"muted",children:n})}function g0(i){const n=new Date(i);return Number.isNaN(n.getTime())?i:n.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}Tm.createRoot(document.getElementById("root")).render(d.jsx(Sm.StrictMode,{children:d.jsx(Jg,{})}));