@agentprismform/agent-plugin 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,153 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var no=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function On(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ch={exports:{}},js={},dh={exports:{}},ue={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Da=Symbol.for("react.element"),y1=Symbol.for("react.portal"),b1=Symbol.for("react.fragment"),w1=Symbol.for("react.strict_mode"),x1=Symbol.for("react.profiler"),S1=Symbol.for("react.provider"),k1=Symbol.for("react.context"),E1=Symbol.for("react.forward_ref"),C1=Symbol.for("react.suspense"),P1=Symbol.for("react.memo"),R1=Symbol.for("react.lazy"),ff=Symbol.iterator;function T1(e){return e===null||typeof e!="object"?null:(e=ff&&e[ff]||e["@@iterator"],typeof e=="function"?e:null)}var fh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ph=Object.assign,vh={};function Si(e,t,r){this.props=e,this.context=t,this.refs=vh,this.updater=r||fh}Si.prototype.isReactComponent={};Si.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")};Si.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hh(){}hh.prototype=Si.prototype;function Xc(e,t,r){this.props=e,this.context=t,this.refs=vh,this.updater=r||fh}var Qc=Xc.prototype=new hh;Qc.constructor=Xc;ph(Qc,Si.prototype);Qc.isPureReactComponent=!0;var pf=Array.isArray,gh=Object.prototype.hasOwnProperty,Jc={current:null},mh={key:!0,ref:!0,__self:!0,__source:!0};function yh(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)gh.call(t,n)&&!mh.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Da,type:e,key:a,ref:o,props:i,_owner:Jc.current}}function F1(e,t){return{$$typeof:Da,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Da}function O1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var vf=/\/+/g;function bl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O1(""+e.key):t.toString(36)}function Lo(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Da:case y1:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+bl(o,0):n,pf(i)?(r="",e!=null&&(r=e.replace(vf,"$&/")+"/"),Lo(i,t,r,"",function(u){return u})):i!=null&&(Zc(i)&&(i=F1(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(vf,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",pf(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+bl(a,s);o+=Lo(a,t,r,l,i)}else if(l=T1(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+bl(a,s++),o+=Lo(a,t,r,l,i);else if(a==="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 o}function io(e,t,r){if(e==null)return e;var n=[],i=0;return Lo(e,n,"","",function(a){return t.call(r,a,i++)}),n}function _1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ht={current:null},zo={transition:null},A1={ReactCurrentDispatcher:ht,ReactCurrentBatchConfig:zo,ReactCurrentOwner:Jc};function bh(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:io,forEach:function(e,t,r){io(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return io(e,function(){t++}),t},toArray:function(e){return io(e,function(t){return t})||[]},only:function(e){if(!Zc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Si;ue.Fragment=b1;ue.Profiler=x1;ue.PureComponent=Xc;ue.StrictMode=w1;ue.Suspense=C1;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A1;ue.act=bh;ue.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=ph({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Jc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)gh.call(t,l)&&!mh.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Da,type:e.type,key:i,ref:a,props:n,_owner:o}};ue.createContext=function(e){return e={$$typeof:k1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:S1,_context:e},e.Consumer=e};ue.createElement=yh;ue.createFactory=function(e){var t=yh.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:E1,render:e}};ue.isValidElement=Zc;ue.lazy=function(e){return{$$typeof:R1,_payload:{_status:-1,_result:e},_init:_1}};ue.memo=function(e,t){return{$$typeof:P1,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=zo.transition;zo.transition={};try{e()}finally{zo.transition=t}};ue.unstable_act=bh;ue.useCallback=function(e,t){return ht.current.useCallback(e,t)};ue.useContext=function(e){return ht.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return ht.current.useDeferredValue(e)};ue.useEffect=function(e,t){return ht.current.useEffect(e,t)};ue.useId=function(){return ht.current.useId()};ue.useImperativeHandle=function(e,t,r){return ht.current.useImperativeHandle(e,t,r)};ue.useInsertionEffect=function(e,t){return ht.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return ht.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return ht.current.useMemo(e,t)};ue.useReducer=function(e,t,r){return ht.current.useReducer(e,t,r)};ue.useRef=function(e){return ht.current.useRef(e)};ue.useState=function(e){return ht.current.useState(e)};ue.useSyncExternalStore=function(e,t,r){return ht.current.useSyncExternalStore(e,t,r)};ue.useTransition=function(){return ht.current.useTransition()};ue.version="18.3.1";dh.exports=ue;var d=dh.exports;const we=On(d);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var N1=d,I1=Symbol.for("react.element"),j1=Symbol.for("react.fragment"),D1=Object.prototype.hasOwnProperty,M1=N1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$1={key:!0,ref:!0,__self:!0,__source:!0};function wh(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)D1.call(t,n)&&!$1.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:I1,type:e,key:a,ref:o,props:i,_owner:M1.current}}js.Fragment=j1;js.jsx=wh;js.jsxs=wh;ch.exports=js;var w=ch.exports,xh={exports:{}},It={},Sh={exports:{}},kh={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(A,I){var M=A.length;A.push(I);e:for(;0<M;){var N=M-1>>>1,$=A[N];if(0<i($,I))A[N]=I,A[M]=$,M=N;else break e}}function r(A){return A.length===0?null:A[0]}function n(A){if(A.length===0)return null;var I=A[0],M=A.pop();if(M!==I){A[0]=M;e:for(var N=0,$=A.length,V=$>>>1;N<V;){var L=2*(N+1)-1,q=A[L],Y=L+1,J=A[Y];if(0>i(q,M))Y<$&&0>i(J,q)?(A[N]=J,A[Y]=M,N=Y):(A[N]=q,A[L]=M,N=L);else if(Y<$&&0>i(J,M))A[N]=J,A[Y]=M,N=Y;else break e}}return I}function i(A,I){var M=A.sortIndex-I.sortIndex;return M!==0?M:A.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,p=null,f=3,h=!1,m=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var I=r(u);I!==null;){if(I.callback===null)n(u);else if(I.startTime<=A)n(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=r(u)}}function k(A){if(b=!1,y(A),!m)if(r(l)!==null)m=!0,z(E);else{var I=r(u);I!==null&&U(k,I.startTime-A)}}function E(A,I){m=!1,b&&(b=!1,v(P),P=-1),h=!0;var M=f;try{for(y(I),p=r(l);p!==null&&(!(p.expirationTime>I)||A&&!O());){var N=p.callback;if(typeof N=="function"){p.callback=null,f=p.priorityLevel;var $=N(p.expirationTime<=I);I=e.unstable_now(),typeof $=="function"?p.callback=$:p===r(l)&&n(l),y(I)}else n(l);p=r(l)}if(p!==null)var V=!0;else{var L=r(u);L!==null&&U(k,L.startTime-I),V=!1}return V}finally{p=null,f=M,h=!1}}var C=!1,S=null,P=-1,T=5,R=-1;function O(){return!(e.unstable_now()-R<T)}function _(){if(S!==null){var A=e.unstable_now();R=A;var I=!0;try{I=S(!0,A)}finally{I?j():(C=!1,S=null)}}else C=!1}var j;if(typeof g=="function")j=function(){g(_)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,W=D.port2;D.port1.onmessage=_,j=function(){W.postMessage(null)}}else j=function(){x(_,0)};function z(A){S=A,C||(C=!0,j())}function U(A,I){P=x(function(){A(e.unstable_now())},I)}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(){m||h||(m=!0,z(E))},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"):T=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(A){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var M=f;f=I;try{return A()}finally{f=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,I){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var M=f;f=A;try{return I()}finally{f=M}},e.unstable_scheduleCallback=function(A,I,M){var N=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?N+M:N):M=N,A){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=M+$,A={id:c++,callback:I,priorityLevel:A,startTime:M,expirationTime:$,sortIndex:-1},M>N?(A.sortIndex=M,t(u,A),r(l)===null&&A===r(u)&&(b?(v(P),P=-1):b=!0,U(k,M-N))):(A.sortIndex=$,t(l,A),m||h||(m=!0,z(E))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var I=f;return function(){var M=f;f=I;try{return A.apply(this,arguments)}finally{f=M}}}})(kh);Sh.exports=kh;var L1=Sh.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var z1=d,Nt=L1;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 Eh=new Set,va={};function _n(e,t){li(e,t),li(e+"Capture",t)}function li(e,t){for(va[e]=t,e=0;e<t.length;e++)Eh.add(t[e])}var Ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pu=Object.prototype.hasOwnProperty,V1=/^[: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]*$/,hf={},gf={};function H1(e){return Pu.call(gf,e)?!0:Pu.call(hf,e)?!1:V1.test(e)?gf[e]=!0:(hf[e]=!0,!1)}function B1(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U1(e,t,r,n){if(t===null||typeof t>"u"||B1(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 gt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new gt(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){nt[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ed=/[\-:]([a-z])/g;function td(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(ed,td);nt[t]=new gt(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(ed,td);nt[t]=new gt(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(ed,td);nt[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function rd(e,t,r,n){var i=nt.hasOwnProperty(t)?nt[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(U1(t,r,i,n)&&(r=null),n||i===null?H1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Mr=z1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ao=Symbol.for("react.element"),Ln=Symbol.for("react.portal"),zn=Symbol.for("react.fragment"),nd=Symbol.for("react.strict_mode"),Ru=Symbol.for("react.profiler"),Ch=Symbol.for("react.provider"),Ph=Symbol.for("react.context"),id=Symbol.for("react.forward_ref"),Tu=Symbol.for("react.suspense"),Fu=Symbol.for("react.suspense_list"),ad=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),Rh=Symbol.for("react.offscreen"),mf=Symbol.iterator;function Ni(e){return e===null||typeof e!="object"?null:(e=mf&&e[mf]||e["@@iterator"],typeof e=="function"?e:null)}var De=Object.assign,wl;function Wi(e){if(wl===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);wl=t&&t[1]||""}return`
34
- `+wl+e}var xl=!1;function Sl(e,t){if(!e||xl)return"";xl=!0;var r=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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
- `),a=n.stack.split(`
36
- `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{xl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Wi(e):""}function W1(e){switch(e.tag){case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return e=Sl(e.type,!1),e;case 11:return e=Sl(e.type.render,!1),e;case 1:return e=Sl(e.type,!0),e;default:return""}}function Ou(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 zn:return"Fragment";case Ln:return"Portal";case Ru:return"Profiler";case nd:return"StrictMode";case Tu:return"Suspense";case Fu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ph:return(e.displayName||"Context")+".Consumer";case Ch:return(e._context.displayName||"Context")+".Provider";case id:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ad:return t=e.displayName||null,t!==null?t:Ou(e.type)||"Memo";case Ur:t=e._payload,e=e._init;try{return Ou(e(t))}catch{}}return null}function K1(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 Ou(t);case 8:return t===nd?"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 sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Th(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q1(e){var t=Th(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oo(e){e._valueTracker||(e._valueTracker=q1(e))}function Fh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Th(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ts(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 _u(e,t){var r=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function yf(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=sn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Oh(e,t){t=t.checked,t!=null&&rd(e,"checked",t,!1)}function Au(e,t){Oh(e,t);var r=sn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Nu(e,t.type,r):t.hasOwnProperty("defaultValue")&&Nu(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bf(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Nu(e,t,r){(t!=="number"||ts(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ki=Array.isArray;function Zn(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+sn(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Iu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return De({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wf(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(K(92));if(Ki(r)){if(1<r.length)throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:sn(r)}}function _h(e,t){var r=sn(t.value),n=sn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function xf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ah(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 ju(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ah(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var so,Nh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(so=so||document.createElement("div"),so.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=so.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ha(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ta={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},G1=["Webkit","ms","Moz","O"];Object.keys(ta).forEach(function(e){G1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ta[t]=ta[e]})});function Ih(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ta.hasOwnProperty(e)&&ta[e]?(""+t).trim():t+"px"}function jh(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Ih(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Y1=De({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 Du(e,t){if(t){if(Y1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function Mu(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 $u=null;function od(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lu=null,ei=null,ti=null;function Sf(e){if(e=La(e)){if(typeof Lu!="function")throw Error(K(280));var t=e.stateNode;t&&(t=zs(t),Lu(e.stateNode,e.type,t))}}function Dh(e){ei?ti?ti.push(e):ti=[e]:ei=e}function Mh(){if(ei){var e=ei,t=ti;if(ti=ei=null,Sf(e),t)for(e=0;e<t.length;e++)Sf(t[e])}}function $h(e,t){return e(t)}function Lh(){}var kl=!1;function zh(e,t,r){if(kl)return e(t,r);kl=!0;try{return $h(e,t,r)}finally{kl=!1,(ei!==null||ti!==null)&&(Lh(),Mh())}}function ga(e,t){var r=e.stateNode;if(r===null)return null;var n=zs(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(K(231,t,typeof r));return r}var zu=!1;if(Ar)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){zu=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{zu=!1}function X1(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var ra=!1,rs=null,ns=!1,Vu=null,Q1={onError:function(e){ra=!0,rs=e}};function J1(e,t,r,n,i,a,o,s,l){ra=!1,rs=null,X1.apply(Q1,arguments)}function Z1(e,t,r,n,i,a,o,s,l){if(J1.apply(this,arguments),ra){if(ra){var u=rs;ra=!1,rs=null}else throw Error(K(198));ns||(ns=!0,Vu=u)}}function An(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Vh(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 kf(e){if(An(e)!==e)throw Error(K(188))}function eb(e){var t=e.alternate;if(!t){if(t=An(e),t===null)throw Error(K(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return kf(i),e;if(a===n)return kf(i),t;a=a.sibling}throw Error(K(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(K(189))}}if(r.alternate!==n)throw Error(K(190))}if(r.tag!==3)throw Error(K(188));return r.stateNode.current===r?e:t}function Hh(e){return e=eb(e),e!==null?Bh(e):null}function Bh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Bh(e);if(t!==null)return t;e=e.sibling}return null}var Uh=Nt.unstable_scheduleCallback,Ef=Nt.unstable_cancelCallback,tb=Nt.unstable_shouldYield,rb=Nt.unstable_requestPaint,Be=Nt.unstable_now,nb=Nt.unstable_getCurrentPriorityLevel,sd=Nt.unstable_ImmediatePriority,Wh=Nt.unstable_UserBlockingPriority,is=Nt.unstable_NormalPriority,ib=Nt.unstable_LowPriority,Kh=Nt.unstable_IdlePriority,Ds=null,gr=null;function ab(e){if(gr&&typeof gr.onCommitFiberRoot=="function")try{gr.onCommitFiberRoot(Ds,e,void 0,(e.current.flags&128)===128)}catch{}}var ar=Math.clz32?Math.clz32:lb,ob=Math.log,sb=Math.LN2;function lb(e){return e>>>=0,e===0?32:31-(ob(e)/sb|0)|0}var lo=64,uo=4194304;function qi(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 as(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=qi(s):(a&=o,a!==0&&(n=qi(a)))}else o=r&~i,o!==0?n=qi(o):a!==0&&(n=qi(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ar(t),i=1<<r,n|=e[r],t&=~i;return n}function ub(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 cb(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ar(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=ub(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function Hu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function qh(){var e=lo;return lo<<=1,!(lo&4194240)&&(lo=64),e}function El(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ma(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ar(t),e[t]=r}function db(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ar(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function ld(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ar(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var xe=0;function Gh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Yh,ud,Xh,Qh,Jh,Bu=!1,co=[],Jr=null,Zr=null,en=null,ma=new Map,ya=new Map,Kr=[],fb="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 Cf(e,t){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":Zr=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":ma.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ya.delete(t.pointerId)}}function ji(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=La(t),t!==null&&ud(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pb(e,t,r,n,i){switch(t){case"focusin":return Jr=ji(Jr,e,t,r,n,i),!0;case"dragenter":return Zr=ji(Zr,e,t,r,n,i),!0;case"mouseover":return en=ji(en,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return ma.set(a,ji(ma.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,ya.set(a,ji(ya.get(a)||null,e,t,r,n,i)),!0}return!1}function Zh(e){var t=yn(e.target);if(t!==null){var r=An(t);if(r!==null){if(t=r.tag,t===13){if(t=Vh(r),t!==null){e.blockedOn=t,Jh(e.priority,function(){Xh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);$u=n,r.target.dispatchEvent(n),$u=null}else return t=La(r),t!==null&&ud(t),e.blockedOn=r,!1;t.shift()}return!0}function Pf(e,t,r){Vo(e)&&r.delete(t)}function vb(){Bu=!1,Jr!==null&&Vo(Jr)&&(Jr=null),Zr!==null&&Vo(Zr)&&(Zr=null),en!==null&&Vo(en)&&(en=null),ma.forEach(Pf),ya.forEach(Pf)}function Di(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,vb)))}function ba(e){function t(i){return Di(i,e)}if(0<co.length){Di(co[0],e);for(var r=1;r<co.length;r++){var n=co[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Jr!==null&&Di(Jr,e),Zr!==null&&Di(Zr,e),en!==null&&Di(en,e),ma.forEach(t),ya.forEach(t),r=0;r<Kr.length;r++)n=Kr[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Kr.length&&(r=Kr[0],r.blockedOn===null);)Zh(r),r.blockedOn===null&&Kr.shift()}var ri=Mr.ReactCurrentBatchConfig,os=!0;function hb(e,t,r,n){var i=xe,a=ri.transition;ri.transition=null;try{xe=1,cd(e,t,r,n)}finally{xe=i,ri.transition=a}}function gb(e,t,r,n){var i=xe,a=ri.transition;ri.transition=null;try{xe=4,cd(e,t,r,n)}finally{xe=i,ri.transition=a}}function cd(e,t,r,n){if(os){var i=Uu(e,t,r,n);if(i===null)Il(e,t,n,ss,r),Cf(e,n);else if(pb(i,e,t,r,n))n.stopPropagation();else if(Cf(e,n),t&4&&-1<fb.indexOf(e)){for(;i!==null;){var a=La(i);if(a!==null&&Yh(a),a=Uu(e,t,r,n),a===null&&Il(e,t,n,ss,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else Il(e,t,n,null,r)}}var ss=null;function Uu(e,t,r,n){if(ss=null,e=od(n),e=yn(e),e!==null)if(t=An(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Vh(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ss=e,null}function eg(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(nb()){case sd:return 1;case Wh:return 4;case is:case ib:return 16;case Kh:return 536870912;default:return 16}default:return 16}}var Gr=null,dd=null,Ho=null;function tg(){if(Ho)return Ho;var e,t=dd,r=t.length,n,i="value"in Gr?Gr.value:Gr.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Ho=i.slice(e,1<n?1-n:void 0)}function Bo(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 fo(){return!0}function Rf(){return!1}function jt(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?fo:Rf,this.isPropagationStopped=Rf,this}return De(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=fo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=fo)},persist:function(){},isPersistent:fo}),t}var ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fd=jt(ki),$a=De({},ki,{view:0,detail:0}),mb=jt($a),Cl,Pl,Mi,Ms=De({},$a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pd,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!==Mi&&(Mi&&e.type==="mousemove"?(Cl=e.screenX-Mi.screenX,Pl=e.screenY-Mi.screenY):Pl=Cl=0,Mi=e),Cl)},movementY:function(e){return"movementY"in e?e.movementY:Pl}}),Tf=jt(Ms),yb=De({},Ms,{dataTransfer:0}),bb=jt(yb),wb=De({},$a,{relatedTarget:0}),Rl=jt(wb),xb=De({},ki,{animationName:0,elapsedTime:0,pseudoElement:0}),Sb=jt(xb),kb=De({},ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eb=jt(kb),Cb=De({},ki,{data:0}),Ff=jt(Cb),Pb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rb={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"},Tb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tb[e])?!!t[e]:!1}function pd(){return Fb}var Ob=De({},$a,{key:function(e){if(e.key){var t=Pb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pd,charCode:function(e){return e.type==="keypress"?Bo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_b=jt(Ob),Ab=De({},Ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=jt(Ab),Nb=De({},$a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pd}),Ib=jt(Nb),jb=De({},ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),Db=jt(jb),Mb=De({},Ms,{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}),$b=jt(Mb),Lb=[9,13,27,32],vd=Ar&&"CompositionEvent"in window,na=null;Ar&&"documentMode"in document&&(na=document.documentMode);var zb=Ar&&"TextEvent"in window&&!na,rg=Ar&&(!vd||na&&8<na&&11>=na),_f=" ",Af=!1;function ng(e,t){switch(e){case"keyup":return Lb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Vb(e,t){switch(e){case"compositionend":return ig(t);case"keypress":return t.which!==32?null:(Af=!0,_f);case"textInput":return e=t.data,e===_f&&Af?null:e;default:return null}}function Hb(e,t){if(Vn)return e==="compositionend"||!vd&&ng(e,t)?(e=tg(),Ho=dd=Gr=null,Vn=!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 rg&&t.locale!=="ko"?null:t.data;default:return null}}var Bb={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 Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bb[e.type]:t==="textarea"}function ag(e,t,r,n){Dh(n),t=ls(t,"onChange"),0<t.length&&(r=new fd("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ia=null,wa=null;function Ub(e){gg(e,0)}function $s(e){var t=Un(e);if(Fh(t))return e}function Wb(e,t){if(e==="change")return t}var og=!1;if(Ar){var Tl;if(Ar){var Fl="oninput"in document;if(!Fl){var If=document.createElement("div");If.setAttribute("oninput","return;"),Fl=typeof If.oninput=="function"}Tl=Fl}else Tl=!1;og=Tl&&(!document.documentMode||9<document.documentMode)}function jf(){ia&&(ia.detachEvent("onpropertychange",sg),wa=ia=null)}function sg(e){if(e.propertyName==="value"&&$s(wa)){var t=[];ag(t,wa,e,od(e)),zh(Ub,t)}}function Kb(e,t,r){e==="focusin"?(jf(),ia=t,wa=r,ia.attachEvent("onpropertychange",sg)):e==="focusout"&&jf()}function qb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $s(wa)}function Gb(e,t){if(e==="click")return $s(t)}function Yb(e,t){if(e==="input"||e==="change")return $s(t)}function Xb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sr=typeof Object.is=="function"?Object.is:Xb;function xa(e,t){if(sr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Pu.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function Df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mf(e,t){var r=Df(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Df(r)}}function lg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ug(){for(var e=window,t=ts();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ts(e.document)}return t}function hd(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 Qb(e){var t=ug(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&lg(r.ownerDocument.documentElement,r)){if(n!==null&&hd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Mf(r,a);var o=Mf(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jb=Ar&&"documentMode"in document&&11>=document.documentMode,Hn=null,Wu=null,aa=null,Ku=!1;function $f(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ku||Hn==null||Hn!==ts(n)||(n=Hn,"selectionStart"in n&&hd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),aa&&xa(aa,n)||(aa=n,n=ls(Wu,"onSelect"),0<n.length&&(t=new fd("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Hn)))}function po(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Bn={animationend:po("Animation","AnimationEnd"),animationiteration:po("Animation","AnimationIteration"),animationstart:po("Animation","AnimationStart"),transitionend:po("Transition","TransitionEnd")},Ol={},cg={};Ar&&(cg=document.createElement("div").style,"AnimationEvent"in window||(delete Bn.animationend.animation,delete Bn.animationiteration.animation,delete Bn.animationstart.animation),"TransitionEvent"in window||delete Bn.transitionend.transition);function Ls(e){if(Ol[e])return Ol[e];if(!Bn[e])return e;var t=Bn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in cg)return Ol[e]=t[r];return e}var dg=Ls("animationend"),fg=Ls("animationiteration"),pg=Ls("animationstart"),vg=Ls("transitionend"),hg=new Map,Lf="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 un(e,t){hg.set(e,t),_n(t,[e])}for(var _l=0;_l<Lf.length;_l++){var Al=Lf[_l],Zb=Al.toLowerCase(),ew=Al[0].toUpperCase()+Al.slice(1);un(Zb,"on"+ew)}un(dg,"onAnimationEnd");un(fg,"onAnimationIteration");un(pg,"onAnimationStart");un("dblclick","onDoubleClick");un("focusin","onFocus");un("focusout","onBlur");un(vg,"onTransitionEnd");li("onMouseEnter",["mouseout","mouseover"]);li("onMouseLeave",["mouseout","mouseover"]);li("onPointerEnter",["pointerout","pointerover"]);li("onPointerLeave",["pointerout","pointerover"]);_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_n("onBeforeInput",["compositionend","keypress","textInput","paste"]);_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="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(" "),tw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gi));function zf(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Z1(n,t,void 0,e),e.currentTarget=null}function gg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;zf(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;zf(i,s,u),a=l}}}if(ns)throw e=Vu,ns=!1,Vu=null,e}function Oe(e,t){var r=t[Qu];r===void 0&&(r=t[Qu]=new Set);var n=e+"__bubble";r.has(n)||(mg(t,e,2,!1),r.add(n))}function Nl(e,t,r){var n=0;t&&(n|=4),mg(r,e,n,t)}var vo="_reactListening"+Math.random().toString(36).slice(2);function Sa(e){if(!e[vo]){e[vo]=!0,Eh.forEach(function(r){r!=="selectionchange"&&(tw.has(r)||Nl(r,!1,e),Nl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vo]||(t[vo]=!0,Nl("selectionchange",!1,t))}}function mg(e,t,r,n){switch(eg(t)){case 1:var i=hb;break;case 4:i=gb;break;default:i=cd}r=i.bind(null,t,r,e),i=void 0,!zu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Il(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=yn(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}zh(function(){var u=a,c=od(r),p=[];e:{var f=hg.get(e);if(f!==void 0){var h=fd,m=e;switch(e){case"keypress":if(Bo(r)===0)break e;case"keydown":case"keyup":h=_b;break;case"focusin":m="focus",h=Rl;break;case"focusout":m="blur",h=Rl;break;case"beforeblur":case"afterblur":h=Rl;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=bb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Ib;break;case dg:case fg:case pg:h=Sb;break;case vg:h=Db;break;case"scroll":h=mb;break;case"wheel":h=$b;break;case"copy":case"cut":case"paste":h=Eb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Of}var b=(t&4)!==0,x=!b&&e==="scroll",v=b?f!==null?f+"Capture":null:f;b=[];for(var g=u,y;g!==null;){y=g;var k=y.stateNode;if(y.tag===5&&k!==null&&(y=k,v!==null&&(k=ga(g,v),k!=null&&b.push(ka(g,k,y)))),x)break;g=g.return}0<b.length&&(f=new h(f,m,null,r,c),p.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&r!==$u&&(m=r.relatedTarget||r.fromElement)&&(yn(m)||m[Nr]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=u,m=m?yn(m):null,m!==null&&(x=An(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(b=Tf,k="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(b=Of,k="onPointerLeave",v="onPointerEnter",g="pointer"),x=h==null?f:Un(h),y=m==null?f:Un(m),f=new b(k,g+"leave",h,r,c),f.target=x,f.relatedTarget=y,k=null,yn(c)===u&&(b=new b(v,g+"enter",m,r,c),b.target=y,b.relatedTarget=x,k=b),x=k,h&&m)t:{for(b=h,v=m,g=0,y=b;y;y=jn(y))g++;for(y=0,k=v;k;k=jn(k))y++;for(;0<g-y;)b=jn(b),g--;for(;0<y-g;)v=jn(v),y--;for(;g--;){if(b===v||v!==null&&b===v.alternate)break t;b=jn(b),v=jn(v)}b=null}else b=null;h!==null&&Vf(p,f,h,b,!1),m!==null&&x!==null&&Vf(p,x,m,b,!0)}}e:{if(f=u?Un(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var E=Wb;else if(Nf(f))if(og)E=Yb;else{E=qb;var C=Kb}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=Gb);if(E&&(E=E(e,u))){ag(p,E,r,c);break e}C&&C(e,f,u),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&Nu(f,"number",f.value)}switch(C=u?Un(u):window,e){case"focusin":(Nf(C)||C.contentEditable==="true")&&(Hn=C,Wu=u,aa=null);break;case"focusout":aa=Wu=Hn=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,$f(p,r,c);break;case"selectionchange":if(Jb)break;case"keydown":case"keyup":$f(p,r,c)}var S;if(vd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Vn?ng(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(rg&&r.locale!=="ko"&&(Vn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Vn&&(S=tg()):(Gr=c,dd="value"in Gr?Gr.value:Gr.textContent,Vn=!0)),C=ls(u,P),0<C.length&&(P=new Ff(P,e,null,r,c),p.push({event:P,listeners:C}),S?P.data=S:(S=ig(r),S!==null&&(P.data=S)))),(S=zb?Vb(e,r):Hb(e,r))&&(u=ls(u,"onBeforeInput"),0<u.length&&(c=new Ff("onBeforeInput","beforeinput",null,r,c),p.push({event:c,listeners:u}),c.data=S))}gg(p,t)})}function ka(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ls(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ga(e,r),a!=null&&n.unshift(ka(e,a,i)),a=ga(e,t),a!=null&&n.push(ka(e,a,i))),e=e.return}return n}function jn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vf(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=ga(r,a),l!=null&&o.unshift(ka(r,l,s))):i||(l=ga(r,a),l!=null&&o.push(ka(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var rw=/\r\n?/g,nw=/\u0000|\uFFFD/g;function Hf(e){return(typeof e=="string"?e:""+e).replace(rw,`
38
- `).replace(nw,"")}function ho(e,t,r){if(t=Hf(t),Hf(e)!==t&&r)throw Error(K(425))}function us(){}var qu=null,Gu=null;function Yu(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 Xu=typeof setTimeout=="function"?setTimeout:void 0,iw=typeof clearTimeout=="function"?clearTimeout:void 0,Bf=typeof Promise=="function"?Promise:void 0,aw=typeof queueMicrotask=="function"?queueMicrotask:typeof Bf<"u"?function(e){return Bf.resolve(null).then(e).catch(ow)}:Xu;function ow(e){setTimeout(function(){throw e})}function jl(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),ba(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);ba(t)}function tn(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 Uf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ei=Math.random().toString(36).slice(2),vr="__reactFiber$"+Ei,Ea="__reactProps$"+Ei,Nr="__reactContainer$"+Ei,Qu="__reactEvents$"+Ei,sw="__reactListeners$"+Ei,lw="__reactHandles$"+Ei;function yn(e){var t=e[vr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Nr]||r[vr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Uf(e);e!==null;){if(r=e[vr])return r;e=Uf(e)}return t}e=r,r=e.parentNode}return null}function La(e){return e=e[vr]||e[Nr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function zs(e){return e[Ea]||null}var Ju=[],Wn=-1;function cn(e){return{current:e}}function Ae(e){0>Wn||(e.current=Ju[Wn],Ju[Wn]=null,Wn--)}function Re(e,t){Wn++,Ju[Wn]=e.current,e.current=t}var ln={},ft=cn(ln),bt=cn(!1),Cn=ln;function ui(e,t){var r=e.type.contextTypes;if(!r)return ln;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wt(e){return e=e.childContextTypes,e!=null}function cs(){Ae(bt),Ae(ft)}function Wf(e,t,r){if(ft.current!==ln)throw Error(K(168));Re(ft,t),Re(bt,r)}function yg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(K(108,K1(e)||"Unknown",i));return De({},r,n)}function ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,Cn=ft.current,Re(ft,e),Re(bt,bt.current),!0}function Kf(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=yg(e,t,Cn),n.__reactInternalMemoizedMergedChildContext=e,Ae(bt),Ae(ft),Re(ft,e)):Ae(bt),Re(bt,r)}var Tr=null,Vs=!1,Dl=!1;function bg(e){Tr===null?Tr=[e]:Tr.push(e)}function uw(e){Vs=!0,bg(e)}function dn(){if(!Dl&&Tr!==null){Dl=!0;var e=0,t=xe;try{var r=Tr;for(xe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Tr=null,Vs=!1}catch(i){throw Tr!==null&&(Tr=Tr.slice(e+1)),Uh(sd,dn),i}finally{xe=t,Dl=!1}}return null}var Kn=[],qn=0,fs=null,ps=0,Bt=[],Ut=0,Pn=null,Fr=1,Or="";function gn(e,t){Kn[qn++]=ps,Kn[qn++]=fs,fs=e,ps=t}function wg(e,t,r){Bt[Ut++]=Fr,Bt[Ut++]=Or,Bt[Ut++]=Pn,Pn=e;var n=Fr;e=Or;var i=32-ar(n)-1;n&=~(1<<i),r+=1;var a=32-ar(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Fr=1<<32-ar(t)+i|r<<i|n,Or=a+e}else Fr=1<<a|r<<i|n,Or=e}function gd(e){e.return!==null&&(gn(e,1),wg(e,1,0))}function md(e){for(;e===fs;)fs=Kn[--qn],Kn[qn]=null,ps=Kn[--qn],Kn[qn]=null;for(;e===Pn;)Pn=Bt[--Ut],Bt[Ut]=null,Or=Bt[--Ut],Bt[Ut]=null,Fr=Bt[--Ut],Bt[Ut]=null}var _t=null,Ft=null,Ne=!1,nr=null;function xg(e,t){var r=Wt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function qf(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_t=e,Ft=tn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_t=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Pn!==null?{id:Fr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Wt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,_t=e,Ft=null,!0):!1;default:return!1}}function Zu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ec(e){if(Ne){var t=Ft;if(t){var r=t;if(!qf(e,t)){if(Zu(e))throw Error(K(418));t=tn(r.nextSibling);var n=_t;t&&qf(e,t)?xg(n,r):(e.flags=e.flags&-4097|2,Ne=!1,_t=e)}}else{if(Zu(e))throw Error(K(418));e.flags=e.flags&-4097|2,Ne=!1,_t=e}}}function Gf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_t=e}function go(e){if(e!==_t)return!1;if(!Ne)return Gf(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yu(e.type,e.memoizedProps)),t&&(t=Ft)){if(Zu(e))throw Sg(),Error(K(418));for(;t;)xg(e,t),t=tn(t.nextSibling)}if(Gf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ft=tn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=_t?tn(e.stateNode.nextSibling):null;return!0}function Sg(){for(var e=Ft;e;)e=tn(e.nextSibling)}function ci(){Ft=_t=null,Ne=!1}function yd(e){nr===null?nr=[e]:nr.push(e)}var cw=Mr.ReactCurrentBatchConfig;function $i(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(K(309));var n=r.stateNode}if(!n)throw Error(K(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(K(284));if(!r._owner)throw Error(K(290,e))}return e}function mo(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yf(e){var t=e._init;return t(e._payload)}function kg(e){function t(v,g){if(e){var y=v.deletions;y===null?(v.deletions=[g],v.flags|=16):y.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function i(v,g){return v=on(v,g),v.index=0,v.sibling=null,v}function a(v,g,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<g?(v.flags|=2,g):y):(v.flags|=2,g)):(v.flags|=1048576,g)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,g,y,k){return g===null||g.tag!==6?(g=Bl(y,v.mode,k),g.return=v,g):(g=i(g,y),g.return=v,g)}function l(v,g,y,k){var E=y.type;return E===zn?c(v,g,y.props.children,k,y.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ur&&Yf(E)===g.type)?(k=i(g,y.props),k.ref=$i(v,g,y),k.return=v,k):(k=Xo(y.type,y.key,y.props,null,v.mode,k),k.ref=$i(v,g,y),k.return=v,k)}function u(v,g,y,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Ul(y,v.mode,k),g.return=v,g):(g=i(g,y.children||[]),g.return=v,g)}function c(v,g,y,k,E){return g===null||g.tag!==7?(g=En(y,v.mode,k,E),g.return=v,g):(g=i(g,y),g.return=v,g)}function p(v,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Bl(""+g,v.mode,y),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ao:return y=Xo(g.type,g.key,g.props,null,v.mode,y),y.ref=$i(v,null,g),y.return=v,y;case Ln:return g=Ul(g,v.mode,y),g.return=v,g;case Ur:var k=g._init;return p(v,k(g._payload),y)}if(Ki(g)||Ni(g))return g=En(g,v.mode,y,null),g.return=v,g;mo(v,g)}return null}function f(v,g,y,k){var E=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:s(v,g,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ao:return y.key===E?l(v,g,y,k):null;case Ln:return y.key===E?u(v,g,y,k):null;case Ur:return E=y._init,f(v,g,E(y._payload),k)}if(Ki(y)||Ni(y))return E!==null?null:c(v,g,y,k,null);mo(v,y)}return null}function h(v,g,y,k,E){if(typeof k=="string"&&k!==""||typeof k=="number")return v=v.get(y)||null,s(g,v,""+k,E);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ao:return v=v.get(k.key===null?y:k.key)||null,l(g,v,k,E);case Ln:return v=v.get(k.key===null?y:k.key)||null,u(g,v,k,E);case Ur:var C=k._init;return h(v,g,y,C(k._payload),E)}if(Ki(k)||Ni(k))return v=v.get(y)||null,c(g,v,k,E,null);mo(g,k)}return null}function m(v,g,y,k){for(var E=null,C=null,S=g,P=g=0,T=null;S!==null&&P<y.length;P++){S.index>P?(T=S,S=null):T=S.sibling;var R=f(v,S,y[P],k);if(R===null){S===null&&(S=T);break}e&&S&&R.alternate===null&&t(v,S),g=a(R,g,P),C===null?E=R:C.sibling=R,C=R,S=T}if(P===y.length)return r(v,S),Ne&&gn(v,P),E;if(S===null){for(;P<y.length;P++)S=p(v,y[P],k),S!==null&&(g=a(S,g,P),C===null?E=S:C.sibling=S,C=S);return Ne&&gn(v,P),E}for(S=n(v,S);P<y.length;P++)T=h(S,v,P,y[P],k),T!==null&&(e&&T.alternate!==null&&S.delete(T.key===null?P:T.key),g=a(T,g,P),C===null?E=T:C.sibling=T,C=T);return e&&S.forEach(function(O){return t(v,O)}),Ne&&gn(v,P),E}function b(v,g,y,k){var E=Ni(y);if(typeof E!="function")throw Error(K(150));if(y=E.call(y),y==null)throw Error(K(151));for(var C=E=null,S=g,P=g=0,T=null,R=y.next();S!==null&&!R.done;P++,R=y.next()){S.index>P?(T=S,S=null):T=S.sibling;var O=f(v,S,R.value,k);if(O===null){S===null&&(S=T);break}e&&S&&O.alternate===null&&t(v,S),g=a(O,g,P),C===null?E=O:C.sibling=O,C=O,S=T}if(R.done)return r(v,S),Ne&&gn(v,P),E;if(S===null){for(;!R.done;P++,R=y.next())R=p(v,R.value,k),R!==null&&(g=a(R,g,P),C===null?E=R:C.sibling=R,C=R);return Ne&&gn(v,P),E}for(S=n(v,S);!R.done;P++,R=y.next())R=h(S,v,P,R.value,k),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?P:R.key),g=a(R,g,P),C===null?E=R:C.sibling=R,C=R);return e&&S.forEach(function(_){return t(v,_)}),Ne&&gn(v,P),E}function x(v,g,y,k){if(typeof y=="object"&&y!==null&&y.type===zn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ao:e:{for(var E=y.key,C=g;C!==null;){if(C.key===E){if(E=y.type,E===zn){if(C.tag===7){r(v,C.sibling),g=i(C,y.props.children),g.return=v,v=g;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ur&&Yf(E)===C.type){r(v,C.sibling),g=i(C,y.props),g.ref=$i(v,C,y),g.return=v,v=g;break e}r(v,C);break}else t(v,C);C=C.sibling}y.type===zn?(g=En(y.props.children,v.mode,k,y.key),g.return=v,v=g):(k=Xo(y.type,y.key,y.props,null,v.mode,k),k.ref=$i(v,g,y),k.return=v,v=k)}return o(v);case Ln:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(v,g.sibling),g=i(g,y.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=Ul(y,v.mode,k),g.return=v,v=g}return o(v);case Ur:return C=y._init,x(v,g,C(y._payload),k)}if(Ki(y))return m(v,g,y,k);if(Ni(y))return b(v,g,y,k);mo(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(v,g.sibling),g=i(g,y),g.return=v,v=g):(r(v,g),g=Bl(y,v.mode,k),g.return=v,v=g),o(v)):r(v,g)}return x}var di=kg(!0),Eg=kg(!1),vs=cn(null),hs=null,Gn=null,bd=null;function wd(){bd=Gn=hs=null}function xd(e){var t=vs.current;Ae(vs),e._currentValue=t}function tc(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ni(e,t){hs=e,bd=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(bd!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(hs===null)throw Error(K(308));Gn=e,hs.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var bn=null;function Sd(e){bn===null?bn=[e]:bn.push(e)}function Cg(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Sd(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ir(e,n)}function Ir(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Wr=!1;function kd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pg(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 _r(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,he&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ir(e,r)}return i=n.interleaved,i===null?(t.next=t,Sd(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ir(e,r)}function Uo(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ld(e,r)}}function Xf(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function gs(e,t,r,n){var i=e.updateQueue;Wr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var p=i.baseState;o=0,c=u=l=null,s=a;do{var f=s.lane,h=s.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,b=s;switch(f=t,h=r,b.tag){case 1:if(m=b.payload,typeof m=="function"){p=m.call(h,p,f);break e}p=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=b.payload,f=typeof m=="function"?m.call(h,p,f):m,f==null)break e;p=De({},p,f);break e;case 2:Wr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=p):c=c.next=h,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Tn|=o,e.lanes=o,e.memoizedState=p}}function Qf(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(K(191,i));i.call(n)}}}var za={},mr=cn(za),Ca=cn(za),Pa=cn(za);function wn(e){if(e===za)throw Error(K(174));return e}function Ed(e,t){switch(Re(Pa,t),Re(Ca,e),Re(mr,za),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ju(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ju(t,e)}Ae(mr),Re(mr,t)}function fi(){Ae(mr),Ae(Ca),Ae(Pa)}function Rg(e){wn(Pa.current);var t=wn(mr.current),r=ju(t,e.type);t!==r&&(Re(Ca,e),Re(mr,r))}function Cd(e){Ca.current===e&&(Ae(mr),Ae(Ca))}var Ie=cn(0);function ms(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 Ml=[];function Pd(){for(var e=0;e<Ml.length;e++)Ml[e]._workInProgressVersionPrimary=null;Ml.length=0}var Wo=Mr.ReactCurrentDispatcher,$l=Mr.ReactCurrentBatchConfig,Rn=0,je=null,qe=null,Qe=null,ys=!1,oa=!1,Ra=0,dw=0;function lt(){throw Error(K(321))}function Rd(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sr(e[r],t[r]))return!1;return!0}function Td(e,t,r,n,i,a){if(Rn=a,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wo.current=e===null||e.memoizedState===null?hw:gw,e=r(n,i),oa){a=0;do{if(oa=!1,Ra=0,25<=a)throw Error(K(301));a+=1,Qe=qe=null,t.updateQueue=null,Wo.current=mw,e=r(n,i)}while(oa)}if(Wo.current=bs,t=qe!==null&&qe.next!==null,Rn=0,Qe=qe=je=null,ys=!1,t)throw Error(K(300));return e}function Fd(){var e=Ra!==0;return Ra=0,e}function pr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?je.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Yt(){if(qe===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Qe===null?je.memoizedState:Qe.next;if(t!==null)Qe=t,qe=e;else{if(e===null)throw Error(K(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Qe===null?je.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Ta(e,t){return typeof t=="function"?t(e):t}function Ll(e){var t=Yt(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=qe,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;if((Rn&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var p={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=p,o=n):l=l.next=p,je.lanes|=c,Tn|=c}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,sr(n,t.memoizedState)||(yt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,je.lanes|=a,Tn|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function zl(e){var t=Yt(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);sr(a,t.memoizedState)||(yt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Tg(){}function Fg(e,t){var r=je,n=Yt(),i=t(),a=!sr(n.memoizedState,i);if(a&&(n.memoizedState=i,yt=!0),n=n.queue,Od(Ag.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||Qe!==null&&Qe.memoizedState.tag&1){if(r.flags|=2048,Fa(9,_g.bind(null,r,n,i,t),void 0,null),Ze===null)throw Error(K(349));Rn&30||Og(r,t,i)}return i}function Og(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function _g(e,t,r,n){t.value=r,t.getSnapshot=n,Ng(t)&&Ig(e)}function Ag(e,t,r){return r(function(){Ng(t)&&Ig(e)})}function Ng(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sr(e,r)}catch{return!0}}function Ig(e){var t=Ir(e,1);t!==null&&or(t,e,1,-1)}function Jf(e){var t=pr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t.queue=e,e=e.dispatch=vw.bind(null,je,e),[t.memoizedState,e]}function Fa(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function jg(){return Yt().memoizedState}function Ko(e,t,r,n){var i=pr();je.flags|=e,i.memoizedState=Fa(1|t,r,void 0,n===void 0?null:n)}function Hs(e,t,r,n){var i=Yt();n=n===void 0?null:n;var a=void 0;if(qe!==null){var o=qe.memoizedState;if(a=o.destroy,n!==null&&Rd(n,o.deps)){i.memoizedState=Fa(t,r,a,n);return}}je.flags|=e,i.memoizedState=Fa(1|t,r,a,n)}function Zf(e,t){return Ko(8390656,8,e,t)}function Od(e,t){return Hs(2048,8,e,t)}function Dg(e,t){return Hs(4,2,e,t)}function Mg(e,t){return Hs(4,4,e,t)}function $g(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 Lg(e,t,r){return r=r!=null?r.concat([e]):null,Hs(4,4,$g.bind(null,t,e),r)}function _d(){}function zg(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Rd(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Vg(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Rd(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Hg(e,t,r){return Rn&21?(sr(r,t)||(r=qh(),je.lanes|=r,Tn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yt=!0),e.memoizedState=r)}function fw(e,t){var r=xe;xe=r!==0&&4>r?r:4,e(!0);var n=$l.transition;$l.transition={};try{e(!1),t()}finally{xe=r,$l.transition=n}}function Bg(){return Yt().memoizedState}function pw(e,t,r){var n=an(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ug(e))Wg(t,r);else if(r=Cg(e,t,r,n),r!==null){var i=vt();or(r,e,n,i),Kg(r,t,n)}}function vw(e,t,r){var n=an(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ug(e))Wg(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,sr(s,o)){var l=t.interleaved;l===null?(i.next=i,Sd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=Cg(e,t,i,n),r!==null&&(i=vt(),or(r,e,n,i),Kg(r,t,n))}}function Ug(e){var t=e.alternate;return e===je||t!==null&&t===je}function Wg(e,t){oa=ys=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Kg(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ld(e,r)}}var bs={readContext:Gt,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},hw={readContext:Gt,useCallback:function(e,t){return pr().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Zf,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ko(4194308,4,$g.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ko(4,2,e,t)},useMemo:function(e,t){var r=pr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=pr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=pw.bind(null,je,e),[n.memoizedState,e]},useRef:function(e){var t=pr();return e={current:e},t.memoizedState=e},useState:Jf,useDebugValue:_d,useDeferredValue:function(e){return pr().memoizedState=e},useTransition:function(){var e=Jf(!1),t=e[0];return e=fw.bind(null,e[1]),pr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=je,i=pr();if(Ne){if(r===void 0)throw Error(K(407));r=r()}else{if(r=t(),Ze===null)throw Error(K(349));Rn&30||Og(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Zf(Ag.bind(null,n,a,e),[e]),n.flags|=2048,Fa(9,_g.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=pr(),t=Ze.identifierPrefix;if(Ne){var r=Or,n=Fr;r=(n&~(1<<32-ar(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ra++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=dw++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gw={readContext:Gt,useCallback:zg,useContext:Gt,useEffect:Od,useImperativeHandle:Lg,useInsertionEffect:Dg,useLayoutEffect:Mg,useMemo:Vg,useReducer:Ll,useRef:jg,useState:function(){return Ll(Ta)},useDebugValue:_d,useDeferredValue:function(e){var t=Yt();return Hg(t,qe.memoizedState,e)},useTransition:function(){var e=Ll(Ta)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Tg,useSyncExternalStore:Fg,useId:Bg,unstable_isNewReconciler:!1},mw={readContext:Gt,useCallback:zg,useContext:Gt,useEffect:Od,useImperativeHandle:Lg,useInsertionEffect:Dg,useLayoutEffect:Mg,useMemo:Vg,useReducer:zl,useRef:jg,useState:function(){return zl(Ta)},useDebugValue:_d,useDeferredValue:function(e){var t=Yt();return qe===null?t.memoizedState=e:Hg(t,qe.memoizedState,e)},useTransition:function(){var e=zl(Ta)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Tg,useSyncExternalStore:Fg,useId:Bg,unstable_isNewReconciler:!1};function Zt(e,t){if(e&&e.defaultProps){t=De({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function rc(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:De({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Bs={isMounted:function(e){return(e=e._reactInternals)?An(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=vt(),i=an(e),a=_r(n,i);a.payload=t,r!=null&&(a.callback=r),t=rn(e,a,i),t!==null&&(or(t,e,i,n),Uo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=vt(),i=an(e),a=_r(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=rn(e,a,i),t!==null&&(or(t,e,i,n),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vt(),n=an(e),i=_r(r,n);i.tag=2,t!=null&&(i.callback=t),t=rn(e,i,n),t!==null&&(or(t,e,n,r),Uo(t,e,n))}};function ep(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!xa(r,n)||!xa(i,a):!0}function qg(e,t,r){var n=!1,i=ln,a=t.contextType;return typeof a=="object"&&a!==null?a=Gt(a):(i=wt(t)?Cn:ft.current,n=t.contextTypes,a=(n=n!=null)?ui(e,i):ln),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bs,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function tp(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Bs.enqueueReplaceState(t,t.state,null)}function nc(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},kd(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Gt(a):(a=wt(t)?Cn:ft.current,i.context=ui(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(rc(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Bs.enqueueReplaceState(i,i.state,null),gs(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function pi(e,t){try{var r="",n=t;do r+=W1(n),n=n.return;while(n);var i=r}catch(a){i=`
39
- Error generating stack: `+a.message+`
40
- `+a.stack}return{value:e,source:t,stack:i,digest:null}}function Vl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ic(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var yw=typeof WeakMap=="function"?WeakMap:Map;function Gg(e,t,r){r=_r(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){xs||(xs=!0,vc=n),ic(e,t)},r}function Yg(e,t,r){r=_r(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ic(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){ic(e,t),typeof n!="function"&&(nn===null?nn=new Set([this]):nn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function rp(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new yw;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Aw.bind(null,e,t,r),t.then(e,e))}function np(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 ip(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=_r(-1,1),t.tag=2,rn(r,t,1))),r.lanes|=1),e)}var bw=Mr.ReactCurrentOwner,yt=!1;function pt(e,t,r,n){t.child=e===null?Eg(t,null,r,n):di(t,e.child,r,n)}function ap(e,t,r,n,i){r=r.render;var a=t.ref;return ni(t,i),n=Td(e,t,r,n,a,i),r=Fd(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,jr(e,t,i)):(Ne&&r&&gd(t),t.flags|=1,pt(e,t,n,i),t.child)}function op(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!Ld(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,Xg(e,t,a,n,i)):(e=Xo(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:xa,r(o,n)&&e.ref===t.ref)return jr(e,t,i)}return t.flags|=1,e=on(a,n),e.ref=t.ref,e.return=t,t.child=e}function Xg(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(xa(a,n)&&e.ref===t.ref)if(yt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,jr(e,t,i)}return ac(e,t,r,n,i)}function Qg(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(Xn,Tt),Tt|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Re(Xn,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Re(Xn,Tt),Tt|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Re(Xn,Tt),Tt|=n;return pt(e,t,i,r),t.child}function Jg(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ac(e,t,r,n,i){var a=wt(r)?Cn:ft.current;return a=ui(t,a),ni(t,i),r=Td(e,t,r,n,a,i),n=Fd(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,jr(e,t,i)):(Ne&&n&&gd(t),t.flags|=1,pt(e,t,r,i),t.child)}function sp(e,t,r,n,i){if(wt(r)){var a=!0;ds(t)}else a=!1;if(ni(t,i),t.stateNode===null)qo(e,t),qg(t,r,n),nc(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Gt(u):(u=wt(r)?Cn:ft.current,u=ui(t,u));var c=r.getDerivedStateFromProps,p=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&tp(t,o,n,u),Wr=!1;var f=t.memoizedState;o.state=f,gs(t,n,o,i),l=t.memoizedState,s!==n||f!==l||bt.current||Wr?(typeof c=="function"&&(rc(t,r,c,n),l=t.memoizedState),(s=Wr||ep(t,r,s,n,f,l,u))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Pg(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Zt(t.type,s),o.props=u,p=t.pendingProps,f=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Gt(l):(l=wt(r)?Cn:ft.current,l=ui(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==p||f!==l)&&tp(t,o,n,l),Wr=!1,f=t.memoizedState,o.state=f,gs(t,n,o,i);var m=t.memoizedState;s!==p||f!==m||bt.current||Wr?(typeof h=="function"&&(rc(t,r,h,n),m=t.memoizedState),(u=Wr||ep(t,r,u,n,f,m,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return oc(e,t,r,n,a,i)}function oc(e,t,r,n,i,a){Jg(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&Kf(t,r,!1),jr(e,t,a);n=t.stateNode,bw.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=di(t,e.child,null,a),t.child=di(t,null,s,a)):pt(e,t,s,a),t.memoizedState=n.state,i&&Kf(t,r,!0),t.child}function Zg(e){var t=e.stateNode;t.pendingContext?Wf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wf(e,t.context,!1),Ed(e,t.containerInfo)}function lp(e,t,r,n,i){return ci(),yd(i),t.flags|=256,pt(e,t,r,n),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0};function lc(e){return{baseLanes:e,cachePool:null,transitions:null}}function em(e,t,r){var n=t.pendingProps,i=Ie.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Re(Ie,i&1),e===null)return ec(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):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Ks(o,n,0,null),e=En(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=lc(r),t.memoizedState=sc,e):Ad(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ww(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=on(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=on(s,a):(a=En(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?lc(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=sc,n}return a=e.child,e=a.sibling,n=on(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Ad(e,t){return t=Ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yo(e,t,r,n){return n!==null&&yd(n),di(t,e.child,null,r),e=Ad(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ww(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Vl(Error(K(422))),yo(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Ks({mode:"visible",children:n.children},i,0,null),a=En(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&di(t,e.child,null,o),t.child.memoizedState=lc(o),t.memoizedState=sc,a);if(!(t.mode&1))return yo(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(K(419)),n=Vl(a,n,void 0),yo(e,t,o,n)}if(s=(o&e.childLanes)!==0,yt||s){if(n=Ze,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Ir(e,i),or(n,e,i,-1))}return $d(),n=Vl(Error(K(421))),yo(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Nw.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Ft=tn(i.nextSibling),_t=t,Ne=!0,nr=null,e!==null&&(Bt[Ut++]=Fr,Bt[Ut++]=Or,Bt[Ut++]=Pn,Fr=e.id,Or=e.overflow,Pn=t),t=Ad(t,n.children),t.flags|=4096,t)}function up(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),tc(e.return,t,r)}function Hl(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function tm(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(pt(e,t,n.children,r),n=Ie.current,n&2)n=n&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&&up(e,r,t);else if(e.tag===19)up(e,r,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}n&=1}if(Re(Ie,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&ms(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Hl(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ms(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Hl(t,!0,r,null,a);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Tn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,r=on(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=on(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function xw(e,t,r){switch(t.tag){case 3:Zg(t),ci();break;case 5:Rg(t);break;case 1:wt(t.type)&&ds(t);break;case 4:Ed(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Re(vs,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Re(Ie,Ie.current&1),t.flags|=128,null):r&t.child.childLanes?em(e,t,r):(Re(Ie,Ie.current&1),e=jr(e,t,r),e!==null?e.sibling:null);Re(Ie,Ie.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return tm(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Re(Ie,Ie.current),n)break;return null;case 22:case 23:return t.lanes=0,Qg(e,t,r)}return jr(e,t,r)}var rm,uc,nm,im;rm=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};uc=function(){};nm=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,wn(mr.current);var a=null;switch(r){case"input":i=_u(e,i),n=_u(e,n),a=[];break;case"select":i=De({},i,{value:void 0}),n=De({},n,{value:void 0}),a=[];break;case"textarea":i=Iu(e,i),n=Iu(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=us)}Du(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(va.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(va.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Oe("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};im=function(e,t,r,n){r!==n&&(t.flags|=4)};function Li(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Sw(e,t,r){var n=t.pendingProps;switch(md(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return wt(t.type)&&cs(),ut(t),null;case 3:return n=t.stateNode,fi(),Ae(bt),Ae(ft),Pd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(go(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nr!==null&&(mc(nr),nr=null))),uc(e,t),ut(t),null;case 5:Cd(t);var i=wn(Pa.current);if(r=t.type,e!==null&&t.stateNode!=null)nm(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(K(166));return ut(t),null}if(e=wn(mr.current),go(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[vr]=t,n[Ea]=a,e=(t.mode&1)!==0,r){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(i=0;i<Gi.length;i++)Oe(Gi[i],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":yf(n,a),Oe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Oe("invalid",n);break;case"textarea":wf(n,a),Oe("invalid",n)}Du(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&ho(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&ho(n.textContent,s,e),i=["children",""+s]):va.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Oe("scroll",n)}switch(r){case"input":oo(n),bf(n,a,!0);break;case"textarea":oo(n),xf(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=us)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ah(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[vr]=t,e[Ea]=n,rm(e,t,!1,!1),t.stateNode=e;e:{switch(o=Mu(r,n),r){case"dialog":Oe("cancel",e),Oe("close",e),i=n;break;case"iframe":case"object":case"embed":Oe("load",e),i=n;break;case"video":case"audio":for(i=0;i<Gi.length;i++)Oe(Gi[i],e);i=n;break;case"source":Oe("error",e),i=n;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),i=n;break;case"details":Oe("toggle",e),i=n;break;case"input":yf(e,n),i=_u(e,n),Oe("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=De({},n,{value:void 0}),Oe("invalid",e);break;case"textarea":wf(e,n),i=Iu(e,n),Oe("invalid",e);break;default:i=n}Du(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?jh(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Nh(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ha(e,l):typeof l=="number"&&ha(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(va.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Oe("scroll",e):l!=null&&rd(e,a,l,o))}switch(r){case"input":oo(e),bf(e,n,!1);break;case"textarea":oo(e),xf(e);break;case"option":n.value!=null&&e.setAttribute("value",""+sn(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Zn(e,!!n.multiple,a,!1):n.defaultValue!=null&&Zn(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=us)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)im(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(K(166));if(r=wn(Pa.current),wn(mr.current),go(t)){if(n=t.stateNode,r=t.memoizedProps,n[vr]=t,(a=n.nodeValue!==r)&&(e=_t,e!==null))switch(e.tag){case 3:ho(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ho(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[vr]=t,t.stateNode=n}return ut(t),null;case 13:if(Ae(Ie),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&Ft!==null&&t.mode&1&&!(t.flags&128))Sg(),ci(),t.flags|=98560,a=!1;else if(a=go(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(K(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(K(317));a[vr]=t}else ci(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ut(t),a=!1}else nr!==null&&(mc(nr),nr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?Ge===0&&(Ge=3):$d())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return fi(),uc(e,t),e===null&&Sa(t.stateNode.containerInfo),ut(t),null;case 10:return xd(t.type._context),ut(t),null;case 17:return wt(t.type)&&cs(),ut(t),null;case 19:if(Ae(Ie),a=t.memoizedState,a===null)return ut(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Li(a,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ms(e),o!==null){for(t.flags|=128,Li(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Re(Ie,Ie.current&1|2),t.child}e=e.sibling}a.tail!==null&&Be()>vi&&(t.flags|=128,n=!0,Li(a,!1),t.lanes=4194304)}else{if(!n)if(e=ms(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Li(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ne)return ut(t),null}else 2*Be()-a.renderingStartTime>vi&&r!==1073741824&&(t.flags|=128,n=!0,Li(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Be(),t.sibling=null,r=Ie.current,Re(Ie,n?r&1|2:r&1),t):(ut(t),null);case 22:case 23:return Md(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Tt&1073741824&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function kw(e,t){switch(md(t),t.tag){case 1:return wt(t.type)&&cs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fi(),Ae(bt),Ae(ft),Pd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cd(t),null;case 13:if(Ae(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));ci()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Ie),null;case 4:return fi(),null;case 10:return xd(t.type._context),null;case 22:case 23:return Md(),null;case 24:return null;default:return null}}var bo=!1,dt=!1,Ew=typeof WeakSet=="function"?WeakSet:Set,X=null;function Yn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Le(e,t,n)}else r.current=null}function cc(e,t,r){try{r()}catch(n){Le(e,t,n)}}var cp=!1;function Cw(e,t){if(qu=os,e=ug(),hd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,p=e,f=null;t:for(;;){for(var h;p!==r||i!==0&&p.nodeType!==3||(s=o+i),p!==a||n!==0&&p.nodeType!==3||(l=o+n),p.nodeType===3&&(o+=p.nodeValue.length),(h=p.firstChild)!==null;)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++u===i&&(s=o),f===a&&++c===n&&(l=o),(h=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gu={focusedElem:e,selectionRange:r},os=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var b=m.memoizedProps,x=m.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:Zt(t.type,b),x);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(k){Le(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return m=cp,cp=!1,m}function sa(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&cc(t,r,a)}i=i.next}while(i!==n)}}function Us(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function dc(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function am(e){var t=e.alternate;t!==null&&(e.alternate=null,am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vr],delete t[Ea],delete t[Qu],delete t[sw],delete t[lw])),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 om(e){return e.tag===5||e.tag===3||e.tag===4}function dp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(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 fc(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=us));else if(n!==4&&(e=e.child,e!==null))for(fc(e,t,r),e=e.sibling;e!==null;)fc(e,t,r),e=e.sibling}function pc(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(pc(e,t,r),e=e.sibling;e!==null;)pc(e,t,r),e=e.sibling}var tt=null,er=!1;function Hr(e,t,r){for(r=r.child;r!==null;)sm(e,t,r),r=r.sibling}function sm(e,t,r){if(gr&&typeof gr.onCommitFiberUnmount=="function")try{gr.onCommitFiberUnmount(Ds,r)}catch{}switch(r.tag){case 5:dt||Yn(r,t);case 6:var n=tt,i=er;tt=null,Hr(e,t,r),tt=n,er=i,tt!==null&&(er?(e=tt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):tt.removeChild(r.stateNode));break;case 18:tt!==null&&(er?(e=tt,r=r.stateNode,e.nodeType===8?jl(e.parentNode,r):e.nodeType===1&&jl(e,r),ba(e)):jl(tt,r.stateNode));break;case 4:n=tt,i=er,tt=r.stateNode.containerInfo,er=!0,Hr(e,t,r),tt=n,er=i;break;case 0:case 11:case 14:case 15:if(!dt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&cc(r,t,o),i=i.next}while(i!==n)}Hr(e,t,r);break;case 1:if(!dt&&(Yn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Le(r,t,s)}Hr(e,t,r);break;case 21:Hr(e,t,r);break;case 22:r.mode&1?(dt=(n=dt)||r.memoizedState!==null,Hr(e,t,r),dt=n):Hr(e,t,r);break;default:Hr(e,t,r)}}function fp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ew),t.forEach(function(n){var i=Iw.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:tt=s.stateNode,er=!1;break e;case 3:tt=s.stateNode.containerInfo,er=!0;break e;case 4:tt=s.stateNode.containerInfo,er=!0;break e}s=s.return}if(tt===null)throw Error(K(160));sm(a,o,i),tt=null,er=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Le(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}function lm(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(t,e),fr(e),n&4){try{sa(3,e,e.return),Us(3,e)}catch(b){Le(e,e.return,b)}try{sa(5,e,e.return)}catch(b){Le(e,e.return,b)}}break;case 1:Qt(t,e),fr(e),n&512&&r!==null&&Yn(r,r.return);break;case 5:if(Qt(t,e),fr(e),n&512&&r!==null&&Yn(r,r.return),e.flags&32){var i=e.stateNode;try{ha(i,"")}catch(b){Le(e,e.return,b)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&Oh(i,a),Mu(s,o);var u=Mu(s,a);for(o=0;o<l.length;o+=2){var c=l[o],p=l[o+1];c==="style"?jh(i,p):c==="dangerouslySetInnerHTML"?Nh(i,p):c==="children"?ha(i,p):rd(i,c,p,u)}switch(s){case"input":Au(i,a);break;case"textarea":_h(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Zn(i,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?Zn(i,!!a.multiple,a.defaultValue,!0):Zn(i,!!a.multiple,a.multiple?[]:"",!1))}i[Ea]=a}catch(b){Le(e,e.return,b)}}break;case 6:if(Qt(t,e),fr(e),n&4){if(e.stateNode===null)throw Error(K(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(b){Le(e,e.return,b)}}break;case 3:if(Qt(t,e),fr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(b){Le(e,e.return,b)}break;case 4:Qt(t,e),fr(e);break;case 13:Qt(t,e),fr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(jd=Be())),n&4&&fp(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(dt=(u=dt)||c,Qt(t,e),dt=u):Qt(t,e),fr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(X=e,c=e.child;c!==null;){for(p=X=c;X!==null;){switch(f=X,h=f.child,f.tag){case 0:case 11:case 14:case 15:sa(4,f,f.return);break;case 1:Yn(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(b){Le(n,r,b)}}break;case 5:Yn(f,f.return);break;case 22:if(f.memoizedState!==null){vp(p);continue}}h!==null?(h.return=f,X=h):vp(p)}c=c.sibling}e:for(c=null,p=e;;){if(p.tag===5){if(c===null){c=p;try{i=p.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=p.stateNode,l=p.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Ih("display",o))}catch(b){Le(e,e.return,b)}}}else if(p.tag===6){if(c===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(b){Le(e,e.return,b)}}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;c===p&&(c=null),p=p.return}c===p&&(c=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Qt(t,e),fr(e),n&4&&fp(e);break;case 21:break;default:Qt(t,e),fr(e)}}function fr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(om(r)){var n=r;break e}r=r.return}throw Error(K(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(ha(i,""),n.flags&=-33);var a=dp(e);pc(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=dp(e);fc(e,s,o);break;default:throw Error(K(161))}}catch(l){Le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pw(e,t,r){X=e,um(e)}function um(e,t,r){for(var n=(e.mode&1)!==0;X!==null;){var i=X,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||bo;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||dt;s=bo;var u=dt;if(bo=o,(dt=l)&&!u)for(X=i;X!==null;)o=X,l=o.child,o.tag===22&&o.memoizedState!==null?hp(i):l!==null?(l.return=o,X=l):hp(i);for(;a!==null;)X=a,um(a),a=a.sibling;X=i,bo=s,dt=u}pp(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,X=a):pp(e)}}function pp(e){for(;X!==null;){var t=X;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dt||Us(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!dt)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Zt(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Qf(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Qf(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var p=c.dehydrated;p!==null&&ba(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}dt||t.flags&512&&dc(t)}catch(f){Le(t,t.return,f)}}if(t===e){X=null;break}if(r=t.sibling,r!==null){r.return=t.return,X=r;break}X=t.return}}function vp(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var r=t.sibling;if(r!==null){r.return=t.return,X=r;break}X=t.return}}function hp(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Us(4,t)}catch(l){Le(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Le(t,i,l)}}var a=t.return;try{dc(t)}catch(l){Le(t,a,l)}break;case 5:var o=t.return;try{dc(t)}catch(l){Le(t,o,l)}}}catch(l){Le(t,t.return,l)}if(t===e){X=null;break}var s=t.sibling;if(s!==null){s.return=t.return,X=s;break}X=t.return}}var Rw=Math.ceil,ws=Mr.ReactCurrentDispatcher,Nd=Mr.ReactCurrentOwner,Kt=Mr.ReactCurrentBatchConfig,he=0,Ze=null,Ke=null,rt=0,Tt=0,Xn=cn(0),Ge=0,Oa=null,Tn=0,Ws=0,Id=0,la=null,mt=null,jd=0,vi=1/0,Rr=null,xs=!1,vc=null,nn=null,wo=!1,Yr=null,Ss=0,ua=0,hc=null,Go=-1,Yo=0;function vt(){return he&6?Be():Go!==-1?Go:Go=Be()}function an(e){return e.mode&1?he&2&&rt!==0?rt&-rt:cw.transition!==null?(Yo===0&&(Yo=qh()),Yo):(e=xe,e!==0||(e=window.event,e=e===void 0?16:eg(e.type)),e):1}function or(e,t,r,n){if(50<ua)throw ua=0,hc=null,Error(K(185));Ma(e,r,n),(!(he&2)||e!==Ze)&&(e===Ze&&(!(he&2)&&(Ws|=r),Ge===4&&qr(e,rt)),xt(e,n),r===1&&he===0&&!(t.mode&1)&&(vi=Be()+500,Vs&&dn()))}function xt(e,t){var r=e.callbackNode;cb(e,t);var n=as(e,e===Ze?rt:0);if(n===0)r!==null&&Ef(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Ef(r),t===1)e.tag===0?uw(gp.bind(null,e)):bg(gp.bind(null,e)),aw(function(){!(he&6)&&dn()}),r=null;else{switch(Gh(n)){case 1:r=sd;break;case 4:r=Wh;break;case 16:r=is;break;case 536870912:r=Kh;break;default:r=is}r=mm(r,cm.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function cm(e,t){if(Go=-1,Yo=0,he&6)throw Error(K(327));var r=e.callbackNode;if(ii()&&e.callbackNode!==r)return null;var n=as(e,e===Ze?rt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=ks(e,n);else{t=n;var i=he;he|=2;var a=fm();(Ze!==e||rt!==t)&&(Rr=null,vi=Be()+500,kn(e,t));do try{Ow();break}catch(s){dm(e,s)}while(!0);wd(),ws.current=a,he=i,Ke!==null?t=0:(Ze=null,rt=0,t=Ge)}if(t!==0){if(t===2&&(i=Hu(e),i!==0&&(n=i,t=gc(e,i))),t===1)throw r=Oa,kn(e,0),qr(e,n),xt(e,Be()),r;if(t===6)qr(e,n);else{if(i=e.current.alternate,!(n&30)&&!Tw(i)&&(t=ks(e,n),t===2&&(a=Hu(e),a!==0&&(n=a,t=gc(e,a))),t===1))throw r=Oa,kn(e,0),qr(e,n),xt(e,Be()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(K(345));case 2:mn(e,mt,Rr);break;case 3:if(qr(e,n),(n&130023424)===n&&(t=jd+500-Be(),10<t)){if(as(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){vt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xu(mn.bind(null,e,mt,Rr),t);break}mn(e,mt,Rr);break;case 4:if(qr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-ar(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rw(n/1960))-n,10<n){e.timeoutHandle=Xu(mn.bind(null,e,mt,Rr),n);break}mn(e,mt,Rr);break;case 5:mn(e,mt,Rr);break;default:throw Error(K(329))}}}return xt(e,Be()),e.callbackNode===r?cm.bind(null,e):null}function gc(e,t){var r=la;return e.current.memoizedState.isDehydrated&&(kn(e,t).flags|=256),e=ks(e,t),e!==2&&(t=mt,mt=r,t!==null&&mc(t)),e}function mc(e){mt===null?mt=e:mt.push.apply(mt,e)}function Tw(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!sr(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 qr(e,t){for(t&=~Id,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ar(t),n=1<<r;e[r]=-1,t&=~n}}function gp(e){if(he&6)throw Error(K(327));ii();var t=as(e,0);if(!(t&1))return xt(e,Be()),null;var r=ks(e,t);if(e.tag!==0&&r===2){var n=Hu(e);n!==0&&(t=n,r=gc(e,n))}if(r===1)throw r=Oa,kn(e,0),qr(e,t),xt(e,Be()),r;if(r===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mn(e,mt,Rr),xt(e,Be()),null}function Dd(e,t){var r=he;he|=1;try{return e(t)}finally{he=r,he===0&&(vi=Be()+500,Vs&&dn())}}function Fn(e){Yr!==null&&Yr.tag===0&&!(he&6)&&ii();var t=he;he|=1;var r=Kt.transition,n=xe;try{if(Kt.transition=null,xe=1,e)return e()}finally{xe=n,Kt.transition=r,he=t,!(he&6)&&dn()}}function Md(){Tt=Xn.current,Ae(Xn)}function kn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,iw(r)),Ke!==null)for(r=Ke.return;r!==null;){var n=r;switch(md(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&cs();break;case 3:fi(),Ae(bt),Ae(ft),Pd();break;case 5:Cd(n);break;case 4:fi();break;case 13:Ae(Ie);break;case 19:Ae(Ie);break;case 10:xd(n.type._context);break;case 22:case 23:Md()}r=r.return}if(Ze=e,Ke=e=on(e.current,null),rt=Tt=t,Ge=0,Oa=null,Id=Ws=Tn=0,mt=la=null,bn!==null){for(t=0;t<bn.length;t++)if(r=bn[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}bn=null}return e}function dm(e,t){do{var r=Ke;try{if(wd(),Wo.current=bs,ys){for(var n=je.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ys=!1}if(Rn=0,Qe=qe=je=null,oa=!1,Ra=0,Nd.current=null,r===null||r.return===null){Ge=1,Oa=t,Ke=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=rt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,p=c.tag;if(!(c.mode&1)&&(p===0||p===11||p===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=np(o);if(h!==null){h.flags&=-257,ip(h,o,s,a,t),h.mode&1&&rp(a,u,t),t=h,l=u;var m=t.updateQueue;if(m===null){var b=new Set;b.add(l),t.updateQueue=b}else m.add(l);break e}else{if(!(t&1)){rp(a,u,t),$d();break e}l=Error(K(426))}}else if(Ne&&s.mode&1){var x=np(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),ip(x,o,s,a,t),yd(pi(l,s));break e}}a=l=pi(l,s),Ge!==4&&(Ge=2),la===null?la=[a]:la.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=Gg(a,l,t);Xf(a,v);break e;case 1:s=l;var g=a.type,y=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(nn===null||!nn.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t;var k=Yg(a,s,t);Xf(a,k);break e}}a=a.return}while(a!==null)}vm(r)}catch(E){t=E,Ke===r&&r!==null&&(Ke=r=r.return);continue}break}while(!0)}function fm(){var e=ws.current;return ws.current=bs,e===null?bs:e}function $d(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Ze===null||!(Tn&268435455)&&!(Ws&268435455)||qr(Ze,rt)}function ks(e,t){var r=he;he|=2;var n=fm();(Ze!==e||rt!==t)&&(Rr=null,kn(e,t));do try{Fw();break}catch(i){dm(e,i)}while(!0);if(wd(),he=r,ws.current=n,Ke!==null)throw Error(K(261));return Ze=null,rt=0,Ge}function Fw(){for(;Ke!==null;)pm(Ke)}function Ow(){for(;Ke!==null&&!tb();)pm(Ke)}function pm(e){var t=gm(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?vm(e):Ke=t,Nd.current=null}function vm(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=kw(r,t),r!==null){r.flags&=32767,Ke=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Ke=null;return}}else if(r=Sw(r,t,Tt),r!==null){Ke=r;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Ge===0&&(Ge=5)}function mn(e,t,r){var n=xe,i=Kt.transition;try{Kt.transition=null,xe=1,_w(e,t,r,n)}finally{Kt.transition=i,xe=n}return null}function _w(e,t,r,n){do ii();while(Yr!==null);if(he&6)throw Error(K(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(db(e,a),e===Ze&&(Ke=Ze=null,rt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||wo||(wo=!0,mm(is,function(){return ii(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Kt.transition,Kt.transition=null;var o=xe;xe=1;var s=he;he|=4,Nd.current=null,Cw(e,r),lm(r,e),Qb(Gu),os=!!qu,Gu=qu=null,e.current=r,Pw(r),rb(),he=s,xe=o,Kt.transition=a}else e.current=r;if(wo&&(wo=!1,Yr=e,Ss=i),a=e.pendingLanes,a===0&&(nn=null),ab(r.stateNode),xt(e,Be()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(xs)throw xs=!1,e=vc,vc=null,e;return Ss&1&&e.tag!==0&&ii(),a=e.pendingLanes,a&1?e===hc?ua++:(ua=0,hc=e):ua=0,dn(),null}function ii(){if(Yr!==null){var e=Gh(Ss),t=Kt.transition,r=xe;try{if(Kt.transition=null,xe=16>e?16:e,Yr===null)var n=!1;else{if(e=Yr,Yr=null,Ss=0,he&6)throw Error(K(331));var i=he;for(he|=4,X=e.current;X!==null;){var a=X,o=a.child;if(X.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(X=u;X!==null;){var c=X;switch(c.tag){case 0:case 11:case 15:sa(8,c,a)}var p=c.child;if(p!==null)p.return=c,X=p;else for(;X!==null;){c=X;var f=c.sibling,h=c.return;if(am(c),c===u){X=null;break}if(f!==null){f.return=h,X=f;break}X=h}}}var m=a.alternate;if(m!==null){var b=m.child;if(b!==null){m.child=null;do{var x=b.sibling;b.sibling=null,b=x}while(b!==null)}}X=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,X=o;else e:for(;X!==null;){if(a=X,a.flags&2048)switch(a.tag){case 0:case 11:case 15:sa(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,X=v;break e}X=a.return}}var g=e.current;for(X=g;X!==null;){o=X;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,X=y;else e:for(o=g;X!==null;){if(s=X,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Us(9,s)}}catch(E){Le(s,s.return,E)}if(s===o){X=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,X=k;break e}X=s.return}}if(he=i,dn(),gr&&typeof gr.onPostCommitFiberRoot=="function")try{gr.onPostCommitFiberRoot(Ds,e)}catch{}n=!0}return n}finally{xe=r,Kt.transition=t}}return!1}function mp(e,t,r){t=pi(r,t),t=Gg(e,t,1),e=rn(e,t,1),t=vt(),e!==null&&(Ma(e,1,t),xt(e,t))}function Le(e,t,r){if(e.tag===3)mp(e,e,r);else for(;t!==null;){if(t.tag===3){mp(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(nn===null||!nn.has(n))){e=pi(r,e),e=Yg(t,e,1),t=rn(t,e,1),e=vt(),t!==null&&(Ma(t,1,e),xt(t,e));break}}t=t.return}}function Aw(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&r,Ze===e&&(rt&r)===r&&(Ge===4||Ge===3&&(rt&130023424)===rt&&500>Be()-jd?kn(e,0):Id|=r),xt(e,t)}function hm(e,t){t===0&&(e.mode&1?(t=uo,uo<<=1,!(uo&130023424)&&(uo=4194304)):t=1);var r=vt();e=Ir(e,t),e!==null&&(Ma(e,t,r),xt(e,r))}function Nw(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),hm(e,r)}function Iw(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(K(314))}n!==null&&n.delete(t),hm(e,r)}var gm;gm=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)yt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return yt=!1,xw(e,t,r);yt=!!(e.flags&131072)}else yt=!1,Ne&&t.flags&1048576&&wg(t,ps,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;qo(e,t),e=t.pendingProps;var i=ui(t,ft.current);ni(t,r),i=Td(null,t,n,e,i,r);var a=Fd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(n)?(a=!0,ds(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kd(t),i.updater=Bs,t.stateNode=i,i._reactInternals=t,nc(t,n,e,r),t=oc(null,t,n,!0,a,r)):(t.tag=0,Ne&&a&&gd(t),pt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(qo(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Dw(n),e=Zt(n,e),i){case 0:t=ac(null,t,n,e,r);break e;case 1:t=sp(null,t,n,e,r);break e;case 11:t=ap(null,t,n,e,r);break e;case 14:t=op(null,t,n,Zt(n.type,e),r);break e}throw Error(K(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zt(n,i),ac(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zt(n,i),sp(e,t,n,i,r);case 3:e:{if(Zg(t),e===null)throw Error(K(387));n=t.pendingProps,a=t.memoizedState,i=a.element,Pg(e,t),gs(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=pi(Error(K(423)),t),t=lp(e,t,n,r,i);break e}else if(n!==i){i=pi(Error(K(424)),t),t=lp(e,t,n,r,i);break e}else for(Ft=tn(t.stateNode.containerInfo.firstChild),_t=t,Ne=!0,nr=null,r=Eg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ci(),n===i){t=jr(e,t,r);break e}pt(e,t,n,r)}t=t.child}return t;case 5:return Rg(t),e===null&&ec(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Yu(n,i)?o=null:a!==null&&Yu(n,a)&&(t.flags|=32),Jg(e,t),pt(e,t,o,r),t.child;case 6:return e===null&&ec(t),null;case 13:return em(e,t,r);case 4:return Ed(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=di(t,null,n,r):pt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zt(n,i),ap(e,t,n,i,r);case 7:return pt(e,t,t.pendingProps,r),t.child;case 8:return pt(e,t,t.pendingProps.children,r),t.child;case 12:return pt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Re(vs,n._currentValue),n._currentValue=o,a!==null)if(sr(a.value,o)){if(a.children===i.children&&!bt.current){t=jr(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=_r(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),tc(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(K(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),tc(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}pt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ni(t,r),i=Gt(i),n=n(i),t.flags|=1,pt(e,t,n,r),t.child;case 14:return n=t.type,i=Zt(n,t.pendingProps),i=Zt(n.type,i),op(e,t,n,i,r);case 15:return Xg(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zt(n,i),qo(e,t),t.tag=1,wt(n)?(e=!0,ds(t)):e=!1,ni(t,r),qg(t,n,i),nc(t,n,i,r),oc(null,t,n,!0,e,r);case 19:return tm(e,t,r);case 22:return Qg(e,t,r)}throw Error(K(156,t.tag))};function mm(e,t){return Uh(e,t)}function jw(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,r,n){return new jw(e,t,r,n)}function Ld(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dw(e){if(typeof e=="function")return Ld(e)?1:0;if(e!=null){if(e=e.$$typeof,e===id)return 11;if(e===ad)return 14}return 2}function on(e,t){var r=e.alternate;return r===null?(r=Wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Xo(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Ld(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case zn:return En(r.children,i,a,t);case nd:o=8,i|=8;break;case Ru:return e=Wt(12,r,t,i|2),e.elementType=Ru,e.lanes=a,e;case Tu:return e=Wt(13,r,t,i),e.elementType=Tu,e.lanes=a,e;case Fu:return e=Wt(19,r,t,i),e.elementType=Fu,e.lanes=a,e;case Rh:return Ks(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ch:o=10;break e;case Ph:o=9;break e;case id:o=11;break e;case ad:o=14;break e;case Ur:o=16,n=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Wt(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function En(e,t,r,n){return e=Wt(7,e,n,t),e.lanes=r,e}function Ks(e,t,r,n){return e=Wt(22,e,n,t),e.elementType=Rh,e.lanes=r,e.stateNode={isHidden:!1},e}function Bl(e,t,r){return e=Wt(6,e,null,t),e.lanes=r,e}function Ul(e,t,r){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mw(e,t,r,n,i){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=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zd(e,t,r,n,i,a,o,s,l){return e=new Mw(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Wt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},kd(a),e}function $w(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ln,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function ym(e){if(!e)return ln;e=e._reactInternals;e:{if(An(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var r=e.type;if(wt(r))return yg(e,r,t)}return t}function bm(e,t,r,n,i,a,o,s,l){return e=zd(r,n,!0,e,i,a,o,s,l),e.context=ym(null),r=e.current,n=vt(),i=an(r),a=_r(n,i),a.callback=t??null,rn(r,a,i),e.current.lanes=i,Ma(e,i,n),xt(e,n),e}function qs(e,t,r,n){var i=t.current,a=vt(),o=an(i);return r=ym(r),t.context===null?t.context=r:t.pendingContext=r,t=_r(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=rn(i,t,o),e!==null&&(or(e,i,o,a),Uo(e,i,o)),o}function Es(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 yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Vd(e,t){yp(e,t),(e=e.alternate)&&yp(e,t)}function Lw(){return null}var wm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hd(e){this._internalRoot=e}Gs.prototype.render=Hd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));qs(e,t,null,null)};Gs.prototype.unmount=Hd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fn(function(){qs(null,e,null,null)}),t[Nr]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qh();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Kr.length&&t!==0&&t<Kr[r].priority;r++);Kr.splice(r,0,e),r===0&&Zh(e)}};function Bd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ys(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bp(){}function zw(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=Es(o);a.call(u)}}var o=bm(t,n,e,0,null,!1,!1,"",bp);return e._reactRootContainer=o,e[Nr]=o.current,Sa(e.nodeType===8?e.parentNode:e),Fn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=Es(l);s.call(u)}}var l=zd(e,0,!1,null,null,!1,!1,"",bp);return e._reactRootContainer=l,e[Nr]=l.current,Sa(e.nodeType===8?e.parentNode:e),Fn(function(){qs(t,l,r,n)}),l}function Xs(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=Es(o);s.call(l)}}qs(t,o,e,i)}else o=zw(r,t,e,i,n);return Es(o)}Yh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=qi(t.pendingLanes);r!==0&&(ld(t,r|1),xt(t,Be()),!(he&6)&&(vi=Be()+500,dn()))}break;case 13:Fn(function(){var n=Ir(e,1);if(n!==null){var i=vt();or(n,e,1,i)}}),Vd(e,1)}};ud=function(e){if(e.tag===13){var t=Ir(e,134217728);if(t!==null){var r=vt();or(t,e,134217728,r)}Vd(e,134217728)}};Xh=function(e){if(e.tag===13){var t=an(e),r=Ir(e,t);if(r!==null){var n=vt();or(r,e,t,n)}Vd(e,t)}};Qh=function(){return xe};Jh=function(e,t){var r=xe;try{return xe=e,t()}finally{xe=r}};Lu=function(e,t,r){switch(t){case"input":if(Au(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=zs(n);if(!i)throw Error(K(90));Fh(n),Au(n,i)}}}break;case"textarea":_h(e,r);break;case"select":t=r.value,t!=null&&Zn(e,!!r.multiple,t,!1)}};$h=Dd;Lh=Fn;var Vw={usingClientEntryPoint:!1,Events:[La,Un,zs,Dh,Mh,Dd]},zi={findFiberByHostInstance:yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hw={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Hh(e),e===null?null:e.stateNode},findFiberByHostInstance:zi.findFiberByHostInstance||Lw,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 xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xo.isDisabled&&xo.supportsFiber)try{Ds=xo.inject(Hw),gr=xo}catch{}}It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vw;It.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bd(t))throw Error(K(200));return $w(e,t,null,r)};It.createRoot=function(e,t){if(!Bd(e))throw Error(K(299));var r=!1,n="",i=wm;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zd(e,1,!1,null,null,r,!1,n,i),e[Nr]=t.current,Sa(e.nodeType===8?e.parentNode:e),new Hd(t)};It.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(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=Hh(t),e=e===null?null:e.stateNode,e};It.flushSync=function(e){return Fn(e)};It.hydrate=function(e,t,r){if(!Ys(t))throw Error(K(200));return Xs(null,e,t,!0,r)};It.hydrateRoot=function(e,t,r){if(!Bd(e))throw Error(K(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=wm;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=bm(t,null,e,1,r??null,i,!1,a,o),e[Nr]=t.current,Sa(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Gs(t)};It.render=function(e,t,r){if(!Ys(t))throw Error(K(200));return Xs(null,e,t,!1,r)};It.unmountComponentAtNode=function(e){if(!Ys(e))throw Error(K(40));return e._reactRootContainer?(Fn(function(){Xs(null,null,e,!1,function(){e._reactRootContainer=null,e[Nr]=null})}),!0):!1};It.unstable_batchedUpdates=Dd;It.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ys(r))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return Xs(e,t,r,!1,n)};It.version="18.3.1-next-f1338f8080-20240426";function xm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xm)}catch(e){console.error(e)}}xm(),xh.exports=It;var Qs=xh.exports;const hi=On(Qs);var Sm,wp=Qs;Sm=wp.createRoot,wp.hydrateRoot;class Je extends Error{constructor(t,r){super(r),this.name="ExpressionError",this.code=t}}const km=512,Ud=32,Em=new Set(["globalThis","window","process","Function","eval","this","constructor","__proto__","prototype","require","module","exports","document","self","Deno","Buffer","setTimeout","setInterval","fetch","XMLHttpRequest"]),Bw=new Set(["isEmpty","len","includes","min","max","abs","str","num","bool"]);function Uw(e){return/[A-Za-z_$]/.test(e)}function Ww(e){return/[A-Za-z0-9_$]/.test(e)}function Kw(e){const t=[];let r=0;for(;r<e.length;){const n=e[r];if(/\s/.test(n)){r+=1;continue}if(n==="("){t.push({type:"lparen",value:n}),r+=1;continue}if(n===")"){t.push({type:"rparen",value:n}),r+=1;continue}if(n===","){t.push({type:"comma",value:n}),r+=1;continue}if(n==="'"||n==='"'){const o=n;r+=1;let s="";for(;r<e.length&&e[r]!==o;){if(e[r]==="\\"&&r+1<e.length){s+=e[r+1],r+=2;continue}s+=e[r],r+=1}if(r>=e.length)throw new Je("EXPR_UNTERMINATED_STRING","字符串未正确结束");r+=1,t.push({type:"string",value:s});continue}if(/[0-9]/.test(n)||n==="."&&/[0-9]/.test(e[r+1]||"")){let o="";for(;r<e.length&&/[0-9.]/.test(e[r]);)o+=e[r],r+=1;if(!/^\d+(\.\d+)?$/.test(o))throw new Je("EXPR_INVALID_NUMBER",`非法数字: ${o}`);t.push({type:"number",value:o});continue}const i=e.slice(r,r+2),a=e.slice(r,r+3);if(["===","!=="].includes(a)){t.push({type:"op",value:a}),r+=3;continue}if(["==","!=","<=",">=","&&","||"].includes(i)){t.push({type:"op",value:i}),r+=2;continue}if(["+","-","*","/","%","<",">","!"].includes(n)){t.push({type:"op",value:n}),r+=1;continue}if(n==="."||n==="["||n==="]"||n==="{"||n==="}"||n===";")throw new Je("EXPR_FORBIDDEN_TOKEN",`禁止的符号: ${n}`);if(Uw(n)){let o="";for(;r<e.length&&Ww(e[r]);)o+=e[r],r+=1;t.push({type:"ident",value:o});continue}throw new Je("EXPR_UNEXPECTED_CHAR",`意外字符: ${n}`)}return t.push({type:"eof",value:""}),t}class qw{constructor(t,r){this.tokens=t,this.maxDepth=r,this.pos=0}parse(){const t=this.parseOr(0);if(this.current().type!=="eof")throw new Je("EXPR_TRAILING",`多余内容: ${this.current().value}`);return t}current(){return this.tokens[this.pos]||{type:"eof",value:""}}eat(){const t=this.current();return this.pos+=1,t}parseOr(t){this.assertDepth(t);let r=this.parseAnd(t+1);for(;this.current().type==="op"&&this.current().value==="||";){const n=this.eat().value,i=this.parseAnd(t+1);r={kind:"binary",op:n,left:r,right:i}}return r}parseAnd(t){this.assertDepth(t);let r=this.parseEquality(t+1);for(;this.current().type==="op"&&this.current().value==="&&";){const n=this.eat().value,i=this.parseEquality(t+1);r={kind:"binary",op:n,left:r,right:i}}return r}parseEquality(t){this.assertDepth(t);let r=this.parseCompare(t+1);for(;this.current().type==="op"&&["==","!=","===","!=="].includes(this.current().value);){const n=this.eat().value,i=this.parseCompare(t+1);r={kind:"binary",op:n,left:r,right:i}}return r}parseCompare(t){this.assertDepth(t);let r=this.parseAdd(t+1);for(;this.current().type==="op"&&["<",">","<=",">="].includes(this.current().value);){const n=this.eat().value,i=this.parseAdd(t+1);r={kind:"binary",op:n,left:r,right:i}}return r}parseAdd(t){this.assertDepth(t);let r=this.parseMul(t+1);for(;this.current().type==="op"&&["+","-"].includes(this.current().value);){const n=this.eat().value,i=this.parseMul(t+1);r={kind:"binary",op:n,left:r,right:i}}return r}parseMul(t){this.assertDepth(t);let r=this.parseUnary(t+1);for(;this.current().type==="op"&&["*","/","%"].includes(this.current().value);){const n=this.eat().value,i=this.parseUnary(t+1);r={kind:"binary",op:n,left:r,right:i}}return r}parseUnary(t){return this.assertDepth(t),this.current().type==="op"&&["!","-","+"].includes(this.current().value)?{kind:"unary",op:this.eat().value,arg:this.parseUnary(t+1)}:this.parsePrimary(t+1)}parsePrimary(t){this.assertDepth(t);const r=this.current();if(r.type==="number")return this.eat(),{kind:"literal",value:Number(r.value)};if(r.type==="string")return this.eat(),{kind:"literal",value:r.value};if(r.type==="ident"){if(this.eat(),r.value==="true")return{kind:"literal",value:!0};if(r.value==="false")return{kind:"literal",value:!1};if(r.value==="null")return{kind:"literal",value:null};if(r.value==="undefined")return{kind:"literal",value:void 0};if(Em.has(r.value))throw new Je("EXPR_FORBIDDEN_IDENT",`禁止标识符: ${r.value}`);if(this.current().type==="lparen"){if(!Bw.has(r.value))throw new Je("EXPR_FORBIDDEN_CALL",`非白名单函数: ${r.value}`);this.eat();const n=[];if(this.current().type!=="rparen")for(n.push(this.parseOr(t+1));this.current().type==="comma";)this.eat(),n.push(this.parseOr(t+1));if(this.current().type!=="rparen")throw new Je("EXPR_MISSING_RPAREN","缺少 )");return this.eat(),{kind:"call",name:r.value,args:n}}return{kind:"ident",name:r.value}}if(r.type==="lparen"){this.eat();const n=this.parseOr(t+1);if(this.current().type!=="rparen")throw new Je("EXPR_MISSING_RPAREN","缺少 )");return this.eat(),n}throw new Je("EXPR_UNEXPECTED_TOKEN",`意外 token: ${r.value||r.type}`)}assertDepth(t){if(t>this.maxDepth)throw new Je("EXPR_TOO_DEEP",`表达式嵌套超过 ${this.maxDepth}`)}}function Gw(e,t){switch(e){case"isEmpty":{const r=t[0];return r==null||r===""||Array.isArray(r)&&r.length===0}case"len":{const r=t[0];return typeof r=="string"||Array.isArray(r)?r.length:0}case"includes":{const r=t[0],n=t[1];return typeof r=="string"?r.includes(String(n)):Array.isArray(r)?r.includes(n):!1}case"min":return Math.min(...t.map(Number));case"max":return Math.max(...t.map(Number));case"abs":return Math.abs(Number(t[0]));case"str":return String(t[0]??"");case"num":return Number(t[0]);case"bool":return t[0]==="0"?!1:!!t[0];default:throw new Je("EXPR_FORBIDDEN_CALL",`非白名单函数: ${e}`)}}function Pr(e,t){switch(e.kind){case"literal":return e.value;case"ident":{if(Em.has(e.name))throw new Je("EXPR_FORBIDDEN_IDENT",`禁止标识符: ${e.name}`);if(!(e.name in t))return;const r=t[e.name];if(typeof r=="function")throw new Je("EXPR_FORBIDDEN_VALUE",`字段 ${e.name} 不可为函数`);return r}case"unary":{const r=Pr(e.arg,t);if(e.op==="!")return!r;if(e.op==="-")return-Number(r);if(e.op==="+")return+Number(r);throw new Je("EXPR_UNKNOWN_OP",`未知一元运算: ${e.op}`)}case"binary":{if(e.op==="&&"){const i=Pr(e.left,t);return i&&Pr(e.right,t)}if(e.op==="||"){const i=Pr(e.left,t);return i||Pr(e.right,t)}const r=Pr(e.left,t),n=Pr(e.right,t);switch(e.op){case"==":case"===":return r===n;case"!=":case"!==":return r!==n;case"<":return r<n;case">":return r>n;case"<=":return r<=n;case">=":return r>=n;case"+":return r+n;case"-":return Number(r)-Number(n);case"*":return Number(r)*Number(n);case"/":return Number(r)/Number(n);case"%":return Number(r)%Number(n);default:throw new Je("EXPR_UNKNOWN_OP",`未知运算: ${e.op}`)}}case"call":return Gw(e.name,e.args.map(r=>Pr(r,t)))}}function Cm(e,t=Ud){const r=Kw(e);return new qw(r,t).parse()}function zO(e,t,r){const n=(r==null?void 0:r.maxLength)??km,i=(r==null?void 0:r.maxDepth)??Ud;if(typeof e!="string")throw new Je("EXPR_NOT_STRING","表达式必须是字符串");if(e.length>n)throw new Je("EXPR_TOO_LONG",`表达式长度超过 ${n}`);const a=Cm(e,i);return Pr(a,t||{})}function Yw(e,t){if(typeof e!="string")return!1;const r=(t==null?void 0:t.maxLength)??km;if(e.length>r)return!1;try{return Cm(e,(t==null?void 0:t.maxDepth)??Ud),!0}catch{return!1}}const Xw=new Set(["input","textarea","number","idcard","phone","bankCard","search","select","cascader","address","address5","addressPinyin","date","dateRange","verifyCode","imageUpload","slider","agreement","signature","task","custom","list"]),Qw=new Set(["required","regex","logic","byteLength","custom"]),Jw=new Set(["string","number","boolean","array","object","no"]),Zw=new Set(["value","visible","disabled"]);function _e(e,t,r){return{code:e,path:t,message:r}}function Wl(e,t,r){Yw(e)||r.push(_e("UNSAFE_EXPRESSION",t,`不可信表达式不是合法 safe-v1: ${e.slice(0,80)}`))}function ex(e){const t=[];if(!e||!Array.isArray(e.groups))return t;for(const r of e.groups)if(!(!r||!Array.isArray(r.items)))for(const n of r.items)n&&typeof n=="object"&&typeof n.key=="string"&&n.key&&t.push(n.key);return t}function Pm(e,t,r,n,i){if(!e||typeof e!="object"){n.push(_e("FIELD_NOT_OBJECT",t,`${t} 不是合法对象`));return}!e.key||typeof e.key!="string"?n.push(_e("FIELD_MISSING_KEY",t,`${t} 缺少 key`)):r.filter(o=>o===e.key).length>1&&n.push(_e("DUPLICATE_FIELD_KEY",`${t}.key`,`字段 key=${e.key} 重复`));const a=e.key||t;e.type?Xw.has(e.type)||n.push(_e("FIELD_INVALID_TYPE",`${t}.type`,`字段 ${a} 的 type=${e.type} 不合法`)):n.push(_e("FIELD_MISSING_TYPE",`${t}.type`,`字段 ${a} 缺少 type`)),e.valueType!=null&&!Jw.has(e.valueType)&&n.push(_e("FIELD_INVALID_VALUE_TYPE",`${t}.valueType`,`字段 ${a} 的 valueType=${e.valueType} 不合法`)),e.required!=null&&typeof e.required!="boolean"&&n.push(_e("FIELD_REQUIRED_NOT_BOOLEAN",`${t}.required`,`字段 ${a} 的 required 必须是布尔值`)),e.rules!=null&&(Array.isArray(e.rules)?e.rules.forEach((o,s)=>{const l=`${t}.rules[${s}]`;if(!o||typeof o!="object"){n.push(_e("RULE_INVALID",l,`字段 ${a} rules[${s}] 不是合法对象`));return}Qw.has(o.type)||n.push(_e("RULE_INVALID_TYPE",`${l}.type`,`字段 ${a} rules[${s}].type=${o.type} 不合法`)),o.message||n.push(_e("RULE_MISSING_MESSAGE",`${l}.message`,`字段 ${a} rules[${s}] 缺少 message`)),i&&o.type==="logic"&&typeof o.logic=="string"&&Wl(o.logic,`${l}.logic`,n)}):n.push(_e("RULES_NOT_ARRAY",`${t}.rules`,`字段 ${a} 的 rules 必须是数组`))),e.relations!=null&&(Array.isArray(e.relations)?e.relations.forEach((o,s)=>{const l=`${t}.relations[${s}]`;if(!o||typeof o!="object"){n.push(_e("RELATION_INVALID",l,`字段 ${a} relations[${s}] 不是合法对象`));return}Zw.has(o.effect)||n.push(_e("RELATION_INVALID_EFFECT",`${l}.effect`,`字段 ${a} relations[${s}].effect=${o.effect} 不合法`)),o.target&&!r.includes(o.target)&&n.push(_e("RELATION_TARGET_MISSING",`${l}.target`,`字段 ${a} 联动 target=${o.target} 不存在`)),i&&typeof o.logic=="string"&&Wl(o.logic,`${l}.logic`,n)}):n.push(_e("RELATIONS_NOT_ARRAY",`${t}.relations`,`字段 ${a} 的 relations 必须是数组`))),i&&typeof e.showValueTemplate=="string"&&Wl(e.showValueTemplate,`${t}.showValueTemplate`,n),e.props!=null&&typeof e.props!="object"&&n.push(_e("PROPS_NOT_OBJECT",`${t}.props`,`字段 ${a} 的 props 必须是对象`)),e.type==="list"&&(!Array.isArray(e.subItems)||e.subItems.length===0?n.push(_e("LIST_MISSING_SUBITEMS",`${t}.subItems`,`list 字段 ${a} 缺少 subItems 数组`)):e.subItems.forEach((o,s)=>{Pm(o,`${t}.subItems[${s}]`,r,n,i)}),e.listMeta!=null&&typeof e.listMeta!="object"&&n.push(_e("LIST_META_INVALID",`${t}.listMeta`,`list 字段 ${a} 的 listMeta 必须是对象`)))}function Rm(e,t={}){const r=[];if(!e||typeof e!="object")return{valid:!1,issues:[_e("SCHEMA_NOT_OBJECT","","schema 不是合法对象")]};const n=e;if(!Array.isArray(n.groups))return{valid:!1,issues:[_e("GROUPS_NOT_ARRAY","groups","schema.groups 必须是数组")]};n.groups.length===0&&!t.allowEmpty&&r.push(_e("GROUPS_EMPTY","groups","schema 没有任何分组"));const i=ex(n),a=!!t.untrustedExpressions;return n.groups.forEach((o,s)=>{const l=`groups[${s}]`;if(!o||typeof o!="object"){r.push(_e("GROUP_NOT_OBJECT",l,"存在非法分组对象"));return}if(!o.key||typeof o.key!="string"){r.push(_e("GROUP_MISSING_KEY",`${l}.key`,"存在缺少 key 的分组"));return}if(!Array.isArray(o.items)){r.push(_e("GROUP_ITEMS_NOT_ARRAY",`${l}.items`,`分组 ${o.key} 的 items 必须是数组`));return}o.items.forEach((u,c)=>{Pm(u,`${l}.items[${c}]`,i,r,a)})}),{valid:r.length===0,issues:r}}const Yi=["input","textarea","number","idcard","phone","bankCard","search","select","cascader","address","date","dateRange","verifyCode","imageUpload","slider","agreement","list"];function Vi(e,t={},r={}){const n=[...Yi,"address5","addressPinyin","signature","task","custom"],i={};for(const a of n)r[a]?i[a]="unsupported":t[a]?i[a]="partial":e.includes(a)?i[a]="supported":i[a]="unsupported";return i}const tx={web:{platform:"web",version:"2026-09-10.1",layer:"instant-semantic",controls:Vi([...Yi,"signature","task","custom","address5"],{addressPinyin:"拼音地址依赖远端词典"}),features:{formCoreValidation:"supported",localRelations:"supported",remoteRelations:"partial",collectFormData:"supported",taskJump:"partial"},notes:["即时语义预览使用 FormCore;remote API 未配置时不会自动请求"]},"vue-h5":{platform:"vue-h5",version:"2026-09-10.1",layer:"actual-sdk",controls:Vi([...Yi,"task","custom"],{signature:"签名控件在 Vue Host 为部分实现",address5:"五级地址需业务数据源"},{addressPinyin:"Vue H5 P0 未接入拼音地址 SDK"}),features:{formCoreValidation:"supported",localRelations:"supported",remoteRelations:"partial",collectFormData:"supported",taskJump:"partial",isolatedIframeHost:"supported"},notes:["必须在隔离 Preview Host / iframe 中加载 @agentprismform/render-vue,不得混入 Studio 主 bundle","缺 Vue 运行时须报告 runtime_unavailable,FormCore-only 桥接不得称为 actual SDK verified"]},"taro-h5":{platform:"taro-h5",version:"2026-09-10.1",layer:"actual-sdk",controls:Vi([...Yi,"task"],{custom:"自定义控件需业务注入",signature:"Taro H5 签名能力部分支持"},{address5:"P0 未在 Taro Host 验证五级地址",addressPinyin:"P0 未支持"}),features:{formCoreValidation:"supported",localRelations:"supported",remoteRelations:"partial",collectFormData:"supported",taskJump:"partial",isolatedIframeHost:"supported"},notes:["须经 Taro H5 build + @agentprismform/render-taro;缺运行时 → runtime_unavailable;未真实挂载前不得标记为已验证"]},miniapp:{platform:"miniapp",version:"2026-09-10.1",layer:"target-tool",controls:Vi([...Yi,"task"],{signature:"需真机授权与 canvas",custom:"需小程序自定义组件"},{addressPinyin:"小程序端未提供拼音地址",address5:"五级地址需业务云函数"}),features:{formCoreValidation:"supported",localRelations:"supported",remoteRelations:"partial",collectFormData:"supported",taskJump:"partial",wechatDevtoolsPreview:"partial",verifiedOnDevice:"unsupported"},notes:["目标端验证仅在微信开发者工具 / 预览码 / 真机运行后可标记","浏览器外观壳不得称为小程序已验证"]},rn:{platform:"rn",version:"2026-09-10.1",layer:"target-tool",controls:Vi(["input","textarea","number","phone","idcard","select","agreement","search","address","task"],{bankCard:"RN 银行卡键盘部分支持",date:"依赖原生日期选择器",imageUpload:"依赖原生相册权限",list:"子表单布局部分支持"},{cascader:"RN P0 未实现 cascader",address5:"未支持",addressPinyin:"未支持",dateRange:"未支持",verifyCode:"短信通道未接入 Preview App",slider:"未支持",signature:"未支持",custom:"需业务注入"}),features:{formCoreValidation:"supported",localRelations:"supported",remoteRelations:"partial",collectFormData:"supported",taskJump:"partial",previewAppOrSimulator:"partial",verifiedOnDevice:"unsupported"},notes:["P0 仅 Adapter + manifest;模拟器/真机未运行前不得标记已验证"]}};function yr(e){const t=tx[e];if(!t)throw new Error(`Unknown platform: ${e}`);return t}function rx(e){const t=[];return((e==null?void 0:e.groups)||[]).forEach((n,i)=>{(n.items||[]).forEach((a,o)=>{a!=null&&a.type&&t.push({path:`groups[${i}].items[${o}]`,type:String(a.type),key:String(a.key||o)})})}),t}function Qo(e,t){const r=yr(t),n=[];for(const u of rx(e)){const c=r.controls[u.type]||"unsupported";c!=="supported"&&n.push({code:c==="partial"?"CAPABILITY_PARTIAL":"CAPABILITY_UNSUPPORTED",path:u.path,support:c,controlType:u.type,message:c==="partial"?`控件 ${u.key}(${u.type}) 在 ${t} 为 partial,不能标记为已验证`:`控件 ${u.key}(${u.type}) 在 ${t} 不受支持,禁止静默降级为 Input`})}const i=r.features.verifiedOnDevice;i==="unsupported"?n.push({code:"TARGET_NOT_VERIFIED",path:"features.verifiedOnDevice",support:"unsupported",message:`${t} 尚未在目标端工具/模拟器/真机验证,不得标记为目标端已验证`}):i==="partial"&&n.push({code:"TARGET_PARTIAL",path:"features.verifiedOnDevice",support:"partial",message:`${t} 目标端验证流程仅部分可用`}),(r.layer==="actual-sdk"||r.layer==="target-tool")&&(n.some(c=>c.code==="TARGET_NOT_VERIFIED"||c.code==="HOST_NOT_CONFIRMED")||n.push({code:"HOST_NOT_CONFIRMED",path:"runtime.host",support:"partial",message:`${t}(${r.layer})尚未在真实 Preview Host/工具确认运行,不得标记为已验证`}));const a=n.some(u=>u.support==="unsupported"),o=n.some(u=>u.support==="partial"),s=!a&&!o&&r.layer==="instant-semantic";let l="即时语义层能力完整,可标记语义预览验证";return r.layer!=="instant-semantic"&&!a&&!o&&(l=`${r.layer} 控件声明完整,但仍待真实宿主确认(不可标记已验证)`),a?l=`存在 unsupported 能力(${n.filter(u=>u.support==="unsupported").length})`:o&&(l=`存在 partial 能力(${n.filter(u=>u.support==="partial").length})`),{platform:t,manifestVersion:r.version,layer:r.layer,ok:!a,verifiedEligible:s,issues:n,summary:l}}const Tm="2026-09-10.p2.1",nx={miniapp:["wechat-devtools","wechat-preview-qr","wechat-device"],rn:["rn-simulator","rn-device"]};function Fm(e){const t=yr(e.platform),r=e.projectHint||(e.platform==="miniapp"?"demo-miniapp":"demo-rn"),n=e.platform==="miniapp"?[`将本 payload 写入 ${r}/preview/studio-preview-payload.json`,"用微信开发者工具打开项目并编译","使用「预览」或真机调试;工具产出的 evidence 才可写入 receipt","禁止将 self-declared 收据标记为 verified=true"]:[`将本 payload 写入 ${r}/preview/studio-preview-payload.json`,"在 iOS/Android 模拟器或真机启动 demo-rn","确认渲染 revision 与 payload.schemaRevision 一致后由模拟器/真机流程写 receipt","禁止将 self-declared 收据标记为 verified=true"];return{payloadVersion:Tm,platform:e.platform,schemaRevision:e.schemaRevision,capabilityManifestVersion:t.version,schema:e.schema,instructions:n,projectHint:r,createdAt:new Date().toISOString(),verified:!1}}function ix(e,t){const r=[];if(!e||typeof e!="object")return{ok:!1,verified:!1,errors:["receipt must be an object"]};const n=e;String(n.receiptVersion||"")!==Tm&&r.push("receiptVersion mismatch"),n.platform!==t.platform&&r.push("platform mismatch"),String(n.schemaRevision||"")!==t.schemaRevision&&r.push("schemaRevision mismatch (stale or wrong revision)"),String(n.capabilityManifestVersion||"")!==t.capabilityManifestVersion&&r.push("capabilityManifestVersion mismatch");const i=n.evidenceKind;return i==="self-declared"?r.push("self-declared receipts cannot verify"):nx[t.platform].includes(i)||r.push(`invalid evidenceKind for ${t.platform}: ${String(n.evidenceKind)}`),(!n.evidenceId||String(n.evidenceId).trim()==="")&&r.push("evidenceId required from tool/simulator/device"),n.producedAt||r.push("producedAt required"),r.length?{ok:!1,verified:!1,errors:r}:{ok:!0,verified:!0,errors:[]}}function VO(e){return e==="miniapp"||e==="rn"}function Va(e){return`prev_${e}_${Date.now()}_${Math.random().toString(36).slice(2,6)}`}function Ha(e){return e.issues.some(t=>t.support==="unsupported")?"unsupported":e.issues.some(t=>t.support==="partial")?"partial":"ready"}function ax(){const e=yr("web");return{platform:"web",layer:e.layer,manifest:e,async start(t,r){var n;return{id:Va("web"),platform:"web",revision:String(t.revision||((n=t.schema)==null?void 0:n.version)||"draft"),layer:e.layer,startedAt:new Date().toISOString()}},async update(t,r,n){const i=Ha(n);return{ok:i!=="unsupported",session:{...t,revision:String(r.revision||t.revision)},capability:n,status:i,message:i==="unsupported"?"存在不受支持的能力,预览可继续但不得标记成功验证":i==="partial"?"即时语义预览可用(部分能力受限)":"即时语义预览就绪"}},async stop(){}}}function ox(e="/preview-hosts/vue-h5/index.html",t){const r=yr("vue-h5"),n=t||(async()=>({available:!1,detail:"Vue runtime / @agentprismform/render-vue not probed in-process; use isolated host protocol ack for sdk_mounted"}));return{platform:"vue-h5",layer:r.layer,manifest:r,async start(i){var a;return{id:Va("vue-h5"),platform:"vue-h5",revision:String(i.revision||((a=i.schema)==null?void 0:a.version)||"draft"),layer:r.layer,startedAt:new Date().toISOString(),hostUrl:i.hostUrl||e}},async update(i,a,o){const s=Ha(o),l=await n();return l.available?{ok:s!=="unsupported",session:{...i,revision:String(a.revision||i.revision),hostUrl:i.hostUrl},capability:o,status:s,message:s==="unsupported"?"Vue H5 Host:存在 unsupported 控件,禁止静默降级并标记成功":`Vue H5 actual SDK host mounted · revision=${a.revision||i.revision}`}:{ok:!1,session:{...i,revision:String(a.revision||i.revision),hostUrl:i.hostUrl},capability:o,status:"runtime_unavailable",message:`Vue H5 runtime_unavailable — ${l.detail}. FormCore-only bridge is not actual SDK verified.`}},async stop(){}}}function sx(e="/preview-hosts/taro-h5/index.html",t){const r=yr("taro-h5"),n=t||(async()=>({available:!1,detail:"Taro H5 build / @agentprismform/render-taro not available in this environment"}));return{platform:"taro-h5",layer:r.layer,manifest:r,async start(i){var a;return{id:Va("taro-h5"),platform:"taro-h5",revision:String(i.revision||((a=i.schema)==null?void 0:a.version)||"draft"),layer:r.layer,startedAt:new Date().toISOString(),hostUrl:i.hostUrl||e}},async update(i,a,o){const s=Ha(o),l=await n();return l.available?{ok:s!=="unsupported",session:{...i,revision:String(a.revision||i.revision)},capability:o,status:s,message:s==="ready"?`Taro H5 actual SDK host mounted · revision=${a.revision||i.revision}`:`Taro H5: ${s} — 不得在能力不足时标记已验证`}:{ok:!1,session:{...i,revision:String(a.revision||i.revision)},capability:o,status:"runtime_unavailable",message:`Taro H5 runtime_unavailable — ${l.detail}. Not actual SDK verified.`}},async stop(){}}}function lx(e="demo-miniapp"){const t=yr("miniapp"),r={platform:"miniapp",layer:t.layer,manifest:t,buildLaunchPlan(n){return{tool:"wechat-devtools",projectHint:e,verified:!1,payloadHint:`${e}/preview/studio-preview-payload.json`,steps:[`写入 schema revision=${n} 到 ${e}/preview/studio-preview-payload.json`,`用微信开发者工具打开 ${e}`,"编译并使用「预览」生成预览码 / 真机调试","仅工具/真机产出的 receipt(含 evidenceId)可将 verified 设为 true"]}},async start(n){var i;return{id:Va("miniapp"),platform:"miniapp",revision:String(n.revision||((i=n.schema)==null?void 0:i.version)||"draft"),layer:t.layer,startedAt:new Date().toISOString(),hostUrl:`wechat-devtools://${e}`}},async update(n,i,a){const o=Ha(a),s=String(i.revision||n.revision),l=r.buildLaunchPlan(s),u=i.schema?Fm({platform:"miniapp",schema:i.schema,schemaRevision:s,projectHint:e}):null;return{ok:!1,session:{...n,revision:s},capability:a,status:o==="ready"?"partial":o,message:`小程序目标端流程已生成(verified=false)。payload=${u?"ready":"pending"}。步骤: ${l.steps.join(" → ")}`}},async stop(){}};return r}function ux(e="demo-rn"){const t=yr("rn"),r={platform:"rn",layer:t.layer,manifest:t,buildLaunchPlan(n){return{tool:"rn-simulator-or-device",projectHint:e,verified:!1,payloadHint:`${e}/preview/studio-preview-payload.json`,steps:[`写入 schema revision=${n} 到 ${e}/preview/studio-preview-payload.json`,`在模拟器或真机启动 ${e}`,"确认渲染 revision 一致后由模拟器/真机流程写 receipt","self-declared receipt 一律拒绝 verified=true"]}},async start(n){var i;return{id:Va("rn"),platform:"rn",revision:String(n.revision||((i=n.schema)==null?void 0:i.version)||"draft"),layer:t.layer,startedAt:new Date().toISOString(),hostUrl:`rn-preview://${e}`}},async update(n,i,a){const o=Ha(a),s=String(i.revision||n.revision),l=r.buildLaunchPlan(s);return{ok:!1,session:{...n,revision:s},capability:a,status:o==="ready"?"partial":o,message:`RN 目标端流程已生成(verified=false)。${l.steps[0]}`}},async stop(){}};return r}function cx(e){let t=null,r=null;return{async start(n){r=n.schema;const i=Qo(n.schema,e.platform);return t=await e.start(n,i),t},async update(n){if(!t)throw new Error("PreviewRuntime not started");n.schema&&(r=n.schema);const a=Qo(r,e.platform),o=await e.update(t,n,a);return t=o.session,a.issues.some(s=>s.support==="unsupported")&&o.status==="ready"?{...o,ok:!1,status:"unsupported",message:"Adapter 试图将 unsupported 报告为 ready,已被 PreviewRuntime 纠正",capability:a}:o},validateCapabilities(n){return Qo(n,e.platform)},async stop(){await e.stop(t),t=null,r=null}}}function dx(e){switch(e){case"web":return ax();case"vue-h5":return ox();case"taro-h5":return sx();case"miniapp":return lx();case"rn":return ux();default:throw new Error(`No adapter for ${e}`)}}const xr="2026-09-18.deny-external-v1";function Om(){return{fetchAttempts:0,submitAttempts:0,storageSetAttempts:0,storageRemoveAttempts:0,externalWrites:0}}function HO(e){const t=e||Om(),r=new Map;return{get(n){return r.has(n)?r.get(n):null},set(n,i){t.storageSetAttempts+=1,t.externalWrites+=1},remove(n){t.storageRemoveAttempts+=1,t.externalWrites+=1,r.delete(n)}}}function BO(e,t,r){const n=t||Om(),i=new Set((r==null?void 0:r.allowedFetchApiIds)||[]),a=s=>{var u;const l=String(((u=s==null?void 0:s.api)==null?void 0:u.id)||(s==null?void 0:s.apiId)||(s==null?void 0:s.id)||"");i.has(l)||(n.fetchAttempts+=1,n.externalWrites+=1,s!=null&&s.callback&&s.callback({ok:!1,blocked:!0,message:"preview_io_denied",policyId:xr}))},o=s=>(n.submitAttempts+=1,n.externalWrites+=1,s!=null&&s.preventDefault&&s.preventDefault(),!1);return e.on("fetchAPI",a),e.on("beforeSubmit",o),()=>{const s=e;typeof s.off=="function"&&(s.off("fetchAPI",a),s.off("beforeSubmit",o))}}class UO{constructor(){this.bags=new Map}key(t){return`${t.platform}|${t.view}|${t.schemaSnapshotId}|${t.sessionId}`}get(t){return{...this.bags.get(this.key(t))||{}}}set(t,r){this.bags.set(this.key(t),{...r})}clear(t){if(!t){this.bags.clear();return}this.bags.delete(this.key(t))}}function WO(e){return!(!e.studioOrigin||!e.hostOrigin||e.studioOrigin===e.hostOrigin||e.mountStatus!=="sdk_mounted"||e.ioPolicyId!==xr||e.hostReportedPolicyId!==xr)}const _m="2026-09-18.isolation.1",fx=new Set(["host.ready","host.handshake","studio.start","studio.update","studio.stop","host.rendered","host.unsupported","host.error","host.disposed"]),px=new Set(["web","vue-h5","taro-h5","miniapp","rn"]);function vx(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Xi(e="req"){return`${e}_${Date.now()}_${Math.random().toString(36).slice(2,8)}`}function Cs(e){return{protocolVersion:e.protocolVersion||_m,type:e.type,sessionId:e.sessionId,platform:e.platform,schemaRevision:e.schemaRevision,capabilityManifestVersion:e.capabilityManifestVersion,sender:e.sender,sourceOrigin:e.sourceOrigin,targetOrigin:e.targetOrigin,requestId:e.requestId||Xi(),schema:e.schema,capability:e.capability,mountStatus:e.mountStatus,message:e.message,errorCode:e.errorCode,previewView:e.previewView,ioPolicyId:e.ioPolicyId,hostIoPolicyId:e.hostIoPolicyId,trialSafe:e.trialSafe}}function Am(e,t){const r=[];if(!vx(e))return{ok:!1,errors:["message must be an object"]};const n=String(e.protocolVersion||"");n!==_m&&r.push(`protocolVersion mismatch: ${n||"(missing)"}`);const i=e.type;fx.has(i)||r.push(`unknown type: ${String(e.type)}`);const a=String(e.sessionId||"");a||r.push("sessionId required"),t.expectedSessionId&&a!==t.expectedSessionId&&r.push(`sessionId mismatch: got ${a}`);const o=e.platform;px.has(o)||r.push(`invalid platform: ${String(e.platform)}`),t.expectedPlatform&&o!==t.expectedPlatform&&r.push(`platform mismatch: got ${o}`);const s=String(e.schemaRevision||"");s||r.push("schemaRevision required"),t.expectedSchemaRevision&&s!==t.expectedSchemaRevision&&r.push(`schemaRevision mismatch: got ${s}`);const l=e.sender;l!=="studio"&&l!=="host"&&r.push(`invalid sender: ${String(e.sender)}`),t.expectedSender&&l!==t.expectedSender&&r.push(`sender mismatch: got ${l}`);const u=String(e.sourceOrigin||"");!u||u==="*"?r.push("sourceOrigin must be a concrete origin"):t.allowedSourceOrigins.length>0&&!t.allowedSourceOrigins.includes(u)&&r.push(`sourceOrigin not allowed: ${u}`);const c=String(e.targetOrigin||"");(!c||c==="*")&&r.push("targetOrigin must be a concrete origin (no wildcard)"),t.expectedTargetOrigin&&c!==t.expectedTargetOrigin&&r.push(`targetOrigin mismatch: got ${c}`);const p=String(e.capabilityManifestVersion||"");p||r.push("capabilityManifestVersion required");const f=String(e.requestId||"");if(f||r.push("requestId required"),(i==="studio.start"||i==="studio.update")&&e.sender==="studio"){(e.ioPolicyId!=null?String(e.ioPolicyId):"")!==xr&&r.push(`ioPolicyId required and must be ${xr}`);const m=e.previewView!=null?String(e.previewView):"";m!=="applied"&&m!=="proposal"&&r.push("previewView must be applied|proposal")}return r.length?{ok:!1,errors:r}:{ok:!0,errors:[],envelope:Cs({protocolVersion:n,type:i,sessionId:a,platform:o,schemaRevision:s,capabilityManifestVersion:p,sender:l,sourceOrigin:u,targetOrigin:c,requestId:f,schema:e.schema,capability:e.capability,mountStatus:e.mountStatus,message:e.message!=null?String(e.message):void 0,errorCode:e.errorCode!=null?String(e.errorCode):void 0,previewView:e.previewView,ioPolicyId:e.ioPolicyId!=null?String(e.ioPolicyId):void 0,hostIoPolicyId:e.hostIoPolicyId!=null?String(e.hostIoPolicyId):void 0,trialSafe:typeof e.trialSafe=="boolean"?e.trialSafe:void 0})}}function KO(e="https://studio.test"){const t=e,r=`${e}/host`,n=new Set,i=new Set;return{studio:{post(s){for(const l of i)l(s,{origin:t})},subscribe(s){return n.add(s),()=>n.delete(s)}},host:{post(s){for(const l of n)l(s,{origin:r})},subscribe(s){return i.add(s),()=>i.delete(s)}},studioOrigin:t,hostOrigin:r}}function Nm(e){const t=e.ackTimeoutMs??3e3;let r=e.schemaRevision,n=!1;function i(o={}){return Cs({type:o.type||"studio.start",sessionId:e.sessionId,platform:e.platform,schemaRevision:r,capabilityManifestVersion:e.capabilityManifestVersion,sender:e.role,sourceOrigin:e.localOrigin,targetOrigin:e.remoteOrigin,requestId:o.requestId||Xi(),...o})}function a(o,s){return new Promise(l=>{const u=setTimeout(()=>{c(),l({ok:!1,stale:!1,mountStatus:"error",envelope:i({type:"host.error",sender:"host",sourceOrigin:e.remoteOrigin,targetOrigin:e.localOrigin,mountStatus:"error",errorCode:"ACK_TIMEOUT",message:"host acknowledgement timed out",requestId:o})})},t),c=e.transport.subscribe((p,f)=>{const h=Am(p,{expectedSessionId:e.sessionId,expectedPlatform:e.platform,allowedSourceOrigins:e.allowedRemoteOrigins,expectedSender:"host",expectedTargetOrigin:e.localOrigin});if(!h.ok||!h.envelope||!e.allowedRemoteOrigins.includes(f.origin))return;const m=h.envelope;if(m.type!=="host.rendered"&&m.type!=="host.unsupported"&&m.type!=="host.error"||m.requestId!==o)return;const b=m.schemaRevision!==s;if(clearTimeout(u),c(),b){l({ok:!1,stale:!0,mountStatus:m.mountStatus||"error",envelope:m});return}const x=m.mountStatus||(m.type==="host.rendered"?"sdk_mounted":"error");l({ok:m.type==="host.rendered"&&x==="sdk_mounted",stale:!1,mountStatus:x,envelope:m})})})}return{get schemaRevision(){return r},setSchemaRevision(o){r=o},async sendStart(o,s){if(n)throw new Error("HostProtocolClient disposed");const l=Xi("start"),u=i({type:"studio.start",requestId:l,schema:o,capability:s,previewView:e.previewView||"applied",ioPolicyId:e.ioPolicyId||xr});return e.transport.post(u,e.remoteOrigin),a(l,r)},async sendUpdate(o,s,l){if(n)throw new Error("HostProtocolClient disposed");r=l;const u=Xi("update"),c=i({type:"studio.update",requestId:u,schemaRevision:l,schema:o,capability:s,previewView:e.previewView||"applied",ioPolicyId:e.ioPolicyId||xr});return e.transport.post(c,e.remoteOrigin),a(u,l)},async sendStop(){if(n)return;n=!0;const o=i({type:"studio.stop",requestId:Xi("stop")});e.transport.post(o,e.remoteOrigin)}}}function qO(e){let t=null,r=null;const n=e.transport.subscribe(async(i,a)=>{const o=Am(i,{expectedPlatform:e.platform,allowedSourceOrigins:e.allowedStudioOrigins,expectedSender:"studio",expectedTargetOrigin:e.localOrigin});if(!o.ok||!o.envelope||!e.allowedStudioOrigins.includes(a.origin))return;const s=o.envelope;if(s.type==="studio.stop"){t=null,r=null,e.transport.post(Cs({type:"host.disposed",sessionId:s.sessionId,platform:e.platform,schemaRevision:s.schemaRevision,capabilityManifestVersion:e.capabilityManifestVersion,sender:"host",sourceOrigin:e.localOrigin,targetOrigin:s.sourceOrigin,requestId:s.requestId,mountStatus:"disposed",message:"host disposed"}),s.sourceOrigin);return}if(s.type!=="studio.start"&&s.type!=="studio.update")return;t=s.sessionId,r=s.schemaRevision;let l;try{l=await e.mountFn({sessionId:s.sessionId,schemaRevision:s.schemaRevision,schema:s.schema,capability:s.capability})}catch(f){l={mountStatus:"error",message:(f==null?void 0:f.message)||String(f),errorCode:"MOUNT_THREW"}}if(r!==s.schemaRevision||t!==s.sessionId)return;const u=l.mountStatus==="sdk_mounted"?"host.rendered":l.mountStatus==="unsupported"?"host.unsupported":(l.mountStatus==="runtime_unavailable","host.error"),c=e.localOrigin!==s.sourceOrigin,p=l.mountStatus==="sdk_mounted"&&c&&s.ioPolicyId===xr;e.transport.post(Cs({type:u,sessionId:s.sessionId,platform:e.platform,schemaRevision:s.schemaRevision,capabilityManifestVersion:e.capabilityManifestVersion,sender:"host",sourceOrigin:e.localOrigin,targetOrigin:s.sourceOrigin,requestId:s.requestId,mountStatus:l.mountStatus,message:l.message,errorCode:l.errorCode||(l.mountStatus==="runtime_unavailable"?"RUNTIME_UNAVAILABLE":void 0),previewView:s.previewView,ioPolicyId:s.ioPolicyId,hostIoPolicyId:xr,trialSafe:p}),s.sourceOrigin)});return{dispose(){n(),t=null,r=null}}}const So={"instant-semantic":"instant-semantic","actual-sdk":"actual-sdk-host","target-tool":"target-tool-verification"};function hx(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}function Im(e,t){if(t)return String(t);if(e!=null&&e.schemaRevision)return String(e.schemaRevision);if(e!=null&&e.revision&&typeof e.revision=="string")return e.revision;const r=JSON.stringify(e||{});return`draft_${hx(r)}`}class GO{constructor(t={}){this.schema=null,this.schemaRevision=null,this.states=new Map,this.runtimes=new Map,this.generation=0,this.opts=t}getRevision(){return this.schemaRevision}getSchema(){return this.schema}listStates(){return[...this.states.values()]}getState(t){return this.states.get(t)}setAcceptedDraft(t,r){return this.schema=t,this.schemaRevision=Im(t,r),this.generation+=1,this.schemaRevision}async ensureDefaultWeb(){if(!this.schema||!this.schemaRevision)throw new Error("No accepted draft bound");return this.startOrUpdate("web")}async startOrUpdate(t){var c,p,f,h;if(!this.schema||!this.schemaRevision)throw new Error("No accepted draft bound");const r=this.generation,n=yr(t),i=Qo(this.schema,t);this.states.set(t,{platform:t,layerLabel:So[n.layer],session:((c=this.states.get(t))==null?void 0:c.session)||null,status:"starting",capability:i,message:"starting",schemaRevision:this.schemaRevision,verified:!1,hostUrl:(p=this.states.get(t))==null?void 0:p.hostUrl,targetPayload:(f=this.states.get(t))==null?void 0:f.targetPayload});let a=this.runtimes.get(t);const o=!!a;if(!a){a=this.opts.createRuntime?this.opts.createRuntime(t):cx(dx(t)),this.runtimes.set(t,a);const m=await a.start({schema:this.schema,platform:t,revision:this.schemaRevision});if(r!==this.generation)return this.markStaleRejected(t,i);this.states.set(t,{...this.states.get(t),session:m,hostUrl:m.hostUrl})}if((t==="vue-h5"||t==="taro-h5")&&((h=this.opts.hostTransports)!=null&&h[t])){const m=this.opts.hostTransports[t],b=this.states.get(t).session,x=Nm({transport:m.transport,platform:t,sessionId:b.id,schemaRevision:this.schemaRevision,capabilityManifestVersion:n.version,localOrigin:m.localOrigin,remoteOrigin:m.remoteOrigin,role:"studio",allowedRemoteOrigins:m.allowedRemoteOrigins,ackTimeoutMs:m.ackTimeoutMs}),v=o?await x.sendUpdate(this.schema,i,this.schemaRevision):await x.sendStart(this.schema,i);if(r!==this.generation||v.stale)return this.markStaleRejected(t,i);const g=v.mountStatus==="sdk_mounted"?i.issues.some(k=>k.support==="unsupported")?"unsupported":i.issues.some(k=>k.support==="partial")?"partial":"ready":v.mountStatus==="runtime_unavailable"?"runtime_unavailable":v.mountStatus==="unsupported"?"unsupported":"error",y={platform:t,layerLabel:So[n.layer],session:{...b,revision:this.schemaRevision},status:g,capability:i,message:v.envelope.message||(g==="runtime_unavailable"?`${t} runtime_unavailable — not actual SDK verified`:`host ack ${v.mountStatus}`),schemaRevision:this.schemaRevision,verified:!1,hostUrl:b.hostUrl};return this.states.set(t,y),y}const s=await a.update({schema:this.schema,revision:this.schemaRevision});if(r!==this.generation)return this.markStaleRejected(t,i);let l;(t==="miniapp"||t==="rn")&&(l=Fm({platform:t,schema:this.schema,schemaRevision:this.schemaRevision}));const u={platform:t,layerLabel:So[n.layer],session:s.session,status:s.status,capability:s.capability,message:s.message,schemaRevision:this.schemaRevision,verified:!1,hostUrl:s.session.hostUrl,targetPayload:l};return this.states.set(t,u),u}applyTargetReceipt(t,r){var s;const n=this.states.get(t);if(!n||!this.schemaRevision)throw new Error(`No ${t} session`);const i=yr(t),a=ix(r,{platform:t,schemaRevision:this.schemaRevision,capabilityManifestVersion:i.version}),o={...n,verified:a.verified,lastReceiptValidation:a,message:a.verified?`${t} verified via ${r.evidenceKind}`:`receipt rejected: ${a.errors.join("; ")}`,status:a.verified?n.status:n.status==="ready"?"partial":n.status};return a.verified&&(((s=n.capability)==null?void 0:s.issues.filter(u=>u.support==="unsupported"&&u.controlType))||[]).length&&(o.verified=!1,o.message="tool evidence ok but unsupported controls remain — not fully verified"),this.states.set(t,o),o}async stop(t){const r=this.runtimes.get(t);r&&(await r.stop(),this.runtimes.delete(t)),this.states.delete(t)}async stopAll(){for(const t of[...this.runtimes.keys()])await this.stop(t)}markStaleRejected(t,r){const n=this.states.get(t),i={platform:t,layerLabel:So[yr(t).layer],session:(n==null?void 0:n.session)||null,status:"error",capability:r,message:"stale acknowledgement rejected — newer revision is active",schemaRevision:this.schemaRevision,verified:!1,hostUrl:n==null?void 0:n.hostUrl};return this.states.set(t,i),i}}const gx="modulepreload",mx=function(e,t){return new URL(e,t).href},xp={},jm=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=mx(u,n),u in xp)return;xp[u]=!0;const c=u.endsWith(".css"),p=c?'[rel="stylesheet"]':"";if(!!n)for(let m=o.length-1;m>=0;m--){const b=o[m];if(b.href===u&&(!c||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${p}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":gx,c||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((m,b)=>{h.addEventListener("load",m),h.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(null,arguments)}function fe(e){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(e)}function yx(e,t){if(fe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dm(e){var t=yx(e,"string");return fe(t)=="symbol"?t:t+""}function F(e,t,r){return(t=Dm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dm(n.key),n)}}function ur(e,t,r){return t&&Sp(e.prototype,t),r&&Sp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Js(e,t){if(t&&(fe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G(e)}function Ba(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ba=function(){return!!e})()}function Sr(e){return Sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sr(e)}function yc(e,t){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},yc(e,t)}function $r(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yc(e,t)}var Mm={exports:{}};/*!
41
- Copyright (c) 2018 Jed Watson.
42
- Licensed under the MIT License (MIT), see
43
- http://jedwatson.github.io/classnames
44
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Mm);var bx=Mm.exports;const ge=On(bx);var wx=Symbol.for("react.element"),xx=Symbol.for("react.transitional.element"),Sx=Symbol.for("react.fragment");function $m(e){return e&&fe(e)==="object"&&(e.$$typeof===wx||e.$$typeof===xx)&&e.type===Sx}function gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return we.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(gi(n)):$m(n)&&n.props?r=r.concat(gi(n.props.children,t)):r.push(n))}),r}var bc={},kx=function(t){};function Ex(e,t){}function Cx(e,t){}function Px(){bc={}}function Lm(e,t,r){!t&&!bc[r]&&(e(!1,r),bc[r]=!0)}function At(e,t){Lm(Ex,e,t)}function Rx(e,t){Lm(Cx,e,t)}At.preMessage=kx;At.resetWarned=Px;At.noteOnce=Rx;function kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kp(Object(r),!0).forEach(function(n){F(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ep(e){return e instanceof HTMLElement||e instanceof SVGElement}function Tx(e){return e&&fe(e)==="object"&&Ep(e.nativeElement)?e.nativeElement:Ep(e)?e:null}function ca(e){var t=Tx(e);if(t)return t;if(e instanceof we.Component){var r;return(r=hi.findDOMNode)===null||r===void 0?void 0:r.call(hi,e)}return null}var zm={exports:{}},Se={};/**
45
- * @license React
46
- * react-is.production.min.js
47
- *
48
- * Copyright (c) Facebook, Inc. and its affiliates.
49
- *
50
- * This source code is licensed under the MIT license found in the
51
- * LICENSE file in the root directory of this source tree.
52
- */var Wd=Symbol.for("react.element"),Kd=Symbol.for("react.portal"),Zs=Symbol.for("react.fragment"),el=Symbol.for("react.strict_mode"),tl=Symbol.for("react.profiler"),rl=Symbol.for("react.provider"),nl=Symbol.for("react.context"),Fx=Symbol.for("react.server_context"),il=Symbol.for("react.forward_ref"),al=Symbol.for("react.suspense"),ol=Symbol.for("react.suspense_list"),sl=Symbol.for("react.memo"),ll=Symbol.for("react.lazy"),Ox=Symbol.for("react.offscreen"),Vm;Vm=Symbol.for("react.module.reference");function Xt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wd:switch(e=e.type,e){case Zs:case tl:case el:case al:case ol:return e;default:switch(e=e&&e.$$typeof,e){case Fx:case nl:case il:case ll:case sl:case rl:return e;default:return t}}case Kd:return t}}}Se.ContextConsumer=nl;Se.ContextProvider=rl;Se.Element=Wd;Se.ForwardRef=il;Se.Fragment=Zs;Se.Lazy=ll;Se.Memo=sl;Se.Portal=Kd;Se.Profiler=tl;Se.StrictMode=el;Se.Suspense=al;Se.SuspenseList=ol;Se.isAsyncMode=function(){return!1};Se.isConcurrentMode=function(){return!1};Se.isContextConsumer=function(e){return Xt(e)===nl};Se.isContextProvider=function(e){return Xt(e)===rl};Se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wd};Se.isForwardRef=function(e){return Xt(e)===il};Se.isFragment=function(e){return Xt(e)===Zs};Se.isLazy=function(e){return Xt(e)===ll};Se.isMemo=function(e){return Xt(e)===sl};Se.isPortal=function(e){return Xt(e)===Kd};Se.isProfiler=function(e){return Xt(e)===tl};Se.isStrictMode=function(e){return Xt(e)===el};Se.isSuspense=function(e){return Xt(e)===al};Se.isSuspenseList=function(e){return Xt(e)===ol};Se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zs||e===tl||e===el||e===al||e===ol||e===Ox||typeof e=="object"&&e!==null&&(e.$$typeof===ll||e.$$typeof===sl||e.$$typeof===rl||e.$$typeof===nl||e.$$typeof===il||e.$$typeof===Vm||e.getModuleId!==void 0)};Se.typeOf=Xt;zm.exports=Se;var Kl=zm.exports;function _x(e,t,r){var n=d.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Ax=Number(d.version.split(".")[0]),Hm=function(t,r){typeof t=="function"?t(r):fe(t)==="object"&&t&&"current"in t&&(t.current=r)},Ci=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(a){r.forEach(function(o){Hm(o,a)})}},Nx=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _x(function(){return Ci.apply(void 0,r)},r,function(i,a){return i.length!==a.length||i.every(function(o,s){return o!==a[s]})})},ul=function(t){var r,n;if(!t)return!1;if(Bm(t)&&Ax>=19)return!0;var i=Kl.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==Kl.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==Kl.ForwardRef)};function Bm(e){return d.isValidElement(e)&&!$m(e)}var Um=function(t){if(t&&Bm(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},wc=d.createContext(null);function Ix(e){var t=e.children,r=e.onBatchResize,n=d.useRef(0),i=d.useRef([]),a=d.useContext(wc),o=d.useCallback(function(s,l,u){n.current+=1;var c=n.current;i.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){c===n.current&&(r==null||r(i.current),i.current=[])}),a==null||a(s,l,u)},[r,a]);return d.createElement(wc.Provider,{value:o},t)}var Wm=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,a){return i[0]===r?(n=a,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];r.call(n,o[1],o[0])}},t}()}(),xc=typeof window<"u"&&typeof document<"u"&&window.document===document,Ps=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),jx=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ps):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Dx=2;function Mx(e,t){var r=!1,n=!1,i=0;function a(){r&&(r=!1,e()),n&&s()}function o(){jx(a)}function s(){var l=Date.now();if(r){if(l-i<Dx)return;n=!0}else r=!0,n=!1,setTimeout(o,t);i=l}return s}var $x=20,Lx=["top","right","bottom","left","width","height","size","weight"],zx=typeof MutationObserver<"u",Vx=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Mx(this.refresh.bind(this),$x)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!xc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zx?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=Lx.some(function(a){return!!~n.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Km=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},mi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ps},qm=cl(0,0,0,0);function Rs(e){return parseFloat(e)||0}function Cp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var a=e["border-"+i+"-width"];return n+Rs(a)},0)}function Hx(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var a=i[n],o=e["padding-"+a];r[a]=Rs(o)}return r}function Bx(e){var t=e.getBBox();return cl(0,0,t.width,t.height)}function Ux(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return qm;var n=mi(e).getComputedStyle(e),i=Hx(n),a=i.left+i.right,o=i.top+i.bottom,s=Rs(n.width),l=Rs(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=Cp(n,"left","right")+a),Math.round(l+o)!==r&&(l-=Cp(n,"top","bottom")+o)),!Kx(e)){var u=Math.round(s+a)-t,c=Math.round(l+o)-r;Math.abs(u)!==1&&(s-=u),Math.abs(c)!==1&&(l-=c)}return cl(i.left,i.top,s,l)}var Wx=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof mi(e).SVGGraphicsElement}:function(e){return e instanceof mi(e).SVGElement&&typeof e.getBBox=="function"}}();function Kx(e){return e===mi(e).document.documentElement}function qx(e){return xc?Wx(e)?Bx(e):Ux(e):qm}function Gx(e){var t=e.x,r=e.y,n=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Km(o,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),o}function cl(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Yx=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=cl(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=qx(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Xx=function(){function e(t,r){var n=Gx(r);Km(this,{target:t,contentRect:n})}return e}(),Qx=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Wm,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof mi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Yx(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof mi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Xx(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Gm=typeof WeakMap<"u"?new WeakMap:new Wm,Ym=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Vx.getInstance(),n=new Qx(t,r,this);Gm.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ym.prototype[e]=function(){var t;return(t=Gm.get(this))[e].apply(t,arguments)}});var Xm=function(){return typeof Ps.ResizeObserver<"u"?Ps.ResizeObserver:Ym}(),Xr=new Map;function Jx(e){e.forEach(function(t){var r,n=t.target;(r=Xr.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var Qm=new Xm(Jx);function Zx(e,t){Xr.has(e)||(Xr.set(e,new Set),Qm.observe(e)),Xr.get(e).add(t)}function eS(e,t){Xr.has(e)&&(Xr.get(e).delete(t),Xr.get(e).size||(Qm.unobserve(e),Xr.delete(e)))}function Pi(e){var t=Ba();return function(){var r,n=Sr(e);if(t){var i=Sr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Js(this,r)}}var tS=function(e){$r(r,e);var t=Pi(r);function r(){return lr(this,r),t.apply(this,arguments)}return ur(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function rS(e,t){var r=e.children,n=e.disabled,i=d.useRef(null),a=d.useRef(null),o=d.useContext(wc),s=typeof r=="function",l=s?r(i):r,u=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&d.isValidElement(l)&&ul(l),p=c?Um(l):null,f=Nx(p,i),h=function(){var v;return ca(i.current)||(i.current&&fe(i.current)==="object"?ca((v=i.current)===null||v===void 0?void 0:v.nativeElement):null)||ca(a.current)};d.useImperativeHandle(t,function(){return h()});var m=d.useRef(e);m.current=e;var b=d.useCallback(function(x){var v=m.current,g=v.onResize,y=v.data,k=x.getBoundingClientRect(),E=k.width,C=k.height,S=x.offsetWidth,P=x.offsetHeight,T=Math.floor(E),R=Math.floor(C);if(u.current.width!==T||u.current.height!==R||u.current.offsetWidth!==S||u.current.offsetHeight!==P){var O={width:T,height:R,offsetWidth:S,offsetHeight:P};u.current=O;var _=S===Math.round(E)?E:S,j=P===Math.round(C)?C:P,D=H(H({},O),{},{offsetWidth:_,offsetHeight:j});o==null||o(D,x,y),g&&Promise.resolve().then(function(){g(D,x)})}},[]);return d.useEffect(function(){var x=h();return x&&!n&&Zx(x,b),function(){return eS(x,b)}},[i.current,n]),d.createElement(tS,{ref:a},c?d.cloneElement(l,{ref:f}):l)}var nS=d.forwardRef(rS),iS="rc-observer-key";function aS(e,t){var r=e.children,n=typeof r=="function"?[r]:gi(r);return n.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(iS,"-").concat(a);return d.createElement(nS,Q({},e,{key:o,ref:a===0?t:void 0}),i)})}var qd=d.forwardRef(aS);qd.Collection=Ix;function Ua(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Jm=d.createContext({});function Sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function oS(e){if(Array.isArray(e))return Sc(e)}function Zm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gd(e,t){if(e){if(typeof e=="string")return Sc(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sc(e,t):void 0}}function sS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e){return oS(e)||Zm(e)||Gd(e)||sS()}function ey(e){if(Array.isArray(e))return e}function ty(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lS(e){return ey(e)||Zm(e)||Gd(e)||ty()}function ir(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function ry(e,t,r,n){if(!t.length)return r;var i=lS(t),a=i[0],o=i.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=le(e):s=H({},e),n&&r===void 0&&o.length===1?delete s[a][o[0]]:s[a]=ry(s[a],o,r,n),s}function tr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!ir(e,t.slice(0,-1))?e:ry(e,t,r,n)}function uS(e){return fe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Pp(e){return Array.isArray(e)?[]:{}}var cS=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Qi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Pp(t[0]);return t.forEach(function(i){function a(o,s){var l=new Set(s),u=ir(i,o),c=Array.isArray(u);if(c||uS(u)){if(!l.has(u)){l.add(u);var p=ir(n,o);c?n=tr(n,o,[]):(!p||fe(p)!=="object")&&(n=tr(n,o,Pp(u))),cS(u).forEach(function(f){a([].concat(le(o),[f]),l)})}}else n=tr(n,o,u)}a([])}),n}const dS={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var fS={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},ny={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Rp={lang:Q({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},fS),timePickerLocale:Q({},ny)},Ct="${label} is not a valid ${type}",pS={locale:"en",Pagination:dS,DatePicker:Rp,TimePicker:ny,Calendar:Rp,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ct,method:Ct,array:Ct,object:Ct,number:Ct,date:Ct,boolean:Ct,integer:Ct,float:Ct,regexp:Ct,email:Ct,url:Ct,hex:Ct},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},vS=d.createContext(void 0),hS=function(t,r){var n=d.useContext(vS),i=d.useMemo(function(){var a,o=pS[t],s=(a=n==null?void 0:n[t])!==null&&a!==void 0?a:{};return Q(Q({},typeof o=="function"?o():o),s||{})},[t,r,n]);return[i]},gS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function mS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Z(e,t){return ey(e)||mS(e,t)||Gd(e,t)||ty()}function yS(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function kr(e,t){if(e==null)return{};var r,n,i=yS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qt(e,t){bS(e)&&(e="100%");var r=wS(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function bS(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function wS(e){return typeof e=="string"&&e.indexOf("%")!==-1}function xS(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ko(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ql(e){return e.length===1?"0"+e:String(e)}function SS(e,t,r){return{r:qt(e,255)*255,g:qt(t,255)*255,b:qt(r,255)*255}}function Gl(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function kS(e,t,r){var n,i,a;if(e=qt(e,360),t=qt(t,100),r=qt(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=Gl(s,o,e+1/3),i=Gl(s,o,e),a=Gl(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function ES(e,t,r){e=qt(e,255),t=qt(t,255),r=qt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function CS(e,t,r){e=qt(e,360)*6,t=qt(t,100),r=qt(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),l=n%6,u=[r,o,a,a,s,r][l],c=[s,r,r,o,a,a][l],p=[a,a,s,r,r,o][l];return{r:u*255,g:c*255,b:p*255}}function PS(e,t,r,n){var i=[ql(Math.round(e).toString(16)),ql(Math.round(t).toString(16)),ql(Math.round(r).toString(16))];return i.join("")}function Tp(e){return Rt(e)/255}function Rt(e){return parseInt(e,16)}var Fp={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Hi(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=FS(e)),typeof e=="object"&&(Cr(e.r)&&Cr(e.g)&&Cr(e.b)?(t=SS(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Cr(e.h)&&Cr(e.s)&&Cr(e.v)?(n=ko(e.s),i=ko(e.v),t=CS(e.h,n,i),o=!0,s="hsv"):Cr(e.h)&&Cr(e.s)&&Cr(e.l)&&(n=ko(e.s),a=ko(e.l),t=kS(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=xS(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var RS="[-\\+]?\\d+%?",TS="[-\\+]?\\d*\\.\\d+%?",Qr="(?:".concat(TS,")|(?:").concat(RS,")"),Yl="[\\s|\\(]+(".concat(Qr,")[,|\\s]+(").concat(Qr,")[,|\\s]+(").concat(Qr,")\\s*\\)?"),Xl="[\\s|\\(]+(".concat(Qr,")[,|\\s]+(").concat(Qr,")[,|\\s]+(").concat(Qr,")[,|\\s]+(").concat(Qr,")\\s*\\)?"),Jt={CSS_UNIT:new RegExp(Qr),rgb:new RegExp("rgb"+Yl),rgba:new RegExp("rgba"+Xl),hsl:new RegExp("hsl"+Yl),hsla:new RegExp("hsla"+Xl),hsv:new RegExp("hsv"+Yl),hsva:new RegExp("hsva"+Xl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function FS(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Fp[e])e=Fp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Jt.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Jt.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Jt.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Jt.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Jt.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Jt.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Jt.hex8.exec(e),r?{r:Rt(r[1]),g:Rt(r[2]),b:Rt(r[3]),a:Tp(r[4]),format:t?"name":"hex8"}:(r=Jt.hex6.exec(e),r?{r:Rt(r[1]),g:Rt(r[2]),b:Rt(r[3]),format:t?"name":"hex"}:(r=Jt.hex4.exec(e),r?{r:Rt(r[1]+r[1]),g:Rt(r[2]+r[2]),b:Rt(r[3]+r[3]),a:Tp(r[4]+r[4]),format:t?"name":"hex8"}:(r=Jt.hex3.exec(e),r?{r:Rt(r[1]+r[1]),g:Rt(r[2]+r[2]),b:Rt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Cr(e){return!!Jt.CSS_UNIT.exec(String(e))}var Eo=2,Op=.16,OS=.05,_S=.05,AS=.15,iy=5,ay=4,NS=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function _p(e){var t=e.r,r=e.g,n=e.b,i=ES(t,r,n);return{h:i.h*360,s:i.s,v:i.v}}function Co(e){var t=e.r,r=e.g,n=e.b;return"#".concat(PS(t,r,n))}function IS(e,t,r){var n=r/100,i={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return i}function Ap(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Eo*t:Math.round(e.h)+Eo*t:n=r?Math.round(e.h)+Eo*t:Math.round(e.h)-Eo*t,n<0?n+=360:n>=360&&(n-=360),n}function Np(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Op*t:t===ay?n=e.s+Op:n=e.s+OS*t,n>1&&(n=1),r&&t===iy&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Ip(e,t,r){var n;return r?n=e.v+_S*t:n=e.v-AS*t,n>1&&(n=1),Number(n.toFixed(2))}function kc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Hi(e),i=iy;i>0;i-=1){var a=_p(n),o=Co(Hi({h:Ap(a,i,!0),s:Np(a,i,!0),v:Ip(a,i,!0)}));r.push(o)}r.push(Co(n));for(var s=1;s<=ay;s+=1){var l=_p(n),u=Co(Hi({h:Ap(l,s),s:Np(l,s),v:Ip(l,s)}));r.push(u)}return t.theme==="dark"?NS.map(function(c){var p=c.index,f=c.opacity,h=Co(IS(Hi(t.backgroundColor||"#141414"),Hi(r[p]),f*100));return h}):r}var Ql={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Jl={},Zl={};Object.keys(Ql).forEach(function(e){Jl[e]=kc(Ql[e]),Jl[e].primary=Jl[e][5],Zl[e]=kc(Ql[e],{theme:"dark",backgroundColor:"#141414"}),Zl[e].primary=Zl[e][5]});function Nn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function da(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var jp="data-rc-order",Dp="data-rc-priority",jS="rc-util-key",Ec=new Map;function oy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):jS}function Yd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function DS(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xd(e){return Array.from((Ec.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Nn())return null;var r=t.csp,n=t.prepend,i=t.priority,a=i===void 0?0:i,o=DS(n),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(jp,o),s&&a&&l.setAttribute(Dp,"".concat(a)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Yd(t),c=u.firstChild;if(n){if(s){var p=(t.styles||Xd(u)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(jp)))return!1;var h=Number(f.getAttribute(Dp)||0);return a>=h});if(p.length)return u.insertBefore(l,p[p.length-1].nextSibling),l}u.insertBefore(l,c)}else u.appendChild(l);return l}function MS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Yd(t);return(t.styles||Xd(r)).find(function(n){return n.getAttribute(oy(t))===e})}function $S(e,t){var r=Ec.get(e);if(!r||!da(document,r)){var n=sy("",t),i=n.parentNode;Ec.set(e,i),e.removeChild(n)}}function ly(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Yd(r),i=Xd(n),a=H(H({},r),{},{styles:i});$S(n,a);var o=MS(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var u;o.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=sy(e,a);return c.setAttribute(oy(a),t),c}var LS=typeof no=="object"&&no&&no.Object===Object&&no,zS=LS,VS=zS,HS=typeof self=="object"&&self&&self.Object===Object&&self,BS=VS||HS||Function("return this")(),uy=BS,US=uy,WS=US.Symbol,Qd=WS;function KS(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var qS=KS,GS=Array.isArray,YS=GS,Mp=Qd,cy=Object.prototype,XS=cy.hasOwnProperty,QS=cy.toString,Bi=Mp?Mp.toStringTag:void 0;function JS(e){var t=XS.call(e,Bi),r=e[Bi];try{e[Bi]=void 0;var n=!0}catch{}var i=QS.call(e);return n&&(t?e[Bi]=r:delete e[Bi]),i}var ZS=JS,ek=Object.prototype,tk=ek.toString;function rk(e){return tk.call(e)}var nk=rk,$p=Qd,ik=ZS,ak=nk,ok="[object Null]",sk="[object Undefined]",Lp=$p?$p.toStringTag:void 0;function lk(e){return e==null?e===void 0?sk:ok:Lp&&Lp in Object(e)?ik(e):ak(e)}var uk=lk;function ck(e){return e!=null&&typeof e=="object"}var dk=ck,fk=uk,pk=dk,vk="[object Symbol]";function hk(e){return typeof e=="symbol"||pk(e)&&fk(e)==vk}var dy=hk,zp=Qd,gk=qS,mk=YS,yk=dy,Vp=zp?zp.prototype:void 0,Hp=Vp?Vp.toString:void 0;function fy(e){if(typeof e=="string")return e;if(mk(e))return gk(e,fy)+"";if(yk(e))return Hp?Hp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var bk=fy,wk=bk;function xk(e){return e==null?"":wk(e)}var dl=xk;function Sk(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var kk=Sk,Ek=kk;function Ck(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Ek(e,t,r)}var Pk=Ck,Rk="\\ud800-\\udfff",Tk="\\u0300-\\u036f",Fk="\\ufe20-\\ufe2f",Ok="\\u20d0-\\u20ff",_k=Tk+Fk+Ok,Ak="\\ufe0e\\ufe0f",Nk="\\u200d",Ik=RegExp("["+Nk+Rk+_k+Ak+"]");function jk(e){return Ik.test(e)}var py=jk;function Dk(e){return e.split("")}var Mk=Dk,vy="\\ud800-\\udfff",$k="\\u0300-\\u036f",Lk="\\ufe20-\\ufe2f",zk="\\u20d0-\\u20ff",Vk=$k+Lk+zk,Hk="\\ufe0e\\ufe0f",Bk="["+vy+"]",Cc="["+Vk+"]",Pc="\\ud83c[\\udffb-\\udfff]",Uk="(?:"+Cc+"|"+Pc+")",hy="[^"+vy+"]",gy="(?:\\ud83c[\\udde6-\\uddff]){2}",my="[\\ud800-\\udbff][\\udc00-\\udfff]",Wk="\\u200d",yy=Uk+"?",by="["+Hk+"]?",Kk="(?:"+Wk+"(?:"+[hy,gy,my].join("|")+")"+by+yy+")*",qk=by+yy+Kk,Gk="(?:"+[hy+Cc+"?",Cc,gy,my,Bk].join("|")+")",Yk=RegExp(Pc+"(?="+Pc+")|"+Gk+qk,"g");function Xk(e){return e.match(Yk)||[]}var Qk=Xk,Jk=Mk,Zk=py,eE=Qk;function tE(e){return Zk(e)?eE(e):Jk(e)}var rE=tE,nE=Pk,iE=py,aE=rE,oE=dl;function sE(e){return function(t){t=oE(t);var r=iE(t)?aE(t):void 0,n=r?r[0]:t.charAt(0),i=r?nE(r,1).join(""):t.slice(1);return n[e]()+i}}var lE=sE,uE=lE,cE=uE("toUpperCase"),dE=cE,fE=dl,pE=dE;function vE(e){return pE(fE(e).toLowerCase())}var hE=vE;function gE(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}var mE=gE;function yE(e){return function(t){return e==null?void 0:e[t]}}var bE=yE,wE=bE,xE={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},SE=wE(xE),kE=SE,EE=kE,CE=dl,PE=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,RE="\\u0300-\\u036f",TE="\\ufe20-\\ufe2f",FE="\\u20d0-\\u20ff",OE=RE+TE+FE,_E="["+OE+"]",AE=RegExp(_E,"g");function NE(e){return e=CE(e),e&&e.replace(PE,EE).replace(AE,"")}var IE=NE,jE=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function DE(e){return e.match(jE)||[]}var ME=DE,$E=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function LE(e){return $E.test(e)}var zE=LE,wy="\\ud800-\\udfff",VE="\\u0300-\\u036f",HE="\\ufe20-\\ufe2f",BE="\\u20d0-\\u20ff",UE=VE+HE+BE,xy="\\u2700-\\u27bf",Sy="a-z\\xdf-\\xf6\\xf8-\\xff",WE="\\xac\\xb1\\xd7\\xf7",KE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qE="\\u2000-\\u206f",GE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ky="A-Z\\xc0-\\xd6\\xd8-\\xde",YE="\\ufe0e\\ufe0f",Ey=WE+KE+qE+GE,Cy="['’]",Bp="["+Ey+"]",XE="["+UE+"]",Py="\\d+",QE="["+xy+"]",Ry="["+Sy+"]",Ty="[^"+wy+Ey+Py+xy+Sy+ky+"]",JE="\\ud83c[\\udffb-\\udfff]",ZE="(?:"+XE+"|"+JE+")",eC="[^"+wy+"]",Fy="(?:\\ud83c[\\udde6-\\uddff]){2}",Oy="[\\ud800-\\udbff][\\udc00-\\udfff]",$n="["+ky+"]",tC="\\u200d",Up="(?:"+Ry+"|"+Ty+")",rC="(?:"+$n+"|"+Ty+")",Wp="(?:"+Cy+"(?:d|ll|m|re|s|t|ve))?",Kp="(?:"+Cy+"(?:D|LL|M|RE|S|T|VE))?",_y=ZE+"?",Ay="["+YE+"]?",nC="(?:"+tC+"(?:"+[eC,Fy,Oy].join("|")+")"+Ay+_y+")*",iC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oC=Ay+_y+nC,sC="(?:"+[QE,Fy,Oy].join("|")+")"+oC,lC=RegExp([$n+"?"+Ry+"+"+Wp+"(?="+[Bp,$n,"$"].join("|")+")",rC+"+"+Kp+"(?="+[Bp,$n+Up,"$"].join("|")+")",$n+"?"+Up+"+"+Wp,$n+"+"+Kp,aC,iC,Py,sC].join("|"),"g");function uC(e){return e.match(lC)||[]}var cC=uC,dC=ME,fC=zE,pC=dl,vC=cC;function hC(e,t,r){return e=pC(e),t=r?void 0:t,t===void 0?fC(e)?vC(e):dC(e):e.match(t)||[]}var gC=hC,mC=mE,yC=IE,bC=gC,wC="['’]",xC=RegExp(wC,"g");function SC(e){return function(t){return mC(bC(yC(t).replace(xC,"")),e,"")}}var kC=SC,EC=hE,CC=kC,PC=CC(function(e,t,r){return t=t.toLowerCase(),e+(r?EC(t):t)}),RC=PC;const TC=On(RC);function FC(e,t){At(e,"[@ant-design/icons] ".concat(t))}function qp(e){return fe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(fe(e.icon)==="object"||typeof e.icon=="function")}function Gp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[TC(r)]=n}return t},{})}function Rc(e,t,r){return r?we.createElement(e.tag,H(H({key:t},Gp(e.attrs)),r),(e.children||[]).map(function(n,i){return Rc(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):we.createElement(e.tag,H({key:t},Gp(e.attrs)),(e.children||[]).map(function(n,i){return Rc(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Ny(e){return kc(e)[0]}function Iy(e){return e?Array.isArray(e)?e:[e]:[]}var OC=`
55
- .anticon {
56
- display: inline-flex;
57
- alignItems: center;
58
- color: inherit;
59
- font-style: normal;
60
- line-height: 0;
61
- text-align: center;
62
- text-transform: none;
63
- vertical-align: -0.125em;
64
- text-rendering: optimizeLegibility;
65
- -webkit-font-smoothing: antialiased;
66
- -moz-osx-font-smoothing: grayscale;
67
- }
68
-
69
- .anticon > * {
70
- line-height: 1;
71
- }
72
-
73
- .anticon svg {
74
- display: inline-block;
75
- }
76
-
77
- .anticon::before {
78
- display: none;
79
- }
80
-
81
- .anticon .anticon-icon {
82
- display: block;
83
- }
84
-
85
- .anticon[tabindex] {
86
- cursor: pointer;
87
- }
88
-
89
- .anticon-spin::before,
90
- .anticon-spin {
91
- display: inline-block;
92
- -webkit-animation: loadingCircle 1s infinite linear;
93
- animation: loadingCircle 1s infinite linear;
94
- }
95
-
96
- @-webkit-keyframes loadingCircle {
97
- 100% {
98
- -webkit-transform: rotate(360deg);
99
- transform: rotate(360deg);
100
- }
101
- }
102
-
103
- @keyframes loadingCircle {
104
- 100% {
105
- -webkit-transform: rotate(360deg);
106
- transform: rotate(360deg);
107
- }
108
- }
109
- `,_C=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OC,r=d.useContext(Jm),n=r.csp;d.useEffect(function(){ly(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},AC=["icon","className","onClick","style","primaryColor","secondaryColor"],fa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function NC(e){var t=e.primaryColor,r=e.secondaryColor;fa.primaryColor=t,fa.secondaryColor=r||Ny(t),fa.calculated=!!r}function IC(){return H({},fa)}var Ri=function(t){var r=t.icon,n=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=kr(t,AC),u=fa;if(o&&(u={primaryColor:o,secondaryColor:s||Ny(o)}),_C(),FC(qp(r),"icon should be icon definiton, but got ".concat(r)),!qp(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=H(H({},c),{},{icon:c.icon(u.primaryColor,u.secondaryColor)})),Rc(c.icon,"svg-".concat(c.name),H({className:n,onClick:i,style:a,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};Ri.displayName="IconReact";Ri.getTwoToneColors=IC;Ri.setTwoToneColors=NC;function jy(e){var t=Iy(e),r=Z(t,2),n=r[0],i=r[1];return Ri.setTwoToneColors({primaryColor:n,secondaryColor:i})}function jC(){var e=Ri.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var DC=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jy("#1890ff");var it=d.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=kr(e,DC),c=d.useContext(Jm),p=c.prefixCls,f=p===void 0?"anticon":p,h=c.rootClassName,m=ge(h,f,F(F({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!i||n.name==="loading"),r),b=o;b===void 0&&s&&(b=-1);var x=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=Iy(l),g=Z(v,2),y=g[0],k=g[1];return d.createElement("span",H(H({role:"img","aria-label":n.name},u),{},{ref:t,tabIndex:b,onClick:s,className:m}),d.createElement(Ri,{icon:n,primaryColor:y,secondaryColor:k,style:x}))});it.displayName="AntdIcon";it.getTwoToneColor=jC;it.setTwoToneColor=jy;var MC=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:gS}))},$C=d.forwardRef(MC),LC={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},zC=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:LC}))},Dy=d.forwardRef(zC),VC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},HC=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:VC}))},BC=d.forwardRef(HC),UC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},WC=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:UC}))},KC=d.forwardRef(WC),qC={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},GC=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:qC}))},Yp=d.forwardRef(GC);function My(e,t){this.v=e,this.k=t}function ct(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}ct=function(o,s,l,u){function c(p,f){ct(o,p,function(h){return this._invoke(p,f,h)})}s?i?i(o,s,{value:l,enumerable:!u,configurable:!u,writable:!u}):o[s]=l:(c("next",0),c("throw",1),c("return",2))},ct(e,t,r,n)}function Jd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function a(h,m,b,x){var v=m&&m.prototype instanceof s?m:s,g=Object.create(v.prototype);return ct(g,"_invoke",function(y,k,E){var C,S,P,T=0,R=E||[],O=!1,_={p:0,n:0,v:e,a:j,f:j.bind(e,4),d:function(W,z){return C=W,S=0,P=e,_.n=z,o}};function j(D,W){for(S=D,P=W,t=0;!O&&T&&!z&&t<R.length;t++){var z,U=R[t],A=_.p,I=U[2];D>3?(z=I===W)&&(P=U[(S=U[4])?5:(S=3,3)],U[4]=U[5]=e):U[0]<=A&&((z=D<2&&A<U[1])?(S=0,_.v=W,_.n=U[1]):A<I&&(z=D<3||U[0]>W||W>I)&&(U[4]=D,U[5]=W,_.n=I,S=0))}if(z||D>1)return o;throw O=!0,W}return function(D,W,z){if(T>1)throw TypeError("Generator is already running");for(O&&W===1&&j(W,z),S=W,P=z;(t=S<2?e:P)||!O;){C||(S?S<3?(S>1&&(_.n=-1),j(S,P)):_.n=P:_.v=P);try{if(T=2,C){if(S||(D="next"),t=C[D]){if(!(t=t.call(C,P)))throw TypeError("iterator result is not an object");if(!t.done)return t;P=t.value,S<2&&(S=0)}else S===1&&(t=C.return)&&t.call(C),S<2&&(P=TypeError("The iterator does not provide a '"+D+"' method"),S=1);C=e}else if((t=(O=_.n<0)?P:y.call(k,_))!==o)break}catch(U){C=e,S=1,P=U}finally{T=1}}return{value:t,done:O}}}(h,b,x),!0),g}var o={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(ct(t={},n,function(){return this}),t),p=u.prototype=s.prototype=Object.create(c);function f(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,ct(h,i,"GeneratorFunction")),h.prototype=Object.create(p),h}return l.prototype=u,ct(p,"constructor",u),ct(u,"constructor",l),l.displayName="GeneratorFunction",ct(u,i,"GeneratorFunction"),ct(p),ct(p,i,"Generator"),ct(p,n,function(){return this}),ct(p,"toString",function(){return"[object Generator]"}),(Jd=function(){return{w:a,m:f}})()}function Ts(e,t){function r(i,a,o,s){try{var l=e[i](a),u=l.value;return u instanceof My?t.resolve(u.v).then(function(c){r("next",c,o,s)},function(c){r("throw",c,o,s)}):t.resolve(u).then(function(c){l.value=c,o(l)},function(c){return r("throw",c,o,s)})}catch(c){s(c)}}var n;this.next||(ct(Ts.prototype),ct(Ts.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ct(this,"_invoke",function(i,a,o){function s(){return new t(function(l,u){r(i,o,l,u)})}return n=n?n.then(s,s):s()},!0)}function $y(e,t,r,n,i){return new Ts(Jd().w(e,t,r,n),i||Promise)}function YC(e,t,r,n,i){var a=$y(e,t,r,n,i);return a.next().then(function(o){return o.done?o.value:a.next()})}function XC(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in t)return i.value=n,i.done=!1,i;return i.done=!0,i}}function Xp(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(fe(e)+" is not iterable")}function kt(){var e=Jd(),t=e.m(kt),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function a(o){var s,l;return function(u){s||(s={stop:function(){return l(u.a,2)},catch:function(){return u.v},abrupt:function(p,f){return l(u.a,i[p],f)},delegateYield:function(p,f,h){return s.resultName=f,l(u.d,Xp(p),h)},finish:function(p){return l(u.f,p)}},l=function(p,f,h){u.p=s.prev,u.n=s.next;try{return p(f,h)}finally{s.next=u.n}}),s.resultName&&(s[s.resultName]=u.v,s.resultName=void 0),s.sent=u.v,s.next=u.n;try{return o.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(kt=function(){return{wrap:function(l,u,c,p){return e.w(a(l),u,c,p&&p.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,u){return new My(l,u)},AsyncIterator:Ts,async:function(l,u,c,p,f){return(n(u)?$y:YC)(a(l),u,c,p,f)},keys:XC,values:Xp}})()}function Qp(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,i)}function Ti(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(l){Qp(a,n,i,o,s,"next",l)}function s(l){Qp(a,n,i,o,s,"throw",l)}o(void 0)})}}var QC=d.createContext({}),JC=function(e){$r(r,e);var t=Pi(r);function r(){return lr(this,r),t.apply(this,arguments)}return ur(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function _a(e){var t=d.useRef();t.current=e;var r=d.useCallback(function(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(a))},[]);return r}var Jp=Nn()?d.useLayoutEffect:d.useEffect,br=function(t,r){var n=d.useRef(!0);Jp(function(){return t(n.current)},r),Jp(function(){return n.current=!1,function(){n.current=!0}},[])},Zp=function(t,r){br(function(n){if(!n)return t()},r)};function yi(e){var t=d.useRef(!1),r=d.useState(e),n=Z(r,2),i=n[0],a=n[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,l){l&&t.current||a(s)}return[i,o]}function eu(e){return e!==void 0}function fl(e,t){var r=t||{},n=r.defaultValue,i=r.value,a=r.onChange,o=r.postState,s=yi(function(){return eu(i)?i:eu(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=Z(s,2),u=l[0],c=l[1],p=i!==void 0?i:u,f=o?o(p):p,h=_a(a),m=yi([p]),b=Z(m,2),x=b[0],v=b[1];Zp(function(){var y=x[0];u!==y&&h(u,y)},[x]),Zp(function(){eu(i)||c(i)},[i]);var g=_a(function(y,k){c(y,k),v([p],k)});return[f,g]}function ZC(e){var t=d.useReducer(function(s){return s+1},0),r=Z(t,2),n=r[1],i=d.useRef(e),a=_a(function(){return i.current}),o=_a(function(s){i.current=typeof s=="function"?s(i.current):s,n()});return[a,o]}var Br="none",Po="appear",Ro="enter",To="leave",ev="none",rr="prepare",Qn="start",Jn="active",Zd="end",Ly="prepared";function tv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function e2(e,t){var r={animationend:tv("Animation","AnimationEnd"),transitionend:tv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var t2=e2(Nn(),typeof window<"u"?window:{}),zy={};if(Nn()){var r2=document.createElement("div");zy=r2.style}var Fo={};function Vy(e){if(Fo[e])return Fo[e];var t=t2[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var a=r[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in zy)return Fo[e]=t[a],Fo[e]}return""}var Hy=Vy("animationend"),By=Vy("transitionend"),Uy=!!(Hy&&By),rv=Hy||"animationend",nv=By||"transitionend";function iv(e,t){if(!e)return null;if(fe(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const n2=function(e){var t=d.useRef();function r(i){i&&(i.removeEventListener(nv,e),i.removeEventListener(rv,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(nv,e),i.addEventListener(rv,e),t.current=i)}return d.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Wy=Nn()?d.useLayoutEffect:d.useEffect,Ky=function(t){return+setTimeout(t,16)},qy=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ky=function(t){return window.requestAnimationFrame(t)},qy=function(t){return window.cancelAnimationFrame(t)});var av=0,ef=new Map;function Gy(e){ef.delete(e)}var St=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;av+=1;var n=av;function i(a){if(a===0)Gy(n),t();else{var o=Ky(function(){i(a-1)});ef.set(n,o)}}return i(r),n};St.cancel=function(e){var t=ef.get(e);return Gy(e),qy(t)};const i2=function(){var e=d.useRef(null);function t(){St.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=St(function(){i<=1?n({isCanceled:function(){return a!==e.current}}):r(n,i-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[r,t]};var a2=[rr,Qn,Jn,Zd],o2=[rr,Ly],Yy=!1,s2=!0;function Xy(e){return e===Jn||e===Zd}const l2=function(e,t,r){var n=yi(ev),i=Z(n,2),a=i[0],o=i[1],s=i2(),l=Z(s,2),u=l[0],c=l[1];function p(){o(rr,!0)}var f=t?o2:a2;return Wy(function(){if(a!==ev&&a!==Zd){var h=f.indexOf(a),m=f[h+1],b=r(a);b===Yy?o(m,!0):m&&u(function(x){function v(){x.isCanceled()||o(m,!0)}b===!0?v():Promise.resolve(b).then(v)})}},[e,a]),d.useEffect(function(){return function(){c()}},[]),[p,a]};function u2(e,t,r,n){var i=n.motionEnter,a=i===void 0?!0:i,o=n.motionAppear,s=o===void 0?!0:o,l=n.motionLeave,u=l===void 0?!0:l,c=n.motionDeadline,p=n.motionLeaveImmediately,f=n.onAppearPrepare,h=n.onEnterPrepare,m=n.onLeavePrepare,b=n.onAppearStart,x=n.onEnterStart,v=n.onLeaveStart,g=n.onAppearActive,y=n.onEnterActive,k=n.onLeaveActive,E=n.onAppearEnd,C=n.onEnterEnd,S=n.onLeaveEnd,P=n.onVisibleChanged,T=yi(),R=Z(T,2),O=R[0],_=R[1],j=ZC(Br),D=Z(j,2),W=D[0],z=D[1],U=yi(null),A=Z(U,2),I=A[0],M=A[1],N=W(),$=d.useRef(!1),V=d.useRef(null);function L(){return r()}var q=d.useRef(!1);function Y(){z(Br),M(null,!0)}var J=_a(function(Ee){var be=W();if(be!==Br){var Ce=L();if(!(Ee&&!Ee.deadline&&Ee.target!==Ce)){var Xe=q.current,B;be===Po&&Xe?B=E==null?void 0:E(Ce,Ee):be===Ro&&Xe?B=C==null?void 0:C(Ce,Ee):be===To&&Xe&&(B=S==null?void 0:S(Ce,Ee)),Xe&&B!==!1&&Y()}}}),de=n2(J),ne=Z(de,1),Me=ne[0],$e=function(be){switch(be){case Po:return F(F(F({},rr,f),Qn,b),Jn,g);case Ro:return F(F(F({},rr,h),Qn,x),Jn,y);case To:return F(F(F({},rr,m),Qn,v),Jn,k);default:return{}}},me=d.useMemo(function(){return $e(N)},[N]),oe=l2(N,!e,function(Ee){if(Ee===rr){var be=me[rr];return be?be(L()):Yy}if(Te in me){var Ce;M(((Ce=me[Te])===null||Ce===void 0?void 0:Ce.call(me,L(),null))||null)}return Te===Jn&&N!==Br&&(Me(L()),c>0&&(clearTimeout(V.current),V.current=setTimeout(function(){J({deadline:!0})},c))),Te===Ly&&Y(),s2}),ze=Z(oe,2),Ue=ze[0],Te=ze[1],at=Xy(Te);q.current=at;var Dt=d.useRef(null);Wy(function(){if(!($.current&&Dt.current===t)){_(t);var Ee=$.current;$.current=!0;var be;!Ee&&t&&s&&(be=Po),Ee&&t&&a&&(be=Ro),(Ee&&!t&&u||!Ee&&p&&!t&&u)&&(be=To);var Ce=$e(be);be&&(e||Ce[rr])?(z(be),Ue()):z(Br),Dt.current=t}},[t]),d.useEffect(function(){(N===Po&&!s||N===Ro&&!a||N===To&&!u)&&z(Br)},[s,a,u]),d.useEffect(function(){return function(){$.current=!1,clearTimeout(V.current)}},[]);var Mt=d.useRef(!1);d.useEffect(function(){O&&(Mt.current=!0),O!==void 0&&N===Br&&((Mt.current||O)&&(P==null||P(O)),Mt.current=!0)},[O,N]);var Pe=I;return me[rr]&&Te===Qn&&(Pe=H({transition:"none"},Pe)),[N,Te,Pe,O??t]}function c2(e){var t=e;fe(e)==="object"&&(t=e.transitionSupport);function r(i,a){return!!(i.motionName&&t&&a!==!1)}var n=d.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,u=l===void 0?!0:l,c=i.forceRender,p=i.children,f=i.motionName,h=i.leavedClassName,m=i.eventProps,b=d.useContext(QC),x=b.motion,v=r(i,x),g=d.useRef(),y=d.useRef();function k(){try{return g.current instanceof HTMLElement?g.current:ca(y.current)}catch{return null}}var E=u2(v,s,k,i),C=Z(E,4),S=C[0],P=C[1],T=C[2],R=C[3],O=d.useRef(R);R&&(O.current=!0);var _=d.useCallback(function(A){g.current=A,Hm(a,A)},[a]),j,D=H(H({},m),{},{visible:s});if(!p)j=null;else if(S===Br)R?j=p(H({},D),_):!u&&O.current&&h?j=p(H(H({},D),{},{className:h}),_):c||!u&&!h?j=p(H(H({},D),{},{style:{display:"none"}}),_):j=null;else{var W;P===rr?W="prepare":Xy(P)?W="active":P===Qn&&(W="start");var z=iv(f,"".concat(S,"-").concat(W));j=p(H(H({},D),{},{className:ge(iv(f,S),F(F({},z,z&&W),f,typeof f=="string")),style:T}),_)}if(d.isValidElement(j)&&ul(j)){var U=Um(j);U||(j=d.cloneElement(j,{ref:_}))}return d.createElement(JC,{ref:y},j)});return n.displayName="CSSMotion",n}const Fi=c2(Uy);var Tc="add",Fc="keep",Oc="remove",tu="removed";function d2(e){var t;return e&&fe(e)==="object"&&"key"in e?t=e:t={key:e},H(H({},t),{},{key:String(t.key)})}function _c(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(d2)}function f2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,a=_c(e),o=_c(t);a.forEach(function(u){for(var c=!1,p=n;p<i;p+=1){var f=o[p];if(f.key===u.key){n<p&&(r=r.concat(o.slice(n,p).map(function(h){return H(H({},h),{},{status:Tc})})),n=p),r.push(H(H({},f),{},{status:Fc})),n+=1,c=!0;break}}c||r.push(H(H({},u),{},{status:Oc}))}),n<i&&(r=r.concat(o.slice(n).map(function(u){return H(H({},u),{},{status:Tc})})));var s={};r.forEach(function(u){var c=u.key;s[c]=(s[c]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){r=r.filter(function(c){var p=c.key,f=c.status;return p!==u||f!==Oc}),r.forEach(function(c){c.key===u&&(c.status=Fc)})}),r}var p2=["component","children","onVisibleChanged","onAllRemoved"],v2=["status"],h2=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function g2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fi,r=function(n){$r(a,n);var i=Pi(a);function a(){var o;lr(this,a);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return o=i.call.apply(i,[this].concat(l)),F(G(o),"state",{keyEntities:[]}),F(G(o),"removeKey",function(c){o.setState(function(p){var f=p.keyEntities.map(function(h){return h.key!==c?h:H(H({},h),{},{status:tu})});return{keyEntities:f}},function(){var p=o.state.keyEntities,f=p.filter(function(h){var m=h.status;return m!==tu}).length;f===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return ur(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,c=u.component,p=u.children,f=u.onVisibleChanged;u.onAllRemoved;var h=kr(u,p2),m=c||d.Fragment,b={};return h2.forEach(function(x){b[x]=h[x],delete h[x]}),delete h.keys,d.createElement(m,h,l.map(function(x,v){var g=x.status,y=kr(x,v2),k=g===Tc||g===Fc;return d.createElement(t,Q({},b,{key:y.key,visible:k,eventProps:y,onVisibleChanged:function(C){f==null||f(C,{key:y.key}),C||s.removeKey(y.key)}}),function(E,C){return p(H(H({},E),{},{index:v}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,c=l.keyEntities,p=_c(u),f=f2(c,p);return{keyEntities:f.filter(function(h){var m=c.find(function(b){var x=b.key;return h.key===x});return!(m&&m.status===tu&&h.status===Oc)})}}}]),a}(d.Component);return F(r,"defaultProps",{component:"div"}),r}g2(Uy);var m2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},y2=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:m2}))},b2=d.forwardRef(y2),w2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},x2=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:w2}))},S2=d.forwardRef(x2),k2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},E2=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:k2}))},C2=d.forwardRef(E2),P2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},R2=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:P2}))},T2=d.forwardRef(R2),F2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},O2=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:F2}))},_2=d.forwardRef(O2),A2=function(t,r){return r||(t?"ant-".concat(t):"ant")},Er=d.createContext({getPrefixCls:A2}),Qy=Er.Consumer,Jy=d.createContext(!1),Zy=d.createContext(void 0);function Ji(e,t,r,n){var i=hi.unstable_batchedUpdates?function(o){hi.unstable_batchedUpdates(r,o)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,i,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,n)}}}function N2(e){return Object.keys(e).reduce(function(t,r){return(r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&!r.startsWith("data-__")&&(t[r]=e[r]),t},{})}var Aa=d.isValidElement;function e0(e){return e&&Aa(e)&&e.type===d.Fragment}function t0(e,t,r){return Aa(e)?d.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function Dr(e,t){return t0(e,e,t)}function I2(e,t,r){return t=Sr(t),Js(e,Ba()?Reflect.construct(t,r||[],Sr(e).constructor):t.apply(e,r))}var j2=function(e){$r(t,e);function t(){var r;return lr(this,t),r=I2(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}return ur(t,[{key:"componentDidCatch",value:function(n,i){this.setState({error:n,info:i})}},{key:"render",value:function(){var n=this.props,i=n.message,a=n.description,o=n.children,s=this.state,l=s.error,u=s.info,c=u&&u.componentStack?u.componentStack:null,p=typeof i>"u"?(l||"").toString():i,f=typeof a>"u"?c:a;return l?d.createElement(Na,{type:"error",message:p,description:d.createElement("pre",null,f)}):o}}]),t}(d.Component),D2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},M2={success:$C,info:KC,error:Dy,warning:BC},$2={success:b2,info:_2,error:S2,warning:T2},L2=function(t){var r=t.description,n=t.icon,i=t.prefixCls,a=t.type,o=(r?$2:M2)[a]||null;return n?t0(n,d.createElement("span",{className:"".concat(i,"-icon")},n),function(){return{className:ge("".concat(i,"-icon"),F({},n.props.className,n.props.className))}}):d.createElement(o,{className:"".concat(i,"-icon")})},z2=function(t){var r=t.isClosable,n=t.closeText,i=t.prefixCls,a=t.closeIcon,o=t.handleClose;return r?d.createElement("button",{type:"button",onClick:o,className:"".concat(i,"-close-icon"),tabIndex:0},n?d.createElement("span",{className:"".concat(i,"-close-text")},n):a):null},Na=function(t){var r=t.description,n=t.prefixCls,i=t.message,a=t.banner,o=t.className,s=o===void 0?"":o,l=t.style,u=t.onMouseEnter,c=t.onMouseLeave,p=t.onClick,f=t.afterClose,h=t.showIcon,m=t.closable,b=t.closeText,x=t.closeIcon,v=x===void 0?d.createElement(C2,null):x,g=t.action,y=D2(t,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),k=d.useState(!1),E=Z(k,2),C=E[0],S=E[1],P=d.useRef(),T=d.useContext(Er),R=T.getPrefixCls,O=T.direction,_=R("alert",n),j=function(N){var $;S(!0),($=y.onClose)===null||$===void 0||$.call(y,N)},D=function(){var N=y.type;return N!==void 0?N:a?"warning":"info"},W=b?!0:m,z=D(),U=a&&h===void 0?!0:h,A=ge(_,"".concat(_,"-").concat(z),F(F(F(F({},"".concat(_,"-with-description"),!!r),"".concat(_,"-no-icon"),!U),"".concat(_,"-banner"),!!a),"".concat(_,"-rtl"),O==="rtl"),s),I=N2(y);return d.createElement(Fi,{visible:!C,motionName:"".concat(_,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(N){return{maxHeight:N.offsetHeight}},onLeaveEnd:f},function(M){var N=M.className,$=M.style;return d.createElement("div",Q({ref:P,"data-show":!C,className:ge(A,N),style:Q(Q({},l),$),onMouseEnter:u,onMouseLeave:c,onClick:p,role:"alert"},I),U?d.createElement(L2,{description:r,icon:y.icon,prefixCls:_,type:z}):null,d.createElement("div",{className:"".concat(_,"-content")},i?d.createElement("div",{className:"".concat(_,"-message")},i):null,r?d.createElement("div",{className:"".concat(_,"-description")},r):null),g?d.createElement("div",{className:"".concat(_,"-action")},g):null,d.createElement(z2,{isClosable:!!W,closeText:b,prefixCls:_,closeIcon:v,handleClose:j}))})};Na.ErrorBoundary=j2;const V2=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Fs={ENTER:13,ESC:27},H2=d.forwardRef(function(e,t){var r=e.didUpdate,n=e.getContainer,i=e.children,a=d.useRef(),o=d.useRef();d.useImperativeHandle(t,function(){return{}});var s=d.useRef(!1);return!s.current&&Nn()&&(o.current=n(),a.current=o.current.parentNode,s.current=!0),d.useEffect(function(){r==null||r(e)}),d.useEffect(function(){return o.current.parentNode===null&&a.current!==null&&a.current.appendChild(o.current),function(){var l;(l=o.current)===null||l===void 0||(l=l.parentNode)===null||l===void 0||l.removeChild(o.current)}},[]),o.current?hi.createPortal(i,o.current):null});function B2(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function U2(e,t,r){var n=e[t]||{};return H(H({},n),r)}function W2(e,t,r,n){for(var i=r.points,a=Object.keys(e),o=0;o<a.length;o+=1){var s=a[o];if(B2(e[s].points,i,n))return"".concat(t,"-placement-").concat(s)}return""}function r0(e){var t=e.prefixCls,r=e.motion,n=e.animation,i=e.transitionName;return r||(n?{motionName:"".concat(t,"-").concat(n)}:i?{motionName:i}:null)}function K2(e){var t=e.prefixCls,r=e.visible,n=e.zIndex,i=e.mask,a=e.maskMotion,o=e.maskAnimation,s=e.maskTransitionName;if(!i)return null;var l={};return(a||s||o)&&(l=H({motionAppear:!0},r0({motion:a,prefixCls:t,transitionName:s,animation:o}))),d.createElement(Fi,Q({},l,{visible:r,removeOnLeave:!0}),function(u){var c=u.className;return d.createElement("div",{style:{zIndex:n},className:ge("".concat(t,"-mask"),c)})})}function ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ov(Object(r),!0).forEach(function(n){q2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function q2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ui,G2={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Os(){if(Ui!==void 0)return Ui;Ui="";var e=document.createElement("p").style,t="Transform";for(var r in G2)r+t in e&&(Ui=r);return Ui}function n0(){return Os()?"".concat(Os(),"TransitionProperty"):"transitionProperty"}function pl(){return Os()?"".concat(Os(),"Transform"):"transform"}function lv(e,t){var r=n0();r&&(e.style[r]=t,r!=="transitionProperty"&&(e.style.transitionProperty=t))}function ru(e,t){var r=pl();r&&(e.style[r]=t,r!=="transform"&&(e.style.transform=t))}function Y2(e){return e.style.transitionProperty||e.style[n0()]}function X2(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("transform")||t.getPropertyValue(pl());if(r&&r!=="none"){var n=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}var Q2=/matrix\((.*)\)/,J2=/matrix3d\((.*)\)/;function Z2(e,t){var r=window.getComputedStyle(e,null),n=r.getPropertyValue("transform")||r.getPropertyValue(pl());if(n&&n!=="none"){var i,a=n.match(Q2);if(a)a=a[1],i=a.split(",").map(function(s){return parseFloat(s,10)}),i[4]=t.x,i[5]=t.y,ru(e,"matrix(".concat(i.join(","),")"));else{var o=n.match(J2)[1];i=o.split(",").map(function(s){return parseFloat(s,10)}),i[12]=t.x,i[13]=t.y,ru(e,"matrix3d(".concat(i.join(","),")"))}}else ru(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var eP=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,Wa;function uv(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function ai(e,t,r){var n=r;if(Ac(t)==="object"){for(var i in t)t.hasOwnProperty(i)&&ai(e,i,t[i]);return}if(typeof n<"u"){typeof n=="number"&&(n="".concat(n,"px")),e.style[t]=n;return}return Wa(e,t)}function tP(e){var t,r,n,i=e.ownerDocument,a=i.body,o=i&&i.documentElement;return t=e.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top),r-=o.clientLeft||a.clientLeft||0,n-=o.clientTop||a.clientTop||0,{left:r,top:n}}function i0(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var i=e.document;r=i.documentElement[n],typeof r!="number"&&(r=i.body[n])}return r}function a0(e){return i0(e)}function o0(e){return i0(e,!0)}function Ia(e){var t=tP(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=a0(n),t.top+=o0(n),t}function tf(e){return e!=null&&e==e.window}function s0(e){return tf(e)?e.document:e.nodeType===9?e:e.ownerDocument}function rP(e,t,r){var n=r,i="",a=s0(e);return n=n||a.defaultView.getComputedStyle(e,null),n&&(i=n.getPropertyValue(t)||n[t]),i}var nP=new RegExp("^(".concat(eP,")(?!px)[a-z%]+$"),"i"),iP=/^(top|right|bottom|left)$/,nu="currentStyle",iu="runtimeStyle",hn="left",aP="px";function oP(e,t){var r=e[nu]&&e[nu][t];if(nP.test(r)&&!iP.test(t)){var n=e.style,i=n[hn],a=e[iu][hn];e[iu][hn]=e[nu][hn],n[hn]=t==="fontSize"?"1em":r||0,r=n.pixelLeft+aP,n[hn]=i,e[iu][hn]=a}return r===""?"auto":r}typeof window<"u"&&(Wa=window.getComputedStyle?rP:oP);function Oo(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function cv(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function dv(e,t,r){ai(e,"position")==="static"&&(e.style.position="relative");var n=-999,i=-999,a=Oo("left",r),o=Oo("top",r),s=cv(a),l=cv(o);a!=="left"&&(n=999),o!=="top"&&(i=999);var u="",c=Ia(e);("left"in t||"top"in t)&&(u=Y2(e)||"",lv(e,"none")),"left"in t&&(e.style[s]="",e.style[a]="".concat(n,"px")),"top"in t&&(e.style[l]="",e.style[o]="".concat(i,"px")),uv(e);var p=Ia(e),f={};for(var h in t)if(t.hasOwnProperty(h)){var m=Oo(h,r),b=h==="left"?n:i,x=c[h]-p[h];m===h?f[m]=b+x:f[m]=b-x}ai(e,f),uv(e),("left"in t||"top"in t)&&lv(e,u);var v={};for(var g in t)if(t.hasOwnProperty(g)){var y=Oo(g,r),k=t[g]-c[g];g===y?v[y]=f[y]+k:v[y]=f[y]-k}ai(e,v)}function sP(e,t){var r=Ia(e),n=X2(e),i={x:n.x,y:n.y};"left"in t&&(i.x=n.x+t.left-r.left),"top"in t&&(i.y=n.y+t.top-r.top),Z2(e,i)}function lP(e,t,r){if(r.ignoreShake){var n=Ia(e),i=n.left.toFixed(0),a=n.top.toFixed(0),o=t.left.toFixed(0),s=t.top.toFixed(0);if(i===o&&a===s)return}r.useCssRight||r.useCssBottom?dv(e,t,r):r.useCssTransform&&pl()in document.body.style?sP(e,t):dv(e,t,r)}function rf(e,t){for(var r=0;r<e.length;r++)t(e[r])}function l0(e){return Wa(e,"boxSizing")==="border-box"}var uP=["margin","border","padding"],Nc=-1,cP=2,Ic=1,dP=0;function fP(e,t,r){var n={},i=e.style,a;for(a in t)t.hasOwnProperty(a)&&(n[a]=i[a],i[a]=t[a]);r.call(e);for(a in t)t.hasOwnProperty(a)&&(i[a]=n[a])}function Zi(e,t,r){var n=0,i,a,o;for(a=0;a<t.length;a++)if(i=t[a],i)for(o=0;o<r.length;o++){var s=void 0;i==="border"?s="".concat(i).concat(r[o],"Width"):s=i+r[o],n+=parseFloat(Wa(e,s))||0}return n}var hr={getParent:function(t){var r=t;do r.nodeType===11&&r.host?r=r.host:r=r.parentNode;while(r&&r.nodeType!==1&&r.nodeType!==9);return r}};rf(["Width","Height"],function(e){hr["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],hr["viewport".concat(e)](r))},hr["viewport".concat(e)]=function(t){var r="client".concat(e),n=t.document,i=n.body,a=n.documentElement,o=a[r];return n.compatMode==="CSS1Compat"&&o||i&&i[r]||o}});function fv(e,t,r){var n=r;if(tf(e))return t==="width"?hr.viewportWidth(e):hr.viewportHeight(e);if(e.nodeType===9)return t==="width"?hr.docWidth(e):hr.docHeight(e);var i=t==="width"?["Left","Right"]:["Top","Bottom"],a=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),o=l0(e),s=0;(a==null||a<=0)&&(a=void 0,s=Wa(e,t),(s==null||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),n===void 0&&(n=o?Ic:Nc);var l=a!==void 0||o,u=a||s;return n===Nc?l?u-Zi(e,["border","padding"],i):s:l?n===Ic?u:u+(n===cP?-Zi(e,["border"],i):Zi(e,["margin"],i)):s+Zi(e,uP.slice(n),i)}var pP={position:"absolute",visibility:"hidden",display:"block"};function pv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=t[0];return i.offsetWidth!==0?n=fv.apply(void 0,t):fP(i,pP,function(){n=fv.apply(void 0,t)}),n}rf(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);hr["outer".concat(t)]=function(n,i){return n&&pv(n,e,i?dP:Ic)};var r=e==="width"?["Left","Right"]:["Top","Bottom"];hr[e]=function(n,i){var a=i;if(a!==void 0){if(n){var o=l0(n);return o&&(a+=Zi(n,["padding","border"],r)),ai(n,e,a)}return}return n&&pv(n,e,Nc)}});function u0(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}var ae={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var r=t.ownerDocument||t;return r.defaultView||r.parentWindow},getDocument:s0,offset:function(t,r,n){if(typeof r<"u")lP(t,r,n||{});else return Ia(t)},isWindow:tf,each:rf,css:ai,clone:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);var i=t.overflow;if(i)for(r in t)t.hasOwnProperty(r)&&(n.overflow[r]=t.overflow[r]);return n},mix:u0,getWindowScrollLeft:function(t){return a0(t)},getWindowScrollTop:function(t){return o0(t)},merge:function(){for(var t={},r=0;r<arguments.length;r++)ae.mix(t,r<0||arguments.length<=r?void 0:arguments[r]);return t},viewportWidth:0,viewportHeight:0};u0(ae,hr);var au=ae.getParent;function jc(e){if(ae.isWindow(e)||e.nodeType===9)return null;var t=ae.getDocument(e),r=t.body,n,i=ae.css(e,"position"),a=i==="fixed"||i==="absolute";if(!a)return e.nodeName.toLowerCase()==="html"?null:au(e);for(n=au(e);n&&n!==r&&n.nodeType!==9;n=au(n))if(i=ae.css(n,"position"),i!=="static")return n;return null}var vv=ae.getParent;function vP(e){if(ae.isWindow(e)||e.nodeType===9)return!1;var t=ae.getDocument(e),r=t.body,n=null;for(n=vv(e);n&&n!==r&&n!==t;n=vv(n)){var i=ae.css(n,"position");if(i==="fixed")return!0}return!1}function nf(e,t){for(var r={left:0,right:1/0,top:0,bottom:1/0},n=jc(e),i=ae.getDocument(e),a=i.defaultView||i.parentWindow,o=i.body,s=i.documentElement;n;){if((navigator.userAgent.indexOf("MSIE")===-1||n.clientWidth!==0)&&n!==o&&n!==s&&ae.css(n,"overflow")!=="visible"){var l=ae.offset(n);l.left+=n.clientLeft,l.top+=n.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+n.clientWidth),r.bottom=Math.min(r.bottom,l.top+n.clientHeight),r.left=Math.max(r.left,l.left)}else if(n===o||n===s)break;n=jc(n)}var u=null;if(!ae.isWindow(e)&&e.nodeType!==9){u=e.style.position;var c=ae.css(e,"position");c==="absolute"&&(e.style.position="fixed")}var p=ae.getWindowScrollLeft(a),f=ae.getWindowScrollTop(a),h=ae.viewportWidth(a),m=ae.viewportHeight(a),b=s.scrollWidth,x=s.scrollHeight,v=window.getComputedStyle(o);if(v.overflowX==="hidden"&&(b=a.innerWidth),v.overflowY==="hidden"&&(x=a.innerHeight),e.style&&(e.style.position=u),t||vP(e))r.left=Math.max(r.left,p),r.top=Math.max(r.top,f),r.right=Math.min(r.right,p+h),r.bottom=Math.min(r.bottom,f+m);else{var g=Math.max(b,p+h);r.right=Math.min(r.right,g);var y=Math.max(x,f+m);r.bottom=Math.min(r.bottom,y)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function hP(e,t,r,n){var i=ae.clone(e),a={width:t.width,height:t.height};return n.adjustX&&i.left<r.left&&(i.left=r.left),n.resizeWidth&&i.left>=r.left&&i.left+a.width>r.right&&(a.width-=i.left+a.width-r.right),n.adjustX&&i.left+a.width>r.right&&(i.left=Math.max(r.right-a.width,r.left)),n.adjustY&&i.top<r.top&&(i.top=r.top),n.resizeHeight&&i.top>=r.top&&i.top+a.height>r.bottom&&(a.height-=i.top+a.height-r.bottom),n.adjustY&&i.top+a.height>r.bottom&&(i.top=Math.max(r.bottom-a.height,r.top)),ae.mix(i,a)}function af(e){var t,r,n;if(!ae.isWindow(e)&&e.nodeType!==9)t=ae.offset(e),r=ae.outerWidth(e),n=ae.outerHeight(e);else{var i=ae.getWindow(e);t={left:ae.getWindowScrollLeft(i),top:ae.getWindowScrollTop(i)},r=ae.viewportWidth(i),n=ae.viewportHeight(i)}return t.width=r,t.height=n,t}function hv(e,t){var r=t.charAt(0),n=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return r==="c"?s+=a/2:r==="b"&&(s+=a),n==="c"?o+=i/2:n==="r"&&(o+=i),{left:o,top:s}}function _o(e,t,r,n,i){var a=hv(t,r[1]),o=hv(e,r[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+n[0]-i[0]),top:Math.round(e.top-s[1]+n[1]-i[1])}}function gv(e,t,r){return e.left<r.left||e.left+t.width>r.right}function mv(e,t,r){return e.top<r.top||e.top+t.height>r.bottom}function gP(e,t,r){return e.left>r.right||e.left+t.width<r.left}function mP(e,t,r){return e.top>r.bottom||e.top+t.height<r.top}function Ao(e,t,r){var n=[];return ae.each(e,function(i){n.push(i.replace(t,function(a){return r[a]}))}),n}function No(e,t){return e[t]=-e[t],e}function yv(e,t){var r;return/%$/.test(e)?r=parseInt(e.substring(0,e.length-1),10)/100*t:r=parseInt(e,10),r||0}function bv(e,t){e[0]=yv(e[0],t.width),e[1]=yv(e[1],t.height)}function c0(e,t,r,n){var i=r.points,a=r.offset||[0,0],o=r.targetOffset||[0,0],s=r.overflow,l=r.source||e;a=[].concat(a),o=[].concat(o),s=s||{};var u={},c=0,p=!!(s&&s.alwaysByViewport),f=nf(l,p),h=af(l);bv(a,h),bv(o,t);var m=_o(h,t,i,a,o),b=ae.merge(h,m);if(f&&(s.adjustX||s.adjustY)&&n){if(s.adjustX&&gv(m,h,f)){var x=Ao(i,/[lr]/gi,{l:"r",r:"l"}),v=No(a,0),g=No(o,0),y=_o(h,t,x,v,g);gP(y,h,f)||(c=1,i=x,a=v,o=g)}if(s.adjustY&&mv(m,h,f)){var k=Ao(i,/[tb]/gi,{t:"b",b:"t"}),E=No(a,1),C=No(o,1),S=_o(h,t,k,E,C);mP(S,h,f)||(c=1,i=k,a=E,o=C)}c&&(m=_o(h,t,i,a,o),ae.mix(b,m));var P=gv(m,h,f),T=mv(m,h,f);if(P||T){var R=i;P&&(R=Ao(i,/[lr]/gi,{l:"r",r:"l"})),T&&(R=Ao(i,/[tb]/gi,{t:"b",b:"t"})),i=R,a=r.offset||[0,0],o=r.targetOffset||[0,0]}u.adjustX=s.adjustX&&P,u.adjustY=s.adjustY&&T,(u.adjustX||u.adjustY)&&(b=hP(m,h,f,u))}return b.width!==h.width&&ae.css(l,"width",ae.width(l)+b.width-h.width),b.height!==h.height&&ae.css(l,"height",ae.height(l)+b.height-h.height),ae.offset(l,{left:b.left,top:b.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:i,offset:a,targetOffset:o,overflow:u}}function yP(e,t){var r=nf(e,t),n=af(e);return!r||n.left+n.width<=r.left||n.top+n.height<=r.top||n.left>=r.right||n.top>=r.bottom}function of(e,t,r){var n=r.target||t,i=af(n),a=!yP(n,r.overflow&&r.overflow.alwaysByViewport);return c0(e,i,r,a)}of.__getOffsetParent=jc;of.__getVisibleRectForElement=nf;function bP(e,t,r){var n,i,a=ae.getDocument(e),o=a.defaultView||a.parentWindow,s=ae.getWindowScrollLeft(o),l=ae.getWindowScrollTop(o),u=ae.viewportWidth(o),c=ae.viewportHeight(o);"pageX"in t?n=t.pageX:n=s+t.clientX,"pageY"in t?i=t.pageY:i=l+t.clientY;var p={left:n,top:i,width:0,height:0},f=n>=0&&n<=s+u&&i>=0&&i<=l+c,h=[r.points[0],"cc"];return c0(e,p,sv(sv({},r),{},{points:h}),f)}function d0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(At(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(r&&s>1)return!1;n.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var c=0;c<a.length;c++)if(!i(a[c],o[c],u))return!1;return!0}if(a&&o&&fe(a)==="object"&&fe(o)==="object"){var p=Object.keys(a);return p.length!==Object.keys(o).length?!1:p.every(function(f){return i(a[f],o[f],u)})}return!1}return i(e,t)}const wP=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},xP=function(e,t){var r=we.useRef(!1),n=we.useRef(null);function i(){window.clearTimeout(n.current)}function a(o){if(i(),!r.current||o===!0){if(e(o)===!1)return;r.current=!0,n.current=window.setTimeout(function(){r.current=!1},t)}else n.current=window.setTimeout(function(){r.current=!1,a()},t)}return[a,function(){r.current=!1,i()}]};function SP(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function kP(e,t){e!==document.activeElement&&da(t,e)&&typeof e.focus=="function"&&e.focus()}function wv(e,t){var r=null,n=null;function i(o){var s=Z(o,1),l=s[0].target;if(document.documentElement.contains(l)){var u=l.getBoundingClientRect(),c=u.width,p=u.height,f=Math.floor(c),h=Math.floor(p);(r!==f||n!==h)&&Promise.resolve().then(function(){t({width:f,height:h})}),r=f,n=h}}var a=new Xm(i);return e&&a.observe(e),function(){a.disconnect()}}function xv(e){return typeof e!="function"?null:e()}function Sv(e){return fe(e)!=="object"||!e?null:e}var EP=function(t,r){var n=t.children,i=t.disabled,a=t.target,o=t.align,s=t.onAlign,l=t.monitorWindowResize,u=t.monitorBufferTime,c=u===void 0?0:u,p=we.useRef({}),f=we.useRef(),h=we.Children.only(n),m=we.useRef({});m.current.disabled=i,m.current.target=a,m.current.align=o,m.current.onAlign=s;var b=xP(function(){var O=m.current,_=O.disabled,j=O.target,D=O.align,W=O.onAlign,z=f.current;if(!_&&j&&z){var U,A=xv(j),I=Sv(j);p.current.element=A,p.current.point=I,p.current.align=D;var M=document,N=M.activeElement;return A&&wP(A)?U=of(z,A,D):I&&(U=bP(z,I,D)),kP(N,z),W&&U&&W(z,U),!0}return!1},c),x=Z(b,2),v=x[0],g=x[1],y=we.useState(),k=Z(y,2),E=k[0],C=k[1],S=we.useState(),P=Z(S,2),T=P[0],R=P[1];return br(function(){C(xv(a)),R(Sv(a))}),we.useEffect(function(){(p.current.element!==E||!SP(p.current.point,T)||!d0(p.current.align,o))&&v()}),we.useEffect(function(){var O=wv(f.current,v);return O},[f.current]),we.useEffect(function(){var O=wv(E,v);return O},[E]),we.useEffect(function(){i?g():v()},[i]),we.useEffect(function(){if(l){var O=Ji(window,"resize",v);return O.remove}},[l]),we.useEffect(function(){return function(){g()}},[]),we.useImperativeHandle(r,function(){return{forceAlign:function(){return v(!0)}}}),we.isValidElement(h)&&(h=we.cloneElement(h,{ref:Ci(h.ref,f)})),h},f0=we.forwardRef(EP);f0.displayName="Align";var kv=["measure","alignPre","align",null,"motion"];const CP=function(e,t){var r=yi(null),n=Z(r,2),i=n[0],a=n[1],o=d.useRef();function s(c){a(c,!0)}function l(){St.cancel(o.current)}function u(c){l(),o.current=St(function(){s(function(p){switch(i){case"align":return"motion";case"motion":return"stable"}return p}),c==null||c()})}return d.useEffect(function(){s("measure")},[e]),d.useEffect(function(){switch(i){case"measure":t();break}i&&(o.current=St(Ti(kt().mark(function c(){var p,f;return kt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:p=kv.indexOf(i),f=kv[p+1],f&&p!==-1&&s(f);case 3:case"end":return m.stop()}},c)}))))},[i]),d.useEffect(function(){return function(){l()}},[]),[i,u]},PP=function(e){var t=d.useState({width:0,height:0}),r=Z(t,2),n=r[0],i=r[1];function a(s){var l=s.offsetWidth,u=s.offsetHeight,c=s.getBoundingClientRect(),p=c.width,f=c.height;Math.abs(l-p)<1&&Math.abs(u-f)<1&&(l=p,u=f),i({width:l,height:u})}var o=d.useMemo(function(){var s={};if(e){var l=n.width,u=n.height;e.indexOf("height")!==-1&&u?s.height=u:e.indexOf("minHeight")!==-1&&u&&(s.minHeight=u),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l)}return s},[e,n]);return[o,a]};var p0=d.forwardRef(function(e,t){var r=e.visible,n=e.prefixCls,i=e.className,a=e.style,o=e.children,s=e.zIndex,l=e.stretch,u=e.destroyPopupOnHide,c=e.forceRender,p=e.align,f=e.point,h=e.getRootDomNode,m=e.getClassNameFromAlign,b=e.onAlign,x=e.onMouseEnter,v=e.onMouseLeave,g=e.onMouseDown,y=e.onTouchStart,k=e.onClick,E=d.useRef(),C=d.useRef(),S=d.useState(),P=Z(S,2),T=P[0],R=P[1],O=PP(l),_=Z(O,2),j=_[0],D=_[1];function W(){l&&D(h())}var z=CP(r,W),U=Z(z,2),A=U[0],I=U[1],M=d.useState(0),N=Z(M,2),$=N[0],V=N[1],L=d.useRef();br(function(){A==="alignPre"&&V(0)},[A]);function q(){return f||h}function Y(){var oe;(oe=E.current)===null||oe===void 0||oe.forceAlign()}function J(oe,ze){var Ue=m(ze);T!==Ue&&R(Ue),V(function(Te){return Te+1}),A==="align"&&(b==null||b(oe,ze))}br(function(){A==="align"&&($<3?Y():I(function(){var oe;(oe=L.current)===null||oe===void 0||oe.call(L)}))},[$]);var de=H({},r0(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(oe){var ze=de[oe];de[oe]=function(Ue,Te){return I(),ze==null?void 0:ze(Ue,Te)}});function ne(){return new Promise(function(oe){L.current=oe})}d.useEffect(function(){!de.motionName&&A==="motion"&&I()},[de.motionName,A]),d.useImperativeHandle(t,function(){return{forceAlign:Y,getElement:function(){return C.current}}});var Me=H(H({},j),{},{zIndex:s,opacity:A==="motion"||A==="stable"||!r?void 0:0,pointerEvents:!r&&A!=="stable"?"none":void 0},a),$e=!0;p!=null&&p.points&&(A==="align"||A==="stable")&&($e=!1);var me=o;return d.Children.count(o)>1&&(me=d.createElement("div",{className:"".concat(n,"-content")},o)),d.createElement(Fi,Q({visible:r,ref:C,leavedClassName:"".concat(n,"-hidden")},de,{onAppearPrepare:ne,onEnterPrepare:ne,removeOnLeave:u,forceRender:c}),function(oe,ze){var Ue=oe.className,Te=oe.style,at=ge(n,i,T,Ue);return d.createElement(f0,{target:q(),key:"popup",ref:E,monitorWindowResize:!0,disabled:$e,align:p,onAlign:J},d.createElement("div",{ref:ze,className:at,onMouseEnter:x,onMouseLeave:v,onMouseDownCapture:g,onTouchStartCapture:y,onClick:k,style:H(H({},Te),Me)},me))})});p0.displayName="PopupInner";var v0=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.visible,i=e.zIndex,a=e.children,o=e.mobile;o=o===void 0?{}:o;var s=o.popupClassName,l=o.popupStyle,u=o.popupMotion,c=u===void 0?{}:u,p=o.popupRender,f=e.onClick,h=d.useRef();d.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return h.current}}});var m=H({zIndex:i},l),b=a;return d.Children.count(a)>1&&(b=d.createElement("div",{className:"".concat(r,"-content")},a)),p&&(b=p(b)),d.createElement(Fi,Q({visible:n,ref:h,removeOnLeave:!0},c),function(x,v){var g=x.className,y=x.style,k=ge(r,s,g);return d.createElement("div",{ref:v,className:k,onClick:f,style:H(H({},y),m)},b)})});v0.displayName="MobilePopupInner";var RP=["visible","mobile"],h0=d.forwardRef(function(e,t){var r=e.visible,n=e.mobile,i=kr(e,RP),a=d.useState(r),o=Z(a,2),s=o[0],l=o[1],u=d.useState(!1),c=Z(u,2),p=c[0],f=c[1],h=H(H({},i),{},{visible:s});d.useEffect(function(){l(r),r&&n&&f(V2())},[r,n]);var m=p?d.createElement(v0,Q({},h,{mobile:n,ref:t})):d.createElement(p0,Q({},h,{ref:t}));return d.createElement("div",null,d.createElement(K2,h),m)});h0.displayName="Popup";var Ev=d.createContext(null);function ou(){}function TP(){return""}function FP(e){return e?e.ownerDocument:window.document}var OP=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function _P(e){var t=function(r){$r(i,r);var n=Pi(i);function i(a){var o;lr(this,i),o=n.call(this,a),F(G(o),"popupRef",d.createRef()),F(G(o),"triggerRef",d.createRef()),F(G(o),"portalContainer",void 0),F(G(o),"attachId",void 0),F(G(o),"clickOutsideHandler",void 0),F(G(o),"touchOutsideHandler",void 0),F(G(o),"contextMenuOutsideHandler1",void 0),F(G(o),"contextMenuOutsideHandler2",void 0),F(G(o),"mouseDownTimeout",void 0),F(G(o),"focusTime",void 0),F(G(o),"preClickTime",void 0),F(G(o),"preTouchTime",void 0),F(G(o),"delayTimer",void 0),F(G(o),"hasPopupMouseDown",void 0),F(G(o),"onMouseEnter",function(l){var u=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",l),o.delaySetPopupVisible(!0,u,u?null:l)}),F(G(o),"onMouseMove",function(l){o.fireEvents("onMouseMove",l),o.setPoint(l)}),F(G(o),"onMouseLeave",function(l){o.fireEvents("onMouseLeave",l),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),F(G(o),"onPopupMouseEnter",function(){o.clearDelayTimer()}),F(G(o),"onPopupMouseLeave",function(l){var u;l.relatedTarget&&!l.relatedTarget.setTimeout&&da((u=o.popupRef.current)===null||u===void 0?void 0:u.getElement(),l.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),F(G(o),"onFocus",function(l){o.fireEvents("onFocus",l),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))}),F(G(o),"onMouseDown",function(l){o.fireEvents("onMouseDown",l),o.preClickTime=Date.now()}),F(G(o),"onTouchStart",function(l){o.fireEvents("onTouchStart",l),o.preTouchTime=Date.now()}),F(G(o),"onBlur",function(l){o.fireEvents("onBlur",l),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)}),F(G(o),"onContextMenu",function(l){l.preventDefault(),o.fireEvents("onContextMenu",l),o.setPopupVisible(!0,l)}),F(G(o),"onContextMenuClose",function(){o.isContextMenuToShow()&&o.close()}),F(G(o),"onClick",function(l){if(o.fireEvents("onClick",l),o.focusTime){var u;if(o.preClickTime&&o.preTouchTime?u=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?u=o.preClickTime:o.preTouchTime&&(u=o.preTouchTime),Math.abs(u-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var c=!o.state.popupVisible;(o.isClickToHide()&&!c||c&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,l)}),F(G(o),"onPopupMouseDown",function(){if(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context){var l;(l=o.context).onPopupMouseDown.apply(l,arguments)}}),F(G(o),"onDocumentClick",function(l){if(!(o.props.mask&&!o.props.maskClosable)){var u=l.target,c=o.getRootDomNode(),p=o.getPopupDomNode();(!da(c,u)||o.isContextMenuOnly())&&!da(p,u)&&!o.hasPopupMouseDown&&o.close()}}),F(G(o),"getRootDomNode",function(){var l=o.props.getTriggerDOMNode;if(l)return l(o.triggerRef.current);try{var u=ca(o.triggerRef.current);if(u)return u}catch{}return hi.findDOMNode(G(o))}),F(G(o),"getPopupClassNameFromAlign",function(l){var u=[],c=o.props,p=c.popupPlacement,f=c.builtinPlacements,h=c.prefixCls,m=c.alignPoint,b=c.getPopupClassNameFromAlign;return p&&f&&u.push(W2(f,h,l,m)),b&&u.push(b(l)),u.join(" ")}),F(G(o),"getComponent",function(){var l=o.props,u=l.prefixCls,c=l.destroyPopupOnHide,p=l.popupClassName,f=l.onPopupAlign,h=l.popupMotion,m=l.popupAnimation,b=l.popupTransitionName,x=l.popupStyle,v=l.mask,g=l.maskAnimation,y=l.maskTransitionName,k=l.maskMotion,E=l.zIndex,C=l.popup,S=l.stretch,P=l.alignPoint,T=l.mobile,R=l.forceRender,O=l.onPopupClick,_=o.state,j=_.popupVisible,D=_.point,W=o.getPopupAlign(),z={};return o.isMouseEnterToShow()&&(z.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(z.onMouseLeave=o.onPopupMouseLeave),z.onMouseDown=o.onPopupMouseDown,z.onTouchStart=o.onPopupMouseDown,d.createElement(h0,Q({prefixCls:u,destroyPopupOnHide:c,visible:j,point:P&&D,className:p,align:W,onAlign:f,animation:m,getClassNameFromAlign:o.getPopupClassNameFromAlign},z,{stretch:S,getRootDomNode:o.getRootDomNode,style:x,mask:v,zIndex:E,transitionName:b,maskAnimation:g,maskTransitionName:y,maskMotion:k,ref:o.popupRef,motion:h,mobile:T,forceRender:R,onClick:O}),typeof C=="function"?C():C)}),F(G(o),"attachParent",function(l){St.cancel(o.attachId);var u=o.props,c=u.getPopupContainer,p=u.getDocument,f=o.getRootDomNode(),h;c?(f||c.length===0)&&(h=c(f)):h=p(o.getRootDomNode()).body,h?h.appendChild(l):o.attachId=St(function(){o.attachParent(l)})}),F(G(o),"getContainer",function(){if(!o.portalContainer){var l=o.props.getDocument,u=l(o.getRootDomNode()).createElement("div");u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.width="100%",o.portalContainer=u}return o.attachParent(o.portalContainer),o.portalContainer}),F(G(o),"setPoint",function(l){var u=o.props.alignPoint;!u||!l||o.setState({point:{pageX:l.pageX,pageY:l.pageY}})}),F(G(o),"handlePortalUpdate",function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)}),F(G(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown});var s;return"popupVisible"in a?s=!!a.popupVisible:s=!!a.defaultPopupVisible,o.state={prevPopupVisible:s,popupVisible:s},OP.forEach(function(l){o["fire".concat(l)]=function(u){o.fireEvents(l,u)}}),o}return ur(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var o=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=o.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ji(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||o.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ji(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||o.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Ji(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Ji(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),St.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var o;return((o=this.popupRef.current)===null||o===void 0?void 0:o.getElement())||null}},{key:"getPopupAlign",value:function(){var o=this.props,s=o.popupPlacement,l=o.popupAlign,u=o.builtinPlacements;return s&&u?U2(u,s,l):l}},{key:"setPopupVisible",value:function(o,s){var l=this.props.alignPoint,u=this.state.popupVisible;this.clearDelayTimer(),u!==o&&("popupVisible"in this.props||this.setState({popupVisible:o,prevPopupVisible:u}),this.props.onPopupVisibleChange(o)),l&&s&&o&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(o,s,l){var u=this,c=s*1e3;if(this.clearDelayTimer(),c){var p=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){u.setPopupVisible(o,p),u.clearDelayTimer()},c)}else this.setPopupVisible(o,l)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(o){var s=this.props.children.props,l=this.props;return s[o]&&l[o]?this["fire".concat(o)]:s[o]||l[o]}},{key:"isClickToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var o=this.props.action;return o==="contextMenu"||o.length===1&&o[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var o;(o=this.popupRef.current)===null||o===void 0||o.forceAlign()}}},{key:"fireEvents",value:function(o,s){var l=this.props.children.props[o];l&&l(s);var u=this.props[o];u&&u(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var o=this.state.popupVisible,s=this.props,l=s.children,u=s.forceRender,c=s.alignPoint,p=s.className,f=s.autoDestroy,h=d.Children.only(l),m={key:"trigger"};this.isContextMenuToShow()?m.onContextMenu=this.onContextMenu:m.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(m.onClick=this.onClick,m.onMouseDown=this.onMouseDown,m.onTouchStart=this.onTouchStart):(m.onClick=this.createTwoChains("onClick"),m.onMouseDown=this.createTwoChains("onMouseDown"),m.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(m.onMouseEnter=this.onMouseEnter,c&&(m.onMouseMove=this.onMouseMove)):m.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?m.onMouseLeave=this.onMouseLeave:m.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(m.onFocus=this.onFocus,m.onBlur=this.onBlur):(m.onFocus=this.createTwoChains("onFocus"),m.onBlur=this.createTwoChains("onBlur"));var b=ge(h&&h.props&&h.props.className,p);b&&(m.className=b);var x=H({},m);ul(h)&&(x.ref=Ci(this.triggerRef,h.ref));var v=d.cloneElement(h,x),g;return(o||this.popupRef.current||u)&&(g=d.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!o&&f&&(g=null),d.createElement(Ev.Provider,{value:this.triggerContextValue},v,g)}}],[{key:"getDerivedStateFromProps",value:function(o,s){var l=o.popupVisible,u={};return l!==void 0&&s.popupVisible!==l&&(u.popupVisible=l,u.prevPopupVisible=s.popupVisible),u}}]),i}(d.Component);return F(t,"contextType",Ev),F(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:TP,getDocument:FP,onPopupVisibleChange:ou,afterPopupVisibleChange:ou,onPopupAlign:ou,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const AP=_P(H2);var xn="RC_FORM_INTERNAL_HOOKS",ke=function(){At(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bi=d.createContext({getFieldValue:ke,getFieldsValue:ke,getFieldError:ke,getFieldWarning:ke,getFieldsError:ke,isFieldsTouched:ke,isFieldTouched:ke,isFieldValidating:ke,isFieldsValidating:ke,resetFields:ke,setFields:ke,setFieldValue:ke,setFieldsValue:ke,validateFields:ke,submit:ke,getInternalHooks:function(){return ke(),{dispatch:ke,initEntityValue:ke,registerField:ke,useSubscribe:ke,setInitialValues:ke,destroyForm:ke,setCallbacks:ke,registerWatch:ke,getFields:ke,setValidateMessages:ke,setPreserve:ke,getInitialValue:ke}}}),_s=d.createContext(null);function Dc(e){return e==null?[]:Array.isArray(e)?e:[e]}function NP(e){return e&&!!e._init}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(this,arguments)}function IP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ja(e,t)}function Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mc(e)}function ja(e,t){return ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ja(e,t)}function jP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jo(e,t,r){return jP()?Jo=Reflect.construct.bind():Jo=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&ja(u,o.prototype),u},Jo.apply(null,arguments)}function DP(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function $c(e){var t=typeof Map=="function"?new Map:void 0;return $c=function(n){if(n===null||!DP(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Jo(n,arguments,Mc(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ja(i,n)},$c(e)}var MP=/%[sdj%]/g,$P=function(){};function Lc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ot(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(MP,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function LP(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ye(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||LP(t)&&typeof e=="string"&&!e)}function zP(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function Cv(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<i?t(e[s],a):r([])}a([])}function VP(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var Pv=function(e){IP(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}($c(Error));function HP(e,t,r,n,i){if(t.first){var a=new Promise(function(f,h){var m=function(v){return n(v),v.length?h(new Pv(v,Lc(v))):f(i)},b=VP(e);Cv(b,r,m)});return a.catch(function(f){return f}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],p=new Promise(function(f,h){var m=function(x){if(c.push.apply(c,x),u++,u===l)return n(c),c.length?h(new Pv(c,Lc(c))):f(i)};s.length||(n(c),f(i)),s.forEach(function(b){var x=e[b];o.indexOf(b)!==-1?Cv(x,r,m):zP(x,r,m)})});return p.catch(function(f){return f}),p}function BP(e){return!!(e&&e.message!==void 0)}function UP(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Rv(e,t){return function(r){var n;return e.fullFields?n=UP(t,e.fullFields):n=t[r.field||e.fullField],BP(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Tv(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Sn({},e[r],n):e[r]=n}}return e}var g0=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||Ye(r,o||t.type))&&i.push(Ot(a.messages.required,t.fullField))},WP=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(Ot(a.messages.whitespace,t.fullField))},Io,KP=function(){if(Io)return Io;var e="[a-fA-F\\d:]",t=function(k){return k&&k.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=(`
110
- (?:
111
- (?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
112
- (?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
113
- (?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
114
- (?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
115
- (?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
116
- (?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
117
- (?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
118
- (?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
119
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
120
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(k){return k&&k.exact?a:new RegExp("(?:"+t(k)+r+t(k)+")|(?:"+t(k)+i+t(k)+")","g")};l.v4=function(y){return y&&y.exact?o:new RegExp(""+t(y)+r+t(y),"g")},l.v6=function(y){return y&&y.exact?s:new RegExp(""+t(y)+i+t(y),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",p=l.v4().source,f=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',g="(?:"+u+"|www\\.)"+c+"(?:localhost|"+p+"|"+f+"|"+h+m+b+")"+x+v;return Io=new RegExp("(?:^"+g+"$)","i"),Io},Fv={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ea={integer:function(t){return ea.number(t)&&parseInt(t,10)===t},float:function(t){return ea.number(t)&&!ea.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ea.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Fv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(KP())},hex:function(t){return typeof t=="string"&&!!t.match(Fv.hex)}},qP=function(t,r,n,i,a){if(t.required&&r===void 0){g0(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?ea[s](r)||i.push(Ot(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Ot(a.messages.types[s],t.fullField,t.type))},GP=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,p=null,f=typeof r=="number",h=typeof r=="string",m=Array.isArray(r);if(f?p="number":h?p="string":m&&(p="array"),!p)return!1;m&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&i.push(Ot(a.messages[p].len,t.fullField,t.len)):s&&!l&&c<t.min?i.push(Ot(a.messages[p].min,t.fullField,t.min)):l&&!s&&c>t.max?i.push(Ot(a.messages[p].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&i.push(Ot(a.messages[p].range,t.fullField,t.min,t.max))},Dn="enum",YP=function(t,r,n,i,a){t[Dn]=Array.isArray(t[Dn])?t[Dn]:[],t[Dn].indexOf(r)===-1&&i.push(Ot(a.messages[Dn],t.fullField,t[Dn].join(", ")))},XP=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Ot(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Ot(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ce={required:g0,whitespace:WP,type:qP,range:GP,enum:YP,pattern:XP},QP=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r,"string")&&!t.required)return n();ce.required(t,r,i,o,a,"string"),Ye(r,"string")||(ce.type(t,r,i,o,a),ce.range(t,r,i,o,a),ce.pattern(t,r,i,o,a),t.whitespace===!0&&ce.whitespace(t,r,i,o,a))}n(o)},JP=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),r!==void 0&&ce.type(t,r,i,o,a)}n(o)},ZP=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),r!==void 0&&(ce.type(t,r,i,o,a),ce.range(t,r,i,o,a))}n(o)},eR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),r!==void 0&&ce.type(t,r,i,o,a)}n(o)},tR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),Ye(r)||ce.type(t,r,i,o,a)}n(o)},rR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),r!==void 0&&(ce.type(t,r,i,o,a),ce.range(t,r,i,o,a))}n(o)},nR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),r!==void 0&&(ce.type(t,r,i,o,a),ce.range(t,r,i,o,a))}n(o)},iR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ce.required(t,r,i,o,a,"array"),r!=null&&(ce.type(t,r,i,o,a),ce.range(t,r,i,o,a))}n(o)},aR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),r!==void 0&&ce.type(t,r,i,o,a)}n(o)},oR="enum",sR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a),r!==void 0&&ce[oR](t,r,i,o,a)}n(o)},lR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r,"string")&&!t.required)return n();ce.required(t,r,i,o,a),Ye(r,"string")||ce.pattern(t,r,i,o,a)}n(o)},uR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r,"date")&&!t.required)return n();if(ce.required(t,r,i,o,a),!Ye(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ce.type(t,l,i,o,a),l&&ce.range(t,l.getTime(),i,o,a)}}n(o)},cR=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;ce.required(t,r,i,o,a,s),n(o)},su=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ye(r,o)&&!t.required)return n();ce.required(t,r,i,s,a,o),Ye(r,o)||ce.type(t,r,i,s,a)}n(s)},dR=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ye(r)&&!t.required)return n();ce.required(t,r,i,o,a)}n(o)},pa={string:QP,method:JP,number:ZP,boolean:eR,regexp:tR,integer:rR,float:nR,array:iR,object:aR,enum:sR,pattern:lR,date:uR,url:su,hex:su,email:su,required:cR,any:dR};function zc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Vc=zc(),Ka=function(){function e(r){this.rules=null,this._messages=Vc,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=Tv(zc(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(b){var x=[],v={};function g(k){if(Array.isArray(k)){var E;x=(E=x).concat.apply(E,k)}else x.push(k)}for(var y=0;y<b.length;y++)g(b[y]);x.length?(v=Lc(x),u(x,v)):u(null,s)}if(l.messages){var p=this.messages();p===Vc&&(p=zc()),Tv(p,l.messages),l.messages=p}else l.messages=this.messages();var f={},h=l.keys||Object.keys(this.rules);h.forEach(function(b){var x=o.rules[b],v=s[b];x.forEach(function(g){var y=g;typeof y.transform=="function"&&(s===n&&(s=Sn({},s)),v=s[b]=y.transform(v)),typeof y=="function"?y={validator:y}:y=Sn({},y),y.validator=o.getValidationMethod(y),y.validator&&(y.field=b,y.fullField=y.fullField||b,y.type=o.getType(y),f[b]=f[b]||[],f[b].push({rule:y,value:v,source:s,field:b}))})});var m={};return HP(f,l,function(b,x){var v=b.rule,g=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");g=g&&(v.required||!v.required&&b.value),v.field=b.field;function y(C,S){return Sn({},S,{fullField:v.fullField+"."+C,fullFields:v.fullFields?[].concat(v.fullFields,[C]):[C]})}function k(C){C===void 0&&(C=[]);var S=Array.isArray(C)?C:[C];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&v.message!==void 0&&(S=[].concat(v.message));var P=S.map(Rv(v,s));if(l.first&&P.length)return m[v.field]=1,x(P);if(!g)x(P);else{if(v.required&&!b.value)return v.message!==void 0?P=[].concat(v.message).map(Rv(v,s)):l.error&&(P=[l.error(v,Ot(l.messages.required,v.field))]),x(P);var T={};v.defaultField&&Object.keys(b.value).map(function(_){T[_]=v.defaultField}),T=Sn({},T,b.rule.fields);var R={};Object.keys(T).forEach(function(_){var j=T[_],D=Array.isArray(j)?j:[j];R[_]=D.map(y.bind(null,_))});var O=new e(R);O.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),O.validate(b.value,b.rule.options||l,function(_){var j=[];P&&P.length&&j.push.apply(j,P),_&&_.length&&j.push.apply(j,_),x(j.length?j:null)})}}var E;if(v.asyncValidator)E=v.asyncValidator(v,b.value,k,b.source,l);else if(v.validator){try{E=v.validator(v,b.value,k,b.source,l)}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),k(C.message)}E===!0?k():E===!1?k(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):E instanceof Array?k(E):E instanceof Error&&k(E.message)}E&&E.then&&E.then(function(){return k()},function(C){return k(C)})},function(b){c(b)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!pa.hasOwnProperty(n.type))throw new Error(Ot("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?pa.required:pa[this.getType(n)]||void 0},e}();Ka.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");pa[t]=r};Ka.warning=$P;Ka.messages=Vc;Ka.validators=pa;var Pt="'${name}' is not a valid ${type}",m0={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Pt,method:Pt,array:Pt,object:Pt,number:Pt,date:Pt,boolean:Pt,integer:Pt,float:Pt,regexp:Pt,email:Pt,url:Pt,hex:Pt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Ov=Ka;function fR(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var _v="CODE_LOGIC_ERROR";function Hc(e,t,r,n,i){return Bc.apply(this,arguments)}function Bc(){return Bc=Ti(kt().mark(function e(t,r,n,i,a){var o,s,l,u,c,p,f,h,m;return kt().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return o=H({},n),delete o.ruleIndex,Ov.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(_v)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),u=new Ov(F({},t,[o])),c=Qi(m0,i.validateMessages),u.messages(c),p=[],x.prev=10,x.next=13,Promise.resolve(u.validate(F({},t,r),H({},i)));case 13:x.next=18;break;case 15:x.prev=15,x.t0=x.catch(10),x.t0.errors&&(p=x.t0.errors.map(function(v,g){var y=v.message,k=y===_v?c.default:y;return d.isValidElement(k)?d.cloneElement(k,{key:"error_".concat(g)}):k}));case 18:if(!(!p.length&&l)){x.next=23;break}return x.next=21,Promise.all(r.map(function(v,g){return Hc("".concat(t,".").concat(g),v,l,i,a)}));case 21:return f=x.sent,x.abrupt("return",f.reduce(function(v,g){return[].concat(le(v),le(g))},[]));case 23:return h=H(H({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),m=p.map(function(v){return typeof v=="string"?fR(v,h):v}),x.abrupt("return",m);case 26:case"end":return x.stop()}},e,null,[[10,15]])})),Bc.apply(this,arguments)}function pR(e,t,r,n,i,a){var o=e.join("."),s=r.map(function(c,p){var f=c.validator,h=H(H({},c),{},{ruleIndex:p});return f&&(h.validator=function(m,b,x){var v=!1,g=function(){for(var E=arguments.length,C=new Array(E),S=0;S<E;S++)C[S]=arguments[S];Promise.resolve().then(function(){At(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||x.apply(void 0,C)})},y=f(m,b,g);v=y&&typeof y.then=="function"&&typeof y.catch=="function",At(v,"`callback` is deprecated. Please return a promise instead."),v&&y.then(function(){x()}).catch(function(k){x(k||" ")})}),h}).sort(function(c,p){var f=c.warningOnly,h=c.ruleIndex,m=p.warningOnly,b=p.ruleIndex;return!!f==!!m?h-b:f?1:-1}),l;if(i===!0)l=new Promise(function(){var c=Ti(kt().mark(function p(f,h){var m,b,x;return kt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:m=0;case 1:if(!(m<s.length)){g.next=12;break}return b=s[m],g.next=5,Hc(o,t,b,n,a);case 5:if(x=g.sent,!x.length){g.next=9;break}return h([{errors:x,rule:b}]),g.abrupt("return");case 9:m+=1,g.next=1;break;case 12:f([]);case 13:case"end":return g.stop()}},p)}));return function(p,f){return c.apply(this,arguments)}}());else{var u=s.map(function(c){return Hc(o,t,c,n,a).then(function(p){return{errors:p,rule:c}})});l=(i?hR(u):vR(u)).then(function(c){return Promise.reject(c)})}return l.catch(function(c){return c}),l}function vR(e){return Uc.apply(this,arguments)}function Uc(){return Uc=Ti(kt().mark(function e(t){return kt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var a,o=(a=[]).concat.apply(a,le(i));return o}));case 1:case"end":return n.stop()}},e)})),Uc.apply(this,arguments)}function hR(e){return Wc.apply(this,arguments)}function Wc(){return Wc=Ti(kt().mark(function e(t){var r;return kt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(a){t.forEach(function(o){o.then(function(s){s.errors.length&&a([s]),r+=1,r===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),Wc.apply(this,arguments)}function He(e){return Dc(e)}function Av(e,t){var r={};return t.forEach(function(n){var i=ir(e,n);r=tr(r,n,i)}),r}function oi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return y0(t,n,r)})}function y0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,i){return e[i]===n})}function gR(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||fe(e)!=="object"||fe(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return le(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function mR(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&fe(t.target)==="object"&&e in t.target?t.target[e]:t}function Nv(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],a=t-r;return a>0?[].concat(le(e.slice(0,r)),[i],le(e.slice(r,t)),le(e.slice(t+1,n))):a<0?[].concat(le(e.slice(0,t)),le(e.slice(t+1,r+1)),[i],le(e.slice(r+1,n))):e}var yR=["name"],Lt=[];function Iv(e,t,r,n,i,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==i}var sf=function(e){$r(r,e);var t=Pi(r);function r(n){var i;if(lr(this,r),i=t.call(this,n),F(G(i),"state",{resetCount:0}),F(G(i),"cancelRegisterFunc",null),F(G(i),"mounted",!1),F(G(i),"touched",!1),F(G(i),"dirty",!1),F(G(i),"validatePromise",void 0),F(G(i),"prevValidating",void 0),F(G(i),"errors",Lt),F(G(i),"warnings",Lt),F(G(i),"cancelRegister",function(){var l=i.props,u=l.preserve,c=l.isListField,p=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(c,u,He(p)),i.cancelRegisterFunc=null}),F(G(i),"getNamePath",function(){var l=i.props,u=l.name,c=l.fieldContext,p=c.prefixName,f=p===void 0?[]:p;return u!==void 0?[].concat(le(f),le(u)):[]}),F(G(i),"getRules",function(){var l=i.props,u=l.rules,c=u===void 0?[]:u,p=l.fieldContext;return c.map(function(f){return typeof f=="function"?f(p):f})}),F(G(i),"refresh",function(){i.mounted&&i.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),F(G(i),"metaCache",null),F(G(i),"triggerMetaEvent",function(l){var u=i.props.onMetaChange;if(u){var c=H(H({},i.getMeta()),{},{destroy:l});d0(i.metaCache,c)||u(c),i.metaCache=c}else i.metaCache=null}),F(G(i),"onStoreChange",function(l,u,c){var p=i.props,f=p.shouldUpdate,h=p.dependencies,m=h===void 0?[]:h,b=p.onReset,x=c.store,v=i.getNamePath(),g=i.getValue(l),y=i.getValue(x),k=u&&oi(u,v);switch(c.type==="valueUpdate"&&c.source==="external"&&g!==y&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Lt,i.warnings=Lt,i.triggerMetaEvent()),c.type){case"reset":if(!u||k){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Lt,i.warnings=Lt,i.triggerMetaEvent(),b==null||b(),i.refresh();return}break;case"remove":{if(f){i.reRender();return}break}case"setField":{var E=c.data;if(k){"touched"in E&&(i.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(i.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(i.errors=E.errors||Lt),"warnings"in E&&(i.warnings=E.warnings||Lt),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in E&&oi(u,v,!0)){i.reRender();return}if(f&&!v.length&&Iv(f,l,x,g,y,c)){i.reRender();return}break}case"dependenciesUpdate":{var C=m.map(He);if(C.some(function(S){return oi(c.relatedFields,S)})){i.reRender();return}break}default:if(k||(!m.length||v.length||f)&&Iv(f,l,x,g,y,c)){i.reRender();return}break}f===!0&&i.reRender()}),F(G(i),"validateRules",function(l){var u=i.getNamePath(),c=i.getValue(),p=l||{},f=p.triggerName,h=p.validateOnly,m=h===void 0?!1:h,b=Promise.resolve().then(Ti(kt().mark(function x(){var v,g,y,k,E,C,S;return kt().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(v=i.props,g=v.validateFirst,y=g===void 0?!1:g,k=v.messageVariables,E=v.validateDebounce,C=i.getRules(),f&&(C=C.filter(function(R){return R}).filter(function(R){var O=R.validateTrigger;if(!O)return!0;var _=Dc(O);return _.includes(f)})),!(E&&f)){T.next=10;break}return T.next=8,new Promise(function(R){setTimeout(R,E)});case 8:if(i.validatePromise===b){T.next=10;break}return T.abrupt("return",[]);case 10:return S=pR(u,c,C,l,y,k),S.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lt;if(i.validatePromise===b){var O;i.validatePromise=null;var _=[],j=[];(O=R.forEach)===null||O===void 0||O.call(R,function(D){var W=D.rule.warningOnly,z=D.errors,U=z===void 0?Lt:z;W?j.push.apply(j,le(U)):_.push.apply(_,le(U))}),i.errors=_,i.warnings=j,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",S);case 13:case"end":return T.stop()}},x)})));return m||(i.validatePromise=b,i.dirty=!0,i.errors=Lt,i.warnings=Lt,i.triggerMetaEvent(),i.reRender()),b}),F(G(i),"isFieldValidating",function(){return!!i.validatePromise}),F(G(i),"isFieldTouched",function(){return i.touched}),F(G(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,u=l.getInternalHooks(xn),c=u.getInitialValue;return c(i.getNamePath())!==void 0}),F(G(i),"getErrors",function(){return i.errors}),F(G(i),"getWarnings",function(){return i.warnings}),F(G(i),"isListField",function(){return i.props.isListField}),F(G(i),"isList",function(){return i.props.isList}),F(G(i),"isPreserve",function(){return i.props.preserve}),F(G(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),F(G(i),"getOnlyChild",function(l){if(typeof l=="function"){var u=i.getMeta();return H(H({},i.getOnlyChild(l(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var c=gi(l);return c.length!==1||!d.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),F(G(i),"getValue",function(l){var u=i.props.fieldContext.getFieldsValue,c=i.getNamePath();return ir(l||u(!0),c)}),F(G(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,c=u.trigger,p=u.validateTrigger,f=u.getValueFromEvent,h=u.normalize,m=u.valuePropName,b=u.getValueProps,x=u.fieldContext,v=p!==void 0?p:x.validateTrigger,g=i.getNamePath(),y=x.getInternalHooks,k=x.getFieldsValue,E=y(xn),C=E.dispatch,S=i.getValue(),P=b||function(_){return F({},m,_)},T=l[c],R=H(H({},l),P(S));R[c]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var _,j=arguments.length,D=new Array(j),W=0;W<j;W++)D[W]=arguments[W];f?_=f.apply(void 0,D):_=mR.apply(void 0,[m].concat(D)),h&&(_=h(_,S,k(!0))),C({type:"updateValue",namePath:g,value:_}),T&&T.apply(void 0,D)};var O=Dc(v||[]);return O.forEach(function(_){var j=R[_];R[_]=function(){j&&j.apply(void 0,arguments);var D=i.props.rules;D&&D.length&&C({type:"validateField",namePath:g,triggerName:_})}}),R}),n.fieldContext){var a=n.fieldContext.getInternalHooks,o=a(xn),s=o.initEntityValue;s(G(i))}return i}return ur(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,l=s(xn),u=l.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,a=this.props.children,o=this.getOnlyChild(a),s=o.child,l=o.isFunction,u;return l?u=s:d.isValidElement(s)?u=d.cloneElement(s,this.getControlled(s.props)):(At(!s,"`children` of Field is not validate ReactElement."),u=s),d.createElement(d.Fragment,{key:i},u)}}]),r}(d.Component);F(sf,"contextType",bi);F(sf,"defaultProps",{trigger:"onChange",valuePropName:"value"});function b0(e){var t=e.name,r=kr(e,yR),n=d.useContext(bi),i=d.useContext(_s),a=t!==void 0?He(t):void 0,o="keep";return r.isListField||(o="_".concat((a||[]).join("_"))),d.createElement(sf,Q({key:o,name:a,isListField:!!i},r,{fieldContext:n}))}function bR(e){var t=e.name,r=e.initialValue,n=e.children,i=e.rules,a=e.validateTrigger,o=e.isListField,s=d.useContext(bi),l=d.useContext(_s),u=d.useRef({keys:[],id:0}),c=u.current,p=d.useMemo(function(){var b=He(s.prefixName)||[];return[].concat(le(b),le(He(t)))},[s.prefixName,t]),f=d.useMemo(function(){return H(H({},s),{},{prefixName:p})},[s,p]),h=d.useMemo(function(){return{getKey:function(x){var v=p.length,g=x[v];return[c.keys[g],x.slice(v+1)]}}},[p]);if(typeof n!="function")return At(!1,"Form.List only accepts function as children."),null;var m=function(x,v,g){var y=g.source;return y==="internal"?!1:x!==v};return d.createElement(_s.Provider,{value:h},d.createElement(bi.Provider,{value:f},d.createElement(b0,{name:[],shouldUpdate:m,rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:o??!!l},function(b,x){var v=b.value,g=v===void 0?[]:v,y=b.onChange,k=s.getFieldValue,E=function(){var T=k(p||[]);return T||[]},C={add:function(T,R){var O=E();R>=0&&R<=O.length?(c.keys=[].concat(le(c.keys.slice(0,R)),[c.id],le(c.keys.slice(R))),y([].concat(le(O.slice(0,R)),[T],le(O.slice(R))))):(c.keys=[].concat(le(c.keys),[c.id]),y([].concat(le(O),[T]))),c.id+=1},remove:function(T){var R=E(),O=new Set(Array.isArray(T)?T:[T]);O.size<=0||(c.keys=c.keys.filter(function(_,j){return!O.has(j)}),y(R.filter(function(_,j){return!O.has(j)})))},move:function(T,R){if(T!==R){var O=E();T<0||T>=O.length||R<0||R>=O.length||(c.keys=Nv(c.keys,T,R),y(Nv(O,T,R)))}}},S=g||[];return Array.isArray(S)||(S=[]),n(S.map(function(P,T){var R=c.keys[T];return R===void 0&&(c.keys[T]=c.id,R=c.keys[T],c.id+=1),{name:T,key:R,isListField:!0}}),C,x)})))}function wR(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),i(n))})})}):Promise.resolve([])}var w0="__@field_split__";function lu(e){return e.map(function(t){return"".concat(fe(t),":").concat(t)}).join(w0)}var Mn=function(){function e(){lr(this,e),F(this,"kvs",new Map)}return ur(e,[{key:"set",value:function(r,n){this.kvs.set(lu(r),n)}},{key:"get",value:function(r){return this.kvs.get(lu(r))}},{key:"update",value:function(r,n){var i=this.get(r),a=n(i);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(lu(r))}},{key:"map",value:function(r){return le(this.kvs.entries()).map(function(n){var i=Z(n,2),a=i[0],o=i[1],s=a.split(w0);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),c=Z(u,3),p=c[1],f=c[2];return p==="number"?Number(f):f}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,a=n.value;return r[i.join(".")]=a,null}),r}}]),e}(),xR=["name"],SR=ur(function e(t){var r=this;lr(this,e),F(this,"formHooked",!1),F(this,"forceRootUpdate",void 0),F(this,"subscribable",!0),F(this,"store",{}),F(this,"fieldEntities",[]),F(this,"initialValues",{}),F(this,"callbacks",{}),F(this,"validateMessages",null),F(this,"preserve",null),F(this,"lastValidatePromise",null),F(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),F(this,"getInternalHooks",function(n){return n===xn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(At(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),F(this,"useSubscribe",function(n){r.subscribable=n}),F(this,"prevWithoutPreserves",null),F(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var a,o=Qi(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=tr(o,l,ir(n,l))}),r.prevWithoutPreserves=null,r.updateStore(o)}}),F(this,"destroyForm",function(){var n=new Mn;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n}),F(this,"getInitialValue",function(n){var i=ir(r.initialValues,n);return n.length?Qi(i):i}),F(this,"setCallbacks",function(n){r.callbacks=n}),F(this,"setValidateMessages",function(n){r.validateMessages=n}),F(this,"setPreserve",function(n){r.preserve=n}),F(this,"watchList",[]),F(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),F(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(o){o(i,a,n)})}}),F(this,"timeoutId",null),F(this,"warningUnhooked",function(){}),F(this,"updateStore",function(n){r.store=n}),F(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities}),F(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Mn;return r.getFieldEntities(n).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),F(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(a){var o=He(a);return i.get(o)||{INVALIDATE_NAME_PATH:He(a)}})}),F(this,"getFieldsValue",function(n,i){r.warningUnhooked();var a,o,s;if(n===!0||Array.isArray(n)?(a=n,o=i):n&&fe(n)==="object"&&(s=n.strict,o=n.filter),a===!0&&!o)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return l.forEach(function(c){var p,f,h="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var m,b;if((m=(b=c).isList)!==null&&m!==void 0&&m.call(b))return}else if(!a&&(p=(f=c).isListField)!==null&&p!==void 0&&p.call(f))return;if(!o)u.push(h);else{var x="getMeta"in c?c.getMeta():null;o(x)&&u.push(h)}}),Av(r.store,u.map(He))}),F(this,"getFieldValue",function(n){r.warningUnhooked();var i=He(n);return ir(r.store,i)}),F(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:He(n[o]),errors:[],warnings:[]}})}),F(this,"getFieldError",function(n){r.warningUnhooked();var i=He(n),a=r.getFieldsError([i])[0];return a.errors}),F(this,"getFieldWarning",function(n){r.warningUnhooked();var i=He(n),a=r.getFieldsError([i])[0];return a.warnings}),F(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i[0],s=i[1],l,u=!1;i.length===0?l=null:i.length===1?Array.isArray(o)?(l=o.map(He),u=!1):(l=null,u=o):(l=o.map(He),u=s);var c=r.getFieldEntities(!0),p=function(x){return x.isFieldTouched()};if(!l)return u?c.every(p):c.some(p);var f=new Mn;l.forEach(function(b){f.set(b,[])}),c.forEach(function(b){var x=b.getNamePath();l.forEach(function(v){v.every(function(g,y){return x[y]===g})&&f.update(v,function(g){return[].concat(le(g),[b])})})});var h=function(x){return x.some(p)},m=f.map(function(b){var x=b.value;return x});return u?m.every(h):m.some(h)}),F(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),F(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(o){return o.isFieldValidating()});var a=n.map(He);return i.some(function(o){var s=o.getNamePath();return oi(a,s)&&o.isFieldValidating()})}),F(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),F(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Mn,a=r.getFieldEntities(!0);a.forEach(function(l){var u=l.props.initialValue,c=l.getNamePath();if(u!==void 0){var p=i.get(c)||new Set;p.add({entity:l,value:u}),i.set(c,p)}});var o=function(u){u.forEach(function(c){var p=c.props.initialValue;if(p!==void 0){var f=c.getNamePath(),h=r.getInitialValue(f);if(h!==void 0)At(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var m=i.get(f);if(m&&m.size>1)At(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var b=r.getFieldValue(f);(!n.skipExist||b===void 0)&&r.updateStore(tr(r.store,f,le(m)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=i.get(l);if(u){var c;(c=s).push.apply(c,le(le(u).map(function(p){return p.entity})))}})):s=a,o(s)}),F(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(Qi(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(He);a.forEach(function(o){var s=r.getInitialValue(o);r.updateStore(tr(r.store,o,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(i,a,{type:"reset"}),r.notifyWatch(a)}),F(this,"setFields",function(n){r.warningUnhooked();var i=r.store,a=[];n.forEach(function(o){var s=o.name,l=kr(o,xR),u=He(s);a.push(u),"value"in l&&r.updateStore(tr(r.store,u,l.value)),r.notifyObservers(i,[u],{type:"setField",data:o})}),r.notifyWatch(a)}),F(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=H(H({},s),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),F(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var a=n.getNamePath(),o=ir(r.store,a);o===void 0&&r.updateStore(tr(r.store,a,i))}}),F(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),F(this,"registerField",function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(p){return p!==n}),!r.isMergedPreserve(s)&&(!o||l.length>1)){var u=o?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==u&&r.fieldEntities.every(function(p){return!y0(p.getNamePath(),i)})){var c=r.store;r.updateStore(tr(c,i,u,!0)),r.notifyObservers(c,[i],{type:"remove"}),r.triggerDependenciesUpdate(c,i)}}r.notifyWatch([i])}}),F(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,a=n.value;r.updateValue(i,a);break}case"validateField":{var o=n.namePath,s=n.triggerName;r.validateFields([o],{triggerName:s});break}}}),F(this,"notifyObservers",function(n,i,a){if(r.subscribable){var o=H(H({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,i,o)})}else r.forceRootUpdate()}),F(this,"triggerDependenciesUpdate",function(n,i){var a=r.getDependencyChildrenFields(i);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[i].concat(le(a))}),a}),F(this,"updateValue",function(n,i){var a=He(n),o=r.store;r.updateStore(tr(r.store,a,i)),r.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(o,a),l=r.callbacks.onValuesChange;if(l){var u=Av(r.store,[a]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(le(s)))}),F(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var a=Qi(r.store,n);r.updateStore(a)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),F(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i}])}),F(this,"getDependencyChildrenFields",function(n){var i=new Set,a=[],o=new Mn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(c){var p=He(c);o.update(p,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(u){var c=o.get(u)||new Set;c.forEach(function(p){if(!i.has(p)){i.add(p);var f=p.getNamePath();p.isFieldDirty()&&f.length&&(a.push(f),l(f))}})};return s(n),a}),F(this,"triggerOnFieldsChange",function(n,i){var a=r.callbacks.onFieldsChange;if(a){var o=r.getFields();if(i){var s=new Mn;i.forEach(function(u){var c=u.name,p=u.errors;s.set(c,p)}),o.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=o.filter(function(u){var c=u.name;return oi(n,c)});l.length&&a(l,o)}}),F(this,"validateFields",function(n,i){var a;r.warningUnhooked();var o,s;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,s=i):s=n;var l=!!o,u=l?o.map(He):[],c=[],p=String(Date.now()),f=new Set,h=(a=s)===null||a===void 0?void 0:a.recursive;r.getFieldEntities(!0).forEach(function(v){if(l||u.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)){var g=v.getNamePath();if(f.add(g.join(p)),!l||oi(u,g,h)){var y=v.validateRules(H({validateMessages:H(H({},m0),r.validateMessages)},s));c.push(y.then(function(){return{name:g,errors:[],warnings:[]}}).catch(function(k){var E,C=[],S=[];return(E=k.forEach)===null||E===void 0||E.call(k,function(P){var T=P.rule.warningOnly,R=P.errors;T?S.push.apply(S,le(R)):C.push.apply(C,le(R))}),C.length?Promise.reject({name:g,errors:C,warnings:S}):{name:g,errors:C,warnings:S}}))}}});var m=wR(c);r.lastValidatePromise=m,m.catch(function(v){return v}).then(function(v){var g=v.map(function(y){var k=y.name;return k});r.notifyObservers(r.store,g,{type:"validateFinish"}),r.triggerOnFieldsChange(g,v)});var b=m.then(function(){return r.lastValidatePromise===m?Promise.resolve(r.getFieldsValue(u)):Promise.reject([])}).catch(function(v){var g=v.filter(function(y){return y&&y.errors.length});return Promise.reject({values:r.getFieldsValue(u),errorFields:g,outOfDate:r.lastValidatePromise!==m})});b.catch(function(v){return v});var x=u.filter(function(v){return f.has(v.join(p))});return r.triggerOnFieldsChange(x),b}),F(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(a){console.error(a)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=t});function x0(e){var t=d.useRef(),r=d.useState({}),n=Z(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new SR(a);t.current=o.getForm()}return[t.current]}var Kc=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),kR=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,a=t.children,o=d.useContext(Kc),s=d.useRef({});return d.createElement(Kc.Provider,{value:H(H({},o),{},{validateMessages:H(H({},o.validateMessages),r),triggerFormChange:function(u,c){n&&n(u,{changedFields:c,forms:s.current}),o.triggerFormChange(u,c)},triggerFormFinish:function(u,c){i&&i(u,{values:c,forms:s.current}),o.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(s.current=H(H({},s.current),{},F({},u,c))),o.registerForm(u,c)},unregisterForm:function(u){var c=H({},s.current);delete c[u],s.current=c,o.unregisterForm(u)}})},a)},ER=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],CR=function(t,r){var n=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,u=t.component,c=u===void 0?"form":u,p=t.validateMessages,f=t.validateTrigger,h=f===void 0?"onChange":f,m=t.onValuesChange,b=t.onFieldsChange,x=t.onFinish,v=t.onFinishFailed,g=kr(t,ER),y=d.useContext(Kc),k=x0(o),E=Z(k,1),C=E[0],S=C.getInternalHooks(xn),P=S.useSubscribe,T=S.setInitialValues,R=S.setCallbacks,O=S.setValidateMessages,_=S.setPreserve,j=S.destroyForm;d.useImperativeHandle(r,function(){return C}),d.useEffect(function(){return y.registerForm(n,C),function(){y.unregisterForm(n)}},[y,C,n]),O(H(H({},y.validateMessages),p)),R({onValuesChange:m,onFieldsChange:function($){if(y.triggerFormChange(n,$),b){for(var V=arguments.length,L=new Array(V>1?V-1:0),q=1;q<V;q++)L[q-1]=arguments[q];b.apply(void 0,[$].concat(L))}},onFinish:function($){y.triggerFormFinish(n,$),x&&x($)},onFinishFailed:v}),_(s);var D=d.useRef(null);T(i,!D.current),D.current||(D.current=!0),d.useEffect(function(){return j},[]);var W,z=typeof l=="function";if(z){var U=C.getFieldsValue(!0);W=l(U,C)}else W=l;P(!z);var A=d.useRef();d.useEffect(function(){gR(A.current||[],a||[])||C.setFields(a||[]),A.current=a},[a,C]);var I=d.useMemo(function(){return H(H({},C),{},{validateTrigger:h})},[C,h]),M=d.createElement(_s.Provider,{value:null},d.createElement(bi.Provider,{value:I},W));return c===!1?M:d.createElement(c,Q({},g,{onSubmit:function($){$.preventDefault(),$.stopPropagation(),C.submit()},onReset:function($){var V;$.preventDefault(),C.resetFields(),(V=g.onReset)===null||V===void 0||V.call(g,$)}}),M)};function jv(e){try{return JSON.stringify(e)}catch{return Math.random()}}function PR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=n===void 0?[]:n,a=t[1],o=a===void 0?{}:a,s=NP(o)?{form:o}:o,l=s.form,u=d.useState(),c=Z(u,2),p=c[0],f=c[1],h=d.useMemo(function(){return jv(p)},[p]),m=d.useRef(h);m.current=h;var b=d.useContext(bi),x=l||b,v=x&&x._init,g=He(i),y=d.useRef(g);return y.current=g,d.useEffect(function(){if(v){var k=x.getFieldsValue,E=x.getInternalHooks,C=E(xn),S=C.registerWatch,P=S(function(R,O){var _=ir(s.preserve?O:R,y.current),j=jv(_);m.current!==j&&(m.current=j,f(_))}),T=ir(s.preserve?k(!0):k(),y.current);return p!==T&&f(T),P}},[v]),p}var RR=d.forwardRef(CR),qa=RR;qa.FormProvider=kR;qa.Field=b0;qa.List=bR;qa.useForm=x0;qa.useWatch=PR;var S0=d.createContext({}),Lr=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r},TR=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r};Lr("bottomLeft","bottomRight","topLeft","topRight");var FR=function(t,r,n){return n!==void 0?n:"".concat(t,"-").concat(r)};Lr("warning","error","");function qc(e,t,r){return ge(F(F(F(F(F({},"".concat(e,"-status-success"),t==="success"),"".concat(e,"-status-warning"),t==="warning"),"".concat(e,"-status-error"),t==="error"),"".concat(e,"-status-validating"),t==="validating"),"".concat(e,"-has-feedback"),r))}var k0=function(t,r){return r||t},OR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},_R=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:OR}))},AR=d.forwardRef(_R),NR=d.createContext(null),IR=function(t,r){var n=d.useContext(NR),i=d.useMemo(function(){if(!n)return"";var a=n.compactDirection,o=n.isFirstItem,s=n.isLastItem,l=a==="vertical"?"-vertical-":"-";return ge(F(F(F(F({},"".concat(t,"-compact").concat(l,"item"),!0),"".concat(t,"-compact").concat(l,"first-item"),o),"".concat(t,"-compact").concat(l,"last-item"),s),"".concat(t,"-compact").concat(l,"item-rtl"),r==="rtl"))},[t,r,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:i}},zt={adjustX:1,adjustY:1},Vt=[0,0],E0={left:{points:["cr","cl"],overflow:zt,offset:[-4,0],targetOffset:Vt},right:{points:["cl","cr"],overflow:zt,offset:[4,0],targetOffset:Vt},top:{points:["bc","tc"],overflow:zt,offset:[0,-4],targetOffset:Vt},bottom:{points:["tc","bc"],overflow:zt,offset:[0,4],targetOffset:Vt},topLeft:{points:["bl","tl"],overflow:zt,offset:[0,-4],targetOffset:Vt},leftTop:{points:["tr","tl"],overflow:zt,offset:[-4,0],targetOffset:Vt},topRight:{points:["br","tr"],overflow:zt,offset:[0,-4],targetOffset:Vt},rightTop:{points:["tl","tr"],overflow:zt,offset:[4,0],targetOffset:Vt},bottomRight:{points:["tr","br"],overflow:zt,offset:[0,4],targetOffset:Vt},rightBottom:{points:["bl","br"],overflow:zt,offset:[4,0],targetOffset:Vt},bottomLeft:{points:["tl","bl"],overflow:zt,offset:[0,4],targetOffset:Vt},leftBottom:{points:["br","bl"],overflow:zt,offset:[-4,0],targetOffset:Vt}};function jR(e){var t=e.showArrow,r=e.arrowContent,n=e.children,i=e.prefixCls,a=e.id,o=e.overlayInnerStyle,s=e.className,l=e.style;return d.createElement("div",{className:ge("".concat(i,"-content"),s),style:l},t!==!1&&d.createElement("div",{className:"".concat(i,"-arrow"),key:"arrow"},r),d.createElement("div",{className:"".concat(i,"-inner"),id:a,role:"tooltip",style:o},typeof n=="function"?n():n))}var DR=function(t,r){var n=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,u=l===void 0?.1:l,c=t.overlayStyle,p=t.prefixCls,f=p===void 0?"rc-tooltip":p,h=t.children,m=t.onVisibleChange,b=t.afterVisibleChange,x=t.transitionName,v=t.animation,g=t.motion,y=t.placement,k=y===void 0?"right":y,E=t.align,C=E===void 0?{}:E,S=t.destroyTooltipOnHide,P=S===void 0?!1:S,T=t.defaultVisible,R=t.getTooltipContainer,O=t.overlayInnerStyle,_=t.arrowContent,j=t.overlay,D=t.id,W=t.showArrow,z=kr(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),U=d.useRef(null);d.useImperativeHandle(r,function(){return U.current});var A=H({},z);"visible"in t&&(A.popupVisible=t.visible);var I=function(){return d.createElement(jR,{showArrow:W,arrowContent:_,key:"content",prefixCls:f,id:D,overlayInnerStyle:O},j)},M=!1,N=!1;if(typeof P=="boolean")M=P;else if(P&&fe(P)==="object"){var $=P.keepParent;M=$===!0,N=$===!1}return d.createElement(AP,Q({popupClassName:n,prefixCls:f,popup:I,action:a,builtinPlacements:E0,popupPlacement:k,ref:U,popupAlign:C,getPopupContainer:R,onPopupVisibleChange:m,afterPopupVisibleChange:b,popupTransitionName:x,popupAnimation:v,popupMotion:g,defaultPopupVisible:T,destroyPopupOnHide:M,autoDestroy:N,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:s},A),h)};const MR=d.forwardRef(DR);Lr("success","processing","error","default","warning");var $R=Lr("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),LR={adjustX:1,adjustY:1},Dv={adjustX:0,adjustY:0},zR=[0,0];function Mv(e){return typeof e=="boolean"?e?LR:Dv:Q(Q({},Dv),e)}function VR(e){var t=e.arrowWidth,r=t===void 0?4:t,n=e.horizontalArrowShift,i=n===void 0?16:n,a=e.verticalArrowShift,o=a===void 0?8:a,s=e.autoAdjustOverflow,l=e.arrowPointAtCenter,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+r),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+r)]},topRight:{points:["br","tc"],offset:[i+r,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+r)]},bottomRight:{points:["tr","bc"],offset:[i+r,4]},rightBottom:{points:["bl","cr"],offset:[4,o+r]},bottomLeft:{points:["tl","bc"],offset:[-(i+r),4]},leftBottom:{points:["br","cl"],offset:[-4,o+r]}};return Object.keys(u).forEach(function(c){u[c]=l?Q(Q({},u[c]),{overflow:Mv(s),targetOffset:zR}):Q(Q({},E0[c]),{overflow:Mv(s)}),u[c].ignoreShake=!0}),u}var HR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},BR=function(t,r){var n={},i=Q({},t);return r.forEach(function(a){t&&a in t&&(n[a]=t[a],delete i[a])}),{picked:n,omitted:i}},$v=new RegExp("^(".concat($R.join("|"),")(-inverse)?$"));function UR(e,t){var r=e.type;if((r.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||r.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||r.__ANT_RADIO===!0&&e.props.disabled){var n=BR(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=n.picked,a=n.omitted,o=Q(Q({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),s=Q(Q({},a),{pointerEvents:"none"}),l=Dr(e,{style:s,className:null});return d.createElement("span",{style:o,className:ge(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},l)}return e}var Gc=d.forwardRef(function(e,t){var r=d.useContext(Er),n=r.getPopupContainer,i=r.getPrefixCls,a=r.direction,o=fl(!1,{value:e.open!==void 0?e.open:e.visible,defaultValue:e.defaultOpen!==void 0?e.defaultOpen:e.defaultVisible}),s=Z(o,2),l=s[0],u=s[1],c=function(){var L=e.title,q=e.overlay;return!L&&!q&&L!==0},p=function(L){var q,Y;u(c()?!1:L),c()||((q=e.onOpenChange)===null||q===void 0||q.call(e,L),(Y=e.onVisibleChange)===null||Y===void 0||Y.call(e,L))},f=function(){var L=e.builtinPlacements,q=e.arrowPointAtCenter,Y=q===void 0?!1:q,J=e.autoAdjustOverflow,de=J===void 0?!0:J;return L||VR({arrowPointAtCenter:Y,autoAdjustOverflow:de})},h=function(L,q){var Y=f(),J=Object.keys(Y).find(function(Me){var $e,me;return Y[Me].points[0]===(($e=q.points)===null||$e===void 0?void 0:$e[0])&&Y[Me].points[1]===((me=q.points)===null||me===void 0?void 0:me[1])});if(J){var de=L.getBoundingClientRect(),ne={top:"50%",left:"50%"};/top|Bottom/.test(J)?ne.top="".concat(de.height-q.offset[1],"px"):/Top|bottom/.test(J)&&(ne.top="".concat(-q.offset[1],"px")),/left|Right/.test(J)?ne.left="".concat(de.width-q.offset[0],"px"):/right|Left/.test(J)&&(ne.left="".concat(-q.offset[0],"px")),L.style.transformOrigin="".concat(ne.left," ").concat(ne.top)}},m=function(){var L=e.title,q=e.overlay;return L===0?L:q||L||""},b=e.getPopupContainer,x=e.placement,v=x===void 0?"top":x,g=e.mouseEnterDelay,y=g===void 0?.1:g,k=e.mouseLeaveDelay,E=k===void 0?.1:k,C=HR(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay"]),S=e.prefixCls,P=e.openClassName,T=e.getTooltipContainer,R=e.overlayClassName,O=e.color,_=e.overlayInnerStyle,j=e.children,D=i("tooltip",S),W=i(),z=l;!("open"in e)&&!("visible"in e)&&c()&&(z=!1);var U=UR(Aa(j)&&!e0(j)?j:d.createElement("span",null,j),D),A=U.props,I=!A.className||typeof A.className=="string"?ge(A.className,F({},P||"".concat(D,"-open"),!0)):A.className,M=ge(R,F(F({},"".concat(D,"-rtl"),a==="rtl"),"".concat(D,"-").concat(O),O&&$v.test(O))),N=_,$={};return O&&!$v.test(O)&&(N=Q(Q({},_),{background:O}),$={"--antd-arrow-background-color":O}),d.createElement(MR,Q({},C,{placement:v,mouseEnterDelay:y,mouseLeaveDelay:E,prefixCls:D,overlayClassName:M,getTooltipContainer:b||T||n,ref:t,builtinPlacements:f(),overlay:m(),visible:z,onVisibleChange:p,onPopupAlign:h,overlayInnerStyle:N,arrowContent:d.createElement("span",{className:"".concat(D,"-arrow-content"),style:$}),motion:{motionName:FR(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),z?Dr(U,{className:I}):U)}),WR=0,si={};function As(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=WR++,n=t;function i(){n-=1,n<=0?(e(),delete si[r]):si[r]=St(i)}return si[r]=St(i),r}As.cancel=function(t){t!==void 0&&(St.cancel(si[t]),delete si[t])};As.ids=si;function KR(e,t,r){return t=Sr(t),Js(e,Ba()?Reflect.construct(t,r||[],Sr(e).constructor):t.apply(e,r))}var uu;function Lv(e){return!e||e.offsetParent===null||e.hidden}function qR(e){return e instanceof Document?e.body:Array.from(e.childNodes).find(function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE})}function GR(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}var C0=function(e){$r(t,e);function t(){var r;return lr(this,t),r=KR(this,t,arguments),r.containerRef=d.createRef(),r.animationStart=!1,r.destroyed=!1,r.onClick=function(n,i){var a,o,s=r.props,l=s.insertExtraNode,u=s.disabled;if(!(u||!n||Lv(n)||n.className.includes("-leave"))){r.extraNode=document.createElement("div");var c=G(r),p=c.extraNode,f=r.context.getPrefixCls;p.className="".concat(f(""),"-click-animating-node");var h=r.getAttributeName();if(n.setAttribute(h,"true"),i&&i!=="#fff"&&i!=="#ffffff"&&i!=="rgb(255, 255, 255)"&&i!=="rgba(255, 255, 255, 1)"&&GR(i)&&!/rgba\((?:\d*, ){3}0\)/.test(i)&&i!=="transparent"){p.style.borderColor=i;var m=((a=n.getRootNode)===null||a===void 0?void 0:a.call(n))||n.ownerDocument,b=(o=qR(m))!==null&&o!==void 0?o:m;uu=ly(`
121
- [`.concat(f(""),"-click-animating-without-extra-node='true']::after, .").concat(f(""),`-click-animating-node {
122
- --antd-wave-shadow-color: `).concat(i,`;
123
- }`),"antd-wave",{csp:r.csp,attachTo:b})}l&&n.appendChild(p),["transition","animation"].forEach(function(x){n.addEventListener("".concat(x,"start"),r.onTransitionStart),n.addEventListener("".concat(x,"end"),r.onTransitionEnd)})}},r.onTransitionStart=function(n){if(!r.destroyed){var i=r.containerRef.current;!n||n.target!==i||r.animationStart||r.resetEffect(i)}},r.onTransitionEnd=function(n){!n||n.animationName!=="fadeEffect"||r.resetEffect(n.target)},r.bindAnimationEvent=function(n){if(!(!n||!n.getAttribute||n.getAttribute("disabled")||n.className.includes("disabled"))){var i=function(o){if(!(o.target.tagName==="INPUT"||Lv(o.target))){r.resetEffect(n);var s=getComputedStyle(n).getPropertyValue("border-top-color")||getComputedStyle(n).getPropertyValue("border-color")||getComputedStyle(n).getPropertyValue("background-color");r.clickWaveTimeoutId=window.setTimeout(function(){return r.onClick(n,s)},0),As.cancel(r.animationStartId),r.animationStart=!0,r.animationStartId=As(function(){r.animationStart=!1},10)}};return n.addEventListener("click",i,!0),{cancel:function(){n.removeEventListener("click",i,!0)}}}},r.renderWave=function(n){var i=n.csp,a=r.props.children;if(r.csp=i,!d.isValidElement(a))return a;var o=r.containerRef;return ul(a)&&(o=Ci(a.ref,r.containerRef)),Dr(a,{ref:o})},r}return ur(t,[{key:"componentDidMount",value:function(){this.destroyed=!1;var n=this.containerRef.current;!n||n.nodeType!==1||(this.instance=this.bindAnimationEvent(n))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var n=this.context.getPrefixCls,i=this.props.insertExtraNode;return i?"".concat(n(""),"-click-animating"):"".concat(n(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(n){var i=this;if(!(!n||n===this.extraNode||!(n instanceof Element))){var a=this.props.insertExtraNode,o=this.getAttributeName();n.setAttribute(o,"false"),uu&&(uu.innerHTML=""),a&&this.extraNode&&n.contains(this.extraNode)&&n.removeChild(this.extraNode),["transition","animation"].forEach(function(s){n.removeEventListener("".concat(s,"start"),i.onTransitionStart),n.removeEventListener("".concat(s,"end"),i.onTransitionEnd)})}}},{key:"render",value:function(){return d.createElement(Qy,null,this.renderWave)}}]),t}(d.Component);C0.contextType=Er;var YR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},P0=d.createContext(void 0),XR=function(t){var r=d.useContext(Er),n=r.getPrefixCls,i=r.direction,a=t.prefixCls,o=t.size,s=t.className,l=YR(t,["prefixCls","size","className"]),u=n("btn-group",a),c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}var p=ge(u,F(F({},"".concat(u,"-").concat(c),c),"".concat(u,"-rtl"),i==="rtl"),s);return d.createElement(P0.Provider,{value:o},d.createElement("div",Q({},l,{className:p})))},cu=function(){return{width:0,opacity:0,transform:"scale(0)"}},du=function(t){return{width:t.scrollWidth,opacity:1,transform:"scale(1)"}},QR=function(t){var r=t.prefixCls,n=t.loading,i=t.existIcon,a=!!n;return i?we.createElement("span",{className:"".concat(r,"-loading-icon")},we.createElement(Yp,null)):we.createElement(Fi,{visible:a,motionName:"".concat(r,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:cu,onAppearActive:du,onEnterStart:cu,onEnterActive:du,onLeaveStart:du,onLeaveActive:cu},function(o,s){var l=o.className,u=o.style;return we.createElement("span",{className:"".concat(r,"-loading-icon"),style:u,ref:s},we.createElement(Yp,{className:l}))})},JR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},zv=/^[\u4e00-\u9fa5]{2}$/,Yc=zv.test.bind(zv);function ZR(e){return typeof e=="string"}function fu(e){return e==="text"||e==="link"}function eT(e,t){if(e!=null){var r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ZR(e.type)&&Yc(e.props.children)?Dr(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?Yc(e)?d.createElement("span",null,e.split("").join(r)):d.createElement("span",null,e):e0(e)?d.createElement("span",null,e):e}}function tT(e,t){var r=!1,n=[];return d.Children.forEach(e,function(i){var a=fe(i),o=a==="string"||a==="number";if(r&&o){var s=n.length-1,l=n[s];n[s]="".concat(l).concat(i)}else n.push(i);r=o}),d.Children.map(n,function(i){return eT(i,t)})}Lr("default","primary","ghost","dashed","link","text");Lr("default","circle","round");Lr("submit","button","reset");var rT=function(t,r){var n,i=t.loading,a=i===void 0?!1:i,o=t.prefixCls,s=t.type,l=s===void 0?"default":s,u=t.danger,c=t.shape,p=c===void 0?"default":c,f=t.size,h=t.disabled,m=t.className,b=t.children,x=t.icon,v=t.ghost,g=v===void 0?!1:v,y=t.block,k=y===void 0?!1:y,E=t.htmlType,C=E===void 0?"button":E,S=JR(t,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),P=d.useContext(Zy),T=d.useContext(Jy),R=h??T,O=d.useContext(P0),_=d.useState(!!a),j=Z(_,2),D=j[0],W=j[1],z=d.useState(!1),U=Z(z,2),A=U[0],I=U[1],M=d.useContext(Er),N=M.getPrefixCls,$=M.autoInsertSpaceInButton,V=M.direction,L=r||d.createRef(),q=function(){return d.Children.count(b)===1&&!x&&!fu(l)},Y=function(){if(!(!L||!L.current||$===!1)){var Xe=L.current.textContent;q()&&Yc(Xe)?A||I(!0):A&&I(!1)}},J=typeof a=="boolean"?a:(a==null?void 0:a.delay)||!0;d.useEffect(function(){var Ce=null;return typeof J=="number"?Ce=window.setTimeout(function(){Ce=null,W(J)},J):W(J),function(){Ce&&(window.clearTimeout(Ce),Ce=null)}},[J]),d.useEffect(Y,[L]);var de=function(Xe){var B=t.onClick;if(D||R){Xe.preventDefault();return}B==null||B(Xe)},ne=N("btn",o),Me=$!==!1,$e=IR(ne,V),me=$e.compactSize,oe=$e.compactItemClassnames,ze={large:"lg",small:"sm",middle:void 0},Ue=me||O||f||P,Te=Ue&&ze[Ue]||"",at=D?"loading":x,Dt=Ua(S,["navigate"]),Mt=ge(ne,(n={},F(F(F(F(F(F(F(F(F(F(n,"".concat(ne,"-").concat(p),p!=="default"&&p),"".concat(ne,"-").concat(l),l),"".concat(ne,"-").concat(Te),Te),"".concat(ne,"-icon-only"),!b&&b!==0&&!!at),"".concat(ne,"-background-ghost"),g&&!fu(l)),"".concat(ne,"-loading"),D),"".concat(ne,"-two-chinese-chars"),A&&Me&&!D),"".concat(ne,"-block"),k),"".concat(ne,"-dangerous"),!!u),"".concat(ne,"-rtl"),V==="rtl"),F(n,"".concat(ne,"-disabled"),Dt.href!==void 0&&R)),oe,m),Pe=x&&!D?x:d.createElement(QR,{existIcon:!!x,prefixCls:ne,loading:!!D}),Ee=b||b===0?tT(b,q()&&Me):null;if(Dt.href!==void 0)return d.createElement("a",Q({},Dt,{className:Mt,onClick:de,ref:L}),Pe,Ee);var be=d.createElement("button",Q({},S,{type:C,className:Mt,onClick:de,disabled:R,ref:L}),Pe,Ee);return fu(l)?be:d.createElement(C0,{disabled:!!D},be)},lf=d.forwardRef(rT);lf.Group=XR;lf.__ANT_BUTTON=!0;var nT=function(t){if(Nn()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(i){return i in n.style})}return!1};function Vv(e,t){return nT(e)}var iT=/\s/;function aT(e){for(var t=e.length;t--&&iT.test(e.charAt(t)););return t}var oT=aT,sT=oT,lT=/^\s+/;function uT(e){return e&&e.slice(0,sT(e)+1).replace(lT,"")}var cT=uT;function dT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var R0=dT,fT=cT,Hv=R0,pT=dy,Bv=NaN,vT=/^[-+]0x[0-9a-f]+$/i,hT=/^0b[01]+$/i,gT=/^0o[0-7]+$/i,mT=parseInt;function yT(e){if(typeof e=="number")return e;if(pT(e))return Bv;if(Hv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Hv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fT(e);var r=hT.test(e);return r||gT.test(e)?mT(e.slice(2),r?2:8):vT.test(e)?Bv:+e}var bT=yT;function wT(e){return typeof e>"u"||e===null?"":String(e)}function pu(e,t,r,n){if(r){var i=t;if(t.type==="click"){var a=e.cloneNode(!0);i=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",r(i);return}if(n!==void 0){i=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,r(i);return}r(i)}}function xT(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i);break}}}}var ST=`
124
- min-height:0 !important;
125
- max-height:none !important;
126
- height:0 !important;
127
- visibility:hidden !important;
128
- overflow:hidden !important;
129
- position:absolute !important;
130
- z-index:-1000 !important;
131
- top:0 !important;
132
- right:0 !important;
133
- pointer-events: none !important;
134
- `,kT=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],vu={},Ht;function ET(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&vu[r])return vu[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=kT.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&r&&(vu[r]=l),l}function CT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ht||(Ht=document.createElement("textarea"),Ht.setAttribute("tab-index","-1"),Ht.setAttribute("aria-hidden","true"),document.body.appendChild(Ht)),e.getAttribute("wrap")?Ht.setAttribute("wrap",e.getAttribute("wrap")):Ht.removeAttribute("wrap");var i=ET(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Ht.setAttribute("style","".concat(l,";").concat(ST)),Ht.value=e.value||e.placeholder||"";var u=void 0,c=void 0,p,f=Ht.scrollHeight;if(s==="border-box"?f+=o:s==="content-box"&&(f-=a),r!==null||n!==null){Ht.value=" ";var h=Ht.scrollHeight-a;r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),f=Math.max(u,f)),n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),p=f>c?"":"hidden",f=Math.min(c,f))}var m={height:f,overflowY:p,resize:"none"};return u&&(m.minHeight=u),c&&(m.maxHeight=c),m}var PT=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],hu=0,gu=1,mu=2,RT=d.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-textarea":r;e.onPressEnter;var i=e.defaultValue,a=e.value,o=e.autoSize,s=e.onResize,l=e.className,u=e.style,c=e.disabled,p=e.onChange;e.onInternalAutoSize;var f=kr(e,PT),h=fl(i,{value:a,postState:function(L){return L??""}}),m=Z(h,2),b=m[0],x=m[1],v=function(L){x(L.target.value),p==null||p(L)},g=d.useRef();d.useImperativeHandle(t,function(){return{textArea:g.current}});var y=d.useMemo(function(){return o&&fe(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),k=Z(y,2),E=k[0],C=k[1],S=!!o,P=function(){try{if(document.activeElement===g.current){var L=g.current,q=L.selectionStart,Y=L.selectionEnd,J=L.scrollTop;g.current.setSelectionRange(q,Y),g.current.scrollTop=J}}catch{}},T=d.useState(mu),R=Z(T,2),O=R[0],_=R[1],j=d.useState(),D=Z(j,2),W=D[0],z=D[1],U=function(){_(hu)};br(function(){S&&U()},[a,E,C,S]),br(function(){if(O===hu)_(gu);else if(O===gu){var V=CT(g.current,!1,E,C);_(mu),z(V)}else P()},[O]);var A=d.useRef(),I=function(){St.cancel(A.current)},M=function(L){O===mu&&(s==null||s(L),o&&(I(),A.current=St(function(){U()})))};d.useEffect(function(){return I},[]);var N=S?W:null,$=H(H({},u),N);return(O===hu||O===gu)&&($.overflowY="hidden",$.overflowX="hidden"),d.createElement(qd,{onResize:M,disabled:!(o||s)},d.createElement("textarea",Q({},f,{ref:g,style:$,className:ge(n,l,F({},"".concat(n,"-disabled"),c)),disabled:c,value:b,onChange:v})))}),TT=function(e){$r(r,e);var t=Pi(r);function r(n){var i;lr(this,r),i=t.call(this,n),i.resizableTextArea=void 0,i.focus=function(){i.resizableTextArea.textArea.focus()},i.saveTextArea=function(o){i.resizableTextArea=o},i.handleChange=function(o){var s=i.props.onChange;i.setValue(o.target.value),s&&s(o)},i.handleKeyDown=function(o){var s=i.props,l=s.onPressEnter,u=s.onKeyDown;o.keyCode===13&&l&&l(o),u&&u(o)};var a=typeof n.value>"u"||n.value===null?n.defaultValue:n.value;return i.state={value:a},i}return ur(r,[{key:"setValue",value:function(i,a){"value"in this.props||this.setState({value:i},a)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return d.createElement(RT,Q({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(i){return"value"in i?{value:i.value}:null}}]),r}(d.Component);function FT(e,t,r){return t=Sr(t),Js(e,Ba()?Reflect.construct(t,r||[],Sr(e).constructor):t.apply(e,r))}var OT=Lr("text","input");function _T(e){return!!(e.addonBefore||e.addonAfter)}var AT=function(e){$r(t,e);function t(){return lr(this,t),FT(this,t,arguments)}return ur(t,[{key:"renderClearIcon",value:function(n){var i=this.props,a=i.value,o=i.disabled,s=i.readOnly,l=i.handleReset,u=i.suffix,c=!o&&!s&&a,p="".concat(n,"-clear-icon");return d.createElement(Dy,{onClick:l,onMouseDown:function(h){return h.preventDefault()},className:ge(F(F({},"".concat(p,"-hidden"),!c),"".concat(p,"-has-suffix"),!!u),p),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(n,i,a){var o=this.props,s=o.value,l=o.allowClear,u=o.className,c=o.focused,p=o.style,f=o.direction,h=o.bordered,m=o.hidden,b=o.status,x=a.status,v=a.hasFeedback;if(!l)return Dr(i,{value:s});var g=ge("".concat(n,"-affix-wrapper"),"".concat(n,"-affix-wrapper-textarea-with-clear-btn"),qc("".concat(n,"-affix-wrapper"),k0(x,b),v),F(F(F(F({},"".concat(n,"-affix-wrapper-focused"),c),"".concat(n,"-affix-wrapper-rtl"),f==="rtl"),"".concat(n,"-affix-wrapper-borderless"),!h),"".concat(u),!_T(this.props)&&u));return d.createElement("span",{className:g,style:p,hidden:m},Dr(i,{style:null,value:s}),this.renderClearIcon(n))}},{key:"render",value:function(){var n=this;return d.createElement(S0.Consumer,null,function(i){var a=n.props,o=a.prefixCls,s=a.inputType,l=a.element;if(s===OT[0])return n.renderTextAreaWithClearIcon(o,l,i)})}}]),t}(d.Component),NT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function T0(e,t){return le(e||"").slice(0,t).join("")}function Uv(e,t,r,n){var i=r;return e?i=T0(r,n):le(t||"").length<r.length&&le(r||"").length>n&&(i=t),i}var IT=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.bordered,i=n===void 0?!0:n,a=e.showCount,o=a===void 0?!1:a,s=e.maxLength,l=e.className,u=e.style,c=e.size,p=e.disabled,f=e.onCompositionStart,h=e.onCompositionEnd,m=e.onChange,b=e.onFocus,x=e.onBlur,v=e.status,g=NT(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),y=d.useContext(Er),k=y.getPrefixCls,E=y.direction,C=d.useContext(Zy),S=d.useContext(Jy),P=p??S,T=d.useContext(S0),R=T.status,O=T.hasFeedback,_=T.isFormItemInput,j=T.feedbackIcon,D=k0(R,v),W=d.useRef(null),z=d.useRef(null),U=d.useState(!1),A=Z(U,2),I=A[0],M=A[1],N=d.useState(!1),$=Z(N,2),V=$[0],L=$[1],q=d.useRef(),Y=d.useRef(0),J=fl(g.defaultValue,{value:g.value}),de=Z(J,2),ne=de[0],Me=de[1],$e=g.hidden,me=function(te,ie){g.value===void 0&&Me(te)},oe=Number(s)>0,ze=function(te){M(!0),q.current=ne,Y.current=te.currentTarget.selectionStart,f==null||f(te)},Ue=function(te){var ie;M(!1);var se=te.currentTarget.value;if(oe){var Fe=Y.current>=s+1||Y.current===((ie=q.current)===null||ie===void 0?void 0:ie.length);se=Uv(Fe,q.current,se,s)}se!==ne&&(me(se),pu(te.currentTarget,te,m,se)),h==null||h(te)},Te=function(te){var ie=te.target.value;if(!I&&oe){var se=te.target.selectionStart>=s+1||te.target.selectionStart===ie.length||!te.target.selectionStart;ie=Uv(se,ne,ie,s)}me(ie),pu(te.currentTarget,te,m,ie)},at=function(te){L(!1),x==null||x(te)},Dt=function(te){L(!0),b==null||b(te)};d.useEffect(function(){L(function(ee){return!P&&ee})},[P]);var Mt=function(te){var ie,se,Fe;me(""),(ie=W.current)===null||ie===void 0||ie.focus(),pu((Fe=(se=W.current)===null||se===void 0?void 0:se.resizableTextArea)===null||Fe===void 0?void 0:Fe.textArea,te,m)},Pe=k("input",r);d.useImperativeHandle(t,function(){var ee;return{resizableTextArea:(ee=W.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:function(ie){var se,Fe;xT((Fe=(se=W.current)===null||se===void 0?void 0:se.resizableTextArea)===null||Fe===void 0?void 0:Fe.textArea,ie)},blur:function(){var ie;return(ie=W.current)===null||ie===void 0?void 0:ie.blur()}}});var Ee=d.createElement(TT,Q({},Ua(g,["allowClear"]),{disabled:P,className:ge(F(F(F(F({},"".concat(Pe,"-borderless"),!i),l,l&&!o),"".concat(Pe,"-sm"),C==="small"||c==="small"),"".concat(Pe,"-lg"),C==="large"||c==="large"),qc(Pe,D)),style:o?{resize:u==null?void 0:u.resize}:u,prefixCls:Pe,onCompositionStart:ze,onChange:Te,onBlur:at,onFocus:Dt,onCompositionEnd:Ue,ref:W})),be=wT(ne);!I&&oe&&(g.value===null||g.value===void 0)&&(be=T0(be,s));var Ce=d.createElement(AT,Q({disabled:P,focused:V},g,{prefixCls:Pe,direction:E,inputType:"text",value:be,element:Ee,handleReset:Mt,ref:z,bordered:i,status:v,style:o?void 0:u}));if(o||O){var Xe=le(be).length,B="";return fe(o)==="object"?B=o.formatter({value:be,count:Xe,maxLength:s}):B="".concat(Xe).concat(oe?" / ".concat(s):""),d.createElement("div",{hidden:$e,className:ge("".concat(Pe,"-textarea"),F(F(F({},"".concat(Pe,"-textarea-rtl"),E==="rtl"),"".concat(Pe,"-textarea-show-count"),o),"".concat(Pe,"-textarea-in-form-item"),_),qc("".concat(Pe,"-textarea"),D,O),l),style:u,"data-count":B},Ce,O&&d.createElement("span",{className:"".concat(Pe,"-textarea-suffix")},j))}return Ce}),jT=uy,DT=function(){return jT.Date.now()},MT=DT,$T=R0,yu=MT,Wv=bT,LT="Expected a function",zT=Math.max,VT=Math.min;function HT(e,t,r){var n,i,a,o,s,l,u=0,c=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(LT);t=Wv(t)||0,$T(r)&&(c=!!r.leading,p="maxWait"in r,a=p?zT(Wv(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function h(C){var S=n,P=i;return n=i=void 0,u=C,o=e.apply(P,S),o}function m(C){return u=C,s=setTimeout(v,t),c?h(C):o}function b(C){var S=C-l,P=C-u,T=t-S;return p?VT(T,a-P):T}function x(C){var S=C-l,P=C-u;return l===void 0||S>=t||S<0||p&&P>=a}function v(){var C=yu();if(x(C))return g(C);s=setTimeout(v,b(C))}function g(C){return s=void 0,f&&n?h(C):(n=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function k(){return s===void 0?o:g(yu())}function E(){var C=yu(),S=x(C);if(n=arguments,i=this,l=C,S){if(s===void 0)return m(l);if(p)return clearTimeout(s),s=setTimeout(v,t),h(l)}return s===void 0&&(s=setTimeout(v,t)),o}return E.cancel=y,E.flush=k,E}var BT=HT;const UT=On(BT);var WT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Lr("small","default","large");var Zo=null;function KT(e,t){var r=t.indicator,n="".concat(e,"-dot");return r===null?null:Aa(r)?Dr(r,{className:ge(r.props.className,n)}):Aa(Zo)?Dr(Zo,{className:ge(Zo.props.className,n)}):d.createElement("span",{className:ge(n,"".concat(e,"-dot-spin"))},d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}))}function qT(e,t){return!!e&&!!t&&!isNaN(Number(t))}var GT=function(t){var r=t.spinPrefixCls,n=t.spinning,i=n===void 0?!0:n,a=t.delay,o=t.className,s=t.size,l=s===void 0?"default":s,u=t.tip,c=t.wrapperClassName,p=t.style,f=t.children,h=WT(t,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),m=d.useState(function(){return i&&!qT(i,a)}),b=Z(m,2),x=b[0],v=b[1];d.useEffect(function(){var k=UT(function(){v(i)},a);return k(),function(){var E;(E=k==null?void 0:k.cancel)===null||E===void 0||E.call(k)}},[a,i]);var g=function(){return typeof f<"u"},y=function(E){var C=E.direction,S=ge(r,F(F(F(F(F({},"".concat(r,"-sm"),l==="small"),"".concat(r,"-lg"),l==="large"),"".concat(r,"-spinning"),x),"".concat(r,"-show-text"),!!u),"".concat(r,"-rtl"),C==="rtl"),o),P=Ua(h,["indicator","prefixCls"]),T=d.createElement("div",Q({},P,{style:p,className:S,"aria-live":"polite","aria-busy":x}),KT(r,t),u?d.createElement("div",{className:"".concat(r,"-text")},u):null);if(g()){var R=ge("".concat(r,"-container"),F({},"".concat(r,"-blur"),x));return d.createElement("div",Q({},P,{className:ge("".concat(r,"-nested-loading"),c)}),x&&d.createElement("div",{key:"loading"},T),d.createElement("div",{className:R,key:"container"},f))}return T};return d.createElement(Qy,null,y)},uf=function(t){var r=t.prefixCls,n=d.useContext(Er),i=n.getPrefixCls,a=i("spin",r),o=Q(Q({},t),{spinPrefixCls:a});return d.createElement(GT,Q({},o))};uf.setDefaultIndicator=function(e){Zo=e};var YT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},XT={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Kv=d.forwardRef(function(e,t){var r=function(c){var p=c.keyCode;p===Fs.ENTER&&c.preventDefault()},n=function(c){var p=c.keyCode,f=e.onClick;p===Fs.ENTER&&f&&f()},i=e.style,a=e.noStyle,o=e.disabled,s=YT(e,["style","noStyle","disabled"]),l={};return a||(l=Q({},XT)),o&&(l.pointerEvents="none"),l=Q(Q({},l),i),d.createElement("div",Q({role:"button",tabIndex:0,ref:t},s,{onKeyDown:r,onKeyUp:n,style:l}))}),QT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},JT=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:QT}))},ZT=d.forwardRef(JT),e4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},t4=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:e4}))},r4=d.forwardRef(t4),n4=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},i4=n4,qv={"text/plain":"Text","text/html":"Url",default:"Text"},a4="Copy to clipboard: #{key}, Enter";function o4(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function s4(e,t){var r,n,i,a,o,s,l=!1;t||(t={}),r=t.debug||!1;try{i=i4(),a=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=qv[t.format]||qv.default;window.clipboardData.setData(p,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(p){r&&console.error("unable to copy using clipboardData: ",p),r&&console.error("falling back to prompt"),n=o4("message"in t?t.message:a4),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var l4=s4;const u4=On(l4);var c4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},d4=function(t,r){return d.createElement(it,H(H({},t),{},{ref:r,icon:c4}))},f4=d.forwardRef(d4),p4=function(t){var r=t.prefixCls,n=t["aria-label"],i=t.className,a=t.style,o=t.direction,s=t.maxLength,l=t.autoSize,u=l===void 0?!0:l,c=t.value,p=t.onSave,f=t.onCancel,h=t.onEnd,m=t.component,b=t.enterIcon,x=b===void 0?d.createElement(f4,null):b,v=d.useRef(null),g=d.useRef(!1),y=d.useRef(),k=d.useState(c),E=Z(k,2),C=E[0],S=E[1];d.useEffect(function(){S(c)},[c]),d.useEffect(function(){if(v.current&&v.current.resizableTextArea){var U=v.current.resizableTextArea.textArea;U.focus();var A=U.value.length;U.setSelectionRange(A,A)}},[]);var P=function(A){var I=A.target;S(I.value.replace(/[\n\r]/g,""))},T=function(){g.current=!0},R=function(){g.current=!1},O=function(A){var I=A.keyCode;g.current||(y.current=I)},_=function(){p(C.trim())},j=function(A){var I=A.keyCode,M=A.ctrlKey,N=A.altKey,$=A.metaKey,V=A.shiftKey;y.current===I&&!g.current&&!M&&!N&&!$&&!V&&(I===Fs.ENTER?(_(),h==null||h()):I===Fs.ESC&&f())},D=function(){_()},W=m?"".concat(r,"-").concat(m):"",z=ge(r,"".concat(r,"-edit-content"),F({},"".concat(r,"-rtl"),o==="rtl"),i,W);return d.createElement("div",{className:z,style:a},d.createElement(IT,{ref:v,maxLength:s,value:C,onChange:P,onKeyDown:O,onKeyUp:j,onCompositionStart:T,onCompositionEnd:R,onBlur:D,"aria-label":n,rows:1,autoSize:u}),x!==null?Dr(x,{className:"".concat(r,"-edit-content-confirm")}):null)};function bu(e,t){return d.useMemo(function(){var r=!!e;return[r,Q(Q({},t),r&&fe(e)==="object"?e:null)]},[e])}var v4=function(t,r){var n=d.useRef(!1);d.useEffect(function(){n.current?t():n.current=!0},r)},h4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},F0=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.component,i=n===void 0?"article":n,a=e.className,o=e.setContentRef,s=e.children,l=e.direction,u=h4(e,["prefixCls","component","className","setContentRef","children","direction"]),c=d.useContext(Er),p=c.getPrefixCls,f=c.direction,h=l??f,m=t;o&&(m=Ci(t,o));var b=p("typography",r),x=ge(b,F({},"".concat(b,"-rtl"),h==="rtl"),a);return d.createElement(i,Q({className:x,ref:m},u),s)});function O0(e){var t=fe(e);return t==="string"||t==="number"}function g4(e){var t=0;return e.forEach(function(r){O0(r)?t+=String(r).length:t+=1}),t}function Gv(e,t){for(var r=0,n=[],i=0;i<e.length;i+=1){if(r===t)return n;var a=e[i],o=O0(a),s=o?String(a).length:1,l=r+s;if(l>t){var u=t-r;return n.push(String(a).slice(0,u)),n}n.push(a),r=l}return e}var m4=0,jo=1,Yv=2,wu=3,Xv=4,y4=function(t){var r=t.enabledMeasure,n=t.children,i=t.text,a=t.width,o=t.fontSize,s=t.rows,l=t.onEllipsis,u=d.useState([0,0,0]),c=Z(u,2),p=Z(c[0],3),f=p[0],h=p[1],m=p[2],b=c[1],x=d.useState(m4),v=Z(x,2),g=v[0],y=v[1],k=d.useState(0),E=Z(k,2),C=E[0],S=E[1],P=d.useRef(null),T=d.useRef(null),R=d.useMemo(function(){return gi(i)},[i]),O=d.useMemo(function(){return g4(R)},[R]),_=d.useMemo(function(){return!r||g!==wu?n(R,!1):n(Gv(R,h),h<O)},[r,g,n,R,h,O]);br(function(){r&&a&&o&&O&&(y(jo),b([0,Math.ceil(O/2),O]))},[r,a,o,i,O,s]),br(function(){var z;g===jo&&S(((z=P.current)===null||z===void 0?void 0:z.offsetHeight)||0)},[g]),br(function(){var z,U;if(C){if(g===jo){var A=((z=T.current)===null||z===void 0?void 0:z.offsetHeight)||0,I=s*C;A<=I?(y(Xv),l(!1)):y(Yv)}else if(g===Yv)if(f!==m){var M=((U=T.current)===null||U===void 0?void 0:U.offsetHeight)||0,N=s*C,$=f,V=m;f===m-1?V=f:M<=N?$=h:V=h;var L=Math.ceil(($+V)/2);b([$,L,V])}else y(wu),l(!0)}},[g,f,m,s,C]);var j={width:a,whiteSpace:"normal",margin:0,padding:0},D=function(U,A,I){return d.createElement("span",{"aria-hidden":!0,ref:A,style:Q({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.floor(o/2)*2},I)},U)},W=function(U,A){var I=Gv(R,U);return D(n(I,!0),A,j)};return d.createElement(d.Fragment,null,_,r&&g!==wu&&g!==Xv&&d.createElement(d.Fragment,null,D("lg",P,{wordBreak:"keep-all",whiteSpace:"nowrap"}),g===jo?D(n(R,!1),T,j):W(h,T)))},b4=function(t){var r=t.enabledEllipsis,n=t.isEllipsis,i=t.children,a=t.tooltipProps;return!(a!=null&&a.title)||!r?i:d.createElement(Gc,Q({open:n?void 0:!1},a),i)},w4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function x4(e,t){var r=e.mark,n=e.code,i=e.underline,a=e.delete,o=e.strong,s=e.keyboard,l=e.italic,u=t;function c(p,f){p&&(u=d.createElement(f,{},u))}return c(o,"strong"),c(i,"u"),c(a,"del"),c(n,"code"),c(r,"mark"),c(s,"kbd"),c(l,"i"),u}function Do(e,t,r){return e===!0||e===void 0?t:e||r&&t}function Qv(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}var S4="...",vl=d.forwardRef(function(e,t){var r,n,i,a=e.prefixCls,o=e.className,s=e.style,l=e.type,u=e.disabled,c=e.children,p=e.ellipsis,f=e.editable,h=e.copyable,m=e.component,b=e.title,x=w4(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),v=d.useContext(Er),g=v.getPrefixCls,y=v.direction,k=hS("Text")[0],E=d.useRef(null),C=d.useRef(null),S=g("typography",a),P=Ua(x,["mark","code","delete","underline","strong","keyboard","italic"]),T=bu(f),R=Z(T,2),O=R[0],_=R[1],j=fl(!1,{value:_.editing}),D=Z(j,2),W=D[0],z=D[1],U=_.triggerType,A=U===void 0?["icon"]:U,I=function(re){var ve;re&&((ve=_.onStart)===null||ve===void 0||ve.call(_)),z(re)};v4(function(){var pe;W||(pe=C.current)===null||pe===void 0||pe.focus()},[W]);var M=function(re){re==null||re.preventDefault(),I(!0)},N=function(re){var ve;(ve=_.onChange)===null||ve===void 0||ve.call(_,re),I(!1)},$=function(){var re;(re=_.onCancel)===null||re===void 0||re.call(_),I(!1)},V=bu(h),L=Z(V,2),q=L[0],Y=L[1],J=d.useState(!1),de=Z(J,2),ne=de[0],Me=de[1],$e=d.useRef(),me={};Y.format&&(me.format=Y.format);var oe=function(){window.clearTimeout($e.current)},ze=function(re){var ve;re==null||re.preventDefault(),re==null||re.stopPropagation(),u4(Y.text||String(c)||"",me),Me(!0),oe(),$e.current=window.setTimeout(function(){Me(!1)},3e3),(ve=Y.onCopy)===null||ve===void 0||ve.call(Y,re)};d.useEffect(function(){return oe},[]);var Ue=d.useState(!1),Te=Z(Ue,2),at=Te[0],Dt=Te[1],Mt=d.useState(!1),Pe=Z(Mt,2),Ee=Pe[0],be=Pe[1],Ce=d.useState(!1),Xe=Z(Ce,2),B=Xe[0],ee=Xe[1],te=d.useState(!1),ie=Z(te,2),se=ie[0],Fe=ie[1],fn=d.useState(!1),pn=Z(fn,2),Oi=pn[0],Ya=pn[1],Xa=d.useState(!0),_i=Z(Xa,2),Qa=_i[0],Ja=_i[1],ot=bu(p,{expandable:!1}),zr=Z(ot,2),cr=zr[0],Ve=zr[1],Et=cr&&!B,We=Ve.rows,$t=We===void 0?1:We,et=d.useMemo(function(){return!Et||Ve.suffix!==void 0||Ve.onEllipsis||Ve.expandable||O||q},[Et,Ve,O,q]);br(function(){cr&&!et&&(Dt(Vv("webkitLineClamp")),be(Vv("textOverflow")))},[et,cr]);var ye=d.useMemo(function(){return et?!1:$t===1?Ee:at},[et,Ee,at]),Za=Et&&(ye?Oi:se),ml=Et&&$t===1&&ye,vn=Et&&$t>1&&ye,eo=function(re){var ve;ee(!0),(ve=Ve.onExpand)===null||ve===void 0||ve.call(Ve,re)},to=d.useState(0),Ai=Z(to,2),i1=Ai[0],a1=Ai[1],o1=d.useState(0),df=Z(o1,2),s1=df[0],l1=df[1],u1=function(re,ve){var st=re.offsetWidth,dr;a1(st),l1(parseInt((dr=window.getComputedStyle)===null||dr===void 0?void 0:dr.call(window,ve).fontSize,10)||0)},c1=function(re){var ve;Fe(re),se!==re&&((ve=Ve.onEllipsis)===null||ve===void 0||ve.call(Ve,re))};d.useEffect(function(){var pe=E.current;if(cr&&ye&&pe){var re=vn?pe.offsetHeight<pe.scrollHeight:pe.offsetWidth<pe.scrollWidth;Oi!==re&&Ya(re)}},[cr,ye,c,vn,Qa]),d.useEffect(function(){var pe=E.current;if(!(typeof IntersectionObserver>"u"||!pe||!ye||!Et)){var re=new IntersectionObserver(function(){Ja(!!pe.offsetParent)});return re.observe(pe),function(){re.disconnect()}}},[ye,Et]);var Vr={};Ve.tooltip===!0?Vr={title:(r=_.text)!==null&&r!==void 0?r:c}:d.isValidElement(Ve.tooltip)?Vr={title:Ve.tooltip}:fe(Ve.tooltip)==="object"?Vr=Q({title:(n=_.text)!==null&&n!==void 0?n:c},Ve.tooltip):Vr={title:Ve.tooltip};var ro=d.useMemo(function(){var pe=function(ve){return["string","number"].includes(fe(ve))};if(!(!cr||ye)){if(pe(_.text))return _.text;if(pe(c))return c;if(pe(b))return b;if(pe(Vr.title))return Vr.title}},[cr,ye,b,Vr.title,Za]);if(W)return d.createElement(p4,{value:(i=_.text)!==null&&i!==void 0?i:typeof c=="string"?c:"",onSave:N,onCancel:$,onEnd:_.onEnd,prefixCls:S,className:o,style:s,direction:y,component:m,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});var d1=function(){var re=Ve.expandable,ve=Ve.symbol;if(!re)return null;var st;return ve?st=ve:st=k.expand,d.createElement("a",{key:"expand",className:"".concat(S,"-expand"),onClick:eo,"aria-label":k.expand},st)},f1=function(){if(O){var re=_.icon,ve=_.tooltip,st=gi(ve)[0]||k.edit,dr=typeof st=="string"?st:"";return A.includes("icon")?d.createElement(Gc,{key:"edit",title:ve===!1?"":st},d.createElement(Kv,{ref:C,className:"".concat(S,"-edit"),onClick:M,"aria-label":dr},re||d.createElement(r4,{role:"button"}))):null}},p1=function(){if(q){var re=Y.tooltips,ve=Y.icon,st=Qv(re),dr=Qv(ve),yl=ne?Do(st[1],k.copied):Do(st[0],k.copy),g1=ne?k.copied:k.copy,m1=typeof yl=="string"?yl:g1;return d.createElement(Gc,{key:"copy",title:yl},d.createElement(Kv,{className:ge("".concat(S,"-copy"),ne&&"".concat(S,"-copy-success")),onClick:ze,"aria-label":m1},ne?Do(dr[1],d.createElement(AR,null),!0):Do(dr[0],d.createElement(ZT,null),!0)))}},v1=function(re){return[re&&d1(),f1(),p1()]},h1=function(re){return[re&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},S4),Ve.suffix,v1(re)]};return d.createElement(qd,{onResize:u1,disabled:!Et||ye},function(pe){return d.createElement(b4,{tooltipProps:Vr,enabledEllipsis:Et,isEllipsis:Za},d.createElement(F0,Q({className:ge(F(F(F(F(F(F({},"".concat(S,"-").concat(l),l),"".concat(S,"-disabled"),u),"".concat(S,"-ellipsis"),cr),"".concat(S,"-single-line"),Et&&$t===1),"".concat(S,"-ellipsis-single-line"),ml),"".concat(S,"-ellipsis-multiple-line"),vn),o),prefixCls:a,style:Q(Q({},s),{WebkitLineClamp:vn?$t:void 0}),component:m,ref:Ci(pe,E,t),direction:y,onClick:A.includes("text")?M:void 0,"aria-label":ro==null?void 0:ro.toString(),title:b},P),d.createElement(y4,{enabledMeasure:Et&&!ye,text:c,rows:$t,width:i1,fontSize:s1,onEllipsis:c1},function(re,ve){var st=re;re.length&&ve&&ro&&(st=d.createElement("span",{key:"show-content","aria-hidden":!0},st));var dr=x4(e,d.createElement(d.Fragment,null,st,h1(ve)));return dr})))})}),k4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},E4=d.forwardRef(function(e,t){var r=e.ellipsis,n=e.rel,i=k4(e,["ellipsis","rel"]),a=Q(Q({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete a.navigate,d.createElement(vl,Q({},a,{ref:t,ellipsis:!!r,component:"a"}))}),C4=d.forwardRef(function(e,t){return d.createElement(vl,Q({ref:t},e,{component:"div"}))}),P4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},R4=function(t,r){var n=t.ellipsis,i=P4(t,["ellipsis"]),a=d.useMemo(function(){return n&&fe(n)==="object"?Ua(n,["expandable","rows"]):n},[n]);return d.createElement(vl,Q({ref:r},i,{ellipsis:a,component:"span"}))};const T4=d.forwardRef(R4);var F4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},O4=TR(1,2,3,4,5),_4=d.forwardRef(function(e,t){var r=e.level,n=r===void 0?1:r,i=F4(e,["level"]),a;return O4.includes(n)?a="h".concat(n):a="h1",d.createElement(vl,Q({ref:t},i,{component:a}))}),Ga=F0;Ga.Text=T4;Ga.Link=E4;Ga.Title=_4;Ga.Paragraph=C4;function A4(e){var i;if(!e)return"text";const t=String(e.type||"").toLowerCase(),r=String(((i=e.props)==null?void 0:i.keyboardType)||"").toLowerCase(),n=String(e.key||"").toLowerCase();return t==="idcard"||r==="idcard"?"idcard":r==="digit"||t==="number"?"digit":t==="phone"||t==="bankcard"||t==="verifycode"||r==="number"?"number":/id_?card|cert_?no/.test(n)&&t==="input"?"idcard":"text"}function N4(e,t,r){const n=String(e??""),i=typeof(r==null?void 0:r.maxlength)=="number"&&r.maxlength>0?r.maxlength:void 0;if(t==="idcard"){const a=n.replace(/[^0-9xX]/g,"").toUpperCase();let o="";for(let s=0;s<a.length;s++){const l=a[s];if(l==="X"?o.length===17&&(o+="X"):o+=l,o.length>=(i??18))break}return o}if(t==="number"){const a=n.replace(/\D/g,"");return i?a.slice(0,i):a}if(t==="digit"){const a=typeof(r==null?void 0:r.decimalPlaces)=="number"?r.decimalPlaces:2;let o=n.replace(/[^0-9.]/g,"");o.startsWith(".")&&(o=`0${o}`);const s=o.indexOf(".");if(s>=0){const l=o.slice(0,s),u=o.slice(s+1).replace(/\./g,"").slice(0,Math.max(0,a));o=`${l}.${u}`}return i?o.slice(0,i):o}return i?n.slice(0,i):n}function _0(e,t){const r=String(e??"").trim();if(!r||!t)return r;const n=String(t.type||"").toLowerCase(),i=String(t.key||"").toLowerCase();if(n==="phone"||/phone|mobile/.test(i)&&/^1\d{3,10}$/.test(r)){const a=r.replace(/\D/g,"").slice(0,11);return a.length<=3?a:a.length<=7?`${a.slice(0,3)} ${a.slice(3)}`:`${a.slice(0,3)} ${a.slice(3,7)} ${a.slice(7)}`}if(n==="bankcard"||/bank_?card/.test(i))return r.replace(/\D/g,"").replace(/(.{4})(?=.)/g,"$1 ");if(n==="idcard"||/id_?card|cert_?no/.test(i)){const a=r.replace(/\s+/g,"").toUpperCase();return a.length<=6?a:a.length<=14?`${a.slice(0,6)} ${a.slice(6)}`:`${a.slice(0,6)} ${a.slice(6,14)} ${a.slice(14)}`}return r}function I4(e,t){return t==="text"?e:String(e??"").replace(/\s+/g,"")}function j4(e){if(!e)return!1;const t=String(e.type||"").toLowerCase(),r=String(e.key||"").toLowerCase(),n=String(e.label||"");return!!(t==="phone"||t==="idcard"||t==="bankcard"||/phone|mobile|id_?card|cert_?no|bank_?card/.test(r)||/手机号|联系电话|身份证|证件号|银行卡/.test(n))}function D4(e,t){const r=String(e??"").trim().replace(/\s+/g,"");if(!r||!t)return r;const n=String(t.type||"").toLowerCase(),i=String(t.key||"").toLowerCase(),a=String(t.label||"");return n==="phone"||/phone|mobile/.test(i)||/手机|电话/.test(a)?r.length>=7?`${r.slice(0,3)}****${r.slice(-4)}`:r:n==="idcard"||/id_?card|cert_?no/.test(i)||/身份证|证件号/.test(a)?r.length>=10?`${r.slice(0,4)}${"*".repeat(Math.max(4,r.length-8))}${r.slice(-4)}`:r:(n==="bankcard"||/bank_?card/.test(i)||/银行卡/.test(a))&&r.length>=8?`${r.slice(0,4)} **** **** ${r.slice(-4)}`:r}function M4(e,t){var a,o,s,l,u,c,p;if(t!=null&&t.showValue)return String(t.showValue);const r=t==null?void 0:t.value;if(r==null||r==="")return"";if(e.type==="agreement")return r===!0||r==="1"||r===1?"已阅读并同意":"未勾选";if(e.type==="switch"){const f=r===!0||r==="1"||r===1||r===((a=e.props)==null?void 0:a.trueValue);return String(f?((o=e.props)==null?void 0:o.activeText)||"已开启":((s=e.props)==null?void 0:s.inactiveText)||"已关闭")}if(e.type==="rate"){const f=typeof((l=e.props)==null?void 0:l.max)=="number"?e.props.max:5;return`${r} / ${f} 分`}if(e.type==="stepper"){const f=(u=e.props)!=null&&u.unit?String(e.props.unit):"";return`${r}${f}`}if(e.type==="dateRange"){if(Array.isArray(r)){const f=r[0]||"",h=r[1]==="long_term"?"长期":r[1]||"";return f||h?`${f||"未选"} 至 ${h||"未选"}`:""}if(typeof r=="object"){const f=r,h=f.start||"",m=f.end==="long_term"?"长期":f.end||"";return h||m?`${h||"未选"} 至 ${m||"未选"}`:""}}if(Array.isArray(r))return r.length?e.type==="list"?`共 ${r.length} 条记录`:e.type==="imageUpload"?`已上传 ${r.length} 张`:e.type==="fileUpload"?`已上传 ${r.length} 个附件`:e.type==="checkboxGroup"&&Array.isArray(e.initOptions)?r.map(f=>{var h,m;return((m=(h=e.initOptions)==null?void 0:h.find(b=>String(b.code)===String(f)))==null?void 0:m.name)||String(f)}).join("、"):r.map(f=>f&&typeof f=="object"?f.name||f.label||f.code:f).filter(Boolean).join(" / "):"";if(typeof r=="object"){const f=r;return String(f.name??f.label??f.code??"")}if((e.type==="select"||e.type==="radioGroup")&&Array.isArray(e.initOptions)){const f=e.initOptions.find(h=>String(h.code)===String(r));if(f)return f.name}const n=_0(String(r),e),i=((c=e.props)==null?void 0:c.suffix)||((p=e.props)==null?void 0:p.unit);return i?`${n} ${i}`:n}const $4=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],L4=["1","0","X","9","8","7","6","5","4","3","2"];function z4(e){const t=String(e??"").trim().replace(/\s+/g,"").toUpperCase();if(!t)return{valid:!0};if(!/^[1-9]\d{16}[\dX]$/.test(t))return{valid:!1,reason:"请输入18位有效身份证号"};const r=Number(t.slice(6,10)),n=Number(t.slice(10,12)),i=Number(t.slice(12,14));if(r<1900||r>2099||n<1||n>12||i<1||i>31)return{valid:!1,reason:"身份证出生日期不合法"};const a=new Date(r,n-1,i);if(a.getFullYear()!==r||a.getMonth()!==n-1||a.getDate()!==i)return{valid:!1,reason:"身份证出生日期不存在"};let o=0;for(let s=0;s<17;s++)o+=Number(t[s])*$4[s];return t[17]!==L4[o%11]?{valid:!1,reason:"身份证校验位不正确,请核对末位数字或X"}:{valid:!0}}function V4(e){const t=String(e??"").trim().replace(/\s+/g,"");if(!t)return{valid:!0};if(!/^\d{15,19}$/.test(t))return{valid:!1,reason:"请输入15至19位有效银行卡号"};let r=0,n=!1;for(let i=t.length-1;i>=0;i--){let a=Number(t[i]);n&&(a*=2,a>9&&(a-=9)),r+=a,n=!n}return r%10!==0?{valid:!1,reason:"银行卡号校验未通过,请核对卡号是否输错"}:{valid:!0}}function A0(e,t){const r=String(e??"").trim().replace(/[\s-]/g,"");return r?t!=null&&t.allowInternational&&/^\+\d{7,15}$/.test(r)?{valid:!0}:/^1[3-9]\d{9}$/.test(r)?{valid:!0}:{valid:!1,reason:"请输入11位有效中国大陆手机号"}:{valid:!0}}function H4(e,t){const r=String(e??"").trim();if(!r)return{valid:!0};const n=Number(r);return Number.isFinite(n)?(t==null?void 0:t.allowNegative)===!1&&n<0?{valid:!1,reason:"数值不能为负数"}:typeof(t==null?void 0:t.min)=="number"&&n<t.min?{valid:!1,reason:`数值不能小于 ${t.min}`}:typeof(t==null?void 0:t.max)=="number"&&n>t.max?{valid:!1,reason:`数值不能大于 ${t.max}`}:{valid:!0}:{valid:!1,reason:"请输入有效数值"}}function B4(e,t){if(!e)return{valid:!0};let r="",n="";if(Array.isArray(e))r=String(e[0]||"").trim(),n=String(e[1]||"").trim();else if(typeof e=="object"){const a=e;r=String(a.start||"").trim(),n=String(a.end||"").trim()}if(!r&&!n)return{valid:!0};if(r&&(t!=null&&t.minDate)&&r<t.minDate)return{valid:!1,reason:`开始日期不能早于 ${t.minDate}`};const i=n==="long_term"||n==="长期";return i&&(t==null?void 0:t.allowLongTerm)===!1?{valid:!1,reason:"该日期区间不支持长期有效"}:n&&!i&&(t!=null&&t.maxDate)&&n>t.maxDate?{valid:!1,reason:`结束日期不能晚于 ${t.maxDate}`}:r&&n&&!i&&r>n?{valid:!1,reason:"结束日期不能早于开始日期"}:{valid:!0}}function N0(e,t){const r=typeof(t==null?void 0:t.maxSizeMB)=="number"&&t.maxSizeMB>0?t.maxSizeMB:10;if(typeof e.size=="number"&&e.size>r*1024*1024)return{valid:!1,reason:`单个文件不能超过 ${r}MB`};if(Array.isArray(t==null?void 0:t.accept)&&t.accept.length>0&&e.name){const n=e.name.toLowerCase(),i=t.accept.map(o=>o.toLowerCase().trim()).filter(Boolean);if(!i.some(o=>o.startsWith(".")?n.endsWith(o):o.endsWith("/*")&&e.type?e.type.toLowerCase().startsWith(o.slice(0,-1)):n.endsWith(`.${o}`)))return{valid:!1,reason:`仅支持以下格式:${i.join(" / ")}`}}return{valid:!0}}function U4(e,t){if(!e||t===void 0||t===null||t==="")return{valid:!0};const r=String(e.type||""),n=e.props||{};return r==="idcard"||n.validateAlgorithm==="cn-idcard"?z4(String(t)):r==="bankCard"||n.validateAlgorithm==="luhn"?V4(String(t)):r==="phone"||n.validateAlgorithm==="cn-mobile"?A0(String(t),{allowInternational:!!n.allowInternational}):r==="number"||r==="stepper"?H4(t,{min:typeof n.min=="number"?n.min:void 0,max:typeof n.max=="number"?n.max:void 0,allowNegative:n.allowNegative}):r==="dateRange"?B4(t,{minDate:n.minDate,maxDate:n.maxDate,allowLongTerm:n.allowLongTerm}):{valid:!0}}function I0({item:e,field:t,onChange:r,onFocus:n,onBlur:i}){var T,R,O,_,j,D;const[a,o]=d.useState(""),[s,l]=d.useState(!1);d.useEffect(()=>{const W=t&&t.value;W==null||W===""?o(""):o(String(W))},[t&&t.value]);const u=e.type==="textarea",c=String(((T=e.props)==null?void 0:T.keyboardType)||"").toLowerCase(),p=A4(e),f=e.type==="phone"?"tel":e.type==="date"?"date":"text",h=p==="digit"?"decimal":p==="number"?e.type==="phone"?"tel":"numeric":void 0,m=e.props&&e.props.maxlength||-1,b=typeof((R=e.props)==null?void 0:R.decimalPlaces)=="number"?e.props.decimalPlaces:2,x=!!(t&&t.disabled)||!!e.disabled,v=!!e.readonly,g=!u&&((O=e.props)==null?void 0:O.clearable)!==!1&&!x&&!v,y=e.placeholder||`请输入${e.label||""}`,k=(_=e.props)!=null&&_.prefix?String(e.props.prefix):"",E=(j=e.props)!=null&&j.suffix?String(e.props.suffix):(D=e.props)!=null&&D.unit?String(e.props.unit):"",C=W=>{if(v||x)return;const z=W.currentTarget.value,U=u?z:N4(I4(z,p),p,{maxlength:m>0?m:void 0,decimalPlaces:b});o(U),r==null||r(U,"change")},S=!u&&!s?_0(a,e):a,P={width:"100%",boxSizing:"border-box",border:"none",outline:"none",background:"transparent",color:"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px",padding:0,minHeight:"var(--fs-control-height, 24px)"};return u?w.jsx("textarea",{value:a,placeholder:y,disabled:x,readOnly:v,maxLength:m>0?m:void 0,onFocus:()=>{l(!0),n==null||n()},onBlur:()=>{l(!1),i==null||i()},onChange:C,style:{...P,height:60,resize:"none",lineHeight:"24px",padding:"2px 0",background:x?"var(--fs-control-disabled-bg, transparent)":"transparent",color:x?"var(--fs-control-disabled-color, var(--td-text-color-disabled, rgba(0, 0, 0, 0.26)))":"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))"}}):w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,width:"100%"},children:[k?w.jsx("span",{style:{flexShrink:0,fontSize:14,fontWeight:500,color:"var(--td-text-color-secondary, #64748B)"},children:k}):null,w.jsx("input",{type:f,inputMode:h,"data-keyboard-type":c||void 0,"data-keyboard-kind":p,value:S,placeholder:y,disabled:x,readOnly:v,maxLength:s&&m>0?m:void 0,onFocus:()=>{l(!0),n==null||n()},onBlur:()=>{l(!1),i==null||i()},onChange:C,style:{...P,flex:1,minWidth:0,background:x?"var(--fs-control-disabled-bg, transparent)":"transparent",color:x?"var(--fs-control-disabled-color, var(--td-text-color-disabled, rgba(0, 0, 0, 0.26)))":"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))"}}),g&&a.length>0&&w.jsx("button",{type:"button","aria-label":"清除",onMouseDown:W=>W.preventDefault(),onClick:()=>{o(""),r==null||r("","change")},style:{width:16,height:16,borderRadius:"50%",border:0,padding:0,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",background:"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))",color:"#fff",cursor:"pointer"},children:w.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:w.jsx("path",{d:"M2.5 2.5L7.5 7.5M7.5 2.5L2.5 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),E?w.jsx("span",{style:{flexShrink:0,fontSize:14,fontWeight:500,color:"var(--td-text-color-secondary, #64748B)"},children:E}):null]})}function W4(e){var r;if(e.initOptions&&e.initOptions.length)return e.initOptions;const t=(r=e.props)==null?void 0:r.options;return Array.isArray(t)?t:[]}function K4(e){return Array.isArray(e.subItems)?e.subItems:[]}function q4(e){return{uploadFile:async t=>{const r=t.raw,n=typeof File<"u"&&r instanceof File?r:r!=null&&r.raw&&typeof File<"u"&&r.raw instanceof File?r.raw:r!=null&&r.file&&typeof File<"u"&&r.file instanceof File?r.file:null;if(n)return{url:typeof URL<"u"&&typeof URL.createObjectURL=="function"?URL.createObjectURL(n):`blob:preview-local/${encodeURIComponent(n.name||"file")}`,name:n.name};if(t.path&&/^(https?:|blob:|data:)/.test(t.path))return{url:t.path,name:t.name};const i=t.name||"local-preview.png";return{url:t.path||`blob:preview-local/${encodeURIComponent(i)}`,name:i}},sendVerifyCode:async t=>{var r;typeof console<"u"&&console.info&&console.info("[form-render-web] sendVerifyCode(预览钩子,未调生产发码)",(r=t.item)==null?void 0:r.key,t.mobile||"")}}}const j0=d.createContext(null);function In(){return d.useContext(j0)}const G4=375,wr={container:{maxWidth:G4,background:"#F3F3F3"},group:{marginY:8,marginX:12,radius:9,title:{fontSize:14,color:"rgba(0, 0, 0, 0.6)"}},label:{position:"left",width:96,fontSize:16,color:"rgba(0, 0, 0, 0.9)",requiredColor:"#D54941"},control:{height:24,radius:6,borderColor:"#E7E7E7",fontSize:16,color:"rgba(0, 0, 0, 0.9)",placeholderColor:"rgba(0, 0, 0, 0.4)",disabledBg:"transparent",disabledColor:"rgba(0, 0, 0, 0.26)"},spacing:{itemGap:8,itemPaddingY:16,itemPaddingX:16,itemMinHeight:56},colors:{primary:"#0052D9",error:"#D54941",errorBg:"transparent",success:"#2BA471",containerBg:"#F3F3F3",cardBg:"#FFFFFF",divider:"#E7E7E7",icon:"rgba(0, 0, 0, 0.4)"}};({...wr,colors:{...wr.colors},label:{...wr.label}});({...wr,colors:{...wr.colors},label:{...wr.label}});function Y4(e){const t=e.trim().match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!t)return null;const r=t[1].length===3?t[1].split("").map(n=>n+n).join(""):t[1];return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function xu(e,t,r){const n=1-r,i=a=>Math.round(a).toString(16).padStart(2,"0");return`#${i(e[0]*n+t[0]*r)}${i(e[1]*n+t[1]*r)}${i(e[2]*n+t[2]*r)}`}function X4(e){const t=Y4(e);return t?{light:xu(t,[255,255,255],.9),active:xu(t,[0,0,0],.2),disabled:xu(t,[255,255,255],.65)}:{light:`color-mix(in srgb, ${e} 10%, #ffffff)`,active:`color-mix(in srgb, ${e} 80%, #000000)`,disabled:`color-mix(in srgb, ${e} 35%, #ffffff)`}}function Ns(e){const t=n=>`${n}px`,r=X4(e.colors.primary);return{"--fs-container-max-width":t(e.container.maxWidth),"--fs-container-bg":e.container.background,"--fs-group-margin-y":t(e.group.marginY),"--fs-group-margin-x":t(e.group.marginX),"--fs-group-radius":t(e.group.radius),"--fs-group-title-font-size":t(e.group.title.fontSize),"--fs-group-title-color":e.group.title.color,"--fs-label-position":e.label.position,"--fs-label-width":t(e.label.width),"--fs-label-font-size":t(e.label.fontSize),"--fs-label-color":e.label.color,"--fs-label-required-color":e.label.requiredColor,"--fs-control-height":t(e.control.height),"--fs-control-radius":t(e.control.radius),"--fs-control-border-color":e.control.borderColor,"--fs-control-font-size":t(e.control.fontSize),"--fs-control-color":e.control.color,"--fs-control-placeholder-color":e.control.placeholderColor,"--fs-control-disabled-bg":e.control.disabledBg,"--fs-control-disabled-color":e.control.disabledColor,"--fs-spacing-item-gap":t(e.spacing.itemGap),"--fs-spacing-item-padding-y":t(e.spacing.itemPaddingY),"--fs-spacing-item-padding-x":t(e.spacing.itemPaddingX),"--fs-spacing-item-min-height":t(e.spacing.itemMinHeight),"--fs-color-primary":e.colors.primary,"--fs-color-error":e.colors.error,"--fs-color-error-bg":e.colors.errorBg,"--fs-color-success":e.colors.success,"--fs-color-container-bg":e.colors.containerBg,"--fs-color-card-bg":e.colors.cardBg,"--fs-color-divider":e.colors.divider,"--fs-color-icon":e.colors.icon,"--td-brand-color":e.colors.primary,"--td-brand-color-light":r.light,"--td-brand-color-active":r.active,"--td-brand-color-disabled":r.disabled,"--td-error-color":e.colors.error,"--td-warning-color":"#ED7B2F","--td-success-color":e.colors.success,"--td-text-color-primary":e.control.color,"--td-text-color-secondary":"rgba(0, 0, 0, 0.6)","--td-text-color-placeholder":e.control.placeholderColor,"--td-text-color-disabled":e.control.disabledColor,"--td-bg-color-page":e.colors.containerBg,"--td-bg-color-container":e.colors.cardBg,"--td-component-stroke":e.colors.divider,"--td-font-size-body-large":"16px","--td-font-size-body-small":"12px","--td-radius-default":t(e.control.radius),"--td-radius-large":t(e.group.radius)}}function Q4(e,t){return e==="top"||e==="left"?e:t==="top"||t==="left"?t:"left"}const D0=d.createContext(Ns(wr));function M0(){return d.useContext(D0)}function wi({disabled:e}){return w.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",style:{flexShrink:0,marginLeft:8,color:e?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))"},children:w.jsx("path",{d:"M6 3.5L10.5 8L6 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function hl({open:e,onClose:t,title:r="请选择",onConfirm:n,confirmText:i="确定",cancelText:a="取消",confirmVisible:o=!0,ariaLabel:s,dataTestId:l,children:u}){const c=M0();return d.useEffect(()=>{if(!e)return;const p=f=>{f.key==="Escape"&&t()};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[e,t]),!e||typeof document>"u"?null:Qs.createPortal(w.jsx("div",{onClick:t,style:{...c,position:"fixed",inset:0,zIndex:1e4,background:"rgba(0, 0, 0, 0.6)",display:"flex",alignItems:"flex-end",justifyContent:"center"},children:w.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":s||r,"data-testid":l,onClick:p=>p.stopPropagation(),style:{width:"100%",maxWidth:500,maxHeight:"72vh",background:"var(--td-bg-color-container, #FFFFFF)",borderRadius:"12px 12px 0 0",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 -4px 20px rgba(0, 0, 0, 0.12)"},children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 16px",height:52,flexShrink:0,borderBottom:"1px solid var(--td-component-stroke, #E7E7E7)"},children:[w.jsx("button",{type:"button",onClick:t,style:{border:"none",background:"transparent",fontSize:16,color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))",cursor:"pointer",padding:"4px 0"},children:a}),w.jsx("span",{style:{fontSize:17,fontWeight:600,color:"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))"},children:r}),w.jsx("button",{type:"button",onClick:()=>o&&(n==null?void 0:n()),style:{border:"none",background:"transparent",fontSize:16,fontWeight:600,color:"var(--td-brand-color, #0052D9)",cursor:o?"pointer":"default",padding:"4px 0",visibility:o&&n?"visible":"hidden"},children:i})]}),u,w.jsx("div",{style:{height:"env(safe-area-inset-bottom, 0px)",flexShrink:0}})]})}),document.body)}function $0({item:e,field:t,onChange:r}){var E,C,S,P,T;const n=In(),[i,a]=d.useState([]),o=W4(e),s=Array.isArray(t==null?void 0:t.options)&&t.options.length>0?t.options:o.length>0?o:i,l=!!(t&&t.disabled)||!!e.disabled||!!e.readonly,u=((E=e.props)==null?void 0:E.isSingle)===!1,[c,p]=d.useState(!1),[f,h]=d.useState(t==null?void 0:t.value),[m,b]=d.useState(t==null?void 0:t.value);d.useEffect(()=>{let R=!1;if(!(Array.isArray(t==null?void 0:t.options)&&t.options.length>0||o.length>0||i.length>0||!(n!=null&&n.loadSelectOptions)))return Promise.resolve(n.loadSelectOptions({item:e})).then(O=>{R||!Array.isArray(O)||O.length===0||a(O.map(_=>({code:String(_.code),name:String(_.name)})))}).catch(()=>{}),()=>{R=!0}},[i.length,t==null?void 0:t.options,n,e,o.length]),d.useEffect(()=>{h(t==null?void 0:t.value)},[t==null?void 0:t.value]),d.useEffect(()=>{l&&p(!1)},[l]);const x=()=>{var R;l||(b(u?Array.isArray(f)?[...f]:[]:f??((R=s[0])==null?void 0:R.code)??""),p(!0))},v=e.placeholder||`请选择${e.label||""}`,g=(()=>{if(f==null||f===""||Array.isArray(f)&&f.length===0)return"";if(Array.isArray(f))return f.map(O=>{var _;return((_=s.find(j=>j.code===O))==null?void 0:_.name)||O}).join("、");const R=s.find(O=>O.code===f);return R?R.name:String(f)})(),y=R=>{if(!l)if(u){const O=Array.isArray(m)?[...m]:[];b(O.includes(R)?O.filter(_=>_!==R):[...O,R])}else b(R)},k=()=>{h(m),p(!1),r==null||r(m,"select")};return w.jsxs("div",{children:[w.jsxs("button",{type:"button",disabled:l,"aria-expanded":c,"aria-haspopup":"dialog",onClick:x,style:{width:"100%",minHeight:"var(--fs-control-height, 24px)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",border:0,padding:0,textAlign:"left",cursor:l?"not-allowed":"pointer",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px"},children:[w.jsx("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:l?"var(--fs-control-disabled-color, var(--td-text-color-disabled, rgba(0, 0, 0, 0.26)))":g?"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))":"var(--fs-control-placeholder-color, var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4)))"},children:g||v}),w.jsx(wi,{disabled:l})]}),w.jsx(hl,{open:c,onClose:()=>p(!1),title:((C=e.props)==null?void 0:C.dialogTitle)||e.label||"请选择",ariaLabel:((S=e.props)==null?void 0:S.dialogTitle)||`选择${e.label||""}`,confirmText:((P=e.props)==null?void 0:P.confirmText)||"确定",cancelText:((T=e.props)==null?void 0:T.cancelText)||"取消",onConfirm:k,confirmVisible:s.length>0,dataTestId:"select-dropdown-portal",children:w.jsx("div",{style:{overflowY:"auto",maxHeight:260,padding:"8px 0"},children:s.length===0?w.jsx("div",{style:{padding:"32px 16px",textAlign:"center",color:"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))",fontSize:14},children:"暂无选项"}):s.map(R=>{const O=u?Array.isArray(m)&&m.includes(R.code):m===R.code;return w.jsxs("button",{type:"button","aria-pressed":O,onClick:()=>y(R.code),style:{width:"100%",minHeight:44,border:0,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 20px",fontSize:16,lineHeight:"24px",cursor:"pointer",background:O?"var(--td-brand-color-light, #f2f3ff)":"transparent",color:O?"var(--td-brand-color, #0052D9)":"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))",fontWeight:O?600:400},children:[w.jsx("span",{children:R.name}),O?w.jsx("span",{"aria-hidden":"true",children:"✓"}):null]},R.code)})})})]})}function J4({item:e,field:t,onChange:r}){var p,f;const n=!!(t&&t.disabled)||!!e.disabled||!!e.readonly,[i,a]=d.useState(!1),[o,s]=d.useState([]),l=e.initOptions||[],u=o.length?((p=o[o.length-1])==null?void 0:p.child)||[]:l,c=d.useMemo(()=>{const h=t==null?void 0:t.value;if(!h)return"";if(Array.isArray(h))return h.map(m=>m&&typeof m=="object"?m.name:String(m)).join(" / ");if(typeof h=="object"&&h!==null){if(Array.isArray(h.pathNames))return h.pathNames.join(" / ");if(h.name)return String(h.name)}return t!=null&&t.showValue?String(t.showValue):String(h)},[t==null?void 0:t.value,t==null?void 0:t.showValue]);return w.jsxs("div",{children:[w.jsxs("button",{type:"button",disabled:n,"aria-expanded":i,"aria-haspopup":"dialog",onClick:()=>{n||(s([]),a(!0))},style:{width:"100%",minHeight:"var(--fs-control-height, 24px)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",border:0,padding:0,textAlign:"left",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px",cursor:n?"not-allowed":"pointer"},children:[w.jsx("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:n?"var(--fs-control-disabled-color, var(--td-text-color-disabled, rgba(0, 0, 0, 0.26)))":c?"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))":"var(--fs-control-placeholder-color, var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4)))"},children:c||e.placeholder||"请选择"}),w.jsx(wi,{disabled:n})]}),w.jsxs(hl,{open:i,onClose:()=>a(!1),title:((f=e.props)==null?void 0:f.dialogTitle)||e.label||"请选择",confirmVisible:!1,dataTestId:"cascader-dropdown-portal",children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 16px",minHeight:40,borderBottom:"1px solid var(--td-component-stroke, #E7E7E7)",overflowX:"auto",whiteSpace:"nowrap"},children:[o.map((h,m)=>w.jsx("button",{type:"button",onClick:()=>s(o.slice(0,m)),style:{border:0,background:"transparent",padding:0,fontSize:14,fontWeight:500,color:"var(--td-text-color-primary, rgba(0,0,0,0.9))",cursor:"pointer"},children:h.name},h.code)),w.jsx("span",{style:{fontSize:14,fontWeight:600,color:"var(--td-brand-color, #0052D9)",borderBottom:"2px solid var(--td-brand-color, #0052D9)",paddingBottom:4},children:"请选择"})]}),w.jsxs("div",{style:{overflowY:"auto",maxHeight:280,padding:"4px 0"},children:[u.map(h=>{var m;return w.jsxs("button",{type:"button",onClick:()=>{var x;const b=[...o,h];if((x=h.child)!=null&&x.length){s(b);return}r==null||r({code:h.code,name:h.name,pathCodes:b.map(v=>v.code),pathNames:b.map(v=>v.name)},"pickChange"),a(!1)},style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",background:"transparent",border:0,padding:"12px 20px",cursor:"pointer",textAlign:"left",fontSize:16,lineHeight:"24px",color:"var(--td-text-color-primary, rgba(0,0,0,0.9))"},children:[w.jsx("span",{children:h.name}),!!((m=h.child)!=null&&m.length)&&w.jsx(wi,{})]},h.code)}),!u.length&&w.jsx("div",{style:{textAlign:"center",color:"var(--td-text-color-placeholder, rgba(0,0,0,0.4))",fontSize:14,padding:"28px 0"},children:"暂无选项"})]})]})]})}const Z4={root:[{adcode:"110000",name:"北京市"},{adcode:"310000",name:"上海市"},{adcode:"440000",name:"广东省"},{adcode:"710000",name:"台湾省"},{adcode:"810000",name:"香港特别行政区"}],11e4:[{adcode:"110100",name:"北京市"}],110100:[{adcode:"110101",name:"东城区"},{adcode:"110105",name:"朝阳区"},{adcode:"110108",name:"海淀区"}],31e4:[{adcode:"310100",name:"上海市"}],310100:[{adcode:"310101",name:"黄浦区"},{adcode:"310104",name:"徐汇区"}],44e4:[{adcode:"440100",name:"广州市"},{adcode:"440300",name:"深圳市"}],440100:[{adcode:"440103",name:"荔湾区"},{adcode:"440106",name:"天河区"}],440300:[{adcode:"440303",name:"罗湖区"},{adcode:"440305",name:"南山区"}],71e4:[],81e4:[{adcode:"810001",name:"香港岛"}],810001:[]};function eF(e){const t={};function r(n,i){var a;t[n]=i.map(o=>({adcode:String(o.code),name:o.name}));for(const o of i)(a=o.child)!=null&&a.length&&r(String(o.code),o.child)}return e!=null&&e.length&&r("root",e),async n=>{await new Promise(o=>setTimeout(o,80));const i=n.district_code||n.city_code||n.province_code||"root",a=(e!=null&&e.length?t:Z4)[i];return!a||a.length===0?{data:null}:{data:a}}}const tF={71e4:1,81e4:2,82e4:2};function rF(e){const t=e==null?void 0:e.value;if(Array.isArray(t)&&t.length)return t.map(r=>r.name).join("");if(e!=null&&e.showValue)return String(e.showValue);if(t&&typeof t=="object"){const r=[t.province,t.city,t.country].filter(Boolean);if(r.length)return r.join("")}return e!=null&&e.province?[e.province,e.city,e.country].filter(Boolean).join(""):typeof t=="string"&&t?t:""}function nF({item:e,field:t,onChange:r,formCore:n}){var M,N,$;const i=In(),a=!!(t!=null&&t.disabled)||!!e.disabled||!!e.readonly,o=((M=e.props)==null?void 0:M.taskType)==="map",s=Number((N=e.props)==null?void 0:N.mapLevel)||3,l=(($=e.props)==null?void 0:$.linkageUrl)||"service/geo_code",[u,c]=d.useState(!1),[p,f]=d.useState(!1),[h,m]=d.useState(null),[b,x]=d.useState(!1),[v,g]=d.useState(0),[y,k]=d.useState([]),[E,C]=d.useState([{adcode:"",name:"请选择"}]),S=d.useRef(new Map),P=d.useRef(0),T=d.useMemo(()=>eF(e.initOptions),[e.initOptions]),R=rF(t),O=E.slice(0,s);function _(){return n!=null&&n._linkageFetcher?n._linkageFetcher:T}async function j(V,L){var ne,Me,$e;const q=++P.current;m(null);const Y=S.current.get(V);if(Y){k(Y),f(!1);return}k([]),f(!0);const J=L.filter(me=>me.adcode),de={province_code:((ne=J[0])==null?void 0:ne.adcode)||"",city_code:((Me=J[1])==null?void 0:Me.adcode)||"",district_code:(($e=J[2])==null?void 0:$e.adcode)||""};try{const me=await _()(de,l);if(q!==P.current)return;if(me.data===null&&J.length){z(J);return}const oe=me.data||[];k(oe),oe.length>0&&S.current.set(V,oe)}catch{q===P.current&&m({parentCode:V,trail:L})}finally{q===P.current&&f(!1)}}function D(){P.current++,c(!1)}function W(){var L;if(a)return;g(0);const V=t==null?void 0:t.value;if(Array.isArray(V)&&V.length&&((L=V[0])!=null&&L.code)){const q=V.map(Y=>({adcode:Y.code,name:Y.name}));C(q),x(q.length>=2)}else C([{adcode:"",name:"请选择"}]),x(!1);c(!0),j("root",[])}function z(V){const L=(V||E).filter(J=>J.adcode);if(L.length===0)return;const q=L.map(J=>({code:J.adcode,name:J.name})),Y={showValue:"",province_code:"",province:"",city_code:"",city:"",country_code:"",country:""};q.forEach((J,de)=>{Y.showValue+=J.name,de===0&&(Y.province_code=J.code,Y.province=J.name),de===1&&(Y.city_code=J.code,Y.city=J.name),de===2&&(Y.country_code=J.code,Y.country=J.name)}),r==null||r(q,"pickChange",Y),D()}function U(V){var ne;if(p||!V.adcode)return;const L=[...E];L[v]=V;const q=Math.min(s,tF[(ne=L[0])==null?void 0:ne.adcode]??s);v<q-1&&(L[v+1]={adcode:"",name:""},L.splice(v+2));const Y=v+1,J=L.slice(0,q);g(Y),C(J);const de=J.filter(Me=>Me.adcode);if(de.length>=q){x(!0),z(de);return}j(V.adcode,J)}function A(V){var Y;g(V),x(!1);const L=E.slice(0,V+1);L[V].adcode||(L[V]={adcode:"",name:"请选择"}),C(L);const q=L.slice(0,V);j(((Y=q[V-1])==null?void 0:Y.adcode)||"root",q)}async function I(V){var q,Y;if(V.stopPropagation(),a)return;const L={key:e.key,taskType:"map",taskCategory:String(((q=e.props)==null?void 0:q.taskCategory)||"TASKS"),item:e,field:t};if((Y=n==null?void 0:n.emit)==null||Y.call(n,"controlJump",L),i!=null&&i.launchTask)try{const J=await i.launchTask(L);J!==void 0&&(typeof(n==null?void 0:n.setControlData)=="function"?n.setControlData(e.key,J,{skipJump:!0}):r==null||r(J,"pickChange"))}catch{}}return w.jsxs("div",{children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[w.jsxs("button",{type:"button",disabled:a,"aria-expanded":u,"aria-haspopup":"dialog",onClick:W,style:{background:"transparent",border:0,padding:0,textAlign:"left",flex:1,minWidth:0,minHeight:"var(--fs-control-height, 24px)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px",cursor:a?"not-allowed":"pointer"},children:[w.jsx("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:a?"var(--fs-control-disabled-color, var(--td-text-color-disabled, rgba(0, 0, 0, 0.26)))":R?"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))":"var(--fs-control-placeholder-color, var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4)))"},children:R||e.placeholder||"请选择省市区"}),w.jsx(wi,{disabled:a})]}),o&&w.jsx("button",{type:"button",disabled:a,onClick:V=>void I(V),style:{flexShrink:0,border:0,borderRadius:4,padding:"2px 8px",fontSize:12,lineHeight:"20px",background:"var(--td-brand-color-light, #f2f3ff)",color:a?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--td-brand-color, var(--fs-color-primary, #0052D9))",cursor:a?"not-allowed":"pointer"},children:"地图选点"})]}),w.jsxs(hl,{open:u,onClose:D,title:"选择地址",ariaLabel:"选择地址",onConfirm:()=>b&&z(),confirmVisible:b,children:[w.jsx("div",{style:{display:"flex",alignItems:"center",padding:"6px 16px",minHeight:40,borderBottom:"1px solid var(--td-component-stroke, #E7E7E7)",overflowX:"auto",whiteSpace:"nowrap",flexShrink:0},children:O.map((V,L)=>w.jsxs(we.Fragment,{children:[w.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:L===v||!V.adcode||L>=v?"#fff":"var(--td-brand-color, #0052D9)",border:"1px solid var(--td-brand-color, #0052D9)",flexShrink:0}}),w.jsx("button",{type:"button",onClick:()=>V.adcode&&A(L),style:{border:"none",background:"transparent",fontSize:14,fontWeight:500,margin:"0 4px",color:L===v?"var(--td-brand-color, #0052D9)":V.adcode?"var(--td-text-color-primary, rgba(0,0,0,0.9))":"var(--td-text-color-placeholder, rgba(0,0,0,0.4))",cursor:V.adcode?"pointer":"default",maxWidth:80,overflow:"hidden",textOverflow:"ellipsis",padding:0},children:V.adcode?V.name:"请选择"}),L<O.length-1&&w.jsx("span",{style:{width:14,height:1,background:V.adcode&&L<v?"var(--td-brand-color, #0052D9)":"var(--td-component-stroke, #E7E7E7)",flexShrink:0}})]},L))}),w.jsxs("div",{style:{overflowY:"auto",flex:1,position:"relative",minHeight:160},children:[p&&w.jsx("div",{style:{position:"absolute",inset:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255,255,255,0.75)",color:"var(--td-brand-color, #0052D9)",fontSize:13},children:"加载中..."}),y.map(V=>{var q;const L=((q=E[v])==null?void 0:q.adcode)===V.adcode;return w.jsxs("button",{type:"button",onClick:()=>U(V),style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",padding:"14px 20px",border:"none",background:L?"var(--td-brand-color-light, #f2f3ff)":"transparent",fontSize:15,lineHeight:"22px",cursor:"pointer",color:L?"var(--td-brand-color, #0052D9)":"var(--td-text-color-primary, rgba(0,0,0,0.9))",fontWeight:L?600:400,textAlign:"left"},children:[w.jsx("span",{children:V.name}),L?w.jsx("span",{"aria-hidden":"true",children:"✓"}):null]},V.adcode)}),h&&w.jsxs("div",{role:"alert",style:{padding:16,fontSize:14,color:"var(--td-error-color, #D54941)"},children:["地址加载失败。"," ",w.jsx("button",{type:"button",onClick:()=>void j(h.parentCode,h.trail),style:{border:"1px solid var(--td-brand-color, #0052D9)",background:"transparent",color:"var(--td-brand-color, #0052D9)",borderRadius:4,padding:"2px 10px",cursor:"pointer"},children:"重试"})]}),!p&&!h&&y.length===0&&w.jsx("div",{style:{padding:"30px 0",textAlign:"center",color:"var(--td-text-color-placeholder, rgba(0,0,0,0.4))",fontSize:14},children:"暂无数据"})]})]})]})}function iF(e){var c,p,f,h,m,b;const t=((c=e==null?void 0:e.extra)==null?void 0:c.nodeProps)||{},r=Object.prototype.hasOwnProperty.call(t,"true_value")&&t.true_value!==void 0,n=Object.prototype.hasOwnProperty.call(t,"false_value")&&t.false_value!==void 0,i=r||n,a=r?t.true_value:!0,o=n?t.false_value:!1,s=[];if(Array.isArray((p=e==null?void 0:e.props)==null?void 0:p.agreements)){for(const x of e.props.agreements)if(typeof x=="string"&&x.trim())s.push({title:x.trim()});else if(x&&typeof x=="object"){const v=String(x.title||x.name||x.label||"").trim();v&&s.push({title:v,url:x.url||x.link?String(x.url||x.link):void 0,content:x.content?String(x.content):void 0})}}const l=t.agreementlist;if(Array.isArray(l)){for(const x of l)if(typeof x=="string"&&x.trim())s.push({title:x.trim()});else if(x&&typeof x=="object"){const v=String(x.title||x.name||x.label||"").trim();v&&s.push({title:v,url:x.url||x.link?String(x.url||x.link):void 0,content:x.content?String(x.content):void 0})}}else typeof l=="string"&&l.trim()&&s.length===0&&((f=e==null?void 0:e.props)!=null&&f.agreementLink&&typeof e.props.agreementLink=="string"?s.push({title:"相关服务协议",url:e.props.agreementLink}):s.push({title:"相关服务协议",content:(e==null?void 0:e.label)||((h=e==null?void 0:e.props)==null?void 0:h.guideText)||"请阅读并同意相关服务协议。"}));(m=e==null?void 0:e.props)!=null&&m.agreementLink&&typeof e.props.agreementLink=="string"&&s.length===0&&s.push({title:"查看协议",url:e.props.agreementLink});const u=(e==null?void 0:e.label)&&String(e.label).trim()||((b=e==null?void 0:e.props)==null?void 0:b.guideText)&&String(e.props.guideText).trim()||"同意协议";return{hasCustomValues:i,trueValue:a,falseValue:o,displayLabel:u,agreements:s,hasAgreementLinks:s.length>0}}function aF(e,t){return t.hasCustomValues&&(e===t.trueValue||t.trueValue!=null&&e!=null&&e!==""&&String(e)===String(t.trueValue))?!0:e===!0||e==="true"||e==="1"||e===1}function oF({item:e,field:t,onChange:r}){const[n,i]=d.useState(null),a=iF(e),o=aF(t==null?void 0:t.value,a),s=!!(t!=null&&t.disabled)||!!e.disabled||!!e.readonly;return w.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,fontSize:14,lineHeight:"22px"},children:[w.jsxs("label",{style:{position:"relative",display:"inline-flex",alignItems:"center",gap:10,cursor:s?"not-allowed":"pointer",color:s?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))"},children:[w.jsx("input",{type:"checkbox",checked:o,disabled:s,onChange:l=>{const u=l.currentTarget.checked;r==null||r(u?a.trueValue:a.falseValue,"agreement")},style:{position:"absolute",opacity:0,width:20,height:20,margin:0,cursor:s?"not-allowed":"pointer"}}),w.jsx("span",{"aria-hidden":"true",style:{width:18,height:18,borderRadius:"50%",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:o?"none":"1.5px solid var(--td-component-stroke, #DCDCDC)",background:o?s?"var(--td-brand-color-disabled, #b5c7ff)":"var(--td-brand-color, var(--fs-color-primary, #0052D9))":s?"var(--td-bg-color-page, #F3F3F3)":"transparent",transition:"background 0.15s, border-color 0.15s"},children:o&&w.jsx("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",children:w.jsx("path",{d:"M2.5 6.2L5 8.7L9.5 3.5",stroke:"#FFFFFF",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),w.jsx("span",{children:a.displayLabel})]}),a.hasAgreementLinks&&w.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,paddingLeft:28},children:a.agreements.map(l=>w.jsxs("button",{type:"button",onClick:u=>{u.stopPropagation(),i(l)},style:{border:0,background:"transparent",padding:0,fontSize:13,color:"var(--td-brand-color, var(--fs-color-primary, #0052D9))",cursor:"pointer"},children:["《",l.title,"》"]},l.title))}),n&&w.jsx("div",{onClick:()=>i(null),style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center"},children:w.jsxs("div",{onClick:l=>l.stopPropagation(),style:{background:"var(--td-bg-color-container, #fff)",width:"80%",maxWidth:400,maxHeight:"70vh",overflow:"auto",borderRadius:"var(--td-radius-large, 9px)",padding:16},children:[w.jsx("div",{style:{fontWeight:600,marginBottom:8,fontSize:16},children:n.title}),w.jsx("div",{style:{fontSize:14,lineHeight:1.6,color:"var(--td-text-color-secondary, rgba(0,0,0,0.6))"},children:n.content||n.url||a.displayLabel})]})})]})}function sF(e){var r,n,i;const t=String(((r=e==null?void 0:e.props)==null?void 0:r.fields)||((i=(n=e==null?void 0:e.extra)==null?void 0:n.nodeProps)==null?void 0:i.fields)||"").trim().toLowerCase();return t==="year"?{granularity:"year",format:"YYYY",placeholder:(e==null?void 0:e.placeholder)||"请选择年份"}:t==="month"?{granularity:"month",format:"YYYY-MM",placeholder:(e==null?void 0:e.placeholder)||"请选择年月"}:{granularity:"day",format:"YYYY-MM-DD",placeholder:(e==null?void 0:e.placeholder)||"请选择日期"}}function Su(e){if(Array.isArray(e))return[String(e[0]||""),String(e[1]||"")];if(e&&typeof e=="object"){const t=e;return[String(t.start||""),String(t.end||"")]}return["",""]}function lF(e){const t=e.match(/^(\d{4})-(\d{1,2})$/);if(t)return[Number(t[1]),Number(t[2]),1];const r=e.match(/^(\d{4})$/);if(r)return[Number(r[1]),1,1];const n=e.match(/^(\d{4})-(\d{1,2})-(\d{1,2})/);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])];const i=new Date;return[i.getFullYear(),i.getMonth()+1,i.getDate()]}function Jv(e,t){return new Date(e,t,0).getDate()}function uF(e,t,r,n){const i=String(e).padStart(4,"0");if(n==="year")return i;const a=String(t).padStart(2,"0");if(n==="month")return`${i}-${a}`;const o=String(r).padStart(2,"0");return`${i}-${a}-${o}`}const cF=Array.from({length:101},(e,t)=>1950+t),dF=Array.from({length:12},(e,t)=>t+1);function fF(e,t){const r=e?Number(String(e).slice(0,4)):1950,n=t?Number(String(t).slice(0,4)):2050,i=Number.isFinite(r)&&r>=1900&&r<=2100?r:1950,a=Number.isFinite(n)&&n>=i&&n<=2100?n:2050;return i===1950&&a===2050?cF:Array.from({length:a-i+1},(o,s)=>i+s)}function L0({item:e,field:t,onChange:r}){var A,I,M;const n=!!(t!=null&&t.disabled)||!!e.disabled||!!e.readonly,i=e.type==="dateRange",a=!!((A=e.props)!=null&&A.allowLongTerm),o=d.useMemo(()=>{var N,$;return fF((N=e.props)==null?void 0:N.minDate,($=e.props)==null?void 0:$.maxDate)},[(I=e.props)==null?void 0:I.minDate,(M=e.props)==null?void 0:M.maxDate]),s=d.useMemo(()=>sF(e),[e]),[l,u]=d.useState((t==null?void 0:t.value)==null?"":String(t.value)),[c,p]=d.useState(Su(t==null?void 0:t.value)[0]),[f,h]=d.useState(Su(t==null?void 0:t.value)[1]),[m,b]=d.useState(null),[x,v]=d.useState(2026),[g,y]=d.useState(1),[k,E]=d.useState(1),C=d.useRef(null),S=d.useRef(null),P=d.useRef(null);d.useEffect(()=>{if(i){const[N,$]=Su(t==null?void 0:t.value);p(N),h($)}else u((t==null?void 0:t.value)==null||(t==null?void 0:t.value)===""?"":String(t.value))},[t==null?void 0:t.value,i]),d.useEffect(()=>{n&&b(null)},[n]);const T=(N,$)=>{if(n)return;const[V,L,q]=lF($);v(V),y(L),E(Math.min(q,Jv(V,L))),b(N)};d.useEffect(()=>{if(!m)return;const N=V=>{const L=V==null?void 0:V.querySelector('[aria-pressed="true"]');L&&V&&(V.scrollTop=Math.max(0,L.offsetTop-V.clientHeight/2+L.clientHeight/2))},$=requestAnimationFrame(()=>{N(C.current),N(S.current),N(P.current)});return()=>cancelAnimationFrame($)},[m]);const R=d.useMemo(()=>Jv(x,g),[x,g]),O=d.useMemo(()=>Array.from({length:R},(N,$)=>$+1),[R]),_=Math.min(k,R),j=()=>{const N=uF(x,g,_,s.granularity);m==="single"?(u(N),r==null||r(N,"pickChange")):m==="start"?(p(N),r==null||r(N||f?[N,f]:"","pickChange")):m==="end"&&(h(N),r==null||r(c||N?[c,N]:"","pickChange")),b(null)},D=(N,$,V,L)=>w.jsxs("button",{type:"button",disabled:n,"aria-label":V,"aria-haspopup":"dialog","aria-expanded":m===L,onClick:()=>T(L,N),style:{width:"100%",minHeight:"var(--fs-control-height, 24px)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",border:0,padding:0,textAlign:"left",cursor:n?"not-allowed":"pointer",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px"},children:[w.jsx("span",{style:{color:n?"var(--fs-control-disabled-color, var(--td-text-color-disabled, rgba(0, 0, 0, 0.26)))":N?"var(--fs-control-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))":"var(--fs-control-placeholder-color, var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4)))"},children:N||$}),w.jsx(wi,{disabled:n})]}),W={flex:1,height:220,overflowY:"auto",position:"relative"},z=N=>({width:"100%",height:40,border:0,background:N?"var(--td-brand-color-light, #f2f3ff)":"transparent",color:N?"var(--td-brand-color, #0052D9)":"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))",fontWeight:N?600:400,fontSize:N?16:15,cursor:"pointer",textAlign:"center"}),U=()=>{if(!n)if(i){const N=f==="long_term"?"":"long_term";h(N),r==null||r(c||N?[c,N]:"","pickChange")}else{const N=l==="long_term"?"":"long_term";u(N),r==null||r(N,"pickChange")}};return w.jsxs("div",{children:[i?w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[w.jsx("div",{style:{flex:1,minWidth:110},children:D(c,"开始日期",`${e.label||"日期"}开始`,"start")}),w.jsx("span",{style:{fontSize:13,color:"var(--td-text-color-secondary, rgba(0,0,0,0.6))"},children:"至"}),w.jsx("div",{style:{flex:1,minWidth:110},children:D(f==="long_term"?"长期":f,"结束日期",`${e.label||"日期"}结束`,"end")}),a?w.jsx("button",{type:"button",disabled:n,"aria-pressed":f==="long_term",onClick:U,style:{padding:"3px 10px",borderRadius:999,border:f==="long_term"?"1px solid var(--fs-brand, var(--td-brand-color, #0052D9))":"1px solid var(--td-component-stroke, #CBD5E1)",background:f==="long_term"?"var(--fs-brand-soft, var(--td-brand-color-light, #EEF4FF))":"#FFFFFF",color:f==="long_term"?"var(--fs-brand, var(--td-brand-color, #0052D9))":"#475569",fontSize:12,fontWeight:f==="long_term"?600:400,cursor:n?"not-allowed":"pointer"},children:"长期"}):null]}):w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[w.jsx("div",{style:{flex:1,minWidth:0},children:D(l==="long_term"?"长期":l,s.placeholder,e.label||"日期","single")}),a?w.jsx("button",{type:"button",disabled:n,"aria-pressed":l==="long_term",onClick:U,style:{padding:"3px 10px",borderRadius:999,border:l==="long_term"?"1px solid var(--fs-brand, var(--td-brand-color, #0052D9))":"1px solid var(--td-component-stroke, #CBD5E1)",background:l==="long_term"?"var(--fs-brand-soft, var(--td-brand-color-light, #EEF4FF))":"#FFFFFF",color:l==="long_term"?"var(--fs-brand, var(--td-brand-color, #0052D9))":"#475569",fontSize:12,cursor:n?"not-allowed":"pointer"},children:"长期"}):null]}),w.jsx(hl,{open:m!==null,onClose:()=>b(null),title:`选择${e.label||"日期"}`,onConfirm:j,dataTestId:"date-picker-portal",children:w.jsxs("div",{style:{display:"flex",padding:"4px 8px"},children:[w.jsx("div",{ref:C,style:W,"aria-label":"年份",children:o.map(N=>{const $=N===x;return w.jsxs("button",{type:"button","aria-pressed":$,onClick:()=>v(N),style:z($),children:[N,"年"]},N)})}),s.granularity!=="year"&&w.jsx("div",{ref:S,style:W,"aria-label":"月份",children:dF.map(N=>{const $=N===g;return w.jsxs("button",{type:"button","aria-pressed":$,onClick:()=>y(N),style:z($),children:[String(N).padStart(2,"0"),"月"]},N)})}),s.granularity==="day"&&w.jsx("div",{ref:P,style:W,"aria-label":"日期",children:O.map(N=>{const $=N===_;return w.jsxs("button",{type:"button","aria-pressed":$,onClick:()=>E(N),style:z($),children:[String(N).padStart(2,"0"),"日"]},N)})})]})})]})}function pF(e){var r;return(Array.isArray(e==null?void 0:e.initOptions)?e.initOptions:Array.isArray((r=e==null?void 0:e.props)==null?void 0:r.options)?e.props.options:[]).map(n=>({code:String((n==null?void 0:n.code)??(n==null?void 0:n.value)??(n==null?void 0:n.id)??""),name:String((n==null?void 0:n.name)??(n==null?void 0:n.label)??(n==null?void 0:n.title)??(n==null?void 0:n.code)??""),disabled:!!(n!=null&&n.disabled)}))}function z0({item:e,field:t,onChange:r}){var l,u,c,p;const n=!!(t&&t.disabled)||!!e.disabled||!!e.readonly,i=((l=e.props)==null?void 0:l.trueValue)??!0,a=((u=e.props)==null?void 0:u.falseValue)??!1,o=(t==null?void 0:t.value)===i||(t==null?void 0:t.value)===!0||(t==null?void 0:t.value)==="1"||(t==null?void 0:t.value)===1,s=()=>{n||r==null||r(o?a:i,"change")};return w.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10},children:[w.jsx("span",{style:{fontSize:13,color:"var(--td-text-color-secondary, #64748B)"},children:o?((c=e.props)==null?void 0:c.activeText)||"已开启":((p=e.props)==null?void 0:p.inactiveText)||"已关闭"}),w.jsx("button",{type:"button",role:"switch","aria-checked":o,disabled:n,onClick:s,style:{width:46,height:26,borderRadius:999,border:0,padding:2,background:o?"var(--fs-brand, var(--td-brand-color, #0052D9))":"#CBD5E1",position:"relative",cursor:n?"not-allowed":"pointer",opacity:n?.55:1,transition:"background 0.18s ease"},children:w.jsx("span",{style:{display:"block",width:22,height:22,borderRadius:"50%",background:"#FFFFFF",boxShadow:"0 1px 3px rgba(15, 23, 42, 0.25)",transform:o?"translateX(20px)":"translateX(0)",transition:"transform 0.18s ease"}})})]})}function V0({item:e,field:t,onChange:r}){var h,m;const n=!!(t&&t.disabled)||!!e.disabled||!!e.readonly,i=e.type==="checkboxGroup",a=pF(e),[o,s]=d.useState(""),l=typeof((h=e.props)==null?void 0:h.maxSelect)=="number"?e.props.maxSelect:void 0,u=typeof((m=e.props)==null?void 0:m.minSelect)=="number"?e.props.minSelect:void 0,c=Array.isArray(t==null?void 0:t.value)?t.value.map(b=>String(b)):typeof(t==null?void 0:t.value)=="string"&&t.value?t.value.split(",").filter(Boolean):[],p=(t==null?void 0:t.value)==null?"":String(t.value),f=(b,x)=>{if(n||x)return;if(s(""),!i){r==null||r(b,"pickChange");return}const v=c.includes(b);let g;if(v){if(u&&c.length<=u){s(`至少选择 ${u} 项`);return}g=c.filter(y=>y!==b)}else{if(l&&c.length>=l){s(`最多选择 ${l} 项`);return}g=[...c,b]}r==null||r(g,"pickChange")};return w.jsxs("div",{style:{width:"100%"},children:[w.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:a.map(b=>{const x=i?c.includes(b.code):p===b.code,v=n||b.disabled;return w.jsx("button",{type:"button",disabled:v,"aria-pressed":x,onClick:()=>f(b.code,b.disabled),style:{padding:"6px 12px",borderRadius:999,border:x?"1px solid var(--fs-brand, var(--td-brand-color, #0052D9))":"1px solid var(--td-component-stroke, #CBD5E1)",background:x?"var(--fs-brand-soft, var(--td-brand-color-light, #EEF4FF))":"#FFFFFF",color:x?"var(--fs-brand, var(--td-brand-color, #0052D9))":"var(--td-text-color-primary, #1E293B)",fontSize:13,fontWeight:x?600:400,cursor:v?"not-allowed":"pointer",opacity:v?.5:1,transition:"all 0.15s ease"},children:i?`${x?"✓ ":""}${b.name}`:b.name},b.code)})}),o?w.jsx("div",{style:{fontSize:12,color:"var(--td-error-color, #D54941)",marginTop:4},children:o}):null]})}function H0({item:e,field:t,onChange:r}){var c,p,f,h;const n=!!(t&&t.disabled)||!!e.disabled||!!e.readonly,i=typeof((c=e.props)==null?void 0:c.min)=="number"?e.props.min:0,a=typeof((p=e.props)==null?void 0:p.max)=="number"?e.props.max:9999,o=typeof((f=e.props)==null?void 0:f.step)=="number"&&e.props.step>0?e.props.step:1,s=(t==null?void 0:t.value)!==void 0&&(t==null?void 0:t.value)!==null&&(t==null?void 0:t.value)!==""?Number(t.value):i,l=m=>{if(n)return;const b=Math.max(i,Math.min(a,Number(m.toFixed(6))));r==null||r(b,"change")},u=m=>({width:30,height:30,borderRadius:8,border:"1px solid var(--td-component-stroke, #CBD5E1)",background:m?"#F1F5F9":"#FFFFFF",color:m?"#94A3B8":"var(--td-text-color-primary, #0F172A)",fontSize:16,fontWeight:600,cursor:m?"not-allowed":"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0});return w.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:10},children:[w.jsx("button",{type:"button","aria-label":"减少",disabled:n||s<=i,onClick:()=>l(s-o),style:u(n||s<=i),children:"−"}),w.jsxs("span",{style:{minWidth:32,textAlign:"center",fontSize:15,fontWeight:600,color:"var(--td-text-color-primary, #0F172A)"},children:[s,(h=e.props)!=null&&h.unit?w.jsx("span",{style:{fontSize:12,color:"#64748B",marginLeft:2},children:e.props.unit}):null]}),w.jsx("button",{type:"button","aria-label":"增加",disabled:n||s>=a,onClick:()=>l(s+o),style:u(n||s>=a),children:"+"})]})}function B0({item:e,field:t,onChange:r}){var o;const n=!!(t&&t.disabled)||!!e.disabled||!!e.readonly,i=typeof((o=e.props)==null?void 0:o.max)=="number"&&e.props.max>0?e.props.max:5,a=Number(t==null?void 0:t.value)||0;return w.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[Array.from({length:i},(s,l)=>{const u=l+1,c=u<=a;return w.jsx("button",{type:"button","aria-label":`${u}星`,"aria-pressed":c,disabled:n,onClick:()=>!n&&(r==null?void 0:r(u,"change")),style:{border:0,background:"transparent",padding:"0 2px",fontSize:22,lineHeight:1,color:c?"#F59E0B":"#CBD5E1",cursor:n?"not-allowed":"pointer",transition:"transform 0.12s ease"},children:"★"},u)}),a>0?w.jsxs("span",{style:{fontSize:13,color:"#64748B",marginLeft:4},children:[a," / ",i," 分"]}):null]})}function vF(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?{name:t.split("/").pop()||t,url:t}:t&&typeof t=="object"?{name:String(t.name||t.url||"附件"),url:String(t.url||""),size:typeof t.size=="number"?t.size:void 0}:null).filter(Boolean):[]}function hF({item:e,field:t,onChange:r}){var x,v,g,y;const n=In(),i=!!(t&&t.disabled)||!!e.disabled||!!e.readonly,a=Number((x=e.props)==null?void 0:x.maxCount)||3,o=typeof((v=e.props)==null?void 0:v.maxSizeMB)=="number"?e.props.maxSizeMB:10,s=Array.isArray((g=e.props)==null?void 0:g.accept)?e.props.accept:typeof((y=e.props)==null?void 0:y.accept)=="string"&&e.props.accept?e.props.accept.split(",").map(k=>k.trim()).filter(Boolean):[".pdf",".doc",".docx",".xls",".xlsx",".png",".jpg",".jpeg"],[l,u]=d.useState(!1),[c,p]=d.useState(""),f=d.useRef(null),h=vF(t==null?void 0:t.value),m=h.length<a&&!i&&!l;async function b(k){if(!k.length||i)return;p("");const E=a-h.length,C=k.slice(0,Math.max(0,E));for(const S of C){const P=N0({name:S.name,size:S.size,type:S.type},{maxSizeMB:o,accept:s});if(!P.valid){p(P.reason||"文件不符合要求");return}}u(!0);try{const S=[];for(const P of C)if(n!=null&&n.uploadFile){const T=await n.uploadFile({name:P.name,size:P.size,raw:P},{item:e});if(!(T!=null&&T.url))throw new Error("上传未返回 url");S.push({name:P.name,url:T.url,size:P.size})}else S.push({name:P.name,url:URL.createObjectURL(P),size:P.size});r==null||r([...h,...S],"pickChange")}catch(S){p((S==null?void 0:S.message)||"附件上传失败")}finally{u(!1)}}return w.jsxs("div",{style:{width:"100%",paddingTop:2},children:[h.map((k,E)=>w.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"7px 10px",marginBottom:6,borderRadius:8,background:"#F8FAFC",border:"1px solid #E2E8F0",fontSize:13},children:[w.jsxs("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["📎 ",k.name,typeof k.size=="number"?w.jsxs("span",{style:{color:"#94A3B8",marginLeft:6,fontSize:11},children:["(",(k.size/1024).toFixed(0)," KB)"]}):null]}),i?null:w.jsx("button",{type:"button",onClick:()=>r==null?void 0:r(h.filter((C,S)=>S!==E),"pickChange"),style:{border:0,background:"transparent",color:"#EF4444",fontSize:12,cursor:"pointer",flexShrink:0},children:"移除"})]},`${k.name}-${E}`)),m?w.jsx("button",{type:"button",onClick:()=>{var k;return(k=f.current)==null?void 0:k.click()},style:{width:"100%",padding:"9px 12px",borderRadius:8,border:"1px dashed var(--td-component-stroke, #CBD5E1)",background:"#F8FAFC",color:"var(--fs-brand, var(--td-brand-color, #0052D9))",fontSize:13,fontWeight:500,cursor:"pointer",textAlign:"center"},children:l?"上传中...":`+ 选择附件(≤${o}MB,最多 ${a} 个)`}):null,w.jsx("input",{ref:f,type:"file",accept:s.join(","),multiple:a>1,hidden:!0,onChange:k=>{const E=Array.from(k.currentTarget.files||[]);k.currentTarget.value="",b(E)}}),c?w.jsx("div",{style:{fontSize:12,color:"var(--td-error-color, #D54941)",marginTop:4},children:c}):null]})}function gF({item:e,field:t,onChange:r}){const n=K4(e),i=e.listMeta||{},a=i.minItems||1,o=i.maxItems||99,s=i.addButtonText||"+ 添加",l=i.removable!==!1,u=!!(t&&t.disabled)||!!e.disabled,c=Array.isArray(t==null?void 0:t.value)?t.value:[{}],[p,f]=d.useState({}),h=(v,g,y)=>{const k=c.map((E,C)=>C===v?{...E,[g]:y}:E);r&&r(k,"list")},m=()=>{if(c.length>=o)return;const v=[...c,{}];r&&r(v,"list")},b=v=>{if(c.length<=a)return;const g=c.filter((y,k)=>k!==v);r&&r(g,"list")},x=v=>{f(g=>({...g,[v]:!g[v]}))};return w.jsxs("div",{children:[n.length===0?w.jsx("div",{style:{fontSize:12,color:"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))"},children:"子表单未定义字段"}):c.map((v,g)=>{var y,k;return w.jsxs("div",{style:{marginBottom:10,border:"1px solid var(--td-component-stroke, #E7E7E7)",borderRadius:"var(--td-radius-large, 9px)",background:"var(--td-bg-color-container, #FFFFFF)",overflow:"hidden"},children:[w.jsxs("div",{onClick:()=>x(g),style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 12px",cursor:"pointer",background:"var(--td-bg-color-page, #F3F3F3)",fontSize:13,color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))"},children:[w.jsxs("span",{children:["#",g+1," ",v[(y=n[0])==null?void 0:y.key]?`- ${v[(k=n[0])==null?void 0:k.key]}`:""]}),w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[l&&c.length>a&&!u&&w.jsx("button",{type:"button",onClick:E=>{E.stopPropagation(),b(g)},style:{border:0,background:"transparent",padding:0,fontSize:12,color:"var(--td-error-color, #D54941)",cursor:"pointer"},children:"删除"}),w.jsx("span",{style:{transform:p[g]?"rotate(180deg)":"none",transition:"transform 0.2s"},children:"▾"})]})]}),p[g]!==!1&&w.jsx("div",{style:{padding:"4px 12px"},children:n.map((E,C)=>{const S={value:v[E.key],disabled:E.disabled},P=T=>h(g,E.key,T);return w.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"10px 0",borderBottom:C===n.length-1?"none":"1px solid var(--td-component-stroke, #E7E7E7)",gap:8},children:[w.jsxs("span",{style:{width:84,flexShrink:0,fontSize:15,color:"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))",textAlign:"left"},children:[E.required&&w.jsx("span",{style:{color:"var(--td-error-color, #D54941)",marginRight:2},children:"*"}),E.label||E.key]}),w.jsx("div",{style:{flex:1,minWidth:0},children:E.type==="select"||E.type==="cascader"?w.jsx($0,{item:E,field:S,onChange:P}):E.type==="date"||E.type==="dateRange"?w.jsx(L0,{item:E,field:S,onChange:P}):E.type==="switch"?w.jsx(z0,{item:E,field:S,onChange:P}):E.type==="radioGroup"||E.type==="checkboxGroup"?w.jsx(V0,{item:E,field:S,onChange:P}):E.type==="stepper"?w.jsx(H0,{item:E,field:S,onChange:P}):E.type==="rate"?w.jsx(B0,{item:E,field:S,onChange:P}):w.jsx(I0,{item:{...E},field:S,onChange:P})})]},E.key)})})]},g)}),!u&&c.length<o&&w.jsx("button",{type:"button",onClick:m,style:{display:"inline-flex",alignItems:"center",gap:4,border:0,background:"transparent",fontSize:14,fontWeight:500,color:"var(--td-brand-color, var(--fs-color-primary, #0052D9))",cursor:"pointer",padding:"6px 0"},children:w.jsx("span",{children:s})})]})}function mF(e,t,r){const n={keywords:e};t!=null&&t.searchType&&(n.searchType=t.searchType);const i=Array.isArray(t==null?void 0:t.reqExtraKeys)?t.reqExtraKeys:[];for(const a of i){if(!a||!a.key)continue;const o=a.sourcePath||a.key,s=r==null?void 0:r[o];if(s){if(a.type==="address"){const l=s.value,u=s.city||Array.isArray(l)&&l[1]&&typeof l[1]=="object"&&l[1].name||Array.isArray(l)&&l[0]&&typeof l[0]=="object"&&l[0].name||s.showValue||(typeof l=="string"?l:"");u&&(n[a.key]=u);continue}s.value!==void 0&&(n[a.key]=s.value)}}return n}function Zv(e,t){if(typeof e=="string")return{code:e,name:e,raw:{code:e,name:e}};const r=e&&typeof e=="object"?e:{},i=String(r[t||"name"]??r.name??r.value??r.label??""),a=String(r.code??r.creditCode??r.id??r.value??i);return{code:a||i,name:i||a,raw:r}}function yF({item:e,field:t,formCore:r,onChange:n}){var P;const i=M0(),[a,o]=d.useState(""),[s,l]=d.useState([]),[u,c]=d.useState(!1),[p,f]=d.useState(!1),[h,m]=d.useState(null),b=d.useRef(!1),x=d.useRef(null),v=d.useRef(null),g=d.useRef(null);d.useEffect(()=>{if(b.current)return;const T=t==null?void 0:t.value;T&&typeof T=="object"&&T.name?o(T.name):o(T==null?"":String(T))},[t==null?void 0:t.value]);const y=d.useCallback(()=>{var R;const T=(R=v.current)==null?void 0:R.getBoundingClientRect();T&&m({top:T.bottom+4,left:T.left,width:T.width})},[]),k=d.useCallback(async T=>{var O,_;const R=(O=e.props)==null?void 0:O.searchApi;if(!(!R||!(r!=null&&r.fetchApi))){f(!0);try{const j=mF(T,e.props,r.fields),D=await r.fetchApi(R,j),W=Array.isArray(D)?D:((_=D==null?void 0:D.data)==null?void 0:_.list)||(D==null?void 0:D.data)||(D==null?void 0:D.list)||[],z=Array.isArray(W)?W.map(U=>{var A;return Zv(U,(A=e.props)==null?void 0:A.valueCustomKey)}).filter(U=>!!(U.name||U.code)):[];l(z),z.length>0?(y(),c(!0)):c(!1)}catch{l([]),c(!1)}finally{f(!1)}}},[r,e.props,y]);d.useEffect(()=>{if(!u)return;const T=O=>{var j,D;const _=O.target;(j=v.current)!=null&&j.contains(_)||(D=g.current)!=null&&D.contains(_)||c(!1)},R=()=>y();return document.addEventListener("mousedown",T),window.addEventListener("scroll",R,!0),window.addEventListener("resize",R),()=>{document.removeEventListener("mousedown",T),window.removeEventListener("scroll",R,!0),window.removeEventListener("resize",R)}},[u,y]),d.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const E=!!(t!=null&&t.disabled||e.disabled||e.readonly),C=T=>{var j,D;const R=T&&T.raw?T:Zv(T,(j=e.props)==null?void 0:j.valueCustomKey),O=R.name;o(O),b.current=!1,c(!1),l([]);const _=Array.isArray((D=e.props)==null?void 0:D.extraResKeys)?e.props.extraResKeys.filter(Boolean):[];if(_.length>0){const W={code:R.code,name:O},z={};for(const U of _)U in R.raw&&(W[U]=R.raw[U],z[U]=R.raw[U]);n==null||n(W,"searchChange",Object.keys(z).length>0?z:void 0);return}n==null||n(O,"searchChange")},S=u&&h&&typeof document<"u"?Qs.createPortal(w.jsx("div",{ref:g,"data-testid":"search-dropdown-portal",style:{...i,position:"fixed",top:h.top,left:h.left,width:h.width,zIndex:1e4,maxHeight:240,overflowY:"auto",background:"var(--td-bg-color-container, #FFFFFF)",border:"1px solid var(--td-component-stroke, #E7E7E7)",borderRadius:"var(--td-radius-default, 6px)",boxShadow:"0 6px 20px rgba(0, 0, 0, 0.12)"},children:s.map((T,R)=>w.jsxs("div",{onMouseDown:O=>O.preventDefault(),onClick:()=>C(T),style:{padding:"10px 12px",cursor:"pointer",borderBottom:R===s.length-1?"none":"1px solid var(--td-component-stroke, #E7E7E7)",fontSize:14,lineHeight:"20px"},children:[w.jsx("div",{style:{color:"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))"},children:T.name||T.value}),(T.code||T.creditCode)&&w.jsx("small",{style:{color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))",fontSize:12},children:T.code||T.creditCode})]},`${T.code||T.creditCode||T.name||"option"}-${R}`))}),document.body):null;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:v,style:{position:"relative",display:"flex",alignItems:"center",gap:6,padding:"4px 10px",borderRadius:"var(--td-radius-default, 6px)",background:"var(--td-bg-color-page, #F3F3F3)"},children:[w.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",style:{flexShrink:0,color:"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))"},children:[w.jsx("circle",{cx:"7.2",cy:"7.2",r:"4.7",stroke:"currentColor",strokeWidth:"1.4"}),w.jsx("path",{d:"M10.8 10.8L13.5 13.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),w.jsx("input",{type:"text",value:a,placeholder:e.placeholder||`请输入关键词搜索${e.label||""}`,disabled:E,maxLength:((P=e.props)==null?void 0:P.maxlength)>0?e.props.maxlength:void 0,onChange:T=>{const R=T.target.value;if(o(R),b.current=!0,x.current&&clearTimeout(x.current),!R.trim()){l([]),c(!1);return}x.current=setTimeout(()=>void k(R.trim()),180)},onFocus:()=>{s.length>0&&a&&(y(),c(!0))},onBlur:()=>{window.setTimeout(()=>{b.current&&(n==null||n(a.trim(),"inputBlur")),b.current=!1,c(!1)},150)},style:{flex:1,minWidth:0,boxSizing:"border-box",border:"none",outline:"none",background:"transparent",color:E?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px",padding:0,minHeight:"var(--fs-control-height, 24px)"}}),p&&w.jsx("span",{style:{flexShrink:0,color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))",fontSize:12},children:"搜索中…"})]}),S]})}function bF({item:e,field:t,onChange:r,formCore:n}){var y,k,E,C;const i=In(),a=!!(t&&t.disabled)||!!e.disabled,[o,s]=d.useState((t==null?void 0:t.value)==null?"":String(t.value)),[l,u]=d.useState(0),[c,p]=d.useState(!1),[f,h]=d.useState(""),m=Number((y=e.props)==null?void 0:y.countTime)||60,b=((k=e.props)==null?void 0:k.verifyText)||((E=e.props)==null?void 0:E.reVerifyText)||"获取验证码";d.useEffect(()=>{s((t==null?void 0:t.value)==null||(t==null?void 0:t.value)===""?"":String(t.value))},[t==null?void 0:t.value]),d.useEffect(()=>{if(l<=0)return;const S=setInterval(()=>{u(P=>P<=1?0:P-1)},1e3);return()=>clearInterval(S)},[l>0]);function x(){var R,O,_,j,D;const S=(n==null?void 0:n.fields)||{},P=((R=e.props)==null?void 0:R.mobileKey)||((O=e.props)==null?void 0:O.bindMobileKey)||((_=e.props)==null?void 0:_.phoneFieldKey);if(P&&P in S)return{hasBoundField:!0,value:String(((j=S[P])==null?void 0:j.value)??"").trim()};const T=["mobile","phone","phoneNumber","mobileNo","phone_number"];for(const W of T)if(W in S)return{hasBoundField:!0,value:String(((D=S[W])==null?void 0:D.value)??"").trim()};return{hasBoundField:!1,value:""}}async function v(){var P;if(a||l>0||c)return;h("");const S=x();if(S.hasBoundField){if(!S.value){h("请先填写手机号再获取验证码");return}const T=A0(S.value,{allowInternational:!!((P=e.props)!=null&&P.allowInternational)});if(!T.valid){h(T.reason||"请先输入有效手机号");return}}p(!0);try{i!=null&&i.sendVerifyCode&&await i.sendVerifyCode({item:e,mobile:S.value||void 0}),u(m)}catch(T){h((T==null?void 0:T.message)||"发送失败")}finally{p(!1)}}const g=a||l>0||c;return w.jsxs("div",{style:{width:"100%"},children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,width:"100%"},children:[w.jsx("input",{type:"text",inputMode:"numeric",value:o,placeholder:e.placeholder||"请输入验证码",disabled:a,maxLength:Number((C=e.props)==null?void 0:C.maxlength)||6,onChange:S=>s(S.currentTarget.value),onBlur:()=>r==null?void 0:r(o.trim(),"inputBlur"),style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",color:a?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px"}}),w.jsx("span",{"aria-hidden":"true",style:{width:1,height:16,background:"var(--td-component-stroke, #E7E7E7)",flexShrink:0}}),w.jsx("button",{type:"button",disabled:g,onClick:()=>{v()},style:{flexShrink:0,border:"none",background:"transparent",color:g?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--td-brand-color, var(--fs-color-primary, #0052D9))",fontSize:16,lineHeight:"24px",cursor:g?"not-allowed":"pointer",padding:0},children:l>0?`${l}s`:c?"发送中":b})]}),f?w.jsx("div",{style:{fontSize:"var(--td-font-size-body-small, 12px)",color:"var(--td-error-color, #D54941)",marginTop:4},children:f}):null]})}function eh(e){return Array.isArray(e)?e.map(String).filter(Boolean):typeof e=="string"&&e?[e]:[]}function wF({item:e,field:t,onChange:r}){var y,k,E,C;const n=In(),i=!!(t&&t.disabled)||!!e.disabled,a=Number((y=e.props)==null?void 0:y.maxCount)||1,o=typeof((k=e.props)==null?void 0:k.maxSizeMB)=="number"?e.props.maxSizeMB:10,s=Array.isArray((E=e.props)==null?void 0:E.accept)?e.props.accept:typeof((C=e.props)==null?void 0:C.accept)=="string"&&e.props.accept?e.props.accept.split(",").map(S=>S.trim()).filter(Boolean):void 0,[l,u]=d.useState(eh(t==null?void 0:t.value)),[c,p]=d.useState(!1),[f,h]=d.useState(""),[m,b]=d.useState(null),x=d.useRef(null);d.useEffect(()=>{u(eh(t==null?void 0:t.value))},[t==null?void 0:t.value]);const v=l.length<a&&!i&&!c;async function g(S){if(!S.length||i)return;h("");const P=a-l.length,T=S.slice(0,Math.max(0,P));if(T.length){for(const R of T){const O=N0({name:R.name,size:R.size,type:R.type},{maxSizeMB:o,accept:s});if(!O.valid){h(O.reason||"图片不符合上传要求");return}}p(!0);try{let R;if(n!=null&&n.uploadFile){const O=[];for(const _ of T){const j=await n.uploadFile({name:_.name,size:_.size,raw:_},{item:e});if(!(j!=null&&j.url))throw new Error("上传未返回 url");O.push(j.url)}R=[...l,...O]}else R=[...l,...T.map(O=>URL.createObjectURL(O))];u(R),r==null||r(R,"pickChange")}catch(R){h((R==null?void 0:R.message)||"上传失败")}finally{p(!1)}}}return w.jsxs("div",{style:{width:"100%",paddingTop:4},children:[w.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[l.map((S,P)=>w.jsxs("div",{style:{position:"relative",width:80,height:80,borderRadius:"var(--td-radius-default, 6px)",overflow:"hidden",background:"var(--td-bg-color-page, #F3F3F3)"},children:[w.jsx("img",{src:S,alt:"",onClick:()=>b(S),style:{width:"100%",height:"100%",objectFit:"cover",display:"block",cursor:"zoom-in"}}),!i&&w.jsx("button",{type:"button","aria-label":"删除图片",onClick:()=>{const T=l.filter((R,O)=>O!==P);u(T),r==null||r(T,"pickChange")},style:{position:"absolute",top:0,right:0,width:20,height:20,border:"none",borderRadius:"0 0 0 6px",background:"rgba(0,0,0,.55)",color:"#fff",fontSize:13,lineHeight:"20px",cursor:"pointer",padding:0},children:"×"})]},`${S}-${P}`)),v&&w.jsxs("button",{type:"button",onClick:()=>{var S;return(S=x.current)==null?void 0:S.click()},style:{width:80,height:80,border:0,borderRadius:"var(--td-radius-default, 6px)",background:"var(--td-bg-color-page, #F3F3F3)",color:"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))",fontSize:24,cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:4},children:[w.jsx("span",{style:{lineHeight:1},children:"+"}),w.jsx("span",{style:{fontSize:12,lineHeight:1},children:c?"…":e.placeholder||"上传"})]}),w.jsx("input",{ref:x,type:"file",accept:"image/*",multiple:a>1,hidden:!0,onChange:S=>{const P=Array.from(S.currentTarget.files||[]);S.currentTarget.value="",g(P)}})]}),f?w.jsx("div",{style:{fontSize:"var(--td-font-size-body-small, 12px)",color:"var(--td-error-color, #D54941)",marginTop:4},children:f}):null,m?w.jsx("div",{role:"dialog","aria-label":"图片大图预览",onClick:()=>b(null),style:{position:"fixed",inset:0,background:"rgba(15, 23, 42, 0.85)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",padding:20},children:w.jsx("img",{src:m,alt:"大图预览",style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:10,objectFit:"contain"}})}):null]})}function xF({item:e,field:t,onChange:r}){var c,p,f;const n=!!(t&&t.disabled)||!!e.disabled,i=Number(((c=e.props)==null?void 0:c.min)??0),a=Number(((p=e.props)==null?void 0:p.max)??100),o=Number(((f=e.props)==null?void 0:f.step)??1),s=h=>{const m=Number(h);return Number.isFinite(m)?m:i},[l,u]=d.useState(s(t==null?void 0:t.value));return d.useEffect(()=>{u(s(t==null?void 0:t.value))},[t==null?void 0:t.value]),w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,width:"100%"},children:[w.jsx("input",{type:"range",min:i,max:a,step:o,value:l,disabled:n,"aria-label":e.label||"滑块",onChange:h=>u(Number(h.currentTarget.value)),onMouseUp:h=>r==null?void 0:r(Number(h.target.value),"pickChange"),onTouchEnd:h=>r==null?void 0:r(Number(h.target.value),"pickChange"),onBlur:h=>r==null?void 0:r(Number(h.currentTarget.value),"pickChange"),style:{flex:1,minWidth:0,accentColor:"var(--td-brand-color, var(--fs-color-primary, #0052D9))"}}),w.jsx("span",{style:{flexShrink:0,minWidth:32,textAlign:"right",fontSize:"var(--td-font-size-body-large, 16px)",color:n?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))"},children:l})]})}const SF=new Set(["address","address5","addressPinyin"]),es={signature:"手写签名",business_agency:"业务办理机构",taxLink:"税务授权",taxLInk:"税务授权",tianxun_paas_auth:"天讯授权",standard_tianxun_paas_auth:"天讯授权",re_credit_living:"活体检测",face_verify_sign:"人脸核身签署",company_seal:"公司印章",houseDataSource:"房产数据源授权",owner_list:"关联方信息",navigate_h5_tax_copy:"复制税务链接",inqure_tax_administartion:"税务查询",h5_jump:"H5 跳转",xinge_authorize:"信鸽授权",business_info:"经营信息",contact_info:"联系人信息",card_info_auth:"身份证认证",outside_authorize:"外部授权",subForm:"子表单",checkCard:"绑卡验卡",wxBill:"微信账单",signDoc:"签章签署",auth_contract:"授权签署",bank_bill_files:"流水采集",map:"地图选点"},kF=new Set(Object.keys(es).filter(e=>e!=="map"));function ku(e){return e==="re_credit_living"||e==="face_verify_sign"?"CUSTOMER_TASK":e==="navigate_h5_tax_copy"?"inline":"TASKS"}function U0(e){if(!e)return null;const t=String(e.type||"");if(SF.has(t))return null;const r=e.props||{},n=typeof r.taskType=="string"?r.taskType.trim():"",i=typeof r.taskCategory=="string"?r.taskCategory.trim():"",a=String(e.key||"");if(t==="task"||t==="signature"){const o=n||(t==="signature"?"signature":a||"subForm");return{isTask:!0,taskType:o,taskCategory:i||ku(o),label:es[o]||"外跳任务"}}if(n||i){const o=n||a||"subForm";return{isTask:!0,taskType:o,taskCategory:i||ku(o),label:es[o]||"外跳任务"}}return a&&kF.has(a)?{isTask:!0,taskType:a,taskCategory:ku(a),label:es[a]||"外跳任务"}:null}function W0(e){if(!e)return!1;const t=e.value;return t===!0?!0:typeof t=="string"?t.trim().length>0:typeof t=="number"?Number.isFinite(t):Array.isArray(t)?t.length>0:t&&typeof t=="object"?Object.values(t).some(r=>r!=null&&String(r).trim().length>0):!!(e.showValue&&String(e.showValue).trim())}function EF(e,t){return t!=null&&t.showValue&&String(t.showValue).trim()?String(t.showValue).trim():t!=null&&t.value&&typeof t.value=="object"&&t.value.name&&String(t.value.name).trim()?String(t.value.name).trim():W0(t)?"已完成":e.taskType==="signature"?"去签名":e.taskType==="map"?"去选点":"去办理"}function CF(e){return e==="signature"?"宿主扩展壳 · 手写签名(非 TDesign 原子控件)":e==="task"?"宿主扩展壳 · 外跳任务(form-render-task)":e==="custom"?"宿主插槽 · 由业务注册表渲染":"宿主扩展壳 · 暂不支持直接编辑"}function PF({item:e,field:t,onChange:r,formCore:n}){const i=In(),[a,o]=d.useState(""),s=!!(t&&t.disabled)||!!(e!=null&&e.disabled),l=U0(e);if(l){const c=W0(t),p=EF(l,t),f=async()=>{if(s)return;const h={key:e.key,taskType:l.taskType,taskCategory:l.taskCategory,item:e,field:t};if(n&&typeof n.emit=="function"&&n.emit("controlJump",h),i!=null&&i.launchTask)try{const m=await i.launchTask(h);if(m!==void 0){r==null||r(m,"taskComplete"),o("");return}}catch{return}o(`已触发外跳任务:${l.label}(${l.taskType})`)};return w.jsxs("div",{style:{width:"100%"},children:[w.jsxs("button",{type:"button",disabled:s,"data-testid":`task-trigger-${l.taskType}`,onClick:()=>void f(),style:{width:"100%",minHeight:"var(--fs-control-height, 24px)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",border:0,padding:0,textAlign:"left",cursor:s?"not-allowed":"pointer",fontSize:"var(--fs-control-font-size, var(--td-font-size-body-large, 16px))",lineHeight:"24px"},children:[w.jsx("span",{style:{flex:1,color:s?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":c?"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))":"var(--td-brand-color, var(--fs-color-primary, #0052D9))"},children:p}),w.jsx(wi,{disabled:s})]}),a?w.jsx("div",{style:{marginTop:4,fontSize:"var(--td-font-size-body-small, 12px)",color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))",lineHeight:"18px"},children:a}):null]})}const u=CF(String((e==null?void 0:e.type)||""));return w.jsx("div",{"data-testid":`extension-placeholder-${(e==null?void 0:e.type)||"unknown"}`,style:{padding:"8px 12px",borderRadius:"var(--td-radius-default, 6px)",background:"var(--td-bg-color-page, #F3F3F3)",color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))",fontSize:"var(--td-font-size-body-small, 12px)",lineHeight:"18px"},children:u})}const RF={input:"InputControl",textarea:"InputControl",number:"InputControl",idcard:"InputControl",phone:"InputControl",bankCard:"InputControl",custom:"ExtensionControl",signature:"ExtensionControl",task:"ExtensionControl",select:"SelectControl",cascader:"CascaderControl",address:"AddressControl",address5:"AddressControl",addressPinyin:"AddressControl",search:"SearchControl",agreement:"AgreementControl",list:"ListControl",date:"DateControl",dateRange:"DateControl",verifyCode:"VerifyCodeControl",imageUpload:"ImageUploadControl",fileUpload:"FileUploadControl",slider:"SliderControl",switch:"SwitchControl",radioGroup:"ChoiceGroupControl",checkboxGroup:"ChoiceGroupControl",stepper:"StepperControl",rate:"RateControl"};function TF(e){return RF[e]||"InputControl"}function FF(e,t){var i;if(!e||!t)return null;if(t.key&&e[t.key])return e[t.key];if(t.type&&e[t.type])return e[t.type];const r=typeof t.render=="string"?t.render:"";if(r&&e[r])return e[r];const n=typeof((i=t.props)==null?void 0:i.customControl)=="string"?t.props.customControl:"";return n&&e[n]?e[n]:null}const th={InputControl:I0,SelectControl:$0,CascaderControl:J4,AddressControl:nF,SearchControl:yF,AgreementControl:oF,ListControl:gF,DateControl:L0,VerifyCodeControl:bF,ImageUploadControl:wF,FileUploadControl:hF,SliderControl:xF,SwitchControl:z0,ChoiceGroupControl:V0,StepperControl:H0,RateControl:B0,ExtensionControl:PF},OF=new Set(["agreement","list"]),_F=new Set(["textarea","imageUpload","fileUpload","radioGroup","checkboxGroup","dateRange"]);function AF(){if(typeof document>"u")return null;const e=getComputedStyle(document.documentElement).getPropertyValue("--fs-label-position").trim();return e==="top"||e==="left"?e:null}function NF({item:e,field:t,onFieldChange:r,isLast:n,selected:i,onSelect:a,themeLabelPosition:o,formCore:s,readOnly:l=!1,onTelemetry:u,customControls:c,renderControl:p}){const[f,h]=d.useState(!1),m=d.useRef(0),b=d.useRef(""),x=In(),v=U0(e),g=FF(c,e),y=v?th.ExtensionControl:th[TF(e.type)],k=U4(e,t==null?void 0:t.value),E=(t==null?void 0:t.errMsg)||(k.valid?"":k.reason||""),C=!!E,S=!!(t&&t.disabled)||!!e.disabled,P=typeof(t==null?void 0:t.required)=="boolean"?t.required:!!e.required,T=(t==null?void 0:t.visible)!==!1&&e.visible!==!1,R=OF.has(e.type)||!e.label,O=o??AF(),_=O==="top"||_F.has(e.type)?"top":O??"left",j=Q4(e.labelPosition,_),D=j==="top";if(d.useEffect(()=>{const M=E?String(E):"";M&&M!==b.current&&(u==null||u({type:"field_error",timestamp:Date.now(),fieldKey:e.key,fieldType:e.type,errorMessage:M})),b.current=M},[E,e.key,e.type,u]),!T)return null;const W=(M,N,$)=>{u==null||u({type:"field_change",timestamp:Date.now(),fieldKey:e.key,fieldType:e.type}),r&&r({key:e.key,value:M,eventType:N,extraFields:$})},z=()=>{m.current=Date.now(),u==null||u({type:"field_focus",timestamp:m.current,fieldKey:e.key,fieldType:e.type})},U=()=>{const M=m.current?Date.now()-m.current:0;m.current=0,u==null||u({type:"field_blur",timestamp:Date.now(),fieldKey:e.key,fieldType:e.type,durationMs:M})};if(l){const M=j4(e),N=M4(e,t),$=N?M&&!f?D4(String((t==null?void 0:t.value)??N),e):N:"未填写";return w.jsxs("div",{"data-field-key":e.key,"data-testid":"web-review-row",style:{padding:"var(--fs-spacing-item-padding-y, 14px) var(--fs-spacing-item-padding-x, 16px)",borderBottom:n?"none":"1px solid var(--td-component-stroke, var(--fs-color-divider, #E7E7E7))",display:"flex",flexDirection:"column",gap:4},children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[w.jsx("span",{style:{fontSize:12.5,color:"var(--fs-label-color, #475569)",fontWeight:500},children:e.label||(v==null?void 0:v.label)||e.key}),M&&N?w.jsx("button",{type:"button","data-testid":"web-review-mask-toggle",onClick:()=>h(V=>!V),style:{border:0,borderRadius:999,padding:"2px 8px",fontSize:11,fontWeight:600,background:"var(--fs-brand-soft, #EEF4FF)",color:"var(--fs-brand, #0F52BA)",cursor:"pointer"},children:f?"隐藏脱敏":"查看原文"}):null]}),w.jsx("div",{style:{fontSize:15,fontWeight:N?500:400,color:N?"var(--td-text-color-primary, #0F172A)":"#94A3B8",lineHeight:"22px",wordBreak:"break-all"},children:$})]})}const A={item:e,field:t,value:t==null?void 0:t.value,disabled:S,readOnly:l,errMsg:E,formCore:s,hostHandlers:x??null,onChange:W,onFocus:z,onBlur:U},I=p?p(A):void 0;return w.jsxs("div",{"data-field-key":e.key,"data-has-error":C?"1":void 0,"data-custom-control":I!==void 0||g?"1":void 0,"data-label-position":j,onClick:()=>a&&a(e.key),style:{display:"flex",flexDirection:D?"column":"row",alignItems:D?"stretch":"flex-start",padding:"var(--fs-spacing-item-padding-y, 16px) var(--fs-spacing-item-padding-x, 16px)",minHeight:"var(--fs-spacing-item-min-height, 56px)",boxSizing:"border-box",gap:D?6:0,borderBottom:n?"none":"1px solid var(--td-component-stroke, var(--fs-color-divider, #E7E7E7))",background:i?"var(--td-brand-color-light, #f2f3ff)":"transparent",cursor:a?"pointer":"default",borderLeft:i?"3px solid var(--td-brand-color, var(--fs-color-primary, #0052D9))":"3px solid transparent",transition:"background 0.15s, border-color 0.15s"},children:[!R&&w.jsxs("div",{style:{width:D?"100%":"var(--fs-label-width, 96px)",flexShrink:0,fontSize:"var(--fs-label-font-size, var(--td-font-size-body-large, 16px))",color:S?"var(--td-text-color-disabled, rgba(0, 0, 0, 0.26))":"var(--fs-label-color, var(--td-text-color-primary, rgba(0, 0, 0, 0.9)))",textAlign:"left",lineHeight:"24px",paddingRight:D?0:12,marginBottom:D?2:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:D?"normal":"nowrap"},children:[P&&w.jsx("span",{style:{color:"var(--fs-label-required-color, var(--td-error-color, #D54941))",marginRight:2},children:"*"}),e.label]}),w.jsxs("div",{style:{flex:1,minWidth:0,width:D?"100%":void 0},children:[I!==void 0?I:g?w.jsx(g,{...A}):w.jsx(y,{item:e,field:t,onChange:W,onFocus:z,onBlur:U,formCore:s}),C&&w.jsx("div",{style:{fontSize:"var(--td-font-size-body-small, 12px)",color:"var(--td-error-color, var(--fs-color-error, #D54941))",marginTop:4,lineHeight:"20px"},children:E}),!C&&(t==null?void 0:t.warningMsg)&&w.jsx("div",{style:{fontSize:"var(--td-font-size-body-small, 12px)",color:"var(--td-warning-color, #ED7B2F)",marginTop:4,lineHeight:"20px"},children:t.warningMsg}),e.help&&!C&&w.jsx("div",{style:{fontSize:"var(--td-font-size-body-small, 12px)",color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))",marginTop:4,lineHeight:"20px"},children:e.help})]})]})}const IF=[{id:"fin-minimal",name:"A · 现代金融极简风",shortName:"A 金融极简",defaultLabelPosition:"top"},{id:"clean-outline",name:"B · 极简线框高效风",shortName:"B 极简线框",defaultLabelPosition:"top"},{id:"bank-card",name:"C · 国民银行卡片风",shortName:"C 国民银行",defaultLabelPosition:"left",showTrustBar:!0}];function jF(e,t){const r=e.trim().match(/^#([0-9a-fA-F]{6})$/);if(!r)return`rgba(15, 82, 186, ${t})`;const n=parseInt(r[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${n&255}, ${t})`}function DF(e="tdesign",t){if(!e||e==="tdesign")return{};const n={...{"fin-minimal":{"--fs-container-bg":"#F5F6FA","--fs-color-card-bg":"#FFFFFF","--fs-group-radius":"16px","--fs-card-border":"1px solid rgba(15, 23, 42, 0.06)","--fs-card-shadow":"0 2px 12px rgba(15, 23, 42, 0.035)","--td-brand-color":"#0F52BA","--fs-color-primary":"#0F52BA","--fs-brand":"#0F52BA","--fs-brand-soft":"#EEF4FF","--fs-color-divider":"rgba(15, 23, 42, 0.07)","--td-component-stroke":"rgba(15, 23, 42, 0.07)","--fs-label-font-size":"13px","--fs-label-color":"#475569","--fs-spacing-item-padding-y":"14px","--fs-spacing-item-min-height":"52px"},"clean-outline":{"--fs-container-bg":"#F8FAFC","--fs-color-card-bg":"#FFFFFF","--fs-group-radius":"12px","--fs-card-border":"1px solid #E2E8F0","--fs-card-shadow":"0 1px 2px rgba(15, 23, 42, 0.04)","--td-brand-color":"#2563EB","--fs-color-primary":"#2563EB","--fs-brand":"#2563EB","--fs-brand-soft":"#EFF6FF","--fs-color-divider":"#F1F5F9","--td-component-stroke":"#F1F5F9","--fs-label-font-size":"13px","--fs-label-color":"#3F3F46","--fs-spacing-item-padding-y":"11px","--fs-spacing-item-min-height":"48px"},"bank-card":{"--fs-container-bg":"#F4F5F7","--fs-color-card-bg":"#FFFFFF","--fs-group-radius":"14px","--fs-card-border":"1px solid rgba(0, 0, 0, 0.04)","--fs-card-shadow":"0 2px 8px rgba(0, 0, 0, 0.03)","--td-brand-color":"#1677FF","--fs-color-primary":"#1677FF","--fs-brand":"#1677FF","--fs-brand-soft":"#E6F4FF","--fs-color-divider":"#F0F1F3","--td-component-stroke":"#F0F1F3","--fs-label-font-size":"15px","--fs-label-color":"#111827","--fs-spacing-item-padding-y":"14px","--fs-spacing-item-min-height":"54px"}}[e]};if(t!=null&&t.brandColor&&t.brandColor.trim()){const i=t.brandColor.trim();n["--td-brand-color"]=i,n["--fs-color-primary"]=i,n["--fs-brand"]=i,n["--fs-brand-soft"]=t.brandSoft||jF(i,.09)}return t!=null&&t.cardRadius&&(n["--fs-group-radius"]=t.cardRadius),(t==null?void 0:t.density)==="compact"?(n["--fs-spacing-item-padding-y"]="9px",n["--fs-spacing-item-min-height"]="44px"):(t==null?void 0:t.density)==="comfortable"&&(n["--fs-spacing-item-padding-y"]="15px"),n}function MF(e="tdesign",t){return typeof(t==null?void 0:t.showTrustBar)=="boolean"?t.showTrustBar:e==="bank-card"}function K0(e){return e===!0?!0:Array.isArray(e)?e.length>0:e&&typeof e=="object"?Object.values(e).some(t=>t!=null&&String(t).trim()!==""):typeof e=="string"?e.trim()!=="":typeof e=="number"?Number.isFinite(e):!1}function $F(e,t){let r=0,n=0,i=0,a=0,o=null;for(const s of e||[])for(const l of s.items||[]){const u=t==null?void 0:t[l.key];if(u&&u.visible===!1)continue;r+=1;const c=K0(u==null?void 0:u.value);c&&(n+=1),(l.required===!0||Array.isArray(l.rules)&&l.rules.some(f=>(f==null?void 0:f.type)==="required"))&&(i+=1,c?a+=1:o||(o=l.key))}return{total:r,filled:n,percent:r>0?Math.round(n/r*100):0,requiredTotal:i,requiredFilled:a,firstMissingRequiredKey:o}}function LF({group:e,fields:t,onFieldChange:r,selectedKey:n,onSelect:i,themeLabelPosition:a,formCore:o,skin:s="tdesign",collapsible:l=!1,showTrustBar:u=!1,readOnly:c=!1,onTelemetry:p,customControls:f,renderControl:h}){const m=e.items||[],b=s!=="tdesign",[x,v]=d.useState(!1),g=m.filter(E=>{const C=t[E.key];return(C==null?void 0:C.visible)!==!1&&E.visible!==!1}),y=g.filter(E=>{var C;return K0((C=t[E.key])==null?void 0:C.value)}).length,k=g.filter(E=>{var C;return!!((C=t[E.key])!=null&&C.errMsg)}).length;return d.useEffect(()=>{k>0&&x&&v(!1)},[k,x]),d.useEffect(()=>{!l&&x&&v(!1)},[l,x]),w.jsxs("div",{"data-group-key":e.key,style:{margin:"0 var(--fs-group-margin-x, 16px) var(--fs-group-margin-y, 12px)"},children:[u&&w.jsx("div",{"data-testid":"web-modern-trust-bar",style:{display:"flex",alignItems:"center",gap:6,padding:"7px 12px",marginBottom:10,borderRadius:10,background:"var(--fs-brand-soft, #E6F4FF)",color:"var(--fs-brand, #1677FF)",fontSize:12,lineHeight:"16px"},children:w.jsx("span",{children:"信息采用银行级加密传输,仅用于本次业务审核"})}),(e.title||l)&&w.jsxs("div",{"data-group-title-layout":a==="top"?"vertical":"horizontal",onClick:l?()=>v(E=>!E):void 0,style:{padding:"12px 0 8px",display:"flex",flexDirection:a==="top"&&!b?"column":"row",alignItems:a==="top"&&!b?"flex-start":"center",justifyContent:"space-between",gap:a==="top"?4:8,fontSize:"var(--fs-group-title-font-size, 14px)",color:"var(--fs-group-title-color, var(--td-text-color-secondary, rgba(0, 0, 0, 0.6)))",lineHeight:"22px",fontWeight:b?600:400,cursor:l?"pointer":"default",userSelect:l?"none":void 0},children:[w.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[w.jsx("span",{children:e.title||"表单分组"}),k>0&&b?w.jsxs("span",{style:{fontSize:11,fontWeight:600,padding:"1px 6px",borderRadius:999,background:"#FEF2F2",color:"#DC2626"},children:[k," 项待完善"]}):null]}),w.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[e.description?w.jsx("span",{style:{fontSize:12,color:"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))"},children:e.description}):null,b&&g.length>0?w.jsxs("span",{style:{fontSize:11,padding:"1px 7px",borderRadius:999,background:y===g.length?"#ECFDF5":"rgba(15, 23, 42, 0.05)",color:y===g.length?"#059669":"#64748B"},children:[y,"/",g.length]}):null,l?w.jsx("span",{"aria-hidden":"true",style:{fontSize:13,color:"#94A3B8",transform:x?"rotate(-90deg)":"rotate(0deg)",transition:"transform 0.16s ease",display:"inline-block"},children:"▾"}):null]})]}),!x&&w.jsx("div",{style:{background:"var(--fs-color-card-bg, var(--td-bg-color-container, #fff))",borderRadius:"var(--fs-group-radius, var(--td-radius-large, 9px))",border:b?"var(--fs-card-border, 1px solid rgba(15, 23, 42, 0.06))":void 0,boxShadow:b?"var(--fs-card-shadow, 0 2px 12px rgba(15, 23, 42, 0.035))":void 0,overflow:"hidden"},children:m.length===0?w.jsx("div",{style:{padding:"20px 16px",textAlign:"center",color:"var(--td-text-color-placeholder, rgba(0, 0, 0, 0.4))",fontSize:12},children:"该分组暂无字段"}):m.map((E,C)=>{const S=t[E.key];return w.jsx(NF,{item:E,field:S,onFieldChange:r,isLast:C===m.length-1,selected:n===E.key,onSelect:i,themeLabelPosition:a,formCore:o,readOnly:c,onTelemetry:p,customControls:f,renderControl:h},E.key||C)})})]})}function zF({schema:e,fields:t={},onFieldChange:r,selectedKey:n,onSelect:i,footer:a,formCore:o,hostHandlers:s=null,theme:l=wr,title:u,labelPosition:c,labelAlign:p,skin:f="tdesign",themeOverride:h=null,formMode:m="flat",showProgressBar:b=!1,readOnly:x=!1,onTelemetry:v,customControls:g,renderControl:y}){var M;const[k,E]=d.useState(0),C=d.useCallback((N,$)=>{E(N),v==null||v({type:"step_change",timestamp:Date.now(),stepIndex:N,stepCount:$})},[v]),S=p||c||l.label.position||"left",P=d.useMemo(()=>S===l.label.position?l:{...l,label:{...l.label,position:S}},[l,S]),T=d.useMemo(()=>Ns(P),[P]),R=d.useMemo(()=>DF(f,h),[f,h]),O=d.useMemo(()=>({...T,...R}),[T,R]),_=d.useMemo(()=>MF(f,h),[f,h]),j=(e==null?void 0:e.groups)||[],D=d.useMemo(()=>b?$F(j,t):null,[b,j,t]);if(!e||!e.groups)return null;const W=m==="step"&&j.length>1,z=Math.min(k,Math.max(0,j.length-1)),U=W?[j[z]]:j,A=(u??e.title??"").trim(),I=j.length===1&&!!A&&String(((M=j[0])==null?void 0:M.title)||"").trim()===A;return w.jsx(D0.Provider,{value:O,children:w.jsx(j0.Provider,{value:s,children:w.jsxs("div",{className:"fs-form-render-root","data-label-align":S,"data-modern-skin":f!=="tdesign"?f:void 0,style:{...O,width:"100%",maxWidth:"var(--fs-container-max-width, 375px)",background:"var(--fs-container-bg, var(--td-bg-color-page, #F3F3F3))",margin:"0 auto",borderRadius:0,overflow:"visible",minHeight:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[A?w.jsxs("div",{"data-testid":"form-title-header","data-title-layout":S==="top"?"vertical":"horizontal",style:{padding:"16px 16px 4px",display:"flex",flexDirection:S==="top"?"column":"row",alignItems:S==="top"?"flex-start":"baseline",justifyContent:"space-between",gap:S==="top"?4:12},children:[w.jsx("div",{style:{fontSize:18,fontWeight:600,lineHeight:"26px",color:"var(--td-text-color-primary, rgba(0, 0, 0, 0.9))"},children:A}),e.description?w.jsx("div",{style:{fontSize:13,lineHeight:"20px",color:"var(--td-text-color-secondary, rgba(0, 0, 0, 0.6))"},children:e.description}):null]}):null,D&&D.total>0?w.jsxs("div",{"data-testid":"web-form-progress",style:{padding:"8px 16px 4px",display:"flex",flexDirection:"column",gap:5},children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:12,color:"#475569"},children:[w.jsxs("span",{children:["填写进度 ",w.jsxs("strong",{children:[D.percent,"%"]}),"(必填 ",D.requiredFilled,"/",D.requiredTotal,")"]}),D.firstMissingRequiredKey?w.jsx("button",{type:"button",onClick:()=>{const N=D.firstMissingRequiredKey;if(W){const $=j.findIndex(V=>(V.items||[]).some(L=>L.key===N));$>=0&&E($)}if(typeof document<"u"){const $=document.querySelector(`[data-field-key="${N}"]`);$&&typeof $.scrollIntoView=="function"&&$.scrollIntoView({behavior:"smooth",block:"center"})}},style:{border:0,borderRadius:999,padding:"2px 8px",fontSize:11,fontWeight:600,background:"var(--fs-brand-soft, #EEF4FF)",color:"var(--fs-brand, #0F52BA)",cursor:"pointer"},children:"定位未填 ›"}):null]}),w.jsx("div",{style:{height:5,borderRadius:999,background:"#E2E8F0",overflow:"hidden"},children:w.jsx("div",{style:{width:`${D.percent}%`,height:"100%",background:"var(--fs-brand, #0F52BA)",transition:"width 0.2s ease"}})})]}):null,W?w.jsx("div",{"data-testid":"web-step-tabs",style:{display:"flex",gap:6,padding:"8px 16px 4px",overflowX:"auto"},children:j.map((N,$)=>w.jsxs("button",{type:"button",onClick:()=>C($,j.length),style:{border:`1px solid ${z===$?"var(--fs-brand, #0F52BA)":"#E2E8F0"}`,background:z===$?"var(--fs-brand, #0F52BA)":"#FFFFFF",color:z===$?"#FFFFFF":"#475569",borderRadius:999,padding:"4px 10px",fontSize:12,fontWeight:z===$?600:400,whiteSpace:"nowrap",cursor:"pointer"},children:[$+1,". ",N.title||`第${$+1}步`]},N.key||$))}):null,w.jsxs("div",{style:{flex:1,paddingTop:4,paddingBottom:12},children:[U.map((N,$)=>w.jsx(LF,{group:I?{...N,title:""}:N,fields:t,onFieldChange:r,selectedKey:n,onSelect:i,themeLabelPosition:S,formCore:o,skin:f,collapsible:m==="collapsible",showTrustBar:_&&$===0,readOnly:x,onTelemetry:v,customControls:g,renderControl:y},N.key||$)),W?w.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 16px 8px"},children:[w.jsx("button",{type:"button",disabled:z<=0,onClick:()=>C(Math.max(0,z-1),j.length),style:{border:"1px solid #CBD5E1",background:"#FFFFFF",color:"#334155",borderRadius:8,padding:"6px 14px",fontSize:12,cursor:z<=0?"not-allowed":"pointer",opacity:z<=0?.45:1},children:"上一步"}),w.jsxs("span",{style:{fontSize:12,color:"#64748B"},children:[z+1," / ",j.length]}),w.jsx("button",{type:"button",disabled:z>=j.length-1,onClick:()=>C(Math.min(j.length-1,z+1),j.length),style:{border:"1px solid var(--fs-brand, #0F52BA)",background:"var(--fs-brand, #0F52BA)",color:"#FFFFFF",borderRadius:8,padding:"6px 14px",fontSize:12,fontWeight:600,cursor:z>=j.length-1?"not-allowed":"pointer",opacity:z>=j.length-1?.45:1},children:"下一步"})]}):null]}),a]})})})}const VF={},rh=e=>{let t;const r=new Set,n=(c,p)=>{const f=typeof c=="function"?c(t):c;if(!Object.is(f,t)){const h=t;t=p??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(m=>m(t,h))}},i=()=>t,l={setState:n,getState:i,getInitialState:()=>u,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{(VF?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},u=t=e(n,i,l);return l},HF=e=>e?rh(e):rh;var q0={exports:{}},G0={},Y0={exports:{}},X0={};/**
135
- * @license React
136
- * use-sync-external-store-shim.production.js
137
- *
138
- * Copyright (c) Meta Platforms, Inc. and affiliates.
139
- *
140
- * This source code is licensed under the MIT license found in the
141
- * LICENSE file in the root directory of this source tree.
142
- */var xi=d;function BF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var UF=typeof Object.is=="function"?Object.is:BF,WF=xi.useState,KF=xi.useEffect,qF=xi.useLayoutEffect,GF=xi.useDebugValue;function YF(e,t){var r=t(),n=WF({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return qF(function(){i.value=r,i.getSnapshot=t,Eu(i)&&a({inst:i})},[e,r,t]),KF(function(){return Eu(i)&&a({inst:i}),e(function(){Eu(i)&&a({inst:i})})},[e]),GF(r),r}function Eu(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!UF(e,r)}catch{return!0}}function XF(e,t){return t()}var QF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?XF:YF;X0.useSyncExternalStore=xi.useSyncExternalStore!==void 0?xi.useSyncExternalStore:QF;Y0.exports=X0;var JF=Y0.exports;/**
143
- * @license React
144
- * use-sync-external-store-shim/with-selector.production.js
145
- *
146
- * Copyright (c) Meta Platforms, Inc. and affiliates.
147
- *
148
- * This source code is licensed under the MIT license found in the
149
- * LICENSE file in the root directory of this source tree.
150
- */var gl=d,ZF=JF;function eO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tO=typeof Object.is=="function"?Object.is:eO,rO=ZF.useSyncExternalStore,nO=gl.useRef,iO=gl.useEffect,aO=gl.useMemo,oO=gl.useDebugValue;G0.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=nO(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=aO(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return p=m}return p=h}if(m=p,tO(c,h))return m;var b=n(h);return i!==void 0&&i(m,b)?(c=h,m):(c=h,p=b)}var u=!1,c,p,f=r===void 0?null:r;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,r,n,i]);var s=rO(e,a[0],a[1]);return iO(function(){o.hasValue=!0,o.value=s},[s]),oO(s),s};q0.exports=G0;var sO=q0.exports;const lO=On(sO),Q0={},{useDebugValue:uO}=we,{useSyncExternalStoreWithSelector:cO}=lO;let nh=!1;const dO=e=>e;function fO(e,t=dO,r){(Q0?"production":void 0)!=="production"&&r&&!nh&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),nh=!0);const n=cO(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return uO(n),n}const ih=e=>{(Q0?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?HF(e):e,r=(n,i)=>fO(t,n,i);return Object.assign(r,t),r},pO=e=>e?ih(e):ih,Mo={version:"2.0",storageKey:"studio_form",groups:[{key:"group_1",title:"基本信息",items:[]}]},vO=pO((e,t)=>({schema:{...Mo,groups:[{...Mo.groups[0],items:[]}]},selectedGroupIndex:null,selectedItemIndex:null,storageKey:"studio_form",formName:"未命名表单",theme:wr,themeKey:"tdesign",dirty:!1,cssVars:Ns(wr),setSchema:r=>e({schema:JSON.parse(JSON.stringify(r)),dirty:!1,selectedGroupIndex:null,selectedItemIndex:null}),setStorageKey:r=>e({storageKey:r,dirty:!0}),setFormName:r=>e({formName:r,dirty:!0}),selectGroup:r=>e({selectedGroupIndex:r,selectedItemIndex:null}),selectItem:r=>e({selectedItemIndex:r}),addItemToGroup:(r,n)=>{const i=t().schema,a=`field_${Date.now()}_${Math.random().toString(36).slice(2,6)}`,o={key:a,type:r,label:r,required:!1};(r==="select"||r==="cascader")&&(o.initOptions=[{code:"1",name:"选项1"},{code:"2",name:"选项2"}]),r==="list"&&(o.subItems=[{key:`${a}_name`,type:"input",label:"姓名",required:!0},{key:`${a}_phone`,type:"phone",label:"手机号",required:!0}],o.listMeta={minItems:1,maxItems:5,addButtonText:"+ 添加"});const s=[...i.groups];s[n]={...s[n],items:[...s[n].items,o]},e({schema:{...i,groups:s},dirty:!0})},removeItem:(r,n)=>{const i=t().schema,a=[...i.groups],o=a[r].items.filter((s,l)=>l!==n);a[r]={...a[r],items:o},e({schema:{...i,groups:a},dirty:!0,selectedItemIndex:null})},moveItem:(r,n,i)=>{const a=t().schema,o=[...a.groups],s=[...o[r].items],[l]=s.splice(n,1);s.splice(i,0,l),o[r]={...o[r],items:s},e({schema:{...a,groups:o},dirty:!0})},updateItem:(r,n,i)=>{const a=t().schema,o=[...a.groups],s=[...o[r].items];s[n]={...s[n],...i},o[r]={...o[r],items:s},e({schema:{...a,groups:o},dirty:!0})},addGroup:()=>{const r=t().schema,i={key:`group_${r.groups.length+1}`,title:"新分组",items:[]};e({schema:{...r,groups:[...r.groups,i]},dirty:!0})},removeGroup:r=>{const n=t().schema,i=n.groups.filter((a,o)=>o!==r);e({schema:{...n,groups:i},dirty:!0,selectedGroupIndex:null})},updateGroup:(r,n)=>{const i=t().schema,a=[...i.groups];a[r]={...a[r],...n},e({schema:{...i,groups:a},dirty:!0})},setTheme:(r,n)=>{e({theme:r,themeKey:n||"custom",cssVars:Ns(r),dirty:!0})},resetSchema:()=>{e({schema:{...Mo,groups:[{...Mo.groups[0],items:[]}]},selectedGroupIndex:null,selectedItemIndex:null,storageKey:"studio_form",formName:"未命名表单",dirty:!1})},markDirty:()=>e({dirty:!0}),markClean:()=>e({dirty:!1})})),Is="zh-CN",J0="form-studio.ui.locale";function hO(e){return e==="zh-CN"||e==="en-US"}function gO(e){return hO(e)?e:Is}function mO(e,t){return t?e.replace(/\{(\w+)\}/g,(r,n)=>t[n]!=null?String(t[n]):`{${n}}`):e}function yO(e,t,r,n){var a,o,s;const i=((a=e[t])==null?void 0:a[r])??((o=e["zh-CN"])==null?void 0:o[r])??((s=e["en-US"])==null?void 0:s[r])??`[missing:${r}]`;return mO(i,n)}function Z0(e,t){return(r,n)=>yO(e,t,r,n)}function bO(e){try{const t=e==null?void 0:e.getItem(J0);return gO(t)}catch{return Is}}function wO(e,t){if(t)try{t.setItem(J0,e)}catch{}}const xO={"app.brand":"FormStudio","app.brandTag":"让表单更智能","app.exitEdit":"退出编辑","app.formNamePlaceholder":"表单名称","app.open":"打开","app.import":"导入","app.save":"保存","app.testPublish":"测试发布","app.dirty":"未保存","app.advancedManual":"高级手动模式","app.theme.default":"默认蓝","app.theme.bankRed":"银行红","app.theme.govDark":"政务深蓝","app.locale":"界面语言","app.locale.zh":"中文","app.locale.en":"English","app.locale.aria":"切换界面语言","app.mode.author":"作者","app.mode.review":"审阅","app.mode.reviewSoon":"有待确认提案时可进入审阅查看影响","app.mode.aria":"工作模式","app.applied":"当前版本 {version}","app.appliedEmpty":"尚未生成表单","app.moreActions":"更多","app.contextDrawer":"历史 / 检查 / 高级","app.drawer.history":"历史与发布","app.drawer.checks":"检查与诊断","app.drawer.advanced":"Schema 只读","app.drawer.advancedLegacy":"只读技术视图。结构、属性与目录写入请在工作台完成;这不是另一种编辑模式。","app.drawer.schemaReadonly":"查看 Schema(只读)","app.drawer.close":"关闭抽屉","review.open":"进入审阅","review.openPending":"待确认 · 去审阅","review.appliedShort":"已应用 {version}","review.noPending":"暂无待确认提案","review.diffTitle":"变更说明","review.diffEmpty":"没有可展示的字段变更","review.observatory":"真实表单预览","review.previewOn":"提案预览 · 未应用","review.previewOff":"查看提案预览","review.watermark":"提案预览 · 未应用","review.applyAll":"确认并应用","review.backAuthor":"返回修改","review.hint":"审阅复用同一提案生命周期;Apply 前 Applied 不变。","review.enterHint":"当前应用版本未变 — 可进入审阅查看影响","review.modeLabel":"审阅","review.thisProposal":"本次提案","review.highRiskConfirm":"高风险 · 需确认","review.highRiskBanner":"本提案影响多项显隐或提交相关逻辑,请确认业务范围后再应用。","review.assumptions":"主要假设","review.changeExplain":"变更说明","review.systemChecks":"系统检查","review.count.modifications":"处修改","review.count.fields":"个受影响字段","review.count.relations":"条联动","review.check.pass":"通过","review.check.unchanged":"未修改","review.check.needsConfirm":"需确认","review.check.fail":"失败","review.compareSideBySide":"并排对照","review.rejectProposal":"拒绝提案","review.backToEdit":"返回修改","review.confirmApply":"确认并应用","review.retained":"保留","test.open":"测试场景","test.modeLabel":"测试","test.scenarios":"确定性场景","test.blurb":"系统用真实 FormCore 在沙箱中执行场景;不会改动 Applied,也不会访问外部网络。","test.run":"运行","test.runAll":"全部运行","test.pass":"通过","test.fail":"失败","test.runPass":"场景通过","test.runFail":"场景未通过","test.runError":"场景执行失败","test.runAllPass":"全部场景通过","test.runAllFail":"{count} 个场景未通过","test.needApplied":"请先打开或应用一个表单","test.fixWithAi":"用 AI 修复","test.fixPrompt":"测试场景「{name}」失败:{detail}。请生成修复提案,不要直接改 Applied。","test.fixProposed":"已回到创作并生成修复提案(若就绪)","test.backToAuthor":"返回创作","test.sandboxTitle":"沙箱约束","test.sandbox.noNetwork":"所有接口调用均为进程内 stub","test.sandbox.noSubmit":"禁止真实提交 / 短信 / 搜索写操作","test.sandbox.noApplied":"运行结果不会改写 Applied Schema","test.sandbox.deterministic":"通过/失败由断言判定,不是模型自评","start.tagline":"低代码搭表 — 目录预设、属性编辑、真实预览试填;AI 按需协助","start.aiTitle":"AI Workspace","start.aiDesc":"自然语言 → 真实表单画布","start.importTitle":"从 DX 导入","start.importDesc":"导入后用 AI 诊断与改造","start.manualTitle":"高级手动模式","start.manualDesc":"组件库 / 属性面板兜底","start.openExisting":"打开已有表单","start.aiPrompt":"描述你的表单需求(例如:做一张放款前置表单,包含姓名、身份证、婚姻状况、月收入)","entry.heroTitle":"从哪里开始?","entry.heroSubtitle":"用结构与属性搭表单;需要时让 AI 针对当前选中对象给出建议。","entry.newTitle":"新建表单","entry.newDesc":"先描述目标,生成可审阅初稿;也可以直接手动搭建","entry.goalLabel":"业务目标","entry.goalPlaceholder":"例如:创建一个客户信息采集表,需要根据职业联动企业信息,并校验手机号与身份证……","entry.goalRequired":"请先描述目标,或上传一份可解析的需求文档","entry.uploadHint":"支持 .md / .docx / .pdf","entry.fileParsing":"解析中…","entry.fileReady":"已解析","entry.fileParseFailed":"文档解析失败,请重试或改用其他格式","entry.fileTooLarge":"文件超过 {mb}MB 上限","entry.fileStillParsing":"文档仍在解析,请稍候","entry.fileMustResolve":"请先处理文档错误(删除或重试)后再开始创建","entry.fileDelete":"删除文档","entry.fileRetry":"重试解析","entry.startCreate":"开始创建","entry.creating":"正在创建…","entry.openTitle":"打开已有表单","entry.openDesc":"载入当前版本,在工作台继续编辑;AI 可随时协助","entry.pageIdLabel":"页面 ID","entry.pageIdPlaceholder":"请输入 page_id","entry.pageIdHint":"本地演示可用 demo-complex-form","entry.fillDemo":"填入演示 page_id","entry.pageIdRequired":"请输入 page_id","entry.openForm":"打开表单","entry.opening":"正在打开…","entry.footerNote":"所有修改都会先生成提案,经你确认后才会应用","entry.userLabel":"当前用户","entry.secondaryImport":"从 DX 导入","entry.secondaryList":"本地表单列表","entry.secondaryManual":"高级手动模式","shell.h5Phone":"手机预览","shell.h5Window":"网页预览","shell.miniprogram":"小程序预览","shell.h5PhoneDisclaimer":"仅为视觉外框,不代表已验证手机 SDK 或真机实验室。","shell.h5WindowDisclaimer":"仅为视觉外框,不代表已验证桌面 SDK Host。","shell.miniprogramDisclaimer":"仅为外观壳。目标端工具状态在收到回执前保持 unverified。","shell.fallback":"展示模式 · {shell}","renderPkg.web":"Web","renderPkg.vueH5":"Vue H5","renderPkg.taroH5":"Taro H5","renderPkg.miniapp":"小程序","renderPkg.webDisclaimer":"主预览使用 @agentprismform/render-web(进程内)。","renderPkg.vueH5Disclaimer":"通过 Preview Host 挂载 @agentprismform/render-vue;未挂载成功时状态为 runtime_unavailable。","renderPkg.taroH5Disclaimer":"通过 Preview Host 挂载 @agentprismform/render-taro;缺少 Taro 运行时则为 runtime_unavailable。","renderPkg.miniappDisclaimer":"浏览器内仅展示能力报告与目标工具指引;不挂载 Web 控件冒充小程序,也不代表真机已验证。","renderPkg.miniappChromeTitle":"小程序包预览(待目标工具验证)","renderPkg.chromeOnlyReport":"当前平台无法在浏览器内真实运行。以下为 Schema 能力摘要,请在目标工具中验证。","renderPkg.trialBlockedOverlay":"试填未开放:当前 Host 与 Studio 同源或未满足隔离策略。SDK 挂载仅供外观确认;请配置独立 Host 来源后再试填。","renderPkg.hostLoading":"正在连接 {pkg} Preview Host…","renderPkg.hostMounted":"{pkg} 已挂载","renderPkg.hostUnavailable":"{pkg} runtime_unavailable","renderPkg.hostError":"{pkg} 挂载失败","renderPkg.switcherAria":"预览 Render 包","layout.densityAria":"表单疏密","layout.compact":"紧凑","layout.comfortable":"宽松","layout.labelAria":"标题布局","layout.labelLeft":"同行","layout.labelTop":"单独一行","status.engine":"引擎","status.layer":"层级","status.revision":"修订","status.status":"状态","preview.canvasTitle":"实时表单画布","preview.canvasMeta":"FormCore + FormRender","preview.validate":"运行必填校验","preview.validateFailed":"必填/规则校验未通过 — 请查看表单上的字段错误。","preview.validatePassed":"可见字段校验通过。","preview.empty":"生成或载入草稿后,在此查看真实表单。Schema JSON 不是主预览。","preview.loading":"正在重建 FormCore…","preview.runtimeUnavailable":"runtime_unavailable","preview.coreUnavailable":"FormCore 语义预览不可用:{error}","preview.discardedTrial":"已丢弃不兼容试填值:{keys}","preview.tabApplied":"当前表单","preview.tabProposal":"修改预览","preview.versionSwitchAria":"预览版本","preview.proposalUnapplied":"修改预览 · 尚未应用","preview.appliedEmpty":"还没有当前版本。确认提案后,这里会成为 Applied v1。","preview.beforeApplyNote":"应用前不会修改当前版本","preview.noProposal":"当前没有待确认提案","preview.canvasLabel":"表单预览","preview.defaultGroupTitle":"表单内容","preview.submitBlocked":"本机预览和试填不会提交或写入外部系统","preview.dataSourceBlockedTitle":"暂不可试填:数据源尚未配置","preview.dataSourceBlockedHint":"字段可以继续编辑,但真实试填需要先完成下面的数据源配置。","ai.title":"用自然语言,创建你想要的表单","ai.blurb":"左侧创作,右侧试填真实表单。增量修改先展示 Diff 与风险;应用后才写入草稿。试填值不会发送给模型。","ai.taskSummary":"当前任务","ai.taskEmpty":"描述业务目标后,这里会显示 AI 对当前表单的理解。","ai.taskGoal":"目标:{goal}","ai.undo":"撤销","ai.advanced":"查看 Schema(只读)","ai.assistTitle":"AI 协助","ai.assistHint":"不是单独模式。选中整表、分组或字段后,在这里描述想做的修改。","ai.assistPlaceholder":"例如:把手机号改为非必填,并补上校验…","ai.assistSend":"发送建议请求","ai.contextForm":"上下文:整张表单","ai.contextGroup":"上下文:分组「{title}」","ai.contextField":"上下文:字段「{label}」({key})","ai.generate":"生成","ai.propose":"让 AI 处理","ai.composerAria":"向 AI 描述需求","ai.regenerate":"重新生成","ai.continueDescribe":"继续描述","ai.placeholderGenerate":"描述业务目标,例如:个人贷款进件,采集姓名手机号…","ai.placeholderEdit":"继续描述你的需求…","ai.assumptions":"假设","ai.questions":"需要补充的问题","ai.pending":"提案待确认","ai.pendingBadge":"待确认","ai.highRisk":"高风险","ai.impact":"影响摘要","ai.chipAdd":"新增","ai.suggest.intake":"做一份个人贷款进件表,采集姓名、手机号、身份证","ai.suggest.visibility":"增加婚姻状况;已婚时显示配偶姓名","ai.suggest.required":"把手机号设为必填,并校验 11 位","ai.timeline.emptyHint":"我可以帮你理解需求、生成字段与联动,并先出提案供你确认。试试下面的说法:","ai.schemaDigest":"当前表单","ai.grill.step":"确认 {current}/{total}","ai.grill.placeholder":"直接回答这个问题…","ai.grill.submit":"继续","ai.grill.remaining":"回答后还有 {count} 个问题","ai.chipRemove":"删除","ai.chipUpdate":"修改","ai.chipOther":"变更","ai.chipRelation":"联动","ai.fieldDiff":"字段级 Diff","ai.noDiff":"无 Diff 条目","ai.systemRisks":"系统风险(非模型自报)","ai.none":"无","ai.modelRisks":"模型 riskFlags","ai.details":"查看影响与检查详情","ai.apply":"应用提案","ai.applyConfirmHighRisk":"确认高风险并应用","ai.reject":"放弃提案","canvas.outlineTitle":"结构大纲","canvas.outlineEmpty":"尚无表单结构","canvas.outlineCollapse":"收起大纲","canvas.outlineExpand":"展开大纲","canvas.understandTitle":"我理解这张表","canvas.understandEmpty":"打开或生成表单后,这里显示结构画像","canvas.factsTitle":"Schema 可证实事实","canvas.factHint":"以下为 Schema 可证实事实;推测会单独标注","canvas.factGroups":"分组","canvas.factFields":"字段","canvas.factRequired":"必填","canvas.factRelations":"联动","canvas.confirmedTitle":"用户已确认","canvas.confirmedEmpty":"尚无用户确认的假设","canvas.speculationTitle":"AI 推测","canvas.speculationEmpty":"暂无模型推测","canvas.speculationTag":"推测","canvas.changeTitle":"这次要改什么","canvas.noPending":"还没有待确认提案","canvas.clarifyTitle":"还需你确认","canvas.clarifyEmpty":"暂无待澄清问题","canvas.checksTitle":"系统检查","canvas.noHighRisk":"未发现高风险项","canvas.checksIdle":"生成提案后显示校验与风险","canvas.constraintFailed":"显式约束检查未通过","canvas.notApplicable":"提案不可应用 — 请继续修改或放弃","canvas.applyDisabled":"不可应用","canvas.continueEdit":"继续修改","canvas.legacyChat":"对话记录","canvas.openAiDrawer":"属性与 AI 协助","canvas.closeAiDrawer":"收起侧栏","canvas.mobileTabForm":"表单","canvas.mobileTabOutline":"结构","canvas.mobileTabAi":"AI","canvas.mobileTabPreview":"真实效果","canvas.fieldAnchor":"定位字段","canvas.clearAnchor":"清除定位","canvas.pendingUnapplied":"修改待确认","canvas.intentPlaceholder":"向 AI 描述修改;会带上当前选中对象","canvas.send":"发送","canvas.aiInputPlaceholder":"告诉 AI 你想怎么修改…","canvas.scopeForm":"整张表单","canvas.scopeField":"正在修改「{label}」","canvas.scopeGroup":"正在修改「{title}」","canvas.scopeReset":"点击切换为修改整张表单","canvas.proposalReadySimple":"修改建议已准备好,当前表单尚未改变","canvas.applyProposal":"应用这次修改","canvas.discardProposal":"放弃","canvas.details":"查看修改依据与检查结果","catalog.tabPalette":"组件库","catalog.tabStructure":"结构","catalog.tabAdd":"业务模块","catalog.paletteSearch":"搜索组件","catalog.paletteHint":"点击添加,也可以拖到中央画布","catalog.addingFeedback":"正在添加…","catalog.addedFeedback":"已添加","catalog.addedItem":"已添加「{label}」","catalog.notAvailable":"暂未开放","catalog.searchPlaceholder":"搜索基础控件、字段或模块","catalog.kind.all":"全部","catalog.kind.control":"基础控件","catalog.kind.field":"业务字段","catalog.kind.module":"业务模块","catalog.kind.template":"模板","catalog.empty":"没有匹配的目录条目","catalog.insert":"加入","catalog.inserted":"已加入本地草稿","catalog.insertFailed":"未能加入目录条目","catalog.needsConfig":"待配置,不会调用生产接口","catalog.inspectorTitle":"属性","catalog.inspectorEmpty":"在结构里选中一个字段后,这里显示属性。","catalog.fieldLabel":"标签","catalog.required":"必填","catalog.removeField":"删除字段","catalog.removeConfirm":"删除「{label}」?可撤销前请确认。","catalog.patchFailed":"未能写入草稿","catalog.askAi":"让 AI 建议修改","catalog.quickCheckPhone":"套用手机号校验","catalog.quickCheckEmail":"套用邮箱校验","catalog.aiPrompt":"请基于当前草稿,针对「{label}」给出修改建议。先预览,不要直接改草稿。","catalog.modeEdit":"编辑","catalog.modeTrial":"试填","catalog.modeAria":"编辑或试填","catalog.staleSuggestion":"草稿已变更,请基于当前草稿重算建议后再采纳。","catalog.adminTitle":"目录管理","catalog.adminNote":"本地不能把条目升为 available。停用后不可再新建;已有草稿的来源版本保持不变。","catalog.availableSet":"可新建","catalog.localDrafts":"本地草稿条目","catalog.retire":"停用","catalog.retired":"已停用,不能再新建","catalog.addLocalDraft":"新建本地草稿条目","catalog.localDraftSaved":"已保存为本地草稿,未进入可新建集","catalog.review":"审阅后加入","catalog.reviewTitle":"加入前审阅","catalog.confirmInsert":"确认加入草稿","catalog.cancelInsert":"取消","catalog.objectCount":"将生成约 {count} 个对象","catalog.suggested":"建议(非必填)","catalog.formRoot":"整张表单","catalog.inspectorForm":"属性 · 表单","catalog.inspectorGroup":"属性 · 分组","catalog.formName":"表单名称","catalog.formSummary":"{groups} 个分组 · {fields} 个字段","catalog.notConfigured":"未配置","catalog.checkForm":"检查整张表","catalog.groupTitle":"分组标题","catalog.groupDescription":"分组描述","catalog.placeholder":"占位提示","catalog.help":"帮助说明","catalog.rules":"校验","catalog.businessProperties":"业务属性","catalog.businessPropertiesHint":"这里查看会影响运行时的校验和联动","catalog.businessPropertiesDetails":"查看和编辑业务属性","catalog.rulesSummary":"{count} 条校验","catalog.rulesNotConfigured":"未配置校验","catalog.relationsSummary":"{count} 条联动","catalog.relationsNotConfigured":"未配置联动","catalog.ruleConfigured":"已配置校验","catalog.rulePhone":"手机号校验","catalog.ruleEmail":"邮箱校验","catalog.relations":"本地联动","catalog.relTarget":"目标字段","catalog.addRelation":"添加联动","catalog.clearInboundConfirm":"该字段被联动引用。确认清理引用并删除?","catalog.originPreset":"来源:目录预设 {id}","catalog.originLocal":"来源:本地自定义","catalog.compat":"预览设置","catalog.hideAssistant":"收起助手","catalog.showAssistant":"打开助手","catalog.draftRevision":"本地草稿 {rev}","catalog.aiCheckForm":"请检查整张表的缺失与风险,先预览建议。","catalog.aiPromptGroup":"请基于分组「{title}」给出修改建议。先预览。","catalog.aiCheckPhone":"请检查字段 {key} 是否具备手机号校验;可命中目录则走确定性建议。","catalog.retiredLocal":"已本地停用(仅本机),不能再新建;已有来源不变","catalog.localOnlyRetire":"停用仅作用于本机目录覆盖,不是全局下架。","catalog.entryDetail":"条目详情与预览","entry.startBlank":"空白表单","entry.startPreset":"从业务预设开始","entry.startCreateAi":"用描述生成初稿","canvas.working":"正在处理你的修改…","canvas.proposalReady":"提案已生成,请查看预览后决定是否应用","canvas.needClarify":"还需你确认一些问题后才能继续","ai.pendingHint":"应用前不会修改当前版本。可在右侧切换「提案预览」查看真实 nextSchema。","ai.appliedUnchanged":"当前应用版本未变","ai.highRiskTitle":"高风险变更确认","ai.highRiskBody":"系统判定存在高风险操作,请确认后应用:","ai.msgGenerated":"已生成草稿 — 可继续自然语言修改","ai.msgProposeReady":"已生成变更提案 — 未应用前 Applied 保持不变","ai.msgApplied":"变更已应用 — 实时表单画布已更新","ai.msgRejected":"已放弃提案,Applied 未变","ai.msgNothingToUndo":"没有可撤销的变更","ai.msgUndone":"已撤销到上一已应用草稿","ai.errGenerate":"生成失败","ai.errEdit":"编辑失败","ai.changesetFallback":"AI ChangeSet","ai.retry":"重试","ai.timeline.goal":"目标","ai.timeline.clarification":"需要确认","ai.timeline.assistant":"AI 回复","ai.timeline.proposal":"提案","ai.timeline.result":"系统结果","ai.timeline.error":"出错了","ai.timeline.loading":"处理中","ai.timeline.loadingHint":"正在理解目标并组织字段 — 已应用表单与试填值保持不变。","ai.timeline.errorIntact":"当前已应用表单与试填值未被清除。","ai.timeline.continueAssumptions":"按当前假设继续","ai.timeline.resultApplied":"提案已应用","ai.timeline.resultRejected":"提案已拒绝","ai.timeline.resultUndone":"已撤销到上一版本","ai.timeline.resultGenerated":"草稿已生成","ai.timeline.assumptionsLabel":"当前假设","ai.timeline.empty":"发送目标或修改描述后,任务记录会出现在这里。","diag.collapse":"诊断与原始 Schema(次要)","diag.schemaCaption":"已应用草稿 Schema(佐证材料 — 非目标端验证)","diag.empty":"在已应用草稿绑定 schema revision 之前,诊断面板保持为空。","diag.blurb":"次要诊断 — 能力报告、编排器与协议证据。上方即时 FormRender 才是主预览。状态保持真实(ready / runtime_unavailable / unverified)。","diag.runtime":"PreviewRuntime","diag.trialBoundary":"试填值默认不跨预览边界","diag.probe":"探测 {platform}","diag.noSessions":"尚无平台会话(Web 即时预览应自动启动)","diag.capabilityIssues":"能力问题:","diag.targetPayload":"目标端 payload → {hint}/preview/studio-preview-payload.json(在工具回执前 verified 仍为 false)","diag.layer.instant":"① 即时语义","diag.layer.sdk":"② 实际 SDK Host","diag.layer.target":"③ 目标端工具验证","msg.listLoadFailed":"表单列表加载失败:{detail}","msg.saveOk":"保存成功 {version}","msg.saveFailed":"保存失败:{detail}","msg.publishNeedSave":"请先保存表单","msg.publishDirty":"存在未保存更改,请先保存","msg.publishHint":"请在「版本历史与受控测试发布」中完成预检 → 确认 → 测试发布(不会自动发布)","msg.loadOk":"已载入","msg.loadFailed":"载入失败:{detail}","msg.importNeedId":"请填写模板 ID 或资源包 ID","msg.importOk":"导入成功({count} 个字段)","msg.importFailed":"导入失败:{detail}","msg.aiStartOk":"AI 生成成功,已载入编辑器","msg.aiStartFailed":"AI 生成失败:{detail}","msg.restored":"已恢复为新版本并刷新编辑器","msg.conflictTitle":"版本冲突","msg.conflictReload":"重新载入服务端版本","msg.close":"关闭","msg.listTitle":"打开已有表单","msg.listEmpty":"暂无已保存的表单,请先新建或导入","msg.published":"已发布","msg.draft":"草稿","msg.updatedAt":"更新于 {date}","msg.importTitle":"从 DX 导入表单","msg.importOkBtn":"导入","msg.env":"环境","msg.templateId":"模板 ID 或 资源包 ID","msg.formNameOptional":"表单名称(可选)","msg.formNameHint":"不填则用 ID 命名","msg.importHint":"提示:填模板 ID 直接导入该模板;填资源包 ID 则导入资源包下第一个模板。","msg.historyTitle":"版本历史与受控测试发布","msg.historyDirty":"本地有未保存更改 — 预检/发布前请先保存","msg.historySaved":"已保存 {version} / {revision}","msg.correlation":"关联 {id}","msg.unnamed":"未命名表单","history.title":"版本历史与受控测试发布","history.blurb":"工作台为编辑主路径。当前保存版本","history.dirtyTag":"未保存更改","history.syncedTag":"已同步","history.emptyNeedSave":"保存后可查看版本历史与受控发布","history.step.history":"历史","history.step.diff":"对比","history.step.restore":"恢复预览","history.step.preflight":"预检","history.step.confirm":"确认","history.step.publish":"发布","history.step.done":"完成","history.refresh":"刷新历史","history.runPreflight":"运行预检","history.issueToken":"签发确认令牌","history.confirmPublish":"确认并测试发布","history.viewStatus":"查看状态","history.retryPreflight":"重试预检","history.rollbackPreview":"回滚预览(上一版)","history.unverifiedTargets":"存在未验证目标平台(不会静默降级)","history.gateFailDetail":"预检失败详情","history.auditId":"审计关联 ID:","history.timeline":"版本时间线","history.noRevisions":"暂无版本","history.diffPrev":"对比上一版","history.previewRestore":"预览恢复","history.current":"当前","history.noSummary":"无摘要","history.schemaDiff":"Schema Diff(无字段预览值)","history.attemptStatus":"预检 / 发布状态","history.attemptLine":"尝试 {id} · 状态 {state} · 次数 {attempts}/{max}","history.capability":"平台能力:","history.audit":"审计(脱敏)","history.restoreModalTitle":"恢复预览(不会改写历史)","history.restoreOk":"确认恢复为新版本","history.restoreInfo":"预览优先:确认后才会创建新 revision,历史快照保持不可变","history.restoreTarget":"目标版本 {version}({id})","history.restoreMeta":"来源 {source} · 摘要 {summary}","history.restoreGroups":"Schema groups: {count}(不展示预览试填值)","history.errLoad":"加载版本失败","history.errDiff":"对比失败","history.okRestored":"已恢复为新版本 {version}(历史未改写)","history.errRestore":"恢复失败","history.warnNeedSave":"请先保存表单","history.warnDirty":"存在未保存更改,请先保存再预检","history.warnGate":"预检未通过,不能进入确认发布","history.infoGateOk":"预检通过。请单独确认后再测试发布(不会自动发布)","history.errPreflight":"预检失败","history.warnNeedGate":"需要先通过预检","history.okToken":"已签发确认令牌。请显式点击「确认并测试发布」——不会自动发布","history.errToken":"确认签发失败","history.warnNoToken":"缺少显式确认令牌,已阻止发布","history.okPublish":"测试发布已完成(非乐观成功)","history.errPublish":"测试发布失败","history.infoRetry":"已重试预检;仍需重新确认后才能发布","history.errRetry":"重试失败","history.infoStatus":"状态:{state}","history.errStatus":"状态查询失败"},SO={"app.brand":"FormStudio","app.brandTag":"Smarter forms","app.exitEdit":"Exit editing","app.formNamePlaceholder":"Form name","app.open":"Open","app.import":"Import","app.save":"Save","app.testPublish":"Test publish","app.dirty":"dirty","app.advancedManual":"Advanced manual","app.theme.default":"Default blue","app.theme.bankRed":"Bank red","app.theme.govDark":"Gov dark","app.locale":"UI language","app.locale.zh":"中文","app.locale.en":"English","app.locale.aria":"Switch UI language","app.mode.author":"Author","app.mode.review":"Review","app.mode.reviewSoon":"Open review when a proposal is pending to inspect impact","app.mode.aria":"Workspace mode","app.applied":"Current version {version}","app.appliedEmpty":"No form generated yet","app.moreActions":"More","app.contextDrawer":"History / checks / advanced","app.drawer.history":"History & publish","app.drawer.checks":"Checks & diagnostics","app.drawer.advanced":"Schema (read-only)","app.drawer.advancedLegacy":"Read-only technical view. Structure, properties, and catalog writes stay in the workbench — this is not a separate edit mode.","app.drawer.schemaReadonly":"View Schema (read-only)","app.drawer.close":"Close drawer","review.open":"Open review","review.openPending":"Pending · Review","review.appliedShort":"Applied {version}","review.noPending":"No pending proposal","review.diffTitle":"Change explanation","review.diffEmpty":"No field changes to show","review.observatory":"Live form preview","review.previewOn":"Proposal preview · not applied","review.previewOff":"Show proposal preview","review.watermark":"Proposal preview · not applied","review.applyAll":"Confirm and apply","review.backAuthor":"Back to edit","review.hint":"Review reuses the same proposal lifecycle; Applied stays unchanged until Apply.","review.enterHint":"Applied version unchanged — open review to inspect impact","review.modeLabel":"Review","review.thisProposal":"This proposal","review.highRiskConfirm":"High risk · confirm","review.highRiskBanner":"This proposal affects multiple visibility or submit-related rules. Confirm the business scope before applying.","review.assumptions":"Assumptions","review.changeExplain":"Change explanation","review.systemChecks":"System checks","review.count.modifications":"modifications","review.count.fields":"fields impacted","review.count.relations":"linkages","review.check.pass":"Passed","review.check.unchanged":"Unchanged","review.check.needsConfirm":"Needs confirm","review.check.fail":"Failed","review.compareSideBySide":"Side-by-side","review.rejectProposal":"Reject proposal","review.backToEdit":"Back to edit","review.confirmApply":"Confirm and apply","review.retained":"Retained","test.open":"Test scenarios","test.modeLabel":"Test","test.scenarios":"Deterministic scenarios","test.blurb":"The system runs scenarios with a real FormCore in a sandbox. Applied stays unchanged and no external network is used.","test.run":"Run","test.runAll":"Run all","test.pass":"Pass","test.fail":"Fail","test.runPass":"Scenario passed","test.runFail":"Scenario failed","test.runError":"Scenario execution failed","test.runAllPass":"All scenarios passed","test.runAllFail":"{count} scenario(s) failed","test.needApplied":"Open or apply a form first","test.fixWithAi":"Fix with AI","test.fixPrompt":'Test scenario "{name}" failed: {detail}. Please create a fix proposal without changing Applied directly.',"test.fixProposed":"Returned to authoring with a fix proposal when ready","test.backToAuthor":"Back to author","test.sandboxTitle":"Sandbox rules","test.sandbox.noNetwork":"All API calls are in-process stubs","test.sandbox.noSubmit":"Real submit / SMS / search writes are blocked","test.sandbox.noApplied":"Runs never rewrite Applied Schema","test.sandbox.deterministic":"Pass/fail comes from assertions, not model self-scoring","start.tagline":"Low-code authoring — catalog presets, property editing, real preview trial; AI assists on demand","start.aiTitle":"AI Workspace","start.aiDesc":"Natural language → real form canvas","start.importTitle":"Import from DX","start.importDesc":"Then diagnose and reshape with AI","start.manualTitle":"Schema view","start.manualDesc":"Read-only technical escape hatch","start.openExisting":"Open existing form","start.aiPrompt":"Describe your form needs (e.g. a pre-disbursement form with name, ID, marital status, income)","entry.heroTitle":"Where should we start?","entry.heroSubtitle":"Build with structure and properties; ask AI for suggestions on the current selection when needed.","entry.newTitle":"New form","entry.newDesc":"Describe the goal for a reviewable draft, or start editing manually","entry.goalLabel":"Business goal","entry.goalPlaceholder":"e.g. Create a customer intake form that links company fields by occupation and validates phone + ID…","entry.goalRequired":"Describe a goal or upload a parseable requirement document first","entry.uploadHint":"Supports .md / .docx / .pdf","entry.fileParsing":"Parsing…","entry.fileReady":"Parsed","entry.fileParseFailed":"Could not parse the document — retry or try another format","entry.fileTooLarge":"File exceeds the {mb}MB limit","entry.fileStillParsing":"Document is still parsing — please wait","entry.fileMustResolve":"Resolve the document error (delete or retry) before creating","entry.fileDelete":"Remove document","entry.fileRetry":"Retry parse","entry.startCreate":"Start creating","entry.creating":"Creating…","entry.openTitle":"Open existing form","entry.openDesc":"Load the current version and keep editing in the workbench; AI can assist anytime","entry.pageIdLabel":"Page ID","entry.pageIdPlaceholder":"Enter page_id","entry.pageIdHint":"Local demo: demo-complex-form","entry.fillDemo":"Fill demo page_id","entry.pageIdRequired":"Please enter a page_id","entry.openForm":"Open form","entry.opening":"Opening…","entry.footerNote":"Every change becomes a proposal first, and applies only after you confirm","entry.userLabel":"Current user","entry.secondaryImport":"Import from DX","entry.secondaryList":"Local form list","entry.secondaryManual":"Advanced manual","shell.h5Phone":"Phone preview","shell.h5Window":"Web preview","shell.miniprogram":"Mini program preview","shell.h5PhoneDisclaimer":"Visual frame only. Does not verify a phone SDK or device lab.","shell.h5WindowDisclaimer":"Visual frame only. Does not verify a desktop SDK host.","shell.miniprogramDisclaimer":"Appearance shell only. Target-tool state stays unverified until a receipt.","shell.fallback":"Presentation mode · {shell}","renderPkg.web":"Web","renderPkg.vueH5":"Vue H5","renderPkg.taroH5":"Taro H5","renderPkg.miniapp":"Mini Program","renderPkg.webDisclaimer":"Primary preview uses @agentprismform/render-web (in-process).","renderPkg.vueH5Disclaimer":"Mounts @agentprismform/render-vue via Preview Host; runtime_unavailable when mount fails.","renderPkg.taroH5Disclaimer":"Mounts @agentprismform/render-taro via Preview Host; runtime_unavailable without Taro runtime.","renderPkg.miniappDisclaimer":"Browser shows a capability report and target-tool guidance only — not a Web control stand-in, and not device-verified.","renderPkg.miniappChromeTitle":"Mini program package preview (awaiting target tool)","renderPkg.chromeOnlyReport":"This platform cannot run for real in the browser. Schema capability summary below — verify in the target tool.","renderPkg.trialBlockedOverlay":"Trial fill blocked: Host shares Studio origin or isolation policy is unmet. Mount is visual only; configure a distinct Host origin for interactive trial.","renderPkg.hostLoading":"Connecting {pkg} Preview Host…","renderPkg.hostMounted":"{pkg} mounted","renderPkg.hostUnavailable":"{pkg} runtime_unavailable","renderPkg.hostError":"{pkg} mount failed","renderPkg.switcherAria":"Preview render package","layout.densityAria":"Form density","layout.compact":"Compact","layout.comfortable":"Comfortable","layout.labelAria":"Label layout","layout.labelLeft":"Same row","layout.labelTop":"Own row","status.engine":"engine","status.layer":"layer","status.revision":"revision","status.status":"status","preview.canvasTitle":"Live form canvas","preview.canvasMeta":"FormCore + FormRender","preview.validate":"Run required validation","preview.validateFailed":"Required / rule validation failed — see field errors on the form.","preview.validatePassed":"Validation passed for visible fields.","preview.empty":"Generate or load a draft to see the real form here. Schema JSON is not the primary preview.","preview.loading":"Rebuilding FormCore…","preview.runtimeUnavailable":"runtime_unavailable","preview.coreUnavailable":"FormCore semantic preview unavailable: {error}","preview.discardedTrial":"Discarded incompatible trial values: {keys}","preview.tabApplied":"Current form","preview.tabProposal":"Change preview","preview.versionSwitchAria":"Preview version","preview.proposalUnapplied":"Change preview · not applied","preview.appliedEmpty":"No Applied version yet. After you apply a proposal, it becomes Applied v1.","preview.beforeApplyNote":"The current version is not modified until you apply","preview.noProposal":"There is no pending proposal","preview.canvasLabel":"Form preview","preview.defaultGroupTitle":"Form fields","preview.submitBlocked":"Local preview and trial do not submit or write to external systems","preview.dataSourceBlockedTitle":"Trial blocked: data source is not configured","preview.dataSourceBlockedHint":"You can keep editing the fields, but real trial requires the data source below.","ai.title":"Create the form you want in natural language","ai.blurb":"Author on the left, exercise the real form on the right. Incremental edits show Diff and risk first; Apply writes the draft. Trial values are never sent to the model.","ai.taskSummary":"Current task","ai.taskEmpty":"After you describe a goal, the AI summary of this form appears here.","ai.taskGoal":"Goal: {goal}","ai.undo":"Undo","ai.advanced":"View Schema (read-only)","ai.assistTitle":"AI assist","ai.assistHint":"Not a separate mode. Select the form, a group, or a field, then describe the change here.","ai.assistPlaceholder":"e.g. Make phone optional and add validation…","ai.assistSend":"Send suggestion request","ai.contextForm":"Context: entire form","ai.contextGroup":"Context: group “{title}”","ai.contextField":"Context: field “{label}” ({key})","ai.generate":"Generate","ai.propose":"Let AI handle","ai.composerAria":"Describe your needs to AI","ai.regenerate":"Regenerate","ai.continueDescribe":"Keep describing","ai.placeholderGenerate":"Describe the business goal, e.g. personal loan intake with name and mobile…","ai.placeholderEdit":"Continue describing your needs…","ai.assumptions":"Assumptions","ai.questions":"Clarifying questions","ai.pending":"Proposal pending confirmation","ai.pendingBadge":"Pending","ai.highRisk":"High risk","ai.impact":"Impact summary","ai.chipAdd":"Add","ai.chipRemove":"Remove","ai.chipUpdate":"Update","ai.chipOther":"Change","ai.chipRelation":"Relation","ai.fieldDiff":"Field Diff","ai.noDiff":"No Diff entries","ai.systemRisks":"System risks (not model self-report)","ai.none":"None","ai.modelRisks":"Model riskFlags","ai.details":"View impact and check details","ai.apply":"Apply proposal","ai.applyConfirmHighRisk":"Confirm high risk & apply","ai.reject":"Discard proposal","canvas.outlineTitle":"Structure","canvas.outlineEmpty":"No form structure yet","canvas.outlineCollapse":"Collapse outline","canvas.outlineExpand":"Expand outline","canvas.understandTitle":"How I read this form","canvas.understandEmpty":"Open or generate a form to see the portrait","canvas.factsTitle":"Schema-backed facts","canvas.factHint":"Schema-backed facts below; speculation is labeled separately","canvas.factGroups":"Groups","canvas.factFields":"Fields","canvas.factRequired":"Required","canvas.factRelations":"Relations","canvas.confirmedTitle":"User-confirmed","canvas.confirmedEmpty":"No confirmed assumptions yet","canvas.speculationTitle":"AI speculation","canvas.speculationEmpty":"No model speculation","canvas.speculationTag":"Speculative","canvas.changeTitle":"What this change does","canvas.noPending":"No pending proposal","canvas.clarifyTitle":"Needs your confirmation","canvas.clarifyEmpty":"No pending clarifications","canvas.checksTitle":"System checks","canvas.noHighRisk":"No high-risk items","canvas.checksIdle":"Checks appear after a proposal is built","canvas.constraintFailed":"Explicit constraint check failed","canvas.notApplicable":"Proposal not applicable — continue editing or discard","canvas.applyDisabled":"Not applicable","canvas.continueEdit":"Continue editing","canvas.legacyChat":"Conversation log","canvas.openAiDrawer":"Properties & AI assist","canvas.closeAiDrawer":"Close side panel","canvas.mobileTabForm":"Form","canvas.mobileTabOutline":"Structure","canvas.mobileTabAi":"AI","canvas.mobileTabPreview":"Real preview","canvas.fieldAnchor":"Field anchor","canvas.clearAnchor":"Clear anchor","canvas.pendingUnapplied":"Changes need review","canvas.intentPlaceholder":"Describe a change for AI; includes the current selection","canvas.send":"Send","canvas.aiInputPlaceholder":"Tell AI what you want to change…","canvas.scopeForm":"Entire form","canvas.scopeField":"Editing “{label}”","canvas.scopeGroup":"Editing “{title}”","canvas.scopeReset":"Click to target the entire form","canvas.proposalReadySimple":"Suggested changes are ready; the current form is unchanged","canvas.applyProposal":"Apply these changes","canvas.discardProposal":"Discard","canvas.details":"View rationale and checks","catalog.tabPalette":"Palette","catalog.tabStructure":"Structure","catalog.tabAdd":"Business modules","catalog.paletteSearch":"Search controls","catalog.paletteHint":"Click to add, or drag onto the central canvas","catalog.addingFeedback":"Adding…","catalog.addedFeedback":"Added","catalog.addedItem":"Added “{label}”","catalog.notAvailable":"Not available yet","catalog.searchPlaceholder":"Search controls, fields, or modules","catalog.kind.all":"All","catalog.kind.control":"Controls","catalog.kind.field":"Fields","catalog.kind.module":"Modules","catalog.kind.template":"Templates","catalog.empty":"No catalog matches","catalog.insert":"Add","catalog.inserted":"Added to the local draft","catalog.insertFailed":"Could not insert catalog entry","catalog.needsConfig":"Needs config — no production API","catalog.inspectorTitle":"Properties","catalog.inspectorEmpty":"Select a field in the structure to edit properties.","catalog.fieldLabel":"Label","catalog.required":"Required","catalog.removeField":"Remove field","catalog.removeConfirm":"Remove “{label}”?","catalog.patchFailed":"Could not update the draft","catalog.askAi":"Ask AI for a suggestion","catalog.quickCheckPhone":"Apply phone validation","catalog.quickCheckEmail":"Apply email validation","catalog.aiPrompt":"Suggest a change for “{label}” on the current draft. Preview first; do not edit the draft directly.","catalog.modeEdit":"Edit","catalog.modeTrial":"Trial","catalog.modeAria":"Edit or trial","catalog.staleSuggestion":"The draft changed. Recompute the suggestion before accepting.","catalog.adminTitle":"Catalog","catalog.adminNote":"This UI cannot promote entries to available. Retired entries cannot be inserted. Existing origins stay locked.","catalog.availableSet":"Available","catalog.localDrafts":"Local drafts","catalog.retire":"Retire","catalog.retired":"Retired — cannot insert","catalog.addLocalDraft":"New local draft entry","catalog.localDraftSaved":"Saved as a local draft, not available","catalog.review":"Review & add","catalog.reviewTitle":"Review before insert","catalog.confirmInsert":"Add to draft","catalog.cancelInsert":"Cancel","catalog.objectCount":"About {count} objects will be created","catalog.suggested":"suggested (not required)","catalog.formRoot":"Entire form","catalog.inspectorForm":"Properties · Form","catalog.inspectorGroup":"Properties · Group","catalog.formName":"Form name","catalog.formSummary":"{groups} groups · {fields} fields","catalog.notConfigured":"Not configured","catalog.checkForm":"Check the form","catalog.groupTitle":"Group title","catalog.groupDescription":"Group description","catalog.placeholder":"Placeholder","catalog.help":"Help text","catalog.rules":"Validation","catalog.businessProperties":"Business properties","catalog.businessPropertiesHint":"Validation and relations that affect runtime behavior","catalog.businessPropertiesDetails":"View and edit business properties","catalog.rulesSummary":"{count} validations","catalog.rulesNotConfigured":"No validation configured","catalog.relationsSummary":"{count} relations","catalog.relationsNotConfigured":"No relations configured","catalog.ruleConfigured":"Validation configured","catalog.rulePhone":"Phone rule","catalog.ruleEmail":"Email rule","catalog.relations":"Local relations","catalog.relTarget":"Target field","catalog.addRelation":"Add relation","catalog.clearInboundConfirm":"This field is referenced by relations. Clear refs and delete?","catalog.originPreset":"Origin: catalog {id}","catalog.originLocal":"Origin: local custom","catalog.compat":"Preview settings","catalog.hideAssistant":"Hide assistant","catalog.showAssistant":"Open assistant","catalog.draftRevision":"Local draft {rev}","catalog.aiCheckForm":"Check the whole form for gaps and risks; preview first.","catalog.aiPromptGroup":"Suggest changes for group “{title}”. Preview first.","catalog.aiCheckPhone":"Check whether field {key} has a phone validation rule.","catalog.retiredLocal":"Retired locally (this device only); existing origins unchanged","catalog.localOnlyRetire":"Retire applies to the local overlay only — not a global delisting.","catalog.entryDetail":"Entry detail & preview","entry.startBlank":"Blank form","entry.startPreset":"Start from a business preset","entry.startCreateAi":"Generate a draft from a description","canvas.working":"Working on your change…","canvas.proposalReady":"Proposal ready — review the preview, then Apply","canvas.needClarify":"A few clarifications are needed before continuing","ai.pendingHint":"Applied stays unchanged until you apply. Switch to Proposal preview on the right to see real nextSchema.","ai.appliedUnchanged":"Applied version unchanged","ai.highRiskTitle":"High-risk change confirmation","ai.highRiskBody":"System flagged high-risk operations. Confirm to apply:","ai.msgGenerated":"Draft generated — continue with natural-language edits","ai.msgProposeReady":"Proposal ready — Applied stays unchanged until you apply","ai.msgApplied":"Proposal applied — live form canvas updated","ai.msgRejected":"Proposal discarded; Applied unchanged","ai.msgNothingToUndo":"Nothing to undo","ai.msgUndone":"Reverted to previous applied draft","ai.errGenerate":"Generate failed","ai.errEdit":"Edit failed","ai.changesetFallback":"AI ChangeSet","ai.retry":"Retry","ai.timeline.goal":"Goal","ai.timeline.clarification":"Needs clarification","ai.timeline.assistant":"AI reply","ai.timeline.proposal":"Proposal","ai.timeline.result":"System result","ai.timeline.error":"Something went wrong","ai.timeline.loading":"Working","ai.timeline.loadingHint":"Understanding the goal and organizing fields — applied form and trial values stay intact.","ai.timeline.errorIntact":"The applied form and trial values were not cleared.","ai.timeline.continueAssumptions":"Continue with current assumptions","ai.timeline.resultApplied":"Proposal applied","ai.timeline.resultRejected":"Proposal rejected","ai.timeline.resultUndone":"Reverted to previous version","ai.timeline.resultGenerated":"Draft generated","ai.timeline.assumptionsLabel":"Current assumptions","ai.schemaDigest":"Current form","ai.grill.step":"Confirm {current}/{total}","ai.grill.placeholder":"Answer this question…","ai.grill.submit":"Continue","ai.grill.remaining":"{count} more question(s) after this","ai.timeline.empty":"Task cards appear here after you send a goal or edit.","ai.timeline.emptyHint":"I can interpret requirements, propose fields and relations, then wait for your confirm. Try:","ai.suggest.intake":"Build a personal loan intake form with name, mobile, and ID card","ai.suggest.visibility":"Add marital status; show spouse name when married","ai.suggest.required":"Make mobile required and validate 11 digits","diag.collapse":"Diagnostics & raw Schema (secondary)","diag.schemaCaption":"Applied draft Schema (supporting evidence — not target-device verification)","diag.empty":"Diagnostics stay empty until an applied draft binds a schema revision.","diag.blurb":"Secondary diagnostics — capability report, orchestrator, and protocol evidence. Instant FormRender above is the primary preview. Status values stay truthful (ready / runtime_unavailable / unverified).","diag.runtime":"PreviewRuntime","diag.trialBoundary":"trial values never cross preview boundaries","diag.probe":"Probe {platform}","diag.noSessions":"No platform sessions yet (web instant should auto-start)","diag.capabilityIssues":"Capability issues: ","diag.targetPayload":"Target payload → {hint}/preview/studio-preview-payload.json (verified stays false until a tool receipt)","diag.layer.instant":"① Instant semantic","diag.layer.sdk":"② Actual SDK Host","diag.layer.target":"③ Target-tool verification","msg.listLoadFailed":"Failed to load form list: {detail}","msg.saveOk":"Saved {version}","msg.saveFailed":"Save failed: {detail}","msg.publishNeedSave":"Save the form first","msg.publishDirty":"Unsaved changes — save before publish","msg.publishHint":"Complete preflight → confirm → test publish in History & controlled publish (never auto-publishes)","msg.loadOk":"Loaded","msg.loadFailed":"Load failed: {detail}","msg.importNeedId":"Enter a template ID or package ID","msg.importOk":"Imported ({count} fields)","msg.importFailed":"Import failed: {detail}","msg.aiStartOk":"AI generation succeeded — loaded into editor","msg.aiStartFailed":"AI generation failed: {detail}","msg.restored":"Restored as a new version and refreshed editor","msg.conflictTitle":"Version conflict","msg.conflictReload":"Reload server version","msg.close":"Close","msg.listTitle":"Open existing form","msg.listEmpty":"No saved forms yet — create or import one first","msg.published":"Published","msg.draft":"Draft","msg.updatedAt":"Updated {date}","msg.importTitle":"Import form from DX","msg.importOkBtn":"Import","msg.env":"Environment","msg.templateId":"Template ID or package ID","msg.formNameOptional":"Form name (optional)","msg.formNameHint":"Defaults to the ID if empty","msg.importHint":"Tip: a template ID imports that template; a package ID imports the first template in the package.","msg.historyTitle":"History & controlled test publish","msg.historyDirty":"Local unsaved changes — save before preflight/publish","msg.historySaved":"Saved {version} / {revision}","msg.correlation":"Correlation {id}","msg.unnamed":"Untitled form","history.title":"History & controlled test publish","history.blurb":"The workbench is the primary edit path. Current saved version","history.dirtyTag":"Unsaved changes","history.syncedTag":"Synced","history.emptyNeedSave":"Save a form to view revision history and controlled publish","history.step.history":"History","history.step.diff":"Diff","history.step.restore":"Restore preview","history.step.preflight":"Preflight","history.step.confirm":"Confirm","history.step.publish":"Publish","history.step.done":"Done","history.refresh":"Refresh history","history.runPreflight":"Run preflight","history.issueToken":"Issue confirmation token","history.confirmPublish":"Confirm & test publish","history.viewStatus":"View status","history.retryPreflight":"Retry preflight","history.rollbackPreview":"Rollback preview (previous)","history.unverifiedTargets":"Unverified target platforms present (no silent downgrade)","history.gateFailDetail":"Preflight failure details","history.auditId":"Audit correlation ID: ","history.timeline":"Revision timeline","history.noRevisions":"No revisions yet","history.diffPrev":"Diff previous","history.previewRestore":"Preview restore","history.current":"Current","history.noSummary":"No summary","history.schemaDiff":"Schema Diff (no field preview values)","history.attemptStatus":"Preflight / publish status","history.attemptLine":"Attempt {id} · state {state} · count {attempts}/{max}","history.capability":"Platform capability: ","history.audit":"Audit (redacted)","history.restoreModalTitle":"Restore preview (history not rewritten)","history.restoreOk":"Confirm restore as new version","history.restoreInfo":"Preview first: only confirmation creates a new revision; history snapshots stay immutable","history.restoreTarget":"Target version {version} ({id})","history.restoreMeta":"Source {source} · summary {summary}","history.restoreGroups":"Schema groups: {count} (trial values not shown)","history.errLoad":"Failed to load revisions","history.errDiff":"Diff failed","history.okRestored":"Restored as new version {version} (history not rewritten)","history.errRestore":"Restore failed","history.warnNeedSave":"Save the form first","history.warnDirty":"Unsaved changes — save before preflight","history.warnGate":"Preflight failed; cannot enter confirm publish","history.infoGateOk":"Preflight passed. Confirm separately before test publish (never auto-publishes)","history.errPreflight":"Preflight failed","history.warnNeedGate":"Pass preflight first","history.okToken":"Confirmation token issued. Click “Confirm & test publish” explicitly — never auto-publishes","history.errToken":"Failed to issue confirmation","history.warnNoToken":"Missing explicit confirmation token — publish blocked","history.okPublish":"Test publish completed (non-optimistic)","history.errPublish":"Test publish failed","history.infoRetry":"Preflight retried; re-confirm before publish","history.errRetry":"Retry failed","history.infoStatus":"Status: {state}","history.errStatus":"Status query failed"},e1={"zh-CN":xO,"en-US":SO},t1=d.createContext(null);function kO(e){const t=e.storage!==void 0?e.storage:typeof window<"u"?window.localStorage:null,[r,n]=d.useState(()=>e.initialLocale||bO(t)),i=d.useCallback(s=>{n(s),wO(s,t)},[t]),a=d.useMemo(()=>Z0(e1,r),[r]),o=d.useMemo(()=>({locale:r,setLocale:i,t:a}),[r,i,a]);return w.jsx(t1.Provider,{value:o,children:e.children})}function r1(){const e=d.useContext(t1);if(!e){const t=Z0(e1,Is);return{locale:Is,setLocale:()=>{},t}}return e}const EO=[{value:"h5-phone",labelKey:"shell.h5Phone",disclaimerKey:"shell.h5PhoneDisclaimer"},{value:"h5-window",labelKey:"shell.h5Window",disclaimerKey:"shell.h5WindowDisclaimer"},{value:"miniprogram",labelKey:"shell.miniprogram",disclaimerKey:"shell.miniprogramDisclaimer"}],ah=[{value:"web",labelKey:"renderPkg.web",packageName:"@agentprismform/render-web",defaultShell:"h5-window",disclaimerKey:"renderPkg.webDisclaimer",mode:"in-process"},{value:"vue-h5",labelKey:"renderPkg.vueH5",packageName:"@agentprismform/render-vue",defaultShell:"h5-phone",disclaimerKey:"renderPkg.vueH5Disclaimer",mode:"host-iframe"},{value:"taro-h5",labelKey:"renderPkg.taroH5",packageName:"@agentprismform/render-taro",defaultShell:"h5-phone",disclaimerKey:"renderPkg.taroH5Disclaimer",mode:"host-iframe"},{value:"miniapp",labelKey:"renderPkg.miniapp",packageName:"@agentprismform/render-miniapp",defaultShell:"miniprogram",disclaimerKey:"renderPkg.miniappDisclaimer",mode:"chrome-only"}];function CO(e,t){const r=EO.find(n=>n.value===e);return r?t(r.labelKey):t("shell.fallback",{shell:e})}function cf(e){return ah.find(t=>t.value===e)||ah[0]}function PO(e,t){return t||cf(e).defaultShell}function RO(e){return e==="vue-h5"?"/preview-hosts/vue-h5/index.html":e==="taro-h5"?"/preview-hosts/taro-h5/index.html":null}function TO(e){return!e||e==="inputChange"||e==="inputFocus"||e==="pickShow"||e==="change"||e==="input"?"blur":e}const FO="text/plain",Cu={},OO="2026-09-10.1";function _O(e,t){const r=[],n=i=>{r.forEach(a=>a(i.data,{origin:i.origin}))};return window.addEventListener("message",n),{post(i,a){const o=t();if(!o)throw new Error("iframe contentWindow unavailable");if(!a||a==="*")throw new Error("refusing unrestricted postMessage targetOrigin");o.postMessage(i,a)},subscribe(i){return r.push(i),()=>{const a=r.indexOf(i);a>=0&&r.splice(a,1)}},dispose(){window.removeEventListener("message",n),r.length=0}}}function AO(e){const{t}=r1(),r=d.useRef(null),n=d.useRef(!1),[i,a]=d.useState("loading"),[o,s]=d.useState(""),[l,u]=d.useState(!1),c=d.useMemo(()=>`studio_${e.renderPackage}_${Date.now().toString(36)}`,[e.renderPackage]),p=d.useMemo(()=>Im(e.schema),[e.schema]),f=cf(e.renderPackage),h=d.useMemo(()=>{const b=RO(e.renderPackage);if(!b||typeof window>"u")return"";const x=typeof import.meta<"u"&&(Cu==null?void 0:Cu.VITE_PREVIEW_HOST_BASE_URL)||"";return`${String(x||window.location.origin).replace(/\/$/,"")}${b}?studioOrigin=${encodeURIComponent(window.location.origin)}`},[e.renderPackage]),m=d.useMemo(()=>{try{return h?new URL(h).origin:""}catch{return""}},[h]);return d.useEffect(()=>{if(!h||typeof window>"u")return;let b=!1,x=null;n.current=!1,a("loading"),u(!1),s(t("renderPkg.hostLoading",{pkg:f.packageName}));const v=window.location.origin,g=m||v,y=_O(v,()=>{var P;return(P=r.current)==null?void 0:P.contentWindow}),k=async()=>{var R,O,_,j,D;if(b||n.current||!((R=r.current)!=null&&R.contentWindow))return;n.current=!0,x=Nm({transport:y,platform:e.renderPackage,sessionId:c,schemaRevision:p,capabilityManifestVersion:OO,localOrigin:v,remoteOrigin:g,role:"studio",allowedRemoteOrigins:[g],ackTimeoutMs:8e3,previewView:e.previewView||"applied",ioPolicyId:xr});const P=await x.sendStart(e.schema,{platform:e.renderPackage,schemaRevision:p,layer:"actual-sdk",issues:[],summary:{supported:0,partial:0,unsupported:0}});if(b)return;const T=!!((O=P.envelope)!=null&&O.trialSafe)&&v!==g;u(T),P.ok&&P.mountStatus==="sdk_mounted"?(a("ready"),s((P.envelope.message||t("renderPkg.hostMounted",{pkg:f.packageName}))+(T?"":" · 试填未开放(需独立 Host 来源)")),(_=e.onMountStatus)==null||_.call(e,"sdk_mounted",P.envelope.message,{trialSafe:T})):P.mountStatus==="runtime_unavailable"?(a("runtime_unavailable"),s(P.envelope.message||t("renderPkg.hostUnavailable",{pkg:f.packageName})),(j=e.onMountStatus)==null||j.call(e,"runtime_unavailable",P.envelope.message,{trialSafe:!1})):(a("error"),s(P.envelope.message||t("renderPkg.hostError",{pkg:f.packageName})),(D=e.onMountStatus)==null||D.call(e,"error",P.envelope.message,{trialSafe:!1}))},E=y.subscribe(P=>{!P||typeof P!="object"||P.type==="host.ready"&&P.platform===e.renderPackage&&k()}),C=()=>{window.setTimeout(()=>{k()},150)},S=r.current;return S==null||S.addEventListener("load",C),()=>{b=!0,S==null||S.removeEventListener("load",C),E(),x==null||x.sendStop(),y.dispose()}},[h,m,e.schema,e.renderPackage,e.previewView,p,c,f.packageName,t]),w.jsxs("div",{style:e.shellStyle,"data-testid":"sdk-host-preview","data-render-package":e.renderPackage,children:[w.jsxs("div",{style:{height:34,display:"flex",alignItems:"center",justifyContent:"center",gap:8,fontSize:11,color:"#64748b",background:"#f8fafc",borderBottom:"1px solid #e2e8f0"},children:[w.jsx("span",{"data-testid":"render-package-badge",children:f.packageName}),w.jsx("span",{children:"·"}),w.jsx("span",{"data-testid":"host-mount-status",children:i}),w.jsx("span",{children:"·"}),w.jsx("span",{"data-testid":"host-trial-safe",children:l?"trial_safe":"trial_blocked"})]}),i==="loading"&&w.jsx("div",{style:{padding:24,textAlign:"center"},children:w.jsx(uf,{tip:o||t("preview.loading")})}),(i==="runtime_unavailable"||i==="error")&&w.jsx(Na,{type:i==="error"?"error":"warning",showIcon:!0,style:{margin:8},message:i,description:o,"data-testid":"host-mount-alert"}),w.jsxs("div",{style:{position:"relative"},"data-testid":"sdk-host-frame-wrap",children:[w.jsx("iframe",{ref:r,title:`${e.renderPackage}-preview-host`,src:h,"data-testid":"sdk-host-iframe",sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",style:{width:"100%",minHeight:480,border:"none",display:"block",background:"#fff",pointerEvents:l?"auto":"none"}}),!l&&i==="ready"&&w.jsx("div",{"data-testid":"host-trial-block-overlay",style:{position:"absolute",inset:0,background:"rgba(248, 250, 252, 0.72)",display:"flex",alignItems:"center",justifyContent:"center",padding:16,textAlign:"center",fontSize:13,color:"#334155",pointerEvents:"auto"},children:t("renderPkg.trialBlockedOverlay")})]})]})}const n1="api_demo_search",NO=[{name:"演示科技有限公司",code:"demo-tech",creditCode:"91110000MA0000000X"},{name:"示例金融服务有限公司",code:"sample-finance",creditCode:"91110000MA0000000Y"},{name:"本地测试企业有限公司",code:"local-test",creditCode:"91110000MA0000000Z"}];function IO(e){const t=e.trim().toLowerCase();return t?NO.filter(r=>[r.name,r.code,r.creditCode].some(n=>n.toLowerCase().includes(t))).map(r=>({...r})):[]}function jO(e,t){if(e===n1)return{list:IO(t)}}const{Text:DO}=Ga;let $o=null;async function oh(){if($o)return $o;const e=await jm(()=>import("./index-I07pgrbZ.js"),[],import.meta.url);return $o=new e.PreviewTrialBag,$o}function sh(e){return w.jsxs("div",{"data-testid":"preview-data-source-blocked",style:{padding:18,color:"#7c2d12",background:"#fff7ed",border:"1px solid #fed7aa",borderRadius:10},children:[w.jsx("div",{style:{fontWeight:700,marginBottom:6},children:e.title}),w.jsx("div",{style:{fontSize:12,lineHeight:1.6,marginBottom:8},children:e.hint}),w.jsx("ul",{style:{margin:0,paddingLeft:18,fontSize:12,lineHeight:1.7},children:e.blockers.map(t=>w.jsxs("li",{children:[t.label," · ",t.dataSourceName," · ",t.message]},`${t.instanceId}:${t.dataSourceId}`))})]})}function MO(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`sess_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,10)}`}function $O(e){var Xe;const{t}=r1(),{schema:r,theme:n,setTheme:i}=vO(),[a,o]=d.useState("tdesign"),[s,l]=d.useState(""),[u,c]=d.useState("comfortable"),[p,f]=d.useState("flat"),[h,m]=d.useState(!1),[b,x]=d.useState(!1),[v,g]=d.useState(!1),y=d.useMemo(()=>a==="tdesign"?null:{brandColor:s||void 0,density:u},[a,s,u]),k=d.useCallback(()=>{var te;const ee=JSON.stringify({version:"1.0.0",skin:a,override:y||{},formMode:p,showProgressBar:h},null,2);typeof navigator<"u"&&((te=navigator.clipboard)!=null&&te.writeText)&&navigator.clipboard.writeText(ee),g(!0),setTimeout(()=>g(!1),1600)},[a,y,p,h]),E=((Xe=n==null?void 0:n.label)==null?void 0:Xe.position)==="top"?"top":"left",C=d.useCallback(()=>{const B=E==="top"?"left":"top";i({...n,label:{...n==null?void 0:n.label,position:B}},"custom")},[E,i,n]),S=e.schemaOverride!==void 0?e.schemaOverride:r,P=d.useMemo(()=>S!=null&&S.groups?{...S,groups:S.groups.map(B=>B.key!=="direct"||B.title!=="Fields"?B:{...B,title:t("preview.defaultGroupTitle")})}:S,[S,t]),T=e.renderPackage||"web",R=cf(T),O=PO(T,e.previewShell),_=e.mode||"applied",j=e.trialBlockers||[],D=(e.interactionMode||"trial")!=="edit"&&j.length>0,[W,z]=d.useState({}),[U,A]=d.useState(null),[I,M]=d.useState(!1),[N,$]=d.useState(!1),[V,L]=d.useState(null),q=d.useRef({}),Y=d.useRef(null),J=d.useRef(null),de=d.useRef(null),ne=d.useRef(new Map),Me=d.useMemo(()=>new Set((e.highlightKeys||[]).map(String)),[e.highlightKeys]),$e=d.useMemo(()=>q4(),[]);d.useEffect(()=>{if(e.visible===!1||!e.selectedKey){de.current=null;return}const B=e.selectedKey;if(de.current===B)return;const ee=requestAnimationFrame(()=>{const te=J.current;if(!te)return;const ie=Array.from(te.querySelectorAll("[data-field-key], [data-key]")).find(se=>se.getAttribute("data-field-key")===B||se.getAttribute("data-key")===B);!ie||ie.getClientRects().length===0||(ie.scrollIntoView({behavior:"smooth",block:"center"}),de.current=B)});return()=>cancelAnimationFrame(ee)},[e.selectedKey,e.visible,I]),d.useEffect(()=>{if((e.interactionMode||"trial")!=="edit"||!e.onSelectPreviewField)return;const B=J.current;if(!B)return;const ee=te=>{var fn;const ie=te.target;if(!(ie instanceof Element))return;const se=ie.closest("[data-field-key], [data-key]"),Fe=(se==null?void 0:se.getAttribute("data-field-key"))||(se==null?void 0:se.getAttribute("data-key"));Fe&&((fn=e.onSelectPreviewField)==null||fn.call(e,Fe))};return B.addEventListener("click",ee),()=>B.removeEventListener("click",ee)},[e.interactionMode,e.onSelectPreviewField,I]);const me=d.useMemo(()=>e.schemaSnapshotId?String(e.schemaSnapshotId):S?String(S.version||S.schemaRevision||"draft"):"empty",[e.schemaSnapshotId,S]),oe=d.useMemo(()=>{const B=`${T}|${_}`;let ee=ne.current.get(B);return ee||(ee=MO(),ne.current.set(B,ee)),{schemaSnapshotId:me,platform:T,view:_,sessionId:ee}},[me,T,_]),ze=R.mode==="host-iframe",Ue=R.mode==="chrome-only",Te=R.mode==="in-process",at=!!e.onDropControl&&(e.interactionMode||"trial")==="edit",Dt=d.useCallback(B=>{at&&(B.preventDefault(),B.dataTransfer.dropEffect="copy")},[at]),Mt=d.useCallback(B=>{if(!at||!e.onDropControl)return;B.preventDefault();const ee=B.dataTransfer.getData(FO)||B.dataTransfer.getData("text/plain");ee&&e.onDropControl(ee)},[at,e.onDropControl]),Pe=d.useCallback(async B=>{try{(await oh()).set(oe,B)}catch{}},[oe]),Ee=d.useCallback(B=>{var ie;const ee={},te={};for(const[se,Fe]of Object.entries(B.fields||{}))ee[se]=Fe,te[se]=Fe==null?void 0:Fe.value;if(q.current=te,Pe(te),(ie=e.onTrialValues)==null||ie.call(e,{...te}),e.onTrialPayload&&typeof B.collectFormData=="function")try{e.onTrialPayload(B.collectFormData({skipVerify:!0})||{})}catch{e.onTrialPayload({})}z(ee)},[Pe,e]);function be(){var ee;const B=Y.current;if(!(!B||I))try{if(B.flush(),!B.validateAll()){L({core:B,error:"请修正表单错误后重试"});const te=((ee=B.getFields)==null?void 0:ee.call(B))||{},ie=Object.keys(te).find(se=>{var Fe;return(Fe=te[se])==null?void 0:Fe.errMsg});if(ie&&J.current){const se=J.current.querySelector(`[data-field-key="${ie}"]`);se==null||se.scrollIntoView({behavior:"smooth",block:"center"})}return}L({core:B,payload:B.collectFormData()})}catch{L({core:B,error:"表单数据收集失败,请检查填写内容后重试"})}finally{Ee(B)}}d.useEffect(()=>{var se,Fe,fn;if(D){z({}),A(null),M(!1),(se=e.onRuntimeState)==null||se.call(e,{ready:!1,error:"DATA_SOURCE_NEEDS_CONFIG",loading:!1});return}if(ze){M(!1),A(null),(Fe=e.onRuntimeState)==null||Fe.call(e,{ready:!1,error:null,loading:!0});return}if(Ue){M(!1),A(null),z({}),(fn=e.onRuntimeState)==null||fn.call(e,{ready:!1,error:null,loading:!1});return}let B=!1;const ee=[];let te=()=>{ee.splice(0).forEach(pn=>pn())};async function ie(){var pn,Oi,Ya,Xa,_i,Qa,Ja;if(!S){z({}),A(null),M(!1),(pn=e.onRuntimeState)==null||pn.call(e,{ready:!1,error:null,loading:!1});return}M(!0),(Oi=e.onRuntimeState)==null||Oi.call(e,{ready:!1,error:null,loading:!0});try{const ot=await jm(()=>import("./index-I07pgrbZ.js"),[],import.meta.url),zr=await oh(),cr=zr.get(oe),Ve=((Ya=ot.createPreviewIoCounters)==null?void 0:Ya.call(ot))||null,Et=e.blockExternalWrites&&ot.createPreviewStorageAdapter?ot.createPreviewStorageAdapter(Ve):void 0,{core:We,retained:$t}=ot.rebuildFormCoreWithValues(S,cr,Et);if(await ot.initCoreWithTrialValues(We,$t.values),e.blockExternalWrites&&(We!=null&&We.on)&&(typeof ot.attachPreviewIoGuards=="function"?ee.push(ot.attachPreviewIoGuards(We,Ve,{allowedFetchApiIds:e.allowLocalDataSourceTrial?[n1]:[]})):(We.on("fetchAPI",et=>{et!=null&&et.callback&&et.callback({ok:!1,blocked:!0,message:"proposal_preview_no_network"}),$(!0)}),We.on("beforeSubmit",et=>(et!=null&&et.preventDefault&&et.preventDefault(),$(!0),!1))),(_==="proposal"||e.blockExternalWrites)&&$(!0)),e.allowLocalDataSourceTrial&&(We!=null&&We.on)){const et=ye=>{var vn,eo,to,Ai;const Za=((vn=ye==null?void 0:ye.api)==null?void 0:vn.id)||(ye==null?void 0:ye.apiId)||(ye==null?void 0:ye.id)||"",ml=((eo=ye==null?void 0:ye.extraParams)==null?void 0:eo.keywords)||((to=ye==null?void 0:ye.injects)==null?void 0:to.keywords)||((Ai=ye==null?void 0:ye.injects)==null?void 0:Ai.companyName)||"";return jO(String(Za),String(ml))};We.on("fetchAPI",et),ee.push(()=>{typeof We.off=="function"&&We.off("fetchAPI",et)})}if(B)return;Y.current=We,q.current=$t.values,zr.set(oe,$t.values),(Xa=e.onDiscardedKeys)==null||Xa.call(e,$t.discardedKeys||[]),(_i=e.onTrialValues)==null||_i.call(e,{...$t.values}),A(null),Ee(We),We.on("afterChange",()=>{B||Ee(We)}),(Qa=e.onRuntimeState)==null||Qa.call(e,{ready:!0,error:null,loading:!1})}catch(ot){if(!B){z({});const zr=(ot==null?void 0:ot.message)||String(ot)||"FormCore init failed";A(zr),(Ja=e.onRuntimeState)==null||Ja.call(e,{ready:!1,error:zr,loading:!1})}}finally{B||M(!1)}}return ie(),()=>{B=!0,te()}},[S,_,e.blockExternalWrites,e.allowLocalDataSourceTrial,D,ze,Ue,oe]);const Ce=d.useMemo(()=>{const B={background:"#fff",position:"relative",border:"1px solid #cbd5e1",display:"flex",flexDirection:"column",height:O==="h5-window"?"min(720px, calc(100vh - 220px))":"667px",maxHeight:"calc(100vh - 200px)",overflow:"hidden"};return O==="h5-window"?{...B,width:"100%",maxWidth:720,margin:"0 auto",borderRadius:8,boxShadow:"0 2px 16px rgba(15,23,42,0.08)"}:{...B,width:e.mobileWidth||375,maxWidth:"100%",margin:"0 auto",borderRadius:O==="miniprogram"?8:28,boxShadow:"0 12px 40px rgba(15,23,42,0.14)"}},[O,e.mobileWidth]);return S?ze?w.jsxs("div",{"data-testid":"instant-preview-root","data-live-form-canvas":"true","data-preview-mode":_,"data-render-package":T,"data-schema-snapshot":me,children:[D?w.jsx(sh,{blockers:j,title:t("preview.dataSourceBlockedTitle"),hint:t("preview.dataSourceBlockedHint")}):w.jsx(AO,{schema:S,renderPackage:T,shellStyle:Ce,previewView:_,onMountStatus:(B,ee,te)=>{var ie;return(ie=e.onHostStatus)==null?void 0:ie.call(e,B,{trialSafe:te==null?void 0:te.trialSafe})}}),w.jsx("p",{style:{marginTop:8,fontSize:11,color:"#64748b"},"data-testid":"render-package-disclaimer",children:t(R.disclaimerKey)})]}):w.jsxs("div",{"data-testid":"instant-preview-root","data-live-form-canvas":"true","data-preview-mode":_,"data-render-package":T,"data-schema-snapshot":me,children:[N&&e.blockExternalWrites&&w.jsx(Na,{type:"info",showIcon:!0,closable:!0,onClose:()=>$(!1),message:t("preview.submitBlocked"),style:{marginBottom:8},"data-testid":"preview-write-blocked"}),R.mode==="chrome-only"&&w.jsx(Na,{type:"warning",showIcon:!0,style:{marginBottom:8},message:t("renderPkg.miniappChromeTitle"),description:t(R.disclaimerKey),"data-testid":"miniapp-chrome-disclaimer"}),w.jsxs("div",{style:Ce,"data-testid":"presentation-shell","data-drop-target":at?"palette":void 0,onDragOver:Dt,onDrop:Mt,children:[w.jsxs("div",{style:{height:34,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",gap:8,fontSize:11,color:"#64748b",background:O==="miniprogram"?"#f1f5f9":"#f8fafc",borderBottom:"1px solid #e2e8f0",letterSpacing:"0.02em"},children:[w.jsx("span",{"data-testid":"render-package-badge",title:R.packageName,children:t("preview.canvasLabel")}),w.jsx("span",{children:"·"}),w.jsx("span",{children:CO(O,t)}),Ue&&w.jsxs(w.Fragment,{children:[w.jsx("span",{children:"·"}),w.jsx("span",{"data-testid":"chrome-only-status",children:"target_tool_pending"})]}),w.jsxs("button",{type:"button","data-testid":"preview-label-align-toggle",onClick:C,title:"切换表单项横向(左标签)/ 竖向(上标签)布局",style:{marginLeft:"auto",marginRight:10,padding:"2px 8px",borderRadius:4,border:"1px solid #cbd5e1",background:"#ffffff",color:"#334155",fontSize:11,lineHeight:"16px",cursor:"pointer"},children:["布局:",E==="top"?"竖向":"横向"]}),Te?w.jsxs("select",{"aria-label":"预览皮肤","data-testid":"studio-modern-skin-select",value:a,onChange:B=>o(B.target.value),style:{padding:"2px 6px",borderRadius:4,border:"1px solid #cbd5e1",background:"#ffffff",color:"#334155",fontSize:11,lineHeight:"16px"},children:[w.jsx("option",{value:"tdesign",children:"皮肤:TDesign 默认"}),IF.map(B=>w.jsxs("option",{value:B.id,children:["皮肤:",B.shortName]},B.id))]}):null]}),Te&&a!=="tdesign"?w.jsxs("div",{"data-testid":"studio-theme-config-bar",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:6,padding:"6px 10px",background:"#f8fafc",borderBottom:"1px solid #e2e8f0",fontSize:11},children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[[{label:"默认蓝",color:""},{label:"银行红",color:"#C81E32"},{label:"政务深蓝",color:"#1E3A8A"},{label:"普惠青绿",color:"#047857"}].map(B=>w.jsx("button",{type:"button",title:`主题色:${B.label}`,onClick:()=>l(B.color),style:{width:14,height:14,borderRadius:999,border:s===B.color?"2px solid #0f172a":"1px solid #cbd5e1",background:B.color||"#0F52BA",cursor:"pointer",padding:0}},B.label)),w.jsx("button",{type:"button",onClick:()=>c(B=>B==="compact"?"comfortable":"compact"),style:{border:"1px solid #cbd5e1",background:"#ffffff",borderRadius:4,padding:"1px 5px",fontSize:11,cursor:"pointer"},children:u==="compact"?"紧凑":"舒适"}),w.jsxs("select",{"aria-label":"长表单模式",value:p,onChange:B=>f(B.target.value),style:{border:"1px solid #cbd5e1",background:"#ffffff",borderRadius:4,padding:"1px 4px",fontSize:11},children:[w.jsx("option",{value:"flat",children:"平铺"}),w.jsx("option",{value:"collapsible",children:"折叠分组"}),w.jsx("option",{value:"step",children:"分步向导"})]}),w.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:3,cursor:"pointer"},children:[w.jsx("input",{type:"checkbox",checked:h,onChange:B=>m(B.target.checked)}),"进度条"]}),w.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:3,cursor:"pointer"},children:[w.jsx("input",{type:"checkbox",checked:b,onChange:B=>x(B.target.checked)}),"审阅脱敏"]})]}),w.jsx("button",{type:"button","data-testid":"studio-copy-theme-json",onClick:k,style:{border:"1px solid #0F52BA",background:"#EEF4FF",color:"#0F52BA",borderRadius:4,padding:"1px 7px",fontSize:11,fontWeight:600,cursor:"pointer"},children:v?"已复制 Theme JSON ✓":"复制 Theme JSON"})]}):null,D?w.jsx(sh,{blockers:j,title:t("preview.dataSourceBlockedTitle"),hint:t("preview.dataSourceBlockedHint")}):null,!D&&I?w.jsx("div",{style:{padding:48,textAlign:"center"},"data-testid":"instant-preview-loading",children:w.jsx(uf,{tip:t("preview.loading")})}):null,!D&&U?w.jsxs("div",{"data-testid":"instant-preview-error",style:{padding:16,color:"#b91c1c",fontSize:13,background:"#fef2f2"},children:[w.jsx("div",{style:{fontWeight:600,marginBottom:4},children:t("preview.runtimeUnavailable")}),t("preview.coreUnavailable",{error:U})]}):null,!D&&Ue&&!I?w.jsxs("div",{"data-testid":"chrome-only-capability-report",style:{padding:16,fontSize:13,color:"#334155",overflowY:"auto",flex:1},children:[w.jsx("p",{style:{marginTop:0},children:t("renderPkg.chromeOnlyReport")}),w.jsx("ul",{style:{paddingLeft:18,margin:0},children:((S==null?void 0:S.groups)||[]).flatMap(B=>(B.items||[]).map(ee=>w.jsxs("li",{children:[ee.label||ee.key," · ",ee.type,ee.required?" · required":""]},ee.key)))})]}):null,!D&&!I&&!U&&Te?w.jsxs("div",{ref:J,className:"fs-phone-form","data-testid":"phone-form-body","data-interaction":e.interactionMode||"trial",style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",background:"var(--td-bg-color-page, #F3F3F3)",overflowY:"auto",overflowX:"hidden",WebkitOverflowScrolling:"touch",position:"relative",pointerEvents:e.interactionMode==="edit"?"none":void 0},children:[e.interactionMode==="edit"?w.jsx("div",{"data-testid":"edit-mode-select-hint",style:{position:"absolute",inset:0,zIndex:2,pointerEvents:"none",background:"rgba(248,250,252,0.35)"}}):null,w.jsx(zF,{schema:P,fields:W,formCore:Y.current,hostHandlers:$e,theme:n,title:e.formTitle,labelAlign:E,skin:a,themeOverride:y,formMode:p,showProgressBar:h,readOnly:a!=="tdesign"&&b,footer:e.showLocalCollection&&e.interactionMode==="trial"&&w.jsxs(w.Fragment,{children:[V&&V.core===Y.current&&!V.error&&w.jsx("div",{style:{padding:"0 16px 12px"},children:w.jsx("pre",{"aria-label":"校验后的本地提交数据",style:{margin:0,padding:12,borderRadius:"var(--td-radius-large, 9px)",background:"var(--td-bg-color-container, #FFFFFF)",border:"1px solid var(--td-component-stroke, #E7E7E7)",fontSize:12,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:JSON.stringify(V.payload,null,2)})}),w.jsxs("div",{style:{position:"sticky",bottom:0,zIndex:5,marginTop:"auto",padding:"12px 16px calc(12px + env(safe-area-inset-bottom, 0px))",background:"var(--td-bg-color-container, #FFFFFF)",borderTop:"1px solid var(--td-component-stroke, #E7E7E7)"},children:[V&&V.core===Y.current&&V.error&&w.jsx("div",{role:"alert","data-testid":"form-toast-alert",style:{marginBottom:10,padding:"10px 14px",borderRadius:8,background:"rgba(0, 0, 0, 0.82)",color:"#FFFFFF",fontSize:14,lineHeight:"20px",textAlign:"center"},children:V.error}),w.jsx(lf,{type:"primary",block:!0,onClick:be,disabled:!Y.current,style:{height:48,fontSize:16,fontWeight:600,backgroundColor:"var(--td-brand-color, #0052D9)",borderColor:"var(--td-brand-color, #0052D9)",borderRadius:"var(--td-radius-default, 6px)",color:"#fff"},children:"校验并查看本地提交数据"})]})]}),onFieldChange:B=>{L(null),q.current[B.key]=B.value,Pe({...q.current});const ee=Y.current,te=TO(B.eventType);ee!=null&&ee.setControlData?(ee.setControlData(B.key,B.value,{eventType:te,...B.extraFields?{extraFields:B.extraFields}:{}}),Ee(ee)):z(ie=>({...ie,[B.key]:{...ie[B.key]||{},value:B.value,...B.extraFields||{}}}))}}),Me.size>0&&w.jsx("style",{children:`
151
- ${[...Me].map(B=>`[data-field-key="${B}"], [data-key="${B}"], .form-item-${B} { background: #edf4ff !important; box-shadow: inset 0 0 0 2px #3274e7 !important; border-radius: 8px; }`).join(`
152
- `)}
153
- `})]}):null]}),w.jsx(DO,{style:{display:"none"},children:_})]}):w.jsx("div",{"data-testid":"instant-preview-empty",className:"fs-applied-empty",children:t("preview.empty")})}function lh(){const e=new URLSearchParams(window.location.hash.slice(1)).get("form");return e&&/^[a-f0-9]{32}$/.test(e)?e:null}async function uh(e){if(!e.ok)throw new Error(e.status===404?"找不到这份预览,请让智能体重新生成预览链接。":e.status===409?"草稿已变化,请同步后再撤回。":"暂时无法同步,请检查本机预览服务。");const t=await e.json();if(!t||typeof t.revision!="string"||typeof t.schemaRevision!="string"||typeof t.title!="string"||!Number.isSafeInteger(t.formVersion)||!Array.isArray(t.changes)||!t.changes.every(r=>typeof r=="string")||typeof t.canUndo!="boolean"||t.schema!==null&&!Rm(t.schema).valid)throw new Error("预览配置未通过校验,请重新生成。");return t}function LO(){const[e,t]=d.useState(null),[r,n]=d.useState(""),[i,a]=d.useState(""),[o,s]=d.useState(0),[l,u]=d.useState(!1),[c,p]=d.useState(lh),[f,h]=d.useState(null),[m,b]=d.useState(""),[x,v]=d.useState(!1),[g,y]=d.useState({}),k=d.useRef(null),E=d.useRef(0),C=d.useRef(c),S=d.useRef(""),P=d.useRef(""),T=d.useRef(0),R=d.useRef(!1),O=d.useCallback(I=>u(I.ready),[]),_=d.useCallback(I=>{y(I&&typeof I=="object"?I:{})},[]),j=d.useCallback(I=>{b(""),S.current!==I.revision&&(S.current=I.revision,h(I),n(`${I.title}.json`),P.current!==I.schemaRevision&&(P.current=I.schemaRevision,u(!1),y({}),t(I.schema)))},[]);d.useEffect(()=>{const I=()=>{const M=lh();C.current!==M&&(E.current++,C.current=M,S.current="",P.current="",h(null),t(null),y({}),s(N=>N+1),p(M))};return window.addEventListener("hashchange",I),()=>window.removeEventListener("hashchange",I)},[]),d.useEffect(()=>{if(!c)return;const I=new AbortController;let M=!1,N;const $=async()=>{const V=T.current;try{if(!R.current){const L=await fetch(`/__form_skill/preview/${c}`,{cache:"no-store",signal:I.signal}),q=await uh(L);!M&&C.current===c&&V===T.current&&!R.current&&j(q)}}catch(L){!M&&C.current===c&&V===T.current&&b(L instanceof Error?L.message:"无法连接预览。")}finally{M||(N=setTimeout($,1200))}};return $(),()=>{M=!0,I.abort(),clearTimeout(N)}},[c,j]);const D=async()=>{if(!c||!f||R.current)return;const I=c;R.current=!0,T.current++,v(!0);try{const M=await fetch(`/__form_skill/preview/${I}/undo`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({revision:f.revision})}),N=await uh(M);C.current===I&&(j(N),a(""))}catch(M){C.current===I&&a(M instanceof Error?M.message:"无法撤回修改。")}finally{R.current=!1,v(!1)}},W=async I=>{if(!I)return;const M=++E.current;try{if(I.size>5*1024*1024)throw new Error("请选择小于 5 MB 的表单配置。");let N;try{N=JSON.parse(await I.text())}catch{throw new Error("文件格式无法识别,请选择导出的表单配置。")}if(!Rm(N).valid)throw new Error("配置未通过表单校验,请重新生成并导出。");if(M!==E.current)return;C.current=null,S.current="",P.current="",p(null),h(null),b(""),window.history.replaceState(null,"",window.location.pathname+window.location.search),u(!1),y({}),t(N),n(I.name),s(V=>V+1),a("")}catch(N){M===E.current&&a(N instanceof Error?N.message:"无法打开配置。")}finally{k.current&&(k.current.value="")}},z=()=>{const I=URL.createObjectURL(new Blob([JSON.stringify(e,null,2)],{type:"application/json"})),M=document.createElement("a");M.href=I,M.download=r||"form.json",M.click(),setTimeout(()=>URL.revokeObjectURL(I),1e3)},U=(f==null?void 0:f.title)||(r?r.replace(/\.json$/i,""):"表单试填"),A=Object.entries(g);return w.jsxs("main",{className:"skill-preview",children:[w.jsxs("header",{className:"skill-header",children:[w.jsxs("a",{href:"/",children:["FormStudio ",w.jsx("span",{children:"表单试填"})]}),w.jsxs("span",{className:"skill-local",children:[w.jsx("i",{}),"本机预览 · 不外发"]})]}),w.jsxs("div",{className:"skill-layout skill-layout--preview-first",children:[w.jsxs("section",{className:"skill-stage","aria-label":"表单试填区",children:[w.jsxs("div",{className:"skill-stage-label",children:[w.jsx("span",{children:e?l?U:"准备表单中…":c?"正在同步配置":"等待打开配置"}),w.jsx("span",{children:"手机预览"})]}),e?w.jsx($O,{schemaOverride:e,formTitle:(e==null?void 0:e.title)||(f==null?void 0:f.title),schemaSnapshotId:`skill-${c||"file"}-${o}`,interactionMode:"trial",showLocalCollection:!0,blockExternalWrites:!0,renderPackage:"web",previewShell:"h5-phone",mobileWidth:390,onRuntimeState:O,onTrialPayload:_},o):w.jsxs("div",{className:"skill-empty",children:[w.jsx("span",{"aria-hidden":"true",children:"+"}),w.jsx("h2",{children:c?"正在连接你的表单":"你的表单会出现在这里"}),w.jsx("p",{children:c?"读取已采纳的最新配置,准备实际试填。":"选择导出的表单配置,即可实际试填。"})]})]}),w.jsxs("aside",{className:"skill-side","aria-label":"试填调试",children:[f&&w.jsx("p",{className:"skill-sync",role:"status",children:m?"同步暂时中断,正在重试":`已同步 · 第 ${f.formVersion} 版`}),(i||m)&&w.jsx("p",{className:"skill-error",role:"alert",children:i||m}),w.jsxs("div",{className:"skill-payload","data-testid":"trial-payload-panel",children:[w.jsxs("div",{className:"skill-payload-head",children:[w.jsx("strong",{children:"试填数据预览"}),w.jsx("span",{children:"随填写更新"})]}),w.jsx("p",{className:"skill-payload-note",children:"点击表单底部按钮,可校验并查看本地提交数据。"}),A.length===0?w.jsx("pre",{className:"skill-payload-empty",children:"{}"}):w.jsx("pre",{className:"skill-payload-json",children:JSON.stringify(g,null,2)})]}),e&&w.jsx("div",{className:"skill-trial-actions",children:w.jsx("button",{type:"button",onClick:()=>{u(!1),y({}),s(I=>I+1)},children:"清空试填内容"})}),w.jsxs("details",{className:"skill-authoring",children:[w.jsx("summary",{children:"创作与文件(可选)"}),w.jsx("p",{className:"skill-authoring-hint",children:"预览主区只负责试填。导出、换文件、撤回属于创作工具,收在这里。"}),w.jsx("input",{ref:k,type:"file",accept:".json,application/json","aria-label":"选择表单配置",onChange:I=>{var M;return void W((M=I.target.files)==null?void 0:M[0])}}),w.jsxs("div",{className:"skill-actions",children:[w.jsxs("button",{type:"button",className:"skill-primary",onClick:()=>{var I;return(I=k.current)==null?void 0:I.click()},children:[e?"打开另一份配置":"打开表单配置"," ",w.jsx("span",{"aria-hidden":"true",children:"↗"})]}),e&&w.jsx("button",{type:"button",onClick:z,children:"导出配置"})]}),f&&w.jsx("button",{type:"button",disabled:!f.canUndo||x,onClick:()=>void D(),children:x?"正在撤回…":"撤回上一轮修改"}),f&&f.changes.length>0&&w.jsxs("details",{className:"skill-changes",children:[w.jsx("summary",{children:"最近已采纳的修改"}),w.jsx("ul",{children:f.changes.map((I,M)=>w.jsx("li",{children:I},M))})]}),e&&w.jsxs("div",{className:"skill-file",children:[w.jsx("span",{children:"当前配置"}),w.jsx("strong",{children:r})]})]}),w.jsxs("div",{className:"skill-note",children:[w.jsx("strong",{children:"本机边界"}),w.jsx("p",{children:"填写内容只在当前页面;关闭后不保留,也不会提交到服务器。"})]})]})]})]})}Sm(document.getElementById("root")).render(w.jsx(kO,{storage:null,initialLocale:"zh-CN",children:w.jsx(LO,{})}));export{ox as A,ax as B,tx as C,Im as D,Je as E,yr as F,VO as G,WO as H,Am as I,ix as J,_m as P,Tm as T,Zw as V,Qw as a,Xw as b,Qo as c,xr as d,zO as e,So as f,GO as g,UO as h,Yw as i,Jw as j,BO as k,Cs as l,Fm as m,dx as n,Nm as o,Cm as p,qO as q,KO as r,lx as s,Om as t,cx as u,Rm as v,HO as w,Xi as x,ux as y,sx as z};