- 新增 ToastProvider 和 useToast hook,支持全局成功/错误/信息提示 - 资产预览增加左右导航按钮、键盘快捷键(方向键)和计数器显示 - 资产库增加图片/视频类型筛选标签页及计数 - 对话列表增加最近对话展示、搜索优化和删除确认 - 消息增加删除确认对话框 - 优化聊天自动滚动行为,仅在用户未手动滚动时跟随新内容 - 新增删除消息 API 端点 - 优化消息历史清理逻辑,过滤错误消息和孤儿 tool 消息 - 添加自定义滚动条样式 - 优化账户参考图显示逻辑,支持本地文件显示 - 修复对话创建流程,直接导航到新创建的对话
316 lines
409 KiB
JavaScript
316 lines
409 KiB
JavaScript
var Jp=Object.defineProperty;var Xp=(e,t,n)=>t in e?Jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ju=(e,t,n)=>Xp(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))u(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&u(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function u(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z0={exports:{}},Xo={},N0={exports:{}},U={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Ar=Symbol.for("react.element"),t1=Symbol.for("react.portal"),n1=Symbol.for("react.fragment"),u1=Symbol.for("react.strict_mode"),r1=Symbol.for("react.profiler"),o1=Symbol.for("react.provider"),i1=Symbol.for("react.context"),l1=Symbol.for("react.forward_ref"),a1=Symbol.for("react.suspense"),s1=Symbol.for("react.memo"),c1=Symbol.for("react.lazy"),Ns=Symbol.iterator;function d1(e){return e===null||typeof e!="object"?null:(e=Ns&&e[Ns]||e["@@iterator"],typeof e=="function"?e:null)}var j0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R0=Object.assign,T0={};function yu(e,t,n){this.props=e,this.context=t,this.refs=T0,this.updater=n||j0}yu.prototype.isReactComponent={};yu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};yu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function P0(){}P0.prototype=yu.prototype;function fa(e,t,n){this.props=e,this.context=t,this.refs=T0,this.updater=n||j0}var pa=fa.prototype=new P0;pa.constructor=fa;R0(pa,yu.prototype);pa.isPureReactComponent=!0;var js=Array.isArray,M0=Object.prototype.hasOwnProperty,ha={current:null},L0={key:!0,ref:!0,__self:!0,__source:!0};function I0(e,t,n){var u,r={},o=null,i=null;if(t!=null)for(u in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)M0.call(t,u)&&!L0.hasOwnProperty(u)&&(r[u]=t[u]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+2];r.children=a}if(e&&e.defaultProps)for(u in l=e.defaultProps,l)r[u]===void 0&&(r[u]=l[u]);return{$$typeof:Ar,type:e,key:o,ref:i,props:r,_owner:ha.current}}function f1(e,t){return{$$typeof:Ar,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ma(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ar}function p1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rs=/\/+/g;function Ci(e,t){return typeof e=="object"&&e!==null&&e.key!=null?p1(""+e.key):t.toString(36)}function ao(e,t,n,u,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ar:case t1:i=!0}}if(i)return i=e,r=r(i),e=u===""?"."+Ci(i,0):u,js(r)?(n="",e!=null&&(n=e.replace(Rs,"$&/")+"/"),ao(r,t,n,"",function(s){return s})):r!=null&&(ma(r)&&(r=f1(r,n+(!r.key||i&&i.key===r.key?"":(""+r.key).replace(Rs,"$&/")+"/")+e)),t.push(r)),1;if(i=0,u=u===""?".":u+":",js(e))for(var l=0;l<e.length;l++){o=e[l];var a=u+Ci(o,l);i+=ao(o,t,n,a,r)}else if(a=d1(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=u+Ci(o,l++),i+=ao(o,t,n,a,r);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Br(e,t,n){if(e==null)return e;var u=[],r=0;return ao(e,u,"","",function(o){return t.call(n,o,r++)}),u}function h1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},so={transition:null},m1={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:so,ReactCurrentOwner:ha};function O0(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Br,forEach:function(e,t,n){Br(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Br(e,function(){t++}),t},toArray:function(e){return Br(e,function(t){return t})||[]},only:function(e){if(!ma(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=yu;U.Fragment=n1;U.Profiler=r1;U.PureComponent=fa;U.StrictMode=u1;U.Suspense=a1;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m1;U.act=O0;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var u=R0({},e.props),r=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=ha.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)M0.call(t,a)&&!L0.hasOwnProperty(a)&&(u[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)u.children=n;else if(1<a){l=Array(a);for(var s=0;s<a;s++)l[s]=arguments[s+2];u.children=l}return{$$typeof:Ar,type:e.type,key:r,ref:o,props:u,_owner:i}};U.createContext=function(e){return e={$$typeof:i1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o1,_context:e},e.Consumer=e};U.createElement=I0;U.createFactory=function(e){var t=I0.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:l1,render:e}};U.isValidElement=ma;U.lazy=function(e){return{$$typeof:c1,_payload:{_status:-1,_result:e},_init:h1}};U.memo=function(e,t){return{$$typeof:s1,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=so.transition;so.transition={};try{e()}finally{so.transition=t}};U.unstable_act=O0;U.useCallback=function(e,t){return Pe.current.useCallback(e,t)};U.useContext=function(e){return Pe.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};U.useEffect=function(e,t){return Pe.current.useEffect(e,t)};U.useId=function(){return Pe.current.useId()};U.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Pe.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};U.useRef=function(e){return Pe.current.useRef(e)};U.useState=function(e){return Pe.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Pe.current.useTransition()};U.version="18.3.1";N0.exports=U;var k=N0.exports;const qu=e1(k);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var g1=k,x1=Symbol.for("react.element"),y1=Symbol.for("react.fragment"),v1=Object.prototype.hasOwnProperty,b1=g1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k1={key:!0,ref:!0,__self:!0,__source:!0};function $0(e,t,n){var u,r={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(u in t)v1.call(t,u)&&!k1.hasOwnProperty(u)&&(r[u]=t[u]);if(e&&e.defaultProps)for(u in t=e.defaultProps,t)r[u]===void 0&&(r[u]=t[u]);return{$$typeof:x1,type:e,key:o,ref:i,props:r,_owner:b1.current}}Xo.Fragment=y1;Xo.jsx=$0;Xo.jsxs=$0;z0.exports=Xo;var c=z0.exports,sl={},B0={exports:{}},Ye={},U0={exports:{}},H0={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(A,z){var T=A.length;A.push(z);e:for(;0<T;){var $=T-1>>>1,W=A[$];if(0<r(W,z))A[$]=z,A[T]=W,T=$;else break e}}function n(A){return A.length===0?null:A[0]}function u(A){if(A.length===0)return null;var z=A[0],T=A.pop();if(T!==z){A[0]=T;e:for(var $=0,W=A.length,wt=W>>>1;$<wt;){var re=2*($+1)-1,Le=A[re],Ne=re+1,Ve=A[Ne];if(0>r(Le,T))Ne<W&&0>r(Ve,Le)?(A[$]=Ve,A[Ne]=T,$=Ne):(A[$]=Le,A[re]=T,$=re);else if(Ne<W&&0>r(Ve,T))A[$]=Ve,A[Ne]=T,$=Ne;else break e}}return z}function r(A,z){var T=A.sortIndex-z.sortIndex;return T!==0?T:A.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],s=[],d=1,p=null,m=3,y=!1,g=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var z=n(s);z!==null;){if(z.callback===null)u(s);else if(z.startTime<=A)u(s),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(s)}}function v(A){if(w=!1,h(A),!g)if(n(a)!==null)g=!0,Y(b);else{var z=n(s);z!==null&&q(v,z.startTime-A)}}function b(A,z){g=!1,w&&(w=!1,x(S),S=-1),y=!0;var T=m;try{for(h(z),p=n(a);p!==null&&(!(p.expirationTime>z)||A&&!L());){var $=p.callback;if(typeof $=="function"){p.callback=null,m=p.priorityLevel;var W=$(p.expirationTime<=z);z=e.unstable_now(),typeof W=="function"?p.callback=W:p===n(a)&&u(a),h(z)}else u(a);p=n(a)}if(p!==null)var wt=!0;else{var re=n(s);re!==null&&q(v,re.startTime-z),wt=!1}return wt}finally{p=null,m=T,y=!1}}var _=!1,E=null,S=-1,F=5,N=-1;function L(){return!(e.unstable_now()-N<F)}function P(){if(E!==null){var A=e.unstable_now();N=A;var z=!0;try{z=E(!0,A)}finally{z?ue():(_=!1,E=null)}}else _=!1}var ue;if(typeof f=="function")ue=function(){f(P)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,O=M.port2;M.port1.onmessage=P,ue=function(){O.postMessage(null)}}else ue=function(){C(P,0)};function Y(A){E=A,_||(_=!0,ue())}function q(A,z){S=C(function(){A(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,Y(b))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(A){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var T=m;m=z;try{return A()}finally{m=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,z){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var T=m;m=A;try{return z()}finally{m=T}},e.unstable_scheduleCallback=function(A,z,T){var $=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?$+T:$):T=$,A){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=T+W,A={id:d++,callback:z,priorityLevel:A,startTime:T,expirationTime:W,sortIndex:-1},T>$?(A.sortIndex=T,t(s,A),n(a)===null&&A===n(s)&&(w?(x(S),S=-1):w=!0,q(v,T-$))):(A.sortIndex=W,t(a,A),g||y||(g=!0,Y(b))),A},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(A){var z=m;return function(){var T=m;m=z;try{return A.apply(this,arguments)}finally{m=T}}}})(H0);U0.exports=H0;var w1=U0.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var _1=k,Qe=w1;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var V0=new Set,or={};function Ln(e,t){su(e,t),su(e+"Capture",t)}function su(e,t){for(or[e]=t,e=0;e<t.length;e++)V0.add(t[e])}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cl=Object.prototype.hasOwnProperty,C1=/^[: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]*$/,Ts={},Ps={};function E1(e){return cl.call(Ps,e)?!0:cl.call(Ts,e)?!1:C1.test(e)?Ps[e]=!0:(Ts[e]=!0,!1)}function S1(e,t,n,u){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return u?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A1(e,t,n,u){if(t===null||typeof t>"u"||S1(e,t,n,u))return!0;if(u)return!1;if(n!==null)switch(n.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 Me(e,t,n,u,r,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=u,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Me(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){Se[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var ga=/[\-:]([a-z])/g;function xa(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(ga,xa);Se[t]=new Me(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(ga,xa);Se[t]=new Me(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(ga,xa);Se[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function ya(e,t,n,u){var r=Se.hasOwnProperty(t)?Se[t]:null;(r!==null?r.type!==0:u||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(A1(t,n,r,u)&&(n=null),u||r===null?E1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,u=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,u?e.setAttributeNS(u,t,n):e.setAttribute(t,n))))}var Gt=_1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ur=Symbol.for("react.element"),Hn=Symbol.for("react.portal"),Vn=Symbol.for("react.fragment"),va=Symbol.for("react.strict_mode"),dl=Symbol.for("react.profiler"),q0=Symbol.for("react.provider"),W0=Symbol.for("react.context"),ba=Symbol.for("react.forward_ref"),fl=Symbol.for("react.suspense"),pl=Symbol.for("react.suspense_list"),ka=Symbol.for("react.memo"),en=Symbol.for("react.lazy"),K0=Symbol.for("react.offscreen"),Ms=Symbol.iterator;function Ru(e){return e===null||typeof e!="object"?null:(e=Ms&&e[Ms]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,Ei;function Wu(e){if(Ei===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ei=t&&t[1]||""}return`
|
||
`+Ei+e}var Si=!1;function Ai(e,t){if(!e||Si)return"";Si=!0;var n=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(s){var u=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){u=s}e.call(t.prototype)}else{try{throw Error()}catch(s){u=s}e()}}catch(s){if(s&&u&&typeof s.stack=="string"){for(var r=s.stack.split(`
|
||
`),o=u.stack.split(`
|
||
`),i=r.length-1,l=o.length-1;1<=i&&0<=l&&r[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(r[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||r[i]!==o[l]){var a=`
|
||
`+r[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{Si=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wu(e):""}function F1(e){switch(e.tag){case 5:return Wu(e.type);case 16:return Wu("Lazy");case 13:return Wu("Suspense");case 19:return Wu("SuspenseList");case 0:case 2:case 15:return e=Ai(e.type,!1),e;case 11:return e=Ai(e.type.render,!1),e;case 1:return e=Ai(e.type,!0),e;default:return""}}function hl(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 Vn:return"Fragment";case Hn:return"Portal";case dl:return"Profiler";case va:return"StrictMode";case fl:return"Suspense";case pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W0:return(e.displayName||"Context")+".Consumer";case q0:return(e._context.displayName||"Context")+".Provider";case ba:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ka:return t=e.displayName||null,t!==null?t:hl(e.type)||"Memo";case en:t=e._payload,e=e._init;try{return hl(e(t))}catch{}}return null}function D1(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 hl(t);case 8:return t===va?"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 yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function G0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z1(e){var t=G0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),u=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){u=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return u},setValue:function(i){u=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hr(e){e._valueTracker||(e._valueTracker=z1(e))}function Q0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),u="";return e&&(u=G0(e)?e.checked?"true":"false":e.value),e=u,e!==n?(t.setValue(e),!0):!1}function Co(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 ml(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ls(e,t){var n=t.defaultValue==null?"":t.defaultValue,u=t.checked!=null?t.checked:t.defaultChecked;n=yn(t.value!=null?t.value:n),e._wrapperState={initialChecked:u,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Z0(e,t){t=t.checked,t!=null&&ya(e,"checked",t,!1)}function gl(e,t){Z0(e,t);var n=yn(t.value),u=t.type;if(n!=null)u==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xl(e,t.type,n):t.hasOwnProperty("defaultValue")&&xl(e,t.type,yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Is(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var u=t.type;if(!(u!=="submit"&&u!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xl(e,t,n){(t!=="number"||Co(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ku=Array.isArray;function tu(e,t,n,u){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&u&&(e[n].defaultSelected=!0)}else{for(n=""+yn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,u&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function yl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Os(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Ku(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:yn(n)}}function Y0(e,t){var n=yn(t.value),u=yn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),u!=null&&(e.defaultValue=""+u)}function $s(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function J0(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 vl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?J0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vr,X0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,u,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,u,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vr=Vr||document.createElement("div"),Vr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zu={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},N1=["Webkit","ms","Moz","O"];Object.keys(Zu).forEach(function(e){N1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zu[t]=Zu[e]})});function ed(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zu.hasOwnProperty(e)&&Zu[e]?(""+t).trim():t+"px"}function td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var u=n.indexOf("--")===0,r=ed(n,t[n],u);n==="float"&&(n="cssFloat"),u?e.setProperty(n,r):e[n]=r}}var j1=se({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 bl(e,t){if(t){if(j1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function kl(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 wl=null;function wa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _l=null,nu=null,uu=null;function Bs(e){if(e=zr(e)){if(typeof _l!="function")throw Error(D(280));var t=e.stateNode;t&&(t=ri(t),_l(e.stateNode,e.type,t))}}function nd(e){nu?uu?uu.push(e):uu=[e]:nu=e}function ud(){if(nu){var e=nu,t=uu;if(uu=nu=null,Bs(e),t)for(e=0;e<t.length;e++)Bs(t[e])}}function rd(e,t){return e(t)}function od(){}var Fi=!1;function id(e,t,n){if(Fi)return e(t,n);Fi=!0;try{return rd(e,t,n)}finally{Fi=!1,(nu!==null||uu!==null)&&(od(),ud())}}function lr(e,t){var n=e.stateNode;if(n===null)return null;var u=ri(n);if(u===null)return null;n=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Cl=!1;if(Ht)try{var Tu={};Object.defineProperty(Tu,"passive",{get:function(){Cl=!0}}),window.addEventListener("test",Tu,Tu),window.removeEventListener("test",Tu,Tu)}catch{Cl=!1}function R1(e,t,n,u,r,o,i,l,a){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(d){this.onError(d)}}var Yu=!1,Eo=null,So=!1,El=null,T1={onError:function(e){Yu=!0,Eo=e}};function P1(e,t,n,u,r,o,i,l,a){Yu=!1,Eo=null,R1.apply(T1,arguments)}function M1(e,t,n,u,r,o,i,l,a){if(P1.apply(this,arguments),Yu){if(Yu){var s=Eo;Yu=!1,Eo=null}else throw Error(D(198));So||(So=!0,El=s)}}function In(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ld(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 Us(e){if(In(e)!==e)throw Error(D(188))}function L1(e){var t=e.alternate;if(!t){if(t=In(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,u=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(u=r.return,u!==null){n=u;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return Us(r),e;if(o===u)return Us(r),t;o=o.sibling}throw Error(D(188))}if(n.return!==u.return)n=r,u=o;else{for(var i=!1,l=r.child;l;){if(l===n){i=!0,n=r,u=o;break}if(l===u){i=!0,u=r,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,u=r;break}if(l===u){i=!0,u=o,n=r;break}l=l.sibling}if(!i)throw Error(D(189))}}if(n.alternate!==u)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function ad(e){return e=L1(e),e!==null?sd(e):null}function sd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=sd(e);if(t!==null)return t;e=e.sibling}return null}var cd=Qe.unstable_scheduleCallback,Hs=Qe.unstable_cancelCallback,I1=Qe.unstable_shouldYield,O1=Qe.unstable_requestPaint,de=Qe.unstable_now,$1=Qe.unstable_getCurrentPriorityLevel,_a=Qe.unstable_ImmediatePriority,dd=Qe.unstable_UserBlockingPriority,Ao=Qe.unstable_NormalPriority,B1=Qe.unstable_LowPriority,fd=Qe.unstable_IdlePriority,ei=null,Nt=null;function U1(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(ei,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:q1,H1=Math.log,V1=Math.LN2;function q1(e){return e>>>=0,e===0?32:31-(H1(e)/V1|0)|0}var qr=64,Wr=4194304;function Gu(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 Fo(e,t){var n=e.pendingLanes;if(n===0)return 0;var u=0,r=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~r;l!==0?u=Gu(l):(o&=i,o!==0&&(u=Gu(o)))}else i=n&~r,i!==0?u=Gu(i):o!==0&&(u=Gu(o));if(u===0)return 0;if(t!==0&&t!==u&&!(t&r)&&(r=u&-u,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(u&4&&(u|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=u;0<t;)n=31-ht(t),r=1<<n,u|=e[n],t&=~r;return u}function W1(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 K1(e,t){for(var n=e.suspendedLanes,u=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-ht(o),l=1<<i,a=r[i];a===-1?(!(l&n)||l&u)&&(r[i]=W1(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Sl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pd(){var e=qr;return qr<<=1,!(qr&4194240)&&(qr=64),e}function Di(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function G1(e,t){var n=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 u=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-ht(n),o=1<<r;t[r]=0,u[r]=-1,e[r]=-1,n&=~o}}function Ca(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var u=31-ht(n),r=1<<u;r&t|e[u]&t&&(e[u]|=t),n&=~r}}var Z=0;function hd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var md,Ea,gd,xd,yd,Al=!1,Kr=[],cn=null,dn=null,fn=null,ar=new Map,sr=new Map,un=[],Q1="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 Vs(e,t){switch(e){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":ar.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sr.delete(t.pointerId)}}function Pu(e,t,n,u,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:u,nativeEvent:o,targetContainers:[r]},t!==null&&(t=zr(t),t!==null&&Ea(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Z1(e,t,n,u,r){switch(t){case"focusin":return cn=Pu(cn,e,t,n,u,r),!0;case"dragenter":return dn=Pu(dn,e,t,n,u,r),!0;case"mouseover":return fn=Pu(fn,e,t,n,u,r),!0;case"pointerover":var o=r.pointerId;return ar.set(o,Pu(ar.get(o)||null,e,t,n,u,r)),!0;case"gotpointercapture":return o=r.pointerId,sr.set(o,Pu(sr.get(o)||null,e,t,n,u,r)),!0}return!1}function vd(e){var t=Sn(e.target);if(t!==null){var n=In(t);if(n!==null){if(t=n.tag,t===13){if(t=ld(n),t!==null){e.blockedOn=t,yd(e.priority,function(){gd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var u=new n.constructor(n.type,n);wl=u,n.target.dispatchEvent(u),wl=null}else return t=zr(n),t!==null&&Ea(t),e.blockedOn=n,!1;t.shift()}return!0}function qs(e,t,n){co(e)&&n.delete(t)}function Y1(){Al=!1,cn!==null&&co(cn)&&(cn=null),dn!==null&&co(dn)&&(dn=null),fn!==null&&co(fn)&&(fn=null),ar.forEach(qs),sr.forEach(qs)}function Mu(e,t){e.blockedOn===t&&(e.blockedOn=null,Al||(Al=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,Y1)))}function cr(e){function t(r){return Mu(r,e)}if(0<Kr.length){Mu(Kr[0],e);for(var n=1;n<Kr.length;n++){var u=Kr[n];u.blockedOn===e&&(u.blockedOn=null)}}for(cn!==null&&Mu(cn,e),dn!==null&&Mu(dn,e),fn!==null&&Mu(fn,e),ar.forEach(t),sr.forEach(t),n=0;n<un.length;n++)u=un[n],u.blockedOn===e&&(u.blockedOn=null);for(;0<un.length&&(n=un[0],n.blockedOn===null);)vd(n),n.blockedOn===null&&un.shift()}var ru=Gt.ReactCurrentBatchConfig,Do=!0;function J1(e,t,n,u){var r=Z,o=ru.transition;ru.transition=null;try{Z=1,Sa(e,t,n,u)}finally{Z=r,ru.transition=o}}function X1(e,t,n,u){var r=Z,o=ru.transition;ru.transition=null;try{Z=4,Sa(e,t,n,u)}finally{Z=r,ru.transition=o}}function Sa(e,t,n,u){if(Do){var r=Fl(e,t,n,u);if(r===null)Oi(e,t,u,zo,n),Vs(e,u);else if(Z1(r,e,t,n,u))u.stopPropagation();else if(Vs(e,u),t&4&&-1<Q1.indexOf(e)){for(;r!==null;){var o=zr(r);if(o!==null&&md(o),o=Fl(e,t,n,u),o===null&&Oi(e,t,u,zo,n),o===r)break;r=o}r!==null&&u.stopPropagation()}else Oi(e,t,u,null,n)}}var zo=null;function Fl(e,t,n,u){if(zo=null,e=wa(u),e=Sn(e),e!==null)if(t=In(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ld(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zo=e,null}function bd(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($1()){case _a:return 1;case dd:return 4;case Ao:case B1:return 16;case fd:return 536870912;default:return 16}default:return 16}}var ln=null,Aa=null,fo=null;function kd(){if(fo)return fo;var e,t=Aa,n=t.length,u,r="value"in ln?ln.value:ln.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var i=n-e;for(u=1;u<=i&&t[n-u]===r[o-u];u++);return fo=r.slice(e,1<u?1-u:void 0)}function po(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 Gr(){return!0}function Ws(){return!1}function Je(e){function t(n,u,r,o,i){this._reactName=n,this._targetInst=r,this.type=u,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Gr:Ws,this.isPropagationStopped=Ws,this}return se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var vu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=Je(vu),Dr=se({},vu,{view:0,detail:0}),eh=Je(Dr),zi,Ni,Lu,ti=se({},Dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Da,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!==Lu&&(Lu&&e.type==="mousemove"?(zi=e.screenX-Lu.screenX,Ni=e.screenY-Lu.screenY):Ni=zi=0,Lu=e),zi)},movementY:function(e){return"movementY"in e?e.movementY:Ni}}),Ks=Je(ti),th=se({},ti,{dataTransfer:0}),nh=Je(th),uh=se({},Dr,{relatedTarget:0}),ji=Je(uh),rh=se({},vu,{animationName:0,elapsedTime:0,pseudoElement:0}),oh=Je(rh),ih=se({},vu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lh=Je(ih),ah=se({},vu,{data:0}),Gs=Je(ah),sh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ch={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"},dh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dh[e])?!!t[e]:!1}function Da(){return fh}var ph=se({},Dr,{key:function(e){if(e.key){var t=sh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=po(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ch[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Da,charCode:function(e){return e.type==="keypress"?po(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?po(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hh=Je(ph),mh=se({},ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qs=Je(mh),gh=se({},Dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Da}),xh=Je(gh),yh=se({},vu,{propertyName:0,elapsedTime:0,pseudoElement:0}),vh=Je(yh),bh=se({},ti,{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}),kh=Je(bh),wh=[9,13,27,32],za=Ht&&"CompositionEvent"in window,Ju=null;Ht&&"documentMode"in document&&(Ju=document.documentMode);var _h=Ht&&"TextEvent"in window&&!Ju,wd=Ht&&(!za||Ju&&8<Ju&&11>=Ju),Zs=" ",Ys=!1;function _d(e,t){switch(e){case"keyup":return wh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function Ch(e,t){switch(e){case"compositionend":return Cd(t);case"keypress":return t.which!==32?null:(Ys=!0,Zs);case"textInput":return e=t.data,e===Zs&&Ys?null:e;default:return null}}function Eh(e,t){if(qn)return e==="compositionend"||!za&&_d(e,t)?(e=kd(),fo=Aa=ln=null,qn=!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 wd&&t.locale!=="ko"?null:t.data;default:return null}}var Sh={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 Js(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sh[e.type]:t==="textarea"}function Ed(e,t,n,u){nd(u),t=No(t,"onChange"),0<t.length&&(n=new Fa("onChange","change",null,n,u),e.push({event:n,listeners:t}))}var Xu=null,dr=null;function Ah(e){Md(e,0)}function ni(e){var t=Gn(e);if(Q0(t))return e}function Fh(e,t){if(e==="change")return t}var Sd=!1;if(Ht){var Ri;if(Ht){var Ti="oninput"in document;if(!Ti){var Xs=document.createElement("div");Xs.setAttribute("oninput","return;"),Ti=typeof Xs.oninput=="function"}Ri=Ti}else Ri=!1;Sd=Ri&&(!document.documentMode||9<document.documentMode)}function ec(){Xu&&(Xu.detachEvent("onpropertychange",Ad),dr=Xu=null)}function Ad(e){if(e.propertyName==="value"&&ni(dr)){var t=[];Ed(t,dr,e,wa(e)),id(Ah,t)}}function Dh(e,t,n){e==="focusin"?(ec(),Xu=t,dr=n,Xu.attachEvent("onpropertychange",Ad)):e==="focusout"&&ec()}function zh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ni(dr)}function Nh(e,t){if(e==="click")return ni(t)}function jh(e,t){if(e==="input"||e==="change")return ni(t)}function Rh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:Rh;function fr(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),u=Object.keys(t);if(n.length!==u.length)return!1;for(u=0;u<n.length;u++){var r=n[u];if(!cl.call(t,r)||!xt(e[r],t[r]))return!1}return!0}function tc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nc(e,t){var n=tc(e);e=0;for(var u;n;){if(n.nodeType===3){if(u=e+n.textContent.length,e<=t&&u>=t)return{node:n,offset:t-e};e=u}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tc(n)}}function Fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dd(){for(var e=window,t=Co();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Co(e.document)}return t}function Na(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 Th(e){var t=Dd(),n=e.focusedElem,u=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fd(n.ownerDocument.documentElement,n)){if(u!==null&&Na(n)){if(t=u.start,e=u.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(u.start,r);u=u.end===void 0?o:Math.min(u.end,r),!e.extend&&o>u&&(r=u,u=o,o=r),r=nc(n,o);var i=nc(n,u);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>u?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ph=Ht&&"documentMode"in document&&11>=document.documentMode,Wn=null,Dl=null,er=null,zl=!1;function uc(e,t,n){var u=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zl||Wn==null||Wn!==Co(u)||(u=Wn,"selectionStart"in u&&Na(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),er&&fr(er,u)||(er=u,u=No(Dl,"onSelect"),0<u.length&&(t=new Fa("onSelect","select",null,t,n),e.push({event:t,listeners:u}),t.target=Wn)))}function Qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kn={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionend:Qr("Transition","TransitionEnd")},Pi={},zd={};Ht&&(zd=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function ui(e){if(Pi[e])return Pi[e];if(!Kn[e])return e;var t=Kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zd)return Pi[e]=t[n];return e}var Nd=ui("animationend"),jd=ui("animationiteration"),Rd=ui("animationstart"),Td=ui("transitionend"),Pd=new Map,rc="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 kn(e,t){Pd.set(e,t),Ln(t,[e])}for(var Mi=0;Mi<rc.length;Mi++){var Li=rc[Mi],Mh=Li.toLowerCase(),Lh=Li[0].toUpperCase()+Li.slice(1);kn(Mh,"on"+Lh)}kn(Nd,"onAnimationEnd");kn(jd,"onAnimationIteration");kn(Rd,"onAnimationStart");kn("dblclick","onDoubleClick");kn("focusin","onFocus");kn("focusout","onBlur");kn(Td,"onTransitionEnd");su("onMouseEnter",["mouseout","mouseover"]);su("onMouseLeave",["mouseout","mouseover"]);su("onPointerEnter",["pointerout","pointerover"]);su("onPointerLeave",["pointerout","pointerover"]);Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),Ih=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qu));function oc(e,t,n){var u=e.type||"unknown-event";e.currentTarget=n,M1(u,t,void 0,e),e.currentTarget=null}function Md(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var u=e[n],r=u.event;u=u.listeners;e:{var o=void 0;if(t)for(var i=u.length-1;0<=i;i--){var l=u[i],a=l.instance,s=l.currentTarget;if(l=l.listener,a!==o&&r.isPropagationStopped())break e;oc(r,l,s),o=a}else for(i=0;i<u.length;i++){if(l=u[i],a=l.instance,s=l.currentTarget,l=l.listener,a!==o&&r.isPropagationStopped())break e;oc(r,l,s),o=a}}}if(So)throw e=El,So=!1,El=null,e}function te(e,t){var n=t[Pl];n===void 0&&(n=t[Pl]=new Set);var u=e+"__bubble";n.has(u)||(Ld(t,e,2,!1),n.add(u))}function Ii(e,t,n){var u=0;t&&(u|=4),Ld(n,e,u,t)}var Zr="_reactListening"+Math.random().toString(36).slice(2);function pr(e){if(!e[Zr]){e[Zr]=!0,V0.forEach(function(n){n!=="selectionchange"&&(Ih.has(n)||Ii(n,!1,e),Ii(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zr]||(t[Zr]=!0,Ii("selectionchange",!1,t))}}function Ld(e,t,n,u){switch(bd(t)){case 1:var r=J1;break;case 4:r=X1;break;default:r=Sa}n=r.bind(null,t,n,e),r=void 0,!Cl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),u?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Oi(e,t,n,u,r){var o=u;if(!(t&1)&&!(t&2)&&u!==null)e:for(;;){if(u===null)return;var i=u.tag;if(i===3||i===4){var l=u.stateNode.containerInfo;if(l===r||l.nodeType===8&&l.parentNode===r)break;if(i===4)for(i=u.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===r||a.nodeType===8&&a.parentNode===r))return;i=i.return}for(;l!==null;){if(i=Sn(l),i===null)return;if(a=i.tag,a===5||a===6){u=o=i;continue e}l=l.parentNode}}u=u.return}id(function(){var s=o,d=wa(n),p=[];e:{var m=Pd.get(e);if(m!==void 0){var y=Fa,g=e;switch(e){case"keypress":if(po(n)===0)break e;case"keydown":case"keyup":y=hh;break;case"focusin":g="focus",y=ji;break;case"focusout":g="blur",y=ji;break;case"beforeblur":case"afterblur":y=ji;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Ks;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=nh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=xh;break;case Nd:case jd:case Rd:y=oh;break;case Td:y=vh;break;case"scroll":y=eh;break;case"wheel":y=kh;break;case"copy":case"cut":case"paste":y=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Qs}var w=(t&4)!==0,C=!w&&e==="scroll",x=w?m!==null?m+"Capture":null:m;w=[];for(var f=s,h;f!==null;){h=f;var v=h.stateNode;if(h.tag===5&&v!==null&&(h=v,x!==null&&(v=lr(f,x),v!=null&&w.push(hr(f,v,h)))),C)break;f=f.return}0<w.length&&(m=new y(m,g,null,n,d),p.push({event:m,listeners:w}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==wl&&(g=n.relatedTarget||n.fromElement)&&(Sn(g)||g[Vt]))break e;if((y||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,y?(g=n.relatedTarget||n.toElement,y=s,g=g?Sn(g):null,g!==null&&(C=In(g),g!==C||g.tag!==5&&g.tag!==6)&&(g=null)):(y=null,g=s),y!==g)){if(w=Ks,v="onMouseLeave",x="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(w=Qs,v="onPointerLeave",x="onPointerEnter",f="pointer"),C=y==null?m:Gn(y),h=g==null?m:Gn(g),m=new w(v,f+"leave",y,n,d),m.target=C,m.relatedTarget=h,v=null,Sn(d)===s&&(w=new w(x,f+"enter",g,n,d),w.target=h,w.relatedTarget=C,v=w),C=v,y&&g)t:{for(w=y,x=g,f=0,h=w;h;h=Bn(h))f++;for(h=0,v=x;v;v=Bn(v))h++;for(;0<f-h;)w=Bn(w),f--;for(;0<h-f;)x=Bn(x),h--;for(;f--;){if(w===x||x!==null&&w===x.alternate)break t;w=Bn(w),x=Bn(x)}w=null}else w=null;y!==null&&ic(p,m,y,w,!1),g!==null&&C!==null&&ic(p,C,g,w,!0)}}e:{if(m=s?Gn(s):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var b=Fh;else if(Js(m))if(Sd)b=jh;else{b=zh;var _=Dh}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(b=Nh);if(b&&(b=b(e,s))){Ed(p,b,n,d);break e}_&&_(e,m,s),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&xl(m,"number",m.value)}switch(_=s?Gn(s):window,e){case"focusin":(Js(_)||_.contentEditable==="true")&&(Wn=_,Dl=s,er=null);break;case"focusout":er=Dl=Wn=null;break;case"mousedown":zl=!0;break;case"contextmenu":case"mouseup":case"dragend":zl=!1,uc(p,n,d);break;case"selectionchange":if(Ph)break;case"keydown":case"keyup":uc(p,n,d)}var E;if(za)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else qn?_d(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(wd&&n.locale!=="ko"&&(qn||S!=="onCompositionStart"?S==="onCompositionEnd"&&qn&&(E=kd()):(ln=d,Aa="value"in ln?ln.value:ln.textContent,qn=!0)),_=No(s,S),0<_.length&&(S=new Gs(S,e,null,n,d),p.push({event:S,listeners:_}),E?S.data=E:(E=Cd(n),E!==null&&(S.data=E)))),(E=_h?Ch(e,n):Eh(e,n))&&(s=No(s,"onBeforeInput"),0<s.length&&(d=new Gs("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:s}),d.data=E))}Md(p,t)})}function hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function No(e,t){for(var n=t+"Capture",u=[];e!==null;){var r=e,o=r.stateNode;r.tag===5&&o!==null&&(r=o,o=lr(e,n),o!=null&&u.unshift(hr(e,o,r)),o=lr(e,t),o!=null&&u.push(hr(e,o,r))),e=e.return}return u}function Bn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ic(e,t,n,u,r){for(var o=t._reactName,i=[];n!==null&&n!==u;){var l=n,a=l.alternate,s=l.stateNode;if(a!==null&&a===u)break;l.tag===5&&s!==null&&(l=s,r?(a=lr(n,o),a!=null&&i.unshift(hr(n,a,l))):r||(a=lr(n,o),a!=null&&i.push(hr(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Oh=/\r\n?/g,$h=/\u0000|\uFFFD/g;function lc(e){return(typeof e=="string"?e:""+e).replace(Oh,`
|
||
`).replace($h,"")}function Yr(e,t,n){if(t=lc(t),lc(e)!==t&&n)throw Error(D(425))}function jo(){}var Nl=null,jl=null;function Rl(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 Tl=typeof setTimeout=="function"?setTimeout:void 0,Bh=typeof clearTimeout=="function"?clearTimeout:void 0,ac=typeof Promise=="function"?Promise:void 0,Uh=typeof queueMicrotask=="function"?queueMicrotask:typeof ac<"u"?function(e){return ac.resolve(null).then(e).catch(Hh)}:Tl;function Hh(e){setTimeout(function(){throw e})}function $i(e,t){var n=t,u=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(u===0){e.removeChild(r),cr(t);return}u--}else n!=="$"&&n!=="$?"&&n!=="$!"||u++;n=r}while(n);cr(t)}function pn(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 sc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bu=Math.random().toString(36).slice(2),At="__reactFiber$"+bu,mr="__reactProps$"+bu,Vt="__reactContainer$"+bu,Pl="__reactEvents$"+bu,Vh="__reactListeners$"+bu,qh="__reactHandles$"+bu;function Sn(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sc(e);e!==null;){if(n=e[At])return n;e=sc(e)}return t}e=n,n=e.parentNode}return null}function zr(e){return e=e[At]||e[Vt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function ri(e){return e[mr]||null}var Ml=[],Qn=-1;function wn(e){return{current:e}}function ne(e){0>Qn||(e.current=Ml[Qn],Ml[Qn]=null,Qn--)}function J(e,t){Qn++,Ml[Qn]=e.current,e.current=t}var vn={},ze=wn(vn),$e=wn(!1),Nn=vn;function cu(e,t){var n=e.type.contextTypes;if(!n)return vn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===t)return u.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Be(e){return e=e.childContextTypes,e!=null}function Ro(){ne($e),ne(ze)}function cc(e,t,n){if(ze.current!==vn)throw Error(D(168));J(ze,t),J($e,n)}function Id(e,t,n){var u=e.stateNode;if(t=t.childContextTypes,typeof u.getChildContext!="function")return n;u=u.getChildContext();for(var r in u)if(!(r in t))throw Error(D(108,D1(e)||"Unknown",r));return se({},n,u)}function To(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vn,Nn=ze.current,J(ze,e),J($e,$e.current),!0}function dc(e,t,n){var u=e.stateNode;if(!u)throw Error(D(169));n?(e=Id(e,t,Nn),u.__reactInternalMemoizedMergedChildContext=e,ne($e),ne(ze),J(ze,e)):ne($e),J($e,n)}var Ot=null,oi=!1,Bi=!1;function Od(e){Ot===null?Ot=[e]:Ot.push(e)}function Wh(e){oi=!0,Od(e)}function _n(){if(!Bi&&Ot!==null){Bi=!0;var e=0,t=Z;try{var n=Ot;for(Z=1;e<n.length;e++){var u=n[e];do u=u(!0);while(u!==null)}Ot=null,oi=!1}catch(r){throw Ot!==null&&(Ot=Ot.slice(e+1)),cd(_a,_n),r}finally{Z=t,Bi=!1}}return null}var Zn=[],Yn=0,Po=null,Mo=0,tt=[],nt=0,jn=null,$t=1,Bt="";function Cn(e,t){Zn[Yn++]=Mo,Zn[Yn++]=Po,Po=e,Mo=t}function $d(e,t,n){tt[nt++]=$t,tt[nt++]=Bt,tt[nt++]=jn,jn=e;var u=$t;e=Bt;var r=32-ht(u)-1;u&=~(1<<r),n+=1;var o=32-ht(t)+r;if(30<o){var i=r-r%5;o=(u&(1<<i)-1).toString(32),u>>=i,r-=i,$t=1<<32-ht(t)+r|n<<r|u,Bt=o+e}else $t=1<<o|n<<r|u,Bt=e}function ja(e){e.return!==null&&(Cn(e,1),$d(e,1,0))}function Ra(e){for(;e===Po;)Po=Zn[--Yn],Zn[Yn]=null,Mo=Zn[--Yn],Zn[Yn]=null;for(;e===jn;)jn=tt[--nt],tt[nt]=null,Bt=tt[--nt],tt[nt]=null,$t=tt[--nt],tt[nt]=null}var Ge=null,Ke=null,oe=!1,pt=null;function Bd(e,t){var n=ut(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ge=e,Ke=pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ge=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jn!==null?{id:$t,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ge=e,Ke=null,!0):!1;default:return!1}}function Ll(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Il(e){if(oe){var t=Ke;if(t){var n=t;if(!fc(e,t)){if(Ll(e))throw Error(D(418));t=pn(n.nextSibling);var u=Ge;t&&fc(e,t)?Bd(u,n):(e.flags=e.flags&-4097|2,oe=!1,Ge=e)}}else{if(Ll(e))throw Error(D(418));e.flags=e.flags&-4097|2,oe=!1,Ge=e}}}function pc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ge=e}function Jr(e){if(e!==Ge)return!1;if(!oe)return pc(e),oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Rl(e.type,e.memoizedProps)),t&&(t=Ke)){if(Ll(e))throw Ud(),Error(D(418));for(;t;)Bd(e,t),t=pn(t.nextSibling)}if(pc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Ge?pn(e.stateNode.nextSibling):null;return!0}function Ud(){for(var e=Ke;e;)e=pn(e.nextSibling)}function du(){Ke=Ge=null,oe=!1}function Ta(e){pt===null?pt=[e]:pt.push(e)}var Kh=Gt.ReactCurrentBatchConfig;function Iu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var u=n.stateNode}if(!u)throw Error(D(147,e));var r=u,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var l=r.refs;i===null?delete l[o]:l[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Xr(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hc(e){var t=e._init;return t(e._payload)}function Hd(e){function t(x,f){if(e){var h=x.deletions;h===null?(x.deletions=[f],x.flags|=16):h.push(f)}}function n(x,f){if(!e)return null;for(;f!==null;)t(x,f),f=f.sibling;return null}function u(x,f){for(x=new Map;f!==null;)f.key!==null?x.set(f.key,f):x.set(f.index,f),f=f.sibling;return x}function r(x,f){return x=xn(x,f),x.index=0,x.sibling=null,x}function o(x,f,h){return x.index=h,e?(h=x.alternate,h!==null?(h=h.index,h<f?(x.flags|=2,f):h):(x.flags|=2,f)):(x.flags|=1048576,f)}function i(x){return e&&x.alternate===null&&(x.flags|=2),x}function l(x,f,h,v){return f===null||f.tag!==6?(f=Gi(h,x.mode,v),f.return=x,f):(f=r(f,h),f.return=x,f)}function a(x,f,h,v){var b=h.type;return b===Vn?d(x,f,h.props.children,v,h.key):f!==null&&(f.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&hc(b)===f.type)?(v=r(f,h.props),v.ref=Iu(x,f,h),v.return=x,v):(v=bo(h.type,h.key,h.props,null,x.mode,v),v.ref=Iu(x,f,h),v.return=x,v)}function s(x,f,h,v){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=Qi(h,x.mode,v),f.return=x,f):(f=r(f,h.children||[]),f.return=x,f)}function d(x,f,h,v,b){return f===null||f.tag!==7?(f=zn(h,x.mode,v,b),f.return=x,f):(f=r(f,h),f.return=x,f)}function p(x,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Gi(""+f,x.mode,h),f.return=x,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ur:return h=bo(f.type,f.key,f.props,null,x.mode,h),h.ref=Iu(x,null,f),h.return=x,h;case Hn:return f=Qi(f,x.mode,h),f.return=x,f;case en:var v=f._init;return p(x,v(f._payload),h)}if(Ku(f)||Ru(f))return f=zn(f,x.mode,h,null),f.return=x,f;Xr(x,f)}return null}function m(x,f,h,v){var b=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return b!==null?null:l(x,f,""+h,v);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ur:return h.key===b?a(x,f,h,v):null;case Hn:return h.key===b?s(x,f,h,v):null;case en:return b=h._init,m(x,f,b(h._payload),v)}if(Ku(h)||Ru(h))return b!==null?null:d(x,f,h,v,null);Xr(x,h)}return null}function y(x,f,h,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return x=x.get(h)||null,l(f,x,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ur:return x=x.get(v.key===null?h:v.key)||null,a(f,x,v,b);case Hn:return x=x.get(v.key===null?h:v.key)||null,s(f,x,v,b);case en:var _=v._init;return y(x,f,h,_(v._payload),b)}if(Ku(v)||Ru(v))return x=x.get(h)||null,d(f,x,v,b,null);Xr(f,v)}return null}function g(x,f,h,v){for(var b=null,_=null,E=f,S=f=0,F=null;E!==null&&S<h.length;S++){E.index>S?(F=E,E=null):F=E.sibling;var N=m(x,E,h[S],v);if(N===null){E===null&&(E=F);break}e&&E&&N.alternate===null&&t(x,E),f=o(N,f,S),_===null?b=N:_.sibling=N,_=N,E=F}if(S===h.length)return n(x,E),oe&&Cn(x,S),b;if(E===null){for(;S<h.length;S++)E=p(x,h[S],v),E!==null&&(f=o(E,f,S),_===null?b=E:_.sibling=E,_=E);return oe&&Cn(x,S),b}for(E=u(x,E);S<h.length;S++)F=y(E,x,S,h[S],v),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?S:F.key),f=o(F,f,S),_===null?b=F:_.sibling=F,_=F);return e&&E.forEach(function(L){return t(x,L)}),oe&&Cn(x,S),b}function w(x,f,h,v){var b=Ru(h);if(typeof b!="function")throw Error(D(150));if(h=b.call(h),h==null)throw Error(D(151));for(var _=b=null,E=f,S=f=0,F=null,N=h.next();E!==null&&!N.done;S++,N=h.next()){E.index>S?(F=E,E=null):F=E.sibling;var L=m(x,E,N.value,v);if(L===null){E===null&&(E=F);break}e&&E&&L.alternate===null&&t(x,E),f=o(L,f,S),_===null?b=L:_.sibling=L,_=L,E=F}if(N.done)return n(x,E),oe&&Cn(x,S),b;if(E===null){for(;!N.done;S++,N=h.next())N=p(x,N.value,v),N!==null&&(f=o(N,f,S),_===null?b=N:_.sibling=N,_=N);return oe&&Cn(x,S),b}for(E=u(x,E);!N.done;S++,N=h.next())N=y(E,x,S,N.value,v),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?S:N.key),f=o(N,f,S),_===null?b=N:_.sibling=N,_=N);return e&&E.forEach(function(P){return t(x,P)}),oe&&Cn(x,S),b}function C(x,f,h,v){if(typeof h=="object"&&h!==null&&h.type===Vn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ur:e:{for(var b=h.key,_=f;_!==null;){if(_.key===b){if(b=h.type,b===Vn){if(_.tag===7){n(x,_.sibling),f=r(_,h.props.children),f.return=x,x=f;break e}}else if(_.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&hc(b)===_.type){n(x,_.sibling),f=r(_,h.props),f.ref=Iu(x,_,h),f.return=x,x=f;break e}n(x,_);break}else t(x,_);_=_.sibling}h.type===Vn?(f=zn(h.props.children,x.mode,v,h.key),f.return=x,x=f):(v=bo(h.type,h.key,h.props,null,x.mode,v),v.ref=Iu(x,f,h),v.return=x,x=v)}return i(x);case Hn:e:{for(_=h.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(x,f.sibling),f=r(f,h.children||[]),f.return=x,x=f;break e}else{n(x,f);break}else t(x,f);f=f.sibling}f=Qi(h,x.mode,v),f.return=x,x=f}return i(x);case en:return _=h._init,C(x,f,_(h._payload),v)}if(Ku(h))return g(x,f,h,v);if(Ru(h))return w(x,f,h,v);Xr(x,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(x,f.sibling),f=r(f,h),f.return=x,x=f):(n(x,f),f=Gi(h,x.mode,v),f.return=x,x=f),i(x)):n(x,f)}return C}var fu=Hd(!0),Vd=Hd(!1),Lo=wn(null),Io=null,Jn=null,Pa=null;function Ma(){Pa=Jn=Io=null}function La(e){var t=Lo.current;ne(Lo),e._currentValue=t}function Ol(e,t,n){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===n)break;e=e.return}}function ou(e,t){Io=e,Pa=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(Pa!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if(Io===null)throw Error(D(308));Jn=e,Io.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var An=null;function Ia(e){An===null?An=[e]:An.push(e)}function qd(e,t,n,u){var r=t.interleaved;return r===null?(n.next=n,Ia(t)):(n.next=r.next,r.next=n),t.interleaved=n,qt(e,u)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tn=!1;function Oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wd(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,n){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,K&2){var r=u.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),u.pending=t,qt(e,n)}return r=u.interleaved,r===null?(t.next=t,Ia(u)):(t.next=r.next,r.next=t),u.interleaved=t,qt(e,n)}function ho(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,Ca(e,n)}}function mc(e,t){var n=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,n===u)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:u.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:u.shared,effects:u.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oo(e,t,n,u){var r=e.updateQueue;tn=!1;var o=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var a=l,s=a.next;a.next=null,i===null?o=s:i.next=s,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=s:l.next=s,d.lastBaseUpdate=a))}if(o!==null){var p=r.baseState;i=0,d=s=a=null,l=o;do{var m=l.lane,y=l.eventTime;if((u&m)===m){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,w=l;switch(m=t,y=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){p=g.call(y,p,m);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,m=typeof g=="function"?g.call(y,p,m):g,m==null)break e;p=se({},p,m);break e;case 2:tn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=r.effects,m===null?r.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(s=d=y,a=p):d=d.next=y,i|=m;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;m=l,l=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);if(d===null&&(a=p),r.baseState=a,r.firstBaseUpdate=s,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do i|=r.lane,r=r.next;while(r!==t)}else o===null&&(r.shared.lanes=0);Tn|=i,e.lanes=i,e.memoizedState=p}}function gc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var u=e[t],r=u.callback;if(r!==null){if(u.callback=null,u=n,typeof r!="function")throw Error(D(191,r));r.call(u)}}}var Nr={},jt=wn(Nr),gr=wn(Nr),xr=wn(Nr);function Fn(e){if(e===Nr)throw Error(D(174));return e}function $a(e,t){switch(J(xr,t),J(gr,e),J(jt,Nr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vl(t,e)}ne(jt),J(jt,t)}function pu(){ne(jt),ne(gr),ne(xr)}function Kd(e){Fn(xr.current);var t=Fn(jt.current),n=vl(t,e.type);t!==n&&(J(gr,e),J(jt,n))}function Ba(e){gr.current===e&&(ne(jt),ne(gr))}var le=wn(0);function $o(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Ui=[];function Ua(){for(var e=0;e<Ui.length;e++)Ui[e]._workInProgressVersionPrimary=null;Ui.length=0}var mo=Gt.ReactCurrentDispatcher,Hi=Gt.ReactCurrentBatchConfig,Rn=0,ae=null,ge=null,ke=null,Bo=!1,tr=!1,yr=0,Gh=0;function Ae(){throw Error(D(321))}function Ha(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xt(e[n],t[n]))return!1;return!0}function Va(e,t,n,u,r,o){if(Rn=o,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,mo.current=e===null||e.memoizedState===null?Jh:Xh,e=n(u,r),tr){o=0;do{if(tr=!1,yr=0,25<=o)throw Error(D(301));o+=1,ke=ge=null,t.updateQueue=null,mo.current=em,e=n(u,r)}while(tr)}if(mo.current=Uo,t=ge!==null&&ge.next!==null,Rn=0,ke=ge=ae=null,Bo=!1,t)throw Error(D(300));return e}function qa(){var e=yr!==0;return yr=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ae.memoizedState=ke=e:ke=ke.next=e,ke}function lt(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=ke===null?ae.memoizedState:ke.next;if(t!==null)ke=t,ge=e;else{if(e===null)throw Error(D(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},ke===null?ae.memoizedState=ke=e:ke=ke.next=e}return ke}function vr(e,t){return typeof t=="function"?t(e):t}function Vi(e){var t=lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var u=ge,r=u.baseQueue,o=n.pending;if(o!==null){if(r!==null){var i=r.next;r.next=o.next,o.next=i}u.baseQueue=r=o,n.pending=null}if(r!==null){o=r.next,u=u.baseState;var l=i=null,a=null,s=o;do{var d=s.lane;if((Rn&d)===d)a!==null&&(a=a.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),u=s.hasEagerState?s.eagerState:e(u,s.action);else{var p={lane:d,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};a===null?(l=a=p,i=u):a=a.next=p,ae.lanes|=d,Tn|=d}s=s.next}while(s!==null&&s!==o);a===null?i=u:a.next=l,xt(u,t.memoizedState)||(Oe=!0),t.memoizedState=u,t.baseState=i,t.baseQueue=a,n.lastRenderedState=u}if(e=n.interleaved,e!==null){r=e;do o=r.lane,ae.lanes|=o,Tn|=o,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qi(e){var t=lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var u=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var i=r=r.next;do o=e(o,i.action),i=i.next;while(i!==r);xt(o,t.memoizedState)||(Oe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,u]}function Gd(){}function Qd(e,t){var n=ae,u=lt(),r=t(),o=!xt(u.memoizedState,r);if(o&&(u.memoizedState=r,Oe=!0),u=u.queue,Wa(Jd.bind(null,n,u,e),[e]),u.getSnapshot!==t||o||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,br(9,Yd.bind(null,n,u,r,t),void 0,null),_e===null)throw Error(D(349));Rn&30||Zd(n,t,r)}return r}function Zd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yd(e,t,n,u){t.value=n,t.getSnapshot=u,Xd(t)&&ef(e)}function Jd(e,t,n){return n(function(){Xd(t)&&ef(e)})}function Xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xt(e,n)}catch{return!0}}function ef(e){var t=qt(e,1);t!==null&&mt(t,e,1,-1)}function xc(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vr,lastRenderedState:e},t.queue=e,e=e.dispatch=Yh.bind(null,ae,e),[t.memoizedState,e]}function br(e,t,n,u){return e={tag:e,create:t,destroy:n,deps:u,next:null},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(u=n.next,n.next=e,e.next=u,t.lastEffect=e)),e}function tf(){return lt().memoizedState}function go(e,t,n,u){var r=St();ae.flags|=e,r.memoizedState=br(1|t,n,void 0,u===void 0?null:u)}function ii(e,t,n,u){var r=lt();u=u===void 0?null:u;var o=void 0;if(ge!==null){var i=ge.memoizedState;if(o=i.destroy,u!==null&&Ha(u,i.deps)){r.memoizedState=br(t,n,o,u);return}}ae.flags|=e,r.memoizedState=br(1|t,n,o,u)}function yc(e,t){return go(8390656,8,e,t)}function Wa(e,t){return ii(2048,8,e,t)}function nf(e,t){return ii(4,2,e,t)}function uf(e,t){return ii(4,4,e,t)}function rf(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 of(e,t,n){return n=n!=null?n.concat([e]):null,ii(4,4,rf.bind(null,t,e),n)}function Ka(){}function lf(e,t){var n=lt();t=t===void 0?null:t;var u=n.memoizedState;return u!==null&&t!==null&&Ha(t,u[1])?u[0]:(n.memoizedState=[e,t],e)}function af(e,t){var n=lt();t=t===void 0?null:t;var u=n.memoizedState;return u!==null&&t!==null&&Ha(t,u[1])?u[0]:(e=e(),n.memoizedState=[e,t],e)}function sf(e,t,n){return Rn&21?(xt(n,t)||(n=pd(),ae.lanes|=n,Tn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Oe=!0),e.memoizedState=n)}function Qh(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var u=Hi.transition;Hi.transition={};try{e(!1),t()}finally{Z=n,Hi.transition=u}}function cf(){return lt().memoizedState}function Zh(e,t,n){var u=gn(e);if(n={lane:u,action:n,hasEagerState:!1,eagerState:null,next:null},df(e))ff(t,n);else if(n=qd(e,t,n,u),n!==null){var r=Te();mt(n,e,u,r),pf(n,t,u)}}function Yh(e,t,n){var u=gn(e),r={lane:u,action:n,hasEagerState:!1,eagerState:null,next:null};if(df(e))ff(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,n);if(r.hasEagerState=!0,r.eagerState=l,xt(l,i)){var a=t.interleaved;a===null?(r.next=r,Ia(t)):(r.next=a.next,a.next=r),t.interleaved=r;return}}catch{}finally{}n=qd(e,t,r,u),n!==null&&(r=Te(),mt(n,e,u,r),pf(n,t,u))}}function df(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function ff(e,t){tr=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pf(e,t,n){if(n&4194240){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,Ca(e,n)}}var Uo={readContext:it,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},Jh={readContext:it,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:yc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,rf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var u=St();return t=n!==void 0?n(t):t,u.memoizedState=u.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},u.queue=e,e=e.dispatch=Zh.bind(null,ae,e),[u.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:xc,useDebugValue:Ka,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=xc(!1),t=e[0];return e=Qh.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var u=ae,r=St();if(oe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),_e===null)throw Error(D(349));Rn&30||Zd(u,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,yc(Jd.bind(null,u,o,e),[e]),u.flags|=2048,br(9,Yd.bind(null,u,o,n,t),void 0,null),n},useId:function(){var e=St(),t=_e.identifierPrefix;if(oe){var n=Bt,u=$t;n=(u&~(1<<32-ht(u)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Gh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xh={readContext:it,useCallback:lf,useContext:it,useEffect:Wa,useImperativeHandle:of,useInsertionEffect:nf,useLayoutEffect:uf,useMemo:af,useReducer:Vi,useRef:tf,useState:function(){return Vi(vr)},useDebugValue:Ka,useDeferredValue:function(e){var t=lt();return sf(t,ge.memoizedState,e)},useTransition:function(){var e=Vi(vr)[0],t=lt().memoizedState;return[e,t]},useMutableSource:Gd,useSyncExternalStore:Qd,useId:cf,unstable_isNewReconciler:!1},em={readContext:it,useCallback:lf,useContext:it,useEffect:Wa,useImperativeHandle:of,useInsertionEffect:nf,useLayoutEffect:uf,useMemo:af,useReducer:qi,useRef:tf,useState:function(){return qi(vr)},useDebugValue:Ka,useDeferredValue:function(e){var t=lt();return ge===null?t.memoizedState=e:sf(t,ge.memoizedState,e)},useTransition:function(){var e=qi(vr)[0],t=lt().memoizedState;return[e,t]},useMutableSource:Gd,useSyncExternalStore:Qd,useId:cf,unstable_isNewReconciler:!1};function dt(e,t){if(e&&e.defaultProps){t=se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $l(e,t,n,u){t=e.memoizedState,n=n(u,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var li={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var u=Te(),r=gn(e),o=Ut(u,r);o.payload=t,n!=null&&(o.callback=n),t=hn(e,o,r),t!==null&&(mt(t,e,r,u),ho(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var u=Te(),r=gn(e),o=Ut(u,r);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=hn(e,o,r),t!==null&&(mt(t,e,r,u),ho(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Te(),u=gn(e),r=Ut(n,u);r.tag=2,t!=null&&(r.callback=t),t=hn(e,r,u),t!==null&&(mt(t,e,u,n),ho(t,e,u))}};function vc(e,t,n,u,r,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,o,i):t.prototype&&t.prototype.isPureReactComponent?!fr(n,u)||!fr(r,o):!0}function hf(e,t,n){var u=!1,r=vn,o=t.contextType;return typeof o=="object"&&o!==null?o=it(o):(r=Be(t)?Nn:ze.current,u=t.contextTypes,o=(u=u!=null)?cu(e,r):vn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=li,e.stateNode=t,t._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function bc(e,t,n,u){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,u),t.state!==e&&li.enqueueReplaceState(t,t.state,null)}function Bl(e,t,n,u){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Oa(e);var o=t.contextType;typeof o=="object"&&o!==null?r.context=it(o):(o=Be(t)?Nn:ze.current,r.context=cu(e,o)),r.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&($l(e,t,o,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&li.enqueueReplaceState(r,r.state,null),Oo(e,n,r,u),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function hu(e,t){try{var n="",u=t;do n+=F1(u),u=u.return;while(u);var r=n}catch(o){r=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:r,digest:null}}function Wi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ul(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tm=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,n){n=Ut(-1,n),n.tag=3,n.payload={element:null};var u=t.value;return n.callback=function(){Vo||(Vo=!0,Jl=u),Ul(e,t)},n}function gf(e,t,n){n=Ut(-1,n),n.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var r=t.value;n.payload=function(){return u(r)},n.callback=function(){Ul(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ul(e,t),typeof u!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function kc(e,t,n){var u=e.pingCache;if(u===null){u=e.pingCache=new tm;var r=new Set;u.set(t,r)}else r=u.get(t),r===void 0&&(r=new Set,u.set(t,r));r.has(n)||(r.add(n),e=mm.bind(null,e,t,n),t.then(e,e))}function wc(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 _c(e,t,n,u,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ut(-1,1),t.tag=2,hn(n,t,1))),n.lanes|=1),e)}var nm=Gt.ReactCurrentOwner,Oe=!1;function Re(e,t,n,u){t.child=e===null?Vd(t,null,n,u):fu(t,e.child,n,u)}function Cc(e,t,n,u,r){n=n.render;var o=t.ref;return ou(t,r),u=Va(e,t,n,u,o,r),n=qa(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Wt(e,t,r)):(oe&&n&&ja(t),t.flags|=1,Re(e,t,u,r),t.child)}function Ec(e,t,n,u,r){if(e===null){var o=n.type;return typeof o=="function"&&!ts(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,xf(e,t,o,u,r)):(e=bo(n.type,null,u,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&r)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:fr,n(i,u)&&e.ref===t.ref)return Wt(e,t,r)}return t.flags|=1,e=xn(o,u),e.ref=t.ref,e.return=t,t.child=e}function xf(e,t,n,u,r){if(e!==null){var o=e.memoizedProps;if(fr(o,u)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=u=o,(e.lanes&r)!==0)e.flags&131072&&(Oe=!0);else return t.lanes=e.lanes,Wt(e,t,r)}return Hl(e,t,n,u,r)}function yf(e,t,n){var u=t.pendingProps,r=u.children,o=e!==null?e.memoizedState:null;if(u.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(eu,We),We|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(eu,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=o!==null?o.baseLanes:n,J(eu,We),We|=u}else o!==null?(u=o.baseLanes|n,t.memoizedState=null):u=n,J(eu,We),We|=u;return Re(e,t,r,n),t.child}function vf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hl(e,t,n,u,r){var o=Be(n)?Nn:ze.current;return o=cu(t,o),ou(t,r),n=Va(e,t,n,u,o,r),u=qa(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Wt(e,t,r)):(oe&&u&&ja(t),t.flags|=1,Re(e,t,n,r),t.child)}function Sc(e,t,n,u,r){if(Be(n)){var o=!0;To(t)}else o=!1;if(ou(t,r),t.stateNode===null)xo(e,t),hf(t,n,u),Bl(t,n,u,r),u=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,s=n.contextType;typeof s=="object"&&s!==null?s=it(s):(s=Be(n)?Nn:ze.current,s=cu(t,s));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==u||a!==s)&&bc(t,i,u,s),tn=!1;var m=t.memoizedState;i.state=m,Oo(t,u,i,r),a=t.memoizedState,l!==u||m!==a||$e.current||tn?(typeof d=="function"&&($l(t,n,d,u),a=t.memoizedState),(l=tn||vc(t,n,l,u,m,a,s))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=u,t.memoizedState=a),i.props=u,i.state=a,i.context=s,u=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),u=!1)}else{i=t.stateNode,Wd(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:dt(t.type,l),i.props=s,p=t.pendingProps,m=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=it(a):(a=Be(n)?Nn:ze.current,a=cu(t,a));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||m!==a)&&bc(t,i,u,a),tn=!1,m=t.memoizedState,i.state=m,Oo(t,u,i,r);var g=t.memoizedState;l!==p||m!==g||$e.current||tn?(typeof y=="function"&&($l(t,n,y,u),g=t.memoizedState),(s=tn||vc(t,n,s,u,m,g,a)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(u,g,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(u,g,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=g),i.props=u,i.state=g,i.context=a,u=s):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),u=!1)}return Vl(e,t,n,u,o,r)}function Vl(e,t,n,u,r,o){vf(e,t);var i=(t.flags&128)!==0;if(!u&&!i)return r&&dc(t,n,!1),Wt(e,t,o);u=t.stateNode,nm.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:u.render();return t.flags|=1,e!==null&&i?(t.child=fu(t,e.child,null,o),t.child=fu(t,null,l,o)):Re(e,t,l,o),t.memoizedState=u.state,r&&dc(t,n,!0),t.child}function bf(e){var t=e.stateNode;t.pendingContext?cc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cc(e,t.context,!1),$a(e,t.containerInfo)}function Ac(e,t,n,u,r){return du(),Ta(r),t.flags|=256,Re(e,t,n,u),t.child}var ql={dehydrated:null,treeContext:null,retryLane:0};function Wl(e){return{baseLanes:e,cachePool:null,transitions:null}}function kf(e,t,n){var u=t.pendingProps,r=le.current,o=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(r&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),J(le,r&1),e===null)return Il(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=u.children,e=u.fallback,o?(u=t.mode,o=t.child,i={mode:"hidden",children:i},!(u&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=ci(i,u,0,null),e=zn(e,u,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Wl(n),t.memoizedState=ql,e):Ga(t,i));if(r=e.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return um(e,t,i,u,l,r,n);if(o){o=u.fallback,i=t.mode,r=e.child,l=r.sibling;var a={mode:"hidden",children:u.children};return!(i&1)&&t.child!==r?(u=t.child,u.childLanes=0,u.pendingProps=a,t.deletions=null):(u=xn(r,a),u.subtreeFlags=r.subtreeFlags&14680064),l!==null?o=xn(l,o):(o=zn(o,i,n,null),o.flags|=2),o.return=t,u.return=t,u.sibling=o,t.child=u,u=o,o=t.child,i=e.child.memoizedState,i=i===null?Wl(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=ql,u}return o=e.child,e=o.sibling,u=xn(o,{mode:"visible",children:u.children}),!(t.mode&1)&&(u.lanes=n),u.return=t,u.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=u,t.memoizedState=null,u}function Ga(e,t){return t=ci({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,u){return u!==null&&Ta(u),fu(t,e.child,null,n),e=Ga(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function um(e,t,n,u,r,o,i){if(n)return t.flags&256?(t.flags&=-257,u=Wi(Error(D(422))),eo(e,t,i,u)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=u.fallback,r=t.mode,u=ci({mode:"visible",children:u.children},r,0,null),o=zn(o,r,i,null),o.flags|=2,u.return=t,o.return=t,u.sibling=o,t.child=u,t.mode&1&&fu(t,e.child,null,i),t.child.memoizedState=Wl(i),t.memoizedState=ql,o);if(!(t.mode&1))return eo(e,t,i,null);if(r.data==="$!"){if(u=r.nextSibling&&r.nextSibling.dataset,u)var l=u.dgst;return u=l,o=Error(D(419)),u=Wi(o,u,void 0),eo(e,t,i,u)}if(l=(i&e.childLanes)!==0,Oe||l){if(u=_e,u!==null){switch(i&-i){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(u.suspendedLanes|i)?0:r,r!==0&&r!==o.retryLane&&(o.retryLane=r,qt(e,r),mt(u,e,r,-1))}return es(),u=Wi(Error(D(421))),eo(e,t,i,u)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=gm.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,Ke=pn(r.nextSibling),Ge=t,oe=!0,pt=null,e!==null&&(tt[nt++]=$t,tt[nt++]=Bt,tt[nt++]=jn,$t=e.id,Bt=e.overflow,jn=t),t=Ga(t,u.children),t.flags|=4096,t)}function Fc(e,t,n){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),Ol(e.return,t,n)}function Ki(e,t,n,u,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=u,o.tail=n,o.tailMode=r)}function wf(e,t,n){var u=t.pendingProps,r=u.revealOrder,o=u.tail;if(Re(e,t,u.children,n),u=le.current,u&2)u=u&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fc(e,n,t);else if(e.tag===19)Fc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(J(le,u),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&$o(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ki(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&$o(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ki(t,!0,n,null,o);break;case"together":Ki(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rm(e,t,n){switch(t.tag){case 3:bf(t),du();break;case 5:Kd(t);break;case 1:Be(t.type)&&To(t);break;case 4:$a(t,t.stateNode.containerInfo);break;case 10:var u=t.type._context,r=t.memoizedProps.value;J(Lo,u._currentValue),u._currentValue=r;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?(J(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?kf(e,t,n):(J(le,le.current&1),e=Wt(e,t,n),e!==null?e.sibling:null);J(le,le.current&1);break;case 19:if(u=(n&t.childLanes)!==0,e.flags&128){if(u)return wf(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(le,le.current),u)break;return null;case 22:case 23:return t.lanes=0,yf(e,t,n)}return Wt(e,t,n)}var _f,Kl,Cf,Ef;_f=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kl=function(){};Cf=function(e,t,n,u){var r=e.memoizedProps;if(r!==u){e=t.stateNode,Fn(jt.current);var o=null;switch(n){case"input":r=ml(e,r),u=ml(e,u),o=[];break;case"select":r=se({},r,{value:void 0}),u=se({},u,{value:void 0}),o=[];break;case"textarea":r=yl(e,r),u=yl(e,u),o=[];break;default:typeof r.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=jo)}bl(n,u);var i;n=null;for(s in r)if(!u.hasOwnProperty(s)&&r.hasOwnProperty(s)&&r[s]!=null)if(s==="style"){var l=r[s];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(or.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in u){var a=u[s];if(l=r!=null?r[s]:void 0,u.hasOwnProperty(s)&&a!==l&&(a!=null||l!=null))if(s==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(s,n)),n=a;else s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(s,a)):s==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(s,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(or.hasOwnProperty(s)?(a!=null&&s==="onScroll"&&te("scroll",e),o||l===a||(o=[])):(o=o||[]).push(s,a))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};Ef=function(e,t,n,u){n!==u&&(t.flags|=4)};function Ou(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,u=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,u|=r.subtreeFlags&14680064,u|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,u|=r.subtreeFlags,u|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=u,e.childLanes=n,t}function om(e,t,n){var u=t.pendingProps;switch(Ra(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Be(t.type)&&Ro(),Fe(t),null;case 3:return u=t.stateNode,pu(),ne($e),ne(ze),Ua(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Jr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pt!==null&&(ta(pt),pt=null))),Kl(e,t),Fe(t),null;case 5:Ba(t);var r=Fn(xr.current);if(n=t.type,e!==null&&t.stateNode!=null)Cf(e,t,n,u,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!u){if(t.stateNode===null)throw Error(D(166));return Fe(t),null}if(e=Fn(jt.current),Jr(t)){u=t.stateNode,n=t.type;var o=t.memoizedProps;switch(u[At]=t,u[mr]=o,e=(t.mode&1)!==0,n){case"dialog":te("cancel",u),te("close",u);break;case"iframe":case"object":case"embed":te("load",u);break;case"video":case"audio":for(r=0;r<Qu.length;r++)te(Qu[r],u);break;case"source":te("error",u);break;case"img":case"image":case"link":te("error",u),te("load",u);break;case"details":te("toggle",u);break;case"input":Ls(u,o),te("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!o.multiple},te("invalid",u);break;case"textarea":Os(u,o),te("invalid",u)}bl(n,o),r=null;for(var i in o)if(o.hasOwnProperty(i)){var l=o[i];i==="children"?typeof l=="string"?u.textContent!==l&&(o.suppressHydrationWarning!==!0&&Yr(u.textContent,l,e),r=["children",l]):typeof l=="number"&&u.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Yr(u.textContent,l,e),r=["children",""+l]):or.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&te("scroll",u)}switch(n){case"input":Hr(u),Is(u,o,!0);break;case"textarea":Hr(u),$s(u);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(u.onclick=jo)}u=r,t.updateQueue=u,u!==null&&(t.flags|=4)}else{i=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=J0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=i.createElement(n,{is:u.is}):(e=i.createElement(n),n==="select"&&(i=e,u.multiple?i.multiple=!0:u.size&&(i.size=u.size))):e=i.createElementNS(e,n),e[At]=t,e[mr]=u,_f(e,t,!1,!1),t.stateNode=e;e:{switch(i=kl(n,u),n){case"dialog":te("cancel",e),te("close",e),r=u;break;case"iframe":case"object":case"embed":te("load",e),r=u;break;case"video":case"audio":for(r=0;r<Qu.length;r++)te(Qu[r],e);r=u;break;case"source":te("error",e),r=u;break;case"img":case"image":case"link":te("error",e),te("load",e),r=u;break;case"details":te("toggle",e),r=u;break;case"input":Ls(e,u),r=ml(e,u),te("invalid",e);break;case"option":r=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},r=se({},u,{value:void 0}),te("invalid",e);break;case"textarea":Os(e,u),r=yl(e,u),te("invalid",e);break;default:r=u}bl(n,r),l=r;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?td(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&X0(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ir(e,a):typeof a=="number"&&ir(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(or.hasOwnProperty(o)?a!=null&&o==="onScroll"&&te("scroll",e):a!=null&&ya(e,o,a,i))}switch(n){case"input":Hr(e),Is(e,u,!1);break;case"textarea":Hr(e),$s(e);break;case"option":u.value!=null&&e.setAttribute("value",""+yn(u.value));break;case"select":e.multiple=!!u.multiple,o=u.value,o!=null?tu(e,!!u.multiple,o,!1):u.defaultValue!=null&&tu(e,!!u.multiple,u.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=jo)}switch(n){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)Ef(e,t,e.memoizedProps,u);else{if(typeof u!="string"&&t.stateNode===null)throw Error(D(166));if(n=Fn(xr.current),Fn(jt.current),Jr(t)){if(u=t.stateNode,n=t.memoizedProps,u[At]=t,(o=u.nodeValue!==n)&&(e=Ge,e!==null))switch(e.tag){case 3:Yr(u.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yr(u.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else u=(n.nodeType===9?n:n.ownerDocument).createTextNode(u),u[At]=t,t.stateNode=u}return Fe(t),null;case 13:if(ne(le),u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oe&&Ke!==null&&t.mode&1&&!(t.flags&128))Ud(),du(),t.flags|=98560,o=!1;else if(o=Jr(t),u!==null&&u.dehydrated!==null){if(e===null){if(!o)throw Error(D(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(D(317));o[At]=t}else du(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),o=!1}else pt!==null&&(ta(pt),pt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(t.child.flags|=8192,t.mode&1&&(e===null||le.current&1?xe===0&&(xe=3):es())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return pu(),Kl(e,t),e===null&&pr(t.stateNode.containerInfo),Fe(t),null;case 10:return La(t.type._context),Fe(t),null;case 17:return Be(t.type)&&Ro(),Fe(t),null;case 19:if(ne(le),o=t.memoizedState,o===null)return Fe(t),null;if(u=(t.flags&128)!==0,i=o.rendering,i===null)if(u)Ou(o,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=$o(e),i!==null){for(t.flags|=128,Ou(o,!1),u=i.updateQueue,u!==null&&(t.updateQueue=u,t.flags|=4),t.subtreeFlags=0,u=n,n=t.child;n!==null;)o=n,e=u,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(le,le.current&1|2),t.child}e=e.sibling}o.tail!==null&&de()>mu&&(t.flags|=128,u=!0,Ou(o,!1),t.lanes=4194304)}else{if(!u)if(e=$o(i),e!==null){if(t.flags|=128,u=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ou(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!oe)return Fe(t),null}else 2*de()-o.renderingStartTime>mu&&n!==1073741824&&(t.flags|=128,u=!0,Ou(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=de(),t.sibling=null,n=le.current,J(le,u?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Xa(),u=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(t.flags|=8192),u&&t.mode&1?We&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function im(e,t){switch(Ra(t),t.tag){case 1:return Be(t.type)&&Ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pu(),ne($e),ne(ze),Ua(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ba(t),null;case 13:if(ne(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));du()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(le),null;case 4:return pu(),null;case 10:return La(t.type._context),null;case 22:case 23:return Xa(),null;case 24:return null;default:return null}}var to=!1,De=!1,lm=typeof WeakSet=="function"?WeakSet:Set,R=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(u){ce(e,t,u)}else n.current=null}function Gl(e,t,n){try{n()}catch(u){ce(e,t,u)}}var Dc=!1;function am(e,t){if(Nl=Do,e=Dd(),Na(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var u=n.getSelection&&n.getSelection();if(u&&u.rangeCount!==0){n=u.anchorNode;var r=u.anchorOffset,o=u.focusNode;u=u.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,s=0,d=0,p=e,m=null;t:for(;;){for(var y;p!==n||r!==0&&p.nodeType!==3||(l=i+r),p!==o||u!==0&&p.nodeType!==3||(a=i+u),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++s===r&&(l=i),m===o&&++d===u&&(a=i),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(jl={focusedElem:e,selectionRange:n},Do=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,C=g.memoizedState,x=t.stateNode,f=x.getSnapshotBeforeUpdate(t.elementType===t.type?w:dt(t.type,w),C);x.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(v){ce(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return g=Dc,Dc=!1,g}function nr(e,t,n){var u=t.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var r=u=u.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&Gl(t,n,o)}r=r.next}while(r!==u)}}function ai(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var u=n.create;n.destroy=u()}n=n.next}while(n!==t)}}function Ql(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sf(e){var t=e.alternate;t!==null&&(e.alternate=null,Sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[mr],delete t[Pl],delete t[Vh],delete t[qh])),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 Af(e){return e.tag===5||e.tag===3||e.tag===4}function zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Af(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 Zl(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jo));else if(u!==4&&(e=e.child,e!==null))for(Zl(e,t,n),e=e.sibling;e!==null;)Zl(e,t,n),e=e.sibling}function Yl(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}var Ce=null,ft=!1;function Zt(e,t,n){for(n=n.child;n!==null;)Ff(e,t,n),n=n.sibling}function Ff(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(ei,n)}catch{}switch(n.tag){case 5:De||Xn(n,t);case 6:var u=Ce,r=ft;Ce=null,Zt(e,t,n),Ce=u,ft=r,Ce!==null&&(ft?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(ft?(e=Ce,n=n.stateNode,e.nodeType===8?$i(e.parentNode,n):e.nodeType===1&&$i(e,n),cr(e)):$i(Ce,n.stateNode));break;case 4:u=Ce,r=ft,Ce=n.stateNode.containerInfo,ft=!0,Zt(e,t,n),Ce=u,ft=r;break;case 0:case 11:case 14:case 15:if(!De&&(u=n.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){r=u=u.next;do{var o=r,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Gl(n,t,i),r=r.next}while(r!==u)}Zt(e,t,n);break;case 1:if(!De&&(Xn(n,t),u=n.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=n.memoizedProps,u.state=n.memoizedState,u.componentWillUnmount()}catch(l){ce(n,t,l)}Zt(e,t,n);break;case 21:Zt(e,t,n);break;case 22:n.mode&1?(De=(u=De)||n.memoizedState!==null,Zt(e,t,n),De=u):Zt(e,t,n);break;default:Zt(e,t,n)}}function Nc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lm),t.forEach(function(u){var r=xm.bind(null,e,u);n.has(u)||(n.add(u),u.then(r,r))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var u=0;u<n.length;u++){var r=n[u];try{var o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Ce=l.stateNode,ft=!1;break e;case 3:Ce=l.stateNode.containerInfo,ft=!0;break e;case 4:Ce=l.stateNode.containerInfo,ft=!0;break e}l=l.return}if(Ce===null)throw Error(D(160));Ff(o,i,r),Ce=null,ft=!1;var a=r.alternate;a!==null&&(a.return=null),r.return=null}catch(s){ce(r,t,s)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Df(t,e),t=t.sibling}function Df(e,t){var n=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ct(t,e),Et(e),u&4){try{nr(3,e,e.return),ai(3,e)}catch(w){ce(e,e.return,w)}try{nr(5,e,e.return)}catch(w){ce(e,e.return,w)}}break;case 1:ct(t,e),Et(e),u&512&&n!==null&&Xn(n,n.return);break;case 5:if(ct(t,e),Et(e),u&512&&n!==null&&Xn(n,n.return),e.flags&32){var r=e.stateNode;try{ir(r,"")}catch(w){ce(e,e.return,w)}}if(u&4&&(r=e.stateNode,r!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Z0(r,o),kl(l,i);var s=kl(l,o);for(i=0;i<a.length;i+=2){var d=a[i],p=a[i+1];d==="style"?td(r,p):d==="dangerouslySetInnerHTML"?X0(r,p):d==="children"?ir(r,p):ya(r,d,p,s)}switch(l){case"input":gl(r,o);break;case"textarea":Y0(r,o);break;case"select":var m=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?tu(r,!!o.multiple,y,!1):m!==!!o.multiple&&(o.defaultValue!=null?tu(r,!!o.multiple,o.defaultValue,!0):tu(r,!!o.multiple,o.multiple?[]:"",!1))}r[mr]=o}catch(w){ce(e,e.return,w)}}break;case 6:if(ct(t,e),Et(e),u&4){if(e.stateNode===null)throw Error(D(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(w){ce(e,e.return,w)}}break;case 3:if(ct(t,e),Et(e),u&4&&n!==null&&n.memoizedState.isDehydrated)try{cr(t.containerInfo)}catch(w){ce(e,e.return,w)}break;case 4:ct(t,e),Et(e);break;case 13:ct(t,e),Et(e),r=e.child,r.flags&8192&&(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&&r.alternate.memoizedState!==null||(Ya=de())),u&4&&Nc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(De=(s=De)||d,ct(t,e),De=s):ct(t,e),Et(e),u&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(p=R=d;R!==null;){switch(m=R,y=m.child,m.tag){case 0:case 11:case 14:case 15:nr(4,m,m.return);break;case 1:Xn(m,m.return);var g=m.stateNode;if(typeof g.componentWillUnmount=="function"){u=m,n=m.return;try{t=u,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(w){ce(u,n,w)}}break;case 5:Xn(m,m.return);break;case 22:if(m.memoizedState!==null){Rc(p);continue}}y!==null?(y.return=m,R=y):Rc(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{r=p.stateNode,s?(o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=ed("display",i))}catch(w){ce(e,e.return,w)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=s?"":p.memoizedProps}catch(w){ce(e,e.return,w)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ct(t,e),Et(e),u&4&&Nc(e);break;case 21:break;default:ct(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Af(n)){var u=n;break e}n=n.return}throw Error(D(160))}switch(u.tag){case 5:var r=u.stateNode;u.flags&32&&(ir(r,""),u.flags&=-33);var o=zc(e);Yl(e,o,r);break;case 3:case 4:var i=u.stateNode.containerInfo,l=zc(e);Zl(e,l,i);break;default:throw Error(D(161))}}catch(a){ce(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sm(e,t,n){R=e,zf(e)}function zf(e,t,n){for(var u=(e.mode&1)!==0;R!==null;){var r=R,o=r.child;if(r.tag===22&&u){var i=r.memoizedState!==null||to;if(!i){var l=r.alternate,a=l!==null&&l.memoizedState!==null||De;l=to;var s=De;if(to=i,(De=a)&&!s)for(R=r;R!==null;)i=R,a=i.child,i.tag===22&&i.memoizedState!==null?Tc(r):a!==null?(a.return=i,R=a):Tc(r);for(;o!==null;)R=o,zf(o),o=o.sibling;R=r,to=l,De=s}jc(e)}else r.subtreeFlags&8772&&o!==null?(o.return=r,R=o):jc(e)}}function jc(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:De||ai(5,t);break;case 1:var u=t.stateNode;if(t.flags&4&&!De)if(n===null)u.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:dt(t.type,n.memoizedProps);u.componentDidUpdate(r,n.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&gc(t,o,u);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gc(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var s=t.alternate;if(s!==null){var d=s.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&cr(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}De||t.flags&512&&Ql(t)}catch(m){ce(t,t.return,m)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Rc(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Tc(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ai(4,t)}catch(a){ce(t,n,a)}break;case 1:var u=t.stateNode;if(typeof u.componentDidMount=="function"){var r=t.return;try{u.componentDidMount()}catch(a){ce(t,r,a)}}var o=t.return;try{Ql(t)}catch(a){ce(t,o,a)}break;case 5:var i=t.return;try{Ql(t)}catch(a){ce(t,i,a)}}}catch(a){ce(t,t.return,a)}if(t===e){R=null;break}var l=t.sibling;if(l!==null){l.return=t.return,R=l;break}R=t.return}}var cm=Math.ceil,Ho=Gt.ReactCurrentDispatcher,Qa=Gt.ReactCurrentOwner,rt=Gt.ReactCurrentBatchConfig,K=0,_e=null,me=null,Ee=0,We=0,eu=wn(0),xe=0,kr=null,Tn=0,si=0,Za=0,ur=null,Ie=null,Ya=0,mu=1/0,It=null,Vo=!1,Jl=null,mn=null,no=!1,an=null,qo=0,rr=0,Xl=null,yo=-1,vo=0;function Te(){return K&6?de():yo!==-1?yo:yo=de()}function gn(e){return e.mode&1?K&2&&Ee!==0?Ee&-Ee:Kh.transition!==null?(vo===0&&(vo=pd()),vo):(e=Z,e!==0||(e=window.event,e=e===void 0?16:bd(e.type)),e):1}function mt(e,t,n,u){if(50<rr)throw rr=0,Xl=null,Error(D(185));Fr(e,n,u),(!(K&2)||e!==_e)&&(e===_e&&(!(K&2)&&(si|=n),xe===4&&rn(e,Ee)),Ue(e,u),n===1&&K===0&&!(t.mode&1)&&(mu=de()+500,oi&&_n()))}function Ue(e,t){var n=e.callbackNode;K1(e,t);var u=Fo(e,e===_e?Ee:0);if(u===0)n!==null&&Hs(n),e.callbackNode=null,e.callbackPriority=0;else if(t=u&-u,e.callbackPriority!==t){if(n!=null&&Hs(n),t===1)e.tag===0?Wh(Pc.bind(null,e)):Od(Pc.bind(null,e)),Uh(function(){!(K&6)&&_n()}),n=null;else{switch(hd(u)){case 1:n=_a;break;case 4:n=dd;break;case 16:n=Ao;break;case 536870912:n=fd;break;default:n=Ao}n=If(n,Nf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Nf(e,t){if(yo=-1,vo=0,K&6)throw Error(D(327));var n=e.callbackNode;if(iu()&&e.callbackNode!==n)return null;var u=Fo(e,e===_e?Ee:0);if(u===0)return null;if(u&30||u&e.expiredLanes||t)t=Wo(e,u);else{t=u;var r=K;K|=2;var o=Rf();(_e!==e||Ee!==t)&&(It=null,mu=de()+500,Dn(e,t));do try{pm();break}catch(l){jf(e,l)}while(!0);Ma(),Ho.current=o,K=r,me!==null?t=0:(_e=null,Ee=0,t=xe)}if(t!==0){if(t===2&&(r=Sl(e),r!==0&&(u=r,t=ea(e,r))),t===1)throw n=kr,Dn(e,0),rn(e,u),Ue(e,de()),n;if(t===6)rn(e,u);else{if(r=e.current.alternate,!(u&30)&&!dm(r)&&(t=Wo(e,u),t===2&&(o=Sl(e),o!==0&&(u=o,t=ea(e,o))),t===1))throw n=kr,Dn(e,0),rn(e,u),Ue(e,de()),n;switch(e.finishedWork=r,e.finishedLanes=u,t){case 0:case 1:throw Error(D(345));case 2:En(e,Ie,It);break;case 3:if(rn(e,u),(u&130023424)===u&&(t=Ya+500-de(),10<t)){if(Fo(e,0)!==0)break;if(r=e.suspendedLanes,(r&u)!==u){Te(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=Tl(En.bind(null,e,Ie,It),t);break}En(e,Ie,It);break;case 4:if(rn(e,u),(u&4194240)===u)break;for(t=e.eventTimes,r=-1;0<u;){var i=31-ht(u);o=1<<i,i=t[i],i>r&&(r=i),u&=~o}if(u=r,u=de()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*cm(u/1960))-u,10<u){e.timeoutHandle=Tl(En.bind(null,e,Ie,It),u);break}En(e,Ie,It);break;case 5:En(e,Ie,It);break;default:throw Error(D(329))}}}return Ue(e,de()),e.callbackNode===n?Nf.bind(null,e):null}function ea(e,t){var n=ur;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=Wo(e,t),e!==2&&(t=Ie,Ie=n,t!==null&&ta(t)),e}function ta(e){Ie===null?Ie=e:Ie.push.apply(Ie,e)}function dm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var u=0;u<n.length;u++){var r=n[u],o=r.getSnapshot;r=r.value;try{if(!xt(o(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rn(e,t){for(t&=~Za,t&=~si,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),u=1<<n;e[n]=-1,t&=~u}}function Pc(e){if(K&6)throw Error(D(327));iu();var t=Fo(e,0);if(!(t&1))return Ue(e,de()),null;var n=Wo(e,t);if(e.tag!==0&&n===2){var u=Sl(e);u!==0&&(t=u,n=ea(e,u))}if(n===1)throw n=kr,Dn(e,0),rn(e,t),Ue(e,de()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,Ie,It),Ue(e,de()),null}function Ja(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(mu=de()+500,oi&&_n())}}function Pn(e){an!==null&&an.tag===0&&!(K&6)&&iu();var t=K;K|=1;var n=rt.transition,u=Z;try{if(rt.transition=null,Z=1,e)return e()}finally{Z=u,rt.transition=n,K=t,!(K&6)&&_n()}}function Xa(){We=eu.current,ne(eu)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Bh(n)),me!==null)for(n=me.return;n!==null;){var u=n;switch(Ra(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Ro();break;case 3:pu(),ne($e),ne(ze),Ua();break;case 5:Ba(u);break;case 4:pu();break;case 13:ne(le);break;case 19:ne(le);break;case 10:La(u.type._context);break;case 22:case 23:Xa()}n=n.return}if(_e=e,me=e=xn(e.current,null),Ee=We=t,xe=0,kr=null,Za=si=Tn=0,Ie=ur=null,An!==null){for(t=0;t<An.length;t++)if(n=An[t],u=n.interleaved,u!==null){n.interleaved=null;var r=u.next,o=n.pending;if(o!==null){var i=o.next;o.next=r,u.next=i}n.pending=u}An=null}return e}function jf(e,t){do{var n=me;try{if(Ma(),mo.current=Uo,Bo){for(var u=ae.memoizedState;u!==null;){var r=u.queue;r!==null&&(r.pending=null),u=u.next}Bo=!1}if(Rn=0,ke=ge=ae=null,tr=!1,yr=0,Qa.current=null,n===null||n.return===null){xe=1,kr=t,me=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=Ee,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var s=a,d=l,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=wc(i);if(y!==null){y.flags&=-257,_c(y,i,l,o,t),y.mode&1&&kc(o,s,t),t=y,a=s;var g=t.updateQueue;if(g===null){var w=new Set;w.add(a),t.updateQueue=w}else g.add(a);break e}else{if(!(t&1)){kc(o,s,t),es();break e}a=Error(D(426))}}else if(oe&&l.mode&1){var C=wc(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),_c(C,i,l,o,t),Ta(hu(a,l));break e}}o=a=hu(a,l),xe!==4&&(xe=2),ur===null?ur=[o]:ur.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var x=mf(o,a,t);mc(o,x);break e;case 1:l=a;var f=o.type,h=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(mn===null||!mn.has(h)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=gf(o,l,t);mc(o,v);break e}}o=o.return}while(o!==null)}Pf(n)}catch(b){t=b,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function Rf(){var e=Ho.current;return Ho.current=Uo,e===null?Uo:e}function es(){(xe===0||xe===3||xe===2)&&(xe=4),_e===null||!(Tn&268435455)&&!(si&268435455)||rn(_e,Ee)}function Wo(e,t){var n=K;K|=2;var u=Rf();(_e!==e||Ee!==t)&&(It=null,Dn(e,t));do try{fm();break}catch(r){jf(e,r)}while(!0);if(Ma(),K=n,Ho.current=u,me!==null)throw Error(D(261));return _e=null,Ee=0,xe}function fm(){for(;me!==null;)Tf(me)}function pm(){for(;me!==null&&!I1();)Tf(me)}function Tf(e){var t=Lf(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?Pf(e):me=t,Qa.current=null}function Pf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=im(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,me=null;return}}else if(n=om(n,t,We),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);xe===0&&(xe=5)}function En(e,t,n){var u=Z,r=rt.transition;try{rt.transition=null,Z=1,hm(e,t,n,u)}finally{rt.transition=r,Z=u}return null}function hm(e,t,n,u){do iu();while(an!==null);if(K&6)throw Error(D(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(G1(e,o),e===_e&&(me=_e=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||no||(no=!0,If(Ao,function(){return iu(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=rt.transition,rt.transition=null;var i=Z;Z=1;var l=K;K|=4,Qa.current=null,am(e,n),Df(n,e),Th(jl),Do=!!Nl,jl=Nl=null,e.current=n,sm(n),O1(),K=l,Z=i,rt.transition=o}else e.current=n;if(no&&(no=!1,an=e,qo=r),o=e.pendingLanes,o===0&&(mn=null),U1(n.stateNode),Ue(e,de()),t!==null)for(u=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],u(r.value,{componentStack:r.stack,digest:r.digest});if(Vo)throw Vo=!1,e=Jl,Jl=null,e;return qo&1&&e.tag!==0&&iu(),o=e.pendingLanes,o&1?e===Xl?rr++:(rr=0,Xl=e):rr=0,_n(),null}function iu(){if(an!==null){var e=hd(qo),t=rt.transition,n=Z;try{if(rt.transition=null,Z=16>e?16:e,an===null)var u=!1;else{if(e=an,an=null,qo=0,K&6)throw Error(D(331));var r=K;for(K|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var s=l[a];for(R=s;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:nr(8,d,o)}var p=d.child;if(p!==null)p.return=d,R=p;else for(;R!==null;){d=R;var m=d.sibling,y=d.return;if(Sf(d),d===s){R=null;break}if(m!==null){m.return=y,R=m;break}R=y}}}var g=o.alternate;if(g!==null){var w=g.child;if(w!==null){g.child=null;do{var C=w.sibling;w.sibling=null,w=C}while(w!==null)}}R=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,R=i;else e:for(;R!==null;){if(o=R,o.flags&2048)switch(o.tag){case 0:case 11:case 15:nr(9,o,o.return)}var x=o.sibling;if(x!==null){x.return=o.return,R=x;break e}R=o.return}}var f=e.current;for(R=f;R!==null;){i=R;var h=i.child;if(i.subtreeFlags&2064&&h!==null)h.return=i,R=h;else e:for(i=f;R!==null;){if(l=R,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ai(9,l)}}catch(b){ce(l,l.return,b)}if(l===i){R=null;break e}var v=l.sibling;if(v!==null){v.return=l.return,R=v;break e}R=l.return}}if(K=r,_n(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(ei,e)}catch{}u=!0}return u}finally{Z=n,rt.transition=t}}return!1}function Mc(e,t,n){t=hu(n,t),t=mf(e,t,1),e=hn(e,t,1),t=Te(),e!==null&&(Fr(e,1,t),Ue(e,t))}function ce(e,t,n){if(e.tag===3)Mc(e,e,n);else for(;t!==null;){if(t.tag===3){Mc(t,e,n);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(mn===null||!mn.has(u))){e=hu(n,e),e=gf(t,e,1),t=hn(t,e,1),e=Te(),t!==null&&(Fr(t,1,e),Ue(t,e));break}}t=t.return}}function mm(e,t,n){var u=e.pingCache;u!==null&&u.delete(t),t=Te(),e.pingedLanes|=e.suspendedLanes&n,_e===e&&(Ee&n)===n&&(xe===4||xe===3&&(Ee&130023424)===Ee&&500>de()-Ya?Dn(e,0):Za|=n),Ue(e,t)}function Mf(e,t){t===0&&(e.mode&1?(t=Wr,Wr<<=1,!(Wr&130023424)&&(Wr=4194304)):t=1);var n=Te();e=qt(e,t),e!==null&&(Fr(e,t,n),Ue(e,n))}function gm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mf(e,n)}function xm(e,t){var n=0;switch(e.tag){case 13:var u=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(D(314))}u!==null&&u.delete(t),Mf(e,n)}var Lf;Lf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,rm(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,oe&&t.flags&1048576&&$d(t,Mo,t.index);switch(t.lanes=0,t.tag){case 2:var u=t.type;xo(e,t),e=t.pendingProps;var r=cu(t,ze.current);ou(t,n),r=Va(null,t,u,e,r,n);var o=qa();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(u)?(o=!0,To(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Oa(t),r.updater=li,t.stateNode=r,r._reactInternals=t,Bl(t,u,e,n),t=Vl(null,t,u,!0,o,n)):(t.tag=0,oe&&o&&ja(t),Re(null,t,r,n),t=t.child),t;case 16:u=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,r=u._init,u=r(u._payload),t.type=u,r=t.tag=vm(u),e=dt(u,e),r){case 0:t=Hl(null,t,u,e,n);break e;case 1:t=Sc(null,t,u,e,n);break e;case 11:t=Cc(null,t,u,e,n);break e;case 14:t=Ec(null,t,u,dt(u.type,e),n);break e}throw Error(D(306,u,""))}return t;case 0:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),Hl(e,t,u,r,n);case 1:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),Sc(e,t,u,r,n);case 3:e:{if(bf(t),e===null)throw Error(D(387));u=t.pendingProps,o=t.memoizedState,r=o.element,Wd(e,t),Oo(t,u,null,n);var i=t.memoizedState;if(u=i.element,o.isDehydrated)if(o={element:u,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=hu(Error(D(423)),t),t=Ac(e,t,u,n,r);break e}else if(u!==r){r=hu(Error(D(424)),t),t=Ac(e,t,u,n,r);break e}else for(Ke=pn(t.stateNode.containerInfo.firstChild),Ge=t,oe=!0,pt=null,n=Vd(t,null,u,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(du(),u===r){t=Wt(e,t,n);break e}Re(e,t,u,n)}t=t.child}return t;case 5:return Kd(t),e===null&&Il(t),u=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,i=r.children,Rl(u,r)?i=null:o!==null&&Rl(u,o)&&(t.flags|=32),vf(e,t),Re(e,t,i,n),t.child;case 6:return e===null&&Il(t),null;case 13:return kf(e,t,n);case 4:return $a(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=fu(t,null,u,n):Re(e,t,u,n),t.child;case 11:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),Cc(e,t,u,r,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(u=t.type._context,r=t.pendingProps,o=t.memoizedProps,i=r.value,J(Lo,u._currentValue),u._currentValue=i,o!==null)if(xt(o.value,i)){if(o.children===r.children&&!$e.current){t=Wt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var a=l.firstContext;a!==null;){if(a.context===u){if(o.tag===1){a=Ut(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?a.next=a:(a.next=d.next,d.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ol(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(D(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ol(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Re(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,u=t.pendingProps.children,ou(t,n),r=it(r),u=u(r),t.flags|=1,Re(e,t,u,n),t.child;case 14:return u=t.type,r=dt(u,t.pendingProps),r=dt(u.type,r),Ec(e,t,u,r,n);case 15:return xf(e,t,t.type,t.pendingProps,n);case 17:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),xo(e,t),t.tag=1,Be(u)?(e=!0,To(t)):e=!1,ou(t,n),hf(t,u,r),Bl(t,u,r,n),Vl(null,t,u,!0,e,n);case 19:return wf(e,t,n);case 22:return yf(e,t,n)}throw Error(D(156,t.tag))};function If(e,t){return cd(e,t)}function ym(e,t,n,u){this.tag=e,this.key=n,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,u){return new ym(e,t,n,u)}function ts(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vm(e){if(typeof e=="function")return ts(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ba)return 11;if(e===ka)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bo(e,t,n,u,r,o){var i=2;if(u=e,typeof e=="function")ts(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vn:return zn(n.children,r,o,t);case va:i=8,r|=8;break;case dl:return e=ut(12,n,t,r|2),e.elementType=dl,e.lanes=o,e;case fl:return e=ut(13,n,t,r),e.elementType=fl,e.lanes=o,e;case pl:return e=ut(19,n,t,r),e.elementType=pl,e.lanes=o,e;case K0:return ci(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q0:i=10;break e;case W0:i=9;break e;case ba:i=11;break e;case ka:i=14;break e;case en:i=16,u=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=ut(i,n,t,r),t.elementType=e,t.type=u,t.lanes=o,t}function zn(e,t,n,u){return e=ut(7,e,u,t),e.lanes=n,e}function ci(e,t,n,u){return e=ut(22,e,u,t),e.elementType=K0,e.lanes=n,e.stateNode={isHidden:!1},e}function Gi(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Qi(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bm(e,t,n,u,r){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=Di(0),this.expirationTimes=Di(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Di(0),this.identifierPrefix=u,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ns(e,t,n,u,r,o,i,l,a){return e=new bm(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ut(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:u,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oa(o),e}function km(e,t,n){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hn,key:u==null?null:""+u,children:e,containerInfo:t,implementation:n}}function Of(e){if(!e)return vn;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(Be(n))return Id(e,n,t)}return t}function $f(e,t,n,u,r,o,i,l,a){return e=ns(n,u,!0,e,r,o,i,l,a),e.context=Of(null),n=e.current,u=Te(),r=gn(n),o=Ut(u,r),o.callback=t??null,hn(n,o,r),e.current.lanes=r,Fr(e,r,u),Ue(e,u),e}function di(e,t,n,u){var r=t.current,o=Te(),i=gn(r);return n=Of(n),t.context===null?t.context=n:t.pendingContext=n,t=Ut(o,i),t.payload={element:e},u=u===void 0?null:u,u!==null&&(t.callback=u),e=hn(r,t,i),e!==null&&(mt(e,r,i,o),ho(e,r,i)),i}function Ko(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 Lc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function us(e,t){Lc(e,t),(e=e.alternate)&&Lc(e,t)}function wm(){return null}var Bf=typeof reportError=="function"?reportError:function(e){console.error(e)};function rs(e){this._internalRoot=e}fi.prototype.render=rs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));di(e,t,null,null)};fi.prototype.unmount=rs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pn(function(){di(null,e,null,null)}),t[Vt]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=xd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<un.length&&t!==0&&t<un[n].priority;n++);un.splice(n,0,e),n===0&&vd(e)}};function os(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ic(){}function _m(e,t,n,u,r){if(r){if(typeof u=="function"){var o=u;u=function(){var s=Ko(i);o.call(s)}}var i=$f(t,u,e,0,null,!1,!1,"",Ic);return e._reactRootContainer=i,e[Vt]=i.current,pr(e.nodeType===8?e.parentNode:e),Pn(),i}for(;r=e.lastChild;)e.removeChild(r);if(typeof u=="function"){var l=u;u=function(){var s=Ko(a);l.call(s)}}var a=ns(e,0,!1,null,null,!1,!1,"",Ic);return e._reactRootContainer=a,e[Vt]=a.current,pr(e.nodeType===8?e.parentNode:e),Pn(function(){di(t,a,n,u)}),a}function hi(e,t,n,u,r){var o=n._reactRootContainer;if(o){var i=o;if(typeof r=="function"){var l=r;r=function(){var a=Ko(i);l.call(a)}}di(t,i,e,r)}else i=_m(n,t,e,r,u);return Ko(i)}md=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Gu(t.pendingLanes);n!==0&&(Ca(t,n|1),Ue(t,de()),!(K&6)&&(mu=de()+500,_n()))}break;case 13:Pn(function(){var u=qt(e,1);if(u!==null){var r=Te();mt(u,e,1,r)}}),us(e,1)}};Ea=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var n=Te();mt(t,e,134217728,n)}us(e,134217728)}};gd=function(e){if(e.tag===13){var t=gn(e),n=qt(e,t);if(n!==null){var u=Te();mt(n,e,t,u)}us(e,t)}};xd=function(){return Z};yd=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};_l=function(e,t,n){switch(t){case"input":if(gl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var u=n[t];if(u!==e&&u.form===e.form){var r=ri(u);if(!r)throw Error(D(90));Q0(u),gl(u,r)}}}break;case"textarea":Y0(e,n);break;case"select":t=n.value,t!=null&&tu(e,!!n.multiple,t,!1)}};rd=Ja;od=Pn;var Cm={usingClientEntryPoint:!1,Events:[zr,Gn,ri,nd,ud,Ja]},$u={findFiberByHostInstance:Sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Em={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ad(e),e===null?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||wm,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 uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{ei=uo.inject(Em),Nt=uo}catch{}}Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cm;Ye.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!os(t))throw Error(D(200));return km(e,t,null,n)};Ye.createRoot=function(e,t){if(!os(e))throw Error(D(299));var n=!1,u="",r=Bf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=ns(e,1,!1,null,null,n,!1,u,r),e[Vt]=t.current,pr(e.nodeType===8?e.parentNode:e),new rs(t)};Ye.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=ad(t),e=e===null?null:e.stateNode,e};Ye.flushSync=function(e){return Pn(e)};Ye.hydrate=function(e,t,n){if(!pi(t))throw Error(D(200));return hi(null,e,t,!0,n)};Ye.hydrateRoot=function(e,t,n){if(!os(e))throw Error(D(405));var u=n!=null&&n.hydratedSources||null,r=!1,o="",i=Bf;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=$f(t,null,e,1,n??null,r,!1,o,i),e[Vt]=t.current,pr(e),u)for(e=0;e<u.length;e++)n=u[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new fi(t)};Ye.render=function(e,t,n){if(!pi(t))throw Error(D(200));return hi(null,e,t,!1,n)};Ye.unmountComponentAtNode=function(e){if(!pi(e))throw Error(D(40));return e._reactRootContainer?(Pn(function(){hi(null,null,e,!1,function(){e._reactRootContainer=null,e[Vt]=null})}),!0):!1};Ye.unstable_batchedUpdates=Ja;Ye.unstable_renderSubtreeIntoContainer=function(e,t,n,u){if(!pi(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return hi(e,t,n,!1,u)};Ye.version="18.3.1-next-f1338f8080-20240426";function Uf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uf)}catch(e){console.error(e)}}Uf(),B0.exports=Ye;var Sm=B0.exports,Oc=Sm;sl.createRoot=Oc.createRoot,sl.hydrateRoot=Oc.hydrateRoot;/**
|
||
* react-router v7.15.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/var $c="popstate";function Bc(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Am(e={}){function t(u,r){var s;let o=(s=r.state)==null?void 0:s.masked,{pathname:i,search:l,hash:a}=o||u.location;return na("",{pathname:i,search:l,hash:a},r.state&&r.state.usr||null,r.state&&r.state.key||"default",o?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function n(u,r){return typeof r=="string"?r:wr(r)}return Dm(t,n,null,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fm(){return Math.random().toString(36).substring(2,10)}function Uc(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function na(e,t,n=null,u,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ku(t):t,state:n,key:t&&t.key||u||Fm(),mask:r}}function wr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ku(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let u=e.indexOf("?");u>=0&&(t.search=e.substring(u),e=e.substring(0,u)),e&&(t.pathname=e)}return t}function Dm(e,t,n,u={}){let{window:r=document.defaultView,v5Compat:o=!1}=u,i=r.history,l="POP",a=null,s=d();s==null&&(s=0,i.replaceState({...i.state,idx:s},""));function d(){return(i.state||{idx:null}).idx}function p(){l="POP";let C=d(),x=C==null?null:C-s;s=C,a&&a({action:l,location:w.location,delta:x})}function m(C,x){l="PUSH";let f=Bc(C)?C:na(w.location,C,x);s=d()+1;let h=Uc(f,s),v=w.createHref(f.mask||f);try{i.pushState(h,"",v)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;r.location.assign(v)}o&&a&&a({action:l,location:w.location,delta:1})}function y(C,x){l="REPLACE";let f=Bc(C)?C:na(w.location,C,x);s=d();let h=Uc(f,s),v=w.createHref(f.mask||f);i.replaceState(h,"",v),o&&a&&a({action:l,location:w.location,delta:0})}function g(C){return zm(C)}let w={get action(){return l},get location(){return e(r,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return r.addEventListener($c,p),a=C,()=>{r.removeEventListener($c,p),a=null}},createHref(C){return t(r,C)},createURL:g,encodeLocation(C){let x=g(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:y,go(C){return i.go(C)}};return w}function zm(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ie(n,"No window.location.(origin|href) available to create URL");let u=typeof e=="string"?e:wr(e);return u=u.replace(/ $/,"%20"),!t&&u.startsWith("//")&&(u=n+u),new URL(u,n)}function Hf(e,t,n="/"){return Nm(e,t,n,!1)}function Nm(e,t,n,u,r){let o=typeof t=="string"?ku(t):t,i=Kt(o.pathname||"/",n);if(i==null)return null;let l=jm(e),a=null,s=Vm(i);for(let d=0;a==null&&d<l.length;++d)a=Um(l[d],s,u);return a}function jm(e){let t=Vf(e);return Rm(t),t}function Vf(e,t=[],n=[],u="",r=!1){let o=(i,l,a=r,s)=>{let d={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(u)&&a)return;ie(d.relativePath.startsWith(u),`Absolute route path "${d.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(u.length)}let p=gt([u,d.relativePath]),m=n.concat(d);i.children&&i.children.length>0&&(ie(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Vf(i.children,t,m,p,a)),!(i.path==null&&!i.index)&&t.push({path:p,score:$m(p,i.index),routesMeta:m})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of qf(i.path))o(i,l,!0,s)}),t}function qf(e){let t=e.split("/");if(t.length===0)return[];let[n,...u]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(u.length===0)return r?[o,""]:[o];let i=qf(u.join("/")),l=[];return l.push(...i.map(a=>a===""?o:[o,a].join("/"))),r&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Rm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Bm(t.routesMeta.map(u=>u.childrenIndex),n.routesMeta.map(u=>u.childrenIndex)))}var Tm=/^:[\w-]+$/,Pm=3,Mm=2,Lm=1,Im=10,Om=-2,Hc=e=>e==="*";function $m(e,t){let n=e.split("/"),u=n.length;return n.some(Hc)&&(u+=Om),t&&(u+=Mm),n.filter(r=>!Hc(r)).reduce((r,o)=>r+(Tm.test(o)?Pm:o===""?Lm:Im),u)}function Bm(e,t){return e.length===t.length&&e.slice(0,-1).every((u,r)=>u===t[r])?e[e.length-1]-t[t.length-1]:0}function Um(e,t,n=!1){let{routesMeta:u}=e,r={},o="/",i=[];for(let l=0;l<u.length;++l){let a=u[l],s=l===u.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=Go({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},d),m=a.route;if(!p&&s&&n&&!u[u.length-1].route.index&&(p=Go({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!p)return null;Object.assign(r,p.params),i.push({params:r,pathname:gt([o,p.pathname]),pathnameBase:Gm(gt([o,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(o=gt([o,p.pathnameBase]))}return i}function Go(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,u]=Hm(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],i=o.replace(/(.)\/+$/,"$1"),l=r.slice(1);return{params:u.reduce((s,{paramName:d,isOptional:p},m)=>{if(d==="*"){let g=l[m]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const y=l[m];return p&&!y?s[d]=void 0:s[d]=(y||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Hm(e,t=!1,n=!0){yt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let u=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a,s,d)=>{if(u.push({paramName:l,isOptional:a!=null}),a){let p=d.charAt(s+i.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(u.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),u]}function Vm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Kt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,u=e.charAt(n);return u&&u!=="/"?null:e.slice(n)||"/"}var qm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Wm(e,t="/"){let{pathname:n,search:u="",hash:r=""}=typeof e=="string"?ku(e):e,o;return n?(n=Wf(n),n.startsWith("/")?o=Vc(n.substring(1),"/"):o=Vc(n,t)):o=t,{pathname:o,search:Qm(u),hash:Zm(r)}}function Vc(e,t){let n=Qo(t).split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Zi(e,t,n,u){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Km(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function is(e){let t=Km(e);return t.map((n,u)=>u===t.length-1?n.pathname:n.pathnameBase)}function mi(e,t,n,u=!1){let r;typeof e=="string"?r=ku(e):(r={...e},ie(!r.pathname||!r.pathname.includes("?"),Zi("?","pathname","search",r)),ie(!r.pathname||!r.pathname.includes("#"),Zi("#","pathname","hash",r)),ie(!r.search||!r.search.includes("#"),Zi("#","search","hash",r)));let o=e===""||r.pathname==="",i=o?"/":r.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!u&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;r.pathname=m.join("/")}l=p>=0?t[p]:"/"}let a=Wm(r,l),s=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||d)&&(a.pathname+="/"),a}var Wf=e=>e.replace(/\/\/+/g,"/"),gt=e=>Wf(e.join("/")),Qo=e=>e.replace(/\/+$/,""),Gm=e=>Qo(e).replace(/^\/*/,"/"),Qm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ym=class{constructor(e,t,n,u=!1){this.status=e,this.statusText=t||"",this.internal=u,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Jm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Xm(e){let t=e.map(n=>n.route.path).filter(Boolean);return gt(t)||"/"}var Kf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gf(e,t){let n=e;if(typeof n!="string"||!qm.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let u=n,r=!1;if(Kf)try{let o=new URL(window.location.href),i=n.startsWith("//")?new URL(o.protocol+n):new URL(n),l=Kt(i.pathname,t);i.origin===o.origin&&l!=null?n=l+i.search+i.hash:r=!0}catch{yt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:r,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Qf=["POST","PUT","PATCH","DELETE"];new Set(Qf);var e2=["GET",...Qf];new Set(e2);var wu=k.createContext(null);wu.displayName="DataRouter";var gi=k.createContext(null);gi.displayName="DataRouterState";var Zf=k.createContext(!1);function t2(){return k.useContext(Zf)}var Yf=k.createContext({isTransitioning:!1});Yf.displayName="ViewTransition";var n2=k.createContext(new Map);n2.displayName="Fetchers";var u2=k.createContext(null);u2.displayName="Await";var Xe=k.createContext(null);Xe.displayName="Navigation";var jr=k.createContext(null);jr.displayName="Location";var bt=k.createContext({outlet:null,matches:[],isDataRoute:!1});bt.displayName="Route";var ls=k.createContext(null);ls.displayName="RouteError";var Jf="REACT_ROUTER_ERROR",r2="REDIRECT",o2="ROUTE_ERROR_RESPONSE";function i2(e){if(e.startsWith(`${Jf}:${r2}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function l2(e){if(e.startsWith(`${Jf}:${o2}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ym(t.status,t.statusText,t.data)}catch{}}function a2(e,{relative:t}={}){ie(_u(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:u}=k.useContext(Xe),{hash:r,pathname:o,search:i}=Tr(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:gt([n,o])),u.createHref({pathname:l,search:i,hash:r})}function _u(){return k.useContext(jr)!=null}function st(){return ie(_u(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(jr).location}var Xf="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ep(e){k.useContext(Xe).static||k.useLayoutEffect(e)}function Rr(){let{isDataRoute:e}=k.useContext(bt);return e?k2():s2()}function s2(){ie(_u(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(wu),{basename:t,navigator:n}=k.useContext(Xe),{matches:u}=k.useContext(bt),{pathname:r}=st(),o=JSON.stringify(is(u)),i=k.useRef(!1);return ep(()=>{i.current=!0}),k.useCallback((a,s={})=>{if(yt(i.current,Xf),!i.current)return;if(typeof a=="number"){n.go(a);return}let d=mi(a,JSON.parse(o),r,s.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:gt([t,d.pathname])),(s.replace?n.replace:n.push)(d,s.state,s)},[t,n,o,r,e])}k.createContext(null);function tp(){let{matches:e}=k.useContext(bt),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Tr(e,{relative:t}={}){let{matches:n}=k.useContext(bt),{pathname:u}=st(),r=JSON.stringify(is(n));return k.useMemo(()=>mi(e,JSON.parse(r),u,t==="path"),[e,r,u,t])}function c2(e,t){return np(e,t)}function np(e,t,n){var C;ie(_u(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=k.useContext(Xe),{matches:r}=k.useContext(bt),o=r[r.length-1],i=o?o.params:{},l=o?o.pathname:"/",a=o?o.pathnameBase:"/",s=o&&o.route;{let x=s&&s.path||"";rp(l,!s||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let d=st(),p;if(t){let x=typeof t=="string"?ku(t):t;ie(a==="/"||((C=x.pathname)==null?void 0:C.startsWith(a)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${a}" but pathname "${x.pathname}" was given in the \`location\` prop.`),p=x}else p=d;let m=p.pathname||"/",y=m;if(a!=="/"){let x=a.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=n&&n.state.matches.length?n.state.matches.map(x=>Object.assign(x,{route:n.manifest[x.route.id]||x.route})):Hf(e,{pathname:y});yt(s||g!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),yt(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=m2(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},i,x.params),pathname:gt([a,u.encodeLocation?u.encodeLocation(x.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:gt([a,u.encodeLocation?u.encodeLocation(x.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),r,n);return t&&w?k.createElement(jr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},w):w}function d2(){let e=b2(),t=Jm(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,u="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:u},o={padding:"2px 4px",backgroundColor:u},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:o},"ErrorBoundary")," or"," ",k.createElement("code",{style:o},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:r},n):null,i)}var f2=k.createElement(d2,null),up=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=l2(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(bt.Provider,{value:this.props.routeContext},k.createElement(ls.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(p2,{error:e},t):t}};up.contextType=Zf;var Yi=new WeakMap;function p2({children:e,error:t}){let{basename:n}=k.useContext(Xe);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let u=i2(t.digest);if(u){let r=Yi.get(t);if(r)throw r;let o=Gf(u.location,n);if(Kf&&!Yi.get(t))if(o.isExternal||u.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:u.replace}));throw Yi.set(t,i),i}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function h2({routeContext:e,match:t,children:n}){let u=k.useContext(wu);return u&&u.static&&u.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(bt.Provider,{value:e},n)}function m2(e,t=[],n){let u=n==null?void 0:n.state;if(e==null){if(!u)return null;if(u.errors)e=u.matches;else if(t.length===0&&!u.initialized&&u.matches.length>0)e=u.matches;else return null}let r=e,o=u==null?void 0:u.errors;if(o!=null){let d=r.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);ie(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,d+1))}let i=!1,l=-1;if(n&&u){i=u.renderFallback;for(let d=0;d<r.length;d++){let p=r[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(l=d),p.route.id){let{loaderData:m,errors:y}=u,g=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||g){n.isStatic&&(i=!0),l>=0?r=r.slice(0,l+1):r=[r[0]];break}}}}let a=n==null?void 0:n.onError,s=u&&a?(d,p)=>{var m,y;a(d,{location:u.location,params:((y=(m=u.matches)==null?void 0:m[0])==null?void 0:y.params)??{},pattern:Xm(u.matches),errorInfo:p})}:void 0;return r.reduceRight((d,p,m)=>{let y,g=!1,w=null,C=null;u&&(y=o&&p.route.id?o[p.route.id]:void 0,w=p.route.errorElement||f2,i&&(l<0&&m===0?(rp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,C=null):l===m&&(g=!0,C=p.route.hydrateFallbackElement||null)));let x=t.concat(r.slice(0,m+1)),f=()=>{let h;return y?h=w:g?h=C:p.route.Component?h=k.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=d,k.createElement(h2,{match:p,routeContext:{outlet:d,matches:x,isDataRoute:u!=null},children:h})};return u&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?k.createElement(up,{location:u.location,revalidation:u.revalidation,component:w,error:y,children:f(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:s}):f()},null)}function as(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function g2(e){let t=k.useContext(wu);return ie(t,as(e)),t}function x2(e){let t=k.useContext(gi);return ie(t,as(e)),t}function y2(e){let t=k.useContext(bt);return ie(t,as(e)),t}function ss(e){let t=y2(e),n=t.matches[t.matches.length-1];return ie(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function v2(){return ss("useRouteId")}function b2(){var u;let e=k.useContext(ls),t=x2("useRouteError"),n=ss("useRouteError");return e!==void 0?e:(u=t.errors)==null?void 0:u[n]}function k2(){let{router:e}=g2("useNavigate"),t=ss("useNavigate"),n=k.useRef(!1);return ep(()=>{n.current=!0}),k.useCallback(async(r,o={})=>{yt(n.current,Xf),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}var qc={};function rp(e,t,n){!t&&!qc[e]&&(qc[e]=!0,yt(!1,n))}k.memo(w2);function w2({routes:e,manifest:t,future:n,state:u,isStatic:r,onError:o}){return np(e,void 0,{manifest:t,state:u,isStatic:r,onError:o})}function _2({to:e,replace:t,state:n,relative:u}){ie(_u(),"<Navigate> may be used only in the context of a <Router> component.");let{static:r}=k.useContext(Xe);yt(!r,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=k.useContext(bt),{pathname:i}=st(),l=Rr(),a=mi(e,is(o),i,u==="path"),s=JSON.stringify(a);return k.useEffect(()=>{l(JSON.parse(s),{replace:t,state:n,relative:u})},[l,s,u,t,n]),null}function Xt(e){ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function C2({basename:e="/",children:t=null,location:n,navigationType:u="POP",navigator:r,static:o=!1,useTransitions:i}){ie(!_u(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:l,navigator:r,static:o,useTransitions:i,future:{}}),[l,r,o,i]);typeof n=="string"&&(n=ku(n));let{pathname:s="/",search:d="",hash:p="",state:m=null,key:y="default",mask:g}=n,w=k.useMemo(()=>{let C=Kt(s,l);return C==null?null:{location:{pathname:C,search:d,hash:p,state:m,key:y,mask:g},navigationType:u}},[l,s,d,p,m,y,u,g]);return yt(w!=null,`<Router basename="${l}"> is not able to match the URL "${s}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:k.createElement(Xe.Provider,{value:a},k.createElement(jr.Provider,{children:t,value:w}))}function E2({children:e,location:t}){return c2(ua(e),t)}function ua(e,t=[]){let n=[];return k.Children.forEach(e,(u,r)=>{if(!k.isValidElement(u))return;let o=[...t,r];if(u.type===k.Fragment){n.push.apply(n,ua(u.props.children,o));return}ie(u.type===Xt,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ie(!u.props.index||!u.props.children,"An index route cannot have child routes.");let i={id:u.props.id||o.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(i.children=ua(u.props.children,o)),n.push(i)}),n}var ko="get",wo="application/x-www-form-urlencoded";function xi(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function S2(e){return xi(e)&&e.tagName.toLowerCase()==="button"}function A2(e){return xi(e)&&e.tagName.toLowerCase()==="form"}function F2(e){return xi(e)&&e.tagName.toLowerCase()==="input"}function D2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function z2(e,t){return e.button===0&&(!t||t==="_self")&&!D2(e)}var ro=null;function N2(){if(ro===null)try{new FormData(document.createElement("form"),0),ro=!1}catch{ro=!0}return ro}var j2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ji(e){return e!=null&&!j2.has(e)?(yt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wo}"`),null):e}function R2(e,t){let n,u,r,o,i;if(A2(e)){let l=e.getAttribute("action");u=l?Kt(l,t):null,n=e.getAttribute("method")||ko,r=Ji(e.getAttribute("enctype"))||wo,o=new FormData(e)}else if(S2(e)||F2(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||l.getAttribute("action");if(u=a?Kt(a,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||ko,r=Ji(e.getAttribute("formenctype"))||Ji(l.getAttribute("enctype"))||wo,o=new FormData(l,e),!N2()){let{name:s,type:d,value:p}=e;if(d==="image"){let m=s?`${s}.`:"";o.append(`${m}x`,"0"),o.append(`${m}y`,"0")}else s&&o.append(s,p)}}else{if(xi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ko,u=null,r=wo,i=e}return o&&r==="text/plain"&&(i=o,o=void 0),{action:u,method:n.toLowerCase(),encType:r,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cs(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function op(e,t,n,u){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${u}`:r.pathname=`${r.pathname}.${u}`:r.pathname==="/"?r.pathname=`_root.${u}`:t&&Kt(r.pathname,t)==="/"?r.pathname=`${Qo(t)}/_root.${u}`:r.pathname=`${Qo(r.pathname)}.${u}`,r}async function T2(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function P2(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function M2(e,t,n){let u=await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let i=await T2(o,n);return i.links?i.links():[]}return[]}));return $2(u.flat(1).filter(P2).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Wc(e,t,n,u,r,o){let i=(a,s)=>n[s]?a.route.id!==n[s].route.id:!0,l=(a,s)=>{var d;return n[s].pathname!==a.pathname||((d=n[s].route.path)==null?void 0:d.endsWith("*"))&&n[s].params["*"]!==a.params["*"]};return o==="assets"?t.filter((a,s)=>i(a,s)||l(a,s)):o==="data"?t.filter((a,s)=>{var p;let d=u.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(i(a,s)||l(a,s))return!0;if(a.route.shouldRevalidate){let m=a.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function L2(e,t,{includeHydrateFallback:n}={}){return I2(e.map(u=>{let r=t.routes[u.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function I2(e){return[...new Set(e)]}function O2(e){let t={},n=Object.keys(e).sort();for(let u of n)t[u]=e[u];return t}function $2(e,t){let n=new Set;return new Set(t),e.reduce((u,r)=>{let o=JSON.stringify(O2(r));return n.has(o)||(n.add(o),u.push({key:o,link:r})),u},[])}function ds(){let e=k.useContext(wu);return cs(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function B2(){let e=k.useContext(gi);return cs(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var fs=k.createContext(void 0);fs.displayName="FrameworkContext";function ps(){let e=k.useContext(fs);return cs(e,"You must render this element inside a <HydratedRouter> element"),e}function U2(e,t){let n=k.useContext(fs),[u,r]=k.useState(!1),[o,i]=k.useState(!1),{onFocus:l,onBlur:a,onMouseEnter:s,onMouseLeave:d,onTouchStart:p}=t,m=k.useRef(null);k.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let w=x=>{x.forEach(f=>{i(f.isIntersecting)})},C=new IntersectionObserver(w,{threshold:.5});return m.current&&C.observe(m.current),()=>{C.disconnect()}}},[e]),k.useEffect(()=>{if(u){let w=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(w)}}},[u]);let y=()=>{r(!0)},g=()=>{r(!1),i(!1)};return n?e!=="intent"?[o,m,{}]:[o,m,{onFocus:Bu(l,y),onBlur:Bu(a,g),onMouseEnter:Bu(s,y),onMouseLeave:Bu(d,g),onTouchStart:Bu(p,y)}]:[!1,m,{}]}function Bu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function H2({page:e,...t}){let n=t2(),{router:u}=ds(),r=k.useMemo(()=>Hf(u.routes,e,u.basename),[u.routes,e,u.basename]);return r?n?k.createElement(q2,{page:e,matches:r,...t}):k.createElement(W2,{page:e,matches:r,...t}):null}function V2(e){let{manifest:t,routeModules:n}=ps(),[u,r]=k.useState([]);return k.useEffect(()=>{let o=!1;return M2(e,t,n).then(i=>{o||r(i)}),()=>{o=!0}},[e,t,n]),u}function q2({page:e,matches:t,...n}){let u=st(),{future:r}=ps(),{basename:o}=ds(),i=k.useMemo(()=>{if(e===u.pathname+u.search+u.hash)return[];let l=op(e,o,r.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,s=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?a=!0:s.push(d.route.id);return a&&s.length>0&&l.searchParams.set("_routes",s.join(",")),[l.pathname+l.search]},[o,r.unstable_trailingSlashAwareDataRequests,e,u,t]);return k.createElement(k.Fragment,null,i.map(l=>k.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function W2({page:e,matches:t,...n}){let u=st(),{future:r,manifest:o,routeModules:i}=ps(),{basename:l}=ds(),{loaderData:a,matches:s}=B2(),d=k.useMemo(()=>Wc(e,t,s,o,u,"data"),[e,t,s,o,u]),p=k.useMemo(()=>Wc(e,t,s,o,u,"assets"),[e,t,s,o,u]),m=k.useMemo(()=>{if(e===u.pathname+u.search+u.hash)return[];let w=new Set,C=!1;if(t.forEach(f=>{var v;let h=o.routes[f.route.id];!h||!h.hasLoader||(!d.some(b=>b.route.id===f.route.id)&&f.route.id in a&&((v=i[f.route.id])!=null&&v.shouldRevalidate)||h.hasClientLoader?C=!0:w.add(f.route.id))}),w.size===0)return[];let x=op(e,l,r.unstable_trailingSlashAwareDataRequests,"data");return C&&w.size>0&&x.searchParams.set("_routes",t.filter(f=>w.has(f.route.id)).map(f=>f.route.id).join(",")),[x.pathname+x.search]},[l,r.unstable_trailingSlashAwareDataRequests,a,u,o,d,t,e,i]),y=k.useMemo(()=>L2(p,o),[p,o]),g=V2(p);return k.createElement(k.Fragment,null,m.map(w=>k.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),y.map(w=>k.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),g.map(({key:w,link:C})=>k.createElement("link",{key:w,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function K2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var G2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{G2&&(window.__reactRouterVersion="7.15.0")}catch{}function Q2({basename:e,children:t,useTransitions:n,window:u}){let r=k.useRef();r.current==null&&(r.current=Am({window:u,v5Compat:!0}));let o=r.current,[i,l]=k.useState({action:o.action,location:o.location}),a=k.useCallback(s=>{n===!1?l(s):k.startTransition(()=>l(s))},[n]);return k.useLayoutEffect(()=>o.listen(a),[o,a]),k.createElement(C2,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o,useTransitions:n})}var ip=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lp=k.forwardRef(function({onClick:t,discover:n="render",prefetch:u="none",relative:r,reloadDocument:o,replace:i,mask:l,state:a,target:s,to:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y,...g},w){let{basename:C,navigator:x,useTransitions:f}=k.useContext(Xe),h=typeof d=="string"&&ip.test(d),v=Gf(d,C);d=v.to;let b=a2(d,{relative:r}),_=st(),E=null;if(l){let O=mi(l,[],_.mask?_.mask.pathname:"/",!0);C!=="/"&&(O.pathname=O.pathname==="/"?C:gt([C,O.pathname])),E=x.createHref(O)}let[S,F,N]=U2(u,g),L=J2(d,{replace:i,mask:l,state:a,target:s,preventScrollReset:p,relative:r,viewTransition:m,defaultShouldRevalidate:y,useTransitions:f});function P(O){t&&t(O),O.defaultPrevented||L(O)}let ue=!(v.isExternal||o),M=k.createElement("a",{...g,...N,href:(ue?E:void 0)||v.absoluteURL||b,onClick:ue?P:t,ref:K2(w,F),target:s,"data-discover":!h&&n==="render"?"true":void 0});return S&&!h?k.createElement(k.Fragment,null,M,k.createElement(H2,{page:b})):M});lp.displayName="Link";var ap=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:u="",end:r=!1,style:o,to:i,viewTransition:l,children:a,...s},d){let p=Tr(i,{relative:s.relative}),m=st(),y=k.useContext(gi),{navigator:g,basename:w}=k.useContext(Xe),C=y!=null&&ug(p)&&l===!0,x=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,f=m.pathname,h=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(f=f.toLowerCase(),h=h?h.toLowerCase():null,x=x.toLowerCase()),h&&w&&(h=Kt(h,w)||h);const v=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let b=f===x||!r&&f.startsWith(x)&&f.charAt(v)==="/",_=h!=null&&(h===x||!r&&h.startsWith(x)&&h.charAt(x.length)==="/"),E={isActive:b,isPending:_,isTransitioning:C},S=b?t:void 0,F;typeof u=="function"?F=u(E):F=[u,b?"active":null,_?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let N=typeof o=="function"?o(E):o;return k.createElement(lp,{...s,"aria-current":S,className:F,ref:d,style:N,to:i,viewTransition:l},typeof a=="function"?a(E):a)});ap.displayName="NavLink";var Z2=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:u,replace:r,state:o,method:i=ko,action:l,onSubmit:a,relative:s,preventScrollReset:d,viewTransition:p,defaultShouldRevalidate:m,...y},g)=>{let{useTransitions:w}=k.useContext(Xe),C=tg(),x=ng(l,{relative:s}),f=i.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&ip.test(l),v=b=>{if(a&&a(b),b.defaultPrevented)return;b.preventDefault();let _=b.nativeEvent.submitter,E=(_==null?void 0:_.getAttribute("formmethod"))||i,S=()=>C(_||b.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:r,state:o,relative:s,preventScrollReset:d,viewTransition:p,defaultShouldRevalidate:m});w&&n!==!1?k.startTransition(()=>S()):S()};return k.createElement("form",{ref:g,method:f,action:x,onSubmit:u?a:v,...y,"data-discover":!h&&e==="render"?"true":void 0})});Z2.displayName="Form";function Y2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sp(e){let t=k.useContext(wu);return ie(t,Y2(e)),t}function J2(e,{target:t,replace:n,mask:u,state:r,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:a,useTransitions:s}={}){let d=Rr(),p=st(),m=Tr(e,{relative:i});return k.useCallback(y=>{if(z2(y,t)){y.preventDefault();let g=n!==void 0?n:wr(p)===wr(m),w=()=>d(e,{replace:g,mask:u,state:r,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:a});s?k.startTransition(()=>w()):w()}},[p,d,m,n,u,r,t,e,o,i,l,a,s])}var X2=0,eg=()=>`__${String(++X2)}__`;function tg(){let{router:e}=sp("useSubmit"),{basename:t}=k.useContext(Xe),n=v2(),u=e.fetch,r=e.navigate;return k.useCallback(async(o,i={})=>{let{action:l,method:a,encType:s,formData:d,body:p}=R2(o,t);if(i.navigate===!1){let m=i.fetcherKey||eg();await u(m,n,i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||s,flushSync:i.flushSync})}else await r(i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[u,r,t,n])}function ng(e,{relative:t}={}){let{basename:n}=k.useContext(Xe),u=k.useContext(bt);ie(u,"useFormAction must be used inside a RouteContext");let[r]=u.matches.slice(-1),o={...Tr(e||".",{relative:t})},i=st();if(e==null){o.search=i.search;let l=new URLSearchParams(o.search),a=l.getAll("index");if(a.some(d=>d==="")){l.delete("index"),a.filter(p=>p).forEach(p=>l.append("index",p));let d=l.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:gt([n,o.pathname])),wr(o)}function ug(e,{relative:t}={}){let n=k.useContext(Yf);ie(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=sp("useViewTransitionState"),r=Tr(e,{relative:t});if(!n.isTransitioning)return!1;let o=Kt(n.currentLocation.pathname,u)||n.currentLocation.pathname,i=Kt(n.nextLocation.pathname,u)||n.nextLocation.pathname;return Go(r.pathname,i)!=null||Go(r.pathname,o)!=null}/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cp=(...e)=>e.filter((t,n,u)=>!!t&&t.trim()!==""&&u.indexOf(t)===n).join(" ").trim();/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var og={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"};/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ig=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:u,className:r="",children:o,iconNode:i,...l},a)=>k.createElement("svg",{ref:a,...og,width:t,height:t,stroke:e,strokeWidth:u?Number(n)*24/Number(t):n,className:cp("lucide",r),...l},[...i.map(([s,d])=>k.createElement(s,d)),...Array.isArray(o)?o:[o]]));/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const V=(e,t)=>{const n=k.forwardRef(({className:u,...r},o)=>k.createElement(ig,{ref:o,iconNode:t,className:cp(`lucide-${rg(e)}`,u),...r}));return n.displayName=`${e}`,n};/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lg=V("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ag=V("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sg=V("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kc=V("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Xi=V("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cg=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dg=V("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fg=V("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dp=V("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pg=V("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"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hg=V("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mg=V("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gg=V("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xg=V("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ra=V("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oa=V("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mn=V("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yg=V("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ia=V("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hs=V("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gc=V("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vg=V("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fp=V("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bg=V("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ms=V("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kg=V("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"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pp=V("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wg=V("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qc=V("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _g=V("TestTubeDiagonal",[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pr=V("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"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cg=V("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Eg=V("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sg=V("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gs=V("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function hp(e){var t,n,u="";if(typeof e=="string"||typeof e=="number")u+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=hp(e[t]))&&(u&&(u+=" "),u+=n)}else for(n in e)e[n]&&(u&&(u+=" "),u+=n);return u}function mp(){for(var e,t,n=0,u="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=hp(e))&&(u&&(u+=" "),u+=t);return u}const xs="-",Ag=e=>{const t=Dg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:u}=e;return{getClassGroupId:i=>{const l=i.split(xs);return l[0]===""&&l.length!==1&&l.shift(),gp(l,t)||Fg(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&u[i]?[...a,...u[i]]:a}}},gp=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],u=t.nextPart.get(n),r=u?gp(e.slice(1),u):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(xs);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},Zc=/^\[(.+)\]$/,Fg=e=>{if(Zc.test(e)){const t=Zc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Dg=e=>{const{theme:t,prefix:n}=e,u={nextPart:new Map,validators:[]};return Ng(Object.entries(e.classGroups),n).forEach(([o,i])=>{la(i,u,o,t)}),u},la=(e,t,n,u)=>{e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:Yc(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(zg(r)){la(r(u),t,n,u);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,i])=>{la(i,Yc(t,o),n,u)})})},Yc=(e,t)=>{let n=e;return t.split(xs).forEach(u=>{n.nextPart.has(u)||n.nextPart.set(u,{nextPart:new Map,validators:[]}),n=n.nextPart.get(u)}),n},zg=e=>e.isThemeGetter,Ng=(e,t)=>t?e.map(([n,u])=>{const r=u.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[n,r]}):e,jg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,u=new Map;const r=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,u=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=u.get(o))!==void 0)return r(o,i),i},set(o,i){n.has(o)?n.set(o,i):r(o,i)}}},xp="!",Rg=e=>{const{separator:t,experimentalParseClassName:n}=e,u=t.length===1,r=t[0],o=t.length,i=l=>{const a=[];let s=0,d=0,p;for(let C=0;C<l.length;C++){let x=l[C];if(s===0){if(x===r&&(u||l.slice(C,C+o)===t)){a.push(l.slice(d,C)),d=C+o;continue}if(x==="/"){p=C;continue}}x==="["?s++:x==="]"&&s--}const m=a.length===0?l:l.substring(d),y=m.startsWith(xp),g=y?m.substring(1):m,w=p&&p>d?p-d:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:w}};return n?l=>n({className:l,parseClassName:i}):i},Tg=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(u=>{u[0]==="["?(t.push(...n.sort(),u),n=[]):n.push(u)}),t.push(...n.sort()),t},Pg=e=>({cache:jg(e.cacheSize),parseClassName:Rg(e),...Ag(e)}),Mg=/\s+/,Lg=(e,t)=>{const{parseClassName:n,getClassGroupId:u,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(Mg);let l="";for(let a=i.length-1;a>=0;a-=1){const s=i[a],{modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=n(s);let g=!!y,w=u(g?m.substring(0,y):m);if(!w){if(!g){l=s+(l.length>0?" "+l:l);continue}if(w=u(m),!w){l=s+(l.length>0?" "+l:l);continue}g=!1}const C=Tg(d).join(":"),x=p?C+xp:C,f=x+w;if(o.includes(f))continue;o.push(f);const h=r(w,g);for(let v=0;v<h.length;++v){const b=h[v];o.push(x+b)}l=s+(l.length>0?" "+l:l)}return l};function Ig(){let e=0,t,n,u="";for(;e<arguments.length;)(t=arguments[e++])&&(n=yp(t))&&(u&&(u+=" "),u+=n);return u}const yp=e=>{if(typeof e=="string")return e;let t,n="";for(let u=0;u<e.length;u++)e[u]&&(t=yp(e[u]))&&(n&&(n+=" "),n+=t);return n};function Og(e,...t){let n,u,r,o=i;function i(a){const s=t.reduce((d,p)=>p(d),e());return n=Pg(s),u=n.cache.get,r=n.cache.set,o=l,l(a)}function l(a){const s=u(a);if(s)return s;const d=Lg(a,n);return r(a,d),d}return function(){return o(Ig.apply(null,arguments))}}const ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vp=/^\[(?:([a-z-]+):)?(.+)\]$/i,$g=/^\d+\/\d+$/,Bg=new Set(["px","full","screen"]),Ug=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lt=e=>lu(e)||Bg.has(e)||$g.test(e),Yt=e=>Cu(e,"length",ex),lu=e=>!!e&&!Number.isNaN(Number(e)),el=e=>Cu(e,"number",lu),Uu=e=>!!e&&Number.isInteger(Number(e)),Kg=e=>e.endsWith("%")&&lu(e.slice(0,-1)),I=e=>vp.test(e),Jt=e=>Ug.test(e),Gg=new Set(["length","size","percentage"]),Qg=e=>Cu(e,Gg,bp),Zg=e=>Cu(e,"position",bp),Yg=new Set(["image","url"]),Jg=e=>Cu(e,Yg,nx),Xg=e=>Cu(e,"",tx),Hu=()=>!0,Cu=(e,t,n)=>{const u=vp.exec(e);return u?u[1]?typeof t=="string"?u[1]===t:t.has(u[1]):n(u[2]):!1},ex=e=>Hg.test(e)&&!Vg.test(e),bp=()=>!1,tx=e=>qg.test(e),nx=e=>Wg.test(e),ux=()=>{const e=ee("colors"),t=ee("spacing"),n=ee("blur"),u=ee("brightness"),r=ee("borderColor"),o=ee("borderRadius"),i=ee("borderSpacing"),l=ee("borderWidth"),a=ee("contrast"),s=ee("grayscale"),d=ee("hueRotate"),p=ee("invert"),m=ee("gap"),y=ee("gradientColorStops"),g=ee("gradientColorStopPositions"),w=ee("inset"),C=ee("margin"),x=ee("opacity"),f=ee("padding"),h=ee("saturate"),v=ee("scale"),b=ee("sepia"),_=ee("skew"),E=ee("space"),S=ee("translate"),F=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",I,t],P=()=>[I,t],ue=()=>["",Lt,Yt],M=()=>["auto",lu,I],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",I],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[lu,I];return{cacheSize:500,separator:":",theme:{colors:[Hu],spacing:[Lt,Yt],blur:["none","",Jt,I],brightness:$(),borderColor:[e],borderRadius:["none","","full",Jt,I],borderSpacing:P(),borderWidth:ue(),contrast:$(),grayscale:z(),hueRotate:$(),invert:z(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Kg,Yt],inset:L(),margin:L(),opacity:$(),padding:P(),saturate:$(),scale:$(),sepia:z(),skew:$(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...O(),I]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Uu,I]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",Uu,I]}],"grid-cols":[{"grid-cols":[Hu]}],"col-start-end":[{col:["auto",{span:["full",Uu,I]},I]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Hu]}],"row-start-end":[{row:["auto",{span:[Uu,I]},I]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",el]}],"font-family":[{font:[Hu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",lu,el]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lt,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lt,Yt]}],"underline-offset":[{"underline-offset":["auto",Lt,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),Zg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Jg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:Y()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Lt,I]}],"outline-w":[{outline:[Lt,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Lt,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,Xg]}],"shadow-color":[{shadow:[Hu]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[u]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Jt,I]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[h]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[h]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Uu,I]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lt,Yt,el]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},rx=Og(ux);function Ft(...e){return rx(mp(e))}const ox=[{to:"/chat",icon:hs,label:"对话"},{to:"/accounts",icon:oa,label:"账户"},{to:"/assets",icon:Mn,label:"资产"},{to:"/settings",icon:wg,label:"设置"}];function ix(){return c.jsx("aside",{className:"w-16 flex flex-col items-center py-4 gap-1 border-r border-zinc-200 bg-zinc-50",children:ox.map(({to:e,icon:t,label:n})=>c.jsxs(ap,{to:e,className:({isActive:u})=>Ft("w-12 h-12 flex flex-col items-center justify-center gap-0.5 rounded-lg transition-colors text-[10px] font-medium",u?"bg-indigo-50 text-indigo-600":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-100"),children:[c.jsx(t,{size:18}),c.jsx("span",{children:n})]},e))})}const he=k.forwardRef(({className:e,type:t,...n},u)=>c.jsx("input",{type:t,className:Ft("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:u,...n}));he.displayName="Input";const kp=k.forwardRef(({className:e,children:t,...n},u)=>c.jsx("div",{ref:u,className:Ft("overflow-auto",e),...n,children:t}));kp.displayName="ScrollArea";const Jc=e=>{let t;const n=new Set,u=(s,d)=>{const p=typeof s=="function"?s(t):s;if(!Object.is(p,t)){const m=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(y=>y(t,m))}},r=()=>t,l={setState:u,getState:r,getInitialState:()=>a,subscribe:s=>(n.add(s),()=>n.delete(s))},a=t=e(u,r,l);return l},lx=e=>e?Jc(e):Jc,ax=e=>e;function sx(e,t=ax){const n=qu.useSyncExternalStore(e.subscribe,qu.useCallback(()=>t(e.getState()),[e,t]),qu.useCallback(()=>t(e.getInitialState()),[e,t]));return qu.useDebugValue(n),n}const Xc=e=>{const t=lx(e),n=u=>sx(t,u);return Object.assign(n,t),n},cx=e=>e?Xc(e):Xc,aa=cx(e=>({selectedAccountId:null,setSelectedAccountId:t=>e({selectedAccountId:t}),conversations:[],setConversations:t=>e({conversations:t})})),dx="/api";async function ye(e,t){const n=await fetch(`${dx}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok)throw new Error(await n.text());if(n.status!==204)return n.json()}const fe={listAccounts:()=>ye("/accounts"),getAccount:e=>ye(`/accounts/${e}`),createAccount:e=>ye("/accounts",{method:"POST",body:JSON.stringify(e)}),updateAccount:(e,t)=>ye(`/accounts/${e}`,{method:"PUT",body:JSON.stringify(t)}),deleteAccount:e=>ye(`/accounts/${e}`,{method:"DELETE"}),getPrompt:(e,t)=>ye(`/prompts/${e}/${t}`),savePrompt:(e,t,n)=>ye(`/prompts/${e}/${t}`,{method:"PUT",body:JSON.stringify({content:n})}),listConversations:()=>ye("/pipeline/conversations"),getMessages:e=>ye(`/pipeline/conversations/${e}/messages`),updateConversation:(e,t)=>ye(`/pipeline/conversations/${e}`,{method:"PATCH",body:JSON.stringify(t)}),deleteConversation:e=>ye(`/pipeline/conversations/${e}`,{method:"DELETE"}),deleteMessage:e=>ye(`/pipeline/messages/${e}`,{method:"DELETE"}),listAssets:e=>{const t=new URLSearchParams;return e!=null&&e.accountId&&t.set("accountId",e.accountId),e!=null&&e.type&&t.set("type",e.type),ye(`/assets?${t}`)},deleteAsset:e=>ye(`/assets/${e}`,{method:"DELETE"}),getConfigs:()=>ye("/configs"),saveConfig:(e,t)=>ye(`/configs/${e}`,{method:"PUT",body:JSON.stringify({value:t})}),getSkillsConfig:()=>ye("/configs/skills/file"),saveSkillsConfig:e=>ye("/configs/skills/file",{method:"PUT",body:JSON.stringify(e)})},wp=k.createContext(null);let fx=0;function px({children:e}){const[t,n]=k.useState([]),u=k.useRef(new Map),r=k.useCallback(i=>{const l=u.current.get(i);l&&clearTimeout(l),u.current.delete(i),n(a=>a.filter(s=>s.id!==i))},[]),o=k.useCallback((i,l="info")=>{const a=fx++;n(d=>[...d.slice(-4),{id:a,message:i,type:l}]);const s=setTimeout(()=>r(a),3e3);u.current.set(a,s)},[r]);return c.jsx(wp.Provider,{value:{toasts:t,toast:o,dismiss:r},children:e})}function ys(){const e=k.useContext(wp);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function hx(){const{conversations:e,setConversations:t}=aa(),[n,u]=k.useState(""),r=Rr(),o=st(),{toast:i}=ys(),l=k.useMemo(()=>{const y=o.pathname.match(/^\/chat\/(.+)$/);return y?y[1]:null},[o.pathname]),a=()=>{fe.listConversations().then(t).catch(()=>{})};k.useEffect(()=>{a()},[]);const s=y=>{if(u(y),!y){a();return}const g=`?search=${encodeURIComponent(y)}`;fetch(`/api/pipeline/conversations${g}`).then(w=>w.json()).then(t).catch(()=>{})},d=async(y,g)=>{g.stopPropagation();const w=e.find(C=>C.id===y);w&&(await fe.updateConversation(y,{pinned:!w.pinned}),a())},p=async(y,g)=>{g.stopPropagation(),confirm("确定删除这个对话?")&&(await fe.deleteConversation(y),a(),i("对话已删除","success"),y===l&&r("/chat"))},m=y=>{const g=new Date(y),C=new Date().getTime()-g.getTime();return C<864e5?g.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):C<6048e5?`${Math.floor(C/864e5)}天前`:g.toLocaleDateString("zh-CN",{month:"short",day:"numeric"})};return c.jsxs("aside",{className:"w-60 flex flex-col border-r border-zinc-200 bg-white",children:[c.jsxs("div",{className:"p-3 flex items-center gap-2 border-b border-zinc-100",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(pp,{size:13,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-400"}),c.jsx(he,{placeholder:"搜索对话...",className:"h-8 text-xs bg-zinc-50 border-zinc-200 pl-8",value:n,onChange:y=>s(y.target.value)})]}),c.jsxs("button",{onClick:()=>r("/chat"),className:"flex items-center gap-1 px-3 py-1.5 rounded-md bg-indigo-600 text-white text-xs font-medium hover:bg-indigo-700 transition-colors whitespace-nowrap",children:[c.jsx(fp,{size:13}),"新对话"]})]}),c.jsxs(kp,{className:"flex-1",children:[e.map(y=>c.jsxs("div",{onClick:()=>r(`/chat/${y.id}`),className:`group w-full text-left px-3 py-2.5 border-b border-zinc-50 transition-colors cursor-pointer
|
||
${y.id===l?"bg-indigo-50 border-l-[3px] border-l-indigo-600":"hover:bg-zinc-50 border-l-[3px] border-l-transparent"}`,children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[y.pinned?c.jsx(Gc,{size:11,className:"text-indigo-500 flex-shrink-0"}):null,c.jsx("div",{className:`text-sm truncate flex-1 ${y.id===l?"text-indigo-700 font-medium":"text-zinc-700"}`,children:y.title}),c.jsxs("div",{className:"opacity-0 group-hover:opacity-100 flex gap-0.5 transition-opacity flex-shrink-0",children:[c.jsx("button",{onClick:g=>d(y.id,g),className:`p-1 rounded hover:bg-zinc-200 transition-colors ${y.pinned?"text-indigo-500":"text-zinc-400"}`,title:y.pinned?"取消置顶":"置顶",children:c.jsx(Gc,{size:12})}),c.jsx("button",{onClick:g=>p(y.id,g),className:"p-1 rounded hover:bg-red-100 text-zinc-400 hover:text-red-500 transition-colors",title:"删除",children:c.jsx(Pr,{size:12})})]})]}),c.jsx("div",{className:"mt-0.5",children:c.jsx("span",{className:"text-[10px] text-zinc-300",children:m(y.updated_at)})})]},y.id)),e.length===0&&c.jsxs("div",{className:"flex flex-col items-center justify-center mt-12 text-zinc-400",children:[c.jsx(hs,{size:24,className:"mb-2 opacity-40"}),c.jsx("p",{className:"text-xs",children:"暂无对话"}),c.jsx("p",{className:"text-[10px] mt-1",children:"点击上方「新对话」开始"})]})]})]})}const mx={success:hg,error:pg,info:yg},gx={success:"text-green-600 bg-green-50 border-green-200",error:"text-red-600 bg-red-50 border-red-200",info:"text-zinc-600 bg-zinc-50 border-zinc-200"};function xx({toasts:e,dismiss:t}){return c.jsx("div",{className:"fixed bottom-6 right-6 z-[100] flex flex-col gap-2 pointer-events-none",children:e.map(n=>c.jsx(yx,{item:n,dismiss:t},n.id))})}function yx({item:e,dismiss:t}){const n=mx[e.type],u=k.useRef(null);return k.useEffect(()=>{var r;(r=u.current)==null||r.animate([{opacity:0,transform:"translateY(8px)"},{opacity:1,transform:"translateY(0)"}],{duration:200,fill:"forwards"})},[]),c.jsxs("div",{ref:u,className:Ft("pointer-events-auto flex items-center gap-2 px-3.5 py-2.5 rounded-lg border shadow-lg text-sm",gx[e.type]),children:[c.jsx(n,{size:15,className:"flex-shrink-0"}),c.jsx("span",{className:"flex-1",children:e.message}),c.jsx("button",{onClick:()=>t(e.id),className:"opacity-60 hover:opacity-100 ml-1",children:c.jsx(gs,{size:13})})]})}function vx({children:e}){const{pathname:t}=st(),n=t.startsWith("/chat"),{toasts:u,dismiss:r}=ys();return c.jsxs("div",{className:"h-screen flex bg-white text-zinc-900 overflow-hidden",children:[c.jsx(ix,{}),n&&c.jsx(hx,{}),c.jsx("main",{className:"flex-1 flex flex-col min-w-0 bg-zinc-50",children:e}),c.jsx(xx,{toasts:u,dismiss:r})]})}class bx{constructor(){ju(this,"ws",null);ju(this,"handlers",new Map);ju(this,"reconnectTimer",null);ju(this,"intentionallyClosed",!1)}connect(){this.intentionallyClosed=!1;const n=`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/ws`;this.ws=new WebSocket(n),this.ws.onopen=()=>{this.emit("connected",{})},this.ws.onmessage=u=>{try{const{type:r,data:o}=JSON.parse(u.data);this.emit(r,o)}catch{}},this.ws.onclose=()=>{this.intentionallyClosed||(this.reconnectTimer=setTimeout(()=>this.connect(),3e3))}}on(t,n){this.handlers.has(t)||this.handlers.set(t,[]),this.handlers.get(t).push(n)}off(t,n){const u=this.handlers.get(t);if(u){const r=u.indexOf(n);r!==-1&&u.splice(r,1)}}send(t,n={}){var u;((u=this.ws)==null?void 0:u.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:t,...n}))}stop(){this.send("stop")}emit(t,n){(this.handlers.get(t)||[]).forEach(u=>u(n))}disconnect(){var t;this.intentionallyClosed=!0,this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,(t=this.ws)==null||t.close(),this.ws=null}}const G=new bx;function kx(e){const[t,n]=k.useState([]),[u,r]=k.useState(!1),[o,i]=k.useState(!1),[l,a]=k.useState(null),[s,d]=k.useState(null),p=k.useRef(null),m=k.useRef(null);k.useEffect(()=>{const x=()=>r(!0),f=M=>{n(M.messages||[])},h=M=>{n(O=>[...O,M])},v=M=>{M.status==="thinking"&&i(!0),M.status==="done"&&(i(!1),a(null))},b=M=>{i(!1),n(O=>[...O,{id:M.id,role:"assistant",content:"",reasoningContent:"",created_at:new Date().toISOString(),conversation_id:""}])},_=M=>{n(O=>O.map(Y=>Y.id===M.id?{...Y,reasoningContent:(Y.reasoningContent||"")+M.text}:Y))},E=M=>{n(O=>O.map(Y=>Y.id===M.id?{...Y,content:Y.content+M.text}:Y))},S=()=>{i(!1)},F=M=>{a(`执行: ${M.tool}...`)},N=M=>{a(null),i(!0),n(O=>[...O,{id:`tool-${Date.now()}`,role:"tool",content:JSON.stringify({tool:M.tool,result:M.result}),created_at:new Date().toISOString(),conversation_id:""}])},L=M=>{a(`失败: ${M.tool}`),setTimeout(()=>a(null),4e3)},P=M=>{d({phase:M.phase,progress:M.progress,currentItem:M.currentItem,totalItems:M.totalItems,status:M.status})},ue=M=>{const O=M.id;p.current=O,m.current&&(m.current(O),m.current=null)};return G.on("connected",x),G.on("history",f),G.on("message",h),G.on("status",v),G.on("message_start",b),G.on("reasoning_delta",_),G.on("text_delta",E),G.on("message_end",S),G.on("tool_start",F),G.on("tool_result",N),G.on("tool_error",L),G.on("pipeline_progress",P),G.on("conversation_created",ue),G.connect(),()=>{G.off("connected",x),G.off("history",f),G.off("message",h),G.off("status",v),G.off("message_start",b),G.off("reasoning_delta",_),G.off("text_delta",E),G.off("message_end",S),G.off("tool_start",F),G.off("tool_result",N),G.off("tool_error",L),G.off("pipeline_progress",P),G.off("conversation_created",ue),G.disconnect()}},[]),k.useEffect(()=>{u&&(e&&e!==p.current&&(p.current=e,n([]),i(!1),a(null),d(null),G.send("init",{conversationId:e})),e||(p.current=null,n([]),i(!1),a(null),d(null)))},[e,u]);const y=k.useCallback(x=>{G.send("chat",{content:x})},[]),g=k.useCallback(()=>{G.stop()},[]),w=k.useCallback((x,f)=>new Promise(h=>{m.current=h,G.send("create_conversation",{title:x,accountId:f}),setTimeout(()=>{m.current&&(m.current=null,h(""))},5e3)}),[]),C=k.useCallback(async x=>{n(f=>f.filter(h=>h.id!==x));try{await fetch(`/api/pipeline/messages/${x}`,{method:"DELETE"})}catch{}},[]);return{messages:t,connected:u,thinking:o,toolStatus:l,pipeline:s,send:y,stop:g,createConversation:w,removeMessage:C}}const e0={};function wx(e){let t=e0[e];if(t)return t;t=e0[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function gu(e,t){typeof t!="string"&&(t=gu.defaultChars);const n=wx(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let o=0,i=u.length;o<i;o+=3){const l=parseInt(u.slice(o+1,o+3),16);if(l<128){r+=n[l];continue}if((l&224)===192&&o+3<i){const a=parseInt(u.slice(o+4,o+6),16);if((a&192)===128){const s=l<<6&1984|a&63;s<128?r+="<22><>":r+=String.fromCharCode(s),o+=3;continue}}if((l&240)===224&&o+6<i){const a=parseInt(u.slice(o+4,o+6),16),s=parseInt(u.slice(o+7,o+9),16);if((a&192)===128&&(s&192)===128){const d=l<<12&61440|a<<6&4032|s&63;d<2048||d>=55296&&d<=57343?r+="<22><><EFBFBD>":r+=String.fromCharCode(d),o+=6;continue}}if((l&248)===240&&o+9<i){const a=parseInt(u.slice(o+4,o+6),16),s=parseInt(u.slice(o+7,o+9),16),d=parseInt(u.slice(o+10,o+12),16);if((a&192)===128&&(s&192)===128&&(d&192)===128){let p=l<<18&1835008|a<<12&258048|s<<6&4032|d&63;p<65536||p>1114111?r+="<22><><EFBFBD><EFBFBD>":(p-=65536,r+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),o+=9;continue}}r+="<22>"}return r})}gu.defaultChars=";/?:@&=+$,#";gu.componentChars="";const t0={};function _x(e){let t=t0[e];if(t)return t;t=t0[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Mr(e,t,n){typeof t!="string"&&(n=t,t=Mr.defaultChars),typeof n>"u"&&(n=!0);const u=_x(t);let r="";for(let o=0,i=e.length;o<i;o++){const l=e.charCodeAt(o);if(n&&l===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){r+=e.slice(o,o+3),o+=2;continue}if(l<128){r+=u[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&o+1<i){const a=e.charCodeAt(o+1);if(a>=56320&&a<=57343){r+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[o])}return r}Mr.defaultChars=";/?:@&=+$,-_.!~*'()#";Mr.componentChars="-_.!~*'()";function vs(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Zo(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Cx=/^([a-z0-9.+-]+:)/i,Ex=/:[0-9]*$/,Sx=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ax=["<",">",'"',"`"," ","\r",`
|
||
`," "],Fx=["{","}","|","\\","^","`"].concat(Ax),Dx=["'"].concat(Fx),n0=["%","/","?",";","#"].concat(Dx),u0=["/","?","#"],zx=255,r0=/^[+a-z0-9A-Z_-]{0,63}$/,Nx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,o0={javascript:!0,"javascript:":!0},i0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function bs(e,t){if(e&&e instanceof Zo)return e;const n=new Zo;return n.parse(e,t),n}Zo.prototype.parse=function(e,t){let n,u,r,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const s=Sx.exec(o);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}let i=Cx.exec(o);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,o=o.substr(i.length)),(t||i||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(i&&o0[i])&&(o=o.substr(2),this.slashes=!0)),!o0[i]&&(r||i&&!i0[i])){let s=-1;for(let g=0;g<u0.length;g++)u=o.indexOf(u0[g]),u!==-1&&(s===-1||u<s)&&(s=u);let d,p;s===-1?p=o.lastIndexOf("@"):p=o.lastIndexOf("@",s),p!==-1&&(d=o.slice(0,p),o=o.slice(p+1),this.auth=d),s=-1;for(let g=0;g<n0.length;g++)u=o.indexOf(n0[g]),u!==-1&&(s===-1||u<s)&&(s=u);s===-1&&(s=o.length),o[s-1]===":"&&s--;const m=o.slice(0,s);o=o.slice(s),this.parseHost(m),this.hostname=this.hostname||"";const y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){const g=this.hostname.split(/\./);for(let w=0,C=g.length;w<C;w++){const x=g[w];if(x&&!x.match(r0)){let f="";for(let h=0,v=x.length;h<v;h++)x.charCodeAt(h)>127?f+="x":f+=x[h];if(!f.match(r0)){const h=g.slice(0,w),v=g.slice(w+1),b=x.match(Nx);b&&(h.push(b[1]),v.unshift(b[2])),v.length&&(o=v.join(".")+o),this.hostname=h.join(".");break}}}}this.hostname.length>zx&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=o.indexOf("#");l!==-1&&(this.hash=o.substr(l),o=o.slice(0,l));const a=o.indexOf("?");return a!==-1&&(this.search=o.substr(a),o=o.slice(0,a)),o&&(this.pathname=o),i0[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Zo.prototype.parseHost=function(e){let t=Ex.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const jx=Object.freeze(Object.defineProperty({__proto__:null,decode:gu,encode:Mr,format:vs,parse:bs},Symbol.toStringTag,{value:"Module"})),_p=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cp=/[\0-\x1F\x7F-\x9F]/,Rx=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ks=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ep=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Sp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Tx=Object.freeze(Object.defineProperty({__proto__:null,Any:_p,Cc:Cp,Cf:Rx,P:ks,S:Ep,Z:Sp},Symbol.toStringTag,{value:"Module"})),Px=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Mx=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var tl;const Lx=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ix=(tl=String.fromCodePoint)!==null&&tl!==void 0?tl:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ox(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Lx.get(e))!==null&&t!==void 0?t:e}var we;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(we||(we={}));const $x=32;var sn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(sn||(sn={}));function sa(e){return e>=we.ZERO&&e<=we.NINE}function Bx(e){return e>=we.UPPER_A&&e<=we.UPPER_F||e>=we.LOWER_A&&e<=we.LOWER_F}function Ux(e){return e>=we.UPPER_A&&e<=we.UPPER_Z||e>=we.LOWER_A&&e<=we.LOWER_Z||sa(e)}function Hx(e){return e===we.EQUALS||Ux(e)}var ve;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ve||(ve={}));var on;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(on||(on={}));class Vx{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=ve.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=on.Strict}startEntity(t){this.decodeMode=t,this.state=ve.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ve.EntityStart:return t.charCodeAt(n)===we.NUM?(this.state=ve.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ve.NamedEntity,this.stateNamedEntity(t,n));case ve.NumericStart:return this.stateNumericStart(t,n);case ve.NumericDecimal:return this.stateNumericDecimal(t,n);case ve.NumericHex:return this.stateNumericHex(t,n);case ve.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|$x)===we.LOWER_X?(this.state=ve.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ve.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const o=u-n;this.result=this.result*Math.pow(r,o)+parseInt(t.substr(n,o),r),this.consumed+=o}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(sa(r)||Bx(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(sa(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===we.SEMI)this.consumed+=1;else if(this.decodeMode===on.Strict)return 0;return this.emitCodePoint(Ox(this.result),this.consumed),this.errors&&(t!==we.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],o=(r&sn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=qx(u,r,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===on.Attribute&&(o===0||Hx(i))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],o=(r&sn.VALUE_LENGTH)>>14,o!==0){if(i===we.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==on.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&sn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~sn.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case ve.NamedEntity:return this.result!==0&&(this.decodeMode!==on.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ve.NumericDecimal:return this.emitNumericEntity(0,2);case ve.NumericHex:return this.emitNumericEntity(0,3);case ve.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ve.EntityStart:return 0}}}function Ap(e){let t="";const n=new Vx(e,u=>t+=Ix(u));return function(r,o){let i=0,l=0;for(;(l=r.indexOf("&",l))>=0;){t+=r.slice(i,l),n.startEntity(o);const s=n.write(r,l+1);if(s<0){i=l+n.end();break}i=l+s,l=s===0?i+1:i}const a=t+r.slice(i);return t="",a}}function qx(e,t,n,u){const r=(t&sn.BRANCH_LENGTH)>>7,o=t&sn.JUMP_TABLE;if(r===0)return o!==0&&u===o?n:-1;if(o){const a=u-o;return a<0||a>=r?-1:e[n+a]-1}let i=n,l=i+r-1;for(;i<=l;){const a=i+l>>>1,s=e[a];if(s<u)i=a+1;else if(s>u)l=a-1;else return e[a+r]}return-1}const Wx=Ap(Px);Ap(Mx);function Fp(e,t=on.Legacy){return Wx(e,t)}function Kx(e){return Object.prototype.toString.call(e)}function ws(e){return Kx(e)==="[object String]"}const Gx=Object.prototype.hasOwnProperty;function Qx(e,t){return Gx.call(e,t)}function yi(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Dp(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function _s(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Yo(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const zp=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Zx=/&([a-z#][a-z0-9]{1,31});/gi,Yx=new RegExp(zp.source+"|"+Zx.source,"gi"),Jx=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Xx(e,t){if(t.charCodeAt(0)===35&&Jx.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return _s(u)?Yo(u):e}const n=Fp(e);return n!==e?n:e}function e3(e){return e.indexOf("\\")<0?e:e.replace(zp,"$1")}function xu(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Yx,function(t,n,u){return n||Xx(t,u)})}const t3=/[&<>"]/,n3=/[&<>"]/g,u3={"&":"&","<":"<",">":">",'"':"""};function r3(e){return u3[e]}function bn(e){return t3.test(e)?e.replace(n3,r3):e}const o3=/[.?*+^$[\]\\(){}|-]/g;function i3(e){return e.replace(o3,"\\$&")}function X(e){switch(e){case 9:case 32:return!0}return!1}function _r(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Cr(e){return ks.test(e)||Ep.test(e)}function Er(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function vi(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const l3={mdurl:jx,ucmicro:Tx},a3=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Dp,assign:yi,escapeHtml:bn,escapeRE:i3,fromCodePoint:Yo,has:Qx,isMdAsciiPunct:Er,isPunctChar:Cr,isSpace:X,isString:ws,isValidEntityCode:_s,isWhiteSpace:_r,lib:l3,normalizeReference:vi,unescapeAll:xu,unescapeMd:e3},Symbol.toStringTag,{value:"Module"}));function s3(e,t,n){let u,r,o,i;const l=e.posMax,a=e.pos;for(e.pos=t+1,u=1;e.pos<l;){if(o=e.src.charCodeAt(e.pos),o===93&&(u--,u===0)){r=!0;break}if(i=e.pos,e.md.inline.skipToken(e),o===91){if(i===e.pos-1)u++;else if(n)return e.pos=a,-1}}let s=-1;return r&&(s=e.pos),e.pos=a,s}function c3(e,t,n){let u,r=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return o;if(u===62)return o.pos=r+1,o.str=xu(e.slice(t+1,r)),o.ok=!0,o;if(u===92&&r+1<n){r+=2;continue}r++}return o}let i=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(u===40&&(i++,i>32))return o;if(u===41){if(i===0)break;i--}r++}return t===r||i!==0||(o.str=xu(e.slice(t,r)),o.pos=r,o.ok=!0),o}function d3(e,t,n,u){let r,o=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)i.str=u.str,i.marker=u.marker;else{if(o>=n)return i;let l=e.charCodeAt(o);if(l!==34&&l!==39&&l!==40)return i;t++,o++,l===40&&(l=41),i.marker=l}for(;o<n;){if(r=e.charCodeAt(o),r===i.marker)return i.pos=o+1,i.str+=xu(e.slice(t,o)),i.ok=!0,i;if(r===40&&i.marker===41)return i;r===92&&o+1<n&&o++,o++}return i.can_continue=!0,i.str+=xu(e.slice(t,o)),i}const f3=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:c3,parseLinkLabel:s3,parseLinkTitle:d3},Symbol.toStringTag,{value:"Module"})),Rt={};Rt.code_inline=function(e,t,n,u,r){const o=e[t];return"<code"+r.renderAttrs(o)+">"+bn(o.content)+"</code>"};Rt.code_block=function(e,t,n,u,r){const o=e[t];return"<pre"+r.renderAttrs(o)+"><code>"+bn(e[t].content)+`</code></pre>
|
||
`};Rt.fence=function(e,t,n,u,r){const o=e[t],i=o.info?xu(o.info).trim():"";let l="",a="";if(i){const d=i.split(/(\s+)/g);l=d[0],a=d.slice(2).join("")}let s;if(n.highlight?s=n.highlight(o.content,l,a)||bn(o.content):s=bn(o.content),s.indexOf("<pre")===0)return s+`
|
||
`;if(i){const d=o.attrIndex("class"),p=o.attrs?o.attrs.slice():[];d<0?p.push(["class",n.langPrefix+l]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+l);const m={attrs:p};return`<pre><code${r.renderAttrs(m)}>${s}</code></pre>
|
||
`}return`<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
||
`};Rt.image=function(e,t,n,u,r){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,u),r.renderToken(e,t,n)};Rt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`};Rt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`:`
|
||
`};Rt.text=function(e,t){return bn(e[t].content)};Rt.html_block=function(e,t){return e[t].content};Rt.html_inline=function(e,t){return e[t].content};function Eu(){this.rules=yi({},Rt)}Eu.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+bn(t.attrs[n][0])+'="'+bn(t.attrs[n][1])+'"';return r};Eu.prototype.renderToken=function(t,n,u){const r=t[n];let o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
|
||
`),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(o+=" /");let i=!1;if(r.block&&(i=!0,r.nesting===1&&n+1<t.length)){const l=t[n+1];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===r.tag)&&(i=!1)}return o+=i?`>
|
||
`:">",o};Eu.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let o=0,i=e.length;o<i;o++){const l=e[o].type;typeof r[l]<"u"?u+=r[l](e,o,t,n,this):u+=this.renderToken(e,o,t)}return u};Eu.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,o=e.length;r<o;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
|
||
`;break}return u};Eu.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let o=0,i=e.length;o<i;o++){const l=e[o].type;l==="inline"?u+=this.renderInline(e[o].children,t,n):typeof r[l]<"u"?u+=r[l](e,o,t,n,this):u+=this.renderToken(e,o,t,n)}return u};function He(){this.__rules__=[],this.__cache__=null}He.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};He.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};He.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null};He.prototype.before=function(e,t,n,u){const r=this.__find__(e),o=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};He.prototype.after=function(e,t,n,u){const r=this.__find__(e),o=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};He.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};He.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n};He.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};He.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n};He.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function kt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}kt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1};kt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};kt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r};kt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};kt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Np(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Np.prototype.Token=kt;const p3=/\r\n?|\n/g,h3=/\0/g;function m3(e){let t;t=e.src.replace(p3,`
|
||
`),t=t.replace(h3,"<22>"),e.src=t}function g3(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function x3(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function y3(e){return/^<a[>\s]/i.test(e)}function v3(e){return/^<\/a\s*>/i.test(e)}function b3(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let i=r.length-1;i>=0;i--){const l=r[i];if(l.type==="link_close"){for(i--;r[i].level!==l.level&&r[i].type!=="link_open";)i--;continue}if(l.type==="html_inline"&&(y3(l.content)&&o>0&&o--,v3(l.content)&&o++),!(o>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const a=l.content;let s=e.md.linkify.match(a);const d=[];let p=l.level,m=0;s.length>0&&s[0].index===0&&i>0&&r[i-1].type==="text_special"&&(s=s.slice(1));for(let y=0;y<s.length;y++){const g=s[y].url,w=e.md.normalizeLink(g);if(!e.md.validateLink(w))continue;let C=s[y].text;s[y].schema?s[y].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,"");const x=s[y].index;if(x>m){const b=new e.Token("text","",0);b.content=a.slice(m,x),b.level=p,d.push(b)}const f=new e.Token("link_open","a",1);f.attrs=[["href",w]],f.level=p++,f.markup="linkify",f.info="auto",d.push(f);const h=new e.Token("text","",0);h.content=C,h.level=p,d.push(h);const v=new e.Token("link_close","a",-1);v.level=--p,v.markup="linkify",v.info="auto",d.push(v),m=s[y].lastIndex}if(m<a.length){const y=new e.Token("text","",0);y.content=a.slice(m),y.level=p,d.push(y)}t[n].children=r=Dp(r,i,d)}}}}const jp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,k3=/\((c|tm|r)\)/i,w3=/\((c|tm|r)\)/ig,_3={c:"©",r:"®",tm:"™"};function C3(e,t){return _3[t.toLowerCase()]}function E3(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(w3,C3)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function S3(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&jp.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function A3(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(k3.test(e.tokens[t].content)&&E3(e.tokens[t].children),jp.test(e.tokens[t].content)&&S3(e.tokens[t].children))}const F3=/['"]/,l0=/['"]/g,a0="’";function oo(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function D3(e,t){let n;const u=[];for(let r=0;r<e.length;r++){const o=e[r],i=e[r].level;for(n=u.length-1;n>=0&&!(u[n].level<=i);n--);if(u.length=n+1,o.type!=="text")continue;let l=o.content,a=0,s=l.length;e:for(;a<s;){l0.lastIndex=a;const d=l0.exec(l);if(!d)break;let p=!0,m=!0;a=d.index+1;const y=d[0]==="'";let g=32;if(d.index-1>=0)g=l.charCodeAt(d.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(a<s)w=l.charCodeAt(a);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const C=Er(g)||Cr(String.fromCharCode(g)),x=Er(w)||Cr(String.fromCharCode(w)),f=_r(g),h=_r(w);if(h?p=!1:x&&(f||C||(p=!1)),f?m=!1:C&&(h||x||(m=!1)),w===34&&d[0]==='"'&&g>=48&&g<=57&&(m=p=!1),p&&m&&(p=C,m=x),!p&&!m){y&&(o.content=oo(o.content,d.index,a0));continue}if(m)for(n=u.length-1;n>=0;n--){let v=u[n];if(u[n].level<i)break;if(v.single===y&&u[n].level===i){v=u[n];let b,_;y?(b=t.md.options.quotes[2],_=t.md.options.quotes[3]):(b=t.md.options.quotes[0],_=t.md.options.quotes[1]),o.content=oo(o.content,d.index,_),e[v.token].content=oo(e[v.token].content,v.pos,b),a+=_.length-1,v.token===r&&(a+=b.length-1),l=o.content,s=l.length,u.length=n;continue e}}p?u.push({token:r,pos:d.index,single:y,level:i}):m&&y&&(o.content=oo(o.content,d.index,a0))}}}function z3(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!F3.test(e.tokens[t].content)||D3(e.tokens[t].children,e)}function N3(e){let t,n;const u=e.tokens,r=u.length;for(let o=0;o<r;o++){if(u[o].type!=="inline")continue;const i=u[o].children,l=i.length;for(t=0;t<l;t++)i[t].type==="text_special"&&(i[t].type="text");for(t=n=0;t<l;t++)i[t].type==="text"&&t+1<l&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}const nl=[["normalize",m3],["block",g3],["inline",x3],["linkify",b3],["replacements",A3],["smartquotes",z3],["text_join",N3]];function Cs(){this.ruler=new He;for(let e=0;e<nl.length;e++)this.ruler.push(nl[e][0],nl[e][1])}Cs.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};Cs.prototype.State=Np;function Tt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,i=0,l=0,a=0,s=r.length,d=!1;i<s;i++){const p=r.charCodeAt(i);if(!d)if(X(p)){l++,p===9?a+=4-a%4:a++;continue}else d=!0;(p===10||i===s-1)&&(p!==10&&i++,this.bMarks.push(o),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(a),this.bsCount.push(0),d=!1,l=0,a=0,o=i+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Tt.prototype.push=function(e,t,n){const u=new kt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};Tt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Tt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Tt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!X(u))break}return t};Tt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!X(this.src.charCodeAt(--t)))return t+1;return t};Tt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};Tt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Tt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const o=new Array(n-t);for(let i=0,l=t;l<n;l++,i++){let a=0;const s=this.bMarks[l];let d=s,p;for(l+1<n||r?p=this.eMarks[l]+1:p=this.eMarks[l];d<p&&a<u;){const m=this.src.charCodeAt(d);if(X(m))m===9?a+=4-(a+this.bsCount[l])%4:a++;else if(d-s<this.tShift[l])a++;else break;d++}a>u?o[i]=new Array(a-u+1).join(" ")+this.src.slice(d,p):o[i]=this.src.slice(d,p)}return o.join("")};Tt.prototype.Token=kt;const j3=65536;function ul(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function s0(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),o=!1,i=0,l="";for(;u<n;)r===124&&(o?(l+=e.substring(i,u-1),i=u):(t.push(l+e.substring(i,u)),l="",i=u+1)),o=r===92,u++,r=e.charCodeAt(u);return t.push(l+e.substring(i)),t}function R3(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let o=e.bMarks[r]+e.tShift[r];if(o>=e.eMarks[r])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58||o>=e.eMarks[r])return!1;const l=e.src.charCodeAt(o++);if(l!==124&&l!==45&&l!==58&&!X(l)||i===45&&X(l))return!1;for(;o<e.eMarks[r];){const v=e.src.charCodeAt(o);if(v!==124&&v!==45&&v!==58&&!X(v))return!1;o++}let a=ul(e,t+1),s=a.split("|");const d=[];for(let v=0;v<s.length;v++){const b=s[v].trim();if(!b){if(v===0||v===s.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;b.charCodeAt(b.length-1)===58?d.push(b.charCodeAt(0)===58?"center":"right"):b.charCodeAt(0)===58?d.push("left"):d.push("")}if(a=ul(e,t).trim(),a.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;s=s0(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop();const p=s.length;if(p===0||p!==d.length)return!1;if(u)return!0;const m=e.parentType;e.parentType="table";const y=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),w=[t,0];g.map=w;const C=e.push("thead_open","thead",1);C.map=[t,t+1];const x=e.push("tr_open","tr",1);x.map=[t,t+1];for(let v=0;v<s.length;v++){const b=e.push("th_open","th",1);d[v]&&(b.attrs=[["style","text-align:"+d[v]]]);const _=e.push("inline","",0);_.content=s[v].trim(),_.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let f,h=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let v=!1;for(let _=0,E=y.length;_<E;_++)if(y[_](e,r,n,!0)){v=!0;break}if(v||(a=ul(e,r).trim(),!a)||e.sCount[r]-e.blkIndent>=4||(s=s0(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop(),h+=p-s.length,h>j3))break;if(r===t+2){const _=e.push("tbody_open","tbody",1);_.map=f=[t+2,0]}const b=e.push("tr_open","tr",1);b.map=[r,r+1];for(let _=0;_<p;_++){const E=e.push("td_open","td",1);d[_]&&(E.attrs=[["style","text-align:"+d[_]]]);const S=e.push("inline","",0);S.content=s[_]?s[_].trim():"",S.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=r),e.push("table_close","table",-1),w[1]=r,e.parentType=m,e.line=r,!0}function T3(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
||
`,o.map=[t,e.line],!0}function P3(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>o)return!1;const i=e.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let l=r;r=e.skipChars(r,i);let a=r-l;if(a<3)return!1;const s=e.src.slice(l,r),d=e.src.slice(r,o);if(i===96&&d.indexOf(String.fromCharCode(i))>=0)return!1;if(u)return!0;let p=t,m=!1;for(;p++,!(p>=n||(r=l=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],r<o&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(r)===i&&!(e.sCount[p]-e.blkIndent>=4)&&(r=e.skipChars(r,i),!(r-l<a)&&(r=e.skipSpaces(r),!(r<o)))){m=!0;break}a=e.sCount[t],e.line=p+(m?1:0);const y=e.push("fence","code",0);return y.info=d,y.content=e.getLines(t+1,p,a,!0),y.markup=s,y.map=[t,e.line],!0}function M3(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const l=[],a=[],s=[],d=[],p=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let y=!1,g;for(g=t;g<n;g++){const h=e.sCount[g]<e.blkIndent;if(r=e.bMarks[g]+e.tShift[g],o=e.eMarks[g],r>=o)break;if(e.src.charCodeAt(r++)===62&&!h){let b=e.sCount[g]+1,_,E;e.src.charCodeAt(r)===32?(r++,b++,E=!1,_=!0):e.src.charCodeAt(r)===9?(_=!0,(e.bsCount[g]+b)%4===3?(r++,b++,E=!1):E=!0):_=!1;let S=b;for(l.push(e.bMarks[g]),e.bMarks[g]=r;r<o;){const F=e.src.charCodeAt(r);if(X(F))F===9?S+=4-(S+e.bsCount[g]+(E?1:0))%4:S++;else break;r++}y=r>=o,a.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(_?1:0),s.push(e.sCount[g]),e.sCount[g]=S-b,d.push(e.tShift[g]),e.tShift[g]=r-e.bMarks[g];continue}if(y)break;let v=!1;for(let b=0,_=p.length;b<_;b++)if(p[b](e,g,n,!0)){v=!0;break}if(v){e.lineMax=g,e.blkIndent!==0&&(l.push(e.bMarks[g]),a.push(e.bsCount[g]),d.push(e.tShift[g]),s.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}l.push(e.bMarks[g]),a.push(e.bsCount[g]),d.push(e.tShift[g]),s.push(e.sCount[g]),e.sCount[g]=-1}const w=e.blkIndent;e.blkIndent=0;const C=e.push("blockquote_open","blockquote",1);C.markup=">";const x=[t,0];C.map=x,e.md.block.tokenize(e,t,g);const f=e.push("blockquote_close","blockquote",-1);f.markup=">",e.lineMax=i,e.parentType=m,x[1]=e.line;for(let h=0;h<d.length;h++)e.bMarks[h+t]=l[h],e.tShift[h+t]=d[h],e.sCount[h+t]=s[h],e.bsCount[h+t]=a[h];return e.blkIndent=w,!0}function L3(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(o++);if(i!==42&&i!==45&&i!==95)return!1;let l=1;for(;o<r;){const s=e.src.charCodeAt(o++);if(s!==i&&!X(s))return!1;s===i&&l++}if(l<3)return!1;if(u)return!0;e.line=t+1;const a=e.push("hr","hr",0);return a.map=[t,e.line],a.markup=Array(l+1).join(String.fromCharCode(i)),!0}function c0(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const o=e.src.charCodeAt(u);if(!X(o))return-1}return u}function d0(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=u)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<u&&(o=e.src.charCodeAt(r),!X(o))?-1:r}function I3(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function O3(e,t,n,u){let r,o,i,l,a=t,s=!0;if(e.sCount[a]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]<e.blkIndent)return!1;let d=!1;u&&e.parentType==="paragraph"&&e.sCount[a]>=e.blkIndent&&(d=!0);let p,m,y;if((y=d0(e,a))>=0){if(p=!0,i=e.bMarks[a]+e.tShift[a],m=Number(e.src.slice(i,y-1)),d&&m!==1)return!1}else if((y=c0(e,a))>=0)p=!1;else return!1;if(d&&e.skipSpaces(y)>=e.eMarks[a])return!1;if(u)return!0;const g=e.src.charCodeAt(y-1),w=e.tokens.length;p?(l=e.push("ordered_list_open","ol",1),m!==1&&(l.attrs=[["start",m]])):l=e.push("bullet_list_open","ul",1);const C=[a,0];l.map=C,l.markup=String.fromCharCode(g);let x=!1;const f=e.md.block.ruler.getRules("list"),h=e.parentType;for(e.parentType="list";a<n;){o=y,r=e.eMarks[a];const v=e.sCount[a]+y-(e.bMarks[a]+e.tShift[a]);let b=v;for(;o<r;){const O=e.src.charCodeAt(o);if(O===9)b+=4-(b+e.bsCount[a])%4;else if(O===32)b++;else break;o++}const _=o;let E;_>=r?E=1:E=b-v,E>4&&(E=1);const S=v+E;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(g);const F=[a,0];l.map=F,p&&(l.info=e.src.slice(i,y-1));const N=e.tight,L=e.tShift[a],P=e.sCount[a],ue=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=S,e.tight=!0,e.tShift[a]=_-e.bMarks[a],e.sCount[a]=b,_>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,a,n,!0),(!e.tight||x)&&(s=!1),x=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ue,e.tShift[a]=L,e.sCount[a]=P,e.tight=N,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(g),a=e.line,F[1]=a,a>=n||e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)break;let M=!1;for(let O=0,Y=f.length;O<Y;O++)if(f[O](e,a,n,!0)){M=!0;break}if(M)break;if(p){if(y=d0(e,a),y<0)break;i=e.bMarks[a]+e.tShift[a]}else if(y=c0(e,a),y<0)break;if(g!==e.src.charCodeAt(y-1))break}return p?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(g),C[1]=a,e.line=a,e.parentType=h,s&&I3(e,w),!0}function $3(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function l(f){const h=e.lineMax;if(f>=h||e.isEmpty(f))return null;let v=!1;if(e.sCount[f]-e.blkIndent>3&&(v=!0),e.sCount[f]<0&&(v=!0),!v){const E=e.md.block.ruler.getRules("reference"),S=e.parentType;e.parentType="reference";let F=!1;for(let N=0,L=E.length;N<L;N++)if(E[N](e,f,h,!0)){F=!0;break}if(e.parentType=S,F)return null}const b=e.bMarks[f]+e.tShift[f],_=e.eMarks[f];return e.src.slice(b,_+1)}let a=e.src.slice(r,o+1);o=a.length;let s=-1;for(r=1;r<o;r++){const f=a.charCodeAt(r);if(f===91)return!1;if(f===93){s=r;break}else if(f===10){const h=l(i);h!==null&&(a+=h,o=a.length,i++)}else if(f===92&&(r++,r<o&&a.charCodeAt(r)===10)){const h=l(i);h!==null&&(a+=h,o=a.length,i++)}}if(s<0||a.charCodeAt(s+1)!==58)return!1;for(r=s+2;r<o;r++){const f=a.charCodeAt(r);if(f===10){const h=l(i);h!==null&&(a+=h,o=a.length,i++)}else if(!X(f))break}const d=e.md.helpers.parseLinkDestination(a,r,o);if(!d.ok)return!1;const p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;r=d.pos;const m=r,y=i,g=r;for(;r<o;r++){const f=a.charCodeAt(r);if(f===10){const h=l(i);h!==null&&(a+=h,o=a.length,i++)}else if(!X(f))break}let w=e.md.helpers.parseLinkTitle(a,r,o);for(;w.can_continue;){const f=l(i);if(f===null)break;a+=f,r=o,o=a.length,i++,w=e.md.helpers.parseLinkTitle(a,r,o,w)}let C;for(r<o&&g!==r&&w.ok?(C=w.str,r=w.pos):(C="",r=m,i=y);r<o;){const f=a.charCodeAt(r);if(!X(f))break;r++}if(r<o&&a.charCodeAt(r)!==10&&C)for(C="",r=m,i=y;r<o;){const f=a.charCodeAt(r);if(!X(f))break;r++}if(r<o&&a.charCodeAt(r)!==10)return!1;const x=vi(a.slice(1,s));return x?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:C,href:p}),e.line=i),!0):!1}const B3=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],U3="[a-zA-Z_:][a-zA-Z0-9:._-]*",H3="[^\"'=<>`\\x00-\\x20]+",V3="'[^']*'",q3='"[^"]*"',W3="(?:"+H3+"|"+V3+"|"+q3+")",K3="(?:\\s+"+U3+"(?:\\s*=\\s*"+W3+")?)",Rp="<[A-Za-z][A-Za-z0-9\\-]*"+K3+"*\\s*\\/?>",Tp="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",G3="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Q3="<[?][\\s\\S]*?[?]>",Z3="<![A-Za-z][^>]*>",Y3="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",J3=new RegExp("^(?:"+Rp+"|"+Tp+"|"+G3+"|"+Q3+"|"+Z3+"|"+Y3+")"),X3=new RegExp("^(?:"+Rp+"|"+Tp+")"),Un=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+B3.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(X3.source+"\\s*$"),/^$/,!1]];function ey(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let i=e.src.slice(r,o),l=0;for(;l<Un.length&&!Un[l][0].test(i);l++);if(l===Un.length)return!1;if(u)return Un[l][2];let a=t+1;if(!Un[l][1].test(i)){for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(r=e.bMarks[a]+e.tShift[a],o=e.eMarks[a],i=e.src.slice(r,o),Un[l][1].test(i)){i.length!==0&&a++;break}}e.line=a;const s=e.push("html_block","",0);return s.map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}function ty(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(r);if(i!==35||r>=o)return!1;let l=1;for(i=e.src.charCodeAt(++r);i===35&&r<o&&l<=6;)l++,i=e.src.charCodeAt(++r);if(l>6||r<o&&!X(i))return!1;if(u)return!0;o=e.skipSpacesBack(o,r);const a=e.skipCharsBack(o,35,r);a>r&&X(e.src.charCodeAt(a-1))&&(o=a),e.line=t+1;const s=e.push("heading_open","h"+String(l),1);s.markup="########".slice(0,l),s.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(r,o).trim(),d.map=[t,e.line],d.children=[];const p=e.push("heading_close","h"+String(l),-1);return p.markup="########".slice(0,l),!0}function ny(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let o=0,i,l=t+1;for(;l<n&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let y=e.bMarks[l]+e.tShift[l];const g=e.eMarks[l];if(y<g&&(i=e.src.charCodeAt(y),(i===45||i===61)&&(y=e.skipChars(y,i),y=e.skipSpaces(y),y>=g))){o=i===61?1:2;break}}if(e.sCount[l]<0)continue;let m=!1;for(let y=0,g=u.length;y<g;y++)if(u[y](e,l,n,!0)){m=!0;break}if(m)break}if(!o)return!1;const a=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const s=e.push("heading_open","h"+String(o),1);s.markup=String.fromCharCode(i),s.map=[t,e.line];const d=e.push("inline","",0);d.content=a,d.map=[t,e.line-1],d.children=[];const p=e.push("heading_close","h"+String(o),-1);return p.markup=String.fromCharCode(i),e.parentType=r,!0}function uy(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let s=!1;for(let d=0,p=u.length;d<p;d++)if(u[d](e,o,n,!0)){s=!0;break}if(s)break}const i=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const a=e.push("inline","",0);return a.content=i,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const io=[["table",R3,["paragraph","reference"]],["code",T3],["fence",P3,["paragraph","reference","blockquote","list"]],["blockquote",M3,["paragraph","reference","blockquote","list"]],["hr",L3,["paragraph","reference","blockquote","list"]],["list",O3,["paragraph","reference","blockquote"]],["reference",$3],["html_block",ey,["paragraph","reference","blockquote"]],["heading",ty,["paragraph","reference","blockquote"]],["lheading",ny],["paragraph",uy]];function bi(){this.ruler=new He;for(let e=0;e<io.length;e++)this.ruler.push(io[e][0],io[e][1],{alt:(io[e][2]||[]).slice()})}bi.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,o=e.md.options.maxNesting;let i=t,l=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n||e.sCount[i]<e.blkIndent));){if(e.level>=o){e.line=n;break}const a=e.line;let s=!1;for(let d=0;d<r;d++)if(s=u[d](e,i,n,!1),s){if(a>=e.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),i=e.line,i<n&&e.isEmpty(i)&&(l=!0,i++,e.line=i)}};bi.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)};bi.prototype.State=Tt;function Lr(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Lr.prototype.pushPending=function(){const e=new kt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Lr.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new kt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u};Lr.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===u;)o++;const i=o-e,l=o<n?this.src.charCodeAt(o):32,a=Er(r)||Cr(String.fromCharCode(r)),s=Er(l)||Cr(String.fromCharCode(l)),d=_r(r),p=_r(l),m=!p&&(!s||d||a),y=!d&&(!a||p||s);return{can_open:m&&(t||!y||a),can_close:y&&(t||!m||s),length:i}};Lr.prototype.Token=kt;function ry(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function oy(e,t){let n=e.pos;for(;n<e.posMax&&!ry(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const iy=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function ly(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(iy);if(!r)return!1;const o=r[1],i=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!i)return!1;let l=i.url;if(l.length<=o.length)return!1;let a=l.length;for(;a>0&&l.charCodeAt(a-1)===42;)a--;a!==l.length&&(l=l.slice(0,a));const s=e.md.normalizeLink(l);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const d=e.push("link_open","a",1);d.attrs=[["href",s]],d.markup="linkify",d.info="auto";const p=e.push("text","",0);p.content=e.md.normalizeLinkText(l);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=l.length-o.length,!0}function ay(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let o=u-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&X(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Es=[];for(let e=0;e<256;e++)Es.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Es[e.charCodeAt(0)]=1});function sy(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!X(r));)n++;return e.pos=n,!0}let o=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const l=e.src.charCodeAt(n+1);l>=56320&&l<=57343&&(o+=e.src[n+1],n++)}const i="\\"+o;if(!t){const l=e.push("text_special","",0);r<256&&Es[r]!==0?l.content=o:l.content=i,l.markup=i,l.info="escape"}return e.pos=n+1,!0}function cy(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(r,n),l=i.length;if(e.backticksScanned&&(e.backticks[l]||0)<=r)return t||(e.pending+=i),e.pos+=l,!0;let a=n,s;for(;(s=e.src.indexOf("`",a))!==-1;){for(a=s+1;a<o&&e.src.charCodeAt(a)===96;)a++;const d=a-s;if(d===l){if(!t){const p=e.push("code_inline","code",0);p.markup=i,p.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[d]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}function dy(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let o=r.length;const i=String.fromCharCode(u);if(o<2)return!1;let l;o%2&&(l=e.push("text","",0),l.content=i,o--);for(let a=0;a<o;a+=2)l=e.push("text","",0),l.content=i+i,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function f0(e,t){let n;const u=[],r=t.length;for(let o=0;o<r;o++){const i=t[o];if(i.marker!==126||i.end===-1)continue;const l=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&u.push(l.token-1)}for(;u.length;){const o=u.pop();let i=o+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,o!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[o],e.tokens[o]=n)}}function fy(e){const t=e.tokens_meta,n=e.tokens_meta.length;f0(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&f0(e,t[u].delimiters)}const Pp={tokenize:dy,postProcess:fy};function py(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let o=0;o<r.length;o++){const i=e.push("text","",0);i.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function p0(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=t[r.end],i=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===o.token+1,l=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?l+l:l,a.content="";const s=e.tokens[o.token];s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?l+l:l,s.content="",i&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function hy(e){const t=e.tokens_meta,n=e.tokens_meta.length;p0(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&p0(e,t[u].delimiters)}const Mp={tokenize:py,postProcess:hy};function my(e,t){let n,u,r,o,i="",l="",a=e.pos,s=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,p=e.posMax,m=e.pos+1,y=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(y<0)return!1;let g=y+1;if(g<p&&e.src.charCodeAt(g)===40){for(s=!1,g++;g<p&&(n=e.src.charCodeAt(g),!(!X(n)&&n!==10));g++);if(g>=p)return!1;if(a=g,r=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?g=r.pos:i="",a=g;g<p&&(n=e.src.charCodeAt(g),!(!X(n)&&n!==10));g++);if(r=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<p&&a!==g&&r.ok)for(l=r.str,g=r.pos;g<p&&(n=e.src.charCodeAt(g),!(!X(n)&&n!==10));g++);}(g>=p||e.src.charCodeAt(g)!==41)&&(s=!0),g++}if(s){if(typeof e.env.references>"u")return!1;if(g<p&&e.src.charCodeAt(g)===91?(a=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?u=e.src.slice(a,g++):g=y+1):g=y+1,u||(u=e.src.slice(m,y)),o=e.env.references[vi(u)],!o)return e.pos=d,!1;i=o.href,l=o.title}if(!t){e.pos=m,e.posMax=y;const w=e.push("link_open","a",1),C=[["href",i]];w.attrs=C,l&&C.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=p,!0}function gy(e,t){let n,u,r,o,i,l,a,s,d="";const p=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const y=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(o=g+1,o<m&&e.src.charCodeAt(o)===40){for(o++;o<m&&(n=e.src.charCodeAt(o),!(!X(n)&&n!==10));o++);if(o>=m)return!1;for(s=o,l=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),l.ok&&(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?o=l.pos:d=""),s=o;o<m&&(n=e.src.charCodeAt(o),!(!X(n)&&n!==10));o++);if(l=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<m&&s!==o&&l.ok)for(a=l.str,o=l.pos;o<m&&(n=e.src.charCodeAt(o),!(!X(n)&&n!==10));o++);else a="";if(o>=m||e.src.charCodeAt(o)!==41)return e.pos=p,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<m&&e.src.charCodeAt(o)===91?(s=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?r=e.src.slice(s,o++):o=g+1):o=g+1,r||(r=e.src.slice(y,g)),i=e.env.references[vi(r)],!i)return e.pos=p,!1;d=i.href,a=i.title}if(!t){u=e.src.slice(y,g);const w=[];e.md.inline.parse(u,e.md,e.env,w);const C=e.push("image","img",0),x=[["src",d],["alt",""]];C.attrs=x,C.children=w,C.content=u,a&&x.push(["title",a])}return e.pos=o,e.posMax=m,!0}const xy=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,yy=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function vy(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}const o=e.src.slice(u+1,n);if(yy.test(o)){const i=e.md.normalizeLink(o);if(!e.md.validateLink(i))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",i]],l.markup="autolink",l.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(o);const s=e.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return e.pos+=o.length+2,!0}if(xy.test(o)){const i=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(i))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",i]],l.markup="autolink",l.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(o);const s=e.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return e.pos+=o.length+2,!0}return!1}function by(e){return/^<a[>\s]/i.test(e)}function ky(e){return/^<\/a\s*>/i.test(e)}function wy(e){const t=e|32;return t>=97&&t<=122}function _y(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!wy(r))return!1;const o=e.src.slice(u).match(J3);if(!o)return!1;if(!t){const i=e.push("html_inline","",0);i.content=o[0],by(i.content)&&e.linkLevel++,ky(i.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const Cy=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ey=/^&([a-z][a-z0-9]{1,31});/i;function Sy(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(Cy);if(o){if(!t){const i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),l=e.push("text_special","",0);l.content=_s(i)?Yo(i):Yo(65533),l.markup=o[0],l.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(Ey);if(o){const i=Fp(o[0]);if(i!==o[0]){if(!t){const l=e.push("text_special","",0);l.content=i,l.markup=o[0],l.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function h0(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const o=[];for(let i=0;i<n;i++){const l=e[i];if(o.push(0),(e[u].marker!==l.marker||r!==l.token-1)&&(u=i),r=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const a=t[l.marker][(l.open?3:0)+l.length%3];let s=u-o[u]-1,d=s;for(;s>a;s-=o[s]+1){const p=e[s];if(p.marker===l.marker&&p.open&&p.end<0){let m=!1;if((p.close||l.open)&&(p.length+l.length)%3===0&&(p.length%3!==0||l.length%3!==0)&&(m=!0),!m){const y=s>0&&!e[s-1].open?o[s-1]+1:0;o[i]=i-s+y,o[s]=y,l.open=!1,p.end=i,p.close=!1,d=-1,r=-2;break}}}d!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=d)}}function Ay(e){const t=e.tokens_meta,n=e.tokens_meta.length;h0(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&h0(t[u].delimiters)}function Fy(e){let t,n,u=0;const r=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const rl=[["text",oy],["linkify",ly],["newline",ay],["escape",sy],["backticks",cy],["strikethrough",Pp.tokenize],["emphasis",Mp.tokenize],["link",my],["image",gy],["autolink",vy],["html_inline",_y],["entity",Sy]],ol=[["balance_pairs",Ay],["strikethrough",Pp.postProcess],["emphasis",Mp.postProcess],["fragments_join",Fy]];function Ir(){this.ruler=new He;for(let e=0;e<rl.length;e++)this.ruler.push(rl[e][0],rl[e][1]);this.ruler2=new He;for(let e=0;e<ol.length;e++)this.ruler2.push(ol[e][0],ol[e][1])}Ir.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let i=!1;if(e.level<r){for(let l=0;l<u;l++)if(e.level++,i=n[l](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,o[t]=e.pos};Ir.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const o=e.pos;let i=!1;if(e.level<r){for(let l=0;l<n;l++)if(i=t[l](e,!1),i){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Ir.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const o=this.ruler2.getRules(""),i=o.length;for(let l=0;l<i;l++)o[l](r)};Ir.prototype.State=Lr;function Dy(e){const t={};e=e||{},t.src_Any=_p.source,t.src_Cc=Cp.source,t.src_Z=Sp.source,t.src_P=ks.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ca(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function ki(e){return Object.prototype.toString.call(e)}function zy(e){return ki(e)==="[object String]"}function Ny(e){return ki(e)==="[object Object]"}function jy(e){return ki(e)==="[object RegExp]"}function m0(e){return ki(e)==="[object Function]"}function Ry(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Lp={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ty(e){return Object.keys(e||{}).reduce(function(t,n){return t||Lp.hasOwnProperty(n)},!1)}const Py={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},My="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ly="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Iy(e){e.__index__=-1,e.__text_cache__=""}function Oy(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function g0(){return function(e,t){t.normalize(e)}}function Jo(e){const t=e.re=Dy(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(My),n.push(t.src_xn),t.src_tlds=n.join("|");function u(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(l,a){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+a)}Object.keys(e.__schemas__).forEach(function(l){const a=e.__schemas__[l];if(a===null)return;const s={validate:null,link:null};if(e.__compiled__[l]=s,Ny(a)){jy(a.validate)?s.validate=Oy(a.validate):m0(a.validate)?s.validate=a.validate:o(l,a),m0(a.normalize)?s.normalize=a.normalize:a.normalize?o(l,a):s.normalize=g0();return}if(zy(a)){r.push(l);return}o(l,a)}),r.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:g0()};const i=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(Ry).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Iy(e)}function $y(e,t){const n=e.__index__,u=e.__last_index__,r=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=r,this.text=r,this.url=r}function da(e,t){const n=new $y(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||Ty(e)&&(t=e,e={}),this.__opts__=ca({},Lp,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ca({},Py,e),this.__compiled__={},this.__tlds__=Ly,this.__tlds_replaced__=!1,this.re={},Jo(this)}Ze.prototype.add=function(t,n){return this.__schemas__[t]=n,Jo(this),this};Ze.prototype.set=function(t){return this.__opts__=ca(this.__opts__,t),this};Ze.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,r,o,i,l,a,s,d;if(this.re.schema_test.test(t)){for(a=this.re.schema_search,a.lastIndex=0;(n=a.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],a.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=t.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=u.index+u[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=t.indexOf("@"),d>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(i=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=l))),this.__index__>=0};Ze.prototype.pretest=function(t){return this.re.pretest.test(t)};Ze.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};Ze.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(da(this,u)),u=this.__last_index__);let r=u?t.slice(u):t;for(;this.test(r);)n.push(da(this,u)),r=r.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null};Ze.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,da(this,0)):null};Ze.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,o){return u!==o[r-1]}).reverse(),Jo(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Jo(this),this)};Ze.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Ze.prototype.onCompile=function(){};const au=2147483647,Dt=36,Ss=1,Sr=26,By=38,Uy=700,Ip=72,Op=128,$p="-",Hy=/^xn--/,Vy=/[^\0-\x7F]/,qy=/[\x2E\u3002\uFF0E\uFF61]/g,Wy={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},il=Dt-Ss,zt=Math.floor,ll=String.fromCharCode;function nn(e){throw new RangeError(Wy[e])}function Ky(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function Bp(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(qy,".");const r=e.split("."),o=Ky(r,t).join(".");return u+o}function Up(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const Gy=e=>String.fromCodePoint(...e),Qy=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Dt},x0=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Hp=function(e,t,n){let u=0;for(e=n?zt(e/Uy):e>>1,e+=zt(e/t);e>il*Sr>>1;u+=Dt)e=zt(e/il);return zt(u+(il+1)*e/(e+By))},Vp=function(e){const t=[],n=e.length;let u=0,r=Op,o=Ip,i=e.lastIndexOf($p);i<0&&(i=0);for(let l=0;l<i;++l)e.charCodeAt(l)>=128&&nn("not-basic"),t.push(e.charCodeAt(l));for(let l=i>0?i+1:0;l<n;){const a=u;for(let d=1,p=Dt;;p+=Dt){l>=n&&nn("invalid-input");const m=Qy(e.charCodeAt(l++));m>=Dt&&nn("invalid-input"),m>zt((au-u)/d)&&nn("overflow"),u+=m*d;const y=p<=o?Ss:p>=o+Sr?Sr:p-o;if(m<y)break;const g=Dt-y;d>zt(au/g)&&nn("overflow"),d*=g}const s=t.length+1;o=Hp(u-a,s,a==0),zt(u/s)>au-r&&nn("overflow"),r+=zt(u/s),u%=s,t.splice(u++,0,r)}return String.fromCodePoint(...t)},qp=function(e){const t=[];e=Up(e);const n=e.length;let u=Op,r=0,o=Ip;for(const a of e)a<128&&t.push(ll(a));const i=t.length;let l=i;for(i&&t.push($p);l<n;){let a=au;for(const d of e)d>=u&&d<a&&(a=d);const s=l+1;a-u>zt((au-r)/s)&&nn("overflow"),r+=(a-u)*s,u=a;for(const d of e)if(d<u&&++r>au&&nn("overflow"),d===u){let p=r;for(let m=Dt;;m+=Dt){const y=m<=o?Ss:m>=o+Sr?Sr:m-o;if(p<y)break;const g=p-y,w=Dt-y;t.push(ll(x0(y+g%w,0))),p=zt(g/w)}t.push(ll(x0(p,0))),o=Hp(r,s,l===i),r=0,++l}++r,++u}return t.join("")},Zy=function(e){return Bp(e,function(t){return Hy.test(t)?Vp(t.slice(4).toLowerCase()):t})},Yy=function(e){return Bp(e,function(t){return Vy.test(t)?"xn--"+qp(t):t})},Wp={version:"2.3.1",ucs2:{decode:Up,encode:Gy},decode:Vp,encode:qp,toASCII:Yy,toUnicode:Zy},Jy={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Xy={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ev={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},tv={default:Jy,zero:Xy,commonmark:ev},nv=/^(vbscript|javascript|file|data):/,uv=/^data:image\/(gif|png|jpeg|webp);/;function rv(e){const t=e.trim().toLowerCase();return nv.test(t)?uv.test(t):!0}const Kp=["http:","https:","mailto:"];function ov(e){const t=bs(e,!0);if(t.hostname&&(!t.protocol||Kp.indexOf(t.protocol)>=0))try{t.hostname=Wp.toASCII(t.hostname)}catch{}return Mr(vs(t))}function iv(e){const t=bs(e,!0);if(t.hostname&&(!t.protocol||Kp.indexOf(t.protocol)>=0))try{t.hostname=Wp.toUnicode(t.hostname)}catch{}return gu(vs(t),gu.defaultChars+"%")}function at(e,t){if(!(this instanceof at))return new at(e,t);t||ws(e)||(t=e||{},e="default"),this.inline=new Ir,this.block=new bi,this.core=new Cs,this.renderer=new Eu,this.linkify=new Ze,this.validateLink=rv,this.normalizeLink=ov,this.normalizeLinkText=iv,this.utils=a3,this.helpers=yi({},f3),this.options={},this.configure(e),t&&this.set(t)}at.prototype.set=function(e){return yi(this.options,e),this};at.prototype.configure=function(e){const t=this;if(ws(e)){const n=e;if(e=tv[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};at.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};at.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};at.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};at.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};at.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};at.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};at.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const lv=new at({html:!1,breaks:!0,linkify:!0,typographer:!0});function av(e){return lv.render(e)}function sv(e,t,n){return e.role==="user"?"done":n&&t?"thinking":!e.content&&!e.reasoningContent?"streaming":"done"}function cv({message:e,isLast:t,isThinking:n,onRegenerate:u,onContinue:r,onQuote:o,onDelete:i}){const l=e.role==="user",a=e.role==="tool",[s,d]=k.useState(!1),{toast:p}=ys(),m=sv(e,!!t,!!n),y=k.useCallback(()=>{navigator.clipboard.writeText(e.content).then(()=>{p("已复制到剪贴板","success")})},[e.content,p]),g=k.useCallback(()=>{confirm("确定删除这条消息?")&&(i==null||i(e.id))},[e.id,i]);if(a){let C="";try{C=JSON.parse(e.content).tool||""}catch{}return c.jsxs("div",{className:"flex items-center gap-2 py-1 px-3",children:[c.jsx(Kc,{size:13,className:"text-zinc-400"}),c.jsxs("span",{className:"text-xs text-zinc-400",children:["工具调用: ",C]})]})}const w=m==="done"&&!l&&e.content;return c.jsxs("div",{className:Ft("flex gap-3 mb-5 group/msg",l?"flex-row-reverse":"flex-row"),children:[c.jsx("div",{className:Ft("w-7 h-7 rounded-full flex items-center justify-center flex-shrink-0 text-xs",l?"bg-indigo-600 text-white":"bg-zinc-100 text-zinc-500"),children:l?c.jsx(Eg,{size:13}):c.jsx(Kc,{size:13})}),c.jsxs("div",{className:Ft("flex-1 max-w-[78%]",l&&"flex flex-col items-end"),children:[m==="thinking"&&!e.content&&!e.reasoningContent&&c.jsx("div",{className:"rounded-2xl px-3.5 py-2.5 bg-zinc-50 border border-zinc-100 rounded-tl-md",children:c.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm",children:[c.jsx(Xi,{size:14,className:"animate-pulse"}),c.jsx("span",{children:"深度思考中..."})]})}),e.reasoningContent&&c.jsxs("div",{className:"mb-1.5 w-full",children:[c.jsxs("button",{onClick:()=>d(!s),className:"flex items-center gap-1.5 text-xs text-zinc-400 hover:text-zinc-600 transition-colors py-1",children:[m==="streaming"||m==="thinking"?c.jsx(Xi,{size:12,className:"animate-pulse text-indigo-400"}):c.jsx(Xi,{size:12}),c.jsx("span",{children:m==="done"?"深度思考":"思考中..."}),m==="done"&&(s?c.jsx(dg,{size:12}):c.jsx(dp,{size:12}))]}),(s||m!=="done")&&c.jsx("div",{className:"mt-1 px-3 py-2 rounded-lg bg-indigo-50/50 border border-indigo-100 text-xs text-zinc-500 leading-relaxed max-h-60 overflow-y-auto whitespace-pre-wrap",children:e.reasoningContent})]}),!(e.content==="(调用工具)"&&m==="done"&&e.reasoningContent)&&c.jsx("div",{className:Ft("rounded-2xl px-3.5 py-2.5 text-sm leading-relaxed",l?"bg-indigo-600 text-white rounded-tr-md":"bg-zinc-50 text-zinc-700 border border-zinc-100 rounded-tl-md"),children:m==="streaming"&&!e.content?c.jsxs("div",{className:"flex items-center gap-1 text-zinc-400",children:[c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-zinc-300 rounded-full animate-pulse"}),c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-zinc-300 rounded-full animate-pulse [animation-delay:100ms]"}),c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-zinc-300 rounded-full animate-pulse [animation-delay:200ms]"})]}):l?c.jsx("p",{className:"whitespace-pre-wrap",children:e.content}):c.jsx("div",{className:"markdown-body prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:av(e.content)}})}),w&&c.jsxs("div",{className:"flex gap-0.5 mt-1 opacity-0 group-hover/msg:opacity-100 transition-opacity px-1",children:[c.jsxs("button",{onClick:y,className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(gg,{size:10}),"复制"]}),c.jsxs("button",{onClick:()=>o==null?void 0:o(e.content),className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(bg,{size:10}),"引用"]}),c.jsxs("button",{onClick:g,className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] text-zinc-400 hover:text-red-500 hover:bg-red-50 transition-colors",children:[c.jsx(Pr,{size:10}),"删除"]}),c.jsxs("button",{onClick:()=>u==null?void 0:u(e.id),className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(ms,{size:10}),"重新生成"]}),c.jsxs("button",{onClick:()=>r==null?void 0:r(),className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(ag,{size:10}),"继续"]})]})]})]})}const dv=[{cmd:"/run",desc:"执行 pipeline 阶段",icon:vg},{cmd:"/status",desc:"查看管线进度",icon:Qc},{cmd:"/images",desc:"生成图片",icon:Mn},{cmd:"/list",desc:"列出可用账号",icon:xg},{cmd:"/help",desc:"显示帮助",icon:Qc}];function y0({onSend:e,disabled:t}){const[n,u]=k.useState(""),[r,o]=k.useState(!1),[i,l]=k.useState(0),a=k.useRef(null),s=n.startsWith("/")?dv.filter(y=>y.cmd.startsWith(n.split(" ")[0])):[],d=()=>{var y;!n.trim()||t||(e(n.trim()),u(""),o(!1),(y=a.current)==null||y.focus())},p=y=>{if(r&&s.length>0){if(y.key==="Tab"){y.preventDefault(),u(s[i%s.length].cmd+" "),o(!1);return}if(y.key==="ArrowDown"){y.preventDefault(),l(g=>(g+1)%s.length);return}if(y.key==="ArrowUp"){y.preventDefault(),l(g=>(g-1+s.length)%s.length);return}}if(y.key==="Escape"){o(!1);return}y.key==="Enter"&&!y.shiftKey&&(y.preventDefault(),d())},m=n.trim().length>0&&!t;return c.jsxs("div",{className:"relative",children:[r&&s.length>0&&c.jsx("div",{className:"mx-6 mb-0.5 bg-white border border-zinc-200 rounded-xl shadow-lg overflow-hidden animate-in slide-in-from-bottom-2",children:s.map((y,g)=>{const w=y.icon;return c.jsxs("button",{onClick:()=>{var C;u(y.cmd+" "),o(!1),(C=a.current)==null||C.focus()},className:`w-full flex items-center gap-2.5 px-3.5 py-2 text-sm transition-colors ${g===i%s.length?"bg-indigo-50 text-indigo-700":"text-zinc-600 hover:bg-zinc-50"}`,children:[c.jsx(w,{size:15,className:"text-zinc-400"}),c.jsx("span",{className:"font-mono font-semibold text-xs",children:y.cmd}),c.jsx("span",{className:"text-zinc-400 text-xs",children:y.desc})]},y.cmd)})}),c.jsxs("div",{className:"px-4 pb-4 pt-2 bg-gradient-to-t from-white via-white to-transparent",children:[c.jsxs("div",{className:`
|
||
flex items-end gap-2 bg-zinc-50 rounded-2xl border transition-all duration-200 px-4 py-3
|
||
${t?"border-zinc-200 opacity-60":"border-zinc-200 focus-within:border-indigo-300 focus-within:shadow-md focus-within:shadow-indigo-50 focus-within:bg-white"}
|
||
`,children:[c.jsx("textarea",{ref:a,value:n,onChange:y=>u(y.target.value),onKeyDown:p,rows:1,placeholder:t?"等待回复中...":"输入消息,或按 / 查看快捷命令...",className:"flex-1 bg-transparent text-sm resize-none outline-none placeholder:text-zinc-400 text-zinc-700 min-h-[24px] max-h-[120px]",disabled:t,style:{height:"auto"},onInput:y=>{const g=y.currentTarget;g.style.height="auto",g.style.height=Math.min(g.scrollHeight,120)+"px"}}),c.jsx("button",{onClick:d,disabled:!m,className:`
|
||
w-8 h-8 rounded-xl flex items-center justify-center transition-all flex-shrink-0
|
||
${m?"bg-indigo-600 text-white hover:bg-indigo-700 shadow-sm":"bg-zinc-200 text-zinc-400 cursor-not-allowed"}
|
||
`,children:c.jsx(sg,{size:16,strokeWidth:2.5})})]}),c.jsx("p",{className:"text-[10px] text-zinc-400 text-center mt-1.5",children:"美图 Agent 可能会产生错误内容,请核实重要信息"})]})]})}function fv({phase:e,progress:t,currentItem:n,totalItems:u,status:r}){const o={images:"生成图片",upload:"上传素材",videos:"生成视频",tts:"配音",assemble:"成片组装"};return c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-3 my-2",children:[c.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c.jsxs("span",{className:"text-xs text-zinc-400",children:[o[e]||e,n&&u?` (${n}/${u})`:""]}),c.jsxs("span",{className:"text-xs text-zinc-500",children:[t,"%"]})]}),c.jsx("div",{className:"w-full h-1.5 bg-zinc-800 rounded-full overflow-hidden",children:c.jsx("div",{className:Ft("h-full rounded-full transition-all duration-500",t<100?"bg-blue-500":"bg-green-500"),style:{width:`${t}%`}})}),r&&c.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:r})]})}const v0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,b0=mp,pv=(e,t)=>n=>{var u;if((t==null?void 0:t.variants)==null)return b0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:o}=t,i=Object.keys(r).map(s=>{const d=n==null?void 0:n[s],p=o==null?void 0:o[s];if(d===null)return null;const m=v0(d)||v0(p);return r[s][m]}),l=n&&Object.entries(n).reduce((s,d)=>{let[p,m]=d;return m===void 0||(s[p]=m),s},{}),a=t==null||(u=t.compoundVariants)===null||u===void 0?void 0:u.reduce((s,d)=>{let{class:p,className:m,...y}=d;return Object.entries(y).every(g=>{let[w,C]=g;return Array.isArray(C)?C.includes({...o,...l}[w]):{...o,...l}[w]===C})?[...s,p,m]:s},[]);return b0(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},hv=pv("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),vt=k.forwardRef(({className:e,variant:t,size:n,...u},r)=>c.jsx("button",{className:Ft(hv({variant:t,size:n,className:e})),ref:r,...u}));vt.displayName="Button";function k0(){const{conversationId:e}=tp(),t=Rr(),{setConversations:n,selectedAccountId:u,conversations:r}=aa(),{messages:o,connected:i,thinking:l,toolStatus:a,pipeline:s,send:d,stop:p,createConversation:m,removeMessage:y}=kx(e||null),[g,w]=k.useState(null),[C,x]=k.useState([]),[f,h]=k.useState(null),[v,b]=k.useState(null),_=k.useRef(!1),E=k.useRef(null),S=k.useRef(!1);k.useEffect(()=>{fe.listAccounts().then(x).catch(()=>{})},[]),k.useEffect(()=>{fe.listConversations().then(n).catch(()=>{})},[o]),k.useEffect(()=>{const A=o.filter(z=>z.role==="tool");if(A.length>0)try{const z=JSON.parse(A[A.length-1].content);z.manifest&&w(z.manifest)}catch{}},[o]),k.useEffect(()=>{const A=E.current;A&&(S.current||(A.scrollTop=A.scrollHeight))},[o,l,s,a]),k.useEffect(()=>{const A=E.current;if(!A)return;const z=()=>{const T=A.scrollHeight-A.scrollTop-A.clientHeight<80;S.current=!T};return A.addEventListener("scroll",z,{passive:!0}),()=>A.removeEventListener("scroll",z)},[]),k.useEffect(()=>{S.current=!1},[e]),k.useEffect(()=>{if(e&&i&&v){const A=setTimeout(()=>{d(v),b(null)},300);return()=>clearTimeout(A)}},[e,i,v]);const F=async()=>{g&&await fetch("/api/pipeline/resume",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({manifest:g})})},N=k.useCallback(A=>{const z=o.findIndex(T=>T.id===A);if(z<=0)return null;for(let T=z-1;T>=0;T--)if(o[T].role==="user")return o[T];return null},[o]),L=k.useCallback(A=>{const z=N(A);z&&d(z.content)},[N,d]),P=k.useCallback(()=>{d("请继续")},[d]),ue=k.useCallback(A=>{h(A.slice(0,200))},[]),M=k.useCallback(A=>{y(A)},[y]),O=k.useCallback(async A=>{if(!_.current){_.current=!0,b(A);try{const z=await m(A.slice(0,30),u||void 0);if(z){const T=await fe.listConversations();n(T),t(`/chat/${z}`)}}catch{}_.current=!1}},[m,u]),Y=k.useCallback(A=>{f&&(A=`> ${f}
|
||
|
||
${A}`,h(null)),e?d(A):O(A)},[d,f,e]),q=k.useCallback(()=>{p()},[p]);if(!e){const A=r.slice(0,5);return c.jsx("div",{className:"flex-1 flex flex-col items-center justify-center bg-white",children:c.jsxs("div",{className:"w-full max-w-xl px-4",children:[c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("h2",{className:"text-lg font-semibold text-zinc-800",children:"开始新对话"}),c.jsx("p",{className:"text-sm text-zinc-400 mt-1",children:"输入消息开始创作,对话将自动创建"})]}),c.jsx(y0,{onSend:Y,disabled:l||_.current}),C.length>0&&c.jsxs("div",{className:"flex items-center gap-2 mt-3 justify-center",children:[c.jsx("span",{className:"text-xs text-zinc-400",children:"当前账号:"}),c.jsxs("select",{value:u||"",onChange:z=>aa.getState().setSelectedAccountId(z.target.value||null),className:"h-7 rounded-md border border-zinc-200 bg-white px-2.5 text-xs text-zinc-600",children:[c.jsx("option",{value:"",children:"不指定"}),C.map(z=>c.jsx("option",{value:z.id,children:z.name},z.id))]})]}),A.length>0&&c.jsxs("div",{className:"mt-8 border-t border-zinc-100 pt-4",children:[c.jsx("p",{className:"text-[10px] text-zinc-400 uppercase tracking-wider mb-2",children:"最近对话"}),A.map(z=>c.jsxs("button",{onClick:()=>t(`/chat/${z.id}`),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-left hover:bg-zinc-50 transition-colors group",children:[c.jsx(hs,{size:13,className:"text-zinc-300 flex-shrink-0"}),c.jsx("span",{className:"text-sm text-zinc-600 truncate flex-1 group-hover:text-zinc-800",children:z.title}),c.jsx("span",{className:"text-[10px] text-zinc-300 flex-shrink-0",children:new Date(z.updated_at).toLocaleDateString("zh-CN",{month:"short",day:"numeric"})})]},z.id))]})]})})}return c.jsxs("div",{className:"flex-1 flex flex-col bg-white h-full",children:[c.jsxs("div",{className:"px-4 py-2 border-b border-zinc-200 flex items-center justify-between flex-shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${i?"bg-green-500":"bg-red-400"}`}),c.jsx("span",{className:"text-xs text-zinc-400",children:i?"在线":"连接中"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[g&&c.jsxs(vt,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:F,children:[c.jsx(ms,{size:12,className:"mr-1"}),"断点续跑"]}),l&&c.jsxs(vt,{size:"sm",variant:"outline",className:"h-7 text-xs text-red-500 border-red-200 hover:bg-red-50",onClick:q,children:[c.jsx(mg,{size:12,className:"mr-1"}),"停止"]})]})]}),c.jsx("div",{className:"flex-1 overflow-hidden",children:c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{ref:E,className:"flex-1 overflow-y-auto px-4 py-4",children:[o.map((A,z)=>A.role!=="tool"&&c.jsx(cv,{message:A,isLast:z===o.length-1,isThinking:l,onRegenerate:A.role==="assistant"?L:void 0,onContinue:A.role==="assistant"?P:void 0,onQuote:ue,onDelete:M},A.id)),s&&c.jsx(fv,{phase:s.phase,progress:s.progress,currentItem:s.currentItem,totalItems:s.totalItems,status:s.status}),l&&!s&&c.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm py-2",children:[c.jsx(ia,{size:14,className:"animate-spin"}),a||"思考中..."]})]}),f&&c.jsxs("div",{className:"mx-4 px-3 py-1.5 bg-zinc-50 border border-zinc-200 rounded-lg flex items-center gap-2 text-xs text-zinc-500 flex-shrink-0",children:[c.jsxs("span",{className:"flex-1 truncate",children:["引用: ",f]}),c.jsx("button",{onClick:()=>h(null),className:"text-zinc-400 hover:text-zinc-600",children:c.jsx(gs,{size:12})})]}),c.jsx(y0,{onSend:Y,disabled:l})]})})]})}function Gp(){const[e,t]=k.useState([]),[n,u]=k.useState(!0),r=k.useCallback(()=>fe.listAccounts().then(t).finally(()=>u(!1)),[]);return k.useEffect(()=>{r()},[r]),{accounts:e,loading:n,refresh:r,create:async a=>{const s=await fe.createAccount(a);return await r(),s},update:(a,s)=>fe.updateAccount(a,s).then(r),remove:a=>fe.deleteAccount(a).then(r)}}const w0={gemini:"Gemini",mj:"MJ",gpt:"GPT",kling:"Kling","veo3-fast":"Veo3","veo3-fast-frames":"Veo3F",grok:"Grok"};function mv({account:e,isSelected:t,onClick:n}){const u=e.defaultFormat||"9:16";return c.jsxs("button",{onClick:n,className:`w-full text-left rounded-xl border p-4 transition-all cursor-pointer group
|
||
${t?"border-indigo-400 bg-indigo-50 shadow-sm":"border-zinc-200 bg-white hover:border-indigo-300 hover:shadow-md"}`,children:[c.jsxs("div",{className:"flex items-start justify-between mb-2",children:[c.jsx("h3",{className:"font-semibold text-sm text-zinc-800 truncate flex-1 mr-2",children:e.name}),c.jsx("span",{className:`text-[10px] font-mono px-1.5 py-0.5 rounded ${t?"bg-indigo-200 text-indigo-700":"bg-zinc-100 text-zinc-500"}`,children:u})]}),e.description&&c.jsx("p",{className:"text-xs text-zinc-500 line-clamp-2 mb-3",children:e.description}),c.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[c.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] px-1.5 py-0.5 rounded bg-blue-50 text-blue-600",children:[c.jsx(Mn,{size:10}),w0[e.imageModel]||e.imageModel]}),c.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] px-1.5 py-0.5 rounded bg-purple-50 text-purple-600",children:[c.jsx(Sg,{size:10}),w0[e.videoModel]||e.videoModel]}),e.ttsVoice&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-green-50 text-green-600",children:"TTS"})]})]})}function gv({account:e,onSave:t}){const[n,u]=k.useState({name:e.name||"",description:e.description||"",pipeline:e.pipeline||"image-video",defaultFormat:e.defaultFormat||"9:16",imageModel:e.imageModel||"gemini",videoModel:e.videoModel||"veo3-fast",batchSize:e.batchSize||30,ttsVoice:e.ttsVoice||"",ttsInstruction:e.ttsInstruction||""}),[r,o]=k.useState(!1),i=(a,s)=>{u(d=>({...d,[a]:s})),o(!1)},l=()=>{t(n),o(!0),setTimeout(()=>o(!1),2e3)};return c.jsxs("div",{className:"max-w-lg space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"名称"}),c.jsx(he,{value:n.name,onChange:a=>i("name",a.target.value),className:"mt-1 bg-zinc-50 border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"描述"}),c.jsx(he,{value:n.description,onChange:a=>i("description",a.target.value),placeholder:"账号描述...",className:"mt-1 bg-zinc-50 border-zinc-200"})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"画幅"}),c.jsxs("select",{value:n.defaultFormat,onChange:a=>i("defaultFormat",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"9:16",children:"9:16 竖屏"}),c.jsx("option",{value:"16:9",children:"16:9 横屏"}),c.jsx("option",{value:"1:1",children:"1:1 方形"}),c.jsx("option",{value:"4:3",children:"4:3"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"生图模型"}),c.jsxs("select",{value:n.imageModel,onChange:a=>i("imageModel",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"gemini",children:"Gemini"}),c.jsx("option",{value:"mj",children:"Midjourney"}),c.jsx("option",{value:"gpt",children:"GPT Image"}),c.jsx("option",{value:"kling",children:"Kling"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"视频模型"}),c.jsxs("select",{value:n.videoModel,onChange:a=>i("videoModel",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"veo3-fast",children:"Veo3 Fast"}),c.jsx("option",{value:"veo3-fast-frames",children:"Veo3 Frames"}),c.jsx("option",{value:"kling",children:"Kling"}),c.jsx("option",{value:"grok",children:"Grok"})]})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"Pipeline"}),c.jsxs("select",{value:n.pipeline,onChange:a=>i("pipeline",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"image-video",children:"图片+视频"}),c.jsx("option",{value:"single",children:"单图模式"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"批量数量"}),c.jsx(he,{type:"number",value:n.batchSize,onChange:a=>i("batchSize",parseInt(a.target.value)||30),className:"mt-1 bg-zinc-50 border-zinc-200"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"TTS 语音 ID"}),c.jsx(he,{value:n.ttsVoice,onChange:a=>i("ttsVoice",a.target.value),placeholder:"cosyvoice-xxx",className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"TTS 指令"}),c.jsx("textarea",{value:n.ttsInstruction,onChange:a=>i("ttsInstruction",a.target.value),rows:3,placeholder:"用沉稳有力的男性声音朗读...",className:"mt-1 w-full rounded-md border border-zinc-200 bg-zinc-50 px-3 py-2 text-sm resize-y"})]}),c.jsx(vt,{onClick:l,children:r?"已保存":"保存基本信息"})]})}var Qp={},be=ot&&ot.__assign||function(){return be=Object.assign||function(e){for(var t,n=1,u=arguments.length;n<u;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},be.apply(this,arguments)},xv=ot&&ot.__createBinding||(Object.create?function(e,t,n,u){u===void 0&&(u=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,u,r)}:function(e,t,n,u){u===void 0&&(u=n),e[u]=t[n]}),yv=ot&&ot.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),vv=ot&&ot.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&xv(t,e,n);return yv(t,e),t},bv=ot&&ot.__rest||function(e,t){var n={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&t.indexOf(u)<0&&(n[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,u=Object.getOwnPropertySymbols(e);r<u.length;r++)t.indexOf(u[r])<0&&Object.prototype.propertyIsEnumerable.call(e,u[r])&&(n[u[r]]=e[u[r]]);return n};Object.defineProperty(Qp,"__esModule",{value:!0});var et=vv(k),kv=89,lo=90,wv=77,_0=57,C0=219,E0=222,S0=192,A0=100,_v=3e3,Cv=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),al=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),_o="npm__react-simple-code-editor__textarea",Ev=`
|
||
/**
|
||
* Reset the text fill color so that placeholder is visible
|
||
*/
|
||
.`.concat(_o,`:empty {
|
||
-webkit-text-fill-color: inherit !important;
|
||
}
|
||
|
||
/**
|
||
* Hack to apply on some CSS on IE10 and IE11
|
||
*/
|
||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||
/**
|
||
* IE doesn't support '-webkit-text-fill-color'
|
||
* So we use 'color: transparent' to make the text transparent on IE
|
||
* Unlike other browsers, it doesn't affect caret color in IE
|
||
*/
|
||
.`).concat(_o,` {
|
||
color: transparent !important;
|
||
}
|
||
|
||
.`).concat(_o,`::selection {
|
||
background-color: #accef7 !important;
|
||
color: transparent !important;
|
||
}
|
||
}
|
||
`),Sv=et.forwardRef(function(t,n){var u=t.autoFocus,r=t.disabled,o=t.form,i=t.highlight,l=t.ignoreTabKey,a=l===void 0?!1:l,s=t.insertSpaces,d=s===void 0?!0:s,p=t.maxLength,m=t.minLength,y=t.name,g=t.onBlur,w=t.onClick,C=t.onFocus,x=t.onKeyDown,f=t.onKeyUp,h=t.onValueChange,v=t.padding,b=v===void 0?0:v,_=t.placeholder,E=t.preClassName,S=t.readOnly,F=t.required,N=t.style,L=t.tabSize,P=L===void 0?2:L,ue=t.textareaClassName,M=t.textareaId,O=t.value,Y=bv(t,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),q=et.useRef({stack:[],offset:-1}),A=et.useRef(null),z=et.useState(!0),T=z[0],$=z[1],W={paddingTop:typeof b=="object"?b.top:b,paddingRight:typeof b=="object"?b.right:b,paddingBottom:typeof b=="object"?b.bottom:b,paddingLeft:typeof b=="object"?b.left:b},wt=i(O),re=function(j,Q){return j.substring(0,Q).split(`
|
||
`)},Le=et.useCallback(function(j,Q){var B,H,pe;Q===void 0&&(Q=!1);var je=q.current,Pt=je.stack,Au=je.offset;if(Pt.length&&Au>-1){q.current.stack=Pt.slice(0,Au+1);var Fu=q.current.stack.length;if(Fu>A0){var $n=Fu-A0;q.current.stack=Pt.slice($n,Fu),q.current.offset=Math.max(q.current.offset-$n,0)}}var Ct=Date.now();if(Q){var Qt=q.current.stack[q.current.offset];if(Qt&&Ct-Qt.timestamp<_v){var Du=/[^a-z0-9]([a-z0-9]+)$/i,qe=(B=re(Qt.value,Qt.selectionStart).pop())===null||B===void 0?void 0:B.match(Du),zu=(H=re(j.value,j.selectionStart).pop())===null||H===void 0?void 0:H.match(Du);if(qe!=null&&qe[1]&&(!((pe=zu==null?void 0:zu[1])===null||pe===void 0)&&pe.startsWith(qe[1]))){q.current.stack[q.current.offset]=be(be({},j),{timestamp:Ct});return}}}q.current.stack.push(be(be({},j),{timestamp:Ct})),q.current.offset++},[]),Ne=et.useCallback(function(){var j=A.current;if(j){var Q=j.value,B=j.selectionStart,H=j.selectionEnd;Le({value:Q,selectionStart:B,selectionEnd:H})}},[Le]),Ve=function(j){var Q=A.current;Q&&(Q.value=j.value,Q.selectionStart=j.selectionStart,Q.selectionEnd=j.selectionEnd,h==null||h(j.value))},_t=function(j){var Q=A.current,B=q.current.stack[q.current.offset];B&&Q&&(q.current.stack[q.current.offset]=be(be({},B),{selectionStart:Q.selectionStart,selectionEnd:Q.selectionEnd})),Le(j),Ve(j)},Or=function(){var j=q.current,Q=j.stack,B=j.offset,H=Q[B-1];H&&(Ve(H),q.current.offset=Math.max(B-1,0))},Su=function(){var j=q.current,Q=j.stack,B=j.offset,H=Q[B+1];H&&(Ve(H),q.current.offset=Math.min(B+1,Q.length-1))},On=function(j){if(!(x&&(x(j),j.defaultPrevented))){j.key==="Escape"&&j.currentTarget.blur();var Q=j.currentTarget,B=Q.value,H=Q.selectionStart,pe=Q.selectionEnd,je=(d?" ":" ").repeat(P);if(j.key==="Tab"&&!a&&T)if(j.preventDefault(),j.shiftKey){var Pt=re(B,H),Au=Pt.length-1,Fu=re(B,pe).length-1,$n=B.split(`
|
||
`).map(function(Nu,Fs){return Fs>=Au&&Fs<=Fu&&Nu.startsWith(je)?Nu.substring(je.length):Nu}).join(`
|
||
`);if(B!==$n){var Ct=Pt[Au];_t({value:$n,selectionStart:Ct!=null&&Ct.startsWith(je)?H-je.length:H,selectionEnd:pe-(B.length-$n.length)})}}else if(H!==pe){var Pt=re(B,H),Qt=Pt.length-1,Du=re(B,pe).length-1,Ct=Pt[Qt];_t({value:B.split(`
|
||
`).map(function(Ds,zs){return zs>=Qt&&zs<=Du?je+Ds:Ds}).join(`
|
||
`),selectionStart:Ct&&/\S/.test(Ct)?H+je.length:H,selectionEnd:pe+je.length*(Du-Qt+1)})}else{var qe=H+je.length;_t({value:B.substring(0,H)+je+B.substring(pe),selectionStart:qe,selectionEnd:qe})}else if(j.key==="Backspace"){var zu=H!==pe,Yp=B.substring(0,H);if(Yp.endsWith(je)&&!zu){j.preventDefault();var qe=H-je.length;_t({value:B.substring(0,H-je.length)+B.substring(pe),selectionStart:qe,selectionEnd:qe})}}else if(j.key==="Enter"){if(H===pe){var _i=re(B,H).pop(),$r=_i==null?void 0:_i.match(/^\s+/);if($r!=null&&$r[0]){j.preventDefault();var As=`
|
||
`+$r[0],qe=H+As.length;_t({value:B.substring(0,H)+As+B.substring(pe),selectionStart:qe,selectionEnd:qe})}}}else if(j.keyCode===_0||j.keyCode===C0||j.keyCode===E0||j.keyCode===S0){var Mt=void 0;j.keyCode===_0&&j.shiftKey?Mt=["(",")"]:j.keyCode===C0?j.shiftKey?Mt=["{","}"]:Mt=["[","]"]:j.keyCode===E0?j.shiftKey?Mt=['"','"']:Mt=["'","'"]:j.keyCode===S0&&!j.shiftKey&&(Mt=["`","`"]),H!==pe&&Mt&&(j.preventDefault(),_t({value:B.substring(0,H)+Mt[0]+B.substring(H,pe)+Mt[1]+B.substring(pe),selectionStart:H,selectionEnd:pe+2}))}else(al?j.metaKey&&j.keyCode===lo:j.ctrlKey&&j.keyCode===lo)&&!j.shiftKey&&!j.altKey?(j.preventDefault(),Or()):(al?j.metaKey&&j.keyCode===lo&&j.shiftKey:Cv?j.ctrlKey&&j.keyCode===kv:j.ctrlKey&&j.keyCode===lo&&j.shiftKey)&&!j.altKey?(j.preventDefault(),Su()):j.keyCode===wv&&j.ctrlKey&&(!al||j.shiftKey)&&(j.preventDefault(),$(function(Nu){return!Nu}))}},wi=function(j){var Q=j.currentTarget,B=Q.value,H=Q.selectionStart,pe=Q.selectionEnd;Le({value:B,selectionStart:H,selectionEnd:pe},!0),h(B)};return et.useEffect(function(){Ne()},[Ne]),et.useImperativeHandle(n,function(){return{get session(){return{history:q.current}},set session(j){q.current=j.history}}},[]),et.createElement("div",be({},Y,{style:be(be({},Vu.container),N)}),et.createElement("pre",be({className:E,"aria-hidden":"true",style:be(be(be({},Vu.editor),Vu.highlight),W)},typeof wt=="string"?{dangerouslySetInnerHTML:{__html:wt+"<br />"}}:{children:wt})),et.createElement("textarea",{ref:function(j){return A.current=j},style:be(be(be({},Vu.editor),Vu.textarea),W),className:_o+(ue?" ".concat(ue):""),id:M,value:O,onChange:wi,onKeyDown:On,onClick:w,onKeyUp:f,onFocus:C,onBlur:g,disabled:r,form:o,maxLength:p,minLength:m,name:y,placeholder:_,readOnly:S,required:F,autoFocus:u,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),et.createElement("style",{dangerouslySetInnerHTML:{__html:Ev}}))}),Vu={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}},Av=Qp.default=Sv,Zp={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
||
* Prism: Lightweight, robust, elegant syntax highlighting
|
||
*
|
||
* @license MIT <https://opensource.org/licenses/MIT>
|
||
* @author Lea Verou <https://lea.verou.me>
|
||
* @namespace
|
||
* @public
|
||
*/var n=function(u){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},l={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function f(h){return h instanceof a?new a(h.type,f(h.content),h.alias):Array.isArray(h)?h.map(f):h.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(f){return Object.prototype.toString.call(f).slice(8,-1)},objId:function(f){return f.__id||Object.defineProperty(f,"__id",{value:++o}),f.__id},clone:function f(h,v){v=v||{};var b,_;switch(l.util.type(h)){case"Object":if(_=l.util.objId(h),v[_])return v[_];b={},v[_]=b;for(var E in h)h.hasOwnProperty(E)&&(b[E]=f(h[E],v));return b;case"Array":return _=l.util.objId(h),v[_]?v[_]:(b=[],v[_]=b,h.forEach(function(S,F){b[F]=f(S,v)}),b);default:return h}},getLanguage:function(f){for(;f;){var h=r.exec(f.className);if(h)return h[1].toLowerCase();f=f.parentElement}return"none"},setLanguage:function(f,h){f.className=f.className.replace(RegExp(r,"gi"),""),f.classList.add("language-"+h)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(b){var f=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(f){var h=document.getElementsByTagName("script");for(var v in h)if(h[v].src==f)return h[v]}return null}},isActive:function(f,h,v){for(var b="no-"+h;f;){var _=f.classList;if(_.contains(h))return!0;if(_.contains(b))return!1;f=f.parentElement}return!!v}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(f,h){var v=l.util.clone(l.languages[f]);for(var b in h)v[b]=h[b];return v},insertBefore:function(f,h,v,b){b=b||l.languages;var _=b[f],E={};for(var S in _)if(_.hasOwnProperty(S)){if(S==h)for(var F in v)v.hasOwnProperty(F)&&(E[F]=v[F]);v.hasOwnProperty(S)||(E[S]=_[S])}var N=b[f];return b[f]=E,l.languages.DFS(l.languages,function(L,P){P===N&&L!=f&&(this[L]=E)}),E},DFS:function f(h,v,b,_){_=_||{};var E=l.util.objId;for(var S in h)if(h.hasOwnProperty(S)){v.call(h,S,h[S],b||S);var F=h[S],N=l.util.type(F);N==="Object"&&!_[E(F)]?(_[E(F)]=!0,f(F,v,null,_)):N==="Array"&&!_[E(F)]&&(_[E(F)]=!0,f(F,v,S,_))}}},plugins:{},highlightAll:function(f,h){l.highlightAllUnder(document,f,h)},highlightAllUnder:function(f,h,v){var b={callback:v,container:f,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),l.hooks.run("before-all-elements-highlight",b);for(var _=0,E;E=b.elements[_++];)l.highlightElement(E,h===!0,b.callback)},highlightElement:function(f,h,v){var b=l.util.getLanguage(f),_=l.languages[b];l.util.setLanguage(f,b);var E=f.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,b);var S=f.textContent,F={element:f,language:b,grammar:_,code:S};function N(P){F.highlightedCode=P,l.hooks.run("before-insert",F),F.element.innerHTML=F.highlightedCode,l.hooks.run("after-highlight",F),l.hooks.run("complete",F),v&&v.call(F.element)}if(l.hooks.run("before-sanity-check",F),E=F.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!F.code){l.hooks.run("complete",F),v&&v.call(F.element);return}if(l.hooks.run("before-highlight",F),!F.grammar){N(l.util.encode(F.code));return}if(h&&u.Worker){var L=new Worker(l.filename);L.onmessage=function(P){N(P.data)},L.postMessage(JSON.stringify({language:F.language,code:F.code,immediateClose:!0}))}else N(l.highlight(F.code,F.grammar,F.language))},highlight:function(f,h,v){var b={code:f,grammar:h,language:v};if(l.hooks.run("before-tokenize",b),!b.grammar)throw new Error('The language "'+b.language+'" has no grammar.');return b.tokens=l.tokenize(b.code,b.grammar),l.hooks.run("after-tokenize",b),a.stringify(l.util.encode(b.tokens),b.language)},tokenize:function(f,h){var v=h.rest;if(v){for(var b in v)h[b]=v[b];delete h.rest}var _=new p;return m(_,_.head,f),d(f,_,h,_.head,0),g(_)},hooks:{all:{},add:function(f,h){var v=l.hooks.all;v[f]=v[f]||[],v[f].push(h)},run:function(f,h){var v=l.hooks.all[f];if(!(!v||!v.length))for(var b=0,_;_=v[b++];)_(h)}},Token:a};u.Prism=l;function a(f,h,v,b){this.type=f,this.content=h,this.alias=v,this.length=(b||"").length|0}a.stringify=function f(h,v){if(typeof h=="string")return h;if(Array.isArray(h)){var b="";return h.forEach(function(N){b+=f(N,v)}),b}var _={type:h.type,content:f(h.content,v),tag:"span",classes:["token",h.type],attributes:{},language:v},E=h.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(_.classes,E):_.classes.push(E)),l.hooks.run("wrap",_);var S="";for(var F in _.attributes)S+=" "+F+'="'+(_.attributes[F]||"").replace(/"/g,""")+'"';return"<"+_.tag+' class="'+_.classes.join(" ")+'"'+S+">"+_.content+"</"+_.tag+">"};function s(f,h,v,b){f.lastIndex=h;var _=f.exec(v);if(_&&b&&_[1]){var E=_[1].length;_.index+=E,_[0]=_[0].slice(E)}return _}function d(f,h,v,b,_,E){for(var S in v)if(!(!v.hasOwnProperty(S)||!v[S])){var F=v[S];F=Array.isArray(F)?F:[F];for(var N=0;N<F.length;++N){if(E&&E.cause==S+","+N)return;var L=F[N],P=L.inside,ue=!!L.lookbehind,M=!!L.greedy,O=L.alias;if(M&&!L.pattern.global){var Y=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,Y+"g")}for(var q=L.pattern||L,A=b.next,z=_;A!==h.tail&&!(E&&z>=E.reach);z+=A.value.length,A=A.next){var T=A.value;if(h.length>f.length)return;if(!(T instanceof a)){var $=1,W;if(M){if(W=s(q,z,f,ue),!W||W.index>=f.length)break;var Ne=W.index,wt=W.index+W[0].length,re=z;for(re+=A.value.length;Ne>=re;)A=A.next,re+=A.value.length;if(re-=A.value.length,z=re,A.value instanceof a)continue;for(var Le=A;Le!==h.tail&&(re<wt||typeof Le.value=="string");Le=Le.next)$++,re+=Le.value.length;$--,T=f.slice(z,re),W.index-=z}else if(W=s(q,0,T,ue),!W)continue;var Ne=W.index,Ve=W[0],_t=T.slice(0,Ne),Or=T.slice(Ne+Ve.length),Su=z+T.length;E&&Su>E.reach&&(E.reach=Su);var On=A.prev;_t&&(On=m(h,On,_t),z+=_t.length),y(h,On,$);var wi=new a(S,P?l.tokenize(Ve,P):Ve,O,Ve);if(A=m(h,On,wi),Or&&m(h,A,Or),$>1){var j={cause:S+","+N,reach:Su};d(f,h,v,A.prev,z,j),E&&j.reach>E.reach&&(E.reach=j.reach)}}}}}}function p(){var f={value:null,prev:null,next:null},h={value:null,prev:f,next:null};f.next=h,this.head=f,this.tail=h,this.length=0}function m(f,h,v){var b=h.next,_={value:v,prev:h,next:b};return h.next=_,b.prev=_,f.length++,_}function y(f,h,v){for(var b=h.next,_=0;_<v&&b!==f.tail;_++)b=b.next;h.next=b,b.prev=h,f.length-=_}function g(f){for(var h=[],v=f.head.next;v!==f.tail;)h.push(v.value),v=v.next;return h}if(!u.document)return u.addEventListener&&(l.disableWorkerMessageHandler||u.addEventListener("message",function(f){var h=JSON.parse(f.data),v=h.language,b=h.code,_=h.immediateClose;u.postMessage(l.highlight(b,l.languages[v],v)),_&&u.close()},!1)),l;var w=l.util.currentScript();w&&(l.filename=w.src,w.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var x=document.readyState;x==="loading"||x==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(t);e.exports&&(e.exports=n),typeof ot<"u"&&(ot.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,o){var i={};i["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};l["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(u,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(u){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var o=u.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var u="Loading…",r=function(w,C){return"✖ Error "+w+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",a="loading",s="loaded",d="failed",p="pre[data-src]:not(["+l+'="'+s+'"]):not(['+l+'="'+a+'"])';function m(w,C,x){var f=new XMLHttpRequest;f.open("GET",w,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status<400&&f.responseText?C(f.responseText):f.status>=400?x(r(f.status,f.statusText)):x(o))},f.send(null)}function y(w){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(C){var x=Number(C[1]),f=C[2],h=C[3];return f?h?[x,Number(h)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+p}),n.hooks.add("before-sanity-check",function(w){var C=w.element;if(C.matches(p)){w.code="",C.setAttribute(l,a);var x=C.appendChild(document.createElement("CODE"));x.textContent=u;var f=C.getAttribute("data-src"),h=w.language;if(h==="none"){var v=(/\.(\w+)$/.exec(f)||[,"none"])[1];h=i[v]||v}n.util.setLanguage(x,h),n.util.setLanguage(C,h);var b=n.plugins.autoloader;b&&b.loadLanguages(h),m(f,function(_){C.setAttribute(l,s);var E=y(C.getAttribute("data-range"));if(E){var S=_.split(/\r\n?|\n/g),F=E[0],N=E[1]==null?S.length:E[1];F<0&&(F+=S.length),F=Math.max(0,Math.min(F-1,S.length)),N<0&&(N+=S.length),N=Math.max(0,Math.min(N,S.length)),_=S.slice(F,N).join(`
|
||
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(F+1))}x.textContent=_,n.highlightElement(x)},function(_){C.setAttribute(l,d),x.textContent=_})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(p),f=0,h;h=x[f++];)n.highlightElement(h)}};var g=!1;n.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Zp);var F0=Zp.exports;(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var u=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return u}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+o+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+o+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(u),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(u),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(e.languages.markdown[d].inside.content.inside[p]=e.languages.markdown[p])})}),e.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function p(m){if(!(!m||typeof m=="string"))for(var y=0,g=m.length;y<g;y++){var w=m[y];if(w.type!=="code"){p(w.content);continue}var C=w.content[1],x=w.content[3];if(C&&x&&C.type==="code-language"&&x.type==="code-block"&&typeof C.content=="string"){var f=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");f=(/[a-z][\w-]*/i.exec(f)||[""])[0].toLowerCase();var h="language-"+f;x.alias?typeof x.alias=="string"?x.alias=[x.alias,h]:x.alias.push(h):x.alias=[h]}}}p(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",m=0,y=d.classes.length;m<y;m++){var g=d.classes[m],w=/language-(.+)/.exec(g);if(w){p=w[1];break}}var C=e.languages[p];if(C)d.content=e.highlight(s(d.content),C,p);else if(p&&p!=="none"&&e.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=x,e.plugins.autoloader.loadLanguages(p,function(){var f=document.getElementById(x);f&&(f.innerHTML=e.highlight(f.textContent,e.languages[p],p))})}}});var i=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function s(d){var p=d.replace(i,"");return p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,y){if(y=y.toLowerCase(),y[0]==="#"){var g;return y[1]==="x"?g=parseInt(y.slice(2),16):g=Number(y.slice(1)),a(g)}else{var w=l[y];return w||m}}),p}e.languages.md=e.languages.markdown})(Prism);(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(l,a){a=(a||"").replace(/m/g,"")+"m";var s=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<value>>/g,function(){return l});return RegExp(s,a)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return u})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<key>>/g,function(){return"(?:"+r+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);function Fv(){const[e,t]=k.useState(""),[n,u]=k.useState(""),[r,o]=k.useState(!1),i=k.useCallback(async(a,s)=>{o(!0);try{const d=await fe.getPrompt(a,s);t(d.content),u(d.path)}catch{t(""),u("")}o(!1)},[]),l=k.useCallback(async(a,s,d)=>{await fe.savePrompt(a,s,d),t(d)},[]);return{content:e,path:n,loading:r,load:i,save:l,setContent:t}}const Dv=[{type:"storyboard",label:"分镜"},{type:"image",label:"图片提示词"},{type:"video",label:"视频提示词"}],zv={fontFamily:'"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace',fontSize:13,lineHeight:1.6,minHeight:"100%"};function Nv({accountId:e}={}){const{accounts:t}=Gp(),[n,u]=k.useState(""),[r,o]=k.useState("storyboard"),{content:i,path:l,loading:a,load:s,save:d,setContent:p}=Fv();k.useEffect(()=>{e?u(e):t.length>0&&!n&&u(t[0].id)},[e,t]),k.useEffect(()=>{n&&s(n,r)},[n,r]);const m=k.useCallback(y=>{try{return F0.highlight(y,F0.languages.markdown,"markdown")}catch{return y}},[]);return c.jsxs("div",{className:"flex h-full",children:[c.jsxs("div",{className:"w-48 border-r border-zinc-200 p-3 space-y-3 bg-zinc-50",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"账户"}),c.jsx("select",{value:n,onChange:y=>u(y.target.value),className:"mt-1 w-full h-9 rounded-md border border-zinc-200 bg-white px-2 text-sm text-zinc-700",children:t.map(y=>c.jsx("option",{value:y.id,children:y.name},y.id))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"模板"}),c.jsx("div",{className:"mt-1 space-y-0.5",children:Dv.map(({type:y,label:g})=>c.jsx("button",{onClick:()=>o(y),className:`w-full text-left px-2 py-1.5 rounded text-sm transition-colors ${r===y?"bg-indigo-50 text-indigo-700 font-medium":"text-zinc-500 hover:text-zinc-700 hover:bg-white"}`,children:g},y))})]})]}),c.jsxs("div",{className:"flex-1 flex flex-col bg-white",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-zinc-200",children:[c.jsx("span",{className:"text-xs text-zinc-400 font-mono",children:l||"选择账户和模板"}),c.jsx(vt,{size:"sm",onClick:()=>d(n,r,i),disabled:!n||a,className:"text-xs",children:a?"加载中...":"保存"})]}),c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsx(Av,{value:i,onValueChange:p,highlight:m,padding:16,style:zv,className:"min-h-full bg-white",textareaClassName:"outline-none"})})]})]})}function jv({accountId:e}){return c.jsx(Nv,{accountId:e})}const Rv={effects:[],filter:"",subtitleStyle:{fontSize:24,color:"#FFFFFF",highlightColor:"#FF6B35",bold:!0,transformY:-380,inAnimation:"淡入",outAnimation:"淡出"},defaultBGM:""};function Tv({account:e,onSave:t}){const n=e.capcut||Rv,[u,r]=k.useState((n.effects||[]).join(", ")),[o,i]=k.useState(n.filter||""),[l,a]=k.useState(n.subtitleStyle||{}),[s,d]=k.useState(n.defaultBGM||""),[p,m]=k.useState(!1),y=()=>{t({capcut:{...n,effects:u.split(",").map(g=>g.trim()).filter(Boolean),filter:o,subtitleStyle:l,defaultBGM:s}}),m(!0),setTimeout(()=>m(!1),2e3)};return c.jsxs("div",{className:"max-w-lg space-y-5",children:[c.jsxs("fieldset",{className:"space-y-2",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"特效"}),c.jsx(he,{value:u,onChange:g=>r(g.target.value),placeholder:"特效名1, 特效名2",className:"bg-zinc-50 border-zinc-200 text-xs"}),c.jsx("p",{className:"text-[10px] text-zinc-400",children:"多个特效用逗号分隔"})]}),c.jsxs("fieldset",{className:"space-y-2",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"滤镜"}),c.jsx(he,{value:o,onChange:g=>i(g.target.value),placeholder:"质感暗调:30",className:"bg-zinc-50 border-zinc-200 text-xs font-mono"})]}),c.jsxs("fieldset",{className:"space-y-3",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"字幕样式"}),c.jsxs("div",{className:"bg-zinc-50 rounded-lg border border-zinc-200 p-3 space-y-2",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"字号"}),c.jsx(he,{type:"number",value:l.fontSize||"",onChange:g=>a({...l,fontSize:parseInt(g.target.value)||void 0}),className:"h-8 text-xs bg-white border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"颜色"}),c.jsxs("div",{className:"flex gap-1 items-center",children:[c.jsx("input",{type:"color",value:l.color||"#FFFFFF",onChange:g=>a({...l,color:g.target.value}),className:"w-8 h-8 rounded border border-zinc-200 cursor-pointer"}),c.jsx(he,{value:l.color||"",onChange:g=>a({...l,color:g.target.value}),className:"h-8 text-xs bg-white border-zinc-200 font-mono flex-1"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"高亮色"}),c.jsxs("div",{className:"flex gap-1 items-center",children:[c.jsx("input",{type:"color",value:l.highlightColor||"#FF6B35",onChange:g=>a({...l,highlightColor:g.target.value}),className:"w-8 h-8 rounded border border-zinc-200 cursor-pointer"}),c.jsx(he,{value:l.highlightColor||"",onChange:g=>a({...l,highlightColor:g.target.value}),className:"h-8 text-xs bg-white border-zinc-200 font-mono flex-1"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"Y偏移"}),c.jsx(he,{type:"number",value:l.transformY||"",onChange:g=>a({...l,transformY:parseInt(g.target.value)||void 0}),className:"h-8 text-xs bg-white border-zinc-200"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"入动画"}),c.jsx(he,{value:l.inAnimation||"",onChange:g=>a({...l,inAnimation:g.target.value}),placeholder:"淡入",className:"h-8 text-xs bg-white border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"出动画"}),c.jsx(he,{value:l.outAnimation||"",onChange:g=>a({...l,outAnimation:g.target.value}),placeholder:"淡出",className:"h-8 text-xs bg-white border-zinc-200"})]})]}),c.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600",children:[c.jsx("input",{type:"checkbox",checked:l.bold||!1,onChange:g=>a({...l,bold:g.target.checked})}),"粗体"]})]})]}),c.jsxs("fieldset",{className:"space-y-2",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"背景音乐"}),c.jsx(he,{value:s,onChange:g=>d(g.target.value),placeholder:"BGM URL",className:"bg-zinc-50 border-zinc-200 text-xs font-mono"})]}),c.jsx(vt,{onClick:y,children:p?"已保存":"保存 CapCut 配置"})]})}function Pv({account:e,onSave:t}){const n=e.references||[],[u,r]=k.useState(!1),o=k.useRef(null),i=async a=>{var d;const s=(d=a.target.files)==null?void 0:d[0];if(s){r(!0);try{const p=new FormData;p.append("file",s),await fetch(`/api/accounts/${e.id}/references/upload`,{method:"POST",body:p});const m=await fe.getAccount(e.id);t({references:m.references})}catch(p){alert("上传失败: "+p.message)}r(!1),o.current&&(o.current.value="")}},l=async a=>{if(confirm("确定删除这张参考图?"))try{await fetch(`/api/accounts/${e.id}/references/${a}`,{method:"DELETE"});const s=await fe.getAccount(e.id);t({references:s.references})}catch(s){alert("删除失败: "+s.message)}};return c.jsxs("div",{className:"max-w-lg space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("input",{ref:o,type:"file",accept:"image/*",onChange:i,className:"hidden"}),c.jsxs(vt,{variant:"outline",size:"sm",onClick:()=>{var a;return(a=o.current)==null?void 0:a.click()},disabled:u,children:[c.jsx(Cg,{size:14,className:"mr-1"}),u?"上传中...":"添加参考图"]}),c.jsxs("span",{className:"text-xs text-zinc-400",children:[n.length," 张参考图"]})]}),n.length>0?c.jsx("div",{className:"grid grid-cols-4 gap-2",children:n.map((a,s)=>c.jsxs("div",{className:"group relative aspect-square bg-zinc-100 rounded-lg overflow-hidden border border-zinc-200",children:[a.file?c.jsx("img",{src:`/api/accounts/${e.id}/references/${encodeURIComponent(a.file.split("/").pop()||"")}`,alt:"",className:"w-full h-full object-cover"}):a.url?c.jsx("img",{src:a.url,alt:"",className:"w-full h-full object-cover"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx(Mn,{size:20,className:"text-zinc-400"})}),c.jsx("button",{onClick:()=>l(s),className:"absolute top-1 right-1 p-1 rounded bg-white/80 opacity-0 group-hover:opacity-100 transition-opacity shadow-sm",children:c.jsx(Pr,{size:11,className:"text-red-500"})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/30 to-transparent p-1",children:c.jsx("span",{className:"text-[9px] text-white truncate block",children:a.file})})]},s))}):c.jsxs("div",{className:"text-center py-8 text-zinc-400",children:[c.jsx(Mn,{size:28,className:"mx-auto mb-2 opacity-40"}),c.jsx("p",{className:"text-xs",children:"暂无参考图"}),c.jsx("p",{className:"text-[10px] mt-1",children:"点击上方按钮上传参考图"})]}),e.styles&&Object.keys(e.styles).length>0&&c.jsxs("div",{className:"mt-4",children:[c.jsx("h4",{className:"text-xs font-semibold text-zinc-600 mb-2",children:"风格预设"}),c.jsx("div",{className:"space-y-1",children:Object.entries(e.styles).map(([a,s])=>{var d;return c.jsxs("div",{className:"flex items-center justify-between px-3 py-2 bg-zinc-50 rounded-lg text-xs",children:[c.jsx("span",{className:"font-medium text-zinc-700",children:a}),c.jsxs("span",{className:"text-zinc-400",children:[((d=s.references)==null?void 0:d.length)||0," 张"]})]},a)})})]})]})}const Mv=[{key:"basic",label:"基本信息"},{key:"prompts",label:"提示词"},{key:"capcut",label:"CapCut"},{key:"references",label:"参考图"}];function Lv({account:e,onSave:t,onDelete:n,onBack:u}){const[r,o]=k.useState("basic");return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center justify-between px-6 py-3 border-b border-zinc-200 bg-white flex-shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:u,className:"p-1 rounded hover:bg-zinc-100 text-zinc-500 hover:text-zinc-700 transition-colors",children:c.jsx(lg,{size:18})}),c.jsx("h2",{className:"text-base font-semibold text-zinc-800",children:e.name}),c.jsx("span",{className:"text-xs text-zinc-400",children:e.id})]}),c.jsxs(vt,{size:"sm",variant:"ghost",className:"text-red-500 hover:bg-red-50 hover:text-red-600",onClick:()=>{confirm(`确定删除账户「${e.name}」?`)&&n()},children:[c.jsx(Pr,{size:14,className:"mr-1"}),"删除"]})]}),c.jsx("div",{className:"flex gap-0 border-b border-zinc-200 px-6 bg-white flex-shrink-0",children:Mv.map(({key:i,label:l})=>c.jsx("button",{onClick:()=>o(i),className:`px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px
|
||
${r===i?"border-indigo-600 text-indigo-600":"border-transparent text-zinc-500 hover:text-zinc-700"}`,children:l},i))}),c.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[r==="basic"&&c.jsx(gv,{account:e,onSave:t}),r==="prompts"&&c.jsx(jv,{accountId:e.id}),r==="capcut"&&c.jsx(Tv,{account:e,onSave:t}),r==="references"&&c.jsx(Pv,{account:e,onSave:t})]})]})}function D0(){const{accountId:e}=tp(),t=Rr(),{accounts:n,create:u,update:r,remove:o}=Gp(),[i,l]=k.useState(""),a=e&&n.find(p=>p.id===e)||null,s=n.filter(p=>{if(!i)return!0;const m=i.toLowerCase();return p.name.toLowerCase().includes(m)||(p.description||"").toLowerCase().includes(m)}),d=async()=>{const p=`新账号 ${n.length+1}`,m=await u({name:p,pipeline:"image-video",defaultFormat:"9:16",imageModel:"gemini",videoModel:"veo3-fast"});m!=null&&m.id&&t(`/accounts/${m.id}`)};return a?c.jsx(Lv,{account:a,onSave:p=>r(a.id,p),onDelete:()=>o(a.id).then(()=>t("/accounts")),onBack:()=>t("/accounts")}):c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-zinc-200 bg-white flex-shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("h1",{className:"text-base font-semibold text-zinc-800",children:"账号管理"}),c.jsxs("div",{className:"relative",children:[c.jsx(pp,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-400"}),c.jsx(he,{value:i,onChange:p=>l(p.target.value),placeholder:"搜索账号...",className:"pl-8 h-8 w-48 text-xs bg-zinc-50 border-zinc-200"})]})]}),c.jsxs("button",{onClick:d,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-white bg-indigo-600 rounded-lg hover:bg-indigo-700 transition-colors",children:[c.jsx(fp,{size:14}),"新建账号"]})]}),c.jsx("div",{className:"flex-1 overflow-auto p-6",children:s.length>0?c.jsx("div",{className:"grid grid-cols-3 gap-4",children:s.map(p=>c.jsx(mv,{account:p,isSelected:p.id===e,onClick:()=>t(`/accounts/${p.id}`)},p.id))}):c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-zinc-400",children:[c.jsx("p",{className:"text-sm",children:i?"没有匹配的账号":"暂无账号"}),!i&&c.jsx("button",{onClick:d,className:"mt-2 text-xs text-indigo-600 hover:underline",children:"创建第一个账号"})]})})]})}function Iv(e){const[t,n]=k.useState([]),[u,r]=k.useState(!0),o=k.useCallback(()=>{r(!0),fe.listAssets(e).then(n).finally(()=>r(!1))},[e==null?void 0:e.accountId,e==null?void 0:e.type]);return k.useEffect(()=>{o()},[o]),{assets:t,loading:u,refresh:o,remove:l=>fe.deleteAsset(l).then(o)}}function Ov({title:e,subtitle:t,assets:n,onPreview:u,onDelete:r}){const o=n.filter(l=>l.type==="image"),i=n.filter(l=>l.type==="video");return c.jsxs("div",{className:"mb-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("h3",{className:"text-sm font-semibold text-zinc-700 truncate",children:e}),t&&c.jsx("span",{className:"text-[10px] text-zinc-400",children:t}),c.jsxs("div",{className:"flex items-center gap-2 ml-auto text-[10px] text-zinc-400",children:[o.length>0&&c.jsxs("span",{className:"inline-flex items-center gap-0.5",children:[c.jsx(Mn,{size:10})," ",o.length]}),i.length>0&&c.jsxs("span",{className:"inline-flex items-center gap-0.5",children:[c.jsx(ra,{size:10})," ",i.length]})]})]}),c.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:n.map(l=>c.jsxs("div",{className:"group relative flex-shrink-0 w-24 h-24 bg-zinc-100 rounded-lg overflow-hidden cursor-pointer border border-zinc-200 hover:border-indigo-300 hover:shadow-sm transition-all",onClick:()=>u(l),children:[l.type==="image"?c.jsx("img",{src:`/api/assets/file?path=${encodeURIComponent(l.file_path)}`,alt:"",className:"w-full h-full object-cover",loading:"lazy"}):c.jsxs("div",{className:"w-full h-full flex items-center justify-center bg-zinc-800",children:[c.jsx(ra,{size:20,className:"text-zinc-400"}),c.jsx("video",{src:`/api/assets/file?path=${encodeURIComponent(l.file_path)}`,className:"absolute inset-0 w-full h-full object-cover",muted:!0,preload:"none"})]}),c.jsx("button",{onClick:a=>{a.stopPropagation(),confirm("确定删除这个资产?")&&r(l.id)},className:"absolute top-1 right-1 p-0.5 rounded bg-white/80 opacity-0 group-hover:opacity-100 transition-opacity shadow-sm",children:c.jsx(Pr,{size:10,className:"text-red-500"})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/40 to-transparent px-1 py-0.5",children:c.jsxs("span",{className:"text-[8px] text-white",children:[l.type==="image"?"IMG":"VID"," #",l.shot_index??"?"]})})]},l.id))})]})}function $v({asset:e,allAssets:t,onClose:n,onNavigate:u}){const r=t.findIndex(d=>d.id===e.id),o=k.useCallback(()=>{r>0&&u(t[r-1])},[r,t,u]),i=k.useCallback(()=>{r<t.length-1&&u(t[r+1])},[r,t,u]),l=k.useCallback(d=>{d.key==="Escape"&&n(),d.key==="ArrowLeft"&&o(),d.key==="ArrowRight"&&i()},[n,o,i]);k.useEffect(()=>(document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)),[l]);const a=r>0,s=r<t.length-1;return c.jsxs("div",{className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center",onClick:n,children:[c.jsx("button",{onClick:n,className:"absolute top-4 right-4 p-2 rounded-full bg-zinc-800 hover:bg-zinc-700 text-white z-10",children:c.jsx(gs,{size:20})}),a&&c.jsx("button",{onClick:d=>{d.stopPropagation(),o()},className:"absolute left-4 p-2 rounded-full bg-zinc-800/80 hover:bg-zinc-700 text-white z-10",children:c.jsx(fg,{size:24})}),s&&c.jsx("button",{onClick:d=>{d.stopPropagation(),i()},className:"absolute right-4 p-2 rounded-full bg-zinc-800/80 hover:bg-zinc-700 text-white z-10",children:c.jsx(dp,{size:24})}),c.jsx("div",{className:"max-w-[90vw] max-h-[90vh]",onClick:d=>d.stopPropagation(),children:e.type==="image"?c.jsx("img",{src:`/api/assets/file?path=${encodeURIComponent(e.file_path)}`,alt:"",className:"max-w-full max-h-[90vh] object-contain rounded-lg"}):c.jsx("video",{src:`/api/assets/file?path=${encodeURIComponent(e.file_path)}`,controls:!0,autoPlay:!0,className:"max-w-full max-h-[90vh] rounded-lg"})}),t.length>1&&c.jsxs("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-xs text-zinc-400 bg-zinc-900/80 px-3 py-1 rounded-full",children:[r+1," / ",t.length]})]})}function Bv(){const[e,t]=k.useState(""),[n,u]=k.useState("all"),[r,o]=k.useState([]),[i,l]=k.useState([]),[a,s]=k.useState(null),{assets:d,loading:p,remove:m}=Iv({accountId:e||void 0});k.useEffect(()=>{fetch("/api/accounts").then(_=>_.json()).then(o).catch(()=>{}),fetch("/api/assets/manifests").then(_=>_.json()).then(l).catch(()=>{})},[]);const y=k.useMemo(()=>n==="all"?d:d.filter(_=>_.type===n),[d,n]),g=k.useMemo(()=>{const _=new Map;for(const E of y){const S=E.manifest_path||"ungrouped";_.has(S)||_.set(S,[]),_.get(S).push(E)}return _},[y]),w=d.filter(_=>_.type==="image").length,C=d.filter(_=>_.type==="video").length,x=async()=>{await fetch("/api/assets/scan",{method:"POST"}),window.location.reload()},f=_=>{const E=_.replace(/\\/g,"/").split("/");return E.length>=2?E[E.length-2]:_},h=_=>{const E=i.find(N=>N.manifest_path===_);if(!E)return"";const S=[];E.image_count&&S.push(`${E.image_count} 图`),E.video_count&&S.push(`${E.video_count} 视频`);const F=r.find(N=>N.id===E.account_id);return F&&S.push(F.name),S.join(" · ")},v=k.useMemo(()=>e?[...g.entries()].filter(([_])=>{if(_==="ungrouped")return!0;const E=i.find(S=>S.manifest_path===_);return(E==null?void 0:E.account_id)===e}):[...g.entries()],[g,i,e]),b=[{key:"all",label:"全部",icon:oa,count:d.length},{key:"image",label:"图片",icon:Mn,count:w},{key:"video",label:"视频",icon:ra,count:C}];return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-zinc-200 bg-white flex-shrink-0",children:[c.jsx("div",{className:"flex rounded-lg border border-zinc-200 overflow-hidden",children:b.map(({key:_,label:E,icon:S,count:F})=>c.jsxs("button",{onClick:()=>u(_),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium transition-colors
|
||
${n===_?"bg-indigo-50 text-indigo-700 border-r border-zinc-200 last:border-r-0":"bg-white text-zinc-500 hover:bg-zinc-50 border-r border-zinc-200 last:border-r-0"}`,children:[c.jsx(S,{size:13}),E,c.jsx("span",{className:`text-[10px] px-1 rounded-full ${n===_?"bg-indigo-100 text-indigo-600":"bg-zinc-100 text-zinc-400"}`,children:F})]},_))}),c.jsxs("select",{value:e,onChange:_=>t(_.target.value),className:"h-8 rounded-md border border-zinc-200 bg-zinc-50 px-2 text-xs",children:[c.jsx("option",{value:"",children:"全部账号"}),r.map(_=>c.jsx("option",{value:_.id,children:_.name},_.id))]}),c.jsx("div",{className:"flex-1"}),c.jsxs(vt,{size:"sm",variant:"outline",className:"h-8 text-xs",onClick:x,children:[c.jsx(ms,{size:12,className:"mr-1"}),"扫描"]})]}),c.jsx("div",{className:"flex-1 overflow-auto p-4",children:p?c.jsx("p",{className:"text-zinc-400 text-sm text-center mt-8",children:"加载中..."}):v.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center mt-16 text-zinc-400",children:[c.jsx(oa,{size:28,className:"mb-2 opacity-40"}),c.jsx("p",{className:"text-sm",children:n==="all"?"暂无资产":`暂无${n==="image"?"图片":"视频"}`}),c.jsx("p",{className:"text-xs mt-1",children:'点击"扫描"从 output 目录导入'})]}):v.map(([_,E])=>c.jsx(Ov,{title:f(_),subtitle:h(_),assets:E,onPreview:s,onDelete:m},_))}),a&&c.jsx($v,{asset:a,allAssets:y,onClose:()=>s(null),onNavigate:s})]})}const Uv=[{title:"CapCut / 剪映",fields:[{key:"jianyingDraftPath",label:"剪映草稿路径",placeholder:"C:/Users/.../com.lveditor.draft"},{key:"capcutMateDir",label:"CapCut Mate 目录",placeholder:"C:/Users/.../capcut-mate"},{key:"capcutMateApiBase",label:"CapCut Mate API",placeholder:"http://localhost:30000"}]},{title:"Gemini 生图",fields:[{key:"geminiApiBaseUrl",label:"API Base URL",placeholder:"https://generativelanguage.googleapis.com"},{key:"geminiApiKey",label:"API Key",type:"password"},{key:"geminiModel",label:"模型",placeholder:"gemini-3.1-flash-image-preview"}]},{title:"Midjourney",fields:[{key:"mjApiBaseUrl",label:"API Base URL"},{key:"mjApiKey",label:"API Key",type:"password"}]},{title:"Veo 视频生成",fields:[{key:"veoApiBaseUrl",label:"API Base URL"},{key:"veoApiKey",label:"API Key",type:"password"},{key:"veoModel",label:"模型",placeholder:"veo3-fast-frames"},{key:"veoEnhancePrompt",label:"增强提示词",type:"toggle"},{key:"veoEnableUpsample",label:"启用 Upsample",type:"toggle"}]},{title:"Grok 视频生成",fields:[{key:"grokApiBaseUrl",label:"API Base URL"},{key:"grokApiKey",label:"API Key",type:"password"},{key:"grokModel",label:"模型",placeholder:"grok-video-3"}]},{title:"GPT Image",fields:[{key:"gptImageApiBaseUrl",label:"API Base URL"},{key:"gptImageApiKey",label:"API Key",type:"password"},{key:"gptImageModel",label:"模型",placeholder:"gpt-image-2"}]},{title:"Kling 可灵",fields:[{key:"kelingApiBaseUrl",label:"API Base URL",placeholder:"https://api-beijing.klingai.com"},{key:"kelingApiKey",label:"API Key",type:"password"},{key:"kelingSecretAccessKey",label:"Secret Key",type:"password"},{key:"kelingModel",label:"模型",placeholder:"kling-v2-5-turbo"}]},{title:"OSS 存储",fields:[{key:"ossRegion",label:"Region",placeholder:"oss-cn-hangzhou"},{key:"ossAccessKeyId",label:"Access Key ID"},{key:"ossAccessKeySecret",label:"Access Key Secret",type:"password"},{key:"ossBucket",label:"Bucket",placeholder:"my-bucket"},{key:"ossFolder",label:"目录前缀",placeholder:"tmp/"},{key:"ossExpires",label:"链接有效期(秒)",placeholder:"31536000"}]},{title:"TTS 语音合成",fields:[{key:"ttsApiBaseUrl",label:"API Base URL",placeholder:"https://dashscope.aliyuncs.com/api/v1"},{key:"ttsApiKey",label:"API Key",type:"password"},{key:"ttsModel",label:"模型",placeholder:"cosyvoice-v3.5-plus"},{key:"ttsVoice",label:"音色 ID",placeholder:"cosyvoice-v3.5-plus-bailian-xxx"},{key:"ttsLanguage",label:"语言",placeholder:"Chinese"}]}];function Hv(){var x;const[e,t]=k.useState("agent"),[n,u]=k.useState(!1),[r,o]=k.useState(!1),[i,l]=k.useState(!1),[a,s]=k.useState(null),[d,p]=k.useState({protocol:"anthropic",model:"",baseUrl:"",authToken:"",defaultImageModel:"",defaultVideoModel:"",defaultFormat:""}),[m,y]=k.useState({});k.useEffect(()=>{fe.getConfigs().then(f=>{const h={...d};for(const v of f)try{const b=typeof v.value=="string"?JSON.parse(v.value):v.value;v.key==="api_keys"&&(b.ANTHROPIC_MODEL&&(h.model=b.ANTHROPIC_MODEL),b.ANTHROPIC_BASE_URL&&(h.baseUrl=b.ANTHROPIC_BASE_URL),b.ANTHROPIC_AUTH_TOKEN&&(h.authToken=b.ANTHROPIC_AUTH_TOKEN),b.PROTOCOL&&(h.protocol=b.PROTOCOL)),v.key==="defaults"&&(b.imageModel&&(h.defaultImageModel=b.imageModel),b.videoModel&&(h.defaultVideoModel=b.videoModel),b.format&&(h.defaultFormat=b.format))}catch{}p(h)}),fe.getSkillsConfig().then(y).catch(()=>{})},[]);const g=(f,h)=>{p(v=>({...v,[f]:h}))},w=(f,h)=>{y(v=>({...v,[f]:h}))},C=async()=>{u(!0);try{e==="agent"?(await fe.saveConfig("api_keys",{PROTOCOL:d.protocol,ANTHROPIC_MODEL:d.model,ANTHROPIC_BASE_URL:d.baseUrl,ANTHROPIC_AUTH_TOKEN:d.authToken}),await fe.saveConfig("defaults",{imageModel:d.defaultImageModel,videoModel:d.defaultVideoModel,format:d.defaultFormat})):await fe.saveSkillsConfig(m),o(!0),setTimeout(()=>o(!1),2e3)}catch{}u(!1)};return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex gap-0 border-b border-zinc-200 px-6 bg-white",children:[c.jsx("button",{onClick:()=>t("agent"),className:`px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px
|
||
${e==="agent"?"border-indigo-600 text-indigo-600":"border-transparent text-zinc-500 hover:text-zinc-700"}`,children:"Agent 配置"}),c.jsx("button",{onClick:()=>t("skills"),className:`px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px
|
||
${e==="skills"?"border-indigo-600 text-indigo-600":"border-transparent text-zinc-500 hover:text-zinc-700"}`,children:"工具配置"})]}),c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsxs("div",{className:"max-w-2xl mx-auto p-6 space-y-6",children:[e==="agent"?c.jsxs(c.Fragment,{children:[c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-zinc-500 uppercase tracking-wide",children:"API 配置"}),c.jsxs("div",{className:"space-y-3 bg-white rounded-lg border border-zinc-200 p-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"协议"}),c.jsx("div",{className:"mt-1 flex gap-2",children:["anthropic","openai"].map(f=>c.jsx("button",{onClick:()=>g("protocol",f),className:`flex-1 py-2 rounded-md text-sm font-medium transition-colors border ${d.protocol===f?"bg-indigo-50 border-indigo-300 text-indigo-700":"bg-zinc-50 border-zinc-200 text-zinc-500 hover:bg-zinc-100"}`,children:f==="anthropic"?"Anthropic":"OpenAI"},f))}),c.jsx("p",{className:"text-[10px] text-zinc-400 mt-1",children:d.protocol==="anthropic"?"Anthropic 兼容协议(支持 Claude、GLM、DeepSeek 代理等)":"OpenAI 兼容协议(支持 GPT、DeepSeek、Qwen、Ollama 等)"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"模型"}),c.jsx(he,{value:d.model,onChange:f=>g("model",f.target.value),placeholder:d.protocol==="anthropic"?"claude-sonnet-4-6 或 GLM-5.1":"gpt-4o 或 deepseek-chat",className:"mt-1 bg-zinc-50 border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"Base URL"}),c.jsx(he,{value:d.baseUrl,onChange:f=>g("baseUrl",f.target.value),placeholder:d.protocol==="anthropic"?"https://api.anthropic.com":"https://api.openai.com/v1",className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"Auth Token"}),c.jsx(he,{value:d.authToken,onChange:f=>g("authToken",f.target.value),type:"password",placeholder:"sk-...",className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]}),c.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[c.jsxs(vt,{size:"sm",variant:"outline",className:"text-xs",disabled:i,onClick:async()=>{l(!0),s(null);try{await C();const h=await(await fetch("/api/configs/test-connection",{method:"POST"})).json();s(h)}catch(f){s({ok:!1,error:f.message})}l(!1)},children:[i?c.jsx(ia,{size:12,className:"mr-1 animate-spin"}):c.jsx(_g,{size:12,className:"mr-1"}),i?"测试中...":"测试连接"]}),a&&c.jsx("span",{className:`text-xs ${a.ok?"text-green-600":"text-red-500"}`,children:a.ok?`连接成功 ${(x=a.models)!=null&&x.length?`(${a.models.join(", ")})`:""}`:a.error})]})]})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-zinc-500 uppercase tracking-wide",children:"默认参数"}),c.jsx("div",{className:"space-y-3 bg-white rounded-lg border border-zinc-200 p-4",children:c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"生图模型"}),c.jsxs("select",{value:d.defaultImageModel,onChange:f=>g("defaultImageModel",f.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"",children:"未设置"}),c.jsx("option",{value:"gemini",children:"Gemini"}),c.jsx("option",{value:"mj",children:"Midjourney"}),c.jsx("option",{value:"gpt",children:"GPT Image"}),c.jsx("option",{value:"kling",children:"Kling"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"视频模型"}),c.jsxs("select",{value:d.defaultVideoModel,onChange:f=>g("defaultVideoModel",f.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"",children:"未设置"}),c.jsx("option",{value:"veo3-fast",children:"Veo3 Fast"}),c.jsx("option",{value:"veo3-fast-frames",children:"Veo3 Fast Frames"}),c.jsx("option",{value:"kling",children:"Kling"}),c.jsx("option",{value:"grok",children:"Grok"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"画幅"}),c.jsxs("select",{value:d.defaultFormat,onChange:f=>g("defaultFormat",f.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"",children:"未设置"}),c.jsx("option",{value:"9:16",children:"9:16 竖屏"}),c.jsx("option",{value:"16:9",children:"16:9 横屏"}),c.jsx("option",{value:"1:1",children:"1:1 方形"})]})]})]})})]})]}):c.jsx(c.Fragment,{children:Uv.map(f=>c.jsxs("section",{className:"space-y-3",children:[c.jsx("h3",{className:"text-sm font-medium text-zinc-500 uppercase tracking-wide",children:f.title}),c.jsx("div",{className:"space-y-3 bg-white rounded-lg border border-zinc-200 p-4",children:f.fields.map(h=>{const v=m[h.key];return h.type==="toggle"?c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:h.label}),c.jsx("button",{onClick:()=>w(h.key,!v),className:`w-10 h-5 rounded-full transition-colors relative ${v?"bg-indigo-600":"bg-zinc-300"}`,children:c.jsx("span",{className:`absolute top-0.5 w-4 h-4 bg-white rounded-full shadow transition-transform ${v?"left-5":"left-0.5"}`})})]},h.key):c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:h.label}),c.jsx(he,{value:typeof v=="string"?v:v!=null?String(v):"",onChange:b=>w(h.key,b.target.value),type:h.type==="password"?"password":"text",placeholder:h.placeholder,className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]},h.key)})})]},f.title))}),c.jsx(vt,{onClick:C,disabled:n,className:"w-full",children:r?c.jsxs(c.Fragment,{children:[c.jsx(cg,{size:14,className:"mr-1"}),"已保存"]}):n?c.jsxs(c.Fragment,{children:[c.jsx(ia,{size:14,className:"mr-1 animate-spin"}),"保存中..."]}):c.jsxs(c.Fragment,{children:[c.jsx(kg,{size:14,className:"mr-1"}),"保存设置"]})})]})})]})}function Vv(){return c.jsx(px,{children:c.jsx(vx,{children:c.jsxs(E2,{children:[c.jsx(Xt,{path:"/",element:c.jsx(_2,{to:"/chat",replace:!0})}),c.jsx(Xt,{path:"/chat",element:c.jsx(k0,{})}),c.jsx(Xt,{path:"/chat/:conversationId",element:c.jsx(k0,{})}),c.jsx(Xt,{path:"/accounts",element:c.jsx(D0,{})}),c.jsx(Xt,{path:"/accounts/:accountId",element:c.jsx(D0,{})}),c.jsx(Xt,{path:"/assets",element:c.jsx(Bv,{})}),c.jsx(Xt,{path:"/settings",element:c.jsx(Hv,{})})]})})})}sl.createRoot(document.getElementById("root")).render(c.jsx(qu.StrictMode,{children:c.jsx(Q2,{children:c.jsx(Vv,{})})}));
|