From c9c1fbf151a1bdb2a842b9729451591ef70e9581 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 20:59:16 +0000 Subject: [PATCH] Deploy to GitHub pages --- assets/index-3a1ee735.js | 1194 +++++++++++++++++ docs/404.html | 4 +- .../custom-templates/index.html | 4 +- .../custom-themes/index.html | 4 +- .../custom-widgets-fields/index.html | 4 +- docs/advanced-customization/index.html | 4 +- .../internals/index.html | 4 +- .../typescript/index.html | 4 +- docs/api-reference/form-props/index.html | 4 +- docs/api-reference/index.html | 4 +- .../themes/antd/uiSchema/index.html | 4 +- .../themes/chakra-ui/uiSchema/index.html | 4 +- .../themes/semantic-ui/uiSchema/index.html | 4 +- docs/api-reference/uiSchema/index.html | 4 +- .../utility-functions/index.html | 10 +- docs/api-reference/validator-ajv8/index.html | 4 +- docs/assets/js/db61454e.ffbbb945.js | 1 + docs/assets/js/runtime~main.93661c84.js | 1 + docs/contributing/index.html | 4 +- docs/index.html | 4 +- docs/json-schema/arrays/index.html | 4 +- docs/json-schema/definitions/index.html | 4 +- docs/json-schema/dependencies/index.html | 4 +- docs/json-schema/index.html | 4 +- docs/json-schema/objects/index.html | 4 +- docs/json-schema/oneof/index.html | 4 +- docs/json-schema/single/index.html | 4 +- docs/migration-guides/index.html | 4 +- .../v2.x upgrade guide/index.html | 4 +- .../v3.x upgrade guide/index.html | 4 +- .../v4.x upgrade guide/index.html | 4 +- .../v5.x upgrade guide/index.html | 4 +- docs/quickstart/index.html | 4 +- docs/search/index.html | 4 +- docs/usage/index.html | 4 +- docs/usage/themes/index.html | 4 +- docs/usage/validation/index.html | 4 +- docs/usage/widgets/index.html | 4 +- .../custom-templates/index.html | 4 +- .../custom-themes/index.html | 4 +- .../custom-widgets-fields/index.html | 4 +- .../advanced-customization/index.html | 4 +- .../internals/index.html | 4 +- .../api-reference/form-props/index.html | 4 +- docs/version-3.2.1/api-reference/index.html | 4 +- .../themes/semantic-ui/uiSchema/index.html | 4 +- .../api-reference/uiSchema/index.html | 4 +- docs/version-3.2.1/quickstart/index.html | 4 +- docs/version-3.2.1/usage/arrays/index.html | 4 +- .../usage/definitions/index.html | 4 +- .../usage/dependencies/index.html | 4 +- docs/version-3.2.1/usage/index.html | 4 +- docs/version-3.2.1/usage/objects/index.html | 4 +- docs/version-3.2.1/usage/oneof/index.html | 4 +- docs/version-3.2.1/usage/single/index.html | 4 +- docs/version-3.2.1/usage/themes/index.html | 4 +- .../version-3.2.1/usage/validation/index.html | 4 +- docs/version-3.2.1/usage/widgets/index.html | 4 +- .../custom-templates/index.html | 4 +- .../custom-themes/index.html | 4 +- .../custom-widgets-fields/index.html | 4 +- .../advanced-customization/index.html | 4 +- .../internals/index.html | 4 +- .../customizing-material-ui/index.html | 4 +- .../api-reference/form-props/index.html | 4 +- docs/version-4.2.3/api-reference/index.html | 4 +- .../themes/chakra-ui/uiSchema/index.html | 4 +- .../themes/semantic-ui/uiSchema/index.html | 4 +- .../api-reference/uiSchema/index.html | 4 +- docs/version-4.2.3/quickstart/index.html | 4 +- docs/version-4.2.3/usage/arrays/index.html | 4 +- .../usage/definitions/index.html | 4 +- .../usage/dependencies/index.html | 4 +- docs/version-4.2.3/usage/index.html | 4 +- docs/version-4.2.3/usage/objects/index.html | 4 +- docs/version-4.2.3/usage/oneof/index.html | 4 +- docs/version-4.2.3/usage/single/index.html | 4 +- docs/version-4.2.3/usage/themes/index.html | 4 +- .../version-4.2.3/usage/validation/index.html | 4 +- docs/version-4.2.3/usage/widgets/index.html | 4 +- index.html | 2 +- 81 files changed, 1354 insertions(+), 158 deletions(-) create mode 100644 assets/index-3a1ee735.js create mode 100644 docs/assets/js/db61454e.ffbbb945.js create mode 100644 docs/assets/js/runtime~main.93661c84.js diff --git a/assets/index-3a1ee735.js b/assets/index-3a1ee735.js new file mode 100644 index 0000000000..33ebcd0c5c --- /dev/null +++ b/assets/index-3a1ee735.js @@ -0,0 +1,1194 @@ +var uIe=Object.defineProperty;var cIe=(e,t,r)=>t in e?uIe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var dIe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var A0=(e,t,r)=>(cIe(e,typeof t!="symbol"?t+"":t,r),r);var GAr=dIe((kf,Pf)=>{function Y8(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $F(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var rce={exports:{}},EF={},nce={exports:{}},Qr={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var J$=Symbol.for("react.element"),fIe=Symbol.for("react.portal"),pIe=Symbol.for("react.fragment"),mIe=Symbol.for("react.strict_mode"),hIe=Symbol.for("react.profiler"),vIe=Symbol.for("react.provider"),gIe=Symbol.for("react.context"),bIe=Symbol.for("react.forward_ref"),yIe=Symbol.for("react.suspense"),SIe=Symbol.for("react.memo"),wIe=Symbol.for("react.lazy"),vY=Symbol.iterator;function CIe(e){return e===null||typeof e!="object"?null:(e=vY&&e[vY]||e["@@iterator"],typeof e=="function"?e:null)}var oce={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ace=Object.assign,ice={};function N1(e,t,r){this.props=e,this.context=t,this.refs=ice,this.updater=r||oce}N1.prototype.isReactComponent={};N1.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")};N1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sce(){}sce.prototype=N1.prototype;function X8(e,t,r){this.props=e,this.context=t,this.refs=ice,this.updater=r||oce}var Q8=X8.prototype=new sce;Q8.constructor=X8;ace(Q8,N1.prototype);Q8.isPureReactComponent=!0;var gY=Array.isArray,lce=Object.prototype.hasOwnProperty,Z8={current:null},uce={key:!0,ref:!0,__self:!0,__source:!0};function cce(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)lce.call(t,n)&&!uce.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,V=j[F];if(0>>1;Fo(R,B))Wo(U,R)?(j[F]=U,j[W]=B,F=W):(j[F]=R,j[P]=B,F=P);else if(Wo(U,B))j[F]=U,j[W]=B,F=W;else break e}}return H}function o(j,H){var B=j.sortIndex-H.sortIndex;return B!==0?B:j.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(j){for(var H=r(u);H!==null;){if(H.callback===null)n(u);else if(H.startTime<=j)n(u),H.sortIndex=H.expirationTime,t(l,H);else break;H=r(u)}}function w(j){if(v=!1,S(j),!h)if(r(l)!==null)h=!0,M($);else{var H=r(u);H!==null&&L(w,H.startTime-j)}}function $(j,H){h=!1,v&&(v=!1,g(E),E=-1),p=!0;var B=f;try{for(S(H),d=r(l);d!==null&&(!(d.expirationTime>H)||j&&!I());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var V=F(d.expirationTime<=H);H=e.unstable_now(),typeof V=="function"?d.callback=V:d===r(l)&&n(l),S(H)}else n(l);d=r(l)}if(d!==null)var D=!0;else{var P=r(u);P!==null&&L(w,P.startTime-H),D=!1}return D}finally{d=null,f=B,p=!1}}var C=!1,x=null,E=-1,_=5,k=-1;function I(){return!(e.unstable_now()-k<_)}function N(){if(x!==null){var j=e.unstable_now();k=j;var H=!0;try{H=x(!0,j)}finally{H?z():(C=!1,x=null)}}else C=!1}var z;if(typeof y=="function")z=function(){y(N)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,A=O.port2;O.port1.onmessage=N,z=function(){A.postMessage(null)}}else z=function(){b(N,0)};function M(j){x=j,C||(C=!0,z())}function L(j,H){E=b(function(){j(e.unstable_now())},H)}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(j){j.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,M($))},e.unstable_forceFrameRate=function(j){0>j||125F?(j.sortIndex=B,t(u,j),r(l)===null&&j===r(u)&&(v?(g(E),E=-1):v=!0,L(w,B-F))):(j.sortIndex=V,t(l,j),h||p||(h=!0,M($))),j},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(j){var H=f;return function(){var B=f;f=H;try{return j.apply(this,arguments)}finally{f=B}}}})(mce);pce.exports=mce;var U3=pce.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hce=m,kl=U3;function yt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),K3=Object.prototype.hasOwnProperty,DIe=/^[: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]*$/,yY={},SY={};function AIe(e){return K3.call(SY,e)?!0:K3.call(yY,e)?!1:DIe.test(e)?SY[e]=!0:(yY[e]=!0,!1)}function MIe(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 BIe(e,t,r,n){if(t===null||typeof t>"u"||MIe(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 Es(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var fi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fi[e]=new Es(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fi[t]=new Es(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fi[e]=new Es(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fi[e]=new Es(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){fi[e]=new Es(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fi[e]=new Es(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fi[e]=new Es(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fi[e]=new Es(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fi[e]=new Es(e,5,!1,e.toLowerCase(),null,!1,!1)});var e9=/[\-:]([a-z])/g;function t9(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(e9,t9);fi[t]=new Es(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(e9,t9);fi[t]=new Es(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(e9,t9);fi[t]=new Es(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fi[e]=new Es(e,1,!1,e.toLowerCase(),null,!1,!1)});fi.xlinkHref=new Es("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fi[e]=new Es(e,1,!1,e.toLowerCase(),null,!0,!0)});function r9(e,t,r,n){var o=fi.hasOwnProperty(t)?fi[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{tM=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Aw(e):""}function jIe(e){switch(e.tag){case 5:return Aw(e.type);case 16:return Aw("Lazy");case 13:return Aw("Suspense");case 19:return Aw("SuspenseList");case 0:case 2:case 15:return e=rM(e.type,!1),e;case 11:return e=rM(e.type.render,!1),e;case 1:return e=rM(e.type,!0),e;default:return""}}function Q3(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 xb:return"Fragment";case Cb:return"Portal";case G3:return"Profiler";case n9:return"StrictMode";case Y3:return"Suspense";case X3:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bce:return(e.displayName||"Context")+".Consumer";case gce:return(e._context.displayName||"Context")+".Provider";case o9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case a9:return t=e.displayName||null,t!==null?t:Q3(e.type)||"Memo";case Cm:t=e._payload,e=e._init;try{return Q3(e(t))}catch{}}return null}function LIe(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 Q3(t);case 8:return t===n9?"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 vh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zIe(e){var t=Sce(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 o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Y_(e){e._valueTracker||(e._valueTracker=zIe(e))}function wce(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Sce(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function RT(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 Z3(e,t){var r=t.checked;return Io({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function CY(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=vh(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 Cce(e,t){t=t.checked,t!=null&&r9(e,"checked",t,!1)}function J3(e,t){Cce(e,t);var r=vh(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")?ej(e,t.type,r):t.hasOwnProperty("defaultValue")&&ej(e,t.type,vh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xY(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 ej(e,t,r){(t!=="number"||RT(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Mw=Array.isArray;function Zb(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=X_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sx(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var nC={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},VIe=["Webkit","ms","Moz","O"];Object.keys(nC).forEach(function(e){VIe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nC[t]=nC[e]})});function _ce(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||nC.hasOwnProperty(e)&&nC[e]?(""+t).trim():t+"px"}function kce(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=_ce(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var HIe=Io({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 nj(e,t){if(t){if(HIe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(yt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(yt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(yt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(yt(62))}}function oj(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 aj=null;function i9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ij=null,Jb=null,ey=null;function _Y(e){if(e=rE(e)){if(typeof ij!="function")throw Error(yt(280));var t=e.stateNode;t&&(t=IF(t),ij(e.stateNode,e.type,t))}}function Pce(e){Jb?ey?ey.push(e):ey=[e]:Jb=e}function Tce(){if(Jb){var e=Jb,t=ey;if(ey=Jb=null,_Y(e),t)for(e=0;e>>=0,e===0?32:31-(eRe(e)/tRe|0)|0}var Q_=64,Z_=4194304;function Bw(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 DT(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Bw(s):(a&=i,a!==0&&(n=Bw(a)))}else i=r&~o,i!==0?n=Bw(i):a!==0&&(n=Bw(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function eE(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cc(t),e[t]=r}function aRe(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=aC),DY=String.fromCharCode(32),AY=!1;function Yce(e,t){switch(e){case"keyup":return ORe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xce(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $b=!1;function DRe(e,t){switch(e){case"compositionend":return Xce(t);case"keypress":return t.which!==32?null:(AY=!0,DY);case"textInput":return e=t.data,e===DY&&AY?null:e;default:return null}}function ARe(e,t){if($b)return e==="compositionend"||!m9&&Yce(e,t)?(e=Kce(),FP=d9=Dm=null,$b=!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)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=LY(r)}}function ede(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ede(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tde(){for(var e=window,t=RT();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=RT(e.document)}return t}function h9(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 qRe(e){var t=tde(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&ede(r.ownerDocument.documentElement,r)){if(n!==null&&h9(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 o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=zY(r,a);var i=zY(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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=document.documentMode,Eb=null,fj=null,sC=null,pj=!1;function VY(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;pj||Eb==null||Eb!==RT(n)||(n=Eb,"selectionStart"in n&&h9(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}),sC&&_x(sC,n)||(sC=n,n=BT(fj,"onSelect"),0Pb||(e.current=yj[Pb],yj[Pb]=null,Pb--)}function Xn(e,t){Pb++,yj[Pb]=e.current,e.current=t}var gh={},Hi=zh(gh),Hs=zh(!1),Sg=gh;function Ey(e,t){var r=e.type.contextTypes;if(!r)return gh;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ws(e){return e=e.childContextTypes,e!=null}function LT(){lo(Hs),lo(Hi)}function YY(e,t,r){if(Hi.current!==gh)throw Error(yt(168));Xn(Hi,t),Xn(Hs,r)}function cde(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(yt(108,LIe(e)||"Unknown",o));return Io({},r,n)}function zT(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gh,Sg=Hi.current,Xn(Hi,e),Xn(Hs,Hs.current),!0}function XY(e,t,r){var n=e.stateNode;if(!n)throw Error(yt(169));r?(e=cde(e,t,Sg),n.__reactInternalMemoizedMergedChildContext=e,lo(Hs),lo(Hi),Xn(Hi,e)):lo(Hs),Xn(Hs,r)}var yf=null,RF=!1,vM=!1;function dde(e){yf===null?yf=[e]:yf.push(e)}function nFe(e){RF=!0,dde(e)}function Vh(){if(!vM&&yf!==null){vM=!0;var e=0,t=kn;try{var r=yf;for(kn=1;e>=i,o-=i,Cf=1<<32-Cc(t)+o|r<E?(_=x,x=null):_=x.sibling;var k=f(g,x,S[E],w);if(k===null){x===null&&(x=_);break}e&&x&&k.alternate===null&&t(g,x),y=a(k,y,E),C===null?$=k:C.sibling=k,C=k,x=_}if(E===S.length)return r(g,x),vo&&Sv(g,E),$;if(x===null){for(;EE?(_=x,x=null):_=x.sibling;var I=f(g,x,k.value,w);if(I===null){x===null&&(x=_);break}e&&x&&I.alternate===null&&t(g,x),y=a(I,y,E),C===null?$=I:C.sibling=I,C=I,x=_}if(k.done)return r(g,x),vo&&Sv(g,E),$;if(x===null){for(;!k.done;E++,k=S.next())k=d(g,k.value,w),k!==null&&(y=a(k,y,E),C===null?$=k:C.sibling=k,C=k);return vo&&Sv(g,E),$}for(x=n(g,x);!k.done;E++,k=S.next())k=p(x,g,E,k.value,w),k!==null&&(e&&k.alternate!==null&&x.delete(k.key===null?E:k.key),y=a(k,y,E),C===null?$=k:C.sibling=k,C=k);return e&&x.forEach(function(N){return t(g,N)}),vo&&Sv(g,E),$}function b(g,y,S,w){if(typeof S=="object"&&S!==null&&S.type===xb&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case G_:e:{for(var $=S.key,C=y;C!==null;){if(C.key===$){if($=S.type,$===xb){if(C.tag===7){r(g,C.sibling),y=o(C,S.props.children),y.return=g,g=y;break e}}else if(C.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Cm&&nX($)===C.type){r(g,C.sibling),y=o(C,S.props),y.ref=US(g,C,S),y.return=g,g=y;break e}r(g,C);break}else t(g,C);C=C.sibling}S.type===xb?(y=og(S.props.children,g.mode,w,S.key),y.return=g,g=y):(w=LP(S.type,S.key,S.props,null,g.mode,w),w.ref=US(g,y,S),w.return=g,g=w)}return i(g);case Cb:e:{for(C=S.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){r(g,y.sibling),y=o(y,S.children||[]),y.return=g,g=y;break e}else{r(g,y);break}else t(g,y);y=y.sibling}y=$M(S,g.mode,w),y.return=g,g=y}return i(g);case Cm:return C=S._init,b(g,y,C(S._payload),w)}if(Mw(S))return h(g,y,S,w);if(zS(S))return v(g,y,S,w);a2(g,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(r(g,y.sibling),y=o(y,S),y.return=g,g=y):(r(g,y),y=xM(S,g.mode,w),y.return=g,g=y),i(g)):r(g,y)}return b}var ky=yde(!0),Sde=yde(!1),nE={},_d=zh(nE),Ix=zh(nE),Rx=zh(nE);function Gv(e){if(e===nE)throw Error(yt(174));return e}function $9(e,t){switch(Xn(Rx,t),Xn(Ix,e),Xn(_d,nE),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rj(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rj(t,e)}lo(_d),Xn(_d,t)}function Py(){lo(_d),lo(Ix),lo(Rx)}function wde(e){Gv(Rx.current);var t=Gv(_d.current),r=rj(t,e.type);t!==r&&(Xn(Ix,e),Xn(_d,r))}function E9(e){Ix.current===e&&(lo(_d),lo(Ix))}var ko=zh(0);function KT(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 gM=[];function _9(){for(var e=0;er?r:4,e(!0);var n=bM.transition;bM.transition={};try{e(!1),t()}finally{kn=r,bM.transition=n}}function Mde(){return xu().memoizedState}function sFe(e,t,r){var n=nh(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Bde(e))jde(t,r);else if(r=hde(e,t,r,n),r!==null){var o=ms();xc(r,e,n,o),Lde(r,t,n)}}function lFe(e,t,r){var n=nh(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Bde(e))jde(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Rc(s,i)){var l=t.interleaved;l===null?(o.next=o,C9(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=hde(e,t,o,n),r!==null&&(o=ms(),xc(r,e,n,o),Lde(r,t,n))}}function Bde(e){var t=e.alternate;return e===To||t!==null&&t===To}function jde(e,t){lC=GT=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Lde(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,l9(e,r)}}var YT={readContext:Cu,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},uFe={readContext:Cu,useCallback:function(e,t){return Xc().memoizedState=[e,t===void 0?null:t],e},useContext:Cu,useEffect:aX,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,AP(4194308,4,Fde.bind(null,t,e),r)},useLayoutEffect:function(e,t){return AP(4194308,4,e,t)},useInsertionEffect:function(e,t){return AP(4,2,e,t)},useMemo:function(e,t){var r=Xc();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Xc();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=sFe.bind(null,To,e),[n.memoizedState,e]},useRef:function(e){var t=Xc();return e={current:e},t.memoizedState=e},useState:oX,useDebugValue:R9,useDeferredValue:function(e){return Xc().memoizedState=e},useTransition:function(){var e=oX(!1),t=e[0];return e=iFe.bind(null,e[1]),Xc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=To,o=Xc();if(vo){if(r===void 0)throw Error(yt(407));r=r()}else{if(r=t(),za===null)throw Error(yt(349));Cg&30||$de(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,aX(_de.bind(null,n,a,e),[e]),n.flags|=2048,Nx(9,Ede.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Xc(),t=za.identifierPrefix;if(vo){var r=xf,n=Cf;r=(n&~(1<<32-Cc(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Fx++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[od]=t,e[Tx]=n,Yde(e,t,!1,!1),t.stateNode=e;e:{switch(i=oj(r,n),r){case"dialog":to("cancel",e),to("close",e),o=n;break;case"iframe":case"object":case"embed":to("load",e),o=n;break;case"video":case"audio":for(o=0;oIy&&(t.flags|=128,n=!0,KS(a,!1),t.lanes=4194304)}else{if(!n)if(e=KT(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),KS(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!vo)return wi(t),null}else 2*Zo()-a.renderingStartTime>Iy&&r!==1073741824&&(t.flags|=128,n=!0,KS(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Zo(),t.sibling=null,r=ko.current,Xn(ko,n?r&1|2:r&1),t):(wi(t),null);case 22:case 23:return M9(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?cl&1073741824&&(wi(t),t.subtreeFlags&6&&(t.flags|=8192)):wi(t),null;case 24:return null;case 25:return null}throw Error(yt(156,t.tag))}function gFe(e,t){switch(g9(t),t.tag){case 1:return Ws(t.type)&<(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Py(),lo(Hs),lo(Hi),_9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return E9(t),null;case 13:if(lo(ko),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(yt(340));_y()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lo(ko),null;case 4:return Py(),null;case 10:return w9(t.type._context),null;case 22:case 23:return M9(),null;case 24:return null;default:return null}}var s2=!1,Oi=!1,bFe=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function Fb(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Bo(e,t,n)}else r.current=null}function Rj(e,t,r){try{r()}catch(n){Bo(e,t,n)}}var mX=!1;function yFe(e,t){if(mj=AT,e=tde(),h9(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 o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=i+o),d!==a||n!==0&&d.nodeType!==3||(l=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=i),f===a&&++c===n&&(l=i),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(hj={focusedElem:e,selectionRange:r},AT=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){t=Nt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,b=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:nc(t.type,v),b);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(yt(163))}}catch(w){Bo(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}return h=mX,mX=!1,h}function uC(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Rj(t,r,a)}o=o.next}while(o!==n)}}function NF(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 Fj(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 Zde(e){var t=e.alternate;t!==null&&(e.alternate=null,Zde(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[od],delete t[Tx],delete t[bj],delete t[tFe],delete t[rFe])),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 Jde(e){return e.tag===5||e.tag===3||e.tag===4}function hX(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jde(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 Oj(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=jT));else if(n!==4&&(e=e.child,e!==null))for(Oj(e,t,r),e=e.sibling;e!==null;)Oj(e,t,r),e=e.sibling}function Nj(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(Nj(e,t,r),e=e.sibling;e!==null;)Nj(e,t,r),e=e.sibling}var ei=null,oc=!1;function Yp(e,t,r){for(r=r.child;r!==null;)efe(e,t,r),r=r.sibling}function efe(e,t,r){if(Ed&&typeof Ed.onCommitFiberUnmount=="function")try{Ed.onCommitFiberUnmount(_F,r)}catch{}switch(r.tag){case 5:Oi||Fb(r,t);case 6:var n=ei,o=oc;ei=null,Yp(e,t,r),ei=n,oc=o,ei!==null&&(oc?(e=ei,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ei.removeChild(r.stateNode));break;case 18:ei!==null&&(oc?(e=ei,r=r.stateNode,e.nodeType===8?hM(e.parentNode,r):e.nodeType===1&&hM(e,r),$x(e)):hM(ei,r.stateNode));break;case 4:n=ei,o=oc,ei=r.stateNode.containerInfo,oc=!0,Yp(e,t,r),ei=n,oc=o;break;case 0:case 11:case 14:case 15:if(!Oi&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Rj(r,t,i),o=o.next}while(o!==n)}Yp(e,t,r);break;case 1:if(!Oi&&(Fb(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Bo(r,t,s)}Yp(e,t,r);break;case 21:Yp(e,t,r);break;case 22:r.mode&1?(Oi=(n=Oi)||r.memoizedState!==null,Yp(e,t,r),Oi=n):Yp(e,t,r);break;default:Yp(e,t,r)}}function vX(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new bFe),t.forEach(function(n){var o=PFe.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Hu(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=Zo()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*wFe(n/1960))-n,10e?16:e,Am===null)var n=!1;else{if(e=Am,Am=null,ZT=0,on&6)throw Error(yt(331));var o=on;for(on|=4,Nt=e.current;Nt!==null;){var a=Nt,i=a.child;if(Nt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lZo()-D9?ng(e,0):N9|=r),qs(e,t)}function lfe(e,t){t===0&&(e.mode&1?(t=Z_,Z_<<=1,!(Z_&130023424)&&(Z_=4194304)):t=1);var r=ms();e=Zf(e,t),e!==null&&(eE(e,t,r),qs(e,r))}function kFe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lfe(e,r)}function PFe(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(yt(314))}n!==null&&n.delete(t),lfe(e,r)}var ufe;ufe=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hs.current)Ls=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ls=!1,hFe(e,t,r);Ls=!!(e.flags&131072)}else Ls=!1,vo&&t.flags&1048576&&fde(t,HT,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;MP(e,t),e=t.pendingProps;var o=Ey(t,Hi.current);ry(t,r),o=P9(null,t,n,e,o,r);var a=T9();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ws(n)?(a=!0,zT(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,x9(t),o.updater=FF,t.stateNode=o,o._reactInternals=t,$j(t,n,e,r),t=kj(null,t,n,!0,a,r)):(t.tag=0,vo&&a&&v9(t),os(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(MP(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=IFe(n),e=nc(n,e),o){case 0:t=_j(null,t,n,e,r);break e;case 1:t=dX(null,t,n,e,r);break e;case 11:t=uX(null,t,n,e,r);break e;case 14:t=cX(null,t,n,nc(n.type,e),r);break e}throw Error(yt(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:nc(n,o),_j(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:nc(n,o),dX(e,t,n,o,r);case 3:e:{if(Ude(t),e===null)throw Error(yt(387));n=t.pendingProps,a=t.memoizedState,o=a.element,vde(e,t),UT(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Ty(Error(yt(423)),t),t=fX(e,t,n,r,o);break e}else if(n!==o){o=Ty(Error(yt(424)),t),t=fX(e,t,n,r,o);break e}else for(hl=eh(t.stateNode.containerInfo.firstChild),El=t,vo=!0,cc=null,r=Sde(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(_y(),n===o){t=Jf(e,t,r);break e}os(e,t,n,r)}t=t.child}return t;case 5:return wde(t),e===null&&wj(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,vj(n,o)?i=null:a!==null&&vj(n,a)&&(t.flags|=32),qde(e,t),os(e,t,i,r),t.child;case 6:return e===null&&wj(t),null;case 13:return Kde(e,t,r);case 4:return $9(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ky(t,null,n,r):os(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:nc(n,o),uX(e,t,n,o,r);case 7:return os(e,t,t.pendingProps,r),t.child;case 8:return os(e,t,t.pendingProps.children,r),t.child;case 12:return os(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Xn(WT,n._currentValue),n._currentValue=i,a!==null)if(Rc(a.value,i)){if(a.children===o.children&&!Hs.current){t=Jf(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Tf(-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),Cj(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(yt(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Cj(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}os(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,ry(t,r),o=Cu(o),n=n(o),t.flags|=1,os(e,t,n,r),t.child;case 14:return n=t.type,o=nc(n,t.pendingProps),o=nc(n.type,o),cX(e,t,n,o,r);case 15:return Hde(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:nc(n,o),MP(e,t),t.tag=1,Ws(n)?(e=!0,zT(t)):e=!1,ry(t,r),bde(t,n,o),$j(t,n,o,r),kj(null,t,n,!0,e,r);case 19:return Gde(e,t,r);case 22:return Wde(e,t,r)}throw Error(yt(156,t.tag))};function cfe(e,t){return Ace(e,t)}function TFe(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 cu(e,t,r,n){return new TFe(e,t,r,n)}function j9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function IFe(e){if(typeof e=="function")return j9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===o9)return 11;if(e===a9)return 14}return 2}function oh(e,t){var r=e.alternate;return r===null?(r=cu(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 LP(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")j9(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case xb:return og(r.children,o,a,t);case n9:i=8,o|=8;break;case G3:return e=cu(12,r,t,o|2),e.elementType=G3,e.lanes=a,e;case Y3:return e=cu(13,r,t,o),e.elementType=Y3,e.lanes=a,e;case X3:return e=cu(19,r,t,o),e.elementType=X3,e.lanes=a,e;case yce:return AF(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gce:i=10;break e;case bce:i=9;break e;case o9:i=11;break e;case a9:i=14;break e;case Cm:i=16,n=null;break e}throw Error(yt(130,e==null?e:typeof e,""))}return t=cu(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function og(e,t,r,n){return e=cu(7,e,n,t),e.lanes=r,e}function AF(e,t,r,n){return e=cu(22,e,n,t),e.elementType=yce,e.lanes=r,e.stateNode={isHidden:!1},e}function xM(e,t,r){return e=cu(6,e,null,t),e.lanes=r,e}function $M(e,t,r){return t=cu(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RFe(e,t,r,n,o){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=oM(0),this.expirationTimes=oM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oM(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function L9(e,t,r,n,o,a,i,s,l){return e=new RFe(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=cu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},x9(a),e}function FFe(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mfe)}catch(e){console.error(e)}}mfe(),fce.exports=Fl;var uo=fce.exports;const Nb=zt(uo),MFe=Y8({__proto__:null,default:Nb},[uo]);function bo(e){return typeof File<"u"&&e instanceof File||typeof Date<"u"&&e instanceof Date?!1:typeof e=="object"&&e!==null&&!Array.isArray(e)}function BFe(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),bo(e.additionalItems)}function $X(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Nl="__additional_property",jj="additionalProperties",oE="allOf",cd="anyOf",hfe="const",jFe="default",zF="dependencies",LFe="enum",Sc="__errors",Mm="$id",zFe="if",ah="items",VFe="_$junk_option_schema_id$_",zP="$name",du="oneOf",Lo="properties",HFe="required",tI="submitButtonOptions",Ca="$ref",W9="__rjsf_additionalProperties",Db="__rjsf_rootSchema",WFe="ui:field",q9="ui:widget",If="ui:options",qFe="ui:globalOptions";function At(e={},t={}){return Object.keys(e).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const o=e[n];return n===q9&&bo(o)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===If&&bo(o)?{...r,...o}:{...r,[n.substring(3)]:o}},{...t})}function $p(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=At(t);return n===!1?n:e.maxProperties!==void 0&&r?Object.keys(r).length({...r,[o]:rI(n)}),t);if(U9(e)){const r=e;return Object.keys(r).reduce((n,o)=>({...n,[o]:rI(r[o])}),t)}return t}function $Oe(){this.__data__=[],this.size=0}var EOe=$Oe;function _Oe(e,t){return e===t||e!==e&&t!==t}var j1=_Oe,kOe=j1;function POe(e,t){for(var r=e.length;r--;)if(kOe(e[r][0],t))return r;return-1}var HF=POe,TOe=HF,IOe=Array.prototype,ROe=IOe.splice;function FOe(e){var t=this.__data__,r=TOe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ROe.call(t,r,1),--this.size,!0}var OOe=FOe,NOe=HF;function DOe(e){var t=this.__data__,r=NOe(t,e);return r<0?void 0:t[r][1]}var AOe=DOe,MOe=HF;function BOe(e){return MOe(this.__data__,e)>-1}var jOe=BOe,LOe=HF;function zOe(e,t){var r=this.__data__,n=LOe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var VOe=zOe,HOe=EOe,WOe=OOe,qOe=AOe,UOe=jOe,KOe=VOe;function L1(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=r&dAe?new sAe:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=dMe}var Z9=fMe,pMe=Ep,mMe=Z9,hMe=Ru,vMe="[object Arguments]",gMe="[object Array]",bMe="[object Boolean]",yMe="[object Date]",SMe="[object Error]",wMe="[object Function]",CMe="[object Map]",xMe="[object Number]",$Me="[object Object]",EMe="[object RegExp]",_Me="[object Set]",kMe="[object String]",PMe="[object WeakMap]",TMe="[object ArrayBuffer]",IMe="[object DataView]",RMe="[object Float32Array]",FMe="[object Float64Array]",OMe="[object Int8Array]",NMe="[object Int16Array]",DMe="[object Int32Array]",AMe="[object Uint8Array]",MMe="[object Uint8ClampedArray]",BMe="[object Uint16Array]",jMe="[object Uint32Array]",no={};no[RMe]=no[FMe]=no[OMe]=no[NMe]=no[DMe]=no[AMe]=no[MMe]=no[BMe]=no[jMe]=!0;no[vMe]=no[gMe]=no[TMe]=no[bMe]=no[IMe]=no[yMe]=no[SMe]=no[wMe]=no[CMe]=no[xMe]=no[$Me]=no[EMe]=no[_Me]=no[kMe]=no[PMe]=!1;function LMe(e){return hMe(e)&&mMe(e.length)&&!!no[pMe(e)]}var zMe=LMe;function VMe(e){return function(t){return e(t)}}var l0=VMe,aI={exports:{}};aI.exports;(function(e,t){var r=vfe,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(aI,aI.exports);var J9=aI.exports,HMe=zMe,WMe=l0,AX=J9,MX=AX&&AX.isTypedArray,qMe=MX?WMe(MX):HMe,iE=qMe,UMe=Efe,KMe=aE,GMe=Pa,YMe=W1,XMe=QF,QMe=iE,ZMe=Object.prototype,JMe=ZMe.hasOwnProperty;function e5e(e,t){var r=GMe(e),n=!r&&KMe(e),o=!r&&!n&&YMe(e),a=!r&&!n&&!o&&QMe(e),i=r||n||o||a,s=i?UMe(e.length,String):[],l=s.length;for(var u in e)(t||JMe.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XMe(u,l)))&&s.push(u);return s}var kfe=e5e,t5e=Object.prototype;function r5e(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||t5e;return e===r}var ZF=r5e,n5e=bfe,o5e=n5e(Object.keys,Object),a5e=o5e,i5e=ZF,s5e=a5e,l5e=Object.prototype,u5e=l5e.hasOwnProperty;function c5e(e){if(!i5e(e))return s5e(e);var t=[];for(var r in Object(e))u5e.call(e,r)&&r!="constructor"&&t.push(r);return t}var Pfe=c5e,d5e=qF,f5e=Z9;function p5e(e){return e!=null&&f5e(e.length)&&!d5e(e)}var u0=p5e,m5e=kfe,h5e=Pfe,v5e=u0;function g5e(e){return v5e(e)?m5e(e):h5e(e)}var sE=g5e,b5e=xfe,y5e=Q9,S5e=sE;function w5e(e){return b5e(e,S5e,y5e)}var Tfe=w5e,BX=Tfe,C5e=1,x5e=Object.prototype,$5e=x5e.hasOwnProperty;function E5e(e,t,r,n,o,a){var i=r&C5e,s=BX(e),l=s.length,u=BX(t),c=u.length;if(l!=c&&!i)return!1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:$5e.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var b=i;++d{if(typeof r=="function"&&typeof n=="function")return!0})}var iBe=Ep,sBe=Ru,lBe="[object Symbol]";function uBe(e){return typeof e=="symbol"||sBe(e)&&iBe(e)==lBe}var U1=uBe,cBe=Pa,dBe=U1,fBe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pBe=/^\w*$/;function mBe(e,t){if(cBe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dBe(e)?!0:pBe.test(e)||!fBe.test(e)||t!=null&&e in Object(t)}var e7=mBe,Nfe=G9,hBe="Expected a function";function t7(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hBe);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(t7.Cache||Nfe),r}t7.Cache=Nfe;var vBe=t7,gBe=vBe,bBe=500;function yBe(e){var t=gBe(e,function(n){return r.size===bBe&&r.clear(),n}),r=t.cache;return t}var SBe=yBe,wBe=SBe,CBe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xBe=/\\(\\)?/g,$Be=wBe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(CBe,function(r,n,o,a){t.push(o?a.replace(xBe,"$1"):n||r)}),t}),Dfe=$Be;function EBe(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++ra,typeof e[n]>"u"&&(Array.isArray(e)&&n==="-"&&(n=e.length),o&&(t[a]!==""&&t[a]<1/0||t[a]==="-"?e[n]=[]:e[n]={})),!o)break;e=e[n]}var s=e[n];return r===void 0?delete e[n]:e[n]=r,s}function r7(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function jfe(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=r7(t);var r=t.length;if(r===1)return e;for(var n=1;no?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n0&&r(s)?t>1?tpe(s,t-1,r,n,o):FLe(o,s):n||(o[o.length]=s)}return o}var rO=tpe,NLe=rO;function DLe(e){var t=e==null?0:e.length;return t?NLe(e,1):[]}var s7=DLe;function ALe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var rpe=ALe,MLe=rpe,fQ=Math.max;function BLe(e,t,r){return t=fQ(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=fQ(n.length-t,0),i=Array(a);++o0){if(++t>=ULe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XLe=YLe,QLe=qLe,ZLe=XLe,JLe=ZLe(QLe),ope=JLe,e6e=s7,t6e=npe,r6e=ope;function n6e(e){return r6e(t6e(e,void 0,e6e),e+"")}var ape=n6e,o6e=zd,a6e=Qfe,i6e=epe,s6e=G1,l6e=Y1,u6e=kLe,c6e=ape,d6e=Wfe,f6e=1,p6e=2,m6e=4,h6e=c6e(function(e,t){var r={};if(e==null)return r;var n=!1;t=o6e(t,function(a){return a=s6e(a,e),n||(n=a.length>1),a}),l6e(e,d6e(e),r),n&&(r=a6e(r,f6e|p6e|m6e,u6e));for(var o=t.length;o--;)i6e(r,t[o]);return r}),v6e=h6e;const sI=zt(v6e);function l7(e,t){const r=t[e];return[sI(t,[e]),r]}function ipe(e,t={},r=[]){const n=e||"";let o;if(n.startsWith("#"))o=decodeURIComponent(n.substring(1));else throw new Error(`Could not find a definition for ${e}.`);const a=eO.get(t,o);if(a===void 0)throw new Error(`Could not find a definition for ${e}.`);const i=a[Ca];if(i){if(r.includes(i)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[c,...d]=r,f=[...d,n,c].join(" -> ");throw new Error(`Definition for ${c} contains a circular reference through ${f}`)}const[s,l]=l7(Ca,a),u=ipe(l,t,[...r,n]);return Object.keys(s).length>0?{...s,...u}:u}return a}function spe(e,t={}){return ipe(e,t,[])}var g6e=Object.prototype,b6e=g6e.hasOwnProperty;function y6e(e,t){return e!=null&&b6e.call(e,t)}var S6e=y6e,w6e=G1,C6e=aE,x6e=Pa,$6e=QF,E6e=Z9,_6e=c0;function k6e(e,t,r){t=w6e(t,e);for(var n=-1,o=t.length,a=!1;++nM8e)return[];var r=PM,n=B8e(e,PM);t=D8e(t),e-=PM;for(var o=N8e(n,t);++r({required:[c]}))};let u;if(s.anyOf){const{...c}=s;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u=Object.assign({},s,l);if(delete u.required,e.isValid(u,t,n))return i}else if(e.isValid(s,t,n))return i}return 0}function d7(e,t,r,n,o){return bpe(e,t,r,n,o)}var z8e=JF;function V8e(e,t){return z8e(e,t)}var f7=V8e;const Eg=zt(f7);var H8e=a7,W8e=G1,q8e=QF,gQ=Xs,U8e=c0;function K8e(e,t,r,n){if(!gQ(e))return e;t=W8e(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Q9e(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n-1}var g7=y7e;function S7e(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=N7e){var u=t?null:F7e(e);if(u)return O7e(u);i=!1,o=R7e,l=new P7e}else l=t?[]:s;e:for(;++nt||a&&i&&l&&!s&&!u||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var Z7e=Q7e,IM=zd,J7e=uE,eVe=nO,tVe=_pe,rVe=K7e,nVe=l0,oVe=Z7e,aVe=cE,iVe=Pa;function sVe(e,t,r){t.length?t=IM(t,function(a){return iVe(a)?function(i){return J7e(i,a.length===1?a[0]:a)}:a}):t=[aVe];var n=-1;t=IM(t,nVe(eVe));var o=tVe(e,function(a,i,s){var l=IM(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return rVe(o,function(a,i){return oVe(a,i,r)})}var lVe=sVe,uVe=rO,cVe=lVe,dVe=Hh,xQ=h7,fVe=dVe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&xQ(e,t[0],t[1])?t=[]:r>2&&xQ(t[0],t[1],t[2])&&(t=[t[0]]),cVe(e,uVe(t,1),[])}),kpe=fVe,pVe=y7;function mVe(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?pVe(e,void 0,t):[]}var S7=mVe,hVe=Hh,vVe=j1,gVe=h7,bVe=X1,Ppe=Object.prototype,yVe=Ppe.hasOwnProperty,SVe=hVe(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&gVe(t[0],t[1],o)&&(n=1);++r=120&&c.length>=120)?new CVe(i&&c):void 0}c=e[0];var d=-1,f=s[0];e:for(;++dArray.isArray(e)?e:[e],fu=e=>e===void 0,d2=e=>lI(e)||Array.isArray(e)?Object.keys(e):[],Ab=(e,t)=>e.hasOwnProperty(t),Ry=e=>VVe(w7(e)),kQ=e=>fu(e)||Array.isArray(e)&&e.length===0,qVe=(e,t,r,n)=>t&&Ab(t,r)&&e&&Ab(e,r)&&n(e[r],t[r]),FM=(e,t)=>fu(e)&&t===0||fu(t)&&e===0||Fc(e,t),UVe=(e,t)=>fu(e)&&t===!1||fu(t)&&e===!1||Fc(e,t),PQ=e=>fu(e)||Fc(e,{})||e===!0,f2=e=>fu(e)||Fc(e,{}),TQ=e=>fu(e)||lI(e)||e===!0||e===!1;function IQ(e,t){return kQ(e)&&kQ(t)?!0:Fc(Ry(e),Ry(t))}function KVe(e,t){return e=_Q(e),t=_Q(t),Fc(Ry(e),Ry(t))}function HP(e,t,r,n){var o=w7(d2(e).concat(d2(t)));return f2(e)&&f2(t)?!0:f2(e)&&d2(t).length||f2(t)&&d2(e).length?!1:o.every(function(a){var i=e[a],s=t[a];return Array.isArray(i)&&Array.isArray(s)?Fc(Ry(e),Ry(t)):Array.isArray(i)&&!Array.isArray(s)||Array.isArray(s)&&!Array.isArray(i)?!1:qVe(e,t,a,n)})}function GVe(e,t,r,n){return lI(e)&&lI(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?HP(e,t,r,n):Fc(e,t)}function OM(e,t,r,n){var o=EQ(e,n),a=EQ(t,n),i=WVe(o,a,n);return i.length===Math.max(o.length,a.length)}var YVe={title:Fc,uniqueItems:UVe,minLength:FM,minItems:FM,minProperties:FM,required:IQ,enum:IQ,type:KVe,items:GVe,anyOf:OM,allOf:OM,oneOf:OM,properties:HP,patternProperties:HP,dependencies:HP},XVe=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],QVe=["additionalProperties","additionalItems","contains","propertyNames","not"];function qj(e,t,r){if(r=HVe(r,{ignore:[]}),PQ(e)&&PQ(t))return!0;if(!TQ(e)||!TQ(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(RM(e)&&RM(t))return e===t;if(e===void 0&&t===!1||t===void 0&&e===!1||fu(e)&&!fu(t)||!fu(e)&&fu(t))return!1;var n=w7(Object.keys(e).concat(Object.keys(t)));if(r.ignore.length&&(n=n.filter(a=>r.ignore.indexOf(a)===-1)),!n.length)return!0;function o(a,i){return qj(a,i,r)}return n.every(function(a){var i=e[a],s=t[a];if(QVe.indexOf(a)!==-1)return qj(i,s,r);var l=YVe[a];if(l||(l=Fc),Fc(i,s))return!0;if(XVe.indexOf(a)===-1&&(!Ab(e,a)&&Ab(t,a)||Ab(e,a)&&!Ab(t,a)))return i===s;var u=l(i,s,a,o);if(!RM(u))throw new Error("Comparer must return true or false");return u})}var C7=qj;function ZVe(e){return Object.prototype.toString.call(e)==="[object Array]"}var x7=Array.isArray||ZVe;function JVe(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}var eHe=JVe,tHe=eHe;function rHe(e){return tHe(e)&&e%1===0}var nHe=rHe,oHe=x7,aHe=nHe;function iHe(e){var t;if(!oHe(e)||(t=e.length,!t))return!1;for(var r=0;rt&&(n=t,t=e,e=n),t=t-e}return r*e}function OQ(e,t){var r=0,n;if(e===0)return t;if(t===0)return e;for(;!(e&1)&&!(t&1);)e>>>=1,t>>>=1,r++;for(;!(e&1);)e>>>=1;for(;t;){for(;!(t&1);)t>>>=1;e>t&&(n=t,t=e,e=n),t=t-e}return e<1){if(n=t[0],r=t[1],!uHe(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(o=n.length,o<2)return null;if(r){for(a=new Array(o),s=0;s1){if(n=t[0],r=t[1],!pHe(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(o=n.length,o<2)return null;if(r){for(a=new Array(o),s=0;s-1;)s!==e&&MQ.call(s,l,1),MQ.call(e,l,1);return e}var HHe=VHe,WHe=HHe;function qHe(e,t){return e&&e.length&&t&&t.length?WHe(e,t):e}var UHe=qHe,KHe=n7,GHe=c7,YHe=hpe,XHe=Pa;function QHe(e,t){var r=XHe(e)?KHe:GHe;return r(e,YHe(t))}var $7=QHe;const ZHe=zt($7);var JHe=YF,eWe=g7,tWe=b7,rWe=zd,nWe=l0,oWe=XF,aWe=200;function iWe(e,t,r,n){var o=-1,a=eWe,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=rWe(t,nWe(r))),n?(a=tWe,i=!1):t.length>=aWe&&(a=oWe,i=!1,t=new JHe(t));e:for(;++ohWe(mWe(e.map(E7))),SWe=(e,t)=>e.map(r=>r&&r[t]),Ape=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),E7=e=>Dpe(e)||Array.isArray(e)?Object.keys(e):[],wWe=e=>e!==void 0,CWe=e=>Dpe(e)||e===!0||e===!1,Mpe=e=>!E7(e).length&&e!==!1&&e!==!0,xWe=(e,...t)=>gWe.apply(null,[e].concat(pWe(t)));var Bpe={allUniqueKeys:yWe,deleteUndefinedProps:bWe,getValues:SWe,has:Ape,isEmptySchema:Mpe,isSchema:CWe,keys:E7,notUndefined:wWe,uniqWith:vWe,withoutArr:xWe};const $We=C7,EWe=$7,{allUniqueKeys:_We,deleteUndefinedProps:kWe,getValues:PWe,keys:XS,notUndefined:TWe,uniqWith:IWe,withoutArr:BQ}=Bpe;function RWe(e){EWe(e,function(t,r){t===!1&&delete e[r]})}function jQ(e,t){return _We(e).reduce(function(n,o){const a=PWe(e,o),i=IWe(a.filter(TWe),$We);return n[o]=t(i,o),n},{})}var FWe={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach(function(a){const i=e.filter(c=>c!==a),s=XS(a.properties),u=XS(a.patternProperties).map(c=>new RegExp(c));i.forEach(function(c){const d=XS(c.properties),f=d.filter(h=>u.some(v=>v.test(h)));BQ(d,s,f).forEach(function(h){c.properties[h]=r.properties([c.properties[h],a.additionalProperties],h)})})}),e.forEach(function(a){const i=e.filter(l=>l!==a),s=XS(a.patternProperties);a.additionalProperties===!1&&i.forEach(function(l){const u=XS(l.patternProperties);BQ(u,s).forEach(d=>delete l.patternProperties[d])})}));const o={additionalProperties:r.additionalProperties(e.map(a=>a.additionalProperties)),patternProperties:jQ(e.map(a=>a.patternProperties),r.patternProperties),properties:jQ(e.map(a=>a.properties),r.properties)};return o.additionalProperties===!1&&RWe(o.properties),kWe(o)}};const OWe=C7,NWe=$7,{allUniqueKeys:DWe,deleteUndefinedProps:AWe,has:MWe,isSchema:jpe,notUndefined:Lpe,uniqWith:BWe}=Bpe;function jWe(e){NWe(e,function(t,r){t===!1&&e.splice(r,1)})}function LWe(e,t){return e.map(function(r){if(r)if(Array.isArray(r.items)){const n=r.items[t];if(jpe(n))return n;if(MWe(r,"additionalItems"))return r.additionalItems}else return r.items})}function zWe(e){return e.map(function(t){if(t)return Array.isArray(t.items)?t.additionalItems:t.items})}function VWe(e,t,r){return DWe(r).reduce(function(o,a){const i=LWe(e,a),s=BWe(i.filter(Lpe),OWe);return o[a]=t(s,a),o},[])}var HWe={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map(s=>s.items),o=n.filter(Lpe),a={};o.every(jpe)?a.items=r.items(n):a.items=VWe(e,r.items,n);let i;return o.every(Array.isArray)?i=e.map(s=>s.additionalItems):o.some(Array.isArray)&&(i=zWe(e)),i&&(a.additionalItems=r.additionalItems(i)),a.additionalItems===!1&&Array.isArray(a.items)&&jWe(a.items),AWe(a)}};const zpe=$pe,uI=C7,WWe=hHe,qWe=kHe,Vpe=s7,_7=v7,UWe=OHe,KWe=Rpe,Uj=f7,Fy=B1,GWe=UHe,Hpe=kpe,k7=aO,oy=S7,Wpe=FWe,qpe=HWe,m2=(e,t)=>e.indexOf(t)!==-1,YWe=e=>Fy(e)||e===!0||e===!1,XWe=e=>e===!1,Upe=e=>e===!0,iO=(e,t,r)=>r(e),Kpe=e=>Hpe(k7(_7(e))),cI=e=>e!==void 0,Gpe=e=>k7(_7(e.map(rqe))),Q1=e=>e[0],QWe=e=>Kpe(e),dE=e=>Math.max.apply(Math,e),fE=e=>Math.min.apply(Math,e),ZWe=e=>e.some(Upe),JWe=e=>oy(Vpe(e),Uj);function eqe(e){return function(t,r){return uI({[e]:t},{[e]:r})}}function Ype(e){let{allOf:t=[],...r}=e;return r=Fy(e)?r:e,[r,...t.map(Ype)]}function Xpe(e,t){return e.map(r=>r&&r[t])}function tqe(e,t){return e.map(function(r,n){try{return t(r,n)}catch{return}}).filter(cI)}function rqe(e){return Fy(e)||Array.isArray(e)?Object.keys(e):[]}function Kj(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?Kj(n,Vpe(t.map(o=>r.map(a=>[a].concat(o))))):Kj(n,r.map(o=>o))}function Qpe(e,t){let r;try{r=e.map(function(n){return JSON.stringify(n,null,2)}).join(` +`)}catch{r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+`". They are probably incompatible. Values: +`+r)}function nqe(e,t,r,n,o,a){if(e.length){const i=o.complexResolvers[t];if(!i||!i.resolver)throw new Error("No resolver found for "+t);const s=r.map(d=>e.reduce((f,p)=>(d[p]!==void 0&&(f[p]=d[p]),f),{})),l=oy(s,uI),u=i.keywords.reduce((d,f)=>({...d,[f]:(p,h=[])=>n(p,null,a.concat(f,h))}),{}),c=i.resolver(l,a.concat(t),u,o);return Fy(c)||Qpe(l,a.concat(t)),c}}function oqe(e){return{required:e}}const aqe=["properties","patternProperties","definitions","dependencies"],iqe=["anyOf","oneOf"],sqe=["additionalProperties","additionalItems","contains","propertyNames","not","items"],pn={type(e){if(e.some(Array.isArray)){const t=e.map(function(n){return Array.isArray(n)?n:[n]}),r=UWe.apply(null,t);if(r.length===1)return r[0];if(r.length>1)return k7(r)}},dependencies(e,t,r){return Gpe(e).reduce(function(o,a){const i=Xpe(e,a);let s=oy(i.filter(cI),Uj);const l=s.filter(Array.isArray);if(l.length){if(l.length===s.length)o[a]=Kpe(s);else{const u=s.filter(YWe),c=l.map(oqe);o[a]=r(u.concat(c),a)}return o}return s=oy(s,uI),o[a]=r(s,a),o},{})},oneOf(e,t,r){const n=Kj(zpe(e)),o=tqe(n,r),a=oy(o,uI);if(a.length)return a},not(e){return{anyOf:e}},pattern(e){return e.map(t=>"(?="+t+")").join("")},multipleOf(e){let t=e.slice(0),r=1;for(;t.some(n=>!Number.isInteger(n));)t=t.map(n=>n*10),r=r*10;return WWe(t)/r},enum(e){const t=KWe.apply(null,e.concat(Uj));if(t.length)return Hpe(t)}};pn.$id=Q1;pn.$ref=Q1;pn.$schema=Q1;pn.additionalItems=iO;pn.additionalProperties=iO;pn.anyOf=pn.oneOf;pn.contains=iO;pn.default=Q1;pn.definitions=pn.dependencies;pn.description=Q1;pn.examples=JWe;pn.exclusiveMaximum=fE;pn.exclusiveMinimum=dE;pn.items=qpe;pn.maximum=fE;pn.maxItems=fE;pn.maxLength=fE;pn.maxProperties=fE;pn.minimum=dE;pn.minItems=dE;pn.minLength=dE;pn.minProperties=dE;pn.properties=Wpe;pn.propertyNames=iO;pn.required=QWe;pn.title=Q1;pn.uniqueItems=ZWe;const lqe={properties:Wpe,items:qpe};function P7(e,t,r){t=qWe(t,{ignoreAdditionalProperties:!1,resolvers:pn,complexResolvers:lqe,deep:!0});const n=Object.entries(t.complexResolvers);function o(s,l,u){s=zpe(s.filter(cI)),u=u||[];const c=Fy(l)?l:{};if(!s.length)return;if(s.some(XWe))return!1;if(s.every(Upe))return!0;s=s.filter(Fy);const d=Gpe(s);if(t.deep&&m2(d,"allOf"))return P7({allOf:s},t);const f=n.map(([p,h])=>d.filter(v=>h.keywords.includes(v)));return f.forEach(p=>GWe(d,p)),d.forEach(function(p){const h=Xpe(s,p),v=oy(h.filter(cI),eqe(p));if(v.length===1&&m2(iqe,p))c[p]=v[0].map(b=>o([b],b));else if(v.length===1&&!m2(aqe,p)&&!m2(sqe,p))c[p]=v[0];else{const b=t.resolvers[p]||t.resolvers.defaultResolver;if(!b)throw new Error("No resolver found for key "+p+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const g=(y,S=[])=>o(y,null,u.concat(p,S));c[p]=b(v,u.concat(p),g,t),c[p]===void 0?Qpe(v,u.concat(p)):c[p]===void 0&&delete c[p]}}),n.reduce((p,[h,v],b)=>({...p,...nqe(f[b],h,s,o,t,u)}),c)}const a=_7(Ype(e));return o(a)}P7.options={resolvers:pn};var uqe=P7;const cqe=zt(uqe);function Oy(e){let t;const r=Wt(e,"discriminator.propertyName",void 0);return ag(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function Ax(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":isNaN(e)?typeof e=="object"?"object":"string":"number"}var dqe=rO,fqe=Hh,pqe=y7,mqe=oO,hqe=fqe(function(e){return pqe(dqe(e,1,mqe,!0))}),vqe=hqe;const gqe=zt(vqe);function yh(e){let{type:t}=e;return!t&&e.const?Ax(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function ep(e,t){const r=Object.assign({},e);return Object.keys(t).reduce((n,o)=>{const a=e?e[o]:{},i=t[o];return e&&o in e&&bo(i)?n[o]=ep(a,i):e&&t&&(yh(e)==="object"||yh(t)==="object")&&o===HFe&&Array.isArray(a)&&Array.isArray(i)?n[o]=gqe(a,i):n[o]=i,n},r)}function gl(e,t,r={},n){return dd(e,t,r,n)[0]}function bqe(e,t,r,n,o,a){const{if:i,then:s,else:l,...u}=t,c=e.isValid(i,a||{},r);let d=[u],f=[];if(n)s&&typeof s!="boolean"&&(f=f.concat(dd(e,s,r,a,n,o))),l&&typeof l!="boolean"&&(f=f.concat(dd(e,l,r,a,n,o)));else{const p=c?s:l;p&&typeof p!="boolean"&&(f=f.concat(dd(e,p,r,a,n,o)))}return f.length&&(d=f.map(p=>ep(u,p))),d.flatMap(p=>dd(e,p,r,a,n,o))}function Zpe(e){return e.reduce((r,n)=>n.length>1?n.flatMap(o=>vpe(r.length,a=>[...r[a]].concat(o))):(r.forEach(o=>o.push(n[0])),r),[[]])}function yqe(e,t,r,n,o,a){const i=Jpe(e,t,r,n,o,a);if(i.length>1||i[0]!==t)return i;if(zF in t)return eme(e,t,r,n,o,a).flatMap(l=>dd(e,l,r,a,n,o));if(oE in t&&Array.isArray(t.allOf)){const s=t.allOf.map(u=>dd(e,u,r,a,n,o));return Zpe(s).map(u=>({...t,allOf:u}))}return[t]}function Jpe(e,t,r,n,o,a){const i=Mx(t,r,o);return i!==t?dd(e,i,r,a,n,o):[t]}function Mx(e,t,r){if(!bo(e))return e;let n=e;if(Ca in n){const{$ref:o,...a}=n;if(r.includes(o))return n;r.push(o),n={...spe(o,t),...a}}if(Lo in n){const o=[],a=u9e(n[Lo],(i,s,l)=>{const u=[...r];i[l]=Mx(s,t,u),o.push(u)},{});n7e(r,B7e(s7e(o))),n={...n,[Lo]:a}}return ah in n&&!Array.isArray(n.items)&&typeof n.items!="boolean"&&(n={...n,items:Mx(n.items,t,r)}),Eg(e,n)?e:n}function Sqe(e,t,r,n){const o={...t,properties:{...t.properties}},a=n&&bo(n)?n:{};return Object.keys(a).forEach(i=>{if(i in o.properties)return;let s={};typeof o.additionalProperties!="boolean"?Ca in o.additionalProperties?s=gl(e,{$ref:Wt(o.additionalProperties,[Ca])},r,a):"type"in o.additionalProperties?s={...o.additionalProperties}:cd in o.additionalProperties||du in o.additionalProperties?s={type:"object",...o.additionalProperties}:s={type:Ax(Wt(a,[i]))}:s={type:Ax(Wt(a,[i]))},o.properties[i]=s,as(o.properties,[i,Nl],!0)}),o}function dd(e,t,r,n,o=!1,a=[]){return bo(t)?yqe(e,t,r,o,a,n).flatMap(s=>{var c;let l=s;if(zFe in l)return bqe(e,l,r,o,a,n);if(oE in l){if(o){const{allOf:d,...f}=l;return[...d,f]}try{const d=[],f=[];(c=l.allOf)==null||c.forEach(p=>{typeof p=="object"&&p.contains?d.push(p):f.push(p)}),d.length&&(l={...l,allOf:f}),l=cqe(l,{deep:!1}),d.length&&(l.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf: +`,d);const{allOf:f,...p}=l;return p}}return jj in l&&l.additionalProperties!==!1?Sqe(e,l,r,n):l}):[{}]}function wqe(e,t,r,n,o){let a;const{oneOf:i,anyOf:s,...l}=t;if(Array.isArray(i)?a=i:Array.isArray(s)&&(a=s),a){const u=o===void 0&&n?{}:o,c=Oy(t);a=a.map(f=>Mx(f,r,[]));const d=d7(e,u,a,r,c);if(n)return a.map(f=>ep(l,f));t=ep(l,a[d])}return[t]}function eme(e,t,r,n,o,a){const{dependencies:i,...s}=t;return wqe(e,s,r,n,a).flatMap(u=>tme(e,i,u,r,n,o,a))}function tme(e,t,r,n,o,a,i){let s=[r];for(const l in t){if(!o&&Wt(i,[l])===void 0||r.properties&&!(l in r.properties))continue;const[u,c]=l7(l,t);return Array.isArray(c)?s[0]=Cqe(r,c):bo(c)&&(s=xqe(e,r,n,l,c,o,a,i)),s.flatMap(d=>tme(e,u,d,n,o,a,i))}return s}function Cqe(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function xqe(e,t,r,n,o,a,i,s){return dd(e,o,r,s,a,i).flatMap(u=>{const{oneOf:c,...d}=u;if(t=ep(t,d),c===void 0)return t;const f=c.map(h=>typeof h=="boolean"||!(Ca in h)?[h]:Jpe(e,h,r,a,i,s));return Zpe(f).flatMap(h=>$qe(e,t,r,n,h,a,i,s))})}function $qe(e,t,r,n,o,a,i,s){const l=o.filter(u=>{if(typeof u=="boolean"||!u||!u.properties)return!1;const{[n]:c}=u.properties;if(c){const d={type:"object",properties:{[n]:c}};return e.isValid(d,s,r)||a}return!1});return!a&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(u=>{const c=u,[d]=l7(n,c.properties),f={...c,properties:d};return dd(e,f,r,s,a,i).map(h=>ep(t,h))})}const Eqe={type:"object",$id:VFe,properties:{__not_really_there__:{type:"number"}}};function Gj(e,t,r,n={}){let o=0;return r&&(vl(r.properties)?o+=u8e(r.properties,(a,i,s)=>{const l=Wt(n,s);if(typeof i=="boolean")return a;if(us(i,Ca)){const u=gl(e,i,t,l);return a+Gj(e,t,u,l||{})}if((us(i,du)||us(i,cd))&&l){const u=us(i,du)?du:cd,c=Oy(i);return a+Bx(e,t,l,Wt(i,u),-1,c)}if(i.type==="object")return a+Gj(e,t,i,l||{});if(i.type===Ax(l)){let u=a+1;return i.default?u+=l===i.default?1:-1:i.const&&(u+=l===i.const?1:-1),u}return a},0):ag(r.type)&&r.type===Ax(n)&&(o+=1)),o}function Bx(e,t,r,n,o=-1,a){const i=n.map(d=>Mx(d,t,[])),s=gpe(r,n,a);if(u7(s))return s;const l=i.reduce((d,f,p)=>(d7(e,r,[Eqe,f],t,a)===1&&d.push(p),d),[]);if(l.length===1)return l[0];l.length||vpe(i.length,d=>l.push(d));const u=new Set,{bestIndex:c}=l.reduce((d,f)=>{const{bestScore:p}=d,h=i[f],v=Gj(e,t,h,r);return u.add(v),v>p?{bestIndex:f,bestScore:v}:d},{bestIndex:o,bestScore:0});return u.size===1&&o>=0?o:c}function dI(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>bo(t))}function fI(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=t.map((a,i)=>n[i]?fI(n[i],a,r):a);return r&&o.length(o[a]=fI(e?Wt(e,a):{},Wt(t,a),r),o),n)}return t}function ih(e,t,r=!1){return Object.keys(t).reduce((n,o)=>{const a=e?e[o]:{},i=t[o];if(e&&o in e&&bo(i))n[o]=ih(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let s=i;r==="preventDuplicates"&&(s=i.reduce((l,u)=>(a.includes(u)||l.push(u),l),[])),n[o]=a.concat(s)}else n[o]=i;return n},Object.assign({},e))}function _qe(e){return Array.isArray(e.enum)&&e.enum.length===1||hfe in e}function rme(e,t,r={}){const n=gl(e,t,r,void 0),o=n.oneOf||n.anyOf;return Array.isArray(n.enum)?!0:Array.isArray(o)?o.every(a=>typeof a!="boolean"&&_qe(a)):!1}function T7(e,t,r){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:rme(e,t.items,r)}function NM(e,t=0,r=-1){if(r>=0){if(Array.isArray(e.items)&&rsh(e,b,{rootSchema:a,includeUndefinedValues:i,_recurseList:s,experimental_defaultFormStateBehavior:l,parentDefaults:Array.isArray(n)?n[g]:void 0,rawFormData:c,required:u}));else if(du in d){const{oneOf:b,...g}=d;if(b.length===0)return;const y=Oy(d);p=b[Bx(e,a,bh(c)?void 0:c,b,0,y)],p=ep(g,p)}else if(cd in d){const{anyOf:b,...g}=d;if(b.length===0)return;const y=Oy(d);p=b[Bx(e,a,bh(c)?void 0:c,b,0,y)],p=ep(g,p)}return p?sh(e,p,{rootSchema:a,includeUndefinedValues:i,_recurseList:h,experimental_defaultFormStateBehavior:l,parentDefaults:f,rawFormData:c,required:u}):(f===void 0&&(f=d.default),zQ(e,d,r,f)??f)}function kqe(e,t,{rawFormData:r,rootSchema:n={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:i=void 0,required:s}={},l){{const u=bo(r)?r:{},c=t,d=(i==null?void 0:i.allOf)==="populateDefaults"&&oE in c?gl(e,c,n,u):c,f=Object.keys(d.properties||{}).reduce((p,h)=>{var b;const v=sh(e,Wt(d,[Lo,h]),{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,includeUndefinedValues:o===!0,parentDefaults:Wt(l,[h]),rawFormData:Wt(u,[h]),required:(b=d.required)==null?void 0:b.includes(h)});return LQ(p,h,v,o,s,d.required,i),p},{});if(d.additionalProperties){const p=bo(d.additionalProperties)?d.additionalProperties:{},h=new Set;bo(l)&&Object.keys(l).filter(b=>!d.properties||!d.properties[b]).forEach(b=>h.add(b));const v=[];Object.keys(u).filter(b=>!d.properties||!d.properties[b]).forEach(b=>{h.add(b),v.push(b)}),h.forEach(b=>{var y;const g=sh(e,p,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,includeUndefinedValues:o===!0,parentDefaults:Wt(l,[b]),rawFormData:Wt(u,[b]),required:(y=d.required)==null?void 0:y.includes(b)});LQ(f,b,g,o,s,v)})}return f}}function Pqe(e,t,{rawFormData:r,rootSchema:n={},_recurseList:o=[],experimental_defaultFormStateBehavior:a=void 0,required:i}={},s){var S,w,$;const l=t,u=((S=a==null?void 0:a.arrayMinItems)==null?void 0:S.populate)==="never",c=((w=a==null?void 0:a.arrayMinItems)==null?void 0:w.populate)==="requiredOnly",d=(a==null?void 0:a.emptyObjectFields)==="skipEmptyDefaults",f=(($=a==null?void 0:a.arrayMinItems)==null?void 0:$.computeSkipPopulate)??(()=>!1),p=d?void 0:[];if(Array.isArray(s)&&(s=s.map((C,x)=>{const E=NM(l,2,x);return sh(e,E,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,parentDefaults:C,required:i})})),Array.isArray(r)){const C=NM(l);u?s=r:s=r.map((x,E)=>sh(e,C,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,rawFormData:x,parentDefaults:Wt(s,[E]),required:i}))}if(u)return s??p;if(c&&!i)return s||void 0;const h=Array.isArray(s)?s.length:0;if(!l.minItems||T7(e,l,n)||f(e,l,n)||l.minItems<=h)return s||p;const v=s||[],b=NM(l,1),g=b.default,y=new Array(l.minItems-h).fill(sh(e,b,{parentDefaults:g,rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,required:i}));return v.concat(y)}function zQ(e,t,r={},n){switch(yh(t)){case"object":return kqe(e,t,r,n);case"array":return Pqe(e,t,r,n)}}function I7(e,t,r,n,o=!1,a){if(!bo(t))throw new Error("Invalid schema: "+t);const i=gl(e,t,n,r),s=sh(e,i,{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:r});if(r==null||typeof r=="number"&&isNaN(r))return s;const{mergeExtraDefaults:l}=(a==null?void 0:a.arrayMinItems)||{};return bo(r)||Array.isArray(r)?fI(s,r,l):r}function nme(e={}){return"widget"in At(e)&&At(e).widget!=="hidden"}function ome(e,t,r={},n){if(r[q9]==="files")return!0;if(t.items){const o=gl(e,t.items,n);return o.type==="string"&&o.format==="data-url"}return!1}function Tqe(e,t,r={},n,o){const a=At(r,o),{label:i=!0}=a;let s=!!i;const l=yh(t);return l==="array"&&(s=T7(e,t,n)||ome(e,t,r,n)||nme(r)),l==="object"&&(s=!1),l==="boolean"&&!r[q9]&&(s=!1),r[WFe]&&(s=!1),s}function Iqe(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),i=r;return bh(o)||(i=ih(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}const B0=Symbol("no Value");function Yj(e,t,r,n,o={}){let a;if(us(r,Lo)){const i={};if(us(n,Lo)){const u=Wt(n,Lo,{});Object.keys(u).forEach(c=>{us(o,c)&&(i[c]=void 0)})}const s=Object.keys(Wt(r,Lo,{})),l={};s.forEach(u=>{const c=Wt(o,u);let d=Wt(n,[Lo,u],{}),f=Wt(r,[Lo,u],{});us(d,Ca)&&(d=gl(e,d,t,c)),us(f,Ca)&&(f=gl(e,f,t,c));const p=Wt(d,"type"),h=Wt(f,"type");if(!p||p===h)if(us(i,u)&&delete i[u],h==="object"||h==="array"&&Array.isArray(c)){const v=Yj(e,t,f,d,c);(v!==void 0||h==="array")&&(l[u]=v)}else{const v=Wt(f,"default",B0),b=Wt(d,"default",B0);v!==B0&&v!==c&&(b===c?i[u]=v:Wt(f,"readOnly")===!0&&(i[u]=void 0));const g=Wt(f,"const",B0),y=Wt(d,"const",B0);g!==B0&&g!==c&&(i[u]=y===c?g:void 0)}}),a={...typeof o=="string"||Array.isArray(o)?void 0:o,...i,...l}}else if(Wt(n,"type")==="array"&&Wt(r,"type")==="array"&&Array.isArray(o)){let i=Wt(n,"items"),s=Wt(r,"items");if(typeof i=="object"&&typeof s=="object"&&!Array.isArray(i)&&!Array.isArray(s)){us(i,Ca)&&(i=gl(e,i,t,o)),us(s,Ca)&&(s=gl(e,s,t,o));const l=Wt(i,"type"),u=Wt(s,"type");if(!l||l===u){const c=Wt(r,"maxItems",-1);u==="object"?a=o.reduce((d,f)=>{const p=Yj(e,t,s,i,f);return p!==void 0&&(c<0||d.length0&&o.length>c?o.slice(0,c):o}}else typeof i=="boolean"&&typeof s=="boolean"&&i===s&&(a=o)}return a}function WP(e,t,r,n,o,a,i,s=[]){if(Ca in t||zF in t||oE in t){const c=gl(e,t,a,i);if(s.findIndex(f=>Eg(f,c))===-1)return WP(e,c,r,n,o,a,i,s.concat(c))}if(ah in t&&!Wt(t,[ah,Ca]))return WP(e,Wt(t,ah),r,n,o,a,i,s);const u={$id:o||r};if(yh(t)==="object"&&Lo in t)for(const c in t.properties){const d=Wt(t,[Lo,c]),f=u[Mm]+n+c;u[c]=WP(e,bo(d)?d:{},r,n,f,a,Wt(i,[c]),s)}return u}function Rqe(e,t,r,n,o,a="root",i="_"){return WP(e,t,a,i,r,n,o)}function xv(e,t,r,n,o,a=[]){if(Ca in t||zF in t||oE in t){const s=gl(e,t,n,o);if(a.findIndex(u=>Eg(u,s))===-1)return xv(e,s,r,n,o,a.concat(s))}let i={[zP]:r.replace(/^\./,"")};if(du in t||cd in t){const s=du in t?t.oneOf:t.anyOf,l=Oy(t),u=Bx(e,n,o,s,0,l),c=s[u];i={...i,...xv(e,c,r,n,o,a)}}if(jj in t&&t[jj]!==!1&&as(i,W9,!0),ah in t&&Array.isArray(o)){const{items:s,additionalItems:l}=t;Array.isArray(s)?o.forEach((u,c)=>{s[c]?i[c]=xv(e,s[c],`${r}.${c}`,n,u,a):l?i[c]=xv(e,l,`${r}.${c}`,n,u,a):console.warn(`Unable to generate path schema for "${r}.${c}". No schema defined for it`)}):o.forEach((u,c)=>{i[c]=xv(e,s,`${r}.${c}`,n,u,a)})}else if(Lo in t)for(const s in t.properties){const l=Wt(t,[Lo,s]);i[s]=xv(e,l,`${r}.${s}`,n,Wt(o,[s]),a)}return i}function Fqe(e,t,r="",n,o){return xv(e,t,r,n,o)}class Oqe{constructor(t,r,n){this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,n={}){return!t||!r?!1:this.validator!==t||!Ii(this.rootSchema,r)||!Ii(this.experimental_defaultFormStateBehavior,n)}getDefaultFormState(t,r,n=!1){return I7(this.validator,t,r,this.rootSchema,n,this.experimental_defaultFormStateBehavior)}getDisplayLabel(t,r,n){return Tqe(this.validator,t,r,this.rootSchema,n)}getClosestMatchingOption(t,r,n,o){return Bx(this.validator,this.rootSchema,t,r,n,o)}getFirstMatchingOption(t,r,n){return d7(this.validator,t,r,this.rootSchema,n)}getMatchingOption(t,r,n){return bpe(this.validator,t,r,this.rootSchema,n)}isFilesArray(t,r){return ome(this.validator,t,r,this.rootSchema)}isMultiSelect(t){return T7(this.validator,t,this.rootSchema)}isSelect(t){return rme(this.validator,t,this.rootSchema)}mergeValidationData(t,r){return Iqe(this.validator,t,r)}retrieveSchema(t,r){return gl(this.validator,t,this.rootSchema,r)}sanitizeDataForNewSchema(t,r,n){return Yj(this.validator,this.rootSchema,t,r,n)}toIdSchema(t,r,n,o="root",a="_"){return Rqe(this.validator,t,r,this.rootSchema,n,o,a)}toPathSchema(t,r,n){return Fqe(this.validator,t,r,this.rootSchema,n)}}function Nqe(e,t,r={}){return new Oqe(e,t,r)}function Dqe(e){var u;if(e.indexOf("data:")===-1)throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(r.length!==2)throw new Error("File is invalid: dataURI must be base64");const[n,o]=r,[a,...i]=n.split(";"),s=a||"",l=decodeURI(((u=i.map(c=>c.split("=")).find(([c])=>c==="name"))==null?void 0:u[1])||"unknown");try{const c=atob(o),d=new Array(c.length);for(let p=0;p 0, got one of each`);if(e>t)return sO(t,e).reverse();const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:ac(n,2)});return r}function Aqe(e,t){let r=e;if(Array.isArray(t)){const n=r.split(/(%\d)/);t.forEach((o,a)=>{const i=n.findIndex(s=>s===`%${a+1}`);i>=0&&(n[i]=o)}),r=n.join("")}return r}function Mqe(e,t){return Aqe(e,t)}function Tt(e,t=[],r){if(Array.isArray(e))return e.map(a=>Tt(a,t)).filter(a=>a!==r);const n=e===""||e===null?-1:Number(e),o=t[n];return o?o.value:r}function Wh(e,t,r=[]){const n=Tt(e,r);return Array.isArray(t)?t.filter(o=>!Eg(o,n)):Eg(n,t)?void 0:t}function Fu(e,t){return Array.isArray(t)?t.some(r=>Eg(r,e)):Eg(t,e)}function mi(e,t=[],r=!1){const n=t.map((o,a)=>Fu(o.value,e)?String(a):void 0).filter(o=>typeof o<"u");return r?n:n[0]}function Bqe(e){return e==null}var jqe=Bqe;const ame=zt(jqe);function qh(e,t,r=[]){const n=Tt(e,r);if(!ame(n)){const o=r.findIndex(s=>n===s.value),a=r.map(({value:s})=>s);return t.slice(0,o).concat(n,t.slice(o)).sort((s,l)=>+(a.indexOf(s)>a.indexOf(l)))}return t}var Lqe=p7;function zqe(e,t,r,n){return n=typeof n=="function"?n:void 0,e==null?e:Lqe(e,t,r,n)}var Vqe=zqe;const Hqe=zt(Vqe);class ime{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let n=Array.isArray(t)&&t.length>0||typeof t=="string"?Wt(this.errorSchema,t):this.errorSchema;return!n&&t&&(n={},Hqe(this.errorSchema,t,n,Object)),n}resetAllErrors(t){return this.errorSchema=t?Epe(t):{},this}addErrors(t,r){const n=this.getOrCreateErrorBlock(r);let o=Wt(n,Sc);return Array.isArray(o)||(o=[],n[Sc]=o),Array.isArray(t)?o.push(...t):o.push(t),this}setErrors(t,r){const n=this.getOrCreateErrorBlock(r),o=Array.isArray(t)?[...t]:[t];return as(n,Sc,o),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return as(r,Sc,[]),this}}function R7(e,t,r=[1900,new Date().getFullYear()+2],n="YMD"){const{day:o,month:a,year:i,hour:s,minute:l,second:u}=e,c={type:"day",range:[1,31],value:o},d={type:"month",range:[1,12],value:a},f={type:"year",range:r,value:i},p=[];switch(n){case"MDY":p.push(d,c,f);break;case"DMY":p.push(c,d,f);break;case"YMD":default:p.push(f,d,c)}return t&&p.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),p}function _p(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function kp(e,t,r={},n=!0){const o={type:t||"text",..._p(e)};return r.inputType?o.type=r.inputType:t||(e.type==="number"?(o.type="number",n&&o.step===void 0&&(o.step="any")):e.type==="integer"&&(o.type="number",o.step===void 0&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),o}const VQ={props:{disabled:!1},submitText:"Submit",norender:!1};function Pp(e={}){const t=At(e);if(t&&t[tI]){const r=t[tI];return{...VQ,...r}}return VQ}function Ct(e,t,r={}){const{templates:n}=t;return e==="ButtonTemplates"?n[e]:r[e]||n[e]}var sme={exports:{}},Pn={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var F7=Symbol.for("react.element"),O7=Symbol.for("react.portal"),lO=Symbol.for("react.fragment"),uO=Symbol.for("react.strict_mode"),cO=Symbol.for("react.profiler"),dO=Symbol.for("react.provider"),fO=Symbol.for("react.context"),Wqe=Symbol.for("react.server_context"),pO=Symbol.for("react.forward_ref"),mO=Symbol.for("react.suspense"),hO=Symbol.for("react.suspense_list"),vO=Symbol.for("react.memo"),gO=Symbol.for("react.lazy"),qqe=Symbol.for("react.offscreen"),lme;lme=Symbol.for("react.module.reference");function Ou(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case F7:switch(e=e.type,e){case lO:case cO:case uO:case mO:case hO:return e;default:switch(e=e&&e.$$typeof,e){case Wqe:case fO:case pO:case gO:case vO:case dO:return e;default:return t}}case O7:return t}}}Pn.ContextConsumer=fO;Pn.ContextProvider=dO;Pn.Element=F7;Pn.ForwardRef=pO;Pn.Fragment=lO;Pn.Lazy=gO;Pn.Memo=vO;Pn.Portal=O7;Pn.Profiler=cO;Pn.StrictMode=uO;Pn.Suspense=mO;Pn.SuspenseList=hO;Pn.isAsyncMode=function(){return!1};Pn.isConcurrentMode=function(){return!1};Pn.isContextConsumer=function(e){return Ou(e)===fO};Pn.isContextProvider=function(e){return Ou(e)===dO};Pn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===F7};Pn.isForwardRef=function(e){return Ou(e)===pO};Pn.isFragment=function(e){return Ou(e)===lO};Pn.isLazy=function(e){return Ou(e)===gO};Pn.isMemo=function(e){return Ou(e)===vO};Pn.isPortal=function(e){return Ou(e)===O7};Pn.isProfiler=function(e){return Ou(e)===cO};Pn.isStrictMode=function(e){return Ou(e)===uO};Pn.isSuspense=function(e){return Ou(e)===mO};Pn.isSuspenseList=function(e){return Ou(e)===hO};Pn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lO||e===cO||e===uO||e===mO||e===hO||e===qqe||typeof e=="object"&&e!==null&&(e.$$typeof===gO||e.$$typeof===vO||e.$$typeof===dO||e.$$typeof===fO||e.$$typeof===pO||e.$$typeof===lme||e.getModuleId!==void 0)};Pn.typeOf=Ou;sme.exports=Pn;var N7=sme.exports;const HQ=zt(N7),DM={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Uqe(e){let t=Wt(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:n,...o})=>T.jsx(e,{options:{...r,...n},...o}),as(e,"MergedWidget",t)}return t}function Rf(e,t,r={}){const n=yh(e);if(typeof t=="function"||t&&HQ.isForwardRef(m.createElement(t))||HQ.isMemo(t))return Uqe(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t}`);if(t in r){const o=r[t];return Rf(e,o,r)}if(typeof n=="string"){if(!(n in DM))throw new Error(`No widget for type '${n}'`);if(t in DM[n]){const o=r[DM[n][t]];return Rf(e,o,r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function Kqe(e){let t=0;for(let r=0;r(t.add(r),n)),Kqe(JSON.stringify(e,Array.from(t).sort()))}function Yqe(e,t,r={}){try{return Rf(e,t,r),!0}catch(n){const o=n;if(o.message&&(o.message.startsWith("No widget")||o.message.startsWith("Unsupported widget")))return!1;throw n}}function pE(e,t){return`${ag(e)?e:e[Mm]}__${t}`}function pa(e){return pE(e,"description")}function Vd(e){return pE(e,"error")}function da(e){return pE(e,"examples")}function Tp(e){return pE(e,"help")}function Nu(e){return pE(e,"title")}function Ot(e,t=!1){const r=t?` ${da(e)}`:"";return`${Vd(e)} ${pa(e)} ${Tp(e)}${r}`}function Wa(e,t){return`${e}-${t}`}function wr(e,t,r){return t?r:e}function ume(e){return e?new Date(e).toJSON():void 0}function Xqe(e){if(LFe in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(hfe in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function pI(e,t){const r=e;if(e.enum){let a;if(t){const{enumNames:i}=At(t);a=i}return!a&&r.enumNames&&(a=r.enumNames),e.enum.map((i,s)=>({label:(a==null?void 0:a[s])||String(i),value:i}))}let n,o;return e.anyOf?(n=e.anyOf,o=t==null?void 0:t.anyOf):e.oneOf&&(n=e.oneOf,o=t==null?void 0:t.oneOf),n&&n.map((a,i)=>{const{title:s}=At(o==null?void 0:o[i]),l=a,u=Xqe(l),c=s||l.title||String(u);return{schema:l,label:c,value:u}})}function Qqe(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((d,f)=>(d[f]=!0,d),{}),n=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,o=r(e),a=t.filter(c=>c==="*"||o[c]),i=r(a),s=e.filter(c=>!i[c]),l=a.indexOf("*");if(l===-1){if(s.length)throw new Error(`uiSchema order list does not contain ${n(s)}`);return a}if(l!==a.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...a];return u.splice(l,1,...s),u}function Ff(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function kd(e){if(e.const||e.enum&&e.enum.length===1&&e.enum[0]===!0)return!0;if(e.anyOf&&e.anyOf.length===1)return kd(e.anyOf[0]);if(e.oneOf&&e.oneOf.length===1)return kd(e.oneOf[0]);if(e.allOf){const t=r=>kd(r);return e.allOf.some(t)}return!1}function Zqe(e,t,r){const{props:n,state:o}=e;return!Ii(n,t)||!Ii(o,r)}function Ny(e,t=!0){const{year:r,month:n,day:o,hour:a=0,minute:i=0,second:s=0}=e,l=Date.UTC(r,n-1,o,a,i,s),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function Dy(e,t=[]){if(!e)return[];let r=[];return Sc in e&&(r=r.concat(e[Sc].map(n=>{const o=`.${t.join(".")}`;return{property:o,message:n,stack:`${o} ${n}`}}))),Object.keys(e).reduce((n,o)=>{if(o!==Sc){const a=e[o];U9(a)&&(n=n.concat(Dy(a,[...t,o])))}return n},r)}var Jqe=zd,eUe=tO,tUe=Pa,rUe=U1,nUe=Dfe,oUe=c0,aUe=K1;function iUe(e){return tUe(e)?Jqe(e,oUe):rUe(e)?[e]:eUe(nUe(aUe(e)))}var sUe=iUe;const cme=zt(sUe);function dme(e){const t=new ime;return e.length&&e.forEach(r=>{const{property:n,message:o}=r,a=n==="."?[]:cme(n);a.length>0&&a[0]===""&&a.splice(0,1),o&&t.addErrors(o,a)}),t.ErrorSchema}function D7(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;{const n=e[r];return U9(n)?{...t,[r]:D7(n)}:{...t,[r]:n}}},{})}function fme(e){if(!e)return"";const t=new Date(e),r=ac(t.getFullYear(),4),n=ac(t.getMonth()+1,2),o=ac(t.getDate(),2),a=ac(t.getHours(),2),i=ac(t.getMinutes(),2),s=ac(t.getSeconds(),2),l=ac(t.getMilliseconds(),3);return`${r}-${n}-${o}T${a}:${i}:${s}.${l}`}function fC(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=Dy(t),a=t;return bh(n)||(a=ih(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function lUe(e){for(const t in e){const r=e,n=r[t];t===Ca&&typeof n=="string"&&n.startsWith("#")?r[t]=Db+n:r[t]=bO(n)}return e}function uUe(e){for(let t=0;t(e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)",e))($t||{}),cUe=uE,dUe=p7,fUe=G1;function pUe(e,t,r){for(var n=-1,o=t.length,a={};++ncrypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function Xj(){return pme()}function WQ(e){return Array.isArray(e)?e.map(t=>({key:Xj(),item:t})):[]}function QS(e){return Array.isArray(e)?e.map(t=>t.item):[]}class xUe extends m.Component{constructor(t){super(t),this._getNewFormDataRow=()=>{const{schema:o,registry:a}=this.props,{schemaUtils:i}=a;let s=o.items;return dI(o)&&BFe(o)&&(s=o.additionalItems),i.getDefaultFormState(s)},this.onAddClick=o=>{this._handleAddClick(o)},this.onAddIndexClick=o=>a=>{this._handleAddClick(a,o)},this.onCopyIndexClick=o=>a=>{a&&a.preventDefault();const{onChange:i,errorSchema:s}=this.props,{keyedFormData:l}=this.state;let u;if(s){u={};for(const f in s){const p=parseInt(f);p<=o?as(u,[p],s[f]):p>o&&as(u,[p+1],s[f])}}const c={key:Xj(),item:Epe(l[o].item)},d=[...l];o!==void 0?d.splice(o+1,0,c):d.push(c),this.setState({keyedFormData:d,updatedKeyedFormData:!0},()=>i(QS(d),u))},this.onDropIndexClick=o=>a=>{a&&a.preventDefault();const{onChange:i,errorSchema:s}=this.props,{keyedFormData:l}=this.state;let u;if(s){u={};for(const d in s){const f=parseInt(d);fo&&as(u,[f-1],s[d])}}const c=l.filter((d,f)=>f!==o);this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>i(QS(c),u))},this.onReorderClick=(o,a)=>i=>{i&&(i.preventDefault(),i.currentTarget.blur());const{onChange:s,errorSchema:l}=this.props;let u;if(l){u={};for(const p in l){const h=parseInt(p);h==o?as(u,[a],l[o]):h==a?as(u,[o],l[a]):as(u,[p],l[h])}}const{keyedFormData:c}=this.state;function d(){const p=c.slice();return p.splice(o,1),p.splice(a,0,c[o]),p}const f=d();this.setState({keyedFormData:f},()=>s(QS(f),u))},this.onChangeForIndex=o=>(a,i,s)=>{const{formData:l,onChange:u,errorSchema:c}=this.props,f=(Array.isArray(l)?l:[]).map((p,h)=>o===h?typeof a>"u"?null:a:p);u(f,c&&c&&{...c,[o]:i},s)},this.onSelectChange=o=>{const{onChange:a,idSchema:i}=this.props;a(o,void 0,i&&i.$id)};const{formData:r=[]}=t,n=WQ(r);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(t,r){if(r.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(t.formData)?t.formData:[],o=r.keyedFormData||[];return{keyedFormData:n.length===o.length?o.map((i,s)=>({key:i.key,item:n[s]})):WQ(n)}}get itemTitle(){const{schema:t,registry:r}=this.props,{translateString:n}=r;return Wt(t,[ah,"title"],Wt(t,[ah,"description"],n($t.ArrayItemTitle)))}isItemRequired(t){return Array.isArray(t.type)?!t.type.includes("null"):t.type!=="null"}canAddItem(t){const{schema:r,uiSchema:n,registry:o}=this.props;let{addable:a}=At(n,o.globalUiOptions);return a!==!1&&(r.maxItems!==void 0?a=t.length=r&&as(i,[c+1],o[u])}}const s={key:Xj(),item:this._getNewFormDataRow()},l=[...a];r!==void 0?l.splice(r,0,s):l.push(s),this.setState({keyedFormData:l,updatedKeyedFormData:!0},()=>n(QS(l),i))}render(){const{schema:t,uiSchema:r,idSchema:n,registry:o}=this.props,{schemaUtils:a,translateString:i}=o;if(!(ah in t)){const s=At(r),l=Ct("UnsupportedFieldTemplate",o,s);return T.jsx(l,{schema:t,idSchema:n,reason:i($t.MissingItems),registry:o})}return a.isMultiSelect(t)?this.renderMultiSelect():nme(r)?this.renderCustomWidget():dI(t)?this.renderFixedArray():a.isFilesArray(t,r)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:t,uiSchema:r={},errorSchema:n,idSchema:o,name:a,title:i,disabled:s=!1,readonly:l=!1,autofocus:u=!1,required:c=!1,registry:d,onBlur:f,onFocus:p,idPrefix:h,idSeparator:v="_",rawErrors:b}=this.props,{keyedFormData:g}=this.state,y=t.title||i||a,{schemaUtils:S,formContext:w}=d,$=At(r),C=vl(t.items)?t.items:{},x=S.retrieveSchema(C),E=QS(this.state.keyedFormData),_=this.canAddItem(E),k={canAdd:_,items:g.map((N,z)=>{const{key:O,item:A}=N,M=A,L=S.retrieveSchema(C,M),j=n?n[z]:void 0,H=o.$id+v+z,B=S.toIdSchema(L,H,M,h,v);return this.renderArrayFieldItem({key:O,index:z,name:a&&`${a}-${z}`,title:y?`${y}-${z+1}`:void 0,canAdd:_,canMoveUp:z>0,canMoveDown:zC.retrieveSchema(O,n[A])),k=vl(t.additionalItems)?C.retrieveSchema(t.additionalItems,n):null;(!S||S.length<_.length)&&(S=S||[],S=S.concat(new Array(_.length-S.length)));const I=this.canAddItem(S)&&!!k,N={canAdd:I,className:"field field-array field-array-fixed-items",disabled:c,idSchema:s,formData:n,items:y.map((O,A)=>{const{key:M,item:L}=O,j=L,H=A>=_.length,B=(H&&vl(t.additionalItems)?C.retrieveSchema(t.additionalItems,j):_[A])||{},F=s.$id+i+A,V=C.toIdSchema(B,F,j,a,i),D=H?r.additionalItems||{}:Array.isArray(r.items)?r.items[A]:r.items||{},P=o?o[A]:void 0;return this.renderArrayFieldItem({key:M,index:A,name:l&&`${l}-${A}`,title:w?`${w}-${A+1}`:void 0,canAdd:I,canRemove:H,canMoveUp:A>=_.length+1,canMoveDown:H&&AH[B]),{children:T.jsx(A,{name:o,title:S,index:n,schema:u,uiSchema:d,formData:c,formContext:I,errorSchema:p,idPrefix:C,idSeparator:x,idSchema:f,required:this.isItemRequired(u),onChange:this.onChangeForIndex(n),onBlur:v,onFocus:b,registry:k,disabled:w,readonly:E,hideError:$,autofocus:h,rawErrors:g}),className:"array-item",disabled:w,canAdd:a,hasCopy:H.copy,hasToolbar:H.toolbar,hasMoveUp:H.moveUp,hasMoveDown:H.moveDown,hasRemove:H.remove,index:n,totalItems:y,key:r,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:E,registry:k,schema:u,uiSchema:d}}}function $Ue(e){const{schema:t,name:r,uiSchema:n,idSchema:o,formData:a,registry:i,required:s,disabled:l,readonly:u,hideError:c,autofocus:d,title:f,onChange:p,onFocus:h,onBlur:v,rawErrors:b}=e,{title:g}=t,{widgets:y,formContext:S,translateString:w,globalUiOptions:$}=i,{widget:C="checkbox",title:x,label:E=!0,..._}=At(n,$),k=Rf(t,C,y),I=w($t.YesLabel),N=w($t.NoLabel);let z;const O=x??g??f??r;if(Array.isArray(t.oneOf))z=pI({oneOf:t.oneOf.map(A=>{if(vl(A))return{...A,title:A.title||(A.const===!0?I:N)}}).filter(A=>A)},n);else{const A=t,M=t.enum??[!0,!1];!A.enumNames&&M.length===2&&M.every(L=>typeof L=="boolean")?z=[{value:M[0],label:M[0]?I:N},{value:M[1],label:M[1]?I:N}]:z=pI({enum:M,enumNames:A.enumNames},n)}return T.jsx(k,{options:{..._,enumOptions:z},schema:t,uiSchema:n,id:o.$id,name:r,onChange:p,onFocus:h,onBlur:v,label:O,hideLabel:!E,value:a,required:s,disabled:l,readonly:u,hideError:c,registry:i,formContext:S,autofocus:d,rawErrors:b})}class qQ extends m.Component{constructor(t){super(t),this.onOptionChange=i=>{const{selectedOption:s,retrievedOptions:l}=this.state,{formData:u,onChange:c,registry:d}=this.props,{schemaUtils:f}=d,p=i!==void 0?parseInt(i,10):-1;if(p===s)return;const h=p>=0?l[p]:void 0,v=s>=0?l[s]:void 0;let b=f.sanitizeDataForNewSchema(h,v,u);b&&h&&(b=f.getDefaultFormState(h,b,"excludeObjectChildren")),c(b,void 0,this.getFieldId()),this.setState({selectedOption:p})};const{formData:r,options:n,registry:{schemaUtils:o}}=this.props,a=n.map(i=>o.retrieveSchema(i,r));this.state={retrievedOptions:a,selectedOption:this.getMatchingOption(0,r,a)}}componentDidUpdate(t,r){const{formData:n,options:o,idSchema:a}=this.props,{selectedOption:i}=this.state;let s=this.state;if(!Ii(t.options,o)){const{registry:{schemaUtils:l}}=this.props,u=o.map(c=>l.retrieveSchema(c,n));s={selectedOption:i,retrievedOptions:u}}if(!Ii(n,t.formData)&&a.$id===t.idSchema.$id){const{retrievedOptions:l}=s,u=this.getMatchingOption(i,n,l);r&&u!==i&&(s={selectedOption:u,retrievedOptions:l})}s!==this.state&&this.setState(s)}getMatchingOption(t,r,n){const{schema:o,registry:{schemaUtils:a}}=this.props,i=Oy(o);return a.getClosestMatchingOption(r,n,t,i)}getFieldId(){const{idSchema:t,schema:r}=this.props;return`${t.$id}${r.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:t,disabled:r=!1,errorSchema:n={},formContext:o,onBlur:a,onFocus:i,registry:s,schema:l,uiSchema:u}=this.props,{widgets:c,fields:d,translateString:f,globalUiOptions:p,schemaUtils:h}=s,{SchemaField:v}=d,{selectedOption:b,retrievedOptions:g}=this.state,{widget:y="select",placeholder:S,autofocus:w,autocomplete:$,title:C=l.title,...x}=At(u,p),E=Rf({type:"number"},y,c),_=Wt(n,Sc,[]),k=sI(n,[Sc]),I=h.getDisplayLabel(l,u,p),N=b>=0&&g[b]||null;let z;if(N){const{required:H}=l;z=H?ep({required:H},N):N}let O=[];du in l&&u&&du in u?Array.isArray(u[du])?O=u[du]:console.warn(`uiSchema.oneOf is not an array for "${C||t}"`):cd in l&&u&&cd in u&&(Array.isArray(u[cd])?O=u[cd]:console.warn(`uiSchema.anyOf is not an array for "${C||t}"`));let A=u;b>=0&&O.length>b&&(A=O[b]);const M=C?$t.TitleOptionPrefix:$t.OptionPrefix,L=C?[C]:[],j=g.map((H,B)=>{const{title:F=H.title}=At(O[B]);return{label:F||f(M,L.concat(String(B+1))),value:B}});return T.jsxs("div",{className:"panel panel-default panel-body",children:[T.jsx("div",{className:"form-group",children:T.jsx(E,{id:this.getFieldId(),name:`${t}${l.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:a,onFocus:i,disabled:r||bh(j),multiple:!1,rawErrors:_,errorSchema:k,value:b>=0?b:void 0,options:{enumOptions:j,...x},registry:s,formContext:o,placeholder:S,autocomplete:$,autofocus:w,label:C??t,hideLabel:!I})}),z&&T.jsx(v,{...this.props,schema:z,uiSchema:A})]})}}const EUe=/\.([0-9]*0)*$/,_Ue=/[0.]0*$/;function kUe(e){const{registry:t,onChange:r,formData:n,value:o}=e,[a,i]=m.useState(o),{StringField:s}=t.fields;let l=n;const u=m.useCallback(c=>{i(c),`${c}`.charAt(0)==="."&&(c=`0${c}`);const d=typeof c=="string"&&c.match(EUe)?$X(c.replace(_Ue,"")):$X(c);r(d)},[r]);if(typeof a=="string"&&typeof l=="number"){const c=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);a.match(c)&&(l=a)}return T.jsx(s,{...e,formData:l,onChange:u})}function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),YQ={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},TUe=["style","script"],IUe=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,RUe=/mailto:/i,FUe=/\n{2,}$/,mme=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,OUe=/^ *> ?/gm,NUe=/^ {2,}\n/,DUe=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,hme=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,vme=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,AUe=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,MUe=/^(?:\n *)*\n/,BUe=/\r\n?/g,jUe=/^\[\^([^\]]+)](:.*)\n/,LUe=/^\[\^([^\]]+)]/,zUe=/\f/g,VUe=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,HUe=/^\s*?\[(x|\s)\]/,gme=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,bme=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yme=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Qj=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,WUe=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sme=/^)/,qUe=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Zj=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,UUe=/^\{.*\}$/,KUe=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,GUe=/^<([^ >]+@[^ >]+)>/,YUe=/^<([^ >]+:\/[^ >]+)>/,XUe=/-([a-z])?/gi,wme=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,QUe=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,ZUe=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,JUe=/^\[([^\]]*)\] ?\[([^\]]*)\]/,eKe=/(\[|\])/g,tKe=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,rKe=/\t/g,nKe=/^ *\| */,oKe=/(^ *\||\| *$)/g,aKe=/ *$/,iKe=/^ *:-+: *$/,sKe=/^ *:-+ *$/,lKe=/^ *-+: *$/,uKe=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,cKe=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,dKe=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,fKe=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,pKe=/^\\([^0-9A-Za-z\s])/,mKe=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,hKe=/^\n+/,vKe=/^([ \t]*)/,gKe=/\\([^\\])/g,XQ=/ *\n+$/,bKe=/(?:^|\n)( *)$/,A7="(?:\\d+\\.)",M7="(?:[*+-])";function Cme(e){return"( *)("+(e===1?A7:M7)+") +"}const xme=Cme(1),$me=Cme(2);function Eme(e){return new RegExp("^"+(e===1?xme:$me))}const yKe=Eme(1),SKe=Eme(2);function _me(e){return new RegExp("^"+(e===1?xme:$me)+"[^\\n]*(?:\\n(?!\\1"+(e===1?A7:M7)+" )[^\\n]*)*(\\n|$)","gm")}const kme=_me(1),Pme=_me(2);function Tme(e){const t=e===1?A7:M7;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Ime=Tme(1),Rme=Tme(2);function QQ(e,t){const r=t===1,n=r?Ime:Rme,o=r?kme:Pme,a=r?yKe:SKe;return{match(i,s,l){const u=bKe.exec(l);return u&&(s.list||!s.inline&&!s.simple)?n.exec(i=u[1]+i):null},order:1,parse(i,s,l){const u=r?+i[2]:void 0,c=i[0].replace(FUe,` +`).match(o);let d=!1;return{items:c.map(function(f,p){const h=a.exec(f)[0].length,v=new RegExp("^ {1,"+h+"}","gm"),b=f.replace(v,"").replace(a,""),g=p===c.length-1,y=b.indexOf(` + +`)!==-1||g&&d;d=y;const S=l.inline,w=l.list;let $;l.list=!0,y?(l.inline=!1,$=b.replace(XQ,` + +`)):(l.inline=!0,$=b.replace(XQ,""));const C=s($,l);return l.inline=S,l.list=w,C}),ordered:r,start:u}},render:(i,s,l)=>e(i.ordered?"ol":"ul",{key:l.key,start:i.type==="20"?i.start:void 0},i.items.map(function(u,c){return e("li",{key:c},s(u,l))}))}}const wKe=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,CKe=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Fme=[mme,hme,vme,gme,yme,bme,Sme,wme,kme,Ime,Pme,Rme],xKe=[...Fme,/^[^\n]+(?: \n|\n{2,})/,Qj,Zj];function $Ke(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function EKe(e){return lKe.test(e)?"right":iKe.test(e)?"center":sKe.test(e)?"left":null}function ZQ(e,t,r){const n=r.inTable;r.inTable=!0;const o=t(e.trim(),r);r.inTable=n;let a=[[]];return o.forEach(function(i,s){i.type==="26"?s!==0&&s!==o.length-1&&a.push([]):(i.type!=="27"||o[s+1]!=null&&o[s+1].type!=="26"||(i.text=i.text.replace(aKe,"")),a[a.length-1].push(i))}),a}function _Ke(e,t,r){r.inline=!0;const n=ZQ(e[1],t,r),o=e[2].replace(oKe,"").split("|").map(EKe),a=function(i,s,l){return i.trim().split(` +`).map(function(u){return ZQ(u,s,l)})}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function JQ(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Xp(e){return function(t,r){return r.inline?e.exec(t):null}}function Qp(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function lf(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function ZS(e){return function(t){return e.exec(t)}}function kKe(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(a=>!Fme.some(i=>i.test(a))&&(n+=a+` +`,a.trim()));const o=n.trimEnd();return o==""?null:[n,o]}function j0(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function eZ(e){return e.replace(gKe,"$1")}function qP(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function PKe(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function TKe(e,t,r){return r.inline=!1,e(t,r)}const AM=(e,t,r)=>({children:qP(t,e[1],r)});function MM(){return{}}function BM(){return null}function IKe(...e){return e.filter(Boolean).join(" ")}function jM(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function RKe(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||$Ke,t.namedCodesToUnicode=t.namedCodesToUnicode?Iv({},YQ,t.namedCodesToUnicode):YQ;const r=t.createElement||m.createElement;function n(p,h,...v){const b=jM(t.overrides,`${p}.props`,{});return r(function(g,y){const S=jM(y,g);return S?typeof S=="function"||typeof S=="object"&&"render"in S?S:jM(y,`${g}.component`,g):g}(p,t.overrides),Iv({},h,b,{className:IKe(h==null?void 0:h.className,b.className)||void 0}),...v)}function o(p){p=p.replace(VUe,"");let h=!1;t.forceInline?h=!0:t.forceBlock||(h=tKe.test(p)===!1);const v=c(u(h?p:`${p.trimEnd().replace(hKe,"")} + +`,{inline:h}));for(;typeof v[v.length-1]=="string"&&!v[v.length-1].trim();)v.pop();if(t.wrapper===null)return v;const b=t.wrapper||(h?"span":"div");let g;if(v.length>1||t.forceWrapper)g=v;else{if(v.length===1)return g=v[0],typeof g=="string"?n("span",{key:"outer"},g):g;g=null}return m.createElement(b,{key:"outer"},g)}function a(p){const h=p.match(IUe);return h?h.reduce(function(v,b,g){const y=b.indexOf("=");if(y!==-1){const S=function(x){return x.indexOf("-")!==-1&&x.match(qUe)===null&&(x=x.replace(XUe,function(E,_){return _.toUpperCase()})),x}(b.slice(0,y)).trim(),w=function(x){const E=x[0];return(E==='"'||E==="'")&&x.length>=2&&x[x.length-1]===E?x.slice(1,-1):x}(b.slice(y+1).trim()),$=GQ[S]||S,C=v[$]=function(x,E){return x==="style"?E.split(/;\s?/).reduce(function(_,k){const I=k.slice(0,k.indexOf(":"));return _[I.replace(/(-[a-z])/g,N=>N[1].toUpperCase())]=k.slice(I.length+1).trim(),_},{}):x==="href"||x==="src"?j0(E):(E.match(UUe)&&(E=E.slice(1,E.length-1)),E==="true"||E!=="false"&&E)}(S,w);typeof C=="string"&&(Qj.test(C)||Zj.test(C))&&(v[$]=m.cloneElement(o(C.trim()),{key:g}))}else b!=="style"&&(v[GQ[b]||b]=!0);return v},{}):null}const i=[],s={},l={0:{match:lf(mme),order:1,parse:(p,h,v)=>({children:h(p[0].replace(OUe,""),v)}),render:(p,h,v)=>n("blockquote",{key:v.key},h(p.children,v))},1:{match:ZS(NUe),order:1,parse:MM,render:(p,h,v)=>n("br",{key:v.key})},2:{match:lf(DUe),order:1,parse:MM,render:(p,h,v)=>n("hr",{key:v.key})},3:{match:lf(vme),order:0,parse:p=>({lang:void 0,text:p[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(p,h,v)=>n("pre",{key:v.key},n("code",Iv({},p.attrs,{className:p.lang?`lang-${p.lang}`:""}),p.text))},4:{match:lf(hme),order:0,parse:p=>({attrs:a(p[3]||""),lang:p[2]||void 0,text:p[4],type:"3"})},5:{match:Qp(AUe),order:3,parse:p=>({text:p[2]}),render:(p,h,v)=>n("code",{key:v.key},p.text)},6:{match:lf(jUe),order:0,parse:p=>(i.push({footnote:p[2],identifier:p[1]}),{}),render:BM},7:{match:Xp(LUe),order:1,parse:p=>({target:`#${t.slugify(p[1])}`,text:p[1]}),render:(p,h,v)=>n("a",{key:v.key,href:j0(p.target)},n("sup",{key:v.key},p.text))},8:{match:Xp(HUe),order:1,parse:p=>({completed:p[1].toLowerCase()==="x"}),render:(p,h,v)=>n("input",{checked:p.completed,key:v.key,readOnly:!0,type:"checkbox"})},9:{match:lf(t.enforceAtxHeadings?bme:gme),order:1,parse:(p,h,v)=>({children:qP(h,p[2],v),id:t.slugify(p[2]),level:p[1].length}),render:(p,h,v)=>n(`h${p.level}`,{id:p.id,key:v.key},h(p.children,v))},10:{match:lf(yme),order:0,parse:(p,h,v)=>({children:qP(h,p[1],v),level:p[2]==="="?1:2,type:"9"})},11:{match:ZS(Qj),order:1,parse(p,h,v){const[,b]=p[3].match(vKe),g=new RegExp(`^${b}`,"gm"),y=p[3].replace(g,""),S=(w=y,xKe.some(E=>E.test(w))?TKe:qP);var w;const $=p[1].toLowerCase(),C=TUe.indexOf($)!==-1,x={attrs:a(p[2]),noInnerParse:C,tag:C?$:p[1]};return v.inAnchor=v.inAnchor||$==="a",C?x.text=p[3]:x.children=S(h,y,v),v.inAnchor=!1,x},render:(p,h,v)=>n(p.tag,Iv({key:v.key},p.attrs),p.text||h(p.children,v))},13:{match:ZS(Zj),order:1,parse:p=>({attrs:a(p[2]||""),tag:p[1]}),render:(p,h,v)=>n(p.tag,Iv({},p.attrs,{key:v.key}))},12:{match:ZS(Sme),order:1,parse:()=>({}),render:BM},14:{match:Qp(CKe),order:1,parse:p=>({alt:p[1],target:eZ(p[2]),title:p[3]}),render:(p,h,v)=>n("img",{key:v.key,alt:p.alt||void 0,title:p.title||void 0,src:j0(p.target)})},15:{match:Xp(wKe),order:3,parse:(p,h,v)=>({children:PKe(h,p[1],v),target:eZ(p[2]),title:p[3]}),render:(p,h,v)=>n("a",{key:v.key,href:j0(p.target),title:p.title},h(p.children,v))},16:{match:Xp(YUe),order:0,parse:p=>({children:[{text:p[1],type:"27"}],target:p[1],type:"15"})},17:{match:(p,h)=>h.inAnchor?null:Xp(KUe)(p,h),order:0,parse:p=>({children:[{text:p[1],type:"27"}],target:p[1],title:void 0,type:"15"})},18:{match:Xp(GUe),order:0,parse(p){let h=p[1],v=p[1];return RUe.test(v)||(v="mailto:"+v),{children:[{text:h.replace("mailto:",""),type:"27"}],target:v,type:"15"}}},20:QQ(n,1),33:QQ(n,2),19:{match:lf(MUe),order:3,parse:MM,render:()=>` +`},21:{match:kKe,order:3,parse:AM,render:(p,h,v)=>n("p",{key:v.key},h(p.children,v))},22:{match:Xp(QUe),order:0,parse:p=>(s[p[1]]={target:p[2],title:p[4]},{}),render:BM},23:{match:Qp(ZUe),order:0,parse:p=>({alt:p[1]||void 0,ref:p[2]}),render:(p,h,v)=>n("img",{key:v.key,alt:p.alt,src:j0(s[p.ref].target),title:s[p.ref].title})},24:{match:Xp(JUe),order:0,parse:(p,h,v)=>({children:h(p[1],v),fallbackChildren:h(p[0].replace(eKe,"\\$1"),v),ref:p[2]}),render:(p,h,v)=>s[p.ref]?n("a",{key:v.key,href:j0(s[p.ref].target),title:s[p.ref].title},h(p.children,v)):n("span",{key:v.key},h(p.fallbackChildren,v))},25:{match:lf(wme),order:1,parse:_Ke,render:(p,h,v)=>n("table",{key:v.key},n("thead",null,n("tr",null,p.header.map(function(b,g){return n("th",{key:g,style:JQ(p,g)},h(b,v))}))),n("tbody",null,p.cells.map(function(b,g){return n("tr",{key:g},b.map(function(y,S){return n("td",{key:S,style:JQ(p,S)},h(y,v))}))})))},26:{match:function(p,h){return h.inTable?(h.inline=!0,nKe.exec(p)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:ZS(mKe),order:4,parse:p=>({text:p[0].replace(WUe,(h,v)=>t.namedCodesToUnicode[v]?t.namedCodesToUnicode[v]:h)}),render:p=>p.text},28:{match:Qp(uKe),order:2,parse:(p,h,v)=>({children:h(p[2],v)}),render:(p,h,v)=>n("strong",{key:v.key},h(p.children,v))},29:{match:Qp(cKe),order:3,parse:(p,h,v)=>({children:h(p[2],v)}),render:(p,h,v)=>n("em",{key:v.key},h(p.children,v))},30:{match:Qp(pKe),order:1,parse:p=>({text:p[1],type:"27"})},31:{match:Qp(dKe),order:3,parse:AM,render:(p,h,v)=>n("mark",{key:v.key},h(p.children,v))},32:{match:Qp(fKe),order:3,parse:AM,render:(p,h,v)=>n("del",{key:v.key},h(p.children,v))}};t.disableParsingRawHTML===!0&&(delete l[11],delete l[13]);const u=function(p){let h=Object.keys(p);function v(b,g){let y=[],S="";for(;b;){let w=0;for(;wy(v,b,g),v,b,g):y(v,b,g)}}(l,t.renderRule),function p(h,v={}){if(Array.isArray(h)){const b=v.key,g=[];let y=!1;for(let S=0;S{let{children:t,options:r}=e,n=function(o,a){if(o==null)return{};var i,s,l={},u=Object.keys(o);for(s=0;s=0||(l[i]=o[i]);return l}(e,PUe);return m.cloneElement(RKe(t,r),n)};var FKe=epe;function OKe(e,t){return e==null?!0:FKe(e,t)}var NKe=OKe;const DKe=zt(NKe);class AKe extends m.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(t,r=!1)=>(n,o,a)=>{const{formData:i,onChange:s,errorSchema:l}=this.props;n===void 0&&r&&(n="");const u={...i,[t]:n};s(u,l&&l&&{...l,[t]:o},a)},this.onDropPropertyClick=t=>r=>{r.preventDefault();const{onChange:n,formData:o}=this.props,a={...o};DKe(a,t),n(a)},this.getAvailableKey=(t,r)=>{const{uiSchema:n,registry:o}=this.props,{duplicateKeySuffixSeparator:a="-"}=At(n,o.globalUiOptions);let i=0,s=t;for(;us(r,s);)s=`${t}${a}${++i}`;return s},this.onKeyChange=t=>(r,n)=>{if(t===r)return;const{formData:o,onChange:a,errorSchema:i}=this.props;r=this.getAvailableKey(r,o);const s={...o},l={[t]:r},u=Object.keys(s).map(d=>({[l[d]||d]:s[d]})),c=Object.assign({},...u);this.setState({wasPropertyKeyModified:!0}),a(c,i&&i&&{...i,[r]:n})},this.handleAddClick=t=>()=>{if(!t.additionalProperties)return;const{formData:r,onChange:n,registry:o}=this.props,a={...r};let i,s;if(vl(t.additionalProperties)){i=t.additionalProperties.type,s=t.additionalProperties.default;let u=t.additionalProperties;if(Ca in u){const{schemaUtils:c}=o;u=c.retrieveSchema({$ref:u[Ca]},r),i=u.type,s=u.default}!i&&(cd in u||du in u)&&(i="object")}const l=this.getAvailableKey("newKey",a);as(a,l,s??this.getDefaultValue(i)),n(a)}}isRequired(t){const{schema:r}=this.props;return Array.isArray(r.required)&&r.required.indexOf(t)!==-1}getDefaultValue(t){const{registry:{translateString:r}}=this.props;switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return r($t.NewStringDefault)}}render(){const{schema:t,uiSchema:r={},formData:n,errorSchema:o,idSchema:a,name:i,required:s=!1,disabled:l,readonly:u,hideError:c,idPrefix:d,idSeparator:f,onBlur:p,onFocus:h,registry:v,title:b}=this.props,{fields:g,formContext:y,schemaUtils:S,translateString:w,globalUiOptions:$}=v,{SchemaField:C}=g,x=S.retrieveSchema(t,n),E=At(r,$),{properties:_={}}=x,k=E.title??x.title??b??i,I=E.description??x.description;let N;try{const A=Object.keys(_);N=Qqe(A,E.order)}catch(A){return T.jsxs("div",{children:[T.jsx("p",{className:"config-error",style:{color:"red"},children:T.jsx(yO,{options:{disableParsingRawHTML:!0},children:w($t.InvalidObjectField,[i||"root",A.message])})}),T.jsx("pre",{children:JSON.stringify(x)})]})}const z=Ct("ObjectFieldTemplate",v,E),O={title:E.label===!1?"":k,description:E.label===!1?void 0:I,properties:N.map(A=>{const M=us(x,[Lo,A,Nl]),L=M?r.additionalProperties:r[A],j=At(L).widget==="hidden",H=Wt(a,[A],{});return{content:T.jsx(C,{name:A,required:this.isRequired(A),schema:Wt(x,[Lo,A],{}),uiSchema:L,errorSchema:Wt(o,A),idSchema:H,idPrefix:d,idSeparator:f,formData:Wt(n,A),formContext:y,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(A),onChange:this.onPropertyChange(A,M),onBlur:p,onFocus:h,registry:v,disabled:l,readonly:u,hideError:c,onDropPropertyClick:this.onDropPropertyClick},A),name:A,readonly:u,disabled:l,required:s,hidden:j}}),readonly:u,disabled:l,required:s,idSchema:a,uiSchema:r,errorSchema:o,schema:x,formData:n,formContext:y,registry:v};return T.jsx(z,{...O,onAddClick:this.handleAddClick})}}const MKe={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function BKe(e,t,r,n){const o=t.field,{fields:a,translateString:i}=n;if(typeof o=="function")return o;if(typeof o=="string"&&o in a)return a[o];const s=yh(e),l=Array.isArray(s)?s[0]:s||"",u=e.$id;let c=MKe[l];return u&&u in a&&(c=u),!c&&(e.anyOf||e.oneOf)?()=>null:c in a?a[c]:()=>{const d=Ct("UnsupportedFieldTemplate",n,t);return T.jsx(d,{schema:e,idSchema:r,reason:i($t.UnknownFieldType,[String(e.type)]),registry:n})}}function jKe(e){const{schema:t,idSchema:r,uiSchema:n,formData:o,errorSchema:a,idPrefix:i,idSeparator:s,name:l,onChange:u,onKeyChange:c,onDropPropertyClick:d,required:f,registry:p,wasPropertyKeyModified:h=!1}=e,{formContext:v,schemaUtils:b,globalUiOptions:g}=p,y=At(n,g),S=Ct("FieldTemplate",p,y),w=Ct("DescriptionFieldTemplate",p,y),$=Ct("FieldHelpTemplate",p,y),C=Ct("FieldErrorTemplate",p,y),x=b.retrieveSchema(t,o),E=r[Mm],_=ih(b.toIdSchema(x,E,o,i,s),r),k=m.useCallback((ae,fe,ve)=>u(ae,fe,ve||E),[E,u]),I=BKe(x,y,_,p),N=!!(y.disabled??e.disabled),z=!!(y.readonly??(e.readonly||e.schema.readOnly||x.readOnly)),O=y.hideError,A=O===void 0?e.hideError:!!O,M=!!(y.autofocus??e.autofocus);if(Object.keys(x).length===0)return null;const L=b.getDisplayLabel(x,n,g),{__errors:j,...H}=a||{},B=sI(n,["ui:classNames","classNames","ui:style"]);If in B&&(B[If]=sI(B[If],["classNames","style"]));const F=T.jsx(I,{...e,onChange:k,idSchema:_,schema:x,uiSchema:B,disabled:N,readonly:z,hideError:A,autofocus:M,errorSchema:H,formContext:v,rawErrors:j}),V=_[Mm];let D;h?D=l:D=Nl in x?l:y.title||e.schema.title||x.title||e.title||l;const P=y.description||e.schema.description||x.description||"",R=y.enableMarkdownInDescription?T.jsx(yO,{options:{disableParsingRawHTML:!0},children:P}):P,W=y.help,U=y.widget==="hidden",q=["form-group","field",`field-${yh(x)}`];!A&&j&&j.length>0&&q.push("field-error has-error has-danger"),n!=null&&n.classNames&&q.push(n.classNames),y.classNames&&q.push(y.classNames);const J=T.jsx($,{help:W,idSchema:_,schema:x,uiSchema:n,hasErrors:!A&&j&&j.length>0,registry:p}),Z=A||(x.anyOf||x.oneOf)&&!b.isSelect(x)?void 0:T.jsx(C,{errors:j,errorSchema:a,idSchema:_,schema:x,uiSchema:n,registry:p}),Q={description:T.jsx(w,{id:pa(V),description:R,schema:x,uiSchema:n,registry:p}),rawDescription:P,help:J,rawHelp:typeof W=="string"?W:void 0,errors:Z,rawErrors:A?void 0:j,id:V,label:D,hidden:U,onChange:u,onKeyChange:c,onDropPropertyClick:d,required:f,disabled:N,readonly:z,hideError:A,displayLabel:L,classNames:q.join(" ").trim(),style:y.style,formContext:v,formData:o,schema:x,uiSchema:n,registry:p},oe=p.fields.AnyOfField,ie=p.fields.OneOfField,te=(n==null?void 0:n["ui:field"])&&(n==null?void 0:n["ui:fieldReplacesAnyOrOneOf"])===!0;return T.jsx(S,{...Q,children:T.jsxs(T.Fragment,{children:[F,x.anyOf&&!te&&!b.isSelect(x)&&T.jsx(oe,{name:l,disabled:N,readonly:z,hideError:A,errorSchema:a,formData:o,formContext:v,idPrefix:i,idSchema:_,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:x.anyOf.map(ae=>b.retrieveSchema(vl(ae)?ae:{},o)),registry:p,required:f,schema:x,uiSchema:n}),x.oneOf&&!te&&!b.isSelect(x)&&T.jsx(ie,{name:l,disabled:N,readonly:z,hideError:A,errorSchema:a,formData:o,formContext:v,idPrefix:i,idSchema:_,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:x.oneOf.map(ae=>b.retrieveSchema(vl(ae)?ae:{},o)),registry:p,required:f,schema:x,uiSchema:n})]})})}class LKe extends m.Component{shouldComponentUpdate(t){return!Ii(this.props,t)}render(){return T.jsx(jKe,{...this.props})}}function zKe(e){const{schema:t,name:r,uiSchema:n,idSchema:o,formData:a,required:i,disabled:s=!1,readonly:l=!1,autofocus:u=!1,onChange:c,onBlur:d,onFocus:f,registry:p,rawErrors:h,hideError:v}=e,{title:b,format:g}=t,{widgets:y,formContext:S,schemaUtils:w,globalUiOptions:$}=p,C=w.isSelect(t)?pI(t,n):void 0;let x=C?"select":"text";g&&Yqe(t,g,y)&&(x=g);const{widget:E=x,placeholder:_="",title:k,...I}=At(n),N=w.getDisplayLabel(t,n,$),z=k??b??r,O=Rf(t,E,y);return T.jsx(O,{options:{...I,enumOptions:C},schema:t,uiSchema:n,id:o.$id,name:r,label:z,hideLabel:!N,hideError:v,value:a,onChange:c,onBlur:d,onFocus:f,required:i,disabled:s,readonly:l,formContext:S,autofocus:u,registry:p,placeholder:_,rawErrors:h})}function VKe(e){const{formData:t,onChange:r}=e;return m.useEffect(()=>{t===void 0&&r(null)},[t,r]),null}function HKe(){return{AnyOfField:qQ,ArrayField:xUe,BooleanField:$Ue,NumberField:kUe,ObjectField:AKe,OneOfField:qQ,SchemaField:LKe,StringField:zKe,NullField:VKe}}function WKe(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=At(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=Ct("DescriptionFieldTemplate",n,i);return T.jsx(l,{id:pa(t),description:r,schema:o,uiSchema:a,registry:n})}function qKe(e){const{children:t,className:r,disabled:n,hasToolbar:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,hasCopy:l,index:u,onCopyIndexClick:c,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:h,uiSchema:v}=e,{CopyButton:b,MoveDownButton:g,MoveUpButton:y,RemoveButton:S}=h.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return T.jsxs("div",{className:r,children:[T.jsx("div",{className:o?"col-xs-9":"col-xs-12",children:t}),o&&T.jsx("div",{className:"col-xs-3 array-item-toolbox",children:T.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||a)&&T.jsx(y,{style:w,disabled:n||p||!i,onClick:f(u,u-1),uiSchema:v,registry:h}),(i||a)&&T.jsx(g,{style:w,disabled:n||p||!a,onClick:f(u,u+1),uiSchema:v,registry:h}),l&&T.jsx(b,{style:w,disabled:n||p,onClick:c(u),uiSchema:v,registry:h}),s&&T.jsx(S,{style:w,disabled:n||p,onClick:d(u),uiSchema:v,registry:h})]})})]})}function UKe(e){const{canAdd:t,className:r,disabled:n,idSchema:o,uiSchema:a,items:i,onAddClick:s,readonly:l,registry:u,required:c,schema:d,title:f}=e,p=At(a),h=Ct("ArrayFieldDescriptionTemplate",u,p),v=Ct("ArrayFieldItemTemplate",u,p),b=Ct("ArrayFieldTitleTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return T.jsxs("fieldset",{className:r,id:o.$id,children:[T.jsx(b,{idSchema:o,title:p.title||f,required:c,schema:d,uiSchema:a,registry:u}),T.jsx(h,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:u}),T.jsx("div",{className:"row array-item-list",children:i&&i.map(({key:y,...S})=>T.jsx(v,{...S},y))}),t&&T.jsx(g,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:u})]})}function KKe(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=At(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const u=Ct("TitleFieldTemplate",i,s);return T.jsx(u,{id:Nu(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function GKe(e){const{id:t,name:r,value:n,readonly:o,disabled:a,autofocus:i,onBlur:s,onFocus:l,onChange:u,onChangeOverride:c,options:d,schema:f,uiSchema:p,formContext:h,registry:v,rawErrors:b,type:g,hideLabel:y,hideError:S,...w}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const $={...w,...kp(f,g,d)};let C;$.type==="number"||$.type==="integer"?C=n||n===0?n:"":C=n??"";const x=m.useCallback(({target:{value:k}})=>u(k===""?d.emptyValue:k),[u,d]),E=m.useCallback(({target:k})=>s(t,k&&k.value),[s,t]),_=m.useCallback(({target:k})=>l(t,k&&k.value),[l,t]);return T.jsxs(T.Fragment,{children:[T.jsx("input",{id:t,name:t,className:"form-control",readOnly:o,disabled:a,autoFocus:i,value:C,...$,list:f.examples?da(t):void 0,onChange:c||x,onBlur:E,onFocus:_,"aria-describedby":Ot(t,!!f.examples)}),Array.isArray(f.examples)&&T.jsx("datalist",{id:da(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map(k=>T.jsx("option",{value:k},k))},`datalist_${t}`)]})}function YKe({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=Pp(e);return r?null:T.jsx("div",{children:T.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:t})})}function mE(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a,...i}=e;return T.jsx("button",{type:"button",className:`btn btn-${t} ${n}`,...i,children:T.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function XKe(e){const{registry:{translateString:t}}=e;return T.jsx(mE,{title:t($t.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function QKe(e){const{registry:{translateString:t}}=e;return T.jsx(mE,{title:t($t.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function ZKe(e){const{registry:{translateString:t}}=e;return T.jsx(mE,{title:t($t.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function JKe(e){const{registry:{translateString:t}}=e;return T.jsx(mE,{title:t($t.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function eGe({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return T.jsx("div",{className:"row",children:T.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:T.jsx(mE,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o($t.AddButton),onClick:t,disabled:r,registry:n})})})}function tGe(){return{SubmitButton:YKe,AddButton:eGe,CopyButton:XKe,MoveDownButton:QKe,MoveUpButton:ZKe,RemoveButton:JKe}}function rGe(e){const{id:t,description:r}=e;return r?typeof r=="string"?T.jsx("p",{id:t,className:"field-description",children:r}):T.jsx("div",{id:t,className:"field-description",children:r}):null}function nGe({errors:e,registry:t}){const{translateString:r}=t;return T.jsxs("div",{className:"panel panel-danger errors",children:[T.jsx("div",{className:"panel-heading",children:T.jsx("h3",{className:"panel-title",children:r($t.ErrorsLabel)})}),T.jsx("ul",{className:"list-group",children:e.map((n,o)=>T.jsx("li",{className:"list-group-item text-danger",children:n.stack},o))})]})}const oGe="*";function Ome(e){const{label:t,required:r,id:n}=e;return t?T.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&T.jsx("span",{className:"required",children:oGe})]}):null}function aGe(e){const{id:t,label:r,children:n,errors:o,help:a,description:i,hidden:s,required:l,displayLabel:u,registry:c,uiSchema:d}=e,f=At(d),p=Ct("WrapIfAdditionalTemplate",c,f);return s?T.jsx("div",{className:"hidden",children:n}):T.jsxs(p,{...e,children:[u&&T.jsx(Ome,{label:r,required:l,id:t}),u&&i?i:null,n,o,a]})}function iGe(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=Vd(r);return T.jsx("div",{children:T.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter(o=>!!o).map((o,a)=>T.jsx("li",{className:"text-danger",children:o},a))})})}function sGe(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Tp(t);return typeof r=="string"?T.jsx("p",{id:n,className:"help-block",children:r}):T.jsx("div",{id:n,className:"help-block",children:r})}function lGe(e){const{description:t,disabled:r,formData:n,idSchema:o,onAddClick:a,properties:i,readonly:s,registry:l,required:u,schema:c,title:d,uiSchema:f}=e,p=At(f),h=Ct("TitleFieldTemplate",l,p),v=Ct("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:b}}=l.templates;return T.jsxs("fieldset",{id:o.$id,children:[d&&T.jsx(h,{id:Nu(o),title:d,required:u,schema:c,uiSchema:f,registry:l}),t&&T.jsx(v,{id:pa(o),description:t,schema:c,uiSchema:f,registry:l}),i.map(g=>g.content),$p(c,f,n)&&T.jsx(b,{className:"object-property-expand",onClick:a(c),disabled:r||s,uiSchema:f,registry:l})]})}const uGe="*";function cGe(e){const{id:t,title:r,required:n}=e;return T.jsxs("legend",{id:t,children:[r,n&&T.jsx("span",{className:"required",children:uGe})]})}function dGe(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=$t.UnsupportedField;const s=[];return r&&r.$id&&(i=$t.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===$t.UnsupportedField?$t.UnsupportedFieldWithReason:$t.UnsupportedFieldWithIdAndReason,s.push(n)),T.jsxs("div",{className:"unsupported-field",children:[T.jsx("p",{children:T.jsx(yO,{options:{disableParsingRawHTML:!0},children:a(i,s)})}),t&&T.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function fGe(e){const{id:t,classNames:r,style:n,disabled:o,label:a,onKeyChange:i,onDropPropertyClick:s,readonly:l,required:u,schema:c,children:d,uiSchema:f,registry:p}=e,{templates:h,translateString:v}=p,{RemoveButton:b}=h.ButtonTemplates,g=v($t.KeyLabel,[a]);return Nl in c?T.jsx("div",{className:r,style:n,children:T.jsxs("div",{className:"row",children:[T.jsx("div",{className:"col-xs-5 form-additional",children:T.jsxs("div",{className:"form-group",children:[T.jsx(Ome,{label:g,required:u,id:`${t}-key`}),T.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:({target:S})=>i(S&&S.value),defaultValue:a})]})}),T.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),T.jsx("div",{className:"col-xs-2",children:T.jsx(b,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})})]})}):T.jsx("div",{className:r,style:n,children:d})}function pGe(){return{ArrayFieldDescriptionTemplate:WKe,ArrayFieldItemTemplate:qKe,ArrayFieldTemplate:UKe,ArrayFieldTitleTemplate:KKe,ButtonTemplates:tGe(),BaseInputTemplate:GKe,DescriptionFieldTemplate:rGe,ErrorListTemplate:nGe,FieldTemplate:aGe,FieldErrorTemplate:iGe,FieldHelpTemplate:sGe,ObjectFieldTemplate:lGe,TitleFieldTemplate:cGe,UnsupportedFieldTemplate:dGe,WrapIfAdditionalTemplate:fGe}}function mGe(e){return Object.values(e).every(t=>t!==-1)}function hGe({type:e,range:t,value:r,select:n,rootId:o,name:a,disabled:i,readonly:s,autofocus:l,registry:u,onBlur:c,onFocus:d}){const f=o+"_"+e,{SelectWidget:p}=u.widgets;return T.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:sO(t[0],t[1])},placeholder:e,value:r,disabled:i,readonly:s,autofocus:l,onChange:h=>n(e,h),onBlur:c,onFocus:d,registry:u,label:"","aria-describedby":Ot(o)})}function vGe({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:o,id:a,name:i,registry:s,onBlur:l,onFocus:u,onChange:c,value:d}){const{translateString:f}=s,[p,h]=m.useState(d),[v,b]=m.useReducer((w,$)=>({...w,...$}),Ff(d,e));m.useEffect(()=>{const w=Ny(v,e);mGe(v)&&w!==d?c(w):p!==d&&(h(d),b(Ff(d,e)))},[e,d,c,v,p]);const g=m.useCallback((w,$)=>{b({[w]:$})},[]),y=m.useCallback(w=>{if(w.preventDefault(),t||r)return;const $=Ff(new Date().toJSON(),e);c(Ny($,e))},[t,r,e]),S=m.useCallback(w=>{w.preventDefault(),!(t||r)&&c(void 0)},[t,r,c]);return T.jsxs("ul",{className:"list-inline",children:[R7(v,e,o.yearsRange,o.format).map((w,$)=>T.jsx("li",{className:"list-inline-item",children:T.jsx(hGe,{rootId:a,name:i,select:g,...w,disabled:t,readonly:r,registry:s,onBlur:l,onFocus:u,autofocus:n&&$===0})},$)),(o.hideNowButton!=="undefined"?!o.hideNowButton:!0)&&T.jsx("li",{className:"list-inline-item",children:T.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:y,children:f($t.NowLabel)})}),(o.hideClearButton!=="undefined"?!o.hideClearButton:!0)&&T.jsx("li",{className:"list-inline-item",children:T.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:S,children:f($t.ClearLabel)})})]})}function gGe({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return T.jsx(r,{time:e,...t})}function bGe({schema:e,uiSchema:t,options:r,id:n,value:o,disabled:a,readonly:i,label:s,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:d,onChange:f,registry:p}){const h=Ct("DescriptionFieldTemplate",p,r),v=kd(e),b=m.useCallback(w=>f(w.target.checked),[f]),g=m.useCallback(w=>c(n,w.target.checked),[c,n]),y=m.useCallback(w=>d(n,w.target.checked),[d,n]),S=r.description??e.description;return T.jsxs("div",{className:`checkbox ${a||i?"disabled":""}`,children:[!l&&!!S&&T.jsx(h,{id:pa(n),description:S,schema:e,uiSchema:t,registry:p}),T.jsxs("label",{children:[T.jsx("input",{type:"checkbox",id:n,name:n,checked:typeof o>"u"?!1:o,required:v,disabled:a||i,autoFocus:u,onChange:b,onBlur:g,onFocus:y,"aria-describedby":Ot(n)}),wr(T.jsx("span",{children:s}),l)]})]})}function yGe({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:o,emptyValue:a},value:i,autofocus:s=!1,readonly:l,onChange:u,onBlur:c,onFocus:d}){const f=Array.isArray(i)?i:[i],p=m.useCallback(({target:v})=>c(e,Tt(v&&v.value,n,a)),[c,e]),h=m.useCallback(({target:v})=>d(e,Tt(v&&v.value,n,a)),[d,e]);return T.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(n)&&n.map((v,b)=>{const g=Fu(v.value,f),y=Array.isArray(o)&&o.indexOf(v.value)!==-1,S=t||y||l?"disabled":"",w=C=>{C.target.checked?u(qh(b,f,n)):u(Wh(b,f,n))},$=T.jsxs("span",{children:[T.jsx("input",{type:"checkbox",id:Wa(e,b),name:e,checked:g,value:String(b),disabled:t||y||l,autoFocus:s&&b===0,onChange:w,onBlur:p,onFocus:h,"aria-describedby":Ot(e)}),T.jsx("span",{children:v.label})]});return r?T.jsx("label",{className:`checkbox-inline ${S}`,children:$},b):T.jsx("div",{className:`checkbox ${S}`,children:T.jsx("label",{children:$})},b)})})}function SGe(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=Ct("BaseInputTemplate",o,n);return T.jsx(a,{type:"color",...e,disabled:t||r})}function wGe(e){const{onChange:t,options:r,registry:n}=e,o=Ct("BaseInputTemplate",n,r),a=m.useCallback(i=>t(i||void 0),[t]);return T.jsx(o,{type:"date",...e,onChange:a})}function CGe(e){const{onChange:t,value:r,options:n,registry:o}=e,a=Ct("BaseInputTemplate",o,n);return T.jsx(a,{type:"datetime-local",...e,value:fme(r),onChange:i=>t(ume(i))})}function xGe(e){const{options:t,registry:r}=e,n=Ct("BaseInputTemplate",r,t);return T.jsx(n,{type:"email",...e})}function $Ge(e,t){return e===null?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function EGe(e){const{name:t,size:r,type:n}=e;return new Promise((o,a)=>{const i=new window.FileReader;i.onerror=a,i.onload=s=>{var l;typeof((l=s.target)==null?void 0:l.result)=="string"?o({dataURL:$Ge(s.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)})}function _Ge(e){return Promise.all(Array.from(e).map(EGe))}function kGe({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?["image/jpeg","image/png"].includes(o)?T.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):T.jsxs(T.Fragment,{children:[" ",T.jsx("a",{download:`preview-${a}`,href:n,className:"file-download",children:r($t.PreviewLabel)})]}):null}function PGe({filesInfo:e,registry:t,preview:r,onRemove:n,options:o}){if(e.length===0)return null;const{translateString:a}=t,{RemoveButton:i}=Ct("ButtonTemplates",t,o);return T.jsx("ul",{className:"file-info",children:e.map((s,l)=>{const{name:u,size:c,type:d}=s,f=()=>n(l);return T.jsxs("li",{children:[T.jsx(yO,{children:a($t.FilesInfo,[u,d,String(c)])}),r&&T.jsx(kGe,{fileInfo:s,registry:t}),T.jsx(i,{onClick:f,registry:t})]},l)})})}function TGe(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:n,name:o}=Dqe(r);return[...t,{dataURL:r,name:o,size:n.size,type:n.type}]}catch{return t}},[])}function IGe(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:a,value:i,options:s,registry:l}=e,u=Ct("BaseInputTemplate",l,s),c=m.useCallback(p=>{p.target.files&&_Ge(p.target.files).then(h=>{const v=h.map(b=>b.dataURL);a(o?i.concat(v[0]):v[0])})},[o,i,a]),d=m.useMemo(()=>TGe(Array.isArray(i)?i:[i]),[i]),f=m.useCallback(p=>{if(o){const h=i.filter((v,b)=>b!==p);a(h)}else a(void 0)},[o,i,a]);return T.jsxs("div",{children:[T.jsx(u,{...e,disabled:t||r,type:"file",required:i?!1:n,onChangeOverride:c,value:"",accept:s.accept?String(s.accept):void 0}),T.jsx(PGe,{filesInfo:d,onRemove:f,registry:l,preview:s.filePreview,options:s})]})}function RGe({id:e,value:t}){return T.jsx("input",{type:"hidden",id:e,name:e,value:typeof t>"u"?"":t})}function FGe(e){const{options:t,registry:r}=e,n=Ct("BaseInputTemplate",r,t);return T.jsx(n,{type:"password",...e})}function OGe({options:e,value:t,required:r,disabled:n,readonly:o,autofocus:a=!1,onBlur:i,onFocus:s,onChange:l,id:u}){const{enumOptions:c,enumDisabled:d,inline:f,emptyValue:p}=e,h=m.useCallback(({target:b})=>i(u,Tt(b&&b.value,c,p)),[i,u]),v=m.useCallback(({target:b})=>s(u,Tt(b&&b.value,c,p)),[s,u]);return T.jsx("div",{className:"field-radio-group",id:u,children:Array.isArray(c)&&c.map((b,g)=>{const y=Fu(b.value,t),S=Array.isArray(d)&&d.indexOf(b.value)!==-1,w=n||S||o?"disabled":"",$=()=>l(b.value),C=T.jsxs("span",{children:[T.jsx("input",{type:"radio",id:Wa(u,g),checked:y,name:u,required:r,value:String(g),disabled:n||S||o,autoFocus:a&&g===0,onChange:$,onBlur:h,onFocus:v,"aria-describedby":Ot(u)}),T.jsx("span",{children:b.label})]});return f?T.jsx("label",{className:`radio-inline ${w}`,children:C},g):T.jsx("div",{className:`radio ${w}`,children:T.jsx("label",{children:C})},g)})})}function NGe(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return T.jsxs("div",{className:"field-range-wrapper",children:[T.jsx(r,{type:"range",...e}),T.jsx("span",{className:"range-view",children:t})]})}function LM(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function DGe({schema:e,id:t,options:r,value:n,required:o,disabled:a,readonly:i,multiple:s=!1,autofocus:l=!1,onChange:u,onBlur:c,onFocus:d,placeholder:f}){const{enumOptions:p,enumDisabled:h,emptyValue:v}=r,b=s?[]:"",g=m.useCallback(C=>{const x=LM(C,s);return d(t,Tt(x,p,v))},[d,t,e,s,p,v]),y=m.useCallback(C=>{const x=LM(C,s);return c(t,Tt(x,p,v))},[c,t,e,s,p,v]),S=m.useCallback(C=>{const x=LM(C,s);return u(Tt(x,p,v))},[u,e,s,p,v]),w=mi(n,p,s),$=!s&&e.default===void 0;return T.jsxs("select",{id:t,name:t,multiple:s,className:"form-control",value:typeof w>"u"?b:w,required:o,disabled:a||i,autoFocus:l,onBlur:y,onFocus:g,onChange:S,"aria-describedby":Ot(t),children:[$&&T.jsx("option",{value:"",children:f}),Array.isArray(p)&&p.map(({value:C,label:x},E)=>{const _=h&&h.indexOf(C)!==-1;return T.jsx("option",{value:String(E),disabled:_,children:x},E)})]})}function Nme({id:e,options:t={},placeholder:r,value:n,required:o,disabled:a,readonly:i,autofocus:s=!1,onChange:l,onBlur:u,onFocus:c}){const d=m.useCallback(({target:{value:h}})=>l(h===""?t.emptyValue:h),[l,t.emptyValue]),f=m.useCallback(({target:h})=>u(e,h&&h.value),[u,e]),p=m.useCallback(({target:h})=>c(e,h&&h.value),[e,c]);return T.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:o,disabled:a,readOnly:i,autoFocus:s,rows:t.rows,onBlur:f,onFocus:p,onChange:d,"aria-describedby":Ot(e)})}Nme.defaultProps={autofocus:!1,options:{}};function AGe(e){const{options:t,registry:r}=e,n=Ct("BaseInputTemplate",r,t);return T.jsx(n,{...e})}function MGe(e){const{onChange:t,options:r,registry:n}=e,o=Ct("BaseInputTemplate",n,r),a=m.useCallback(i=>t(i?`${i}:00`:void 0),[t]);return T.jsx(o,{type:"time",...e,onChange:a})}function BGe(e){const{options:t,registry:r}=e,n=Ct("BaseInputTemplate",r,t);return T.jsx(n,{type:"url",...e})}function jGe(e){const{options:t,registry:r}=e,n=Ct("BaseInputTemplate",r,t);return T.jsx(n,{type:"number",...e})}function LGe(){return{AltDateWidget:vGe,AltDateTimeWidget:gGe,CheckboxWidget:bGe,CheckboxesWidget:yGe,ColorWidget:SGe,DateWidget:wGe,DateTimeWidget:CGe,EmailWidget:xGe,FileWidget:IGe,HiddenWidget:RGe,PasswordWidget:FGe,RadioWidget:OGe,RangeWidget:NGe,SelectWidget:DGe,TextWidget:AGe,TextareaWidget:Nme,TimeWidget:MGe,UpDownWidget:jGe,URLWidget:BGe}}function zGe(){return{fields:HKe(),templates:pGe(),widgets:LGe(),rootSchema:{},formContext:{},translateString:Mqe}}let Ay=class extends m.Component{constructor(t){if(super(t),this.getUsedFormData=(r,n)=>{if(n.length===0&&typeof r!="object")return r;const o=Oc(r,n);return Array.isArray(r)?Object.keys(o).map(a=>o[a]):o},this.getFieldNames=(r,n)=>{const o=(a,i=[],s=[[]])=>(Object.keys(a).forEach(l=>{if(typeof a[l]=="object"){const u=s.map(c=>[...c,l]);a[l][W9]&&a[l][zP]!==""?i.push(a[l][zP]):o(a[l],i,u)}else l===zP&&a[l]!==""&&s.forEach(u=>{const c=Wt(n,u);(typeof c!="object"||bh(c)||Array.isArray(c)&&c.every(d=>typeof d!="object"))&&i.push(u)})}),i);return o(r)},this.omitExtraData=r=>{const{schema:n,schemaUtils:o}=this.state,a=o.retrieveSchema(n,r),i=o.toPathSchema(a,"",r),s=this.getFieldNames(i,r);return this.getUsedFormData(r,s)},this.onChange=(r,n,o)=>{const{extraErrors:a,omitExtraData:i,liveOmit:s,noValidate:l,liveValidate:u,onChange:c}=this.props,{schemaUtils:d,schema:f,retrievedSchema:p}=this.state;(bo(r)||Array.isArray(r))&&(r=this.getStateFromProps(this.props,r,p).formData);const h=!l&&u;let v={formData:r,schema:f},b=r;if(i===!0&&s===!0&&(b=this.omitExtraData(r),v={formData:b}),h){const g=this.validate(b,f,d,p);let y=g.errors,S=g.errorSchema;const w=y,$=S;if(a){const C=fC(g,a);S=C.errorSchema,y=C.errors}if(n){const C=this.filterErrorsBasedOnSchema(n,p,b);S=ih(S,C,"preventDuplicates")}v={formData:b,errors:y,errorSchema:S,schemaValidationErrors:w,schemaValidationErrorSchema:$}}else if(!l&&n){const g=a?ih(n,a,"preventDuplicates"):n;v={formData:b,errorSchema:g,errors:Dy(g)}}this.setState(v,()=>c&&c({...this.state,...v},o))},this.reset=()=>{const{onChange:r}=this.props,a={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(a,()=>r&&r({...this.state,...a}))},this.onBlur=(r,n)=>{const{onBlur:o}=this.props;o&&o(r,n)},this.onFocus=(r,n)=>{const{onFocus:o}=this.props;o&&o(r,n)},this.onSubmit=r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:n,extraErrors:o,noValidate:a,onSubmit:i}=this.props;let{formData:s}=this.state;if(n===!0&&(s=this.omitExtraData(s)),a||this.validateFormWithFormData(s)){const l=o||{},u=o?Dy(o):[];this.setState({formData:s,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{i&&i({...this.state,formData:s,status:"submitted"},r)})}},this.submit=()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}},this.validateFormWithFormData=r=>{const{extraErrors:n,extraErrorsBlockSubmit:o,focusOnFirstError:a,onError:i}=this.props,{errors:s}=this.state,l=this.validate(r);let u=l.errors,c=l.errorSchema;const d=u,f=c,p=u.length>0||n&&o;if(p){if(n){const h=fC(l,n);c=h.errorSchema,u=h.errors}a&&(typeof a=="function"?a(u[0]):this.focusOnError(u[0])),this.setState({errors:u,errorSchema:c,schemaValidationErrors:d,schemaValidationErrorSchema:f},()=>{i?i(u):console.error("Form validation failed",u)})}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!p},!t.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(t,t.formData),this.props.onChange&&!Ii(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=m.createRef()}getSnapshotBeforeUpdate(t,r){if(!Ii(this.props,t)){const n=!Ii(t.schema,this.props.schema),o=!Ii(t.formData,this.props.formData),a=this.getStateFromProps(this.props,this.props.formData,n||o?void 0:this.state.retrievedSchema,n),i=!Ii(a,r);return{nextState:a,shouldUpdate:i}}return{shouldUpdate:!1}}componentDidUpdate(t,r,n){if(n.shouldUpdate){const{nextState:o}=n;!Ii(o.formData,this.props.formData)&&!Ii(o.formData,r.formData)&&this.props.onChange&&this.props.onChange(o),this.setState(o)}}getStateFromProps(t,r,n,o=!1){var x;const a=this.state||{},i="schema"in t?t.schema:this.props.schema,s=("uiSchema"in t?t.uiSchema:this.props.uiSchema)||{},l=typeof r<"u",u="liveValidate"in t?t.liveValidate:this.props.liveValidate,c=l&&!t.noValidate&&u,d=i,f="experimental_defaultFormStateBehavior"in t?t.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let p=a.schemaUtils;(!p||p.doesSchemaUtilsDiffer(t.validator,d,f))&&(p=Nqe(t.validator,d,f));const h=p.getDefaultFormState(i,r),v=n??p.retrieveSchema(i,h),b=()=>t.noValidate||o?{errors:[],errorSchema:{}}:t.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let g,y,S=a.schemaValidationErrors,w=a.schemaValidationErrorSchema;if(c){const E=this.validate(h,i,p,v);g=E.errors,o?y=E.errorSchema:y=ih((x=this.state)==null?void 0:x.errorSchema,E.errorSchema,"preventDuplicates"),S=g,w=y}else{const E=b();g=E.errors,y=E.errorSchema}if(t.extraErrors){const E=fC({errorSchema:y,errors:g},t.extraErrors);y=E.errorSchema,g=E.errors}const $=p.toIdSchema(v,s["ui:rootFieldId"],h,t.idPrefix,t.idSeparator);return{schemaUtils:p,schema:i,uiSchema:s,idSchema:$,formData:h,edit:l,errors:g,errorSchema:y,schemaValidationErrors:S,schemaValidationErrorSchema:w,retrievedSchema:v}}shouldComponentUpdate(t,r){return Zqe(this,t,r)}validate(t,r=this.props.schema,n,o){const a=n||this.state.schemaUtils,{customValidate:i,transformErrors:s,uiSchema:l}=this.props,u=o??a.retrieveSchema(r,t);return a.getValidator().validateFormData(t,u,i,s,l)}renderErrors(t){const{errors:r,errorSchema:n,schema:o,uiSchema:a}=this.state,{formContext:i}=this.props,s=At(a),l=Ct("ErrorListTemplate",t,s);return r&&r.length?T.jsx(l,{errors:r,errorSchema:n||{},schema:o,uiSchema:a,formContext:i,registry:t}):null}filterErrorsBasedOnSchema(t,r,n){const{retrievedSchema:o,schemaUtils:a}=this.state,i=r??o,s=a.toPathSchema(i,"",n),l=this.getFieldNames(s,n),u=Oc(t,l);(r==null?void 0:r.type)!=="object"&&(r==null?void 0:r.type)!=="array"&&(u.__errors=t.__errors);const c=d=>(ZHe(d,(f,p)=>{ame(f)?delete d[p]:typeof f=="object"&&!Array.isArray(f.__errors)&&c(f)}),d);return c(u)}getRegistry(){var u;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:a,widgets:i,formContext:s,translateString:l}=zGe();return{fields:{...o,...this.props.fields},templates:{...a,...this.props.templates,ButtonTemplates:{...a.ButtonTemplates,...(u=this.props.templates)==null?void 0:u.ButtonTemplates}},widgets:{...i,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||s,schemaUtils:n,translateString:t||l,globalUiOptions:r[qFe]}}focusOnError(t){const{idPrefix:r="root",idSeparator:n="_"}=this.props,{property:o}=t,a=cme(o);a[0]===""?a[0]=r:a.unshift(r);const i=a.join(n);let s=this.formElement.current.elements[i];s||(s=this.formElement.current.querySelector(`input[id^="${i}"`)),s&&s.length&&(s=s[0]),s&&s.focus()}validateForm(){const{omitExtraData:t}=this.props;let{formData:r}=this.state;return t===!0&&(r=this.omitExtraData(r)),this.validateFormWithFormData(r)}render(){const{children:t,id:r,idPrefix:n,idSeparator:o,className:a="",tagName:i,name:s,method:l,target:u,action:c,autoComplete:d,enctype:f,acceptcharset:p,acceptCharset:h,noHtml5Validate:v=!1,disabled:b,readonly:g,formContext:y,showErrorList:S="top",_internalFormWrapper:w}=this.props,{schema:$,uiSchema:C,formData:x,errorSchema:E,idSchema:_}=this.state,k=this.getRegistry(),{SchemaField:I}=k.fields,{SubmitButton:N}=k.templates.ButtonTemplates,z=w?i:void 0,O=w||i||"form";let{[tI]:A={}}=At(C);b&&(A={...A,props:{...A.props,disabled:!0}});const M={[If]:{[tI]:A}};return T.jsxs(O,{className:a||"rjsf",id:r,name:s,method:l,target:u,action:c,autoComplete:d,encType:f,acceptCharset:h||p,noValidate:v,onSubmit:this.onSubmit,as:z,ref:this.formElement,children:[S==="top"&&this.renderErrors(k),T.jsx(I,{name:"",schema:$,uiSchema:C,errorSchema:E,idSchema:_,idPrefix:n,idSeparator:o,formContext:y,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:b,readonly:g}),t||T.jsx(N,{uiSchema:M,registry:k}),S==="bottom"&&this.renderErrors(k)]})}};function Fd(e){return m.forwardRef(({fields:t,widgets:r,templates:n,...o},a)=>{var i;return t={...e==null?void 0:e.fields,...t},r={...e==null?void 0:e.widgets,...r},n={...e==null?void 0:e.templates,...n,ButtonTemplates:{...(i=e==null?void 0:e.templates)==null?void 0:i.ButtonTemplates,...n==null?void 0:n.ButtonTemplates}},T.jsx(Ay,{...e,...o,fields:t,widgets:r,templates:n,ref:a})})}var B7={},Dme={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Dme);var Fo=Dme.exports,Ame={exports:{}},Mme={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Mme);var $u=Mme.exports;(function(e){var t=$u.default;function r(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,i=new WeakMap;return(r=function(l){return l?i:a})(o)}function n(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||t(o)!="object"&&typeof o!="function")return{default:o};var i=r(a);if(i&&i.has(o))return i.get(o);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if(u!=="default"&&{}.hasOwnProperty.call(o,u)){var c=l?Object.getOwnPropertyDescriptor(o,u):null;c&&(c.get||c.set)?Object.defineProperty(s,u,c):s[u]=o[u]}return s.default=o,i&&i.set(o,s),s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Ame);var Z1=Ame.exports,zM={};function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?G({},e):e;return VM(e)&&VM(t)&&Object.keys(t).forEach(function(o){o!=="__proto__"&&(VM(t[o])&&o in e?n[o]=_g(e[o],t[o],r):n[o]=t[o])}),n}var Bme={exports:{}},VGe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",HGe=VGe,WGe=HGe;function jme(){}function Lme(){}Lme.resetWarningCache=jme;var qGe=function(){function e(n,o,a,i,s,l){if(l!==WGe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Lme,resetWarningCache:jme};return r.PropTypes=r,r};Bme.exports=qGe();var j7=Bme.exports;const HM=zt(j7);function UGe(e,t){if(or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zme(e){var t=UGe(e,"string");return or(t)=="symbol"?t:t+""}function le(e,t,r){return(t=zme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function My(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,r=t===void 0?!1:t,n=e.productionPrefix,o=n===void 0?"jss":n,a=e.seed,i=a===void 0?"":a,s=i===""?"":"".concat(i,"-"),l=0,u=function(){return l+=1,l};return function(c,d){var f=d.options.name;if(f&&f.indexOf("Mui")===0&&!d.options.link&&!r){if(YGe.indexOf(c.key)!==-1)return"Mui-".concat(c.key);var p="".concat(s).concat(f,"-").concat(c.key);return!d.options.theme[GGe]||i!==""?p:"".concat(p,"-").concat(u())}return"".concat(s).concat(o).concat(u())}}function Hme(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o=t.props[r],a;for(a in o)n[a]===void 0&&(n[a]=o[a]);return n}var tZ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hE=(typeof window>"u"?"undefined":tZ(window))==="object"&&(typeof document>"u"?"undefined":tZ(document))==="object"&&document.nodeType===9;function rZ(e,t){for(var r=0;r<+~=|^:(),"'`\s])/g,oZ=typeof CSS<"u"&&CSS.escape,z7=function(e){return oZ?oZ(e):e.replace(ZGe,"\\$1")},Wme=function(){function e(r,n,o){this.type="style",this.isProcessed=!1;var a=o.sheet,i=o.Renderer;this.key=r,this.options=o,this.style=n,a?this.renderer=a.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,o,a){if(o===void 0)return this.style[n];var i=a?a.force:!1;if(!i&&this.style[n]===o)return this;var s=o;(!a||a.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,n,this));var l=s==null||s===!1,u=n in this.style;if(l&&!u&&!i)return this;var c=l&&u;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var d=this.options.sheet;return d&&d.attached,this},e}(),eL=function(e){co(t,e);function t(n,o,a){var i;i=e.call(this,n,o,a)||this;var s=a.selector,l=a.scoped,u=a.sheet,c=a.generateId;return s?i.selectorText=s:l!==!1&&(i.id=c(yr(yr(i)),u),i.selectorText="."+z7(i.id)),i}var r=t.prototype;return r.applyTo=function(o){var a=this.renderer;if(a){var i=this.toJSON();for(var s in i)a.setProperty(o,s,i[s])}return this},r.toJSON=function(){var o={};for(var a in this.style){var i=this.style[a];typeof i!="object"?o[a]=i:Array.isArray(i)&&(o[a]=ig(i))}return o},r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?G({},o,{allowEmpty:!0}):o;return Lx(this.selectorText,this.style,s)},Oo(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var a=this.renderer,i=this.renderable;if(!(!i||!a)){var s=a.setSelector(i,o);s||a.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(Wme),JGe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new eL(t,r,n)}},WM={indent:1,children:!0},eYe=/@([\w-]+)/,tYe=function(){function e(r,n,o){this.type="conditional",this.isProcessed=!1,this.key=r;var a=r.match(eYe);this.at=a?a[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new SO(G({},o,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=WM);var o=J1(n),a=o.linebreak;if(n.indent==null&&(n.indent=WM.indent),n.children==null&&(n.children=WM.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+a+i+a+"}":""},e}(),rYe=/@container|@media|@supports\s+/,nYe={onCreateRule:function(t,r,n){return rYe.test(t)?new tYe(t,r,n):null}},qM={indent:1,children:!0},oYe=/@keyframes\s+([\w-]+)/,tL=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=r.match(oYe);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var i=o.scoped,s=o.sheet,l=o.generateId;this.id=i===!1?this.name:z7(l(this,s)),this.rules=new SO(G({},o,{parent:this}));for(var u in n)this.rules.add(u,n[u],G({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=qM);var o=J1(n),a=o.linebreak;if(n.indent==null&&(n.indent=qM.indent),n.children==null&&(n.children=qM.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+a+i+a),this.at+" "+this.id+" {"+i+"}"},e}(),aYe=/@keyframes\s+/,iYe=/\$([\w-]+)/g,rL=function(t,r){return typeof t=="string"?t.replace(iYe,function(n,o){return o in r?r[o]:n}):t},aZ=function(t,r,n){var o=t[r],a=rL(o,n);a!==o&&(t[r]=a)},sYe={onCreateRule:function(t,r,n){return typeof t=="string"&&aYe.test(t)?new tL(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&aZ(t,"animation-name",n.keyframes),"animation"in t&&aZ(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return rL(t,o.keyframes);case"animation-name":return rL(t,o.keyframes);default:return t}}},lYe=function(e){co(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?G({},o,{allowEmpty:!0}):o;return Lx(this.key,this.style,s)},t}(Wme),uYe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new lYe(t,r,n):null}},cYe=function(){function e(r,n,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var t=e.prototype;return t.toString=function(n){var o=J1(n),a=o.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){o.push(n);return}for(var i=0;ia){o.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,a=o.attached,i=mn(o,["attached"]),s=J1(i),l=s.linebreak,u="",c=0;c-1?o.substr(0,a-1):o;t.style.setProperty(r,i,a>-1?"important":"")}}catch{return!1}return!0},xYe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},$Ye=function(t,r){return t.selectorText=r,t.selectorText===r},Kme=Ume(function(){return document.querySelector("head")});function EYe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function _Ye(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function kYe(e){for(var t=Kme(),r=0;r0){var r=EYe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=_Ye(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=kYe(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function TYe(e,t){var r=t.insertionPoint,n=PYe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,a=o.parentNode;a&&a.insertBefore(e,o.nextSibling);return}Kme().appendChild(e)}var IYe=Ume(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),cZ=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},dZ=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},RYe=function(){var t=document.createElement("style");return t.textContent=` +`,t},FYe=function(){function e(r){this.getPropertyValue=wYe,this.setProperty=CYe,this.removeProperty=xYe,this.setSelector=$Ye,this.hasInsertedRules=!1,this.cssRules=[],r&&pC.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,a=n.meta,i=n.element;this.element=i||RYe(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),a&&this.element.setAttribute("data-meta",a);var s=IYe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){TYe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` +`)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` +`+n.toString()+` +`}},t.insertRules=function(n,o){for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=Array(t);r-1){var a=rhe[t];if(!Array.isArray(a))return $r.js+Sh(a)in r?$r.css+a:!1;if(!o)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},a=Object.keys(r).sort(e),i=0;i"u"?null:IXe(),RXe()]}}function U7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=G({},t);return Object.keys(r).forEach(function(o){r[o]&&(n[o]="".concat(t[o]," ").concat(r[o]))}),n}var FXe={set:function(t,r,n,o){var a=t.get(r);a||(a=new Map,t.set(r,a)),a.set(n,o)},get:function(t,r,n){var o=t.get(r);return o?o.get(n):void 0},delete:function(t,r,n){var o=t.get(r);o.delete(n)}};const Mb=FXe;var OXe=Y.createContext(null);const NXe=OXe;function CO(){var e=Y.useContext(NXe);return e}var DXe=wO(q7()),AXe=XGe(),MXe=new Map,BXe={disableGeneration:!1,generateClassName:AXe,jss:DXe,sheetsCache:null,sheetsManager:MXe,sheetsRegistry:null},uL=Y.createContext(BXe),v2;function jXe(e){var t=e.children,r=e.injectFirst,n=r===void 0?!1:r,o=e.disableGeneration,a=o===void 0?!1:o,i=St(e,["children","injectFirst","disableGeneration"]),s=Y.useContext(uL),l=G({},s,{disableGeneration:a},i);if(!l.jss.options.insertionPoint&&n&&typeof window<"u"){if(!v2){var u=document.head;v2=document.createComment("mui-inject-first"),u.insertBefore(v2,u.firstChild)}l.jss=wO({plugins:q7().plugins,insertionPoint:v2})}return Y.createElement(uL.Provider,{value:l},t)}var hZ=-1e9;function LXe(){return hZ+=1,hZ}var zXe={};const VXe=zXe;function HXe(e){var t=typeof e=="function";return{create:function(n,o){var a;try{a=t?e(n):e}catch(l){throw l}if(!o||!n.overrides||!n.overrides[o])return a;var i=n.overrides[o],s=G({},a);return Object.keys(i).forEach(function(l){s[l]=_g(s[l],i[l])}),s},options:{}}}function WXe(e,t,r){var n=e.state,o=e.stylesOptions;if(o.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,a=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,a=!0),a&&(n.cacheClasses.value=U7({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function qXe(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,a=e.stylesCreator,i=e.name;if(!o.disableGeneration){var s=Mb.get(o.sheetsManager,a,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Mb.set(o.sheetsManager,a,n,s));var l=G({},a.options,o,{theme:n,flip:typeof o.flip=="boolean"?o.flip:n.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(s.refs===0){var c;o.sheetsCache&&(c=Mb.get(o.sheetsCache,a,n));var d=a.create(n,i);c||(c=o.jss.createStyleSheet(d,G({link:!1},l)),c.attach(),o.sheetsCache&&Mb.set(o.sheetsCache,a,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Gme(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,G({link:!0},l));f.update(t),f.attach(),r.dynamicSheet=f,r.classes=U7({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else r.classes=s.staticSheet.classes;s.refs+=1}}function UXe(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function KXe(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var a=Mb.get(n.sheetsManager,o,r);a.refs-=1;var i=n.sheetsRegistry;a.refs===0&&(Mb.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),i&&i.remove(t.dynamicSheet))}}function GXe(e,t){var r=Y.useRef([]),n,o=Y.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),Y.useEffect(function(){return function(){n&&n()}},[o])}function ohe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,a=t.defaultTheme,i=a===void 0?VXe:a,s=St(t,["name","classNamePrefix","Component","defaultTheme"]),l=HXe(e),u=r||n||"makeStyles";l.options={index:LXe(),name:r,meta:u,classNamePrefix:u};var c=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=CO()||i,h=G({},Y.useContext(uL),s),v=Y.useRef(),b=Y.useRef();GXe(function(){var y={name:r,state:{},stylesCreator:l,stylesOptions:h,theme:p};return qXe(y,f),b.current=!1,v.current=y,function(){KXe(y)}},[p,l]),Y.useEffect(function(){b.current&&UXe(v.current,f),b.current=!0});var g=WXe(v.current,f.classes,o);return g};return c}function oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ahe={exports:{}},Tn={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qa=typeof Symbol=="function"&&Symbol.for,K7=qa?Symbol.for("react.element"):60103,G7=qa?Symbol.for("react.portal"):60106,xO=qa?Symbol.for("react.fragment"):60107,$O=qa?Symbol.for("react.strict_mode"):60108,EO=qa?Symbol.for("react.profiler"):60114,_O=qa?Symbol.for("react.provider"):60109,kO=qa?Symbol.for("react.context"):60110,Y7=qa?Symbol.for("react.async_mode"):60111,PO=qa?Symbol.for("react.concurrent_mode"):60111,TO=qa?Symbol.for("react.forward_ref"):60112,IO=qa?Symbol.for("react.suspense"):60113,YXe=qa?Symbol.for("react.suspense_list"):60120,RO=qa?Symbol.for("react.memo"):60115,FO=qa?Symbol.for("react.lazy"):60116,XXe=qa?Symbol.for("react.block"):60121,QXe=qa?Symbol.for("react.fundamental"):60117,ZXe=qa?Symbol.for("react.responder"):60118,JXe=qa?Symbol.for("react.scope"):60119;function Dl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case K7:switch(e=e.type,e){case Y7:case PO:case xO:case EO:case $O:case IO:return e;default:switch(e=e&&e.$$typeof,e){case kO:case TO:case FO:case RO:case _O:return e;default:return t}}case G7:return t}}}function ihe(e){return Dl(e)===PO}Tn.AsyncMode=Y7;Tn.ConcurrentMode=PO;Tn.ContextConsumer=kO;Tn.ContextProvider=_O;Tn.Element=K7;Tn.ForwardRef=TO;Tn.Fragment=xO;Tn.Lazy=FO;Tn.Memo=RO;Tn.Portal=G7;Tn.Profiler=EO;Tn.StrictMode=$O;Tn.Suspense=IO;Tn.isAsyncMode=function(e){return ihe(e)||Dl(e)===Y7};Tn.isConcurrentMode=ihe;Tn.isContextConsumer=function(e){return Dl(e)===kO};Tn.isContextProvider=function(e){return Dl(e)===_O};Tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===K7};Tn.isForwardRef=function(e){return Dl(e)===TO};Tn.isFragment=function(e){return Dl(e)===xO};Tn.isLazy=function(e){return Dl(e)===FO};Tn.isMemo=function(e){return Dl(e)===RO};Tn.isPortal=function(e){return Dl(e)===G7};Tn.isProfiler=function(e){return Dl(e)===EO};Tn.isStrictMode=function(e){return Dl(e)===$O};Tn.isSuspense=function(e){return Dl(e)===IO};Tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xO||e===PO||e===EO||e===$O||e===IO||e===YXe||typeof e=="object"&&e!==null&&(e.$$typeof===FO||e.$$typeof===RO||e.$$typeof===_O||e.$$typeof===kO||e.$$typeof===TO||e.$$typeof===QXe||e.$$typeof===ZXe||e.$$typeof===JXe||e.$$typeof===XXe)};Tn.typeOf=Dl;ahe.exports=Tn;var eQe=ahe.exports,X7=eQe,tQe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rQe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nQe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},she={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Q7={};Q7[X7.ForwardRef]=nQe;Q7[X7.Memo]=she;function vZ(e){return X7.isMemo(e)?she:Q7[e.$$typeof]||tQe}var oQe=Object.defineProperty,aQe=Object.getOwnPropertyNames,gZ=Object.getOwnPropertySymbols,iQe=Object.getOwnPropertyDescriptor,sQe=Object.getPrototypeOf,bZ=Object.prototype;function lhe(e,t,r){if(typeof t!="string"){if(bZ){var n=sQe(t);n&&n!==bZ&&lhe(e,n,r)}var o=aQe(t);gZ&&(o=o.concat(gZ(t)));for(var a=vZ(e),i=vZ(t),s=0;s1&&arguments[1]!==void 0?arguments[1]:{},a=o.name,i=St(o,["name"]),s=a,l=typeof n=="function"?function(f){return{root:function(h){return n(G({theme:f},h))}}}:{root:n},u=ohe(l,G({Component:e,name:a||e.displayName,classNamePrefix:s},i)),c;n.filterProps&&(c=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);var d=Y.forwardRef(function(p,h){var v=p.children,b=p.className,g=p.clone,y=p.component,S=St(p,["children","className","clone","component"]),w=u(p),$=ft(w.root,b),C=S;if(c&&(C=uQe(C,c)),g)return Y.cloneElement(v,G({className:ft(v.props.className,$)},C));if(typeof v=="function")return v(G({className:$},C));var x=y||e;return Y.createElement(x,G({ref:h,className:$},C),v)});return uhe(d,e),d};return t}var dQe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(n){var o=r.defaultTheme,a=r.withTheme,i=a===void 0?!1:a,s=r.name,l=St(r,["defaultTheme","withTheme","name"]),u=s,c=ohe(t,G({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:u},l)),d=Y.forwardRef(function(p,h){p.classes;var v=p.innerRef,b=St(p,["classes","innerRef"]),g=c(G({},n.defaultProps,p)),y,S=b;return(typeof s=="string"||i)&&(y=CO()||o,s&&(S=Hme({theme:y,name:s,props:b})),i&&!S.theme&&(S.theme=y)),Y.createElement(n,G({ref:v||h,classes:g},S))});return uhe(d,n),d}};const fQe=dQe;var Zp=["xs","sm","md","lg","xl"];function pQe(e){var t=e.values,r=t===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,n=e.unit,o=n===void 0?"px":n,a=e.step,i=a===void 0?5:a,s=St(e,["values","unit","step"]);function l(p){var h=typeof r[p]=="number"?r[p]:p;return"@media (min-width:".concat(h).concat(o,")")}function u(p){var h=Zp.indexOf(p)+1,v=r[Zp[h]];if(h===Zp.length)return l("xs");var b=typeof v=="number"&&h>0?v:p;return"@media (max-width:".concat(b-i/100).concat(o,")")}function c(p,h){var v=Zp.indexOf(h);return v===Zp.length-1?l(p):"@media (min-width:".concat(typeof r[p]=="number"?r[p]:p).concat(o,") and ")+"(max-width:".concat((v!==-1&&typeof r[Zp[v+1]]=="number"?r[Zp[v+1]]:h)-i/100).concat(o,")")}function d(p){return c(p,p)}function f(p){return r[p]}return G({keys:Zp,values:r,up:l,down:u,between:c,only:d,width:f},s)}function mQe(e,t,r){var n;return G({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` + paddingLeft: theme.spacing(2), + paddingRight: theme.spacing(2), + [theme.breakpoints.up('sm')]: { + paddingLeft: theme.spacing(3), + paddingRight: theme.spacing(3), + }, + `].join(` +`)),G({paddingLeft:t(2),paddingRight:t(2)},a,le({},e.up("sm"),G({paddingLeft:t(3),paddingRight:t(3)},a[e.up("sm")])))},toolbar:(n={minHeight:56},le(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),le(n,e.up("sm"),{minHeight:64}),n)},r)}var hQe={black:"#000",white:"#fff"};const vI=hQe;var vQe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const Z7=vQe;var gQe={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const e5=gQe;var bQe={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const t5=bQe;var yQe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const r5=yQe;var SQe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const n5=SQe;var wQe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const o5=wQe;var CQe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const a5=CQe;function J7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(t,e),r)}function xQe(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function $Qe(e){e=kg(e);var t=e,r=t.values,n=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(d+n/30)%12;return a-i*Math.max(Math.min(f-3,9-f,1),-1)},l="rgb",u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(r[3])),OO({type:l,values:u})}function kg(e){if(e.type)return e;if(e.charAt(0)==="#")return kg(xQe(e));var t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error(My(3,e));var n=e.substring(t+1,e.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function OO(e){var t=e.type,r=e.values;return t.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):t.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function EQe(e,t){var r=yZ(e),n=yZ(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yZ(e){e=kg(e);var t=e.type==="hsl"?kg($Qe(e)).values:e.values;return t=t.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ya(e,t){return e=kg(e),t=J7(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.values[3]=t,OO(e)}function che(e,t){if(e=kg(e),t=J7(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]*=1-t;return OO(e)}function dhe(e,t){if(e=kg(e),t=J7(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return OO(e)}var SZ={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vI.white,default:Z7[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},i5={text:{primary:vI.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Z7[800],default:"#303030"},action:{active:vI.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wZ(e,t,r,n){var o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=dhe(e.main,o):t==="dark"&&(e.dark=che(e.main,a)))}function _Qe(e){var t=e.primary,r=t===void 0?{light:e5[300],main:e5[500],dark:e5[700]}:t,n=e.secondary,o=n===void 0?{light:t5.A200,main:t5.A400,dark:t5.A700}:n,a=e.error,i=a===void 0?{light:r5[300],main:r5[500],dark:r5[700]}:a,s=e.warning,l=s===void 0?{light:n5[300],main:n5[500],dark:n5[700]}:s,u=e.info,c=u===void 0?{light:o5[300],main:o5[500],dark:o5[700]}:u,d=e.success,f=d===void 0?{light:a5[300],main:a5[500],dark:a5[700]}:d,p=e.type,h=p===void 0?"light":p,v=e.contrastThreshold,b=v===void 0?3:v,g=e.tonalOffset,y=g===void 0?.2:g,S=St(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(E){var _=EQe(E,i5.text.primary)>=b?i5.text.primary:SZ.text.primary;return _}var $=function(_){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(_=G({},_),!_.main&&_[k]&&(_.main=_[k]),!_.main)throw new Error(My(4,k));if(typeof _.main!="string")throw new Error(My(5,JSON.stringify(_.main)));return wZ(_,"light",I,y),wZ(_,"dark",N,y),_.contrastText||(_.contrastText=w(_.main)),_},C={dark:i5,light:SZ},x=_g(G({common:vI,type:h,primary:$(r),secondary:$(o,"A400","A200","A700"),error:$(i),warning:$(l),info:$(c),success:$(f),grey:Z7,contrastThreshold:b,getContrastText:w,augmentColor:$,tonalOffset:y},C[h]),S);return x}function fhe(e){return Math.round(e*1e5)/1e5}function kQe(e){return fhe(e)}var CZ={textTransform:"uppercase"},xZ='"Roboto", "Helvetica", "Arial", sans-serif';function PQe(e,t){var r=typeof t=="function"?t(e):t,n=r.fontFamily,o=n===void 0?xZ:n,a=r.fontSize,i=a===void 0?14:a,s=r.fontWeightLight,l=s===void 0?300:s,u=r.fontWeightRegular,c=u===void 0?400:u,d=r.fontWeightMedium,f=d===void 0?500:d,p=r.fontWeightBold,h=p===void 0?700:p,v=r.htmlFontSize,b=v===void 0?16:v,g=r.allVariants,y=r.pxToRem,S=St(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),w=i/14,$=y||function(E){return"".concat(E/b*w,"rem")},C=function(_,k,I,N,z){return G({fontFamily:o,fontWeight:_,fontSize:$(k),lineHeight:I},o===xZ?{letterSpacing:"".concat(fhe(N/k),"em")}:{},z,g)},x={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(c,48,1.167,0),h4:C(c,34,1.235,.25),h5:C(c,24,1.334,0),h6:C(f,20,1.6,.15),subtitle1:C(c,16,1.75,.15),subtitle2:C(f,14,1.57,.1),body1:C(c,16,1.5,.15),body2:C(c,14,1.43,.15),button:C(f,14,1.75,.4,CZ),caption:C(c,12,1.66,.4),overline:C(c,12,2.66,1,CZ)};return _g(G({htmlFontSize:b,pxToRem:$,round:kQe,fontFamily:o,fontSize:i,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:f,fontWeightBold:h},x),S,{clone:!1})}var TQe=.2,IQe=.14,RQe=.12;function po(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(TQe,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(IQe,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(RQe,")")].join(",")}var FQe=["none",po(0,2,1,-1,0,1,1,0,0,1,3,0),po(0,3,1,-2,0,2,2,0,0,1,5,0),po(0,3,3,-2,0,3,4,0,0,1,8,0),po(0,2,4,-1,0,4,5,0,0,1,10,0),po(0,3,5,-1,0,5,8,0,0,1,14,0),po(0,3,5,-1,0,6,10,0,0,1,18,0),po(0,4,5,-2,0,7,10,1,0,2,16,1),po(0,5,5,-3,0,8,10,1,0,3,14,2),po(0,5,6,-3,0,9,12,1,0,3,16,2),po(0,6,6,-3,0,10,14,1,0,4,18,3),po(0,6,7,-4,0,11,15,1,0,4,20,3),po(0,7,8,-4,0,12,17,2,0,5,22,4),po(0,7,8,-4,0,13,19,2,0,5,24,4),po(0,7,9,-4,0,14,21,2,0,5,26,4),po(0,8,9,-5,0,15,22,2,0,6,28,5),po(0,8,10,-5,0,16,24,2,0,6,30,5),po(0,8,11,-5,0,17,26,2,0,6,32,5),po(0,9,11,-5,0,18,28,2,0,7,34,6),po(0,9,12,-6,0,19,29,2,0,7,36,6),po(0,10,13,-6,0,20,31,3,0,8,38,7),po(0,10,13,-6,0,21,33,3,0,8,40,7),po(0,10,14,-6,0,22,35,3,0,8,42,7),po(0,11,14,-7,0,23,36,3,0,9,44,8),po(0,11,15,-7,0,24,38,3,0,9,46,8)];const OQe=FQe;var NQe={borderRadius:4};const DQe=NQe;function gI(e,t){return t?_g(e,t,{clone:!1}):e}var AQe={xs:0,sm:600,md:960,lg:1280,xl:1920},$Z={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(AQe[t],"px)")}};function phe(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||$Z;return t.reduce(function(i,s,l){return i[n.up(n.keys[l])]=r(t[l]),i},{})}if(or(t)==="object"){var o=e.theme.breakpoints||$Z;return Object.keys(t).reduce(function(i,s){return i[o.up(s)]=r(t[s]),i},{})}var a=r(t);return a}function EZ(e,t){return!t||typeof t!="string"?null:t.split(".").reduce(function(r,n){return r&&r[n]?r[n]:null},e)}function Bt(e){var t=e.prop,r=e.cssProperty,n=r===void 0?e.prop:r,o=e.themeKey,a=e.transform,i=function(l){if(l[t]==null)return null;var u=l[t],c=l.theme,d=EZ(c,o)||{},f=function(h){var v;return typeof d=="function"?v=d(h):Array.isArray(d)?v=d[h]||h:(v=EZ(d,h)||h,a&&(v=a(v))),n===!1?v:le({},n,v)};return phe(l,u,f)};return i.propTypes={},i.filterProps=[t],i}function Ip(){for(var e=arguments.length,t=new Array(e),r=0;r2)if(kZ[e])e=kZ[e];else return[e];var t=e.split(""),r=Ce(t,2),n=r[0],o=r[1],a=JZe[n],i=eJe[o]||"";return Array.isArray(i)?i.map(function(s){return a+s}):[a+i]}),vhe=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function ghe(e){var t=e.spacing||8;return typeof t=="number"?function(r){return t*r}:Array.isArray(t)?function(r){return t[r]}:typeof t=="function"?t:function(){}}function rJe(e,t){if(typeof t=="string"||t==null)return t;var r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:"-".concat(n)}function nJe(e,t){return function(r){return e.reduce(function(n,o){return n[o]=rJe(t,r),n},{})}}function eV(e){var t=e.theme,r=ghe(t);return Object.keys(e).map(function(n){if(vhe.indexOf(n)===-1)return null;var o=tJe(n),a=nJe(o,r),i=e[n];return phe(e,i,a)}).reduce(gI,{})}eV.propTypes={};eV.filterProps=vhe;var oJe=Bt({prop:"fontFamily",themeKey:"typography"}),aJe=Bt({prop:"fontSize",themeKey:"typography"}),iJe=Bt({prop:"fontStyle",themeKey:"typography"}),sJe=Bt({prop:"fontWeight",themeKey:"typography"}),lJe=Bt({prop:"letterSpacing"}),uJe=Bt({prop:"lineHeight"}),cJe=Bt({prop:"textAlign"}),dJe=Ip(oJe,aJe,iJe,sJe,lJe,uJe,cJe);const fJe=dJe;function pJe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=ghe({spacing:e}),r=function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?TZ.standard:n,a=r.easing,i=a===void 0?PZ.easeInOut:a,s=r.delay,l=s===void 0?0:s;return St(r,["duration","easing","delay"]),(Array.isArray(t)?t:[t]).map(function(u){return"".concat(u," ").concat(typeof o=="string"?o:IZ(o)," ").concat(i," ").concat(typeof l=="string"?l:IZ(l))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var r=t/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};var hJe={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const bhe=hJe;function vJe(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.breakpoints,r=t===void 0?{}:t,n=e.mixins,o=n===void 0?{}:n,a=e.palette,i=a===void 0?{}:a,s=e.spacing,l=e.typography,u=l===void 0?{}:l,c=St(e,["breakpoints","mixins","palette","spacing","typography"]),d=_Qe(i),f=pQe(r),p=pJe(s),h=_g({breakpoints:f,direction:"ltr",mixins:mQe(f,p,o),overrides:{},palette:d,props:{},shadows:OQe,typography:PQe(d,u),spacing:p,shape:DQe,transitions:mJe,zIndex:bhe},c),v=arguments.length,b=new Array(v>1?v-1:0),g=1;g1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,a=new Array(o),i=0;i"u"?m.useEffect:m.useLayoutEffect;function WJe(e){var t=e.classes,r=e.pulsate,n=r===void 0?!1:r,o=e.rippleX,a=e.rippleY,i=e.rippleSize,s=e.in,l=e.onExited,u=l===void 0?function(){}:l,c=e.timeout,d=m.useState(!1),f=d[0],p=d[1],h=ft(t.ripple,t.rippleVisible,n&&t.ripplePulsate),v={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=ft(t.child,f&&t.childLeaving,n&&t.childPulsate),g=ti(u);return HJe(function(){if(!s){p(!0);var y=setTimeout(g,c);return function(){clearTimeout(y)}}},[g,s,c]),m.createElement("span",{className:h,style:v},m.createElement("span",{className:b}))}var fL=550,qJe=80,UJe=function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(fL,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(fL,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},KJe=m.forwardRef(function(t,r){var n=t.center,o=n===void 0?!1:n,a=t.classes,i=t.className,s=St(t,["center","classes","className"]),l=m.useState([]),u=l[0],c=l[1],d=m.useRef(0),f=m.useRef(null);m.useEffect(function(){f.current&&(f.current(),f.current=null)},[u]);var p=m.useRef(!1),h=m.useRef(null),v=m.useRef(null),b=m.useRef(null);m.useEffect(function(){return function(){clearTimeout(h.current)}},[]);var g=m.useCallback(function($){var C=$.pulsate,x=$.rippleX,E=$.rippleY,_=$.rippleSize,k=$.cb;c(function(I){return[].concat(xt(I),[m.createElement(WJe,{key:d.current,classes:a,timeout:fL,pulsate:C,rippleX:x,rippleY:E,rippleSize:_})])}),d.current+=1,f.current=k},[a]),y=m.useCallback(function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=arguments.length>2?arguments[2]:void 0,E=C.pulsate,_=E===void 0?!1:E,k=C.center,I=k===void 0?o||C.pulsate:k,N=C.fakeElement,z=N===void 0?!1:N;if($.type==="mousedown"&&p.current){p.current=!1;return}$.type==="touchstart"&&(p.current=!0);var O=z?null:b.current,A=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0},M,L,j;if(I||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)M=Math.round(A.width/2),L=Math.round(A.height/2);else{var H=$.touches?$.touches[0]:$,B=H.clientX,F=H.clientY;M=Math.round(B-A.left),L=Math.round(F-A.top)}if(I)j=Math.sqrt((2*Math.pow(A.width,2)+Math.pow(A.height,2))/3),j%2===0&&(j+=1);else{var V=Math.max(Math.abs((O?O.clientWidth:0)-M),M)*2+2,D=Math.max(Math.abs((O?O.clientHeight:0)-L),L)*2+2;j=Math.sqrt(Math.pow(V,2)+Math.pow(D,2))}$.touches?v.current===null&&(v.current=function(){g({pulsate:_,rippleX:M,rippleY:L,rippleSize:j,cb:x})},h.current=setTimeout(function(){v.current&&(v.current(),v.current=null)},qJe)):g({pulsate:_,rippleX:M,rippleY:L,rippleSize:j,cb:x})},[o,g]),S=m.useCallback(function(){y({},{pulsate:!0})},[y]),w=m.useCallback(function($,C){if(clearTimeout(h.current),$.type==="touchend"&&v.current){$.persist(),v.current(),v.current=null,h.current=setTimeout(function(){w($,C)});return}v.current=null,c(function(x){return x.length>0?x.slice(1):x}),f.current=C},[]);return m.useImperativeHandle(r,function(){return{pulsate:S,start:y,stop:w}},[S,y,w]),m.createElement("span",G({className:ft(a.root,i),ref:b},s),m.createElement(Che,{component:null,exit:!0},u))});const GJe=Zr(UJe,{flip:!1,name:"MuiTouchRipple"})(m.memo(KJe));var YJe={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},XJe=m.forwardRef(function(t,r){var n=t.action,o=t.buttonRef,a=t.centerRipple,i=a===void 0?!1:a,s=t.children,l=t.classes,u=t.className,c=t.component,d=c===void 0?"button":c,f=t.disabled,p=f===void 0?!1:f,h=t.disableRipple,v=h===void 0?!1:h,b=t.disableTouchRipple,g=b===void 0?!1:b,y=t.focusRipple,S=y===void 0?!1:y,w=t.focusVisibleClassName,$=t.onBlur,C=t.onClick,x=t.onFocus,E=t.onFocusVisible,_=t.onKeyDown,k=t.onKeyUp,I=t.onMouseDown,N=t.onMouseLeave,z=t.onMouseUp,O=t.onTouchEnd,A=t.onTouchMove,M=t.onTouchStart,L=t.onDragLeave,j=t.tabIndex,H=j===void 0?0:j,B=t.TouchRippleProps,F=t.type,V=F===void 0?"button":F,D=St(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),P=m.useRef(null);function R(){return uo.findDOMNode(P.current)}var W=m.useRef(null),U=m.useState(!1),q=U[0],J=U[1];p&&q&&J(!1);var Z=oV(),Q=Z.isFocusVisible,oe=Z.onBlurVisible,ie=Z.ref;m.useImperativeHandle(n,function(){return{focusVisible:function(){J(!0),P.current.focus()}}},[]),m.useEffect(function(){q&&S&&!v&&W.current.pulsate()},[v,S,q]);function te(Fe,vt){var bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g;return ti(function(wt){vt&&vt(wt);var mt=bt;return!mt&&W.current&&W.current[Fe](wt),!0})}var ae=te("start",I),fe=te("stop",L),ve=te("stop",z),Se=te("stop",function(Fe){q&&Fe.preventDefault(),N&&N(Fe)}),se=te("start",M),pe=te("stop",O),ge=te("stop",A),de=te("stop",function(Fe){q&&(oe(Fe),J(!1)),$&&$(Fe)},!1),ee=ti(function(Fe){P.current||(P.current=Fe.currentTarget),Q(Fe)&&(J(!0),E&&E(Fe)),x&&x(Fe)}),me=function(){var vt=R();return d&&d!=="button"&&!(vt.tagName==="A"&&vt.href)},Re=m.useRef(!1),je=ti(function(Fe){S&&!Re.current&&q&&W.current&&Fe.key===" "&&(Re.current=!0,Fe.persist(),W.current.stop(Fe,function(){W.current.start(Fe)})),Fe.target===Fe.currentTarget&&me()&&Fe.key===" "&&Fe.preventDefault(),_&&_(Fe),Fe.target===Fe.currentTarget&&me()&&Fe.key==="Enter"&&!p&&(Fe.preventDefault(),C&&C(Fe))}),ze=ti(function(Fe){S&&Fe.key===" "&&W.current&&q&&!Fe.defaultPrevented&&(Re.current=!1,Fe.persist(),W.current.stop(Fe,function(){W.current.pulsate(Fe)})),k&&k(Fe),C&&Fe.target===Fe.currentTarget&&me()&&Fe.key===" "&&!Fe.defaultPrevented&&C(Fe)}),Le=d;Le==="button"&&D.href&&(Le="a");var $e={};Le==="button"?($e.type=V,$e.disabled=p):((Le!=="a"||!D.href)&&($e.role="button"),$e["aria-disabled"]=p);var Je=$a(o,r),Pe=$a(ie,P),st=$a(Je,Pe),_e=m.useState(!1),De=_e[0],et=_e[1];m.useEffect(function(){et(!0)},[]);var Ie=De&&!v&&!p;return m.createElement(Le,G({className:ft(l.root,u,q&&[l.focusVisible,w],p&&l.disabled),onBlur:de,onClick:C,onFocus:ee,onKeyDown:je,onKeyUp:ze,onMouseDown:ae,onMouseLeave:Se,onMouseUp:ve,onDragLeave:fe,onTouchEnd:pe,onTouchMove:ge,onTouchStart:se,ref:st,tabIndex:p?-1:H},$e,D),s,Ie?m.createElement(GJe,G({ref:W,center:i},B)):null)});const lV=Zr(YJe,{name:"MuiButtonBase"})(XJe);var QJe=function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:ya(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:ya(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:ya(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},ZJe=m.forwardRef(function(t,r){var n=t.edge,o=n===void 0?!1:n,a=t.children,i=t.classes,s=t.className,l=t.color,u=l===void 0?"default":l,c=t.disabled,d=c===void 0?!1:c,f=t.disableFocusRipple,p=f===void 0?!1:f,h=t.size,v=h===void 0?"medium":h,b=St(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return m.createElement(lV,G({className:ft(i.root,s,u!=="default"&&i["color".concat(go(u))],d&&i.disabled,v==="small"&&i["size".concat(go(v))],{start:i.edgeStart,end:i.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:d,ref:r},b),m.createElement("span",{className:i.label},a))});const uV=Zr(QJe,{name:"MuiIconButton"})(ZJe);function JJe({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return T.jsx(uV,{title:n($t.AddItemButton),...r,color:"primary",children:T.jsx(whe,{})})}var eet=function(t){var r=cQe(t);return function(n,o){return r(n,G({defaultTheme:tV},o))}};const tet=eet;var ret=UQe(Ip(qQe,JQe,mZe,PZe,jZe,FZe,zZe,XZe,eV,fJe)),net=tet("div")(ret,{name:"MuiBox"});const Pg=net;var oet=[0,1,2,3,4,5,6,7,8,9,10],aet=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function iet(e,t,r){var n={};aet.forEach(function(o){var a="grid-".concat(r,"-").concat(o);if(o===!0){n[a]={flexBasis:0,flexGrow:1,maxWidth:"100%"};return}if(o==="auto"){n[a]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};return}var i="".concat(Math.round(o/12*1e8)/1e6,"%");n[a]={flexBasis:i,flexGrow:0,maxWidth:i}}),r==="xs"?G(e,n):e[t.breakpoints.up(r)]=n}function l5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=parseFloat(e);return"".concat(r/t).concat(String(e).replace(String(r),"")||"px")}function set(e,t){var r={};return oet.forEach(function(n){var o=e.spacing(n);o!==0&&(r["spacing-".concat(t,"-").concat(n)]={margin:"-".concat(l5(o,2)),width:"calc(100% + ".concat(l5(o),")"),"& > $item":{padding:l5(o,2)}})}),r}var uet=function(t){return G({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},set(t,"xs"),t.breakpoints.keys.reduce(function(r,n){return iet(r,t,n),r},{}))},cet=m.forwardRef(function(t,r){var n=t.alignContent,o=n===void 0?"stretch":n,a=t.alignItems,i=a===void 0?"stretch":a,s=t.classes,l=t.className,u=t.component,c=u===void 0?"div":u,d=t.container,f=d===void 0?!1:d,p=t.direction,h=p===void 0?"row":p,v=t.item,b=v===void 0?!1:v,g=t.justify,y=t.justifyContent,S=y===void 0?"flex-start":y,w=t.lg,$=w===void 0?!1:w,C=t.md,x=C===void 0?!1:C,E=t.sm,_=E===void 0?!1:E,k=t.spacing,I=k===void 0?0:k,N=t.wrap,z=N===void 0?"wrap":N,O=t.xl,A=O===void 0?!1:O,M=t.xs,L=M===void 0?!1:M,j=t.zeroMinWidth,H=j===void 0?!1:j,B=St(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),F=ft(s.root,l,f&&[s.container,I!==0&&s["spacing-xs-".concat(String(I))]],b&&s.item,H&&s.zeroMinWidth,h!=="row"&&s["direction-xs-".concat(String(h))],z!=="wrap"&&s["wrap-xs-".concat(String(z))],i!=="stretch"&&s["align-items-xs-".concat(String(i))],o!=="stretch"&&s["align-content-xs-".concat(String(o))],(g||S)!=="flex-start"&&s["justify-content-xs-".concat(String(g||S))],L!==!1&&s["grid-xs-".concat(String(L))],_!==!1&&s["grid-sm-".concat(String(_))],x!==!1&&s["grid-md-".concat(String(x))],$!==!1&&s["grid-lg-".concat(String($))],A!==!1&&s["grid-xl-".concat(String(A))]);return m.createElement(c,G({className:F,ref:r},B))}),det=Zr(uet,{name:"MuiGrid"})(cet);const bl=det;var fet=function(t){var r={};return t.shadows.forEach(function(n,o){r["elevation".concat(o)]={boxShadow:n}}),G({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},r)},pet=m.forwardRef(function(t,r){var n=t.classes,o=t.className,a=t.component,i=a===void 0?"div":a,s=t.square,l=s===void 0?!1:s,u=t.elevation,c=u===void 0?1:u,d=t.variant,f=d===void 0?"elevation":d,p=St(t,["classes","className","component","square","elevation","variant"]);return m.createElement(i,G({className:ft(n.root,o,f==="outlined"?n.outlined:n["elevation".concat(c)],!l&&n.rounded),ref:r},p))});const DO=Zr(fet,{name:"MuiPaper"})(pet);function met(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,{CopyButton:v,MoveDownButton:b,MoveUpButton:g,RemoveButton:y}=h.templates.ButtonTemplates,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return T.jsxs(bl,{container:!0,alignItems:"center",children:[T.jsx(bl,{item:!0,xs:!0,style:{overflow:"auto"},children:T.jsx(Pg,{mb:2,children:T.jsx(DO,{elevation:2,children:T.jsx(Pg,{p:2,children:t})})})}),n&&T.jsxs(bl,{item:!0,children:[(i||a)&&T.jsx(g,{style:S,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&T.jsx(b,{style:S,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&T.jsx(v,{style:S,disabled:r||f,onClick:u(l),uiSchema:p,registry:h}),s&&T.jsx(y,{style:S,disabled:r||f,onClick:c(l),uiSchema:p,registry:h})]})]})}function het(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:u,schema:c,title:d}=e,f=At(o),p=Ct("ArrayFieldDescriptionTemplate",l,f),h=Ct("ArrayFieldItemTemplate",l,f),v=Ct("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:b}}=l.templates;return T.jsx(DO,{elevation:2,children:T.jsxs(Pg,{p:2,children:[T.jsx(v,{idSchema:n,title:f.title||d,schema:c,uiSchema:o,required:u,registry:l}),T.jsx(p,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:o,registry:l}),a&&a.map(({key:g,...y})=>T.jsx(h,{...y},g)),t&&T.jsx(bl,{container:!0,justifyContent:"flex-end",children:T.jsx(bl,{item:!0,children:T.jsx(Pg,{mt:2,children:T.jsx(b,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]})})}function tS(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce(function(o,a){return o[a]=t[a],n&&typeof t[a]>"u"&&(o[a]=n[a]),o},{})}var xhe=m.createContext();function vet(){return m.useContext(xhe)}const cV=xhe;function g2(e,t){return parseInt(e[t],10)||0}var get=typeof window<"u"?m.useLayoutEffect:m.useEffect,bet={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},yet=m.forwardRef(function(t,r){var n=t.onChange,o=t.rows,a=t.rowsMax,i=t.rowsMin,s=t.maxRows,l=t.minRows,u=l===void 0?1:l,c=t.style,d=t.value,f=St(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),p=s||a,h=o||i||u,v=m.useRef(d!=null),b=v.current,g=m.useRef(null),y=$a(r,g),S=m.useRef(null),w=m.useRef(0),$=m.useState({}),C=$[0],x=$[1],E=m.useCallback(function(){var k=g.current,I=window.getComputedStyle(k),N=S.current;N.style.width=I.width,N.value=k.value||t.placeholder||"x",N.value.slice(-1)===` +`&&(N.value+=" ");var z=I["box-sizing"],O=g2(I,"padding-bottom")+g2(I,"padding-top"),A=g2(I,"border-bottom-width")+g2(I,"border-top-width"),M=N.scrollHeight-O;N.value="x";var L=N.scrollHeight-O,j=M;h&&(j=Math.max(Number(h)*L,j)),p&&(j=Math.min(Number(p)*L,j)),j=Math.max(j,L);var H=j+(z==="border-box"?O+A:0),B=Math.abs(j-M)<=1;x(function(F){return w.current<20&&(H>0&&Math.abs((F.outerHeightStyle||0)-H)>1||F.overflow!==B)?(w.current+=1,{overflow:B,outerHeightStyle:H}):F})},[p,h,t.placeholder]);m.useEffect(function(){var k=rV(function(){w.current=0,E()});return window.addEventListener("resize",k),function(){k.clear(),window.removeEventListener("resize",k)}},[E]),get(function(){E()}),m.useEffect(function(){w.current=0},[d]);var _=function(I){w.current=0,b||E(),n&&n(I)};return m.createElement(m.Fragment,null,m.createElement("textarea",G({value:d,onChange:_,ref:y,rows:h,style:G({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},c)},f)),m.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:G({},bet.shadow,c)}))});const wet=yet;function DZ(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e&&(DZ(e.value)&&e.value!==""||t&&DZ(e.defaultValue)&&e.defaultValue!=="")}function Cet(e){return e.startAdornment}var xet=function(t){var r=t.palette.type==="light",n={color:"currentColor",opacity:r?.42:.5,transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},o={opacity:"0 !important"},a={opacity:r?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:G({},t.typography.body1,{color:t.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:t.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(8-2,"px 0 ").concat(8-1,"px"),"&$marginDense":{paddingTop:4-1}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(8-2,"px 0 ").concat(8-1,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:4-1},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},$et=typeof window>"u"?m.useEffect:m.useLayoutEffect,Eet=m.forwardRef(function(t,r){var n=t["aria-describedby"],o=t.autoComplete,a=t.autoFocus,i=t.classes,s=t.className;t.color;var l=t.defaultValue,u=t.disabled,c=t.endAdornment;t.error;var d=t.fullWidth,f=d===void 0?!1:d,p=t.id,h=t.inputComponent,v=h===void 0?"input":h,b=t.inputProps,g=b===void 0?{}:b,y=t.inputRef;t.margin;var S=t.multiline,w=S===void 0?!1:S,$=t.name,C=t.onBlur,x=t.onChange,E=t.onClick,_=t.onFocus,k=t.onKeyDown,I=t.onKeyUp,N=t.placeholder,z=t.readOnly,O=t.renderSuffix,A=t.rows,M=t.rowsMax,L=t.rowsMin,j=t.maxRows,H=t.minRows,B=t.startAdornment,F=t.type,V=F===void 0?"text":F,D=t.value,P=St(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),R=g.value!=null?g.value:D,W=m.useRef(R!=null),U=W.current,q=m.useRef(),J=m.useCallback(function(Le){},[]),Z=$a(g.ref,J),Q=$a(y,Z),oe=$a(q,Q),ie=m.useState(!1),te=ie[0],ae=ie[1],fe=vet(),ve=tS({props:t,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ve.focused=fe?fe.focused:te,m.useEffect(function(){!fe&&u&&te&&(ae(!1),C&&C())},[fe,u,te,C]);var Se=fe&&fe.onFilled,se=fe&&fe.onEmpty,pe=m.useCallback(function(Le){dV(Le)?Se&&Se():se&&se()},[Se,se]);$et(function(){U&&pe({value:R})},[R,pe,U]);var ge=function($e){if(ve.disabled){$e.stopPropagation();return}_&&_($e),g.onFocus&&g.onFocus($e),fe&&fe.onFocus?fe.onFocus($e):ae(!0)},de=function($e){C&&C($e),g.onBlur&&g.onBlur($e),fe&&fe.onBlur?fe.onBlur($e):ae(!1)},ee=function($e){if(!U){var Je=$e.target||q.current;if(Je==null)throw new Error(My(1));pe({value:Je.value})}for(var Pe=arguments.length,st=new Array(Pe>1?Pe-1:0),_e=1;_e span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}},Tet=m.forwardRef(function(t,r){t.children;var n=t.classes,o=t.className,a=t.label,i=t.labelWidth,s=t.notched,l=t.style,u=St(t,["children","classes","className","label","labelWidth","notched","style"]),c=AO(),d=c.direction==="rtl"?"right":"left";if(a!==void 0)return m.createElement("fieldset",G({"aria-hidden":!0,className:ft(n.root,o),ref:r,style:l},u),m.createElement("legend",{className:ft(n.legendLabelled,s&&n.legendNotched)},a?m.createElement("span",null,a):m.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var f=i>0?i*.75+8:.01;return m.createElement("fieldset",G({"aria-hidden":!0,style:G(le({},"padding".concat(go(d)),8),l),className:ft(n.root,o),ref:r},u),m.createElement("legend",{className:n.legend,style:{width:s?f:.01}},m.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))});const Iet=Zr(Pet,{name:"PrivateNotchedOutline"})(Tet);var Ret=function(t){var r=t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:t.shape.borderRadius,"&:hover $notchedOutline":{borderColor:t.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:r}},"&$focused $notchedOutline":{borderColor:t.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:t.palette.error.main},"&$disabled $notchedOutline":{borderColor:t.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:t.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:r},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:t.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.type==="light"?null:"#fff",caretColor:t.palette.type==="light"?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},khe=m.forwardRef(function(t,r){var n=t.classes,o=t.fullWidth,a=o===void 0?!1:o,i=t.inputComponent,s=i===void 0?"input":i,l=t.label,u=t.labelWidth,c=u===void 0?0:u,d=t.multiline,f=d===void 0?!1:d,p=t.notched,h=t.type,v=h===void 0?"text":h,b=St(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return m.createElement(fV,G({renderSuffix:function(y){return m.createElement(Iet,{className:n.notchedOutline,label:l,labelWidth:c,notched:typeof p<"u"?p:!!(y.startAdornment||y.filled||y.focused)})},classes:G({},n,{root:ft(n.root,n.underline),notchedOutline:null}),fullWidth:a,inputComponent:s,multiline:f,ref:r,type:v},b))});khe.muiName="Input";const Phe=Zr(Ret,{name:"MuiOutlinedInput"})(khe);function f0(){return m.useContext(cV)}var Fet=function(t){return{root:G({color:t.palette.text.secondary},t.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:t.palette.primary.main},"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),colorSecondary:{"&$focused":{color:t.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:t.palette.error.main}}}},Oet=m.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.className;t.color;var i=t.component,s=i===void 0?"label":i;t.disabled,t.error,t.filled,t.focused,t.required;var l=St(t,["children","classes","className","color","component","disabled","error","filled","focused","required"]),u=f0(),c=tS({props:t,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]});return m.createElement(s,G({className:ft(o.root,o["color".concat(go(c.color||"primary"))],a,c.disabled&&o.disabled,c.error&&o.error,c.filled&&o.filled,c.focused&&o.focused,c.required&&o.required),ref:r},l),n,c.required&&m.createElement("span",{"aria-hidden":!0,className:ft(o.asterisk,c.error&&o.error)}," ","*"))});const MO=Zr(Fet,{name:"MuiFormLabel"})(Oet);var Net=function(t){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:t.transitions.create(["color","transform"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},Det=m.forwardRef(function(t,r){var n=t.classes,o=t.className,a=t.disableAnimation,i=a===void 0?!1:a;t.margin;var s=t.shrink;t.variant;var l=St(t,["classes","className","disableAnimation","margin","shrink","variant"]),u=f0(),c=s;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);var d=tS({props:t,muiFormControl:u,states:["margin","variant"]});return m.createElement(MO,G({"data-shrink":c,className:ft(n.root,o,u&&n.formControl,!i&&n.animated,c&&n.shrink,d.margin==="dense"&&n.marginDense,{filled:n.filled,outlined:n.outlined}[d.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:r},l))});const Aet=Zr(Net,{name:"MuiInputLabel"})(Det);var Met={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},Bet=m.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.color,s=i===void 0?"primary":i,l=t.component,u=l===void 0?"div":l,c=t.disabled,d=c===void 0?!1:c,f=t.error,p=f===void 0?!1:f,h=t.fullWidth,v=h===void 0?!1:h,b=t.focused,g=t.hiddenLabel,y=g===void 0?!1:g,S=t.margin,w=S===void 0?"none":S,$=t.required,C=$===void 0?!1:$,x=t.size,E=t.variant,_=E===void 0?"standard":E,k=St(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=m.useState(function(){var R=!1;return n&&m.Children.forEach(n,function(W){if(hC(W,["Input","Select"])){var U=hC(W,["Select"])?W.props.input:W;U&&Cet(U.props)&&(R=!0)}}),R}),N=I[0],z=I[1],O=m.useState(function(){var R=!1;return n&&m.Children.forEach(n,function(W){hC(W,["Input","Select"])&&dV(W.props,!0)&&(R=!0)}),R}),A=O[0],M=O[1],L=m.useState(!1),j=L[0],H=L[1],B=b!==void 0?b:j;d&&B&&H(!1);var F,V=m.useCallback(function(){M(!0)},[]),D=m.useCallback(function(){M(!1)},[]),P={adornedStart:N,setAdornedStart:z,color:s,disabled:d,error:p,filled:A,focused:B,fullWidth:v,hiddenLabel:y,margin:(x==="small"?"dense":void 0)||w,onBlur:function(){H(!1)},onEmpty:D,onFilled:V,onFocus:function(){H(!0)},registerEffect:F,required:C,variant:_};return m.createElement(cV.Provider,{value:P},m.createElement(u,G({className:ft(o.root,a,w!=="none"&&o["margin".concat(go(w))],v&&o.fullWidth),ref:r},k),n))});const The=Zr(Met,{name:"MuiFormControl"})(Bet);var jet=function(t){return{root:G({color:t.palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},Let=m.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.component,s=i===void 0?"p":i;t.disabled,t.error,t.filled,t.focused,t.margin,t.required,t.variant;var l=St(t,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"]),u=f0(),c=tS({props:t,muiFormControl:u,states:["variant","margin","disabled","error","filled","focused","required"]});return m.createElement(s,G({className:ft(o.root,(c.variant==="filled"||c.variant==="outlined")&&o.contained,a,c.disabled&&o.disabled,c.error&&o.error,c.filled&&o.filled,c.focused&&o.focused,c.required&&o.required,c.margin==="dense"&&o.marginDense),ref:r},l),n===" "?m.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)});const mV=Zr(jet,{name:"MuiFormHelperText"})(Let);var Qn={};/** @license React v17.0.2 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var BO=60103,jO=60106,bE=60107,yE=60108,SE=60114,wE=60109,CE=60110,xE=60112,$E=60113,hV=60120,EE=60115,_E=60116,Ihe=60121,Rhe=60122,Fhe=60117,Ohe=60129,Nhe=60131;if(typeof Symbol=="function"&&Symbol.for){var Ya=Symbol.for;BO=Ya("react.element"),jO=Ya("react.portal"),bE=Ya("react.fragment"),yE=Ya("react.strict_mode"),SE=Ya("react.profiler"),wE=Ya("react.provider"),CE=Ya("react.context"),xE=Ya("react.forward_ref"),$E=Ya("react.suspense"),hV=Ya("react.suspense_list"),EE=Ya("react.memo"),_E=Ya("react.lazy"),Ihe=Ya("react.block"),Rhe=Ya("react.server.block"),Fhe=Ya("react.fundamental"),Ohe=Ya("react.debug_trace_mode"),Nhe=Ya("react.legacy_hidden")}function jc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case BO:switch(e=e.type,e){case bE:case SE:case yE:case $E:case hV:return e;default:switch(e=e&&e.$$typeof,e){case CE:case xE:case _E:case EE:case wE:return e;default:return t}}case jO:return t}}}var zet=wE,Vet=BO,Het=xE,Wet=bE,qet=_E,Uet=EE,Ket=jO,Get=SE,Yet=yE,Xet=$E;Qn.ContextConsumer=CE;Qn.ContextProvider=zet;Qn.Element=Vet;Qn.ForwardRef=Het;Qn.Fragment=Wet;Qn.Lazy=qet;Qn.Memo=Uet;Qn.Portal=Ket;Qn.Profiler=Get;Qn.StrictMode=Yet;Qn.Suspense=Xet;Qn.isAsyncMode=function(){return!1};Qn.isConcurrentMode=function(){return!1};Qn.isContextConsumer=function(e){return jc(e)===CE};Qn.isContextProvider=function(e){return jc(e)===wE};Qn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===BO};Qn.isForwardRef=function(e){return jc(e)===xE};Qn.isFragment=function(e){return jc(e)===bE};Qn.isLazy=function(e){return jc(e)===_E};Qn.isMemo=function(e){return jc(e)===EE};Qn.isPortal=function(e){return jc(e)===jO};Qn.isProfiler=function(e){return jc(e)===SE};Qn.isStrictMode=function(e){return jc(e)===yE};Qn.isSuspense=function(e){return jc(e)===$E};Qn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bE||e===SE||e===Ohe||e===yE||e===$E||e===hV||e===Nhe||typeof e=="object"&&e!==null&&(e.$$typeof===_E||e.$$typeof===EE||e.$$typeof===wE||e.$$typeof===CE||e.$$typeof===xE||e.$$typeof===Fhe||e.$$typeof===Ihe||e[0]===Rhe)};Qn.typeOf=jc;function Qet(e){return e=typeof e=="function"?e():e,uo.findDOMNode(e)}var u5=typeof window<"u"?m.useLayoutEffect:m.useEffect,Zet=m.forwardRef(function(t,r){var n=t.children,o=t.container,a=t.disablePortal,i=a===void 0?!1:a,s=t.onRendered,l=m.useState(null),u=l[0],c=l[1],d=$a(m.isValidElement(n)?n.ref:null,r);return u5(function(){i||c(Qet(o)||document.body)},[o,i]),u5(function(){if(u&&!i)return By(r,u),function(){By(r,null)}},[r,u,i]),u5(function(){s&&(u||i)&&s()},[s,u,i]),i?m.isValidElement(n)?m.cloneElement(n,{ref:d}):n:u&&uo.createPortal(n,u)});const Jet=Zet;function Dhe(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function ett(e){var t=zs(e);return t.body===e?nV(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function AZ(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function MZ(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=[t,r].concat(xt(n)),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(s){s.nodeType===1&&a.indexOf(s)===-1&&i.indexOf(s.tagName)===-1&&vC(s,o)})}function c5(e,t){var r=-1;return e.some(function(n,o){return t(n)?(r=o,!0):!1}),r}function ttt(e,t){var r=[],n=[],o=e.container,a;if(!t.disableScrollLock){if(ett(o)){var i=Dhe();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(AZ(o)+i,"px"),a=zs(o).querySelectorAll(".mui-fixed"),[].forEach.call(a,function(c){n.push(c.style.paddingRight),c.style.paddingRight="".concat(AZ(c)+i,"px")})}var s=o.parentElement,l=s.nodeName==="HTML"&&window.getComputedStyle(s)["overflow-y"]==="scroll"?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}var u=function(){a&&[].forEach.call(a,function(d,f){n[f]?d.style.paddingRight=n[f]:d.style.removeProperty("padding-right")}),r.forEach(function(d){var f=d.value,p=d.el,h=d.key;f?p.style.setProperty(h,f):p.style.removeProperty(h)})};return u}function rtt(e){var t=[];return[].forEach.call(e.children,function(r){r.getAttribute&&r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}var ntt=function(){function e(){oa(this,e),this.modals=[],this.containers=[]}return Oo(e,[{key:"add",value:function(r,n){var o=this.modals.indexOf(r);if(o!==-1)return o;o=this.modals.length,this.modals.push(r),r.modalRef&&vC(r.modalRef,!1);var a=rtt(n);MZ(n,r.mountNode,r.modalRef,a,!0);var i=c5(this.containers,function(s){return s.container===n});return i!==-1?(this.containers[i].modals.push(r),o):(this.containers.push({modals:[r],container:n,restore:null,hiddenSiblingNodes:a}),o)}},{key:"mount",value:function(r,n){var o=c5(this.containers,function(i){return i.modals.indexOf(r)!==-1}),a=this.containers[o];a.restore||(a.restore=ttt(a,n))}},{key:"remove",value:function(r){var n=this.modals.indexOf(r);if(n===-1)return n;var o=c5(this.containers,function(s){return s.modals.indexOf(r)!==-1}),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(r),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),r.modalRef&&vC(r.modalRef,!0),MZ(a.container,r.mountNode,r.modalRef,a.hiddenSiblingNodes,!1),this.containers.splice(o,1);else{var i=a.modals[a.modals.length-1];i.modalRef&&vC(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}]),e}();function ott(e){var t=e.children,r=e.disableAutoFocus,n=r===void 0?!1:r,o=e.disableEnforceFocus,a=o===void 0?!1:o,i=e.disableRestoreFocus,s=i===void 0?!1:i,l=e.getDoc,u=e.isEnabled,c=e.open,d=m.useRef(),f=m.useRef(null),p=m.useRef(null),h=m.useRef(),v=m.useRef(null),b=m.useCallback(function(S){v.current=uo.findDOMNode(S)},[]),g=$a(t.ref,b),y=m.useRef();return m.useEffect(function(){y.current=c},[c]),!y.current&&c&&typeof window<"u"&&(h.current=l().activeElement),m.useEffect(function(){if(c){var S=zs(v.current);!n&&v.current&&!v.current.contains(S.activeElement)&&(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var w=function(){var E=v.current;if(E!==null){if(!S.hasFocus()||a||!u()||d.current){d.current=!1;return}v.current&&!v.current.contains(S.activeElement)&&v.current.focus()}},$=function(E){a||!u()||E.keyCode!==9||S.activeElement===v.current&&(d.current=!0,E.shiftKey?p.current.focus():f.current.focus())};S.addEventListener("focus",w,!0),S.addEventListener("keydown",$,!0);var C=setInterval(function(){w()},50);return function(){clearInterval(C),S.removeEventListener("focus",w,!0),S.removeEventListener("keydown",$,!0),s||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}},[n,a,s,u,c]),m.createElement(m.Fragment,null,m.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),m.cloneElement(t,{ref:g}),m.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var BZ={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},att=m.forwardRef(function(t,r){var n=t.invisible,o=n===void 0?!1:n,a=t.open,i=St(t,["invisible","open"]);return a?m.createElement("div",G({"aria-hidden":!0,ref:r},i,{style:G({},BZ.root,o?BZ.invisible:{},i.style)})):null});const itt=att;function stt(e){return e=typeof e=="function"?e():e,uo.findDOMNode(e)}function ltt(e){return e.children?e.children.props.hasOwnProperty("in"):!1}var utt=new ntt,ctt=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},dtt=m.forwardRef(function(t,r){var n=CO(),o=Hme({name:"MuiModal",props:G({},t),theme:n}),a=o.BackdropComponent,i=a===void 0?itt:a,s=o.BackdropProps,l=o.children,u=o.closeAfterTransition,c=u===void 0?!1:u,d=o.container,f=o.disableAutoFocus,p=f===void 0?!1:f,h=o.disableBackdropClick,v=h===void 0?!1:h,b=o.disableEnforceFocus,g=b===void 0?!1:b,y=o.disableEscapeKeyDown,S=y===void 0?!1:y,w=o.disablePortal,$=w===void 0?!1:w,C=o.disableRestoreFocus,x=C===void 0?!1:C,E=o.disableScrollLock,_=E===void 0?!1:E,k=o.hideBackdrop,I=k===void 0?!1:k,N=o.keepMounted,z=N===void 0?!1:N,O=o.manager,A=O===void 0?utt:O,M=o.onBackdropClick,L=o.onClose,j=o.onEscapeKeyDown,H=o.onRendered,B=o.open,F=St(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),V=m.useState(!0),D=V[0],P=V[1],R=m.useRef({}),W=m.useRef(null),U=m.useRef(null),q=$a(U,r),J=ltt(o),Z=function(){return zs(W.current)},Q=function(){return R.current.modalRef=U.current,R.current.mountNode=W.current,R.current},oe=function(){A.mount(Q(),{disableScrollLock:_}),U.current.scrollTop=0},ie=ti(function(){var ee=stt(d)||Z().body;A.add(Q(),ee),U.current&&oe()}),te=m.useCallback(function(){return A.isTopModal(Q())},[A]),ae=ti(function(ee){W.current=ee,ee&&(H&&H(),B&&te()?oe():vC(U.current,!0))}),fe=m.useCallback(function(){A.remove(Q())},[A]);if(m.useEffect(function(){return function(){fe()}},[fe]),m.useEffect(function(){B?ie():(!J||!c)&&fe()},[B,fe,J,c,ie]),!z&&!B&&(!J||D))return null;var ve=function(){P(!1)},Se=function(){P(!0),c&&fe()},se=function(me){me.target===me.currentTarget&&(M&&M(me),!v&&L&&L(me,"backdropClick"))},pe=function(me){me.key!=="Escape"||!te()||(j&&j(me),S||(me.stopPropagation(),L&&L(me,"escapeKeyDown")))},ge=ctt(n||{zIndex:bhe}),de={};return l.props.tabIndex===void 0&&(de.tabIndex=l.props.tabIndex||"-1"),J&&(de.onEnter=jx(ve,l.props.onEnter),de.onExited=jx(Se,l.props.onExited)),m.createElement(Jet,{ref:ae,container:d,disablePortal:$},m.createElement("div",G({ref:q,onKeyDown:pe,role:"presentation"},F,{style:G({},ge.root,!B&&D?ge.hidden:{},F.style)}),I?null:m.createElement(i,G({open:B,onClick:se},s)),m.createElement(ott,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:x,getDoc:Z,isEnabled:te,open:B},m.cloneElement(l,de))))});const ftt=dtt;var ptt=function(t){return t.scrollTop};function jZ(e,t){var r=e.timeout,n=e.style,o=n===void 0?{}:n;return{duration:o.transitionDuration||typeof r=="number"?r:r[t.mode]||0,delay:o.transitionDelay}}function pL(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var mtt={entering:{opacity:1,transform:pL(1)},entered:{opacity:1,transform:"none"}},Ahe=m.forwardRef(function(t,r){var n=t.children,o=t.disableStrictModeCompat,a=o===void 0?!1:o,i=t.in,s=t.onEnter,l=t.onEntered,u=t.onEntering,c=t.onExit,d=t.onExited,f=t.onExiting,p=t.style,h=t.timeout,v=h===void 0?"auto":h,b=t.TransitionComponent,g=b===void 0?aV:b,y=St(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),S=m.useRef(),w=m.useRef(),$=AO(),C=$.unstable_strictMode&&!a,x=m.useRef(null),E=$a(n.ref,r),_=$a(C?x:void 0,E),k=function(H){return function(B,F){if(H){var V=C?[x.current,B]:[B,F],D=Ce(V,2),P=D[0],R=D[1];R===void 0?H(P):H(P,R)}}},I=k(u),N=k(function(j,H){ptt(j);var B=jZ({style:p,timeout:v},{mode:"enter"}),F=B.duration,V=B.delay,D;v==="auto"?(D=$.transitions.getAutoHeightDuration(j.clientHeight),w.current=D):D=F,j.style.transition=[$.transitions.create("opacity",{duration:D,delay:V}),$.transitions.create("transform",{duration:D*.666,delay:V})].join(","),s&&s(j,H)}),z=k(l),O=k(f),A=k(function(j){var H=jZ({style:p,timeout:v},{mode:"exit"}),B=H.duration,F=H.delay,V;v==="auto"?(V=$.transitions.getAutoHeightDuration(j.clientHeight),w.current=V):V=B,j.style.transition=[$.transitions.create("opacity",{duration:V,delay:F}),$.transitions.create("transform",{duration:V*.666,delay:F||V*.333})].join(","),j.style.opacity="0",j.style.transform=pL(.75),c&&c(j)}),M=k(d),L=function(H,B){var F=C?H:B;v==="auto"&&(S.current=setTimeout(F,w.current||0))};return m.useEffect(function(){return function(){clearTimeout(S.current)}},[]),m.createElement(g,G({appear:!0,in:i,nodeRef:C?x:void 0,onEnter:N,onEntered:z,onEntering:I,onExit:A,onExited:M,onExiting:O,addEndListener:L,timeout:v==="auto"?null:v},y),function(j,H){return m.cloneElement(n,G({style:G({opacity:0,transform:pL(.75),visibility:j==="exited"&&!i?"hidden":void 0},mtt[j],p,n.props.style),ref:_},H))})});Ahe.muiSupportAuto=!0;const htt=Ahe;function LZ(e,t){var r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function zZ(e,t){var r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function VZ(e){return[e.horizontal,e.vertical].map(function(t){return typeof t=="number"?"".concat(t,"px"):t}).join(" ")}function vtt(e,t){for(var r=t,n=0;r&&r!==e;)r=r.parentElement,n+=r.scrollTop;return n}function d5(e){return typeof e=="function"?e():e}var gtt={root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},btt=m.forwardRef(function(t,r){var n=t.action,o=t.anchorEl,a=t.anchorOrigin,i=a===void 0?{vertical:"top",horizontal:"left"}:a,s=t.anchorPosition,l=t.anchorReference,u=l===void 0?"anchorEl":l,c=t.children,d=t.classes,f=t.className,p=t.container,h=t.elevation,v=h===void 0?8:h,b=t.getContentAnchorEl,g=t.marginThreshold,y=g===void 0?16:g,S=t.onEnter,w=t.onEntered,$=t.onEntering,C=t.onExit,x=t.onExited,E=t.onExiting,_=t.open,k=t.PaperProps,I=k===void 0?{}:k,N=t.transformOrigin,z=N===void 0?{vertical:"top",horizontal:"left"}:N,O=t.TransitionComponent,A=O===void 0?htt:O,M=t.transitionDuration,L=M===void 0?"auto":M,j=t.TransitionProps,H=j===void 0?{}:j,B=St(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),F=m.useRef(),V=m.useCallback(function(Q){if(u==="anchorPosition")return s;var oe=d5(o),ie=oe&&oe.nodeType===1?oe:zs(F.current).body,te=ie.getBoundingClientRect(),ae=Q===0?i.vertical:"center";return{top:te.top+LZ(te,ae),left:te.left+zZ(te,i.horizontal)}},[o,i.horizontal,i.vertical,s,u]),D=m.useCallback(function(Q){var oe=0;if(b&&u==="anchorEl"){var ie=b(Q);if(ie&&Q.contains(ie)){var te=vtt(Q,ie);oe=ie.offsetTop+ie.clientHeight/2-te||0}}return oe},[i.vertical,u,b]),P=m.useCallback(function(Q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{vertical:LZ(Q,z.vertical)+oe,horizontal:zZ(Q,z.horizontal)}},[z.horizontal,z.vertical]),R=m.useCallback(function(Q){var oe=D(Q),ie={width:Q.offsetWidth,height:Q.offsetHeight},te=P(ie,oe);if(u==="none")return{top:null,left:null,transformOrigin:VZ(te)};var ae=V(oe),fe=ae.top-te.vertical,ve=ae.left-te.horizontal,Se=fe+ie.height,se=ve+ie.width,pe=nV(d5(o)),ge=pe.innerHeight-y,de=pe.innerWidth-y;if(fege){var me=Se-ge;fe-=me,te.vertical+=me}if(vede){var je=se-de;ve-=je,te.horizontal+=je}return{top:"".concat(Math.round(fe),"px"),left:"".concat(Math.round(ve),"px"),transformOrigin:VZ(te)}},[o,u,V,D,P,y]),W=m.useCallback(function(){var Q=F.current;if(Q){var oe=R(Q);oe.top!==null&&(Q.style.top=oe.top),oe.left!==null&&(Q.style.left=oe.left),Q.style.transformOrigin=oe.transformOrigin}},[R]),U=function(oe,ie){$&&$(oe,ie),W()},q=m.useCallback(function(Q){F.current=uo.findDOMNode(Q)},[]);m.useEffect(function(){_&&W()}),m.useImperativeHandle(n,function(){return _?{updatePosition:function(){W()}}:null},[_,W]),m.useEffect(function(){if(_){var Q=rV(function(){W()});return window.addEventListener("resize",Q),function(){Q.clear(),window.removeEventListener("resize",Q)}}},[_,W]);var J=L;L==="auto"&&!A.muiSupportAuto&&(J=void 0);var Z=p||(o?zs(d5(o)).body:void 0);return m.createElement(ftt,G({container:Z,open:_,ref:r,BackdropProps:{invisible:!0},className:ft(d.root,f)},B),m.createElement(A,G({appear:!0,in:_,onEnter:S,onEntered:w,onExit:C,onExited:x,onExiting:E,timeout:J},H,{onEntering:jx(U,H.onEntering)}),m.createElement(DO,G({elevation:v,ref:q},I,{className:ft(d.paper,I.className)}),c)))});const ytt=Zr(gtt,{name:"MuiPopover"})(btt);var Stt=m.createContext({});const ay=Stt;var wtt={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},Ctt=m.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.component,s=i===void 0?"ul":i,l=t.dense,u=l===void 0?!1:l,c=t.disablePadding,d=c===void 0?!1:c,f=t.subheader,p=St(t,["children","classes","className","component","dense","disablePadding","subheader"]),h=m.useMemo(function(){return{dense:u}},[u]);return m.createElement(ay.Provider,{value:h},m.createElement(s,G({className:ft(o.root,a,u&&o.dense,!d&&o.padding,f&&o.subheader),ref:r},p),f,n))});const vV=Zr(wtt,{name:"MuiList"})(Ctt);function f5(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function HZ(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mhe(e,t){if(t===void 0)return!0;var r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function ew(e,t,r,n,o,a){for(var i=!1,s=o(e,t,t?r:!1);s;){if(s===e.firstChild){if(i)return;i=!0}var l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Mhe(s,a)||l)s=o(e,s,r);else{s.focus();return}}}var xtt=typeof window>"u"?m.useEffect:m.useLayoutEffect,$tt=m.forwardRef(function(t,r){var n=t.actions,o=t.autoFocus,a=o===void 0?!1:o,i=t.autoFocusItem,s=i===void 0?!1:i,l=t.children,u=t.className,c=t.disabledItemsFocusable,d=c===void 0?!1:c,f=t.disableListWrap,p=f===void 0?!1:f,h=t.onKeyDown,v=t.variant,b=v===void 0?"selectedMenu":v,g=St(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=m.useRef(null),S=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xtt(function(){a&&y.current.focus()},[a]),m.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(k,I){var N=!y.current.style.width;if(k.clientHeight0&&(M-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&A!==O.keys[0]&&(O.repeating=!1)),O.lastTime=M,O.keys.push(A);var L=z&&!O.repeating&&Mhe(z,O);O.previousKeyMatched&&(L||ew(I,z,!1,d,f5,O))?k.preventDefault():O.previousKeyMatched=!1}h&&h(k)},$=m.useCallback(function(_){y.current=uo.findDOMNode(_)},[]),C=$a($,r),x=-1;m.Children.forEach(l,function(_,k){m.isValidElement(_)&&(_.props.disabled||(b==="selectedMenu"&&_.props.selected||x===-1)&&(x=k))});var E=m.Children.map(l,function(_,k){if(k===x){var I={};return s&&(I.autoFocus=!0),_.props.tabIndex===void 0&&b==="selectedMenu"&&(I.tabIndex=0),m.cloneElement(_,I)}return _});return m.createElement(vV,G({role:"menu",ref:C,className:u,onKeyDown:w,tabIndex:a?0:-1},g),E)});const Ett=$tt;var WZ={vertical:"top",horizontal:"right"},qZ={vertical:"top",horizontal:"left"},_tt={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},ktt=m.forwardRef(function(t,r){var n=t.autoFocus,o=n===void 0?!0:n,a=t.children,i=t.classes,s=t.disableAutoFocusItem,l=s===void 0?!1:s,u=t.MenuListProps,c=u===void 0?{}:u,d=t.onClose,f=t.onEntering,p=t.open,h=t.PaperProps,v=h===void 0?{}:h,b=t.PopoverClasses,g=t.transitionDuration,y=g===void 0?"auto":g,S=t.TransitionProps;S=S===void 0?{}:S;var w=S.onEntering,$=St(S,["onEntering"]),C=t.variant,x=C===void 0?"selectedMenu":C,E=St(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),_=AO(),k=o&&!l&&p,I=m.useRef(null),N=m.useRef(null),z=function(){return N.current},O=function(H,B){I.current&&I.current.adjustStyleForScrollbar(H,_),f&&f(H,B),w&&w(H,B)},A=function(H){H.key==="Tab"&&(H.preventDefault(),d&&d(H,"tabKeyDown"))},M=-1;m.Children.map(a,function(j,H){m.isValidElement(j)&&(j.props.disabled||(x!=="menu"&&j.props.selected||M===-1)&&(M=H))});var L=m.Children.map(a,function(j,H){return H===M?m.cloneElement(j,{ref:function(F){N.current=uo.findDOMNode(F),By(j.ref,F)}}):j});return m.createElement(ytt,G({getContentAnchorEl:z,classes:b,onClose:d,TransitionProps:G({onEntering:O},$),anchorOrigin:_.direction==="rtl"?WZ:qZ,transformOrigin:_.direction==="rtl"?WZ:qZ,PaperProps:G({},v,{classes:G({},v.classes,{root:i.paper})}),open:p,ref:r,transitionDuration:y},E),m.createElement(Ett,G({onKeyDown:A,actions:I,autoFocus:o&&(M===-1||l),autoFocusItem:k,variant:x},c,{className:ft(i.list,c.className)}),L))});const Ptt=Zr(_tt,{name:"MuiMenu"})(ktt);function UZ(e,t){return or(t)==="object"&&t!==null?e===t:String(e)===String(t)}function Ttt(e){return e==null||typeof e=="string"&&!e.trim()}var Itt=m.forwardRef(function(t,r){var n=t["aria-label"],o=t.autoFocus,a=t.autoWidth,i=t.children,s=t.classes,l=t.className,u=t.defaultValue,c=t.disabled,d=t.displayEmpty,f=t.IconComponent,p=t.inputRef,h=t.labelId,v=t.MenuProps,b=v===void 0?{}:v,g=t.multiple,y=t.name,S=t.onBlur,w=t.onChange,$=t.onClose,C=t.onFocus,x=t.onOpen,E=t.open,_=t.readOnly,k=t.renderValue,I=t.SelectDisplayProps,N=I===void 0?{}:I,z=t.tabIndex;t.type;var O=t.value,A=t.variant,M=A===void 0?"standard":A,L=St(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),j=gE({controlled:O,default:u,name:"Select"}),H=Ce(j,2),B=H[0],F=H[1],V=m.useRef(null),D=m.useState(null),P=D[0],R=D[1],W=m.useRef(E!=null),U=W.current,q=m.useState(),J=q[0],Z=q[1],Q=m.useState(!1),oe=Q[0],ie=Q[1],te=$a(r,p);m.useImperativeHandle(te,function(){return{focus:function(){P.focus()},node:V.current,value:B}},[P,B]),m.useEffect(function(){o&&P&&P.focus()},[o,P]),m.useEffect(function(){if(P){var st=zs(P).getElementById(h);if(st){var _e=function(){getSelection().isCollapsed&&P.focus()};return st.addEventListener("click",_e),function(){st.removeEventListener("click",_e)}}}},[h,P]);var ae=function(_e,De){_e?x&&x(De):$&&$(De),U||(Z(a?null:P.clientWidth),ie(_e))},fe=function(_e){_e.button===0&&(_e.preventDefault(),P.focus(),ae(!0,_e))},ve=function(_e){ae(!1,_e)},Se=m.Children.toArray(i),se=function(_e){var De=Se.map(function(Ie){return Ie.props.value}).indexOf(_e.target.value);if(De!==-1){var et=Se[De];F(et.props.value),w&&w(_e,et)}},pe=function(_e){return function(De){g||ae(!1,De);var et;if(g){et=Array.isArray(B)?B.slice():[];var Ie=B.indexOf(_e.props.value);Ie===-1?et.push(_e.props.value):et.splice(Ie,1)}else et=_e.props.value;_e.props.onClick&&_e.props.onClick(De),B!==et&&(F(et),w&&(De.persist(),Object.defineProperty(De,"target",{writable:!0,value:{value:et,name:y}}),w(De,_e)))}},ge=function(_e){if(!_){var De=[" ","ArrowUp","ArrowDown","Enter"];De.indexOf(_e.key)!==-1&&(_e.preventDefault(),ae(!0,_e))}},de=P!==null&&(U?E:oe),ee=function(_e){!de&&S&&(_e.persist(),Object.defineProperty(_e,"target",{writable:!0,value:{value:B,name:y}}),S(_e))};delete L["aria-invalid"];var me,Re,je=[],ze=!1;(dV({value:B})||d)&&(k?me=k(B):ze=!0);var Le=Se.map(function(st){if(!m.isValidElement(st))return null;var _e;if(g){if(!Array.isArray(B))throw new Error(My(2));_e=B.some(function(De){return UZ(De,st.props.value)}),_e&&ze&&je.push(st.props.children)}else _e=UZ(B,st.props.value),_e&&ze&&(Re=st.props.children);return m.cloneElement(st,{"aria-selected":_e?"true":void 0,onClick:pe(st),onKeyUp:function(et){et.key===" "&&et.preventDefault(),st.props.onKeyUp&&st.props.onKeyUp(et)},role:"option",selected:_e,value:void 0,"data-value":st.props.value})});ze&&(me=g?je.join(", "):Re);var $e=J;!a&&U&&P&&($e=P.clientWidth);var Je;typeof z<"u"?Je=z:Je=c?null:0;var Pe=N.id||(y?"mui-component-select-".concat(y):void 0);return m.createElement(m.Fragment,null,m.createElement("div",G({className:ft(s.root,s.select,s.selectMenu,s[M],l,c&&s.disabled),ref:R,tabIndex:Je,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":de?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[h,Pe].filter(Boolean).join(" ")||void 0,onKeyDown:ge,onMouseDown:c||_?null:fe,onBlur:ee,onFocus:C},N,{id:Pe}),Ttt(me)?m.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):me),m.createElement("input",G({value:Array.isArray(B)?B.join(","):B,name:y,ref:V,"aria-hidden":!0,onChange:se,tabIndex:-1,className:s.nativeInput,autoFocus:o},L)),m.createElement(f,{className:ft(s.icon,s["icon".concat(go(M))],de&&s.iconOpen,c&&s.disabled)}),m.createElement(Ptt,G({id:"menu-".concat(y||""),anchorEl:P,open:de,onClose:ve},b,{MenuListProps:G({"aria-labelledby":h,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:G({},b.PaperProps,{style:G({minWidth:$e},b.PaperProps!=null?b.PaperProps.style:null)})}),Le))});const Rtt=Itt,Bhe=d0(m.createElement("path",{d:"M7 10l5 5 5-5z"}));var Ftt=m.forwardRef(function(t,r){var n=t.classes,o=t.className,a=t.disabled,i=t.IconComponent,s=t.inputRef,l=t.variant,u=l===void 0?"standard":l,c=St(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return m.createElement(m.Fragment,null,m.createElement("select",G({className:ft(n.root,n.select,n[u],o,a&&n.disabled),disabled:a,ref:s||r},c)),t.multiple?null:m.createElement(i,{className:ft(n.icon,n["icon".concat(go(u))],a&&n.disabled)}))});const jhe=Ftt;var Lhe=function(t){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:t.palette.type==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:t.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:t.palette.action.active,"&$disabled":{color:t.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Ott=m.createElement(pV,null),zhe=m.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.IconComponent,i=a===void 0?Bhe:a,s=t.input,l=s===void 0?Ott:s,u=t.inputProps;t.variant;var c=St(t,["children","classes","IconComponent","input","inputProps","variant"]),d=f0(),f=tS({props:t,muiFormControl:d,states:["variant"]});return m.cloneElement(l,G({inputComponent:jhe,inputProps:G({children:n,classes:o,IconComponent:i,variant:f.variant,type:void 0},u,l?l.props.inputProps:{}),ref:r},c))});zhe.muiName="Select";Zr(Lhe,{name:"MuiNativeSelect"})(zhe);var Ntt=Lhe,Dtt=m.createElement(pV,null),Att=m.createElement(_he,null),Vhe=m.forwardRef(function e(t,r){var n=t.autoWidth,o=n===void 0?!1:n,a=t.children,i=t.classes,s=t.displayEmpty,l=s===void 0?!1:s,u=t.IconComponent,c=u===void 0?Bhe:u,d=t.id,f=t.input,p=t.inputProps,h=t.label,v=t.labelId,b=t.labelWidth,g=b===void 0?0:b,y=t.MenuProps,S=t.multiple,w=S===void 0?!1:S,$=t.native,C=$===void 0?!1:$,x=t.onClose,E=t.onOpen,_=t.open,k=t.renderValue,I=t.SelectDisplayProps,N=t.variant,z=N===void 0?"standard":N,O=St(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),A=C?jhe:Rtt,M=f0(),L=tS({props:t,muiFormControl:M,states:["variant"]}),j=L.variant||z,H=f||{standard:Dtt,outlined:m.createElement(Phe,{label:h,labelWidth:g}),filled:Att}[j];return m.cloneElement(H,G({inputComponent:A,inputProps:G({children:a,IconComponent:c,variant:j,type:void 0,multiple:w},C?{id:d}:{autoWidth:o,displayEmpty:l,labelId:v,MenuProps:y,onClose:x,onOpen:E,open:_,renderValue:k,SelectDisplayProps:G({id:d},I)},p,{classes:p?U7({baseClasses:i,newClasses:p.classes,Component:e}):i},f?f.props.inputProps:{}),ref:r},O))});Vhe.muiName="Select";const Mtt=Zr(Ntt,{name:"MuiSelect"})(Vhe);var Btt={standard:pV,filled:_he,outlined:Phe},jtt={root:{}},Ltt=m.forwardRef(function(t,r){var n=t.autoComplete,o=t.autoFocus,a=o===void 0?!1:o,i=t.children,s=t.classes,l=t.className,u=t.color,c=u===void 0?"primary":u,d=t.defaultValue,f=t.disabled,p=f===void 0?!1:f,h=t.error,v=h===void 0?!1:h,b=t.FormHelperTextProps,g=t.fullWidth,y=g===void 0?!1:g,S=t.helperText,w=t.hiddenLabel,$=t.id,C=t.InputLabelProps,x=t.inputProps,E=t.InputProps,_=t.inputRef,k=t.label,I=t.multiline,N=I===void 0?!1:I,z=t.name,O=t.onBlur,A=t.onChange,M=t.onFocus,L=t.placeholder,j=t.required,H=j===void 0?!1:j,B=t.rows,F=t.rowsMax,V=t.maxRows,D=t.minRows,P=t.select,R=P===void 0?!1:P,W=t.SelectProps,U=t.type,q=t.value,J=t.variant,Z=J===void 0?"standard":J,Q=St(t,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),oe={};if(Z==="outlined"&&(C&&typeof C.shrink<"u"&&(oe.notched=C.shrink),k)){var ie,te=(ie=C==null?void 0:C.required)!==null&&ie!==void 0?ie:H;oe.label=m.createElement(m.Fragment,null,k,te&&" *")}R&&((!W||!W.native)&&(oe.id=void 0),oe["aria-describedby"]=void 0);var ae=S&&$?"".concat($,"-helper-text"):void 0,fe=k&&$?"".concat($,"-label"):void 0,ve=Btt[Z],Se=m.createElement(ve,G({"aria-describedby":ae,autoComplete:n,autoFocus:a,defaultValue:d,fullWidth:y,multiline:N,name:z,rows:B,rowsMax:F,maxRows:V,minRows:D,type:U,value:q,id:$,inputRef:_,onBlur:O,onChange:A,onFocus:M,placeholder:L,inputProps:x},oe,E));return m.createElement(The,G({className:ft(s.root,l),disabled:p,error:v,fullWidth:y,hiddenLabel:w,ref:r,required:H,color:c,variant:Z},Q),k&&m.createElement(Aet,G({htmlFor:$,id:fe},C),k),R?m.createElement(Mtt,G({"aria-describedby":ae,id:$,labelId:fe,value:q,input:Se},W),i):Se,S&&m.createElement(mV,G({id:ae},b),S))});const gV=Zr(jtt,{name:"MuiTextField"})(Ltt),ztt=["date","datetime-local","file","time"];function Vtt(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:u,hideError:c,value:d,onChange:f,onChangeOverride:p,onBlur:h,onFocus:v,autofocus:b,options:g,schema:y,uiSchema:S,rawErrors:w=[],formContext:$,registry:C,InputLabelProps:x,...E}=e,_=kp(y,s,g),{step:k,min:I,max:N,...z}=_,O={inputProps:{step:k,min:I,max:N,...y.examples?{list:da(t)}:void 0},...z},A=({target:{value:H}})=>f(H===""?g.emptyValue:H),M=({target:H})=>h(t,H&&H.value),L=({target:H})=>v(t,H&&H.value),j=ztt.includes(s)?{...x,shrink:!0}:x;return T.jsxs(T.Fragment,{children:[T.jsx(gV,{id:t,name:t,placeholder:n,label:wr(l||void 0,u,!1),autoFocus:b,required:o,disabled:i||a,...O,value:d||d===0?d:"",error:w.length>0,onChange:p||A,onBlur:M,onFocus:L,InputLabelProps:j,...E,"aria-describedby":Ot(t,!!y.examples)}),Array.isArray(y.examples)&&T.jsx("datalist",{id:da(t),children:y.examples.concat(y.default&&!y.examples.includes(y.default)?[y.default]:[]).map(H=>T.jsx("option",{value:H},H))})]})}var Htt=function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},KZ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Wtt=m.forwardRef(function(t,r){var n=t.align,o=n===void 0?"inherit":n,a=t.classes,i=t.className,s=t.color,l=s===void 0?"initial":s,u=t.component,c=t.display,d=c===void 0?"initial":c,f=t.gutterBottom,p=f===void 0?!1:f,h=t.noWrap,v=h===void 0?!1:h,b=t.paragraph,g=b===void 0?!1:b,y=t.variant,S=y===void 0?"body1":y,w=t.variantMapping,$=w===void 0?KZ:w,C=St(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),x=u||(g?"p":$[S]||KZ[S])||"span";return m.createElement(x,G({className:ft(a.root,i,S!=="inherit"&&a[S],l!=="initial"&&a["color".concat(go(l))],v&&a.noWrap,p&&a.gutterBottom,g&&a.paragraph,o!=="inherit"&&a["align".concat(go(o))],d!=="initial"&&a["display".concat(go(d))]),ref:r},C))});const $f=Zr(Htt,{name:"MuiTypography"})(Wtt);function qtt(e){const{id:t,description:r}=e;return r?T.jsx($f,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}var bV={},Utt=Fo,Ktt=Z1;Object.defineProperty(bV,"__esModule",{value:!0});var Hhe=bV.default=void 0,Gtt=Ktt(m),Ytt=Utt(eS()),Xtt=(0,Ytt.default)(Gtt.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");Hhe=bV.default=Xtt;var Qtt=function(t){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:t.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:t.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(t.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},Ztt=typeof window>"u"?m.useEffect:m.useLayoutEffect,Jtt=m.forwardRef(function(t,r){var n=t.alignItems,o=n===void 0?"center":n,a=t.autoFocus,i=a===void 0?!1:a,s=t.button,l=s===void 0?!1:s,u=t.children,c=t.classes,d=t.className,f=t.component,p=t.ContainerComponent,h=p===void 0?"li":p,v=t.ContainerProps;v=v===void 0?{}:v;var b=v.className,g=St(v,["className"]),y=t.dense,S=y===void 0?!1:y,w=t.disabled,$=w===void 0?!1:w,C=t.disableGutters,x=C===void 0?!1:C,E=t.divider,_=E===void 0?!1:E,k=t.focusVisibleClassName,I=t.selected,N=I===void 0?!1:I,z=St(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=m.useContext(ay),A={dense:S||O.dense||!1,alignItems:o},M=m.useRef(null);Ztt(function(){i&&M.current&&M.current.focus()},[i]);var L=m.Children.toArray(u),j=L.length&&hC(L[L.length-1],["ListItemSecondaryAction"]),H=m.useCallback(function(D){M.current=uo.findDOMNode(D)},[]),B=$a(H,r),F=G({className:ft(c.root,d,A.dense&&c.dense,!x&&c.gutters,_&&c.divider,$&&c.disabled,l&&c.button,o!=="center"&&c.alignItemsFlexStart,j&&c.secondaryAction,N&&c.selected),disabled:$},z),V=f||"li";return l&&(F.component=f||"div",F.focusVisibleClassName=ft(c.focusVisible,k),V=lV),j?(V=!F.component&&!f?"div":V,h==="li"&&(V==="li"?V="div":F.component==="li"&&(F.component="div")),m.createElement(ay.Provider,{value:A},m.createElement(h,G({className:ft(c.container,b),ref:B},g),m.createElement(V,F,L),L.pop()))):m.createElement(ay.Provider,{value:A},m.createElement(V,G({ref:B},F),L))});const yV=Zr(Qtt,{name:"MuiListItem"})(Jtt);var ert=function(t){return{root:{minWidth:56,color:t.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}},trt=m.forwardRef(function(t,r){var n=t.classes,o=t.className,a=St(t,["classes","className"]),i=m.useContext(ay);return m.createElement("div",G({className:ft(n.root,o,i.alignItems==="flex-start"&&n.alignItemsFlexStart),ref:r},a))});const rrt=Zr(ert,{name:"MuiListItemIcon"})(trt);var nrt={root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},ort=m.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.disableTypography,s=i===void 0?!1:i,l=t.inset,u=l===void 0?!1:l,c=t.primary,d=t.primaryTypographyProps,f=t.secondary,p=t.secondaryTypographyProps,h=St(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=m.useContext(ay),b=v.dense,g=c??n;g!=null&&g.type!==$f&&!s&&(g=m.createElement($f,G({variant:b?"body2":"body1",className:o.primary,component:"span",display:"block"},d),g));var y=f;return y!=null&&y.type!==$f&&!s&&(y=m.createElement($f,G({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),y)),m.createElement("div",G({className:ft(o.root,a,b&&o.dense,u&&o.inset,g&&y&&o.multiline),ref:r},h),g,y)});const art=Zr(nrt,{name:"MuiListItemText"})(ort);function irt({errors:e,registry:t}){const{translateString:r}=t;return T.jsx(DO,{elevation:2,children:T.jsxs(Pg,{mb:2,p:2,children:[T.jsx($f,{variant:"h6",children:r($t.ErrorsLabel)}),T.jsx(vV,{dense:!0,children:e.map((n,o)=>T.jsxs(yV,{children:[T.jsx(rrt,{children:T.jsx(Hhe,{color:"error"})}),T.jsx(art,{primary:n.stack})]},o))})]})})}var SV={},srt=Fo,lrt=Z1;Object.defineProperty(SV,"__esModule",{value:!0});var Whe=SV.default=void 0,urt=lrt(m),crt=srt(eS()),drt=(0,crt.default)(urt.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");Whe=SV.default=drt;var wV={},frt=Fo,prt=Z1;Object.defineProperty(wV,"__esModule",{value:!0});var qhe=wV.default=void 0,mrt=prt(m),hrt=frt(eS()),vrt=(0,hrt.default)(mrt.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");qhe=wV.default=vrt;var CV={},grt=Fo,brt=Z1;Object.defineProperty(CV,"__esModule",{value:!0});var Uhe=CV.default=void 0,yrt=brt(m),Srt=grt(eS()),wrt=(0,Srt.default)(yrt.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");Uhe=CV.default=wrt;var xV={},Crt=Fo,xrt=Z1;Object.defineProperty(xV,"__esModule",{value:!0});var Khe=xV.default=void 0,$rt=xrt(m),Ert=Crt(eS()),_rt=(0,Ert.default)($rt.createElement("path",{d:"M19 13H5v-2h14v2z"}),"Remove");Khe=xV.default=_rt;function LO(e){const{icon:t,color:r,uiSchema:n,registry:o,...a}=e;return T.jsx(uV,{...a,size:"small",color:r,children:t})}function krt(e){const{registry:{translateString:t}}=e;return T.jsx(LO,{title:t($t.CopyButton),...e,icon:T.jsx(Uhe,{fontSize:"small"})})}function Prt(e){const{registry:{translateString:t}}=e;return T.jsx(LO,{title:t($t.MoveDownButton),...e,icon:T.jsx(qhe,{fontSize:"small"})})}function Trt(e){const{registry:{translateString:t}}=e;return T.jsx(LO,{title:t($t.MoveUpButton),...e,icon:T.jsx(Whe,{fontSize:"small"})})}function Irt(e){const{iconType:t,...r}=e,{registry:{translateString:n}}=r;return T.jsx(LO,{title:n($t.RemoveButton),...r,color:"secondary",icon:T.jsx(Khe,{fontSize:t==="default"?"medium":"small"})})}function Rrt(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=Vd(r);return T.jsx(vV,{dense:!0,disablePadding:!0,children:t.map((o,a)=>T.jsx(yV,{disableGutters:!0,children:T.jsx(mV,{id:n,children:o})},a))})}function Frt(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Tp(t);return T.jsx(mV,{id:n,children:r})}function Ort(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,rawErrors:p=[],errors:h,help:v,description:b,rawDescription:g,schema:y,uiSchema:S,registry:w}=e,$=At(S),C=Ct("WrapIfAdditionalTemplate",w,$);return s?T.jsx("div",{style:{display:"none"},children:r}):T.jsx(C,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,schema:y,uiSchema:S,registry:w,children:T.jsxs(The,{fullWidth:!0,error:!!p.length,required:f,children:[r,i&&g?T.jsx($f,{variant:"caption",color:"textSecondary",children:b}):null,h,v]})})}function Nrt(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:u,formData:c,onAddClick:d,registry:f}=e,p=At(s),h=Ct("TitleFieldTemplate",f,p),v=Ct("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:b}}=f.templates;return T.jsxs(T.Fragment,{children:[r&&T.jsx(h,{id:Nu(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&T.jsx(v,{id:pa(l),description:t,schema:u,uiSchema:s,registry:f}),T.jsxs(bl,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map((g,y)=>g.hidden?g.content:T.jsx(bl,{item:!0,xs:12,style:{marginBottom:"10px"},children:g.content},y)),$p(u,s,c)&&T.jsx(bl,{container:!0,justifyContent:"flex-end",children:T.jsx(bl,{item:!0,children:T.jsx(b,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})})})]})]})}var Drt=function(t){return{root:G({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:ya(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:ya(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:ya(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(ya(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:ya(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(ya(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:ya(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxShadow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},Art=m.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.color,s=i===void 0?"default":i,l=t.component,u=l===void 0?"button":l,c=t.disabled,d=c===void 0?!1:c,f=t.disableElevation,p=f===void 0?!1:f,h=t.disableFocusRipple,v=h===void 0?!1:h,b=t.endIcon,g=t.focusVisibleClassName,y=t.fullWidth,S=y===void 0?!1:y,w=t.size,$=w===void 0?"medium":w,C=t.startIcon,x=t.type,E=x===void 0?"button":x,_=t.variant,k=_===void 0?"text":_,I=St(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),N=C&&m.createElement("span",{className:ft(o.startIcon,o["iconSize".concat(go($))])},C),z=b&&m.createElement("span",{className:ft(o.endIcon,o["iconSize".concat(go($))])},b);return m.createElement(lV,G({className:ft(o.root,o[k],a,s==="inherit"?o.colorInherit:s!=="default"&&o["".concat(k).concat(go(s))],$!=="medium"&&[o["".concat(k,"Size").concat(go($))],o["size".concat(go($))]],p&&o.disableElevation,d&&o.disabled,S&&o.fullWidth),component:u,disabled:d,focusRipple:!v,focusVisibleClassName:ft(o.focusVisible,g),ref:r,type:E},I),m.createElement("span",{className:o.label},N,n,z))});const Mrt=Zr(Drt,{name:"MuiButton"})(Art);function Brt({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=Pp(e);return r?null:T.jsx(Pg,{marginTop:3,children:T.jsx(Mrt,{type:"submit",variant:"contained",color:"primary",...n,children:t})})}var jrt=function(t){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:t.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:ya(t.palette.divider,.08)},middle:{marginLeft:t.spacing(2),marginRight:t.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}},Lrt=m.forwardRef(function(t,r){var n=t.absolute,o=n===void 0?!1:n,a=t.classes,i=t.className,s=t.component,l=s===void 0?"hr":s,u=t.flexItem,c=u===void 0?!1:u,d=t.light,f=d===void 0?!1:d,p=t.orientation,h=p===void 0?"horizontal":p,v=t.role,b=v===void 0?l!=="hr"?"separator":void 0:v,g=t.variant,y=g===void 0?"fullWidth":g,S=St(t,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return m.createElement(l,G({className:ft(a.root,i,y!=="fullWidth"&&a[y],o&&a.absolute,c&&a.flexItem,f&&a.light,h==="vertical"&&a.vertical),role:b,ref:r},S))});const zrt=Zr(jrt,{name:"MuiDivider"})(Lrt);function Vrt({id:e,title:t}){return T.jsxs(Pg,{id:e,mb:1,mt:1,children:[T.jsx($f,{variant:"h5",children:t}),T.jsx(zrt,{})]})}function Hrt(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,required:c,schema:d,uiSchema:f,registry:p}=e,{templates:h,translateString:v}=p,{RemoveButton:b}=h.ButtonTemplates,g=v($t.KeyLabel,[i]),y=Nl in d,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};if(!y)return T.jsx("div",{className:r,style:n,children:t});const w=({target:$})=>l($.value);return T.jsxs(bl,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[T.jsx(bl,{item:!0,xs:!0,children:T.jsx(gV,{fullWidth:!0,required:c,label:g,defaultValue:i,disabled:o||u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:w,type:"text"})}),T.jsx(bl,{item:!0,xs:!0,children:t}),T.jsx(bl,{item:!0,children:T.jsx(b,{iconType:"default",style:S,disabled:o||u,onClick:s(i),uiSchema:f,registry:p})})]},`${a}-key`)}function Wrt(){return{ArrayFieldItemTemplate:met,ArrayFieldTemplate:het,BaseInputTemplate:Vtt,ButtonTemplates:{AddButton:JJe,CopyButton:krt,MoveDownButton:Prt,MoveUpButton:Trt,RemoveButton:Irt,SubmitButton:Brt},DescriptionFieldTemplate:qtt,ErrorListTemplate:irt,FieldErrorTemplate:Rrt,FieldHelpTemplate:Frt,FieldTemplate:Ort,ObjectFieldTemplate:Nrt,TitleFieldTemplate:Vrt,WrapIfAdditionalTemplate:Hrt}}var qrt={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},Urt=m.forwardRef(function(t,r){var n=t.autoFocus,o=t.checked,a=t.checkedIcon,i=t.classes,s=t.className,l=t.defaultChecked,u=t.disabled,c=t.icon,d=t.id,f=t.inputProps,p=t.inputRef,h=t.name,v=t.onBlur,b=t.onChange,g=t.onFocus,y=t.readOnly,S=t.required,w=t.tabIndex,$=t.type,C=t.value,x=St(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),E=gE({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),_=Ce(E,2),k=_[0],I=_[1],N=f0(),z=function(H){g&&g(H),N&&N.onFocus&&N.onFocus(H)},O=function(H){v&&v(H),N&&N.onBlur&&N.onBlur(H)},A=function(H){var B=H.target.checked;I(B),b&&b(H,B)},M=u;N&&typeof M>"u"&&(M=N.disabled);var L=$==="checkbox"||$==="radio";return m.createElement(uV,G({component:"span",className:ft(i.root,s,k&&i.checked,M&&i.disabled),disabled:M,tabIndex:null,role:void 0,onFocus:z,onBlur:O,ref:r},x),m.createElement("input",G({autoFocus:n,checked:o,defaultChecked:l,className:i.input,disabled:M,id:L&&d,name:h,onChange:A,readOnly:y,ref:p,required:S,tabIndex:w,type:$,value:C},f)),k?a:c)});const Ghe=Zr(qrt,{name:"PrivateSwitchBase"})(Urt),Krt=d0(m.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Grt=d0(m.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Yrt=d0(m.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));var Xrt=function(t){return{root:{color:t.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:ya(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:ya(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}}}},Qrt=m.createElement(Grt,null),Zrt=m.createElement(Krt,null),Jrt=m.createElement(Yrt,null),ent=m.forwardRef(function(t,r){var n=t.checkedIcon,o=n===void 0?Qrt:n,a=t.classes,i=t.color,s=i===void 0?"secondary":i,l=t.icon,u=l===void 0?Zrt:l,c=t.indeterminate,d=c===void 0?!1:c,f=t.indeterminateIcon,p=f===void 0?Jrt:f,h=t.inputProps,v=t.size,b=v===void 0?"medium":v,g=St(t,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),y=d?p:u,S=d?p:o;return m.createElement(Ghe,G({type:"checkbox",classes:{root:ft(a.root,a["color".concat(go(s))],d&&a.indeterminate),checked:a.checked,disabled:a.disabled},color:s,inputProps:G({"data-indeterminate":d},h),icon:m.cloneElement(y,{fontSize:y.props.fontSize===void 0&&b==="small"?b:y.props.fontSize}),checkedIcon:m.cloneElement(S,{fontSize:S.props.fontSize===void 0&&b==="small"?b:S.props.fontSize}),ref:r},g))});const Yhe=Zr(Xrt,{name:"MuiCheckbox"})(ent);var tnt=function(t){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:t.palette.text.disabled}}}},rnt=m.forwardRef(function(t,r){t.checked;var n=t.classes,o=t.className,a=t.control,i=t.disabled;t.inputRef;var s=t.label,l=t.labelPlacement,u=l===void 0?"end":l;t.name,t.onChange,t.value;var c=St(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),d=f0(),f=i;typeof f>"u"&&typeof a.props.disabled<"u"&&(f=a.props.disabled),typeof f>"u"&&d&&(f=d.disabled);var p={disabled:f};return["checked","name","onChange","value","inputRef"].forEach(function(h){typeof a.props[h]>"u"&&typeof t[h]<"u"&&(p[h]=t[h])}),m.createElement("label",G({className:ft(n.root,o,u!=="end"&&n["labelPlacement".concat(go(u))],f&&n.disabled),ref:r},c),m.cloneElement(a,p),m.createElement($f,{component:"span",className:ft(n.label,f&&n.disabled)},s))});const $V=Zr(tnt,{name:"MuiFormControlLabel"})(rnt);function nnt(e){const{schema:t,id:r,value:n,disabled:o,readonly:a,label:i="",hideLabel:s,autofocus:l,onChange:u,onBlur:c,onFocus:d,registry:f,options:p,uiSchema:h}=e,v=Ct("DescriptionFieldTemplate",f,p),b=kd(t),g=($,C)=>u(C),y=({target:{value:$}})=>c(r,$),S=({target:{value:$}})=>d(r,$),w=p.description??t.description;return T.jsxs(T.Fragment,{children:[!s&&!!w&&T.jsx(v,{id:pa(r),description:w,schema:t,uiSchema:h,registry:f}),T.jsx($V,{control:T.jsx(Yhe,{id:r,name:r,checked:typeof n>"u"?!1:!!n,required:b,disabled:o||a,autoFocus:l,onChange:g,onBlur:y,onFocus:S,"aria-describedby":Ot(r)}),label:wr(i,s,!1)})]})}var ont={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},ant=m.forwardRef(function(t,r){var n=t.classes,o=t.className,a=t.row,i=a===void 0?!1:a,s=St(t,["classes","className","row"]);return m.createElement("div",G({className:ft(n.root,o,i&&n.row),ref:r},s))});const Xhe=Zr(ont,{name:"MuiFormGroup"})(ant);function int({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:u,onBlur:c,onFocus:d}){const{enumOptions:f,enumDisabled:p,inline:h,emptyValue:v}=o,b=Array.isArray(a)?a:[a],g=w=>({target:{checked:$}})=>{u($?qh(w,b,f):Wh(w,b,f))},y=({target:{value:w}})=>c(r,Tt(w,f,v)),S=({target:{value:w}})=>d(r,Tt(w,f,v));return T.jsxs(T.Fragment,{children:[wr(T.jsx(MO,{required:l,htmlFor:r,children:e||void 0}),t),T.jsx(Xhe,{id:r,row:!!h,children:Array.isArray(f)&&f.map((w,$)=>{const C=Fu(w.value,b),x=Array.isArray(p)&&p.indexOf(w.value)!==-1,E=T.jsx(Yhe,{id:Wa(r,$),name:r,checked:C,disabled:n||x||s,autoFocus:i&&$===0,onChange:g($),onBlur:y,onFocus:S,"aria-describedby":Ot(r)});return T.jsx($V,{control:E,label:w.label},$)})})]})}const snt=d0(m.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),lnt=d0(m.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));var unt=function(t){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},checked:{}}};function cnt(e){var t=e.checked,r=e.classes,n=e.fontSize;return m.createElement("div",{className:ft(r.root,t&&r.checked)},m.createElement(snt,{fontSize:n}),m.createElement(lnt,{fontSize:n,className:r.layer}))}const Qhe=Zr(unt,{name:"PrivateRadioButtonIcon"})(cnt);var dnt=m.createContext();const Zhe=dnt;function fnt(){return m.useContext(Zhe)}var pnt=function(t){return{root:{color:t.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:ya(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:ya(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}}}},mnt=m.createElement(Qhe,{checked:!0}),hnt=m.createElement(Qhe,null),vnt=m.forwardRef(function(t,r){var n=t.checked,o=t.classes,a=t.color,i=a===void 0?"secondary":a,s=t.name,l=t.onChange,u=t.size,c=u===void 0?"medium":u,d=St(t,["checked","classes","color","name","onChange","size"]),f=fnt(),p=n,h=jx(l,f&&f.onChange),v=s;return f&&(typeof p>"u"&&(p=f.value===t.value),typeof v>"u"&&(v=f.name)),m.createElement(Ghe,G({color:i,type:"radio",icon:m.cloneElement(hnt,{fontSize:c==="small"?"small":"medium"}),checkedIcon:m.cloneElement(mnt,{fontSize:c==="small"?"small":"medium"}),classes:{root:ft(o.root,o["color".concat(go(i))]),checked:o.checked,disabled:o.disabled},name:v,checked:p,onChange:h,ref:r},d))});const gnt=Zr(pnt,{name:"MuiRadio"})(vnt);var bnt=m.forwardRef(function(t,r){var n=t.actions,o=t.children,a=t.name,i=t.value,s=t.onChange,l=St(t,["actions","children","name","value","onChange"]),u=m.useRef(null),c=gE({controlled:i,default:t.defaultValue,name:"RadioGroup"}),d=Ce(c,2),f=d[0],p=d[1];m.useImperativeHandle(n,function(){return{focus:function(){var y=u.current.querySelector("input:not(:disabled):checked");y||(y=u.current.querySelector("input:not(:disabled)")),y&&y.focus()}}},[]);var h=$a(r,u),v=function(y){p(y.target.value),s&&s(y,y.target.value)},b=She(a);return m.createElement(Zhe.Provider,{value:{name:b,onChange:v,value:f}},m.createElement(Xhe,G({role:"radiogroup",ref:h},l),o))});const ynt=bnt;function Snt({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:u,onFocus:c}){const{enumOptions:d,enumDisabled:f,emptyValue:p}=t,h=(S,w)=>l(Tt(w,d,p)),v=({target:{value:S}})=>u(e,Tt(S,d,p)),b=({target:{value:S}})=>c(e,Tt(S,d,p)),g=t?t.inline:!1,y=mi(r,d)??null;return T.jsxs(T.Fragment,{children:[wr(T.jsx(MO,{required:n,htmlFor:e,children:i||void 0}),s),T.jsx(ynt,{id:e,name:e,value:y,row:g,onChange:h,onBlur:v,onFocus:b,"aria-describedby":Ot(e),children:Array.isArray(d)&&d.map((S,w)=>{const $=Array.isArray(f)&&f.indexOf(S.value)!==-1;return T.jsx($V,{control:T.jsx(gnt,{name:e,id:Wa(e,w),color:"primary"}),label:S.label,value:String(w),disabled:o||$||a},w)})})]})}var wnt=function(t){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:G({zIndex:1},t.typography.body2,{fontSize:t.typography.pxToRem(12),lineHeight:1.2,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:t.palette.primary.contrastText,transform:"rotate(45deg)"}}};function Cnt(e){var t=e.children,r=e.classes,n=e.className,o=e.open,a=e.value,i=e.valueLabelDisplay;return i==="off"?t:m.cloneElement(t,{className:ft(t.props.className,(o||i==="on")&&r.open,r.thumb)},m.createElement("span",{className:ft(r.offset,n)},m.createElement("span",{className:r.circle},m.createElement("span",{className:r.label},a))))}const xnt=Zr(wnt,{name:"PrivateValueLabel"})(Cnt);function p5(e,t){return e-t}function m5(e,t,r){return Math.min(Math.max(t,e),r)}function GZ(e,t){var r=e.reduce(function(o,a,i){var s=Math.abs(t-a);return o===null||s0&&ee.some(function(he){return he.label})&&i.marked,B===!1&&i.trackFalse,N==="vertical"&&i.vertical,B==="inverted"&&i.trackInverted),onMouseDown:ot},q),m.createElement("span",{className:i.rail}),m.createElement("span",{className:i.track,style:Qe}),m.createElement("input",{value:de.join(","),name:x,type:"hidden"}),ee.map(function(he,ye){var Ee=y2(he.value,C,w),rt=w2[mt].offset(Ee),re;return B===!1?re=de.indexOf(he.value)!==-1:re=B==="normal"&&(ge?he.value>=de[0]&&he.value<=de[de.length-1]:he.value<=de[0])||B==="inverted"&&(ge?he.value<=de[0]||he.value>=de[de.length-1]:he.value>=de[0]),m.createElement(m.Fragment,{key:he.value},m.createElement("span",{style:rt,"data-index":ye,className:ft(i.mark,re&&i.markActive)}),he.label!=null?m.createElement("span",{"aria-hidden":!0,"data-index":ye,style:rt,className:ft(i.markLabel,re&&i.markLabelActive)},he.label):null)}),de.map(function(he,ye){var Ee=y2(he,C,w),rt=w2[mt].offset(Ee);return m.createElement(D,{key:ye,valueLabelFormat:U,valueLabelDisplay:R,className:i.valueLabel,value:typeof U=="function"?U(O(he),ye):U,index:ye,open:ae===ye||oe===ye||R==="on",disabled:h},m.createElement(j,{className:ft(i.thumb,i["thumbColor".concat(go(u))],oe===ye&&i.active,h&&i.disabled,$e===ye&&i.focusVisible),tabIndex:h?null:0,role:"slider",style:rt,"data-index":ye,"aria-label":v?v(ye):n,"aria-labelledby":o,"aria-orientation":N,"aria-valuemax":O(w),"aria-valuemin":O(C),"aria-valuenow":O(he),"aria-valuetext":b?b(O(he),ye):a,onKeyDown:bt,onFocus:De,onBlur:et,onMouseOver:Ie,onMouseLeave:Fe}))}))});const Pnt=Zr(_nt,{name:"MuiSlider"})(knt);function Tnt(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:u,label:c,hideLabel:d,id:f}=e,p={value:t,label:c,id:f,name:f,..._p(s)},h=(g,y)=>{l(y??i.emptyValue)},v=({target:{value:g}})=>o(f,g),b=({target:{value:g}})=>a(f,g);return T.jsxs(T.Fragment,{children:[wr(T.jsx(MO,{required:u,htmlFor:f,children:c||void 0}),d),T.jsx(Pnt,{disabled:n||r,onChange:h,onBlur:v,onFocus:b,valueLabelDisplay:"auto",...p,"aria-describedby":Ot(f)})]})}var Int=function(t){return{root:G({},t.typography.body1,le({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},t.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:G({},t.typography.body2,{minHeight:"auto"})}},Rnt=m.forwardRef(function(t,r){var n=t.classes,o=t.className,a=t.component,i=a===void 0?"li":a,s=t.disableGutters,l=s===void 0?!1:s,u=t.ListItemClasses,c=t.role,d=c===void 0?"menuitem":c,f=t.selected,p=t.tabIndex,h=St(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]),v;return t.disabled||(v=p!==void 0?p:-1),m.createElement(yV,G({button:!0,role:d,tabIndex:v,component:i,selected:f,disableGutters:l,classes:G({dense:n.dense},u),className:ft(n.root,o,f&&n.selected,!l&&n.gutters),ref:r},h))});const ZZ=Zr(Int,{name:"MuiMenuItem"})(Rnt);function Fnt({schema:e,id:t,name:r,options:n,label:o,hideLabel:a,required:i,disabled:s,readonly:l,placeholder:u,value:c,multiple:d,autofocus:f,onChange:p,onBlur:h,onFocus:v,rawErrors:b=[],registry:g,uiSchema:y,hideError:S,formContext:w,...$}){const{enumOptions:C,enumDisabled:x,emptyValue:E}=n;d=typeof d>"u"?!1:!!d;const _=d?[]:"",k=typeof c>"u"||d&&c.length<1||!d&&c===_,I=({target:{value:M}})=>p(Tt(M,C,E)),N=({target:M})=>h(t,Tt(M&&M.value,C,E)),z=({target:M})=>v(t,Tt(M&&M.value,C,E)),O=mi(c,C,d),A=!d&&e.default===void 0;return T.jsxs(gV,{id:t,name:t,label:wr(o,a||!o,!1),value:!k&&typeof O<"u"?O:_,required:i,disabled:s||l,autoFocus:f,placeholder:u,error:b.length>0,onChange:I,onBlur:N,onFocus:z,...$,select:!0,InputLabelProps:{...$.InputLabelProps,shrink:!k},SelectProps:{...$.SelectProps,multiple:d},"aria-describedby":Ot(t),children:[A&&T.jsx(ZZ,{value:"",children:u}),Array.isArray(C)&&C.map(({value:M,label:L},j)=>{const H=Array.isArray(x)&&x.indexOf(M)!==-1;return T.jsx(ZZ,{value:String(j),disabled:H,children:L},j)})]})}function Ont(e){const{options:t,registry:r}=e,n=Ct("BaseInputTemplate",r,t);let o=5;return(typeof t.rows=="string"||typeof t.rows=="number")&&(o=t.rows),T.jsx(n,{...e,multiline:!0,rows:o})}function Nnt(){return{CheckboxWidget:nnt,CheckboxesWidget:int,RadioWidget:Snt,RangeWidget:Tnt,SelectWidget:Fnt,TextareaWidget:Ont}}function Jhe(){return{templates:Wrt(),widgets:Nnt()}}const Dnt=Jhe();function Ant(){return Fd(Jhe())}Ant();var EV={},h5={};function Im(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function eve(e){if(!Im(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=eve(e[r])}),t}function Pd(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Im(e)&&Im(t)&&Object.keys(t).forEach(o=>{Im(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Im(e[o])?n[o]=Pd(e[o],t[o],r):r.clone?n[o]=Im(t[o])?eve(t[o]):t[o]:n[o]=t[o]}),n}function Tg(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function _V(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Mnt(e,t){return()=>null}function gC(e,t){var r,n,o;return m.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}function Va(e){return e&&e.ownerDocument||document}function wh(e){return Va(e).defaultView||window}function Bnt(e,t){return()=>null}function SI(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const jnt=typeof window<"u"?m.useLayoutEffect:m.useEffect,Od=jnt;let JZ=0;function Lnt(e){const[t,r]=m.useState(e),n=e||t;return m.useEffect(()=>{t==null&&(JZ+=1,r(`mui-${JZ}`))},[t]),n}const eJ=Vi["useId".toString()];function zO(e){if(eJ!==void 0){const t=eJ();return e??t}return Lnt(e)}function znt(e,t,r,n,o){return null}function jy({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=m.useRef(e!==void 0),[a,i]=m.useState(t),s=o?e:a,l=m.useCallback(u=>{o||i(u)},[]);return[s,l]}function fd(e){const t=m.useRef(e);return Od(()=>{t.current=e}),m.useRef((...r)=>(0,t.current)(...r)).current}function ta(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{SI(r,t)})},e)}const tJ={};function tve(e,t){const r=m.useRef(tJ);return r.current===tJ&&(r.current=e(t)),r}const Vnt=[];function Hnt(e){m.useEffect(e,Vnt)}class kV{constructor(){A0(this,"currentId",null);A0(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});A0(this,"disposeEffect",()=>this.clear)}static create(){return new kV}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function rve(){const e=tve(kV.create).current;return Hnt(e.disposeEffect),e}function wI(e){try{return e.matches(":focus-visible")}catch{}return!1}function nve(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Wnt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},qnt=Wnt;function ove(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=ove(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function Jr(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;le,Unt=()=>{let e=rJ;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rJ}}},Knt=Unt(),PV=Knt,Gnt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qr(e,t,r="Mui"){const n=Gnt[t];return n?`${r}-${n}`:`${PV.generate(e)}-${t}`}function Dr(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=qr(e,o,r)}),n}function tw(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ynt(e){return typeof e=="string"}function ave(e,t,r){return e===void 0||Ynt(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function ive(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tn.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function nJ(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function sve(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const p=Qt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},v={...r,...o,...n};return p.length>0&&(v.className=p),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:void 0}}const i=bC({...o,...n}),s=nJ(n),l=nJ(o),u=t(i),c=Qt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d={...u==null?void 0:u.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},f={...u,...r,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function lve(e,t,r){return typeof e=="function"?e(t,r):e}function Qc(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:lve(r,n),{props:s,internalRef:l}=sve({...a,externalSlotProps:i}),u=ta(l,i==null?void 0:i.ref,(d=e.additionalProps)==null?void 0:d.ref);return ave(t,{...s,ref:u},n)}function kE(e){return!e||!m.isValidElement(e)?null:e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}function mL(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r{t[r]=cve(e[r])}),t}function sg(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Rm(e)&&Rm(t)&&Object.keys(t).forEach(o=>{Rm(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Rm(e[o])?n[o]=sg(e[o],t[o],r):r.clone?n[o]=Rm(t[o])?cve(t[o]):t[o]:n[o]=t[o]}),n}function yC(e,t){return t?sg(e,t,{clone:!1}):e}function Xnt(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function Qnt(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Znt(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function Jnt(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const VO={xs:0,sm:600,md:900,lg:1200,xl:1536},oJ={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${VO[e]}px)`},eot={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:VO[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Eu(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||oJ;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||oJ;return Object.keys(t).reduce((i,s)=>{if(Qnt(a.keys,s)){const l=Znt(n.containerQueries?n:eot,s);l&&(i[l]=r(t[s],s))}else if(Object.keys(a.values||VO).includes(s)){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function tot(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function rot(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function not(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function HO({values:e,breakpoints:t,base:r}){const n=r||not(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function WO(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function CI(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=WO(e,r)||n,t&&(o=t(o,n,e)),o}function aa(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,u=WO(l,n)||{};return Eu(i,s,d=>{let f=CI(u,o,d);return d===f&&typeof d=="string"&&(f=CI(u,o,`${t}${d==="default"?"":uve(d)}`,d)),r===!1?f:{[r]:f}})};return a.propTypes={},a.filterProps=[t],a}function oot(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const aot={m:"margin",p:"padding"},iot={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aJ={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sot=oot(e=>{if(e.length>2)if(aJ[e])e=aJ[e];else return[e];const[t,r]=e.split(""),n=aot[t],o=iot[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),TV=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],IV=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...TV,...IV];function PE(e,t,r,n){const o=WO(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function RV(e){return PE(e,"spacing",8)}function TE(e,t){return typeof t=="string"||t==null?t:e(t)}function lot(e,t){return r=>e.reduce((n,o)=>(n[o]=TE(t,r),n),{})}function uot(e,t,r,n){if(!t.includes(r))return null;const o=sot(r),a=lot(o,n),i=e[r];return Eu(e,i,a)}function dve(e,t){const r=RV(e.theme);return Object.keys(e).map(n=>uot(e,t,n,r)).reduce(yC,{})}function Do(e){return dve(e,TV)}Do.propTypes={};Do.filterProps=TV;function Ao(e){return dve(e,IV)}Ao.propTypes={};Ao.filterProps=IV;function qO(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?yC(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function iu(e){return typeof e!="number"?e:`${e}px solid`}function Du(e,t){return aa({prop:e,themeKey:"borders",transform:t})}const cot=Du("border",iu),dot=Du("borderTop",iu),fot=Du("borderRight",iu),pot=Du("borderBottom",iu),mot=Du("borderLeft",iu),hot=Du("borderColor"),vot=Du("borderTopColor"),got=Du("borderRightColor"),bot=Du("borderBottomColor"),yot=Du("borderLeftColor"),Sot=Du("outline",iu),wot=Du("outlineColor"),UO=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=PE(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:TE(t,n)});return Eu(e,e.borderRadius,r)}return null};UO.propTypes={};UO.filterProps=["borderRadius"];qO(cot,dot,fot,pot,mot,hot,vot,got,bot,yot,UO,Sot,wot);const KO=e=>{if(e.gap!==void 0&&e.gap!==null){const t=PE(e.theme,"spacing",8),r=n=>({gap:TE(t,n)});return Eu(e,e.gap,r)}return null};KO.propTypes={};KO.filterProps=["gap"];const GO=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=PE(e.theme,"spacing",8),r=n=>({columnGap:TE(t,n)});return Eu(e,e.columnGap,r)}return null};GO.propTypes={};GO.filterProps=["columnGap"];const YO=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=PE(e.theme,"spacing",8),r=n=>({rowGap:TE(t,n)});return Eu(e,e.rowGap,r)}return null};YO.propTypes={};YO.filterProps=["rowGap"];const Cot=aa({prop:"gridColumn"}),xot=aa({prop:"gridRow"}),$ot=aa({prop:"gridAutoFlow"}),Eot=aa({prop:"gridAutoColumns"}),_ot=aa({prop:"gridAutoRows"}),kot=aa({prop:"gridTemplateColumns"}),Pot=aa({prop:"gridTemplateRows"}),Tot=aa({prop:"gridTemplateAreas"}),Iot=aa({prop:"gridArea"});qO(KO,GO,YO,Cot,xot,$ot,Eot,_ot,kot,Pot,Tot,Iot);function iy(e,t){return t==="grey"?t:e}const Rot=aa({prop:"color",themeKey:"palette",transform:iy}),Fot=aa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:iy}),Oot=aa({prop:"backgroundColor",themeKey:"palette",transform:iy});qO(Rot,Fot,Oot);function ml(e){return e<=1&&e!==0?`${e*100}%`:e}const Not=aa({prop:"width",transform:ml}),FV=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,a,i,s,l;const n=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||VO[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ml(r)}};return Eu(e,e.maxWidth,t)}return null};FV.filterProps=["maxWidth"];const Dot=aa({prop:"minWidth",transform:ml}),Aot=aa({prop:"height",transform:ml}),Mot=aa({prop:"maxHeight",transform:ml}),Bot=aa({prop:"minHeight",transform:ml});aa({prop:"size",cssProperty:"width",transform:ml});aa({prop:"size",cssProperty:"height",transform:ml});const jot=aa({prop:"boxSizing"});qO(Not,FV,Dot,Aot,Mot,Bot,jot);const Lot={border:{themeKey:"borders",transform:iu},borderTop:{themeKey:"borders",transform:iu},borderRight:{themeKey:"borders",transform:iu},borderBottom:{themeKey:"borders",transform:iu},borderLeft:{themeKey:"borders",transform:iu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:iu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:UO},color:{themeKey:"palette",transform:iy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:iy},backgroundColor:{themeKey:"palette",transform:iy},p:{style:Ao},pt:{style:Ao},pr:{style:Ao},pb:{style:Ao},pl:{style:Ao},px:{style:Ao},py:{style:Ao},padding:{style:Ao},paddingTop:{style:Ao},paddingRight:{style:Ao},paddingBottom:{style:Ao},paddingLeft:{style:Ao},paddingX:{style:Ao},paddingY:{style:Ao},paddingInline:{style:Ao},paddingInlineStart:{style:Ao},paddingInlineEnd:{style:Ao},paddingBlock:{style:Ao},paddingBlockStart:{style:Ao},paddingBlockEnd:{style:Ao},m:{style:Do},mt:{style:Do},mr:{style:Do},mb:{style:Do},ml:{style:Do},mx:{style:Do},my:{style:Do},margin:{style:Do},marginTop:{style:Do},marginRight:{style:Do},marginBottom:{style:Do},marginLeft:{style:Do},marginX:{style:Do},marginY:{style:Do},marginInline:{style:Do},marginInlineStart:{style:Do},marginInlineEnd:{style:Do},marginBlock:{style:Do},marginBlockStart:{style:Do},marginBlockEnd:{style:Do},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:KO},rowGap:{style:YO},columnGap:{style:GO},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ml},maxWidth:{style:FV},minWidth:{transform:ml},height:{transform:ml},maxHeight:{transform:ml},minHeight:{transform:ml},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},IE=Lot;function zot(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Vot(e,t){return typeof e=="function"?e(t):e}function Hot(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:d}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=WO(o,u)||{};return d?d(i):Eu(i,n,h=>{let v=CI(f,c,h);return h===v&&typeof h=="string"&&(v=CI(f,c,`${r}${h==="default"?"":uve(h)}`,h)),l===!1?v:{[l]:v}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??IE;function i(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const u=tot(o.breakpoints),c=Object.keys(u);let d=u;return Object.keys(l).forEach(f=>{const p=Vot(l[f],o);if(p!=null)if(typeof p=="object")if(a[f])d=yC(d,e(f,p,o,a));else{const h=Eu({theme:o},p,v=>({[f]:v}));zot(h,p)?d[f]=t({sx:p,theme:o}):d=yC(d,h)}else d=yC(d,e(f,p,o,a))}),Xnt(o,rot(c,d))}return Array.isArray(n)?n.map(i):i(n)}return t}const fve=Hot();fve.filterProps=["sx"];const RE=fve,Wot=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??IE;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function OV(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=Wot(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Rm(s)?{...n,...s}:n}:a={...n,...t},{...o,sx:a}}function pve(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var qot=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Uot=pve(function(e){return qot.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Kot=!1;function Got(e){if(e.sheet)return e.sheet;for(var t=0;t0?jo(rS,--Ss):0,Ly--,Po===10&&(Ly=1,QO--),Po}function Us(){return Po=Ss2||zy(Po)>3?"":" "}function iat(e){for(;Us();)switch(zy(Po)){case 0:Xv(wve(Ss-1),e);break;case 2:Xv(SC(Po),e);break;default:Xv(OE(Po),e)}return e}function sat(e,t){for(;--t&&Us()&&!(Po<48||Po>102||Po>57&&Po<65||Po>70&&Po<97););return NE(e,UP()+(t<6&&Td()==32&&Us()==32))}function hL(e){for(;Us();)switch(Po){case e:return Ss;case 34:case 39:e!==34&&e!==39&&hL(Po);break;case 40:e===41&&hL(e);break;case 92:Us();break}return Ss}function lat(e,t){for(;Us()&&e+Po!==47+10;)if(e+Po===42+42&&Td()===47)break;return"/*"+NE(t,Ss-1)+"*"+OE(e===47?e:Us())}function wve(e){for(;!zy(Td());)Us();return NE(e,Ss)}function JO(e){return MV(KP("",null,null,null,[""],e=AV(e),0,[0],e))}function KP(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,v=1,b=1,g=1,y=0,S="",w=o,$=a,C=n,x=S;b;)switch(h=y,y=Us()){case 40:if(h!=108&&jo(x,d-1)==58){xI(x+=kr(SC(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:x+=SC(y);break;case 9:case 10:case 13:case 32:x+=aat(h);break;case 92:x+=sat(UP()-1,7);continue;case 47:switch(Td()){case 42:case 47:Xv(uat(lat(Us(),UP()),t,r),l);break;default:x+="/"}break;case 123*v:s[u++]=dc(x)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+c:g==-1&&(x=kr(x,/\f/g,"")),p>0&&dc(x)-d&&Xv(p>32?sJ(x+";",n,r,d-1):sJ(kr(x," ","")+";",n,r,d-2),l);break;case 59:x+=";";default:if(Xv(C=iJ(x,t,r,u,c,o,s,S,w=[],$=[],d),a),y===123)if(c===0)KP(x,t,C,C,w,a,d,s,$);else switch(f===99&&jo(x,3)===110?100:f){case 100:case 108:case 109:case 115:KP(e,C,C,n&&Xv(iJ(e,C,C,0,0,o,s,S,o,w=[],d),$),o,$,d,s,n?w:$);break;default:KP(x,C,C,C,[""],$,0,s,$)}}u=c=p=0,v=g=1,S=x="",d=i;break;case 58:d=1+dc(x),p=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&nat()==125)continue}switch(x+=OE(y),y*v){case 38:g=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(dc(x)-1)*g,g=1;break;case 64:Td()===45&&(x+=SC(Us())),f=Td(),c=d=dc(S=x+=wve(UP())),y++;break;case 45:h===45&&dc(x)==2&&(v=0)}}return a}function iJ(e,t,r,n,o,a,i,s,l,u,c){for(var d=o-1,f=o===0?a:[""],p=DV(f),h=0,v=0,b=0;h0?f[g]+" "+y:kr(y,/&\f/g,f[g])))&&(l[b++]=S);return ZO(e,t,r,o===0?FE:s,l,u,c)}function uat(e,t,r){return ZO(e,t,r,mve,OE(rat()),zx(e,2,-2),0)}function sJ(e,t,r,n){return ZO(e,t,r,XO,zx(e,0,n),zx(e,n+1,-1),n)}function $c(e,t){for(var r="",n=DV(e),o=0;o6)switch(jo(e,t+1)){case 109:if(jo(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+xr+"$2-$3$1"+Of+(jo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xI(e,"stretch")?Cve(kr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jo(e,t+1)!==115)break;case 6444:switch(jo(e,dc(e)-3-(~xI(e,"!important")&&10))){case 107:return kr(e,":",":"+xr)+e;case 101:return kr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xr+(jo(e,14)===45?"inline-":"")+"box$3$1"+xr+"$2$3$1"+_i+"$2box$3")+e}break;case 5936:switch(jo(e,t+11)){case 114:return xr+e+_i+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xr+e+_i+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xr+e+_i+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xr+e+_i+e+e}return e}var hat=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case XO:t.return=Cve(t.value,t.length);break;case hve:return $c([Fm(t,{value:kr(t.value,"@","@"+xr)})],o);case FE:if(t.length)return yve(t.props,function(a){switch(NV(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $c([Fm(t,{props:[kr(a,/:(read-\w+)/,":"+Of+"$1")]})],o);case"::placeholder":return $c([Fm(t,{props:[kr(a,/:(plac\w+)/,":"+xr+"input-$1")]}),Fm(t,{props:[kr(a,/:(plac\w+)/,":"+Of+"$1")]}),Fm(t,{props:[kr(a,/:(plac\w+)/,_i+"input-$1")]})],o)}return""})}},vat=[hat],$I=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||vat,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),g=1;g=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var bat={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yat=/[A-Z]|^ms/g,Sat=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$ve=function(t){return t.charCodeAt(1)===45},uJ=function(t){return t!=null&&typeof t!="boolean"},v5=pve(function(e){return $ve(e)?e:e.replace(yat,"-$&").toLowerCase()}),cJ=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Sat,function(n,o,a){return ed={name:o,styles:a,next:ed},o})}return bat[t]!==1&&!$ve(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vx(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ed={name:r.name,styles:r.styles,next:ed},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ed={name:n.name,styles:n.styles,next:ed},n=n.next;var o=r.styles+";";return o}return wat(e,t,r)}case"function":{if(e!==void 0){var a=ed,i=r(e);return ed=a,Vx(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function wat(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Iat:Rat},mJ=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Fat=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return LV(r,n,o),_ve(function(){return zV(r,n,o)}),null},Oat=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=mJ(t,r,n),l=s||pJ(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(Dat(o)?r:o):t;return T.jsx(DE,{styles:n})}/** + * @mui/styled-engine v6.0.2 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Tve(e,t){return EI(e,t)}const Mat=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Bat=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function jat(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=Bat(t),i=Object.keys(a);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,p){const h=i.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(h!==-1&&typeof t[i[h]]=="number"?t[i[h]]:p)-n/100}${r})`}function c(f){return i.indexOf(f)+1(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Vat(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return(o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t}}return r.palette.mode===e?t:{}}function qV(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=e,s=jat(r),l=Ive(o);let u=sg({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...zat,...a}},i);return u=Jnt(u),u.applyStyles=Vat,u=t.reduce((c,d)=>sg(c,d),u),u.unstable_sxConfig={...IE,...i==null?void 0:i.unstable_sxConfig},u.unstable_sx=function(d){return RE({sx:d,theme:this})},u}function Hat(e){return Object.keys(e).length===0}function Wat(e=null){const t=m.useContext(Ig);return!t||Hat(t)?e:t}const qat=qV();function rN(e=qat){return Wat(e)}function Uat({styles:e,themeId:t,defaultTheme:r={}}){const n=rN(r),o=typeof e=="function"?e(t&&n[t]||n):e;return T.jsx(Aat,{styles:o})}function Rve(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(RE);return m.forwardRef(function(l,u){const c=rN(r),{className:d,component:f="div",...p}=OV(l);return T.jsx(a,{as:f,ref:u,className:Kat(d,o?o(n):n),theme:t&&c[t]||c,...p})})}const Yat=qV();function g5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function bL(e,t,r){return Zat(t)?r:t[e]||t}const C2=Symbol("mui.processed_props");function x2(e,t,r){if(C2 in e)return e[C2];const n={...e,theme:bL(t,e.theme,r)};return e[C2]=n,n[C2]=n,n}function Xat(e){return e?(t,r)=>r[e]:null}function GP(e,t){var n;const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(o=>GP(o,t));if(Array.isArray(r==null?void 0:r.variants)){const{variants:o,...a}=r;let i=a,s;e:for(let l=0;lRE(x2(s,t,r));return a.__mui_systemSx=!0,(s,l={})=>{Mat(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Xat(eit(c)),...h}=l,v=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,b=f||!1;let g,y=g5;c==="Root"||c==="root"?y=n:c?y=o:Jat(s)&&(y=void 0);const S=Tve(s,{shouldForwardProp:y,label:g,...h}),w=C=>typeof C=="function"&&C.__emotion_real!==C||Rm(C)?x=>GP(C,x2(x,t,r)):C,$=(C,...x)=>{let E=w(C);const _=x?x.map(w):[];u&&p&&_.push(N=>{const z=bL(t,N.theme,r);if(!z.components||!z.components[u]||!z.components[u].styleOverrides)return null;const O=z.components[u].styleOverrides,A={},M=x2(N,t,r);for(const L in O)A[L]=GP(O[L],M);return p(N,A)}),u&&!v&&_.push(N=>{var A,M;const z=bL(t,N.theme,r),O=(M=(A=z==null?void 0:z.components)==null?void 0:A[u])==null?void 0:M.variants;return O?GP({variants:O},x2(N,t,r)):null}),b||_.push(a);const k=_.length-x.length;if(Array.isArray(C)&&k>0){const N=new Array(k).fill("");E=[...C,...N],E.raw=[...C.raw,...N]}const I=S(E,..._);return s.muiName&&(I.muiName=s.muiName),I};return S.withConfig&&($.withConfig=S.withConfig),$}}function Zat(e){for(const t in e)return!1;return!0}function Jat(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eit(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function _I(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=_I(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function tit(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:_I(t.components[r].defaultProps,n)}function rit({props:e,name:t,defaultTheme:r,themeId:n}){let o=rN(r);return n&&(o=o[n]||o),tit({theme:o,name:t,props:e})}function nit(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function UV(e,t=0,r=1){return nit(e,t,r)}function oit(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ch(e){if(e.type)return e;if(e.charAt(0)==="#")return Ch(oit(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(mL(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(mL(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ait=e=>{const t=Ch(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Hw=(e,t)=>{try{return ait(e)}catch{return e}};function nN(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Fve(e){e=Ch(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,c=(u+r/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),nN({type:s,values:l})}function yL(e){e=Ch(e);let t=e.type==="hsl"||e.type==="hsla"?Ch(Fve(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function iit(e,t){const r=yL(e),n=yL(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Jo(e,t){return e=Ch(e),t=UV(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,nN(e)}function $2(e,t,r){try{return Jo(e,t)}catch{return e}}function Hx(e,t){if(e=Ch(e),t=UV(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return nN(e)}function jn(e,t,r){try{return Hx(e,t)}catch{return e}}function Wx(e,t){if(e=Ch(e),t=UV(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return nN(e)}function Ln(e,t,r){try{return Wx(e,t)}catch{return e}}function sit(e,t=.15){return yL(e)>.5?Hx(e,t):Wx(e,t)}function E2(e,t,r){try{return sit(e,t)}catch{return e}}const lit=m.createContext(),Ove=()=>m.useContext(lit)??!1,uit=m.createContext(void 0);function cit(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?_I(o.defaultProps,n):!o.styleOverrides&&!o.variants?_I(o,n):n}function dit({props:e,name:t}){const r=m.useContext(uit);return cit({props:e,name:t,theme:{components:r}})}function fit(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const hJ=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},pit=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},mit=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function b5(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return pit(e,(s,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const c=`--${r?`${r}-`:""}${s.join("-")}`,d=mit(s,l);Object.assign(o,{[c]:d}),hJ(a,s,`var(${c})`,u),hJ(i,s,`var(${c}, ${d})`,u)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function hit(e,t={}){const{getSelector:r=b,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=b5(l,t);let f=d;const p={},{[s]:h,...v}=a;if(Object.entries(v||{}).forEach(([S,w])=>{const{vars:$,css:C,varsWithDefaults:x}=b5(w,t);f=sg(f,x),p[S]={css:C,vars:$}}),h){const{css:S,vars:w,varsWithDefaults:$}=b5(h,t);f=sg(f,$),p[s]={css:S,vars:w}}function b(S,w){var C,x;let $=o;if(o==="class"&&($=".%s"),o==="data"&&($="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&($=`[${o}="%s"]`),S){if($==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((x=(C=a[S])==null?void 0:C.palette)==null?void 0:x.mode)||S})`]:{":root":w}};if($)return e.defaultColorScheme===S?`:root, ${$.replace("%s",String(S))}`:$.replace("%s",String(S))}return":root"}return{vars:f,generateThemeVars:()=>{let S={...u};return Object.entries(p).forEach(([,{vars:w}])=>{S=sg(S,w)}),S},generateStyleSheets:()=>{var E,_;const S=[],w=e.defaultColorScheme||"light";function $(k,I){Object.keys(I).length&&S.push(typeof k=="string"?{[k]:{...I}}:k)}$(r(void 0,{...c}),c);const{[w]:C,...x}=p;if(C){const{css:k}=C,I=(_=(E=a[w])==null?void 0:E.palette)==null?void 0:_.mode,N=!n&&I?{colorScheme:I,...k}:{...k};$(r(w,{...N}),N)}return Object.entries(x).forEach(([k,{css:I}])=>{var O,A;const N=(A=(O=a[k])==null?void 0:O.palette)==null?void 0:A.mode,z=!n&&N?{colorScheme:N,...I}:{...I};$(r(k,{...z}),z)}),S}}}function vit(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const git={black:"#000",white:"#fff"},qx=git,bit={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},yit=bit,Sit={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},H0=Sit,wit={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},W0=wit,Cit={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},rw=Cit,xit={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},q0=xit,$it={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},U0=$it,Eit={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},K0=Eit,vJ={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:qx.white,default:qx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},y5={text:{primary:qx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:qx.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function gJ(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Wx(e.main,o):t==="dark"&&(e.dark=Hx(e.main,a)))}function _it(e="light"){return e==="dark"?{main:q0[200],light:q0[50],dark:q0[400]}:{main:q0[700],light:q0[400],dark:q0[800]}}function kit(e="light"){return e==="dark"?{main:H0[200],light:H0[50],dark:H0[400]}:{main:H0[500],light:H0[300],dark:H0[700]}}function Pit(e="light"){return e==="dark"?{main:W0[500],light:W0[300],dark:W0[700]}:{main:W0[700],light:W0[400],dark:W0[800]}}function Tit(e="light"){return e==="dark"?{main:U0[400],light:U0[300],dark:U0[700]}:{main:U0[700],light:U0[500],dark:U0[900]}}function Iit(e="light"){return e==="dark"?{main:K0[400],light:K0[300],dark:K0[700]}:{main:K0[800],light:K0[500],dark:K0[900]}}function Rit(e="light"){return e==="dark"?{main:rw[400],light:rw[300],dark:rw[700]}:{main:"#ed6c02",light:rw[500],dark:rw[900]}}function KV(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,a=e.primary||_it(t),i=e.secondary||kit(t),s=e.error||Pit(t),l=e.info||Tit(t),u=e.success||Iit(t),c=e.warning||Rit(t);function d(v){return iit(v,y5.text.primary)>=r?y5.text.primary:vJ.text.primary}const f=({color:v,name:b,mainShade:g=500,lightShade:y=300,darkShade:S=700})=>{if(v={...v},!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(Tg(11,b?` (${b})`:"",g));if(typeof v.main!="string")throw new Error(Tg(12,b?` (${b})`:"",JSON.stringify(v.main)));return gJ(v,"light",y,n),gJ(v,"dark",S,n),v.contrastText||(v.contrastText=d(v.main)),v},p={dark:y5,light:vJ};return Pd({common:{...qx},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:yit,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n,...p[t]},o)}function Fit(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function Oit(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Nit(e){return Math.round(e*1e5)/1e5}const bJ={textTransform:"uppercase"},yJ='"Roboto", "Helvetica", "Arial", sans-serif';function Dit(e,t){const{fontFamily:r=yJ,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}=typeof t=="function"?t(e):t,f=n/14,p=c||(b=>`${b/l*f}rem`),h=(b,g,y,S,w)=>({fontFamily:r,fontWeight:b,fontSize:p(g),lineHeight:y,...r===yJ?{letterSpacing:`${Nit(S/g)}em`}:{},...w,...u}),v={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,bJ),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,bJ),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pd({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...v},d,{clone:!1})}const Ait=.2,Mit=.14,Bit=.12;function mo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ait})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mit})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bit})`].join(",")}const jit=["none",mo(0,2,1,-1,0,1,1,0,0,1,3,0),mo(0,3,1,-2,0,2,2,0,0,1,5,0),mo(0,3,3,-2,0,3,4,0,0,1,8,0),mo(0,2,4,-1,0,4,5,0,0,1,10,0),mo(0,3,5,-1,0,5,8,0,0,1,14,0),mo(0,3,5,-1,0,6,10,0,0,1,18,0),mo(0,4,5,-2,0,7,10,1,0,2,16,1),mo(0,5,5,-3,0,8,10,1,0,3,14,2),mo(0,5,6,-3,0,9,12,1,0,3,16,2),mo(0,6,6,-3,0,10,14,1,0,4,18,3),mo(0,6,7,-4,0,11,15,1,0,4,20,3),mo(0,7,8,-4,0,12,17,2,0,5,22,4),mo(0,7,8,-4,0,13,19,2,0,5,24,4),mo(0,7,9,-4,0,14,21,2,0,5,26,4),mo(0,8,9,-5,0,15,22,2,0,6,28,5),mo(0,8,10,-5,0,16,24,2,0,6,30,5),mo(0,8,11,-5,0,17,26,2,0,6,32,5),mo(0,9,11,-5,0,18,28,2,0,7,34,6),mo(0,9,12,-6,0,19,29,2,0,7,36,6),mo(0,10,13,-6,0,20,31,3,0,8,38,7),mo(0,10,13,-6,0,21,33,3,0,8,40,7),mo(0,10,14,-6,0,22,35,3,0,8,42,7),mo(0,11,14,-7,0,23,36,3,0,9,44,8),mo(0,11,15,-7,0,24,38,3,0,9,46,8)],Lit=jit,zit={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Vit={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function SJ(e){return`${Math.round(e)}ms`}function Hit(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Wit(e){const t={...zit,...e.easing},r={...Vit,...e.duration};return{getAutoHeightDuration:Hit,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0,...u}=a;return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:SJ(i)} ${s} ${typeof l=="string"?l:SJ(l)}`).join(",")},...e,easing:t,duration:r}}const qit={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Uit=qit;function SL(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...u}=e;if(e.vars)throw new Error(Tg(20));const c=KV(a),d=qV(e);let f=Pd(d,{mixins:Oit(d.breakpoints,n),palette:c,shadows:Lit.slice(),typography:Dit(c,s),transitions:Wit(i),zIndex:{...Uit}});return f=Pd(f,u),f=t.reduce((p,h)=>Pd(p,h),f),f.unstable_sxConfig={...IE,...u==null?void 0:u.unstable_sxConfig},f.unstable_sx=function(h){return RE({sx:h,theme:this})},f}function wL(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Kit=[...Array(25)].map((e,t)=>{if(t===0)return;const r=wL(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Nve(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Dve(e){return e==="dark"?Kit:[]}function Git(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,a=KV(t);return{palette:a,opacity:{...Nve(a.mode),...r},overlays:n||Dve(a.mode),...o}}function Yit(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Xit=e=>[...[...Array(24)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Qit=Xit,Zit=e=>(t,r)=>{const n=e.colorSchemeSelector;let o=n;if(n==="class"&&(o=".%s"),n==="data"&&(o="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(o=`[${n}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Qit(e.cssVarPrefix).forEach(i=>{a[i]=r[i],delete r[i]}),o==="media"?{":root":r,"@media (prefers-color-scheme: dark)":{":root":a}}:o?{[o.replace("%s",t)]:a,[`:root, ${o.replace("%s",t)}`]:r}:{":root":{...r,...a}}}if(o&&o!=="media")return`:root, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{":root":r}};if(o)return o.replace("%s",String(t))}return":root"};function Jit(e){return Im(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function est(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a{e[r]||(e[r]={})})}function nt(e,t,r){!e[t]&&r&&(e[t]=r)}function Ww(e){return!e||!e.startsWith("hsl")?e:Fve(e)}function uf(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Hw(Ww(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function rst(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Wc=e=>{try{return e()}catch{}},nst=(e="mui")=>fit(e);function S5(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=Git({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:a,...i}=SL({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...Nve(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Dve(o)},i}function ost(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=Yit,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,...l}=e,u=Object.keys(r)[0],c=n||(r.light&&u!=="light"?"light":u),d=nst(a),{[c]:f,light:p,dark:h,...v}=r,b={...v};let g=f;if((c==="dark"&&!("dark"in r)||c==="light"&&!("light"in r))&&(g=!0),!g)throw new Error(Tg(21,c));const y=S5(b,g,l,c);p&&!b.light&&S5(b,p,void 0,"light"),h&&!b.dark&&S5(b,h,void 0,"dark");let S={defaultColorScheme:c,...y,cssVarPrefix:a,colorSchemeSelector:s,getCssVar:d,colorSchemes:b,font:{...Fit(y.typography),...y.font},spacing:rst(l.spacing)};Object.keys(S.colorSchemes).forEach(E=>{const _=S.colorSchemes[E].palette,k=I=>{const N=I.split("-"),z=N[1],O=N[2];return d(I,_[z][O])};if(_.mode==="light"&&(nt(_.common,"background","#fff"),nt(_.common,"onBackground","#000")),_.mode==="dark"&&(nt(_.common,"background","#000"),nt(_.common,"onBackground","#fff")),tst(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){nt(_.Alert,"errorColor",jn(_.error.light,.6)),nt(_.Alert,"infoColor",jn(_.info.light,.6)),nt(_.Alert,"successColor",jn(_.success.light,.6)),nt(_.Alert,"warningColor",jn(_.warning.light,.6)),nt(_.Alert,"errorFilledBg",k("palette-error-main")),nt(_.Alert,"infoFilledBg",k("palette-info-main")),nt(_.Alert,"successFilledBg",k("palette-success-main")),nt(_.Alert,"warningFilledBg",k("palette-warning-main")),nt(_.Alert,"errorFilledColor",Wc(()=>_.getContrastText(_.error.main))),nt(_.Alert,"infoFilledColor",Wc(()=>_.getContrastText(_.info.main))),nt(_.Alert,"successFilledColor",Wc(()=>_.getContrastText(_.success.main))),nt(_.Alert,"warningFilledColor",Wc(()=>_.getContrastText(_.warning.main))),nt(_.Alert,"errorStandardBg",Ln(_.error.light,.9)),nt(_.Alert,"infoStandardBg",Ln(_.info.light,.9)),nt(_.Alert,"successStandardBg",Ln(_.success.light,.9)),nt(_.Alert,"warningStandardBg",Ln(_.warning.light,.9)),nt(_.Alert,"errorIconColor",k("palette-error-main")),nt(_.Alert,"infoIconColor",k("palette-info-main")),nt(_.Alert,"successIconColor",k("palette-success-main")),nt(_.Alert,"warningIconColor",k("palette-warning-main")),nt(_.AppBar,"defaultBg",k("palette-grey-100")),nt(_.Avatar,"defaultBg",k("palette-grey-400")),nt(_.Button,"inheritContainedBg",k("palette-grey-300")),nt(_.Button,"inheritContainedHoverBg",k("palette-grey-A100")),nt(_.Chip,"defaultBorder",k("palette-grey-400")),nt(_.Chip,"defaultAvatarColor",k("palette-grey-700")),nt(_.Chip,"defaultIconColor",k("palette-grey-700")),nt(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),nt(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),nt(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),nt(_.LinearProgress,"primaryBg",Ln(_.primary.main,.62)),nt(_.LinearProgress,"secondaryBg",Ln(_.secondary.main,.62)),nt(_.LinearProgress,"errorBg",Ln(_.error.main,.62)),nt(_.LinearProgress,"infoBg",Ln(_.info.main,.62)),nt(_.LinearProgress,"successBg",Ln(_.success.main,.62)),nt(_.LinearProgress,"warningBg",Ln(_.warning.main,.62)),nt(_.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),nt(_.Slider,"primaryTrack",Ln(_.primary.main,.62)),nt(_.Slider,"secondaryTrack",Ln(_.secondary.main,.62)),nt(_.Slider,"errorTrack",Ln(_.error.main,.62)),nt(_.Slider,"infoTrack",Ln(_.info.main,.62)),nt(_.Slider,"successTrack",Ln(_.success.main,.62)),nt(_.Slider,"warningTrack",Ln(_.warning.main,.62));const I=E2(_.background.default,.8);nt(_.SnackbarContent,"bg",I),nt(_.SnackbarContent,"color",Wc(()=>_.getContrastText(I))),nt(_.SpeedDialAction,"fabHoverBg",E2(_.background.paper,.15)),nt(_.StepConnector,"border",k("palette-grey-400")),nt(_.StepContent,"border",k("palette-grey-400")),nt(_.Switch,"defaultColor",k("palette-common-white")),nt(_.Switch,"defaultDisabledColor",k("palette-grey-100")),nt(_.Switch,"primaryDisabledColor",Ln(_.primary.main,.62)),nt(_.Switch,"secondaryDisabledColor",Ln(_.secondary.main,.62)),nt(_.Switch,"errorDisabledColor",Ln(_.error.main,.62)),nt(_.Switch,"infoDisabledColor",Ln(_.info.main,.62)),nt(_.Switch,"successDisabledColor",Ln(_.success.main,.62)),nt(_.Switch,"warningDisabledColor",Ln(_.warning.main,.62)),nt(_.TableCell,"border",Ln($2(_.divider,1),.88)),nt(_.Tooltip,"bg",$2(_.grey[700],.92))}if(_.mode==="dark"){nt(_.Alert,"errorColor",Ln(_.error.light,.6)),nt(_.Alert,"infoColor",Ln(_.info.light,.6)),nt(_.Alert,"successColor",Ln(_.success.light,.6)),nt(_.Alert,"warningColor",Ln(_.warning.light,.6)),nt(_.Alert,"errorFilledBg",k("palette-error-dark")),nt(_.Alert,"infoFilledBg",k("palette-info-dark")),nt(_.Alert,"successFilledBg",k("palette-success-dark")),nt(_.Alert,"warningFilledBg",k("palette-warning-dark")),nt(_.Alert,"errorFilledColor",Wc(()=>_.getContrastText(_.error.dark))),nt(_.Alert,"infoFilledColor",Wc(()=>_.getContrastText(_.info.dark))),nt(_.Alert,"successFilledColor",Wc(()=>_.getContrastText(_.success.dark))),nt(_.Alert,"warningFilledColor",Wc(()=>_.getContrastText(_.warning.dark))),nt(_.Alert,"errorStandardBg",jn(_.error.light,.9)),nt(_.Alert,"infoStandardBg",jn(_.info.light,.9)),nt(_.Alert,"successStandardBg",jn(_.success.light,.9)),nt(_.Alert,"warningStandardBg",jn(_.warning.light,.9)),nt(_.Alert,"errorIconColor",k("palette-error-main")),nt(_.Alert,"infoIconColor",k("palette-info-main")),nt(_.Alert,"successIconColor",k("palette-success-main")),nt(_.Alert,"warningIconColor",k("palette-warning-main")),nt(_.AppBar,"defaultBg",k("palette-grey-900")),nt(_.AppBar,"darkBg",k("palette-background-paper")),nt(_.AppBar,"darkColor",k("palette-text-primary")),nt(_.Avatar,"defaultBg",k("palette-grey-600")),nt(_.Button,"inheritContainedBg",k("palette-grey-800")),nt(_.Button,"inheritContainedHoverBg",k("palette-grey-700")),nt(_.Chip,"defaultBorder",k("palette-grey-700")),nt(_.Chip,"defaultAvatarColor",k("palette-grey-300")),nt(_.Chip,"defaultIconColor",k("palette-grey-300")),nt(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),nt(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),nt(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),nt(_.LinearProgress,"primaryBg",jn(_.primary.main,.5)),nt(_.LinearProgress,"secondaryBg",jn(_.secondary.main,.5)),nt(_.LinearProgress,"errorBg",jn(_.error.main,.5)),nt(_.LinearProgress,"infoBg",jn(_.info.main,.5)),nt(_.LinearProgress,"successBg",jn(_.success.main,.5)),nt(_.LinearProgress,"warningBg",jn(_.warning.main,.5)),nt(_.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),nt(_.Slider,"primaryTrack",jn(_.primary.main,.5)),nt(_.Slider,"secondaryTrack",jn(_.secondary.main,.5)),nt(_.Slider,"errorTrack",jn(_.error.main,.5)),nt(_.Slider,"infoTrack",jn(_.info.main,.5)),nt(_.Slider,"successTrack",jn(_.success.main,.5)),nt(_.Slider,"warningTrack",jn(_.warning.main,.5));const I=E2(_.background.default,.98);nt(_.SnackbarContent,"bg",I),nt(_.SnackbarContent,"color",Wc(()=>_.getContrastText(I))),nt(_.SpeedDialAction,"fabHoverBg",E2(_.background.paper,.15)),nt(_.StepConnector,"border",k("palette-grey-600")),nt(_.StepContent,"border",k("palette-grey-600")),nt(_.Switch,"defaultColor",k("palette-grey-300")),nt(_.Switch,"defaultDisabledColor",k("palette-grey-600")),nt(_.Switch,"primaryDisabledColor",jn(_.primary.main,.55)),nt(_.Switch,"secondaryDisabledColor",jn(_.secondary.main,.55)),nt(_.Switch,"errorDisabledColor",jn(_.error.main,.55)),nt(_.Switch,"infoDisabledColor",jn(_.info.main,.55)),nt(_.Switch,"successDisabledColor",jn(_.success.main,.55)),nt(_.Switch,"warningDisabledColor",jn(_.warning.main,.55)),nt(_.TableCell,"border",jn($2(_.divider,1),.68)),nt(_.Tooltip,"bg",$2(_.grey[700],.92))}uf(_.background,"default"),uf(_.background,"paper"),uf(_.common,"background"),uf(_.common,"onBackground"),uf(_,"divider"),Object.keys(_).forEach(I=>{const N=_[I];N&&typeof N=="object"&&(N.main&&nt(_[I],"mainChannel",Hw(Ww(N.main))),N.light&&nt(_[I],"lightChannel",Hw(Ww(N.light))),N.dark&&nt(_[I],"darkChannel",Hw(Ww(N.dark))),N.contrastText&&nt(_[I],"contrastTextChannel",Hw(Ww(N.contrastText))),I==="text"&&(uf(_[I],"primary"),uf(_[I],"secondary")),I==="action"&&(N.active&&uf(_[I],"active"),N.selected&&uf(_[I],"selected")))})}),S=t.reduce((E,_)=>Pd(E,_),S);const w={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:Zit(S)},{vars:$,generateThemeVars:C,generateStyleSheets:x}=hit(S,w);return S.vars=$,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([E,_])=>{S[E]=_}),S.generateThemeVars=C,S.generateStyleSheets=x,S.generateSpacing=function(){return Ive(l.spacing,RV(this))},S.getColorSchemeSelector=vit(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=i,S.unstable_sxConfig={...IE,...l==null?void 0:l.unstable_sxConfig},S.unstable_sx=function(_){return RE({sx:_,theme:this})},S.toRuntimeSource=est,S}function wJ(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:KV({...r===!0?{}:r.palette,mode:t})})}function Ave(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=e,s=a||"light",l=o==null?void 0:o[s],u={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return SL(e,...t);let c=r;"palette"in e||u[s]&&(u[s]!==!0?c=u[s].palette:s==="dark"&&(c={mode:"dark"}));const d=SL({...e,palette:c},...t);return d.defaultColorScheme=s,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},wJ(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},wJ(d,"light",u.light)),d}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),ost({...i,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const ast=Ave(),oN=ast,AE="$$material";function aN(){const e=rN(oN);return e[AE]||e}function ist(e){return T.jsx(Uat,{...e,defaultTheme:oN,themeId:AE})}function iN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const sst=e=>iN(e)&&e!=="classes",Ki=sst,lst=Qat({themeId:AE,defaultTheme:oN,rootShouldForwardProp:Ki}),kt=lst;function GV(e){return function(r){return T.jsx(ist,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function ust(){return OV}const CJ={theme:void 0};function Wr(e){let t,r;return n=>{let o=t;return(o===void 0||n.theme!==r)&&(CJ.theme=n.theme,o=e(CJ),t=o,r=n.theme),o}}function sn(e){return dit(e)}function cst(e){return qr("MuiSvgIcon",e)}Dr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dst=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Gt(t)}`,`fontSize${Gt(r)}`]};return Jr(o,cst,n)},fst=kt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Gt(r.color)}`],t[`fontSize${Gt(r.fontSize)}`]]}})(Wr(({theme:e})=>{var t,r,n,o,a,i,s,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:v=>!v.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,v])=>v&&v.main).map(([v])=>{var b,g;return{props:{color:v},style:{color:(g=(b=(e.vars??e).palette)==null?void 0:b[v])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),CL=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=n,h=m.isValidElement(o)&&o.type==="svg",v={...n,color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},b={};c||(b.viewBox=f);const g=dst(v);return T.jsxs(fst,{as:s,className:Qt(g.root,a),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...b,...p,...h&&o.props,ownerState:v,children:[h?o.props.children:o,d?T.jsx("title",{children:d}):null]})});CL&&(CL.muiName="SvgIcon");const xJ=CL;function p0(e,t){function r(n,o){return T.jsx(xJ,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return r.muiName=xJ.muiName,m.memo(m.forwardRef(r))}const pst={configure:e=>{PV.configure(e)}},mst=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Gt,createChainedFunction:yI,createSvgIcon:p0,debounce:_V,deprecatedPropType:Mnt,isMuiElement:gC,ownerDocument:Va,ownerWindow:wh,requirePropFactory:Bnt,setRef:SI,unstable_ClassNameGenerator:pst,unstable_memoTheme:Wr,unstable_useEnhancedEffect:Od,unstable_useId:zO,unsupportedProp:znt,useControlled:jy,useEventCallback:fd,useForkRef:ta},Symbol.toStringTag,{value:"Module"})),hst=$F(mst);var $J;function oS(){return $J||($J=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hst}(h5)),h5}var vst=Fo;Object.defineProperty(EV,"__esModule",{value:!0});var Mve=EV.default=void 0,gst=vst(oS()),bst=T;Mve=EV.default=(0,gst.default)((0,bst.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");class kI{constructor(){A0(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new kI}static use(){const t=tve(kI.create).current,[r,n]=m.useState(!1);return t.shouldMount=r,t.setShouldMount=n,m.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=Sst(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function yst(){return kI.use()}function Sst(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function wst(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:u}=e,[c,d]=m.useState(!1),f=Qt(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),p={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},h=Qt(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&d(!0),m.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),T.jsx("span",{className:f,style:p,children:T.jsx("span",{className:h})})}const Cst=Dr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nu=Cst,xL=550,xst=80,$st=nS` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Est=nS` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,_st=nS` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,kst=kt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Pst=kt(wst,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${nu.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${$st}; + animation-duration: ${xL}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${nu.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${nu.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${nu.childLeaving} { + opacity: 0; + animation-name: ${Est}; + animation-duration: ${xL}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${nu.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${_st}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,Tst=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=n,[l,u]=m.useState([]),c=m.useRef(0),d=m.useRef(null);m.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=m.useRef(!1),p=rve(),h=m.useRef(null),v=m.useRef(null),b=m.useCallback(w=>{const{pulsate:$,rippleX:C,rippleY:x,rippleSize:E,cb:_}=w;u(k=>[...k,T.jsx(Pst,{classes:{ripple:Qt(a.ripple,nu.ripple),rippleVisible:Qt(a.rippleVisible,nu.rippleVisible),ripplePulsate:Qt(a.ripplePulsate,nu.ripplePulsate),child:Qt(a.child,nu.child),childLeaving:Qt(a.childLeaving,nu.childLeaving),childPulsate:Qt(a.childPulsate,nu.childPulsate)},timeout:xL,pulsate:$,rippleX:C,rippleY:x,rippleSize:E},c.current)]),c.current+=1,d.current=_},[a]),g=m.useCallback((w={},$={},C=()=>{})=>{const{pulsate:x=!1,center:E=o||$.pulsate,fakeElement:_=!1}=$;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const k=_?null:v.current,I=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,z,O;if(E||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)N=Math.round(I.width/2),z=Math.round(I.height/2);else{const{clientX:A,clientY:M}=w.touches&&w.touches.length>0?w.touches[0]:w;N=Math.round(A-I.left),z=Math.round(M-I.top)}if(E)O=Math.sqrt((2*I.width**2+I.height**2)/3),O%2===0&&(O+=1);else{const A=Math.max(Math.abs((k?k.clientWidth:0)-N),N)*2+2,M=Math.max(Math.abs((k?k.clientHeight:0)-z),z)*2+2;O=Math.sqrt(A**2+M**2)}w!=null&&w.touches?h.current===null&&(h.current=()=>{b({pulsate:x,rippleX:N,rippleY:z,rippleSize:O,cb:C})},p.start(xst,()=>{h.current&&(h.current(),h.current=null)})):b({pulsate:x,rippleX:N,rippleY:z,rippleSize:O,cb:C})},[o,b,p]),y=m.useCallback(()=>{g({},{pulsate:!0})},[g]),S=m.useCallback((w,$)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{S(w,$)});return}h.current=null,u(C=>C.length>0?C.slice(1):C),d.current=$},[p]);return m.useImperativeHandle(r,()=>({pulsate:y,start:g,stop:S}),[y,g,S]),T.jsx(kst,{className:Qt(nu.root,a.root,i),ref:v,...s,children:T.jsx(Che,{component:null,exit:!0,children:l})})}),Ist=Tst;function Rst(e){return qr("MuiButtonBase",e)}const Fst=Dr("MuiButtonBase",["root","disabled","focusVisible"]),Ost=Fst,Nst=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Jr({root:["root",t&&"disabled",r&&"focusVisible"]},Rst,o);return r&&n&&(i.root+=` ${n}`),i},Dst=kt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ost.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ast=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:v,onClick:b,onContextMenu:g,onDragLeave:y,onFocus:S,onFocusVisible:w,onKeyDown:$,onKeyUp:C,onMouseDown:x,onMouseLeave:E,onMouseUp:_,onTouchEnd:k,onTouchMove:I,onTouchStart:N,tabIndex:z=0,TouchRippleProps:O,touchRippleRef:A,type:M,...L}=n,j=m.useRef(null),H=yst(),B=ta(H.ref,A),[F,V]=m.useState(!1);u&&F&&V(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{V(!0),j.current.focus()}}),[]);const D=H.shouldMount&&!c&&!u;m.useEffect(()=>{F&&f&&!c&&H.pulsate()},[c,f,F,H]);function P(ee,me,Re=d){return fd(je=>(me&&me(je),Re||H[ee](je),!0))}const R=P("start",x),W=P("stop",g),U=P("stop",y),q=P("stop",_),J=P("stop",ee=>{F&&ee.preventDefault(),E&&E(ee)}),Z=P("start",N),Q=P("stop",k),oe=P("stop",I),ie=P("stop",ee=>{wI(ee.target)||V(!1),v&&v(ee)},!1),te=fd(ee=>{j.current||(j.current=ee.currentTarget),wI(ee.target)&&(V(!0),w&&w(ee)),S&&S(ee)}),ae=()=>{const ee=j.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},fe=fd(ee=>{f&&!ee.repeat&&F&&ee.key===" "&&H.stop(ee,()=>{H.start(ee)}),ee.target===ee.currentTarget&&ae()&&ee.key===" "&&ee.preventDefault(),$&&$(ee),ee.target===ee.currentTarget&&ae()&&ee.key==="Enter"&&!u&&(ee.preventDefault(),b&&b(ee))}),ve=fd(ee=>{f&&ee.key===" "&&F&&!ee.defaultPrevented&&H.stop(ee,()=>{H.pulsate(ee)}),C&&C(ee),b&&ee.target===ee.currentTarget&&ae()&&ee.key===" "&&!ee.defaultPrevented&&b(ee)});let Se=l;Se==="button"&&(L.href||L.to)&&(Se=h);const se={};Se==="button"?(se.type=M===void 0?"button":M,se.disabled=u):(!L.href&&!L.to&&(se.role="button"),u&&(se["aria-disabled"]=u));const pe=ta(r,j),ge={...n,centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:z,focusVisible:F},de=Nst(ge);return T.jsxs(Dst,{as:Se,className:Qt(de.root,s),ownerState:ge,onBlur:ie,onClick:b,onContextMenu:W,onFocus:te,onKeyDown:fe,onKeyUp:ve,onMouseDown:R,onMouseLeave:J,onMouseUp:q,onDragLeave:U,onTouchEnd:Q,onTouchMove:oe,onTouchStart:Z,ref:pe,tabIndex:u?-1:z,type:M,...se,...L,children:[i,D?T.jsx(Ist,{ref:B,center:a,...O}):null]})}),sN=Ast;function Mst(e){return qr("MuiIconButton",e)}const Bst=Dr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),jst=Bst,Lst=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${Gt(n)}`,o&&`edge${Gt(o)}`,`size${Gt(a)}`]};return Jr(i,Mst,t)},zst=kt(sN,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Gt(r.color)}`],r.edge&&t[`edge${Gt(r.edge)}`],t[`size${Gt(r.size)}`]]}})(Wr(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:{disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Wr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo((e.vars||e).palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${jst.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Vst=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,disableRipple:c=!1,size:d="medium",...f}=n,p={...n,edge:o,color:s,disabled:l,disableFocusRipple:u,disableRipple:c,size:d},h=Lst(p);return T.jsx(zst,{className:Qt(h.root,i),centerRipple:!0,focusRipple:!u,disabled:l,disableRipple:c,ref:r,...f,ownerState:p,children:a})}),Bve=Vst;function Hst({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return T.jsx(Bve,{title:n($t.AddItemButton),...r,color:"primary",children:T.jsx(Mve,{})})}function jve({props:e,name:t}){return rit({props:e,name:t,defaultTheme:oN,themeId:AE})}const Wst=Dr("MuiBox",["root"]),qst=Wst,Ust=Ave(),Kst=Gat({themeId:AE,defaultTheme:Ust,defaultClassName:qst.root,generateClassName:PV.generate}),Rg=Kst,Gst=m.createContext(),EJ=Gst;function Yst(e){return qr("MuiGrid",e)}const Xst=[0,1,2,3,4,5,6,7,8,9,10],Qst=["column-reverse","column","row-reverse","row"],Zst=["nowrap","wrap-reverse","wrap"],nw=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ux=Dr("MuiGrid",["root","container","item","zeroMinWidth",...Xst.map(e=>`spacing-xs-${e}`),...Qst.map(e=>`direction-xs-${e}`),...Zst.map(e=>`wrap-xs-${e}`),...nw.map(e=>`grid-xs-${e}`),...nw.map(e=>`grid-sm-${e}`),...nw.map(e=>`grid-md-${e}`),...nw.map(e=>`grid-lg-${e}`),...nw.map(e=>`grid-xl-${e}`)]);function Jst({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(r===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=HO({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return n;const l=`${Math.round(r/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${c})`;u={flexBasis:d,maxWidth:d}}}a={flexBasis:l,flexGrow:0,maxWidth:l,...u}}return e.breakpoints.values[o]===0?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n},{})}function elt({theme:e,ownerState:t}){const r=HO({values:t.direction,breakpoints:e.breakpoints.values});return Eu({theme:e},r,n=>{const o={flexDirection:n};return n.startsWith("column")&&(o[`& > .${Ux.item}`]={maxWidth:"none"}),o})}function Lve({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(o=>{r===""&&t[o]!==0&&(r=o)});const n=Object.keys(e).sort((o,a)=>e[o]-e[a]);return n.slice(0,n.indexOf(r))}function tlt({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&n!==0){const a=HO({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=Lve({breakpoints:e.breakpoints.values,values:a})),o=Eu({theme:e},a,(s,l)=>{const u=e.spacing(s);return u!=="0px"?{marginTop:e.spacing(-s),[`& > .${Ux.item}`]:{paddingTop:u}}:i!=null&&i.includes(l)?{}:{marginTop:0,[`& > .${Ux.item}`]:{paddingTop:0}}})}return o}function rlt({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&n!==0){const a=HO({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=Lve({breakpoints:e.breakpoints.values,values:a})),o=Eu({theme:e},a,(s,l)=>{const u=e.spacing(s);if(u!=="0px"){const c=e.spacing(-s);return{width:`calc(100% + ${u})`,marginLeft:c,[`& > .${Ux.item}`]:{paddingLeft:u}}}return i!=null&&i.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Ux.item}`]:{paddingLeft:0}}})}return o}function nlt(e,t,r={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&n.push(r[`spacing-${o}-${String(a)}`])}),n}const olt=kt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=nlt(i,u,t));const d=[];return u.forEach(f=>{const p=r[f];p&&d.push(t[`grid-${f}-${String(p)}`])}),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),elt,tlt,rlt,Jst);function alt(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(n=>{const o=e[n];if(Number(o)>0){const a=`spacing-${n}-${String(o)}`;r.push(a)}}),r}const ilt=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=alt(a,l));const c=[];l.forEach(f=>{const p=e[f];p&&c.push(`grid-${f}-${String(p)}`)});const d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...c]};return Jr(d,Yst,t)},slt=m.forwardRef(function(t,r){const n=jve({props:t,name:"MuiGrid"}),{breakpoints:o}=aN(),a=OV(n),{className:i,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:h=0,wrap:v="wrap",zeroMinWidth:b=!1,...g}=a,y=p||h,S=l||h,w=m.useContext(EJ),$=c?s||12:w,C={},x={...g};o.keys.forEach(k=>{g[k]!=null&&(C[k]=g[k],delete x[k])});const E={...a,columns:$,container:c,direction:d,item:f,rowSpacing:y,columnSpacing:S,wrap:v,zeroMinWidth:b,spacing:h,...C,breakpoints:o.keys},_=ilt(E);return T.jsx(EJ.Provider,{value:$,children:T.jsx(olt,{ownerState:E,className:Qt(_.root,i),as:u,ref:r,...x})})}),yl=slt;function llt(e){return qr("MuiPaper",e)}Dr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ult=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Jr(a,llt,o)},clt=kt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Wr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),dlt=m.forwardRef(function(t,r){var p;const n=sn({props:t,name:"MuiPaper"}),o=aN(),{className:a,component:i="div",elevation:s=1,square:l=!1,variant:u="elevation",...c}=n,d={...n,component:i,elevation:s,square:l,variant:u},f=ult(d);return T.jsx(clt,{as:i,ownerState:d,className:Qt(f.root,a),ref:r,...c,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(p=o.vars.overlays)==null?void 0:p[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Jo("#fff",wL(s))}, ${Jo("#fff",wL(s))})`}},...c.style}})}),lN=dlt;function flt(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,{CopyButton:v,MoveDownButton:b,MoveUpButton:g,RemoveButton:y}=h.templates.ButtonTemplates,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return T.jsxs(yl,{container:!0,alignItems:"center",children:[T.jsx(yl,{item:!0,xs:!0,style:{overflow:"auto"},children:T.jsx(Rg,{mb:2,children:T.jsx(lN,{elevation:2,children:T.jsx(Rg,{p:2,children:t})})})}),n&&T.jsxs(yl,{item:!0,children:[(i||a)&&T.jsx(g,{style:S,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&T.jsx(b,{style:S,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&T.jsx(v,{style:S,disabled:r||f,onClick:u(l),uiSchema:p,registry:h}),s&&T.jsx(y,{style:S,disabled:r||f,onClick:c(l),uiSchema:p,registry:h})]})]})}function plt(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:u,schema:c,title:d}=e,f=At(o),p=Ct("ArrayFieldDescriptionTemplate",l,f),h=Ct("ArrayFieldItemTemplate",l,f),v=Ct("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:b}}=l.templates;return T.jsx(lN,{elevation:2,children:T.jsxs(Rg,{p:2,children:[T.jsx(v,{idSchema:n,title:f.title||d,schema:c,uiSchema:o,required:u,registry:l}),T.jsx(p,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:o,registry:l}),a&&a.map(({key:g,...y})=>T.jsx(h,{...y},g)),t&&T.jsx(yl,{container:!0,justifyContent:"flex-end",children:T.jsx(yl,{item:!0,children:T.jsx(Rg,{mt:2,children:T.jsx(b,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]})})}function _2(e){return parseInt(e,10)||0}const mlt={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hlt(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const vlt=m.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s,...l}=t,{current:u}=m.useRef(s!=null),c=m.useRef(null),d=ta(r,c),f=m.useRef(null),p=m.useRef(null),h=m.useCallback(()=>{const g=c.current,S=wh(g).getComputedStyle(g);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const w=p.current;w.style.width=S.width,w.value=g.value||t.placeholder||"x",w.value.slice(-1)===` +`&&(w.value+=" ");const $=S.boxSizing,C=_2(S.paddingBottom)+_2(S.paddingTop),x=_2(S.borderBottomWidth)+_2(S.borderTopWidth),E=w.scrollHeight;w.value="x";const _=w.scrollHeight;let k=E;a&&(k=Math.max(Number(a)*_,k)),o&&(k=Math.min(Number(o)*_,k)),k=Math.max(k,_);const I=k+($==="border-box"?C+x:0),N=Math.abs(k-E)<=1;return{outerHeightStyle:I,overflowing:N}},[o,a,t.placeholder]),v=m.useCallback(()=>{const g=h();if(hlt(g))return;const y=g.outerHeightStyle,S=c.current;f.current!==y&&(f.current=y,S.style.height=`${y}px`),S.style.overflow=g.overflowing?"hidden":""},[h]);Od(()=>{const g=()=>{v()};let y;const S=_V(g),w=c.current,$=wh(w);$.addEventListener("resize",S);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(g),C.observe(w)),()=>{S.clear(),cancelAnimationFrame(y),$.removeEventListener("resize",S),C&&C.disconnect()}},[h,v]),Od(()=>{v()});const b=g=>{u||v(),n&&n(g)};return T.jsxs(m.Fragment,{children:[T.jsx("textarea",{value:s,onChange:b,ref:d,rows:a,style:i,...l}),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...mlt.shadow,...i,paddingTop:0,paddingBottom:0}})]})}),glt=vlt;function Nf(e){return typeof e=="string"}function Kh({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const blt=m.createContext(void 0),YV=blt;function Fp(){return m.useContext(YV)}function _J(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function PI(e,t=!1){return e&&(_J(e.value)&&e.value!==""||t&&_J(e.defaultValue)&&e.defaultValue!=="")}function ylt(e){return e.startAdornment}function Slt(e){return qr("MuiInputBase",e)}const wlt=Dr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Hy=wlt;var kJ;const uN=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Gt(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},cN=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Clt=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e,v={root:["root",`color${Gt(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&f!=="medium"&&`size${Gt(f)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",h==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Jr(v,Slt,t)},dN=kt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:uN})(Wr(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Hy.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),fN=kt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:cN})(Wr(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Hy.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Hy.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),PJ=GV({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xlt=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:s,color:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,error:v,fullWidth:b=!1,id:g,inputComponent:y="input",inputProps:S={},inputRef:w,margin:$,maxRows:C,minRows:x,multiline:E=!1,name:_,onBlur:k,onChange:I,onClick:N,onFocus:z,onKeyDown:O,onKeyUp:A,placeholder:M,readOnly:L,renderSuffix:j,rows:H,size:B,slotProps:F={},slots:V={},startAdornment:D,type:P="text",value:R,...W}=n,U=S.value!=null?S.value:R,{current:q}=m.useRef(U!=null),J=m.useRef(),Z=m.useCallback(Pe=>{},[]),Q=ta(J,w,S.ref,Z),[oe,ie]=m.useState(!1),te=Fp(),ae=Kh({props:n,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=te?te.focused:oe,m.useEffect(()=>{!te&&f&&oe&&(ie(!1),k&&k())},[te,f,oe,k]);const fe=te&&te.onFilled,ve=te&&te.onEmpty,Se=m.useCallback(Pe=>{PI(Pe)?fe&&fe():ve&&ve()},[fe,ve]);Od(()=>{q&&Se({value:U})},[U,Se,q]);const se=Pe=>{z&&z(Pe),S.onFocus&&S.onFocus(Pe),te&&te.onFocus?te.onFocus(Pe):ie(!0)},pe=Pe=>{k&&k(Pe),S.onBlur&&S.onBlur(Pe),te&&te.onBlur?te.onBlur(Pe):ie(!1)},ge=(Pe,...st)=>{if(!q){const _e=Pe.target||J.current;if(_e==null)throw new Error(Tg(1));Se({value:_e.value})}S.onChange&&S.onChange(Pe,...st),I&&I(Pe,...st)};m.useEffect(()=>{Se(J.current)},[]);const de=Pe=>{J.current&&Pe.currentTarget===Pe.target&&J.current.focus(),N&&N(Pe)};let ee=y,me=S;E&&ee==="input"&&(H?me={type:void 0,minRows:H,maxRows:H,...me}:me={type:void 0,maxRows:C,minRows:x,...me},ee=glt);const Re=Pe=>{Se(Pe.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};m.useEffect(()=>{te&&te.setAdornedStart(!!D)},[te,D]);const je={...n,color:ae.color||"primary",disabled:ae.disabled,endAdornment:h,error:ae.error,focused:ae.focused,formControl:te,fullWidth:b,hiddenLabel:ae.hiddenLabel,multiline:E,size:ae.size,startAdornment:D,type:P},ze=Clt(je),Le=V.root||u.Root||dN,$e=F.root||c.root||{},Je=V.input||u.Input||fN;return me={...me,...F.input??c.input},T.jsxs(m.Fragment,{children:[!p&&typeof PJ=="function"&&(kJ||(kJ=T.jsx(PJ,{}))),T.jsxs(Le,{...$e,ref:r,onClick:de,...W,...!Nf(Le)&&{ownerState:{...je,...$e.ownerState}},className:Qt(ze.root,$e.className,s,L&&"MuiInputBase-readOnly"),children:[D,T.jsx(YV.Provider,{value:null,children:T.jsx(Je,{"aria-invalid":ae.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:d,disabled:ae.disabled,id:g,onAnimationStart:Re,name:_,placeholder:M,readOnly:L,required:ae.required,rows:H,value:U,onKeyDown:O,onKeyUp:A,type:P,...me,...!Nf(Je)&&{as:ee,ownerState:{...je,...me.ownerState}},ref:Q,className:Qt(ze.input,me.className,L&&"MuiInputBase-readOnly"),onBlur:pe,onChange:ge,onFocus:se})}),h,j?j({...ae,startAdornment:D}):null]})]})}),XV=xlt;function $lt(e){return qr("MuiInput",e)}const Elt={...Hy,...Dr("MuiInput",["root","underline","input"])},ow=Elt,_lt=e=>{const{classes:t,disableUnderline:r}=e,o=Jr({root:["root",!r&&"underline"],input:["input"]},$lt,t);return{...t,...o}},klt=kt(dN,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...uN(e,t),!r.disableUnderline&&t.underline]}})(Wr(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ow.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ow.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ow.disabled}, .${ow.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ow.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Plt=kt(fN,{name:"MuiInput",slot:"Input",overridesResolver:cN})({}),$L=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:s=!1,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:f="text",...p}=n,h=_lt(n),b={root:{ownerState:{disableUnderline:o}}},g=c??i?Pd(c??i,b):b,y=d.root??a.Root??klt,S=d.input??a.Input??Plt;return T.jsx(XV,{slots:{root:y,input:S},slotProps:g,fullWidth:s,inputComponent:l,multiline:u,ref:r,type:f,...p,classes:h})});$L&&($L.muiName="Input");const zve=$L;function Tlt(e){return qr("MuiFilledInput",e)}const Ilt={...Hy,...Dr("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},lv=Ilt,Rlt=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:i,multiline:s}=e,l={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Gt(a)}`,i&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Jr(l,Tlt,t);return{...t,...u}},Flt=kt(dN,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...uN(e,t),!r.disableUnderline&&t.underline]}})(Wr(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${lv.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${lv.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lv.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lv.disabled}, .${lv.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${lv.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(([,i])=>i&&i.main).map(([i])=>{var s;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[i])==null?void 0:s.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:s})=>i.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Olt=kt(fN,{name:"MuiFilledInput",slot:"Input",overridesResolver:cN})(Wr(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),EL=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:s=!1,hiddenLabel:l,inputComponent:u="input",multiline:c=!1,slotProps:d,slots:f={},type:p="text",...h}=n,v={...n,disableUnderline:o,fullWidth:s,inputComponent:u,multiline:c,type:p},b=Rlt(n),g={root:{ownerState:v},input:{ownerState:v}},y=d??i?Pd(g,d??i):g,S=f.root??a.Root??Flt,w=f.input??a.Input??Olt;return T.jsx(XV,{slots:{root:S,input:w},componentsProps:y,fullWidth:s,inputComponent:u,multiline:c,ref:r,type:p,...h,classes:b})});EL&&(EL.muiName="Input");const Vve=EL;var TJ;const Nlt=kt("fieldset",{shouldForwardProp:Ki})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Dlt=kt("legend",{shouldForwardProp:Ki})(Wr(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Alt(e){const{children:t,classes:r,className:n,label:o,notched:a,...i}=e,s=o!=null&&o!=="",l={...e,notched:a,withLabel:s};return T.jsx(Nlt,{"aria-hidden":!0,className:n,ownerState:l,...i,children:T.jsx(Dlt,{ownerState:l,children:s?T.jsx("span",{children:o}):TJ||(TJ=T.jsx("span",{className:"notranslate",children:"​"}))})})}function Mlt(e){return qr("MuiOutlinedInput",e)}const Blt={...Hy,...Dr("MuiOutlinedInput",["root","notchedOutline","input"])},qc=Blt,jlt=e=>{const{classes:t}=e,n=Jr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Mlt,t);return{...t,...n}},Llt=kt(dN,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:uN})(Wr(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},[`&.${qc.focused} .${qc.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{[`&.${qc.focused} .${qc.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{"@media (hover: none)":{[`&:hover .${qc.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${qc.error} .${qc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qc.disabled} .${qc.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),zlt=kt(Alt,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Wr(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Vlt=kt(fN,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:cN})(Wr(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),_L=m.forwardRef(function(t,r){var n;const o=sn({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:c,slots:d={},type:f="text",...p}=o,h=jlt(o),v=Fp(),b=Kh({props:o,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...o,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:v,fullWidth:i,hiddenLabel:b.hiddenLabel,multiline:u,size:b.size,type:f},y=d.root??a.Root??Llt,S=d.input??a.Input??Vlt;return T.jsx(XV,{slots:{root:y,input:S},renderSuffix:w=>T.jsx(zlt,{ownerState:g,className:h.notchedOutline,label:l!=null&&l!==""&&b.required?n||(n=T.jsxs(m.Fragment,{children:[l," ","*"]})):l,notched:typeof c<"u"?c:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:i,inputComponent:s,multiline:u,ref:r,type:f,...p,classes:{...h,notchedOutline:null}})});_L&&(_L.muiName="Input");const Hve=_L;function Hlt(e){return qr("MuiFormLabel",e)}const Wlt=Dr("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),wC=Wlt,qlt=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${Gt(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Jr(l,Hlt,t)},Ult=kt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Wr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{[`&.${wC.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${wC.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wC.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Klt=kt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Wr(({theme:e})=>({[`&.${wC.error}`]:{color:(e.vars||e).palette.error.main}}))),Glt=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:s="label",disabled:l,error:u,filled:c,focused:d,required:f,...p}=n,h=Fp(),v=Kh({props:n,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),b={...n,color:v.color||"primary",component:s,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},g=qlt(b);return T.jsxs(Ult,{as:s,ownerState:b,className:Qt(g.root,a),ref:r,...p,children:[o,v.required&&T.jsxs(Klt,{ownerState:b,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]})}),pN=Glt;function Ylt(e){return qr("MuiInputLabel",e)}Dr("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Xlt=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${Gt(n)}`,i],asterisk:[s&&"asterisk"]},u=Jr(l,Ylt,t);return{...t,...u}},Qlt=kt(pN,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${wC.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Wr(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Zlt=m.forwardRef(function(t,r){const n=sn({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:i,variant:s,className:l,...u}=n,c=Fp();let d=i;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const f=Kh({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),p={...n,disableAnimation:o,formControl:c,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},h=Xlt(p);return T.jsx(Qlt,{"data-shrink":d,ref:r,className:Qt(h.root,l),...u,ownerState:p,classes:h})}),Jlt=Zlt;function eut(e){return qr("MuiFormControl",e)}Dr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const tut=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${Gt(r)}`,n&&"fullWidth"]};return Jr(o,eut,t)},rut=kt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${Gt(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),nut=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:v="medium",variant:b="outlined",...g}=n,y={...n,color:i,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:v,variant:b},S=tut(y),[w,$]=m.useState(()=>{let z=!1;return o&&m.Children.forEach(o,O=>{if(!gC(O,["Input","Select"]))return;const A=gC(O,["Select"])?O.props.input:O;A&&ylt(A.props)&&(z=!0)}),z}),[C,x]=m.useState(()=>{let z=!1;return o&&m.Children.forEach(o,O=>{gC(O,["Input","Select"])&&(PI(O.props,!0)||PI(O.props.inputProps,!0))&&(z=!0)}),z}),[E,_]=m.useState(!1);l&&E&&_(!1);const k=c!==void 0&&!l?c:E;let I;const N=m.useMemo(()=>({adornedStart:w,setAdornedStart:$,color:i,disabled:l,error:u,filled:C,focused:k,fullWidth:d,hiddenLabel:f,size:v,onBlur:()=>{_(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{_(!0)},registerEffect:I,required:h,variant:b}),[w,i,l,u,C,k,d,f,I,h,v,b]);return T.jsx(YV.Provider,{value:N,children:T.jsx(rut,{as:s,ownerState:y,className:Qt(S.root,a),ref:r,...g,children:o})})}),Wve=nut;function out(e){return qr("MuiFormHelperText",e)}const aut=Dr("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),IJ=aut;var RJ;const iut=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e,u={root:["root",o&&"disabled",a&&"error",n&&`size${Gt(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Jr(u,out,t)},sut=kt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Gt(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Wr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${IJ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${IJ.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),lut=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:s,error:l,filled:u,focused:c,margin:d,required:f,variant:p,...h}=n,v=Fp(),b=Kh({props:n,muiFormControl:v,states:["variant","size","disabled","error","filled","focused","required"]}),g={...n,component:i,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete g.ownerState;const y=iut(g);return T.jsx(sut,{as:i,className:Qt(y.root,a),ref:r,...h,ownerState:g,children:o===" "?RJ||(RJ=T.jsx("span",{className:"notranslate",children:"​"})):o})}),QV=lut,uut=m.createContext({}),Df=uut;function cut(e){return qr("MuiList",e)}Dr("MuiList",["root","padding","dense","subheader"]);const dut=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Jr({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},cut,t)},fut=kt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),put=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:u,...c}=n,d=m.useMemo(()=>({dense:s}),[s]),f={...n,component:i,dense:s,disablePadding:l},p=dut(f);return T.jsx(Df.Provider,{value:d,children:T.jsxs(fut,{as:i,className:Qt(p.root,a),ref:r,ownerState:f,...c,children:[u,o]})})}),ZV=put;function w5(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function FJ(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function qve(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function aw(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!qve(s,a)||l)s=o(e,s,r);else return s.focus(),!0}return!1}const mut=m.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...f}=t,p=m.useRef(null),h=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Od(()=>{o&&p.current.focus()},[o]),m.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:w})=>{const $=!p.current.style.width;if(S.clientHeight{const w=p.current,$=S.key;if(S.ctrlKey||S.metaKey||S.altKey){c&&c(S);return}const x=Va(w).activeElement;if($==="ArrowDown")S.preventDefault(),aw(w,x,u,l,w5);else if($==="ArrowUp")S.preventDefault(),aw(w,x,u,l,FJ);else if($==="Home")S.preventDefault(),aw(w,null,u,l,w5);else if($==="End")S.preventDefault(),aw(w,null,u,l,FJ);else if($.length===1){const E=h.current,_=$.toLowerCase(),k=performance.now();E.keys.length>0&&(k-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&_!==E.keys[0]&&(E.repeating=!1)),E.lastTime=k,E.keys.push(_);const I=x&&!E.repeating&&qve(x,E);E.previousKeyMatched&&(I||aw(w,x,!1,l,w5,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},b=ta(p,r);let g=-1;m.Children.forEach(i,(S,w)=>{if(!m.isValidElement(S)){g===w&&(g+=1,g>=i.length&&(g=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||g===-1)&&(g=w),g===w&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=m.Children.map(i,(S,w)=>{if(w===g){const $={};return a&&($.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&($.tabIndex=0),m.cloneElement(S,$)}return S});return T.jsx(ZV,{role:"menu",ref:b,className:s,onKeyDown:v,tabIndex:o?0:-1,...f,children:y})}),hut=mut,Uve=e=>e.scrollTop;function TI(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function kL(e){return`scale(${e}, ${e**2})`}const vut={entering:{opacity:1,transform:kL(1)},entered:{opacity:1,transform:"none"}},C5=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),PL=m.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:h,timeout:v="auto",TransitionComponent:b=aV,...g}=t,y=rve(),S=m.useRef(),w=aN(),$=m.useRef(null),C=ta($,kE(a),r),x=A=>M=>{if(A){const L=$.current;M===void 0?A(L):A(L,M)}},E=x(c),_=x((A,M)=>{Uve(A);const{duration:L,delay:j,easing:H}=TI({style:h,timeout:v,easing:i},{mode:"enter"});let B;v==="auto"?(B=w.transitions.getAutoHeightDuration(A.clientHeight),S.current=B):B=L,A.style.transition=[w.transitions.create("opacity",{duration:B,delay:j}),w.transitions.create("transform",{duration:C5?B:B*.666,delay:j,easing:H})].join(","),l&&l(A,M)}),k=x(u),I=x(p),N=x(A=>{const{duration:M,delay:L,easing:j}=TI({style:h,timeout:v,easing:i},{mode:"exit"});let H;v==="auto"?(H=w.transitions.getAutoHeightDuration(A.clientHeight),S.current=H):H=M,A.style.transition=[w.transitions.create("opacity",{duration:H,delay:L}),w.transitions.create("transform",{duration:C5?H:H*.666,delay:C5?L:L||H*.333,easing:j})].join(","),A.style.opacity=0,A.style.transform=kL(.75),d&&d(A)}),z=x(f),O=A=>{v==="auto"&&y.start(S.current||0,A),n&&n($.current,A)};return T.jsx(b,{appear:o,in:s,nodeRef:$,onEnter:_,onEntered:k,onEntering:E,onExit:N,onExited:z,onExiting:I,addEndListener:O,timeout:v==="auto"?null:v,...g,children:(A,M)=>m.cloneElement(a,{style:{opacity:0,transform:kL(.75),visibility:A==="exited"&&!s?"hidden":void 0,...vut[A],...h,...a.props.style},ref:C,...M})})});PL&&(PL.muiSupportAuto=!0);const gut=PL;function but(e){const t=Va(e);return t.body===e?wh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function CC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function OJ(e){return parseInt(wh(e).getComputedStyle(e).paddingRight,10)||0}function yut(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function NJ(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!yut(i);s&&l&&CC(i,o)})}function x5(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Sut(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(but(n)){const i=nve(Va(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${OJ(n)+i}px`;const s=Va(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${OJ(l)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Va(n).body;else{const i=n.parentElement,s=wh(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function wut(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Cut{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&CC(t.modalRef,!1);const o=wut(r);NJ(r,t.mount,t.modalRef,o,!0);const a=x5(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=x5(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Sut(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=x5(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&CC(t.modalRef,r),NJ(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&CC(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const xut=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $ut(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Eut(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function _ut(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Eut(e))}function kut(e){const t=[],r=[];return Array.from(e.querySelectorAll(xut)).forEach((n,o)=>{const a=$ut(n);a===-1||!_ut(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function Put(){return!0}function Tut(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=kut,isEnabled:i=Put,open:s}=e,l=m.useRef(!1),u=m.useRef(null),c=m.useRef(null),d=m.useRef(null),f=m.useRef(null),p=m.useRef(!1),h=m.useRef(null),v=ta(kE(t),h),b=m.useRef(null);m.useEffect(()=>{!s||!h.current||(p.current=!r)},[r,s]),m.useEffect(()=>{if(!s||!h.current)return;const S=Va(h.current);return h.current.contains(S.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),m.useEffect(()=>{if(!s||!h.current)return;const S=Va(h.current),w=x=>{b.current=x,!(n||!i()||x.key!=="Tab")&&S.activeElement===h.current&&x.shiftKey&&(l.current=!0,c.current&&c.current.focus())},$=()=>{var _,k;const x=h.current;if(x===null)return;if(!S.hasFocus()||!i()||l.current){l.current=!1;return}if(x.contains(S.activeElement)||n&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let E=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(E=a(h.current)),E.length>0){const I=!!((_=b.current)!=null&&_.shiftKey&&((k=b.current)==null?void 0:k.key)==="Tab"),N=E[0],z=E[E.length-1];typeof N!="string"&&typeof z!="string"&&(I?z.focus():N.focus())}else x.focus()};S.addEventListener("focusin",$),S.addEventListener("keydown",w,!0);const C=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(C),S.removeEventListener("focusin",$),S.removeEventListener("keydown",w,!0)}},[r,n,o,i,s,a]);const g=S=>{d.current===null&&(d.current=S.relatedTarget),p.current=!0,f.current=S.target;const w=t.props.onFocus;w&&w(S)},y=S=>{d.current===null&&(d.current=S.relatedTarget),p.current=!0};return T.jsxs(m.Fragment,{children:[T.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:v,onFocus:g}),T.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function Iut(e){return typeof e=="function"?e():e}const Rut=m.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=m.useState(null),l=ta(kE(n),r);if(Od(()=>{a||s(Iut(o)||document.body)},[o,a]),Od(()=>{if(i&&!a)return SI(r,i),()=>{SI(r,null)}},[r,i,a]),a){if(m.isValidElement(n)){const u={ref:l};return m.cloneElement(n,u)}return T.jsx(m.Fragment,{children:n})}return T.jsx(m.Fragment,{children:i&&uo.createPortal(n,i)})}),Fut=Rut;function lu(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||n,h=lve(d[e],o),{props:{component:v,...b},internalRef:g}=sve({className:r,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),y=ta(g,h==null?void 0:h.ref,t.ref),S=i?i(b):{},w={...o,...S},$=e==="root"?v||u:v,C=ave(p,{...e==="root"&&!u&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...b,...$&&{as:$},ref:y},w);return Object.keys(S).forEach(x=>{delete C[x]}),[p,C]}const Out={entering:{opacity:1},entered:{opacity:1}},Nut=m.forwardRef(function(t,r){const n=aN(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:v,style:b,timeout:g=o,TransitionComponent:y=aV,...S}=t,w=m.useRef(null),$=ta(w,kE(s),r),C=O=>A=>{if(O){const M=w.current;A===void 0?O(M):O(M,A)}},x=C(f),E=C((O,A)=>{Uve(O);const M=TI({style:b,timeout:g,easing:l},{mode:"enter"});O.style.webkitTransition=n.transitions.create("opacity",M),O.style.transition=n.transitions.create("opacity",M),c&&c(O,A)}),_=C(d),k=C(v),I=C(O=>{const A=TI({style:b,timeout:g,easing:l},{mode:"exit"});O.style.webkitTransition=n.transitions.create("opacity",A),O.style.transition=n.transitions.create("opacity",A),p&&p(O)}),N=C(h),z=O=>{a&&a(w.current,O)};return T.jsx(y,{appear:i,in:u,nodeRef:w,onEnter:E,onEntered:_,onEntering:x,onExit:I,onExited:N,onExiting:k,addEndListener:z,timeout:g,...S,children:(O,A)=>m.cloneElement(s,{style:{opacity:0,visibility:O==="exited"&&!u?"hidden":void 0,...Out[O],...b,...s.props.style},ref:$,...A})})}),Dut=Nut;function Aut(e){return qr("MuiBackdrop",e)}Dr("MuiBackdrop",["root","invisible"]);const Mut=e=>{const{classes:t,invisible:r}=e;return Jr({root:["root",r&&"invisible"]},Aut,t)},But=kt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),jut=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:s=!1,open:l,components:u={},componentsProps:c={},slotProps:d={},slots:f={},TransitionComponent:p,transitionDuration:h,...v}=n,b={...n,component:i,invisible:s},g=Mut(b),y={transition:p,root:u.Root,...f},S={...c,...d},w={slots:y,slotProps:S},[$,C]=lu("root",{elementType:But,externalForwardedProps:w,className:Qt(g.root,a),ownerState:b}),[x,E]=lu("transition",{elementType:Dut,externalForwardedProps:w,ownerState:b});return delete E.ownerState,T.jsx(x,{in:l,timeout:h,...v,...E,children:T.jsx($,{"aria-hidden":!0,...C,classes:g,ref:r,children:o})})}),Lut=jut;function zut(e){return typeof e=="function"?e():e}function Vut(e){return e?e.props.hasOwnProperty("in"):!1}const Hut=new Cut;function Wut(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Hut,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,f=m.useRef({}),p=m.useRef(null),h=m.useRef(null),v=ta(h,d),[b,g]=m.useState(!c),y=Vut(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const w=()=>Va(p.current),$=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),C=()=>{o.mount($(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},x=fd(()=>{const M=zut(t)||w().body;o.add($(),M),h.current&&C()}),E=m.useCallback(()=>o.isTopModal($()),[o]),_=fd(M=>{p.current=M,M&&(c&&E()?C():h.current&&CC(h.current,S))}),k=m.useCallback(()=>{o.remove($(),S)},[S,o]);m.useEffect(()=>()=>{k()},[k]),m.useEffect(()=>{c?x():(!y||!a)&&k()},[c,k,y,a,x]);const I=M=>L=>{var j;(j=M.onKeyDown)==null||j.call(M,L),!(L.key!=="Escape"||L.which===229||!E())&&(r||(L.stopPropagation(),u&&u(L,"escapeKeyDown")))},N=M=>L=>{var j;(j=M.onClick)==null||j.call(M,L),L.target===L.currentTarget&&u&&u(L,"backdropClick")};return{getRootProps:(M={})=>{const L=bC(e);delete L.onTransitionEnter,delete L.onTransitionExited;const j={...L,...M};return{role:"presentation",...j,onKeyDown:I(j),ref:v}},getBackdropProps:(M={})=>{const L=M;return{"aria-hidden":!0,...L,onClick:N(L),open:c}},getTransitionProps:()=>{const M=()=>{g(!1),i&&i()},L=()=>{g(!0),s&&s(),a&&k()};return{onEnter:yI(M,l==null?void 0:l.props.onEnter),onExited:yI(L,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:_,isTopModal:E,exited:b,hasTransition:y}}function qut(e){return qr("MuiModal",e)}Dr("MuiModal",["root","hidden","backdrop"]);const Uut=e=>{const{open:t,exited:r,classes:n}=e;return Jr({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},qut,n)},Kut=kt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Wr(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Gut=kt(Lut,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Yut=m.forwardRef(function(t,r){const n=sn({name:"MuiModal",props:t}),{BackdropComponent:o=Gut,BackdropProps:a,classes:i,className:s,closeAfterTransition:l=!1,children:u,container:c,component:d,components:f={},componentsProps:p={},disableAutoFocus:h=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:b=!1,disablePortal:g=!1,disableRestoreFocus:y=!1,disableScrollLock:S=!1,hideBackdrop:w=!1,keepMounted:$=!1,onBackdropClick:C,onClose:x,onTransitionEnter:E,onTransitionExited:_,open:k,slotProps:I={},slots:N={},theme:z,...O}=n,A={...n,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:v,disableEscapeKeyDown:b,disablePortal:g,disableRestoreFocus:y,disableScrollLock:S,hideBackdrop:w,keepMounted:$},{getRootProps:M,getBackdropProps:L,getTransitionProps:j,portalRef:H,isTopModal:B,exited:F,hasTransition:V}=Wut({...A,rootRef:r}),D={...A,exited:F},P=Uut(D),R={};if(u.props.tabIndex===void 0&&(R.tabIndex="-1"),V){const{onEnter:oe,onExited:ie}=j();R.onEnter=oe,R.onExited=ie}const W={slots:{root:f.Root,backdrop:f.Backdrop,...N},slotProps:{...p,...I}},[U,q]=lu("root",{elementType:Kut,externalForwardedProps:W,getSlotProps:M,additionalProps:{ref:r,as:d},ownerState:D,className:Qt(s,P==null?void 0:P.root,!D.open&&D.exited&&(P==null?void 0:P.hidden))}),[J,Z]=lu("backdrop",{elementType:o,externalForwardedProps:W,additionalProps:a,getSlotProps:oe=>L({...oe,onClick:ie=>{C&&C(ie),oe!=null&&oe.onClick&&oe.onClick(ie)}}),className:Qt(a==null?void 0:a.className,P==null?void 0:P.backdrop),ownerState:D}),Q=ta(a==null?void 0:a.ref,Z.ref);return!$&&!k&&(!V||F)?null:T.jsx(Fut,{ref:H,container:c,disablePortal:g,children:T.jsxs(U,{...q,...O,children:[!w&&o?T.jsx(J,{...Z,ref:Q}):null,T.jsx(Tut,{disableEnforceFocus:v,disableAutoFocus:h,disableRestoreFocus:y,isEnabled:B,open:k,children:m.cloneElement(u,R)})]})})}),Xut=Yut;function Qut(e){return qr("MuiPopover",e)}Dr("MuiPopover",["root","paper"]);function DJ(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function AJ(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function MJ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $5(e){return typeof e=="function"?e():e}const Zut=e=>{const{classes:t}=e;return Jr({root:["root"],paper:["paper"]},Qut,t)},Jut=kt(Xut,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kve=kt(lN,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ect=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:c,container:d,elevation:f=8,marginThreshold:p=16,open:h,PaperProps:v={},slots:b={},slotProps:g={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:S=gut,transitionDuration:w="auto",TransitionProps:{onEntering:$,...C}={},disableScrollLock:x=!1,...E}=n,_=(g==null?void 0:g.paper)??v,k=m.useRef(),I={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:p,externalPaperSlotProps:_,transformOrigin:y,TransitionComponent:S,transitionDuration:w,TransitionProps:C},N=Zut(I),z=m.useCallback(()=>{if(l==="anchorPosition")return s;const Z=$5(a),oe=(Z&&Z.nodeType===1?Z:Va(k.current).body).getBoundingClientRect();return{top:oe.top+DJ(oe,i.vertical),left:oe.left+AJ(oe,i.horizontal)}},[a,i.horizontal,i.vertical,s,l]),O=m.useCallback(Z=>({vertical:DJ(Z,y.vertical),horizontal:AJ(Z,y.horizontal)}),[y.horizontal,y.vertical]),A=m.useCallback(Z=>{const Q={width:Z.offsetWidth,height:Z.offsetHeight},oe=O(Q);if(l==="none")return{top:null,left:null,transformOrigin:MJ(oe)};const ie=z();let te=ie.top-oe.vertical,ae=ie.left-oe.horizontal;const fe=te+Q.height,ve=ae+Q.width,Se=wh($5(a)),se=Se.innerHeight-p,pe=Se.innerWidth-p;if(p!==null&&tese){const ge=fe-se;te-=ge,oe.vertical+=ge}if(p!==null&&aepe){const ge=ve-pe;ae-=ge,oe.horizontal+=ge}return{top:`${Math.round(te)}px`,left:`${Math.round(ae)}px`,transformOrigin:MJ(oe)}},[a,l,z,O,p]),[M,L]=m.useState(h),j=m.useCallback(()=>{const Z=k.current;if(!Z)return;const Q=A(Z);Q.top!==null&&(Z.style.top=Q.top),Q.left!==null&&(Z.style.left=Q.left),Z.style.transformOrigin=Q.transformOrigin,L(!0)},[A]);m.useEffect(()=>(x&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[a,x,j]);const H=(Z,Q)=>{$&&$(Z,Q),j()},B=()=>{L(!1)};m.useEffect(()=>{h&&j()}),m.useImperativeHandle(o,()=>h?{updatePosition:()=>{j()}}:null,[h,j]),m.useEffect(()=>{if(!h)return;const Z=_V(()=>{j()}),Q=wh(a);return Q.addEventListener("resize",Z),()=>{Z.clear(),Q.removeEventListener("resize",Z)}},[a,h,j]);let F=w;w==="auto"&&!S.muiSupportAuto&&(F=void 0);const V=d||(a?Va($5(a)).body:void 0),D={slots:b,slotProps:{...g,paper:_}},[P,R]=lu("paper",{elementType:Kve,externalForwardedProps:D,additionalProps:{elevation:f,className:Qt(N.paper,_==null?void 0:_.className),style:M?_.style:{..._.style,opacity:0}},ownerState:I}),[W,{slotProps:U,...q}]=lu("root",{elementType:Jut,externalForwardedProps:D,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:V,open:h},ownerState:I,className:Qt(N.root,c)}),J=ta(k,R.ref);return T.jsx(W,{...q,...!Nf(W)&&{slotProps:U,disableScrollLock:x},...E,ref:r,children:T.jsx(S,{appear:!0,in:h,onEntering:H,onExited:B,timeout:F,...C,children:T.jsx(P,{...R,ref:J,children:u})})})}),tct=ect;function rct(e){return qr("MuiMenu",e)}Dr("MuiMenu",["root","paper","list"]);const nct={vertical:"top",horizontal:"right"},oct={vertical:"top",horizontal:"left"},act=e=>{const{classes:t}=e;return Jr({root:["root"],paper:["paper"],list:["list"]},rct,t)},ict=kt(tct,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sct=kt(Kve,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),lct=kt(hut,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),uct=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:u,open:c,PaperProps:d={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:h,...v}={},variant:b="selectedMenu",slots:g={},slotProps:y={},...S}=n,w=Ove(),$={...n,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:h,PaperProps:d,transitionDuration:p,TransitionProps:v,variant:b},C=act($),x=o&&!s&&c,E=m.useRef(null),_=(M,L)=>{E.current&&E.current.adjustStyleForScrollbar(M,{direction:w?"rtl":"ltr"}),h&&h(M,L)},k=M=>{M.key==="Tab"&&(M.preventDefault(),u&&u(M,"tabKeyDown"))};let I=-1;m.Children.map(a,(M,L)=>{m.isValidElement(M)&&(M.props.disabled||(b==="selectedMenu"&&M.props.selected||I===-1)&&(I=L))});const N=g.paper??sct,z=y.paper??d,O=Qc({elementType:g.root,externalSlotProps:y.root,ownerState:$,className:[C.root,i]}),A=Qc({elementType:N,externalSlotProps:z,ownerState:$,className:C.paper});return T.jsx(ict,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?nct:oct,slots:{paper:N,root:g.root},slotProps:{root:O,paper:A},open:c,ref:r,transitionDuration:p,TransitionProps:{onEntering:_,...v},ownerState:$,...S,classes:f,children:T.jsx(lct,{onKeyDown:k,actions:E,autoFocus:o&&(I===-1||s),autoFocusItem:x,variant:b,...l,className:Qt(C.list,l.className),children:a})})}),cct=uct;function dct(e){return qr("MuiNativeSelect",e)}const fct=Dr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JV=fct,pct=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Gt(r)}`,a&&"iconOpen",n&&"disabled"]};return Jr(s,dct,t)},Gve=kt("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${JV.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),mct=kt(Gve,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ki,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${JV.multiple}`]:t.multiple}]}})({}),Yve=kt("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${JV.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),hct=kt(Yve,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Gt(r.variant)}`],r.open&&t.iconOpen]}})({}),vct=m.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard",...u}=t,c={...t,disabled:o,variant:l,error:a},d=pct(c);return T.jsxs(m.Fragment,{children:[T.jsx(mct,{ownerState:c,className:Qt(d.select,n),disabled:o,ref:s||r,...u}),t.multiple?null:T.jsx(hct,{as:i,ownerState:c,className:d.icon})]})}),gct=vct;function bct(e){return qr("MuiSelect",e)}const yct=Dr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iw=yct;var BJ;const Sct=kt(Gve,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${iw.select}`]:t.select},{[`&.${iw.select}`]:t[r.variant]},{[`&.${iw.error}`]:t.error},{[`&.${iw.multiple}`]:t.multiple}]}})({[`&.${iw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wct=kt(Yve,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Gt(r.variant)}`],r.open&&t.iconOpen]}})({}),Cct=kt("input",{shouldForwardProp:e=>iN(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function jJ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xct(e){return e==null||typeof e=="string"&&!e.trim()}const $ct=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Gt(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Jr(s,bct,t)},Ect=m.forwardRef(function(t,r){var _e;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:p=!1,IconComponent:h,inputRef:v,labelId:b,MenuProps:g={},multiple:y,name:S,onBlur:w,onChange:$,onClose:C,onFocus:x,onOpen:E,open:_,readOnly:k,renderValue:I,SelectDisplayProps:N={},tabIndex:z,type:O,value:A,variant:M="standard",...L}=t,[j,H]=jy({controlled:A,default:c,name:"Select"}),[B,F]=jy({controlled:_,default:u,name:"Select"}),V=m.useRef(null),D=m.useRef(null),[P,R]=m.useState(null),{current:W}=m.useRef(_!=null),[U,q]=m.useState(),J=ta(r,v),Z=m.useCallback(De=>{D.current=De,De&&R(De)},[]),Q=P==null?void 0:P.parentNode;m.useImperativeHandle(J,()=>({focus:()=>{D.current.focus()},node:V.current,value:j}),[j]),m.useEffect(()=>{u&&B&&P&&!W&&(q(i?null:Q.clientWidth),D.current.focus())},[P,i]),m.useEffect(()=>{a&&D.current.focus()},[a]),m.useEffect(()=>{if(!b)return;const De=Va(D.current).getElementById(b);if(De){const et=()=>{getSelection().isCollapsed&&D.current.focus()};return De.addEventListener("click",et),()=>{De.removeEventListener("click",et)}}},[b]);const oe=(De,et)=>{De?E&&E(et):C&&C(et),W||(q(i?null:Q.clientWidth),F(De))},ie=De=>{De.button===0&&(De.preventDefault(),D.current.focus(),oe(!0,De))},te=De=>{oe(!1,De)},ae=m.Children.toArray(s),fe=De=>{const et=ae.find(Ie=>Ie.props.value===De.target.value);et!==void 0&&(H(et.props.value),$&&$(De,et))},ve=De=>et=>{let Ie;if(et.currentTarget.hasAttribute("tabindex")){if(y){Ie=Array.isArray(j)?j.slice():[];const Fe=j.indexOf(De.props.value);Fe===-1?Ie.push(De.props.value):Ie.splice(Fe,1)}else Ie=De.props.value;if(De.props.onClick&&De.props.onClick(et),j!==Ie&&(H(Ie),$)){const Fe=et.nativeEvent||et,vt=new Fe.constructor(Fe.type,Fe);Object.defineProperty(vt,"target",{writable:!0,value:{value:Ie,name:S}}),$(vt,De)}y||oe(!1,et)}},Se=De=>{k||[" ","ArrowUp","ArrowDown","Enter"].includes(De.key)&&(De.preventDefault(),oe(!0,De))},se=P!==null&&B,pe=De=>{!se&&w&&(Object.defineProperty(De,"target",{writable:!0,value:{value:j,name:S}}),w(De))};delete L["aria-invalid"];let ge,de;const ee=[];let me=!1;(PI({value:j})||f)&&(I?ge=I(j):me=!0);const Re=ae.map(De=>{if(!m.isValidElement(De))return null;let et;if(y){if(!Array.isArray(j))throw new Error(Tg(2));et=j.some(Ie=>jJ(Ie,De.props.value)),et&&me&&ee.push(De.props.children)}else et=jJ(j,De.props.value),et&&me&&(de=De.props.children);return m.cloneElement(De,{"aria-selected":et?"true":"false",onClick:ve(De),onKeyUp:Ie=>{Ie.key===" "&&Ie.preventDefault(),De.props.onKeyUp&&De.props.onKeyUp(Ie)},role:"option",selected:et,value:void 0,"data-value":De.props.value})});me&&(y?ee.length===0?ge=null:ge=ee.reduce((De,et,Ie)=>(De.push(et),Ie{const{classes:t}=e;return t},eH={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ki(e)&&e!=="variant",slot:"Root"},Tct=kt(zve,eH)(""),Ict=kt(Hve,eH)(""),Rct=kt(Vve,eH)(""),Xve=m.forwardRef(function(t,r){const n=jve({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=kct,id:d,input:f,inputProps:p,label:h,labelId:v,MenuProps:b,multiple:g=!1,native:y=!1,onClose:S,onOpen:w,open:$,renderValue:C,SelectDisplayProps:x,variant:E="outlined",..._}=n,k=y?gct:_ct,I=Fp(),N=Kh({props:n,muiFormControl:I,states:["variant","error"]}),z=N.variant||E,O={...n,variant:z,classes:i},A=Pct(O),{root:M,...L}=A,j=f||{standard:T.jsx(Tct,{ownerState:O}),outlined:T.jsx(Ict,{label:h,ownerState:O}),filled:T.jsx(Rct,{ownerState:O})}[z],H=ta(r,kE(j));return T.jsx(m.Fragment,{children:m.cloneElement(j,{inputComponent:k,inputProps:{children:a,error:N.error,IconComponent:c,variant:z,type:void 0,multiple:g,...y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:b,onClose:S,onOpen:w,open:$,renderValue:C,SelectDisplayProps:{id:d,...x}},...p,classes:p?Pd(L,p.classes):L,...f?f.props.inputProps:{}},...(g&&y||u)&&z==="outlined"?{notched:!0}:{},ref:H,className:Qt(j.props.className,s,A.root),...!f&&{variant:z},..._})})});Xve.muiName="Select";const Fct=Xve;function Oct(e){return qr("MuiTextField",e)}Dr("MuiTextField",["root"]);const Nct={standard:zve,filled:Vve,outlined:Hve},Dct=e=>{const{classes:t}=e;return Jr({root:["root"]},Oct,t)},Act=kt(Wve,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mct=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:h,id:v,InputLabelProps:b,inputProps:g,InputProps:y,inputRef:S,label:w,maxRows:$,minRows:C,multiline:x=!1,name:E,onBlur:_,onChange:k,onFocus:I,placeholder:N,required:z=!1,rows:O,select:A=!1,SelectProps:M,slots:L={},slotProps:j={},type:H,value:B,variant:F="outlined",...V}=n,D={...n,autoFocus:a,color:l,disabled:c,error:d,fullWidth:p,multiline:x,required:z,select:A,variant:F},P=Dct(D),R=zO(v),W=h&&R?`${R}-helper-text`:void 0,U=w&&R?`${R}-label`:void 0,q=Nct[F],J={slots:L,slotProps:{input:y,inputLabel:b,htmlInput:g,formHelperText:f,select:M,...j}},Z={},Q=J.slotProps.inputLabel;F==="outlined"&&(Q&&typeof Q.shrink<"u"&&(Z.notched=Q.shrink),Z.label=w),A&&((!M||!M.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const[oe,ie]=lu("input",{elementType:q,externalForwardedProps:J,additionalProps:Z,ownerState:D}),[te,ae]=lu("inputLabel",{elementType:Jlt,externalForwardedProps:J,ownerState:D}),[fe,ve]=lu("htmlInput",{elementType:"input",externalForwardedProps:J,ownerState:D}),[Se,se]=lu("formHelperText",{elementType:QV,externalForwardedProps:J,ownerState:D}),[pe,ge]=lu("select",{elementType:Fct,externalForwardedProps:J,ownerState:D}),de=T.jsx(oe,{"aria-describedby":W,autoComplete:o,autoFocus:a,defaultValue:u,fullWidth:p,multiline:x,name:E,rows:O,maxRows:$,minRows:C,type:H,value:B,id:R,inputRef:S,onBlur:_,onChange:k,onFocus:I,placeholder:N,inputProps:ve,slots:{input:L.htmlInput?fe:void 0},...ie});return T.jsxs(Act,{className:Qt(P.root,s),disabled:c,error:d,fullWidth:p,ref:r,required:z,color:l,variant:F,ownerState:D,...V,children:[w!=null&&w!==""&&T.jsx(te,{htmlFor:R,id:U,...ae,children:w}),A?T.jsx(pe,{"aria-describedby":W,id:R,labelId:U,value:B,input:de,...ge,children:i}):de,h&&T.jsx(Se,{id:W,...se,children:h})]})}),tH=Mct,Bct=["date","datetime-local","file","time"];function jct(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:u,hideError:c,value:d,onChange:f,onChangeOverride:p,onBlur:h,onFocus:v,autofocus:b,options:g,schema:y,uiSchema:S,rawErrors:w=[],errorSchema:$,formContext:C,registry:x,InputLabelProps:E,..._}=e,k=kp(y,s,g),{step:I,min:N,max:z,...O}=k,A={inputProps:{step:I,min:N,max:z,...y.examples?{list:da(t)}:void 0},...O},M=({target:{value:B}})=>f(B===""?g.emptyValue:B),L=({target:B})=>h(t,B&&B.value),j=({target:B})=>v(t,B&&B.value),H=Bct.includes(s)?{...E,shrink:!0}:E;return T.jsxs(T.Fragment,{children:[T.jsx(tH,{id:t,name:t,placeholder:n,label:wr(l||void 0,u,void 0),autoFocus:b,required:o,disabled:i||a,...A,value:d||d===0?d:"",error:w.length>0,onChange:p||M,onBlur:L,onFocus:j,InputLabelProps:H,..._,"aria-describedby":Ot(t,!!y.examples)}),Array.isArray(y.examples)&&T.jsx("datalist",{id:da(t),children:y.examples.concat(y.default&&!y.examples.includes(y.default)?[y.default]:[]).map(B=>T.jsx("option",{value:B},B))})]})}function Lct(e){return qr("MuiTypography",e)}const zct=Dr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),LJ=zct,Vct={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Hct=ust(),Wct=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Gt(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Jr(s,Lct,i)},qct=kt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Gt(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Wr(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Gt(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),zJ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Uct=m.forwardRef(function(t,r){const{color:n,...o}=sn({props:t,name:"MuiTypography"}),a=!Vct[n],i=Hct({...o,...a&&{color:n}}),{align:s="inherit",className:l,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:h=zJ,...v}=i,b={...i,align:s,color:n,className:l,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:h},g=u||(f?"p":h[p]||zJ[p])||"span",y=Wct(b);return T.jsx(qct,{as:g,ref:r,className:Qt(y.root,l),...v,ownerState:b,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...v.style}})}),pd=Uct;function Kct(e){const{id:t,description:r}=e;return r?T.jsx(pd,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}var rH={},Gct=Fo;Object.defineProperty(rH,"__esModule",{value:!0});var Qve=rH.default=void 0,Yct=Gct(oS()),Xct=T;Qve=rH.default=(0,Yct.default)((0,Xct.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");function Qct(e){return qr("MuiListItem",e)}Dr("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Zct=Dr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Jct=Zct;function edt(e){return qr("MuiListItemSecondaryAction",e)}Dr("MuiListItemSecondaryAction",["root","disableGutters"]);const tdt=e=>{const{disableGutters:t,classes:r}=e;return Jr({root:["root",t&&"disableGutters"]},edt,r)},rdt=kt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Zve=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=n,i=m.useContext(Df),s={...n,disableGutters:i.disableGutters},l=tdt(s);return T.jsx(rdt,{className:Qt(l.root,o),ownerState:s,ref:r,...a})});Zve.muiName="ListItemSecondaryAction";const ndt=Zve,odt=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},adt=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:s}=e;return Jr({root:["root",n&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},Qct,r)},idt=kt("div",{name:"MuiListItem",slot:"Root",overridesResolver:odt})(Wr(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Jct.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),sdt=kt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ldt=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:s,components:l={},componentsProps:u={},ContainerComponent:c="li",ContainerProps:{className:d,...f}={},dense:p=!1,disableGutters:h=!1,disablePadding:v=!1,divider:b=!1,secondaryAction:g,slotProps:y={},slots:S={},...w}=n,$=m.useContext(Df),C=m.useMemo(()=>({dense:p||$.dense||!1,alignItems:o,disableGutters:h}),[o,$.dense,p,h]),x=m.useRef(null),E=m.Children.toArray(a),_=E.length&&gC(E[E.length-1],["ListItemSecondaryAction"]),k={...n,alignItems:o,dense:C.dense,disableGutters:h,disablePadding:v,divider:b,hasSecondaryAction:_},I=adt(k),N=ta(x,r),z=S.root||l.Root||idt,O=y.root||u.root||{},A={className:Qt(I.root,O.className,i),...w};let M=s||"li";return _?(M=!A.component&&!s?"div":M,c==="li"&&(M==="li"?M="div":A.component==="li"&&(A.component="div")),T.jsx(Df.Provider,{value:C,children:T.jsxs(sdt,{as:c,className:Qt(I.container,d),ref:N,ownerState:k,...f,children:[T.jsx(z,{...O,...!Nf(z)&&{as:M,ownerState:{...k,...O.ownerState}},...A,children:E}),E.pop()]})})):T.jsx(Df.Provider,{value:C,children:T.jsxs(z,{...O,as:M,ref:N,...!Nf(z)&&{ownerState:{...k,...O.ownerState}},...A,children:[E,g&&T.jsx(ndt,{children:g})]})})}),Jve=ldt;function udt(e){return qr("MuiListItemIcon",e)}const cdt=Dr("MuiListItemIcon",["root","alignItemsFlexStart"]),VJ=cdt,ddt=e=>{const{alignItems:t,classes:r}=e;return Jr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},udt,r)},fdt=kt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Wr(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),pdt=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiListItemIcon"}),{className:o,...a}=n,i=m.useContext(Df),s={...n,alignItems:i.alignItems},l=ddt(s);return T.jsx(fdt,{className:Qt(l.root,o),ownerState:s,ref:r,...a})}),mdt=pdt;function hdt(e){return qr("MuiListItemText",e)}const vdt=Dr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Bb=vdt,gdt=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return Jr({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},hdt,t)},bdt=kt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Bb.primary}`]:t.primary},{[`& .${Bb.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${LJ.root}:where(& .${Bb.primary})`]:{display:"block"},[`.${LJ.root}:where(& .${Bb.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ydt=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d,...f}=n,{dense:p}=m.useContext(Df);let h=l??o,v=c;const b={...n,disableTypography:i,inset:s,primary:!!h,secondary:!!v,dense:p},g=gdt(b);return h!=null&&h.type!==pd&&!i&&(h=T.jsx(pd,{variant:p?"body2":"body1",className:g.primary,component:u!=null&&u.variant?void 0:"span",...u,children:h})),v!=null&&v.type!==pd&&!i&&(v=T.jsx(pd,{variant:"body2",className:g.secondary,color:"textSecondary",...d,children:v})),T.jsxs(bdt,{className:Qt(g.root,a),ownerState:b,ref:r,...f,children:[h,v]})}),Sdt=ydt;function wdt({errors:e,registry:t}){const{translateString:r}=t;return T.jsx(lN,{elevation:2,children:T.jsxs(Rg,{mb:2,p:2,children:[T.jsx(pd,{variant:"h6",children:r($t.ErrorsLabel)}),T.jsx(ZV,{dense:!0,children:e.map((n,o)=>T.jsxs(Jve,{children:[T.jsx(mdt,{children:T.jsx(Qve,{color:"error"})}),T.jsx(Sdt,{primary:n.stack})]},o))})]})})}var nH={},Cdt=Fo;Object.defineProperty(nH,"__esModule",{value:!0});var ege=nH.default=void 0,xdt=Cdt(oS()),$dt=T;ege=nH.default=(0,xdt.default)((0,$dt.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var oH={},Edt=Fo;Object.defineProperty(oH,"__esModule",{value:!0});var tge=oH.default=void 0,_dt=Edt(oS()),kdt=T;tge=oH.default=(0,_dt.default)((0,kdt.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var aH={},Pdt=Fo;Object.defineProperty(aH,"__esModule",{value:!0});var rge=aH.default=void 0,Tdt=Pdt(oS()),Idt=T;rge=aH.default=(0,Tdt.default)((0,Idt.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var iH={},Rdt=Fo;Object.defineProperty(iH,"__esModule",{value:!0});var nge=iH.default=void 0,Fdt=Rdt(oS()),Odt=T;nge=iH.default=(0,Fdt.default)((0,Odt.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");function mN(e){const{icon:t,color:r,uiSchema:n,registry:o,...a}=e;return T.jsx(Bve,{...a,size:"small",color:r,children:t})}function Ndt(e){const{registry:{translateString:t}}=e;return T.jsx(mN,{title:t($t.CopyButton),...e,icon:T.jsx(rge,{fontSize:"small"})})}function Ddt(e){const{registry:{translateString:t}}=e;return T.jsx(mN,{title:t($t.MoveDownButton),...e,icon:T.jsx(ege,{fontSize:"small"})})}function Adt(e){const{registry:{translateString:t}}=e;return T.jsx(mN,{title:t($t.MoveUpButton),...e,icon:T.jsx(tge,{fontSize:"small"})})}function Mdt(e){const{iconType:t,...r}=e,{registry:{translateString:n}}=r;return T.jsx(mN,{title:n($t.RemoveButton),...r,color:"error",icon:T.jsx(nge,{fontSize:t==="default"?void 0:"small"})})}function Bdt(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=Vd(r);return T.jsx(ZV,{id:n,dense:!0,disablePadding:!0,children:t.map((o,a)=>T.jsx(Jve,{disableGutters:!0,children:T.jsx(QV,{component:"div",id:`${n}-${a}`,children:o})},a))})}function jdt(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Tp(t);return T.jsx(QV,{component:"div",id:n,children:r})}function Ldt(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,rawErrors:p=[],errors:h,help:v,description:b,rawDescription:g,schema:y,uiSchema:S,registry:w}=e,$=At(S),C=Ct("WrapIfAdditionalTemplate",w,$);return s?T.jsx("div",{style:{display:"none"},children:r}):T.jsx(C,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,schema:y,uiSchema:S,registry:w,children:T.jsxs(Wve,{fullWidth:!0,error:!!p.length,required:f,children:[r,i&&g?T.jsx(pd,{variant:"caption",color:"textSecondary",children:b}):null,h,v]})})}function zdt(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:u,formData:c,onAddClick:d,registry:f}=e,p=At(s),h=Ct("TitleFieldTemplate",f,p),v=Ct("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:b}}=f.templates;return T.jsxs(T.Fragment,{children:[r&&T.jsx(h,{id:Nu(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&T.jsx(v,{id:pa(l),description:t,schema:u,uiSchema:s,registry:f}),T.jsxs(yl,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map((g,y)=>g.hidden?g.content:T.jsx(yl,{item:!0,xs:12,style:{marginBottom:"10px"},children:g.content},y)),$p(u,s,c)&&T.jsx(yl,{container:!0,justifyContent:"flex-end",children:T.jsx(yl,{item:!0,children:T.jsx(b,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})})})]})]})}function Vdt(e){return qr("MuiButton",e)}const Hdt=Dr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),G0=Hdt,Wdt=m.createContext({}),qdt=Wdt,Udt=m.createContext(void 0),Kdt=Udt,Gdt=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Gt(t)}`,`size${Gt(o)}`,`${a}Size${Gt(o)}`,`color${Gt(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Gt(o)}`],endIcon:["icon","endIcon",`iconSize${Gt(o)}`]},l=Jr(s,Vdt,i);return{...i,...l}},oge=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Ydt=kt(sN,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Gt(r.color)}`],t[`size${Gt(r.size)}`],t[`${r.variant}Size${Gt(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(Wr(({theme:e})=>{var n,o;const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${G0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${G0.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${G0.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${G0.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(([,a])=>a&&a.main&&a.dark&&a.contrastText).map(([a])=>({props:{color:a},style:{"--variant-textColor":(e.vars||e).palette[a].main,"--variant-outlinedColor":(e.vars||e).palette[a].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[a].mainChannel} / 0.5)`:Jo(e.palette[a].main,.5),"--variant-containedColor":(e.vars||e).palette[a].contrastText,"--variant-containedBg":(e.vars||e).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[a].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette[a].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[a].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette[a].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{"--variant-containedColor":e.vars?e.vars.palette.text.primary:(o=(n=e.palette).getContrastText)==null?void 0:o.call(n,t),"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${G0.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${G0.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),Xdt=kt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Gt(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...oge]}),Qdt=kt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Gt(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...oge]}),Zdt=m.forwardRef(function(t,r){const n=m.useContext(qdt),o=m.useContext(Kdt),a=ove(n,t),i=sn({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:v,fullWidth:b=!1,size:g="medium",startIcon:y,type:S,variant:w="text",...$}=i,C={...i,color:l,component:u,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:b,size:g,type:S,variant:w},x=Gdt(C),E=y&&T.jsx(Xdt,{className:x.startIcon,ownerState:C,children:y}),_=h&&T.jsx(Qdt,{className:x.endIcon,ownerState:C,children:h}),k=o||"";return T.jsxs(Ydt,{ownerState:C,className:Qt(n.className,x.root,c,k),component:u,disabled:d,focusRipple:!p,focusVisibleClassName:Qt(x.focusVisible,v),ref:r,type:S,...$,classes:x,children:[E,s,_]})}),Jdt=Zdt;function eft({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=Pp(e);return r?null:T.jsx(Rg,{marginTop:3,children:T.jsx(Jdt,{type:"submit",variant:"contained",color:"primary",...n,children:t})})}function tft(e){return qr("MuiDivider",e)}const rft=Dr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),HJ=rft,nft=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Jr({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},tft,n)},oft=kt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Wr(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Jo(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),aft=kt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Wr(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),TL=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,orientation:s="horizontal",component:l=a||s==="vertical"?"div":"hr",flexItem:u=!1,light:c=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth",...h}=n,v={...n,absolute:o,component:l,flexItem:u,light:c,orientation:s,role:d,textAlign:f,variant:p},b=nft(v);return T.jsx(oft,{as:l,className:Qt(b.root,i),role:d,ref:r,ownerState:v,"aria-orientation":d==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...h,children:a?T.jsx(aft,{className:b.wrapper,ownerState:v,children:a}):null})});TL&&(TL.muiSkipListHighlight=!0);const ift=TL;function sft({id:e,title:t}){return T.jsxs(Rg,{id:e,mb:1,mt:1,children:[T.jsx(pd,{variant:"h5",children:t}),T.jsx(ift,{})]})}function lft(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,required:c,schema:d,uiSchema:f,registry:p}=e,{templates:h,translateString:v}=p,{RemoveButton:b}=h.ButtonTemplates,g=v($t.KeyLabel,[i]),y=Nl in d,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};if(!y)return T.jsx("div",{className:r,style:n,children:t});const w=({target:$})=>l($&&$.value);return T.jsxs(yl,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[T.jsx(yl,{item:!0,xs:!0,children:T.jsx(tH,{fullWidth:!0,required:c,label:g,defaultValue:i,disabled:o||u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:w,type:"text"})}),T.jsx(yl,{item:!0,xs:!0,children:t}),T.jsx(yl,{item:!0,children:T.jsx(b,{iconType:"default",style:S,disabled:o||u,onClick:s(i),uiSchema:f,registry:p})})]},`${a}-key`)}function uft(){return{ArrayFieldItemTemplate:flt,ArrayFieldTemplate:plt,BaseInputTemplate:jct,ButtonTemplates:{AddButton:Hst,CopyButton:Ndt,MoveDownButton:Ddt,MoveUpButton:Adt,RemoveButton:Mdt,SubmitButton:eft},DescriptionFieldTemplate:Kct,ErrorListTemplate:wdt,FieldErrorTemplate:Bdt,FieldHelpTemplate:jdt,FieldTemplate:Ldt,ObjectFieldTemplate:zdt,TitleFieldTemplate:sft,WrapIfAdditionalTemplate:lft}}function cft(e){return qr("PrivateSwitchBase",e)}Dr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dft=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${Gt(o)}`],input:["input"]};return Jr(a,cft,t)},fft=kt(sN)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),pft=kt("input",{shouldForwardProp:Ki})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mft=m.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:p,inputRef:h,name:v,onBlur:b,onChange:g,onFocus:y,readOnly:S,required:w=!1,tabIndex:$,type:C,value:x,...E}=t,[_,k]=jy({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),I=Fp(),N=H=>{y&&y(H),I&&I.onFocus&&I.onFocus(H)},z=H=>{b&&b(H),I&&I.onBlur&&I.onBlur(H)},O=H=>{if(H.nativeEvent.defaultPrevented)return;const B=H.target.checked;k(B),g&&g(H,B)};let A=l;I&&typeof A>"u"&&(A=I.disabled);const M=C==="checkbox"||C==="radio",L={...t,checked:_,disabled:A,disableFocusRipple:u,edge:c},j=dft(L);return T.jsxs(fft,{component:"span",className:Qt(j.root,i),centerRipple:!0,focusRipple:!u,disabled:A,tabIndex:null,role:void 0,onFocus:N,onBlur:z,ownerState:L,ref:r,...E,children:[T.jsx(pft,{autoFocus:n,checked:o,defaultChecked:s,className:j.input,disabled:A,id:M?f:void 0,name:v,onChange:O,readOnly:S,ref:h,required:w,ownerState:L,tabIndex:$,type:C,...C==="checkbox"&&x===void 0?{}:{value:x},...p}),_?a:d]})}),age=mft,hft=p0(T.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vft=p0(T.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),gft=p0(T.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function bft(e){return qr("MuiCheckbox",e)}const yft=Dr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),E5=yft,Sft=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${Gt(n)}`,`size${Gt(o)}`]},i=Jr(a,bft,t);return{...t,...i}},wft=kt(age,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Gt(r.size)}`],r.color!=="default"&&t[`color${Gt(r.color)}`]]}})(Wr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{[`&.${E5.checked}, &.${E5.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${E5.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Cft=T.jsx(vft,{}),xft=T.jsx(hft,{}),$ft=T.jsx(gft,{}),Eft=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Cft,color:a="primary",icon:i=xft,indeterminate:s=!1,indeterminateIcon:l=$ft,inputProps:u,size:c="medium",disableRipple:d=!1,className:f,...p}=n,h=s?l:i,v=s?l:o,b={...n,disableRipple:d,color:a,indeterminate:s,size:c},g=Sft(b);return T.jsx(wft,{type:"checkbox",inputProps:{"data-indeterminate":s,...u},icon:m.cloneElement(h,{fontSize:h.props.fontSize??c}),checkedIcon:m.cloneElement(v,{fontSize:v.props.fontSize??c}),ownerState:b,ref:r,className:Qt(g.root,f),...p,classes:g})}),ige=Eft;function _ft(e){return qr("MuiFormControlLabel",e)}const kft=Dr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qw=kft,Pft=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${Gt(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Jr(i,_ft,t)},Tft=kt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${qw.label}`]:t.label},t.root,t[`labelPlacement${Gt(r.labelPlacement)}`]]}})(Wr(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${qw.disabled}`]:{cursor:"default"},[`& .${qw.label}`]:{[`&.${qw.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Ift=kt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Wr(({theme:e})=>({[`&.${qw.error}`]:{color:(e.vars||e).palette.error.main}}))),Rft=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:s,disabled:l,disableTypography:u,inputRef:c,label:d,labelPlacement:f="end",name:p,onChange:h,required:v,slots:b={},slotProps:g={},value:y,...S}=n,w=Fp(),$=l??s.props.disabled??(w==null?void 0:w.disabled),C=v??s.props.required,x={disabled:$,required:C};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof s.props[A]>"u"&&typeof n[A]<"u"&&(x[A]=n[A])});const E=Kh({props:n,muiFormControl:w,states:["error"]}),_={...n,disabled:$,labelPlacement:f,required:C,error:E.error},k=Pft(_),I={slots:b,slotProps:{...i,...g}},[N,z]=lu("typography",{elementType:pd,externalForwardedProps:I,ownerState:_});let O=d;return O!=null&&O.type!==pd&&!u&&(O=T.jsx(N,{component:"span",...z,className:Qt(k.label,z==null?void 0:z.className),children:O})),T.jsxs(Tft,{className:Qt(k.root,a),ownerState:_,ref:r,...S,children:[m.cloneElement(s,x),C?T.jsxs("div",{children:[O,T.jsxs(Ift,{ownerState:_,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):O]})}),sH=Rft;function Fft(e){const{schema:t,id:r,value:n,disabled:o,readonly:a,label:i="",hideLabel:s,autofocus:l,onChange:u,onBlur:c,onFocus:d,registry:f,options:p,uiSchema:h}=e,v=Ct("DescriptionFieldTemplate",f,p),b=kd(t),g=($,C)=>u(C),y=({target:$})=>c(r,$&&$.value),S=({target:$})=>d(r,$&&$.value),w=p.description??t.description;return T.jsxs(T.Fragment,{children:[!s&&!!w&&T.jsx(v,{id:pa(r),description:w,schema:t,uiSchema:h,registry:f}),T.jsx(sH,{control:T.jsx(ige,{id:r,name:r,checked:typeof n>"u"?!1:!!n,required:b,disabled:o||a,autoFocus:l,onChange:g,onBlur:y,onFocus:S,"aria-describedby":Ot(r)}),label:wr(i,s,!1)})]})}function Oft(e){return qr("MuiFormGroup",e)}Dr("MuiFormGroup",["root","row","error"]);const Nft=e=>{const{classes:t,row:r,error:n}=e;return Jr({root:["root",r&&"row",n&&"error"]},Oft,t)},Dft=kt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Aft=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...i}=n,s=Fp(),l=Kh({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:l.error},c=Nft(u);return T.jsx(Dft,{className:Qt(c.root,o),ownerState:u,ref:r,...i})}),sge=Aft;function Mft({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:u,onBlur:c,onFocus:d}){const{enumOptions:f,enumDisabled:p,inline:h,emptyValue:v}=o,b=Array.isArray(a)?a:[a],g=w=>({target:{checked:$}})=>{u($?qh(w,b,f):Wh(w,b,f))},y=({target:w})=>c(r,Tt(w&&w.value,f,v)),S=({target:w})=>d(r,Tt(w&&w.value,f,v));return T.jsxs(T.Fragment,{children:[wr(T.jsx(pN,{required:l,htmlFor:r,children:e||void 0}),t),T.jsx(sge,{id:r,row:!!h,children:Array.isArray(f)&&f.map((w,$)=>{const C=Fu(w.value,b),x=Array.isArray(p)&&p.indexOf(w.value)!==-1,E=T.jsx(ige,{id:Wa(r,$),name:r,checked:C,disabled:n||x||s,autoFocus:i&&$===0,onChange:g($),onBlur:y,onFocus:S,"aria-describedby":Ot(r)});return T.jsx(sH,{control:E,label:w.label},$)})})]})}const Bft=p0(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),jft=p0(T.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Lft=kt("span",{shouldForwardProp:Ki})({position:"relative",display:"flex"}),zft=kt(Bft)({transform:"scale(1)"}),Vft=kt(jft)(Wr(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function lge(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o={...e,checked:t};return T.jsxs(Lft,{className:r.root,ownerState:o,children:[T.jsx(zft,{fontSize:n,className:r.background,ownerState:o}),T.jsx(Vft,{fontSize:n,className:r.dot,ownerState:o})]})}const Hft=m.createContext(void 0),uge=Hft;function Wft(){return m.useContext(uge)}function qft(e){return qr("MuiRadio",e)}const Uft=Dr("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),WJ=Uft,Kft=e=>{const{classes:t,color:r,size:n}=e,o={root:["root",`color${Gt(r)}`,n!=="medium"&&`size${Gt(n)}`]};return{...t,...Jr(o,qft,t)}},Gft=kt(age,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${Gt(r.size)}`],t[`color${Gt(r.color)}`]]}})(Wr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${WJ.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{[`&.${WJ.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function Yft(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const qJ=T.jsx(lge,{checked:!0}),UJ=T.jsx(lge,{}),Xft=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:a=qJ,color:i="primary",icon:s=UJ,name:l,onChange:u,size:c="medium",className:d,disableRipple:f=!1,...p}=n,h={...n,disableRipple:f,color:i,size:c},v=Kft(h),b=Wft();let g=o;const y=yI(u,b&&b.onChange);let S=l;return b&&(typeof g>"u"&&(g=Yft(b.value,n.value)),typeof S>"u"&&(S=b.name)),T.jsx(Gft,{type:"radio",icon:m.cloneElement(s,{fontSize:UJ.props.fontSize??c}),checkedIcon:m.cloneElement(a,{fontSize:qJ.props.fontSize??c}),ownerState:h,classes:v,name:S,checked:g,onChange:y,ref:r,className:Qt(v.root,d),...p})}),Qft=Xft;function Zft(e){return qr("MuiRadioGroup",e)}Dr("MuiRadioGroup",["root","row","error"]);const Jft=e=>{const{classes:t,row:r,error:n}=e;return Jr({root:["root",r&&"row",n&&"error"]},Zft,t)},ept=m.forwardRef(function(t,r){const{actions:n,children:o,className:a,defaultValue:i,name:s,onChange:l,value:u,...c}=t,d=m.useRef(null),f=Jft(t),[p,h]=jy({controlled:u,default:i,name:"RadioGroup"});m.useImperativeHandle(n,()=>({focus:()=>{let y=d.current.querySelector("input:not(:disabled):checked");y||(y=d.current.querySelector("input:not(:disabled)")),y&&y.focus()}}),[]);const v=ta(r,d),b=zO(s),g=m.useMemo(()=>({name:b,onChange(y){h(y.target.value),l&&l(y,y.target.value)},value:p}),[b,l,h,p]);return T.jsx(uge.Provider,{value:g,children:T.jsx(sge,{role:"radiogroup",ref:v,className:Qt(f.root,a),...c,children:o})})}),tpt=ept;function rpt({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:u,onFocus:c}){const{enumOptions:d,enumDisabled:f,emptyValue:p}=t,h=(S,w)=>l(Tt(w,d,p)),v=({target:S})=>u(e,Tt(S&&S.value,d,p)),b=({target:S})=>c(e,Tt(S&&S.value,d,p)),g=t?t.inline:!1,y=mi(r,d)??null;return T.jsxs(T.Fragment,{children:[wr(T.jsx(pN,{required:n,htmlFor:e,children:i||void 0}),s),T.jsx(tpt,{id:e,name:e,value:y,row:g,onChange:h,onBlur:v,onFocus:b,"aria-describedby":Ot(e),children:Array.isArray(d)&&d.map((S,w)=>{const $=Array.isArray(f)&&f.indexOf(S.value)!==-1;return T.jsx(sH,{control:T.jsx(Qft,{name:e,id:Wa(e,w),color:"primary"}),label:S.label,value:String(w),disabled:o||$||a},w)})})]})}function npt(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const opt=2;function cge(e,t){return e-t}function KJ(e,t){const{index:r}=e.reduce((n,o,a)=>{const i=Math.abs(t-o);return n===null||i({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},upt=e=>e;let I2;function YJ(){return I2===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?I2=CSS.supports("touch-action","none"):I2=!0),I2}function cpt(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:p,scale:h=upt,step:v=1,shiftStep:b=10,tabIndex:g,value:y}=e,S=m.useRef(void 0),[w,$]=m.useState(-1),[C,x]=m.useState(-1),[E,_]=m.useState(!1),k=m.useRef(0),[I,N]=jy({controlled:y,default:r??l,name:"Slider"}),z=c&&((ee,me,Re)=>{const je=ee.nativeEvent||ee,ze=new je.constructor(je.type,je);Object.defineProperty(ze,"target",{writable:!0,value:{value:me,name:u}}),c(ze,me,Re)}),O=Array.isArray(I);let A=O?I.slice().sort(cge):[I];A=A.map(ee=>ee==null?l:tw(ee,l,s));const M=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((ee,me)=>({value:l+v*me})):i||[],L=M.map(ee=>ee.value),[j,H]=m.useState(-1),B=m.useRef(null),F=ta(p,B),V=ee=>me=>{var je;const Re=Number(me.currentTarget.getAttribute("data-index"));wI(me.target)&&H(Re),x(Re),(je=ee==null?void 0:ee.onFocus)==null||je.call(ee,me)},D=ee=>me=>{var Re;wI(me.target)||H(-1),x(-1),(Re=ee==null?void 0:ee.onBlur)==null||Re.call(ee,me)},P=(ee,me)=>{const Re=Number(ee.currentTarget.getAttribute("data-index")),je=A[Re],ze=L.indexOf(je);let Le=me;if(M&&v==null){const $e=L[L.length-1];Le>$e?Le=$e:Leme=>{var Re;if(v!==null){const je=Number(me.currentTarget.getAttribute("data-index")),ze=A[je];let Le=null;(me.key==="ArrowLeft"||me.key==="ArrowDown")&&me.shiftKey||me.key==="PageDown"?Le=Math.max(ze-b,l):((me.key==="ArrowRight"||me.key==="ArrowUp")&&me.shiftKey||me.key==="PageUp")&&(Le=Math.min(ze+b,s)),Le!==null&&(P(me,Le),me.preventDefault())}(Re=ee==null?void 0:ee.onKeyDown)==null||Re.call(ee,me)};Od(()=>{var ee;n&&B.current.contains(document.activeElement)&&((ee=document.activeElement)==null||ee.blur())},[n]),n&&w!==-1&&$(-1),n&&j!==-1&&H(-1);const W=ee=>me=>{var Re;(Re=ee.onChange)==null||Re.call(ee,me),P(me,me.target.valueAsNumber)},U=m.useRef(void 0);let q=f;a&&f==="horizontal"&&(q+="-reverse");const J=({finger:ee,move:me=!1})=>{const{current:Re}=B,{width:je,height:ze,bottom:Le,left:$e}=Re.getBoundingClientRect();let Je;q.indexOf("vertical")===0?Je=(Le-ee.y)/ze:Je=(ee.x-$e)/je,q.indexOf("-reverse")!==-1&&(Je=1-Je);let Pe;if(Pe=apt(Je,l,s),v)Pe=spt(Pe,v,l);else{const _e=KJ(L,Pe);Pe=L[_e]}Pe=tw(Pe,l,s);let st=0;if(O){me?st=U.current:st=KJ(A,Pe),o&&(Pe=tw(Pe,A[st-1]||-1/0,A[st+1]||1/0));const _e=Pe;Pe=GJ({values:A,newValue:Pe,index:st}),o&&me||(st=Pe.indexOf(_e),U.current=st)}return{newValue:Pe,activeIndex:st}},Z=fd(ee=>{const me=k2(ee,S);if(!me)return;if(k.current+=1,ee.type==="mousemove"&&ee.buttons===0){Q(ee);return}const{newValue:Re,activeIndex:je}=J({finger:me,move:!0});P2({sliderRef:B,activeIndex:je,setActive:$}),N(Re),!E&&k.current>opt&&_(!0),z&&!T2(Re,I)&&z(ee,Re,je)}),Q=fd(ee=>{const me=k2(ee,S);if(_(!1),!me)return;const{newValue:Re}=J({finger:me,move:!0});$(-1),ee.type==="touchend"&&x(-1),d&&d(ee,Re),S.current=void 0,ie()}),oe=fd(ee=>{if(n)return;YJ()||ee.preventDefault();const me=ee.changedTouches[0];me!=null&&(S.current=me.identifier);const Re=k2(ee,S);if(Re!==!1){const{newValue:ze,activeIndex:Le}=J({finger:Re});P2({sliderRef:B,activeIndex:Le,setActive:$}),N(ze),z&&!T2(ze,I)&&z(ee,ze,Le)}k.current=0;const je=Va(B.current);je.addEventListener("touchmove",Z,{passive:!0}),je.addEventListener("touchend",Q,{passive:!0})}),ie=m.useCallback(()=>{const ee=Va(B.current);ee.removeEventListener("mousemove",Z),ee.removeEventListener("mouseup",Q),ee.removeEventListener("touchmove",Z),ee.removeEventListener("touchend",Q)},[Q,Z]);m.useEffect(()=>{const{current:ee}=B;return ee.addEventListener("touchstart",oe,{passive:YJ()}),()=>{ee.removeEventListener("touchstart",oe),ie()}},[ie,oe]),m.useEffect(()=>{n&&ie()},[n,ie]);const te=ee=>me=>{var ze;if((ze=ee.onMouseDown)==null||ze.call(ee,me),n||me.defaultPrevented||me.button!==0)return;me.preventDefault();const Re=k2(me,S);if(Re!==!1){const{newValue:Le,activeIndex:$e}=J({finger:Re});P2({sliderRef:B,activeIndex:$e,setActive:$}),N(Le),z&&!T2(Le,I)&&z(me,Le,$e)}k.current=0;const je=Va(B.current);je.addEventListener("mousemove",Z,{passive:!0}),je.addEventListener("mouseup",Q)},ae=II(O?A[0]:l,l,s),fe=II(A[A.length-1],l,s)-ae,ve=(ee={})=>{const me=bC(ee),Re={onMouseDown:te(me||{})},je={...me,...Re};return{...ee,ref:F,...je}},Se=ee=>me=>{var je;(je=ee.onMouseOver)==null||je.call(ee,me);const Re=Number(me.currentTarget.getAttribute("data-index"));x(Re)},se=ee=>me=>{var Re;(Re=ee.onMouseLeave)==null||Re.call(ee,me),x(-1)};return{active:w,axis:q,axisProps:lpt,dragging:E,focusedThumbIndex:j,getHiddenInputProps:(ee={})=>{const me=bC(ee),Re={onChange:W(me||{}),onFocus:V(me||{}),onBlur:D(me||{}),onKeyDown:R(me||{})},je={...me,...Re};return{tabIndex:g,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":h(s),"aria-valuemin":h(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:n,...ee,...je,style:{...qnt,direction:a?"rtl":"ltr",width:"100%",height:"100%"}}},getRootProps:ve,getThumbProps:(ee={})=>{const me=bC(ee),Re={onMouseOver:Se(me||{}),onMouseLeave:se(me||{})};return{...ee,...me,...Re}},marks:M,open:C,range:O,rootRef:F,trackLeap:fe,trackOffset:ae,values:A,getThumbStyle:ee=>({pointerEvents:w!==-1&&w!==ee?"none":void 0})}}const dpt=e=>!e||!Nf(e),fpt=dpt;function ppt(e){return qr("MuiSlider",e)}const mpt=Dr("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),pu=mpt,hpt=e=>{const{open:t}=e;return{offset:Qt(t&&pu.valueLabelOpen),circle:pu.valueLabelCircle,label:pu.valueLabelLabel}};function vpt(e){const{children:t,className:r,value:n}=e,o=hpt(e);return t?m.cloneElement(t,{className:Qt(t.props.className)},T.jsxs(m.Fragment,{children:[t.props.children,T.jsx("span",{className:Qt(o.offset,r),"aria-hidden":!0,children:T.jsx("span",{className:o.circle,children:T.jsx("span",{className:o.label,children:n})})})]})):null}function XJ(e){return e}const gpt=kt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Gt(r.color)}`],r.size!=="medium"&&t[`size${Gt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(Wr(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${pu.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${pu.dragging}`]:{[`& .${pu.thumb}, & .${pu.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),bpt=kt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ypt=kt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Wr(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:Wx(e.palette[t].main,.62),borderColor:Wx(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Hx(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Hx(e.palette[t].main,.5)})}}}))]}))),Spt=kt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Gt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Gt(r.size)}`]]}})(Wr(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${pu.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{[`&:hover, &.${pu.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Jo(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${pu.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Jo(e.palette[t].main,.16)}`}}}}))]}))),wpt=kt(vpt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Wr(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${pu.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${pu.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),Cpt=kt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>iN(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(Wr(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),xpt=kt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>iN(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Wr(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),$pt=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Gt(s)}`,l&&`size${Gt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Gt(l)}`,s&&`thumbColor${Gt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Jr(u,ppt,i)},Ept=({children:e})=>e,_pt=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiSlider"}),o=Ove(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":s,component:l="span",components:u={},componentsProps:c={},color:d="primary",classes:f,className:p,disableSwap:h=!1,disabled:v=!1,getAriaLabel:b,getAriaValueText:g,marks:y=!1,max:S=100,min:w=0,name:$,onChange:C,onChangeCommitted:x,orientation:E="horizontal",shiftStep:_=10,size:k="medium",step:I=1,scale:N=XJ,slotProps:z,slots:O,tabIndex:A,track:M="normal",value:L,valueLabelDisplay:j="off",valueLabelFormat:H=XJ,...B}=n,F={...n,isRtl:o,max:S,min:w,classes:f,disabled:v,disableSwap:h,orientation:E,marks:y,color:d,size:k,step:I,shiftStep:_,scale:N,track:M,valueLabelDisplay:j,valueLabelFormat:H},{axisProps:V,getRootProps:D,getHiddenInputProps:P,getThumbProps:R,open:W,active:U,axis:q,focusedThumbIndex:J,range:Z,dragging:Q,marks:oe,values:ie,trackOffset:te,trackLeap:ae,getThumbStyle:fe}=cpt({...F,rootRef:r});F.marked=oe.length>0&&oe.some(xe=>xe.label),F.dragging=Q,F.focusedThumbIndex=J;const ve=$pt(F),Se=(O==null?void 0:O.root)??u.Root??gpt,se=(O==null?void 0:O.rail)??u.Rail??bpt,pe=(O==null?void 0:O.track)??u.Track??ypt,ge=(O==null?void 0:O.thumb)??u.Thumb??Spt,de=(O==null?void 0:O.valueLabel)??u.ValueLabel??wpt,ee=(O==null?void 0:O.mark)??u.Mark??Cpt,me=(O==null?void 0:O.markLabel)??u.MarkLabel??xpt,Re=(O==null?void 0:O.input)??u.Input??"input",je=(z==null?void 0:z.root)??c.root,ze=(z==null?void 0:z.rail)??c.rail,Le=(z==null?void 0:z.track)??c.track,$e=(z==null?void 0:z.thumb)??c.thumb,Je=(z==null?void 0:z.valueLabel)??c.valueLabel,Pe=(z==null?void 0:z.mark)??c.mark,st=(z==null?void 0:z.markLabel)??c.markLabel,_e=(z==null?void 0:z.input)??c.input,De=Qc({elementType:Se,getSlotProps:D,externalSlotProps:je,externalForwardedProps:B,additionalProps:{...fpt(Se)&&{as:l}},ownerState:{...F,...je==null?void 0:je.ownerState},className:[ve.root,p]}),et=Qc({elementType:se,externalSlotProps:ze,ownerState:F,className:ve.rail}),Ie=Qc({elementType:pe,externalSlotProps:Le,additionalProps:{style:{...V[q].offset(te),...V[q].leap(ae)}},ownerState:{...F,...Le==null?void 0:Le.ownerState},className:ve.track}),Fe=Qc({elementType:ge,getSlotProps:R,externalSlotProps:$e,ownerState:{...F,...$e==null?void 0:$e.ownerState},className:ve.thumb}),vt=Qc({elementType:de,externalSlotProps:Je,ownerState:{...F,...Je==null?void 0:Je.ownerState},className:ve.valueLabel}),bt=Qc({elementType:ee,externalSlotProps:Pe,ownerState:F,className:ve.mark}),wt=Qc({elementType:me,externalSlotProps:st,ownerState:F,className:ve.markLabel}),mt=Qc({elementType:Re,getSlotProps:P,externalSlotProps:_e,ownerState:F});return T.jsxs(Se,{...De,children:[T.jsx(se,{...et}),T.jsx(pe,{...Ie}),oe.filter(xe=>xe.value>=w&&xe.value<=S).map((xe,Ae)=>{const He=II(xe.value,w,S),Ge=V[q].offset(He);let ot;return M===!1?ot=ie.includes(xe.value):ot=M==="normal"&&(Z?xe.value>=ie[0]&&xe.value<=ie[ie.length-1]:xe.value<=ie[0])||M==="inverted"&&(Z?xe.value<=ie[0]||xe.value>=ie[ie.length-1]:xe.value>=ie[0]),T.jsxs(m.Fragment,{children:[T.jsx(ee,{"data-index":Ae,...bt,...!Nf(ee)&&{markActive:ot},style:{...Ge,...bt.style},className:Qt(bt.className,ot&&ve.markActive)}),xe.label!=null?T.jsx(me,{"aria-hidden":!0,"data-index":Ae,...wt,...!Nf(me)&&{markLabelActive:ot},style:{...Ge,...wt.style},className:Qt(ve.markLabel,wt.className,ot&&ve.markLabelActive),children:xe.label}):null]},Ae)}),ie.map((xe,Ae)=>{const He=II(xe,w,S),Ge=V[q].offset(He),ot=j==="off"?Ept:de;return T.jsx(ot,{...!Nf(ot)&&{valueLabelFormat:H,valueLabelDisplay:j,value:typeof H=="function"?H(N(xe),Ae):H,index:Ae,open:W===Ae||U===Ae||j==="on",disabled:v},...vt,children:T.jsx(ge,{"data-index":Ae,...Fe,className:Qt(ve.thumb,Fe.className,U===Ae&&ve.active,J===Ae&&ve.focusVisible),style:{...Ge,...fe(Ae),...Fe.style},children:T.jsx(Re,{"data-index":Ae,"aria-label":b?b(Ae):a,"aria-valuenow":N(xe),"aria-labelledby":s,"aria-valuetext":g?g(N(xe),Ae):i,value:ie[Ae],...mt})})},Ae)})]})}),kpt=_pt;function Ppt(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:u,label:c,hideLabel:d,id:f}=e,p={value:t,label:c,id:f,name:f,..._p(s)},h=(g,y)=>{l(y??i.emptyValue)},v=({target:g})=>o(f,g&&g.value),b=({target:g})=>a(f,g&&g.value);return T.jsxs(T.Fragment,{children:[wr(T.jsx(pN,{required:u,htmlFor:f,children:c||void 0}),d),T.jsx(kpt,{disabled:n||r,onChange:h,onBlur:v,onFocus:b,valueLabelDisplay:"auto",...p,"aria-describedby":Ot(f)})]})}function Tpt(e){return qr("MuiMenuItem",e)}const Ipt=Dr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sw=Ipt,Rpt=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Fpt=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,l=Jr({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},Tpt,i);return{...i,...l}},Opt=kt(sN,{shouldForwardProp:e=>Ki(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Rpt})(Wr(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jo(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jo(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${HJ.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${HJ.inset}`]:{marginLeft:52},[`& .${Bb.root}`]:{marginTop:0,marginBottom:0},[`& .${Bb.inset}`]:{paddingLeft:36},[`& .${VJ.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${VJ.root} svg`]:{fontSize:"1.25rem"}}}]}))),Npt=m.forwardRef(function(t,r){const n=sn({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f,...p}=n,h=m.useContext(Df),v=m.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),b=m.useRef(null);Od(()=>{o&&b.current&&b.current.focus()},[o]);const g={...n,dense:v.dense,divider:s,disableGutters:l},y=Fpt(n),S=ta(b,r);let w;return n.disabled||(w=d!==void 0?d:-1),T.jsx(Df.Provider,{value:v,children:T.jsx(Opt,{ref:S,role:c,tabIndex:w,component:a,focusVisibleClassName:Qt(y.focusVisible,u),className:Qt(y.root,f),...p,ownerState:g,classes:y})})}),QJ=Npt;function Dpt({schema:e,id:t,name:r,options:n,label:o,hideLabel:a,required:i,disabled:s,placeholder:l,readonly:u,value:c,multiple:d,autofocus:f,onChange:p,onBlur:h,onFocus:v,errorSchema:b,rawErrors:g=[],registry:y,uiSchema:S,hideError:w,formContext:$,...C}){const{enumOptions:x,enumDisabled:E,emptyValue:_}=n;d=typeof d>"u"?!1:!!d;const k=d?[]:"",I=typeof c>"u"||d&&c.length<1||!d&&c===k,N=({target:{value:F}})=>p(Tt(F,x,_)),z=({target:F})=>h(t,Tt(F&&F.value,x,_)),O=({target:F})=>v(t,Tt(F&&F.value,x,_)),A=mi(c,x,d),{InputLabelProps:M,SelectProps:L,autocomplete:j,...H}=C,B=!d&&e.default===void 0;return T.jsxs(tH,{id:t,name:t,label:wr(o||void 0,a,void 0),value:!I&&typeof A<"u"?A:k,required:i,disabled:s||u,autoFocus:f,autoComplete:j,placeholder:l,error:g.length>0,onChange:N,onBlur:z,onFocus:O,...H,select:!0,InputLabelProps:{...M,shrink:!I},SelectProps:{...L,multiple:d},"aria-describedby":Ot(t),children:[B&&T.jsx(QJ,{value:"",children:l}),Array.isArray(x)&&x.map(({value:F,label:V},D)=>{const P=Array.isArray(E)&&E.indexOf(F)!==-1;return T.jsx(QJ,{value:String(D),disabled:P,children:V},D)})]})}function Apt(e){const{options:t,registry:r}=e,n=Ct("BaseInputTemplate",r,t);let o=5;return(typeof t.rows=="string"||typeof t.rows=="number")&&(o=t.rows),T.jsx(n,{...e,multiline:!0,rows:o})}function Mpt(){return{CheckboxWidget:Fft,CheckboxesWidget:Mft,RadioWidget:rpt,RangeWidget:Ppt,SelectWidget:Dpt,TextareaWidget:Apt}}function dge(){return{templates:uft(),widgets:Mpt()}}const Bpt=dge();function jpt(){return Fd(dge())}jpt();var ZJ={},YP=void 0;try{YP=window}catch{}function lH(e,t){if(typeof YP<"u"){var r=YP.__packages__=YP.__packages__||{};if(!r[e]||!ZJ[e]){ZJ[e]=t;var n=r[e]=r[e]||[];n.push(t)}}}lH("@fluentui/set-version","6.0.0");var IL=function(e,t){return IL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},IL(e,t)};function bn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");IL(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var K=function(){return K=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function Lpt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ra(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function gr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"?lw.none:lw.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(i=(a=this._config.classNameCache)!==null&&a!==void 0?a:r==null?void 0:r.keyToClassName)!==null&&i!==void 0?i:this._keyToClassName,this._preservedRules=(s=r==null?void 0:r.preservedRules)!==null&&s!==void 0?s:this._preservedRules,this._rules=(l=r==null?void 0:r.rules)!==null&&l!==void 0?l:this._rules}return e.getInstance=function(){if(Y0=vb[JJ],!Y0||Y0._lastStyleElement&&Y0._lastStyleElement.ownerDocument!==document){var t=(vb==null?void 0:vb.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);Y0=r,vb[JJ]=r}return Y0},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=K(K({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(r?r+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==lw.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case lw.insertNode:var a=o.sheet;try{a.insertRule(t,a.cssRules.length)}catch{}break;case lw.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(i){return i()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),zpt||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var a=this._findPlaceholderStyleTag();a?n=a.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function fge(){for(var e=[],t=0;t=0)a(u.split(" "));else{var c=o.argsFromClassName(u);c?a(c):r.indexOf(u)===-1&&r.push(u)}else Array.isArray(u)?a(u):typeof u=="object"&&n.push(u)}}return a(e),{classes:r,objects:n}}function pge(e){sy!==e&&(sy=e)}function mge(){return sy===void 0&&(sy=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),sy}var sy;sy=mge();function hN(){return{rtl:mge()}}var eee={};function Vpt(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=eee[r]=eee[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var R2;function Hpt(){var e;if(!R2){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?R2={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:R2={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return R2}var tee={"user-select":1};function Wpt(e,t){var r=Hpt(),n=e[t];if(tee[n]){var o=e[t+1];tee[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var qpt=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Upt(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=qpt.indexOf(r)>-1,a=r.indexOf("--")>-1,i=o||a?"":"px";e[t+1]="".concat(n).concat(i)}}var F2,$m="left",Em="right",Kpt="@noflip",ree=(F2={},F2[$m]=Em,F2[Em]=$m,F2),nee={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Gpt(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(Kpt)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf($m)>=0)t[r]=n.replace($m,Em);else if(n.indexOf(Em)>=0)t[r]=n.replace(Em,$m);else if(String(o).indexOf($m)>=0)t[r+1]=o.replace($m,Em);else if(String(o).indexOf(Em)>=0)t[r+1]=o.replace(Em,$m);else if(ree[n])t[r]=ree[n];else if(nee[o])t[r+1]=nee[o];else switch(n){case"margin":case"padding":t[r+1]=Xpt(o);break;case"box-shadow":t[r+1]=Ypt(o,0);break}}}function Ypt(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function Xpt(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function Qpt(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global(".concat(o.trim(),")")}).join(", ")]);return t.reverse().reduce(function(o,a){var i=a[0],s=a[1],l=a[2],u=o.slice(0,i),c=o.slice(s);return u+l+c},e)}function oee(e,t){return e.indexOf(":global(")>=0?e.replace(hge,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function aee(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,ly([n],t,r)):r.indexOf(",")>-1?emt(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return ly([n],t,oee(o,e))}):ly([n],t,oee(r,e))}function ly(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=_u.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var a=0,i=e;a0){r.subComponentStyles={};var f=r.subComponentStyles,p=function(h){if(n.hasOwnProperty(h)){var v=n[h];f[h]=function(b){return Au.apply(void 0,v.map(function(g){return typeof g=="function"?g(b):g}))}}};for(var u in n)p(u)}return r}function aS(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:RL}}var Gh=function(){function e(t,r){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=r,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,r){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[o],t.apply(n._parent)}catch(a){n._logError(a)}},r),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,r){var n=this,o=0,a=fn(r);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var i=function(){try{n._immediateIds&&delete n._immediateIds[o],t.apply(n._parent)}catch(s){n._logError(s)}};o=a.setTimeout(i,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(t,r){var n=fn(r);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,r){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval(function(){try{t.apply(n._parent)}catch(a){n._logError(a)}},r),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,r,n){var o=this;if(this._isDisposed)return this._noop;var a=r||0,i=!0,s=!0,l=0,u,c,d=null;n&&typeof n.leading=="boolean"&&(i=n.leading),n&&typeof n.trailing=="boolean"&&(s=n.trailing);var f=function(h){var v=Date.now(),b=v-l,g=i?a-b:a;return b>=a&&(!h||i)?(l=v,d&&(o.clearTimeout(d),d=null),u=t.apply(o._parent,c)):d===null&&s&&(d=o.setTimeout(f,g)),u},p=function(){for(var h=[],v=0;v=i&&(E=!0),c=x);var _=x-c,k=i-_,I=x-d,N=!1;return u!==null&&(I>=u&&h?N=!0:k=Math.min(k,u-I)),_>=i||N||E?b(x):(h===null||!C)&&l&&(h=o.setTimeout(g,k)),f},y=function(){return!!h},S=function(){y()&&v(Date.now())},w=function(){return y()&&b(Date.now()),f},$=function(){for(var C=[],x=0;x-1&&o._virtual.children.splice(a,1)}r._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(r))}function Ho(e){if(!(!vN()||typeof document>"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var cmt="data-is-focusable",dmt="data-is-visible",fmt="data-focuszone-id",pmt="data-is-sub-focuszone";function xge(e,t,r){return Ri(e,t,!0,!1,!1,r)}function $ge(e,t,r){return cs(e,t,!0,!1,!0,r)}function mmt(e,t,r,n){return n===void 0&&(n=!0),Ri(e,t,n,!1,!1,r,!1,!0)}function hmt(e,t,r,n){return n===void 0&&(n=!0),cs(e,t,n,!1,!0,r,!1,!0)}function vmt(e,t){var r=Ri(e,e,!0,!1,!1,!0,void 0,void 0,t);return r?(RI(r),!0):!1}function cs(e,t,r,n,o,a,i,s){if(!t||!i&&t===e)return null;var l=gN(t);if(o&&l&&(a||!(vf(t)||fH(t)))){var u=cs(e,t.lastElementChild,!0,!0,!0,a,i,s);if(u){if(s&&td(u,!0)||!s)return u;var c=cs(e,u.previousElementSibling,!0,!0,!0,a,i,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var f=cs(e,d.previousElementSibling,!0,!0,!0,a,i,s);if(f)return f;d=d.parentElement}}}if(r&&l&&td(t,s))return t;var p=cs(e,t.previousElementSibling,!0,!0,!0,a,i,s);return p||(n?null:cs(e,t.parentElement,!0,!1,!1,a,i,s))}function Ri(e,t,r,n,o,a,i,s,l){if(!t||t===e&&o&&!i)return null;var u=l?Ege:gN,c=u(t);if(r&&c&&td(t,s))return t;if(!o&&c&&(a||!(vf(t)||fH(t)))){var d=Ri(e,t.firstElementChild,!0,!0,!1,a,i,s,l);if(d)return d}if(t===e)return null;var f=Ri(e,t.nextElementSibling,!0,!0,!1,a,i,s,l);return f||(n?null:Ri(e,t.parentElement,!1,!1,!0,a,i,s,l))}function gN(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(dmt);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function Ege(e,t){var r=t??fn();return!!e&&gN(e)&&!e.hidden&&r.getComputedStyle(e).visibility!=="hidden"}function td(e,t){if(!e||e.disabled)return!1;var r=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"),n&&(r=parseInt(n,10)));var o=e.getAttribute?e.getAttribute(cmt):null,a=n!==null&&r>=0,i=!!e&&o!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||o==="true"||a);return t?r!==-1&&i:i}function vf(e){return!!(e&&e.getAttribute&&e.getAttribute(fmt))}function fH(e){return!!(e&&e.getAttribute&&e.getAttribute(pmt)==="true")}function gmt(e){var t=Ho(e),r=t&&t.activeElement;return!!(r&&As(e,r))}function _ge(e,t,r){var n=r??Ho();return smt(e,t,n)!=="true"}var O2=void 0;function RI(e){if(e){var t=fn(e);t&&(O2!==void 0&&t.cancelAnimationFrame(O2),O2=t.requestAnimationFrame(function(){e&&e.focus(),O2=void 0}))}}function bmt(e,t){for(var r=e,n=0,o=t;n-1)for(var i=r.split(/[ ,]+/),s=0;s0)&&l.preventDefault(),o.scrollHeight-Math.abs(Math.ceil(d))<=o.clientHeight&&(f?u>0:u<0)&&l.preventDefault()}};t.on(e,"touchstart",i,{passive:!1}),t.on(e,"touchmove",s,{passive:!1}),o=e}},Cmt=function(e,t){if(e){var r=function(n){n.stopPropagation()};t.on(e,"touchmove",r,{passive:!1})}},Pge=function(e){e.preventDefault()};function xmt(){var e=Ho();e&&e.body&&!xC&&(e.body.classList.add(kge),e.body.addEventListener("touchmove",Pge,{passive:!1,capture:!1})),xC++}function $mt(){if(xC>0){var e=Ho();e&&e.body&&xC===1&&(e.body.classList.remove(kge),e.body.removeEventListener("touchmove",Pge)),xC--}}function Emt(e){if(_5===void 0){var t=e??Ho(),r=t.createElement("div");r.style.setProperty("width","100px"),r.style.setProperty("height","100px"),r.style.setProperty("overflow","scroll"),r.style.setProperty("position","absolute"),r.style.setProperty("top","-9999px"),t.body.appendChild(r),_5=r.offsetWidth-r.clientWidth,t.body.removeChild(r)}return _5}function mH(e){for(var t=e,r=Ho(e);t&&t!==r.body;){if(t.getAttribute(iee)==="true")return t;t=t.parentElement}for(t=e;t&&t!==r.body;){if(t.getAttribute(iee)!=="false"){var n=getComputedStyle(t),o=n?n.getPropertyValue("overflow-y"):"";if(o&&(o==="scroll"||o==="auto"))return t}t=t.parentElement}return(!t||t===r.body)&&(t=fn(e)),t}var _mt=void 0;function BE(e){console&&console.warn&&console.warn(e)}function Tge(e,t,r,n,o){if(o===!0&&!1)for(var a,i;a1?n[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new Gh(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new fc(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(r){var n=this;return this.__resolves||(this.__resolves={}),this.__resolves[r]||(this.__resolves[r]=function(o){return n[r]=o}),this.__resolves[r]},t.prototype._updateComponentRef=function(r,n){n===void 0&&(n={}),r&&n&&r.componentRef!==n.componentRef&&(this._setComponentRef(r.componentRef,null),this._setComponentRef(n.componentRef,this))},t.prototype._warnDeprecations=function(r){this.className,this.props},t.prototype._warnMutuallyExclusive=function(r){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(r,n,o){Tge(this.className,this.props,r,n,o)},t.prototype._setComponentRef=function(r,n){!this._skipComponentRefResolution&&r&&(typeof r=="function"&&r(n),typeof r=="object"&&(r.current=n))},t})(m.Component);function kmt(e,t,r){for(var n=0,o=r.length;n(e.cacheSize||Amt)){var p=fn();!((l=p==null?void 0:p.FabricConfig)===null||l===void 0)&&l.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(r,"/").concat(n,".")),console.trace()),t.clear(),r=0,e.disableCaching=!0}return u[N2]};return a}function T5(e,t){return t=Bmt(t),e.has(t)||e.set(t,new Map),e.get(t)}function lee(e,t){if(typeof t=="function"){var r=t.__cachedInputs__;if(r)for(var n=0,o=t.__cachedInputs__;n"u"?null:WeakMap;function Lmt(){QP++}function Co(e,t,r){if(t===void 0&&(t=100),r===void 0&&(r=!1),!Kx)return e;if(!uee){var n=_u.getInstance();n&&n.onReset&&_u.getInstance().onReset(Lmt),uee=!0}var o,a=0,i=QP;return function(){for(var l=[],u=0;u0&&a>t)&&(o=cee(),a=0,i=QP),c=o;for(var d=0;d=0||l.indexOf("data-")===0||l.indexOf("aria-")===0;u&&(!r||(r==null?void 0:r.indexOf(l))===-1)&&(o[l]=e[l])}return o}function Ml(e){Dge(e,{componentDidMount:uht,componentDidUpdate:cht,componentWillUnmount:dht})}function uht(){DI(this.props.componentRef,this)}function cht(e){e.componentRef!==this.props.componentRef&&(DI(e.componentRef,null),DI(this.props.componentRef,this))}function dht(){DI(this.props.componentRef,null)}function DI(e,t){e&&(typeof e=="object"?e.current=t:typeof e=="function"&&e(t))}var Wu,fht=(Wu={},Wu[pt.up]=1,Wu[pt.down]=1,Wu[pt.left]=1,Wu[pt.right]=1,Wu[pt.home]=1,Wu[pt.end]=1,Wu[pt.tab]=1,Wu[pt.pageUp]=1,Wu[pt.pageDown]=1,Wu);function Bge(e){return!!fht[e]}var Eo="ms-Fabric--isFocusVisible",fee="ms-Fabric--isFocusHidden";function pee(e,t){e&&(e.classList.add(t?Eo:fee),e.classList.remove(t?fee:Eo))}function uh(e,t,r){var n;r?r.forEach(function(o){return pee(o.current,e)}):pee((n=fn(t))===null||n===void 0?void 0:n.document.body,e)}var mee=new WeakMap,hee=new WeakMap;function vee(e,t){var r,n=mee.get(e);return n?r=n+t:r=1,mee.set(e,r),r}function pht(e){var t=hee.get(e);if(t)return t;var r=function(i){return jge(i,e.registeredProviders)},n=function(i){return Lge(i,e.registeredProviders)},o=function(i){return zge(i,e.registeredProviders)},a=function(i){return Vge(i,e.registeredProviders)};return t={onMouseDown:r,onPointerDown:n,onKeyDown:o,onKeyUp:a},hee.set(e,t),t}var qy=m.createContext(void 0);function vH(e){var t=m.useContext(qy);m.useEffect(function(){var r,n,o,a,i=fn(e==null?void 0:e.current);if(!(!i||((r=i.FabricConfig)===null||r===void 0?void 0:r.disableFocusRects)===!0)){var s=i,l,u,c,d;if(!((n=t==null?void 0:t.providerRef)===null||n===void 0)&&n.current&&(!((a=(o=t==null?void 0:t.providerRef)===null||o===void 0?void 0:o.current)===null||a===void 0)&&a.addEventListener)){s=t.providerRef.current;var f=pht(t);l=f.onMouseDown,u=f.onPointerDown,c=f.onKeyDown,d=f.onKeyUp}else l=jge,u=Lge,c=zge,d=Vge;var p=vee(s,1);return p<=1&&(s.addEventListener("mousedown",l,!0),s.addEventListener("pointerdown",u,!0),s.addEventListener("keydown",c,!0),s.addEventListener("keyup",d,!0)),function(){var h;!i||((h=i.FabricConfig)===null||h===void 0?void 0:h.disableFocusRects)===!0||(p=vee(s,-1),p===0&&(s.removeEventListener("mousedown",l,!0),s.removeEventListener("pointerdown",u,!0),s.removeEventListener("keydown",c,!0),s.removeEventListener("keyup",d,!0)))}}},[t,e])}var yN=function(e){return vH(e.rootRef),null};function jge(e,t){uh(!1,e.target,t)}function Lge(e,t){e.pointerType!=="mouse"&&uh(!1,e.target,t)}function zge(e,t){Bge(e.which)&&uh(!0,e.target,t)}function Vge(e,t){Bge(e.which)&&uh(!0,e.target,t)}var Hge=function(e){var t=e.providerRef,r=e.layerRoot,n=m.useState([])[0],o=m.useContext(qy),a=o!==void 0&&!r,i=m.useMemo(function(){return a?void 0:{providerRef:t,registeredProviders:n,registerProvider:function(s){n.push(s),o==null||o.registerProvider(s)},unregisterProvider:function(s){o==null||o.unregisterProvider(s);var l=n.indexOf(s);l>=0&&n.splice(l,1)}}},[t,n,o,a]);return m.useEffect(function(){if(i)return i.registerProvider(i.providerRef),function(){return i.unregisterProvider(i.providerRef)}},[i]),i?m.createElement(qy.Provider,{value:i},e.children):m.createElement(m.Fragment,null,e.children)};function mht(e){var t=null;try{var r=fn();t=r?r.localStorage.getItem(e):null}catch{}return t}var uv,gee="language";function hht(e){if(e===void 0&&(e="sessionStorage"),uv===void 0){var t=Ho(),r=e==="localStorage"?mht(gee):e==="sessionStorage"?Fge(gee):void 0;r&&(uv=r),uv===void 0&&t&&(uv=t.documentElement.getAttribute("lang")),uv===void 0&&(uv="en")}return uv}function vht(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}function bee(e,t,r){r===void 0&&(r=10);var n=Math.pow(r,t);return Math.round(e*n)/n}function yee(e){for(var t=[],r=1;r-1;e[n]=a?o:Wge(e[n]||{},o,r)}else e[n]=o}return r.pop(),e}var NL=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},ght=["TEMPLATE","STYLE","SCRIPT"];function qge(e){var t=Ho(e);if(!t)return function(){};for(var r=[];e!==t.body&&e.parentElement;){for(var n=0,o=e.parentElement.children;n"u"||e){var r=fn(),n=(t=r==null?void 0:r.navigator)===null||t===void 0?void 0:t.userAgent;R5=!!n&&n.indexOf("Macintosh")!==-1}return!!R5}function yht(e){return e.clientWidth-1:!1};function Hd(e,t){for(var r=K({},t),n=0,o=Object.keys(e);nn?" (+ ".concat(uw.length-n," more)"):"")),O5=void 0,uw=[]},r)))}function Oht(e,t,r,n,o){o===void 0&&(o=!1);var a=K({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},r),i=Kge(e,t,a,n);return Nht(i,o)}function Kge(e,t,r,n,o){var a={},i=e||{},s=i.white,l=i.black,u=i.themePrimary,c=i.themeDark,d=i.themeDarker,f=i.themeDarkAlt,p=i.themeLighter,h=i.neutralLight,v=i.neutralLighter,b=i.neutralDark,g=i.neutralQuaternary,y=i.neutralQuaternaryAlt,S=i.neutralPrimary,w=i.neutralSecondary,$=i.neutralSecondaryAlt,C=i.neutralTertiary,x=i.neutralTertiaryAlt,E=i.neutralLighterAlt,_=i.accent;return s&&(a.bodyBackground=s,a.bodyFrameBackground=s,a.accentButtonText=s,a.buttonBackground=s,a.primaryButtonText=s,a.primaryButtonTextHovered=s,a.primaryButtonTextPressed=s,a.inputBackground=s,a.inputForegroundChecked=s,a.listBackground=s,a.menuBackground=s,a.cardStandoutBackground=s),l&&(a.bodyTextChecked=l,a.buttonTextCheckedHovered=l),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),c&&(a.primaryButtonBackgroundPressed=c,a.inputBackgroundCheckedHovered=c,a.inputIconHovered=c),d&&(a.linkHovered=d),f&&(a.primaryButtonBackgroundHovered=f),p&&(a.inputPlaceholderBackgroundChecked=p),h&&(a.bodyBackgroundChecked=h,a.bodyFrameDivider=h,a.bodyDivider=h,a.variantBorder=h,a.buttonBackgroundCheckedHovered=h,a.buttonBackgroundPressed=h,a.listItemBackgroundChecked=h,a.listHeaderBackgroundPressed=h,a.menuItemBackgroundPressed=h,a.menuItemBackgroundChecked=h),v&&(a.bodyBackgroundHovered=v,a.buttonBackgroundHovered=v,a.buttonBackgroundDisabled=v,a.buttonBorderDisabled=v,a.primaryButtonBackgroundDisabled=v,a.disabledBackground=v,a.listItemBackgroundHovered=v,a.listHeaderBackgroundHovered=v,a.menuItemBackgroundHovered=v),g&&(a.primaryButtonTextDisabled=g,a.disabledSubtext=g),y&&(a.listItemBackgroundCheckedHovered=y),C&&(a.disabledBodyText=C,a.variantBorderHovered=(r==null?void 0:r.variantBorderHovered)||C,a.buttonTextDisabled=C,a.inputIconDisabled=C,a.disabledText=C),S&&(a.bodyText=S,a.actionLink=S,a.buttonText=S,a.inputBorderHovered=S,a.inputText=S,a.listText=S,a.menuItemText=S),E&&(a.bodyStandoutBackground=E,a.defaultStateBackground=E),b&&(a.actionLinkHovered=b,a.buttonTextHovered=b,a.buttonTextChecked=b,a.buttonTextPressed=b,a.inputTextHovered=b,a.menuItemTextHovered=b),w&&(a.bodySubtext=w,a.focusBorder=w,a.inputBorder=w,a.smallInputBorder=w,a.inputPlaceholderText=w),$&&(a.buttonBorder=$),x&&(a.disabledBodySubtext=x,a.disabledBorder=x,a.buttonBackgroundChecked=x,a.menuDivider=x),_&&(a.accentButtonBackground=_),t!=null&&t.elevation4&&(a.cardShadow=t.elevation4),!n&&(t!=null&&t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=K(K({},a),r),a}function Nht(e,t){var r="";return t===!0&&(r=" /* @deprecated */"),e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}function Dht(e,t){var r,n,o;t===void 0&&(t={});var a=yee({},e,t,{semanticColors:Kge(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((r=t.palette)===null||r===void 0)&&r.themePrimary&&!(!((n=t.palette)===null||n===void 0)&&n.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var i=0,s=Object.keys(a.fonts);i"u"?global:window,xee=$C&&$C.CSPSettings&&$C.CSPSettings.nonce,wl=kvt();function kvt(){var e=$C.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=Lb(Lb({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=Lb(Lb({},e),{registeredThemableStyles:[]})),$C.__themeState__=e,e}function Pvt(e,t){wl.loadStyles?wl.loadStyles(Qge(e).styleString,e):Fvt(e)}function Tvt(e){wl.theme=e,Rvt()}function Ivt(e){e===void 0&&(e=3),(e===3||e===2)&&($ee(wl.registeredStyles),wl.registeredStyles=[]),(e===3||e===1)&&($ee(wl.registeredThemableStyles),wl.registeredThemableStyles=[])}function $ee(e){e.forEach(function(t){var r=t&&t.styleElement;r&&r.parentElement&&r.parentElement.removeChild(r)})}function Rvt(){if(wl.theme){for(var e=[],t=0,r=wl.registeredThemableStyles;t0&&(Ivt(1),Pvt([].concat.apply([],e)))}}function Qge(e){var t=wl.theme,r=!1,n=(e||[]).map(function(o){var a=o.theme;if(a){r=!0;var i=t?t[a]:void 0,s=o.defaultValue||"inherit";return t&&!i&&console&&!(a in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(a,'". Falling back to "').concat(s,'".')),i||s}else return o.rawString});return{styleString:n.join(""),themable:r}}function Fvt(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],r=document.createElement("style"),n=Qge(e),o=n.styleString,a=n.themable;r.setAttribute("data-load-themed-styles","true"),xee&&r.setAttribute("nonce",xee),r.appendChild(document.createTextNode(o)),wl.perf.count++,t.appendChild(r);var i=document.createEvent("HTMLEvents");i.initEvent("styleinsert",!0,!1),i.args={newStyle:r},document.dispatchEvent(i);var s={styleElement:r,themableStyle:e};a?wl.registeredThemableStyles.push(s):wl.registeredStyles.push(s)}}var Jl=LE({}),Ovt=[],jL="theme";function Zge(){var e,t,r,n=fn();!((t=n==null?void 0:n.FabricConfig)===null||t===void 0)&&t.legacyTheme?Dvt(n.FabricConfig.legacyTheme):gu.getSettings([jL]).theme||(!((r=n==null?void 0:n.FabricConfig)===null||r===void 0)&&r.theme&&(Jl=LE(n.FabricConfig.theme)),gu.applySettings((e={},e[jL]=Jl,e)))}Zge();function Nvt(e){return e===void 0&&(e=!1),e===!0&&(Jl=LE({},e)),Jl}function Dvt(e,t){var r;return t===void 0&&(t=!1),Jl=LE(e,t),Tvt(K(K(K(K({},Jl.palette),Jl.semanticColors),Jl.effects),Avt(Jl))),gu.applySettings((r={},r[jL]=Jl,r)),Ovt.forEach(function(n){try{n(Jl)}catch{}}),Jl}function Avt(e){for(var t={},r=0,n=Object.keys(e.fonts);rt.bottom||e.leftt.right)}function BI(e,t){var r=[];return e.topt.bottom&&r.push(Vt.bottom),e.leftt.right&&r.push(Vt.right),r}function Wi(e,t){return e[Vt[t]]}function kee(e,t,r){return e[Vt[t]]=r,e}function Xx(e,t){var r=sS(t);return(Wi(e,r.positiveEdge)+Wi(e,r.negativeEdge))/2}function $N(e,t){return e>0?t:t*-1}function LL(e,t){return $N(e,Wi(t,e))}function md(e,t,r){var n=Wi(e,r)-Wi(t,r);return $N(r,n)}function Ky(e,t,r,n){n===void 0&&(n=!0);var o=Wi(e,t)-r,a=kee(e,t,r);return n&&(a=kee(e,t*-1,Wi(e,t*-1)-o)),a}function Qx(e,t,r,n){return n===void 0&&(n=0),Ky(e,r,Wi(t,r)+$N(r,n))}function Bvt(e,t,r,n){n===void 0&&(n=0);var o=r*-1,a=$N(o,n);return Ky(e,r*-1,Wi(t,r)+a)}function jI(e,t,r){var n=LL(r,e);return n>LL(r,t)}function jvt(e,t){for(var r=BI(e,t),n=0,o=0,a=r;o=n}function zvt(e,t,r,n,o,a,i){o===void 0&&(o=!1),i===void 0&&(i=0);var s=[Vt.left,Vt.right,Vt.bottom,Vt.top];gn()&&(s[0]*=-1,s[1]*=-1);for(var l=e,u=n.targetEdge,c=n.alignmentEdge,d,f=u,p=c,h=0;h<4;h++){if(jI(l,r,u))return{elementRectangle:l,targetEdge:u,alignmentEdge:c};if(o&&Lvt(t,r,u,a)){switch(u){case Vt.bottom:l.bottom=r.bottom;break;case Vt.top:l.top=r.top;break}return{elementRectangle:l,targetEdge:u,alignmentEdge:c,forcedInBounds:!0}}else{var v=jvt(l,r);(!d||v0&&(s.indexOf(u*-1)>-1?u=u*-1:(c=u,u=s.slice(-1)[0]),l=LI(e,t,{targetEdge:u,alignmentEdge:c},i))}}return l=LI(e,t,{targetEdge:f,alignmentEdge:p},i),{elementRectangle:l,targetEdge:f,alignmentEdge:p}}function Vvt(e,t,r,n){var o=e.alignmentEdge,a=e.targetEdge,i=e.elementRectangle,s=o*-1,l=LI(i,t,{targetEdge:a,alignmentEdge:s},r,n);return{elementRectangle:l,targetEdge:a,alignmentEdge:s}}function Hvt(e,t,r,n,o,a,i,s,l){o===void 0&&(o=!1),i===void 0&&(i=0);var u=n.alignmentEdge,c=n.alignTargetEdge,d={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:u};!s&&!l&&(d=zvt(e,t,r,n,o,a,i));var f=BI(d.elementRectangle,r),p=s?-d.targetEdge:void 0;if(f.length>0)if(c)if(d.alignmentEdge&&f.indexOf(d.alignmentEdge*-1)>-1){var h=Vvt(d,t,i,l);if(bH(h.elementRectangle,r))return h;d=D5(BI(h.elementRectangle,r),d,r,p)}else d=D5(f,d,r,p);else d=D5(f,d,r,p);return d}function D5(e,t,r,n){for(var o=0,a=e;oMath.abs(md(e,r,t*-1))?t*-1:t}function Wvt(e,t,r){return r!==void 0&&Wi(e,t)===Wi(r,t)}function qvt(e,t,r,n,o,a,i,s){var l={},u=EN(t),c=a?r:r*-1,d=o||sS(r).positiveEdge;return(!i||Wvt(e,igt(d),n))&&(d=e0e(e,d,n)),l[Vt[c]]=md(e,u,c),l[Vt[d]]=md(e,u,d),s&&(l[Vt[c*-1]]=md(e,u,c*-1),l[Vt[d*-1]]=md(e,u,d*-1)),l}function Uvt(e){return Math.sqrt(e*e*2)}function Kvt(e,t,r){if(e===void 0&&(e=ho.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var n=K({},_ee[e]);return gn()?(n.alignmentEdge&&n.alignmentEdge%2===0&&(n.alignmentEdge=n.alignmentEdge*-1),t!==void 0?_ee[t]:n):n}function Gvt(e,t,r,n,o){return e.isAuto&&(e.alignmentEdge=t0e(e.targetEdge,t,r)),e.alignTargetEdge=o,e}function t0e(e,t,r){var n=Xx(t,e),o=Xx(r,e),a=sS(e),i=a.positiveEdge,s=a.negativeEdge;return n<=o?i:s}function Yvt(e,t,r,n,o,a,i,s,l){a===void 0&&(a=!1);var u=LI(e,t,n,o,l);return bH(u,r)?{elementRectangle:u,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:Hvt(u,t,r,n,a,i,o,s,l)}function Xvt(e,t,r){var n=e.targetEdge*-1,o=new vu(0,e.elementRectangle.width,0,e.elementRectangle.height),a={},i=e0e(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:sS(n).positiveEdge,r),s=md(e.elementRectangle,e.targetRectangle,n),l=s>Math.abs(Wi(t,n));return a[Vt[n]]=Wi(t,n),a[Vt[i]]=md(t,o,i),{elementPosition:K({},a),closestEdge:t0e(e.targetEdge,t,o),targetEdge:n,hideBeak:!l}}function Qvt(e,t){var r=t.targetRectangle,n=sS(t.targetEdge),o=n.positiveEdge,a=n.negativeEdge,i=Xx(r,t.targetEdge),s=new vu(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new vu(0,e,0,e);return l=Ky(l,t.targetEdge*-1,-e/2),l=Jge(l,t.targetEdge*-1,i-LL(o,t.elementRectangle)),jI(l,s,o)?jI(l,s,a)||(l=Qx(l,s,a)):l=Qx(l,s,o),l}function EN(e){var t=e.getBoundingClientRect();return new vu(t.left,t.right,t.top,t.bottom)}function Zvt(e){return new vu(e.left,e.right,e.top,e.bottom)}function Jvt(e,t){var r;if(t){if(t.preventDefault){var n=t;r=new vu(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)r=EN(t);else{var o=t,a=o.left||o.x,i=o.top||o.y,s=o.right||a,l=o.bottom||i;r=new vu(a,s,i,l)}if(!bH(r,e))for(var u=BI(r,e),c=0,d=u;c=n&&o&&u.top<=o&&u.bottom>=o&&(i={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return i}function lgt(e,t){return sgt(e,t)}function ugt(e,t,r){return r0e(e,t,r)}function cgt(e){return ngt(e)}function Qh(){var e=m.useRef();return e.current||(e.current=new Gh),m.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function bu(e){var t=m.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function dgt(e){var t=m.useState(e),r=t[0],n=t[1],o=bu(function(){return function(){n(!0)}}),a=bu(function(){return function(){n(!1)}}),i=bu(function(){return function(){n(function(s){return!s})}});return[r,{setTrue:o,setFalse:a,toggle:i}]}function Nd(e,t,r){var n=m.useState(t),o=n[0],a=n[1],i=bu(e!==void 0),s=i?e:o,l=m.useRef(s),u=m.useRef(r);m.useEffect(function(){l.current=s,u.current=r});var c=bu(function(){return function(d,f){var p=typeof d=="function"?d(l.current):d;u.current&&u.current(f,p),i||a(p)}});return[s,c]}function A5(e){var t=m.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Uy(function(){t.current=e},[e]),bu(function(){return function(){for(var r=[],n=0;n0&&u>l&&(s=u-l>1)}o!==s&&a(s)}}),function(){return r.dispose()}}),o}function hgt(e){var t=e.originalElement,r=e.containsFocus;t&&r&&t!==fn()&&setTimeout(function(){var n;(n=t.focus)===null||n===void 0||n.call(t)},0)}function vgt(e,t){var r=e.onRestoreFocus,n=r===void 0?hgt:r,o=m.useRef(),a=m.useRef(!1);m.useEffect(function(){return o.current=Ho().activeElement,gmt(t.current)&&(a.current=!0),function(){var i;n==null||n({originalElement:o.current,containsFocus:a.current,documentContainsFocus:((i=Ho())===null||i===void 0?void 0:i.hasFocus())||!1}),o.current=void 0}},[]),Zx(t,"focus",m.useCallback(function(){a.current=!0},[]),!0),Zx(t,"blur",m.useCallback(function(i){t.current&&i.relatedTarget&&!t.current.contains(i.relatedTarget)&&(a.current=!1)},[]),!0)}function ggt(e,t){var r=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;m.useEffect(function(){if(r&&t.current){var n=qge(t.current);return n}},[t,r])}var yH=m.forwardRef(function(e,t){var r=Hd({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),n=m.useRef(),o=Nc(n,t);ggt(r,n),vgt(r,n);var a=r.role,i=r.className,s=r.ariaLabel,l=r.ariaLabelledBy,u=r.ariaDescribedBy,c=r.style,d=r.children,f=r.onDismiss,p=mgt(r,n),h=m.useCallback(function(b){switch(b.which){case pt.escape:f&&(f(b),b.preventDefault(),b.stopPropagation());break}},[f]),v=_N();return Zx(v,"keydown",h),m.createElement("div",K({ref:o},an(r,pi),{className:i,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:h,style:K({overflowY:p?"scroll":void 0,outline:"none"},c)}),d)});yH.displayName="Popup";var bgt=function(){var e;return((e=o0e())!==null&&e!==void 0?e:typeof document<"u")?document:void 0},SH=function(){var e;return((e=_N())!==null&&e!==void 0?e:typeof window<"u")?window:void 0},Jx=function(e){var t,r;return((r=(t=e==null?void 0:e.window)===null||t===void 0?void 0:t.document)!==null&&r!==void 0?r:typeof document<"u")?document:void 0},kN=function(e){var t;return((t=e==null?void 0:e.window)!==null&&t!==void 0?t:typeof window<"u")?window:void 0},X0,ygt="CalloutContentBase",Sgt=(X0={},X0[Vt.top]=fl.slideUpIn10,X0[Vt.bottom]=fl.slideDownIn10,X0[Vt.left]=fl.slideLeftIn10,X0[Vt.right]=fl.slideRightIn10,X0),Pee={top:0,left:0},wgt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Cgt=["role","aria-roledescription"],i0e={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:ho.bottomAutoEdge},xgt=yn({disableCaching:!0});function $gt(e,t,r){var n=e.bounds,o=e.minPagePadding,a=o===void 0?i0e.minPagePadding:o,i=e.target,s=m.useState(!1),l=s[0],u=s[1],c=m.useRef(),d=m.useCallback(function(){if(!c.current||l){var p=typeof n=="function"?r?n(i,r):void 0:n;!p&&r&&(p=lgt(t.current,r),p={top:p.top+a,left:p.left+a,right:p.right-a,bottom:p.bottom-a,width:p.width-a*2,height:p.height-a*2}),c.current=p,l&&u(!1)}return c.current},[n,a,i,t,r,l]),f=Qh();return Zx(r,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function Egt(e,t,r,n){var o,a=e.calloutMaxHeight,i=e.finalHeight,s=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=e.gapSpace,d=e.beakWidth,f=e.isBeakVisible,p=m.useState(),h=p[0],v=p[1],b=(o=n==null?void 0:n.elementPosition)!==null&&o!==void 0?o:{},g=b.top,y=b.bottom,S=r!=null&&r.current?cgt(r.current):void 0;return m.useEffect(function(){var w,$=(w=t())!==null&&w!==void 0?w:{},C=$.top,x=$.bottom,E;(n==null?void 0:n.targetEdge)===Vt.top&&(S!=null&&S.top)&&(x=S.top-ugt(f,d,c)),typeof g=="number"&&x?E=x-g:typeof y=="number"&&typeof C=="number"&&x&&(E=x-C-y),!a&&!u||a&&E&&a>E?v(E):v(a||void 0)},[y,a,i,s,l,t,u,n,g,c,d,f,S]),h}function _gt(e,t,r,n,o,a){var i=m.useState(),s=i[0],l=i[1],u=m.useRef(0),c=m.useRef(),d=Qh(),f=e.hidden,p=e.target,h=e.finalHeight,v=e.calloutMaxHeight,b=e.onPositioned,g=e.directionalHint,y=e.hideOverflow,S=e.preferScrollResizePositioning,w=SH(),$=m.useRef(),C;$.current!==a.current&&($.current=a.current,C=a.current?w==null?void 0:w.getComputedStyle(a.current):void 0);var x=C==null?void 0:C.overflowY;return m.useEffect(function(){if(f)l(void 0),u.current=0;else{var E=d.requestAnimationFrame(function(){var _,k;if(t.current&&r){var I=K(K({},e),{target:n.current,bounds:o()}),N=r.cloneNode(!0);N.style.maxHeight=v?"".concat(v):"",N.style.visibility="hidden",(_=r.parentElement)===null||_===void 0||_.appendChild(N);var z=c.current===p?s:void 0,O=y||x==="clip"||x==="hidden",A=S&&!O,M=h?agt(I,t.current,N,z,w):ogt(I,t.current,N,z,A,void 0,w);(k=r.parentElement)===null||k===void 0||k.removeChild(N),!s&&M||s&&M&&!Igt(s,M)&&u.current<5?(u.current++,l(M)):u.current>0&&(u.current=0,b==null||b(s))}},r);return c.current=p,function(){d.cancelAnimationFrame(E),c.current=void 0}}},[f,g,d,r,v,t,n,h,o,b,s,e,p,y,S,x,w]),s}function kgt(e,t,r){var n=e.hidden,o=e.setInitialFocus,a=Qh(),i=!!t;m.useEffect(function(){if(!n&&o&&i&&r){var s=a.requestAnimationFrame(function(){return vmt(r)},r);return function(){return a.cancelAnimationFrame(s)}}},[n,i,a,r,o])}function Pgt(e,t,r,n,o){var a=e.hidden,i=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,f=e.preventDismissOnEvent,p=m.useRef(!1),h=Qh(),v=bu([function(){p.current=!0},function(){p.current=!1}]),b=!!t;return m.useEffect(function(){var g=function(x){b&&!s&&w(x)},y=function(x){!l&&!(f&&f(x))&&(i==null||i(x))},S=function(x){u||w(x)},w=function(x){var E=x.composedPath?x.composedPath():[],_=E.length>0?E[0]:x.target,k=r.current&&!As(r.current,_);if(k&&p.current){p.current=!1;return}if(!n.current&&k||x.target!==o&&k&&(!n.current||"stopPropagation"in n.current||c||_!==n.current&&!As(n.current,_))){if(f&&f(x))return;i==null||i(x)}},$=function(x){d&&(f&&!f(x)||!f&&!u)&&!(o!=null&&o.document.hasFocus())&&x.relatedTarget===null&&(i==null||i(x))},C=new Promise(function(x){h.setTimeout(function(){if(!a&&o){var E=[Ni(o,"scroll",g,!0),Ni(o,"resize",y,!0),Ni(o.document.documentElement,"focus",S,!0),Ni(o.document.documentElement,"click",S,!0),Ni(o,"blur",$,!0)];x(function(){E.forEach(function(_){return _()})})}},0)});return function(){C.then(function(x){return x()})}},[a,h,r,n,o,i,d,c,u,l,s,b,f]),v}var s0e=m.memo(m.forwardRef(function(e,t){var r=Hd(i0e,e),n=r.styles,o=r.style,a=r.ariaLabel,i=r.ariaDescribedBy,s=r.ariaLabelledBy,l=r.className,u=r.isBeakVisible,c=r.children,d=r.beakWidth,f=r.calloutWidth,p=r.calloutMaxWidth,h=r.calloutMinWidth,v=r.doNotLayer,b=r.finalHeight,g=r.hideOverflow,y=g===void 0?!!b:g,S=r.backgroundColor,w=r.calloutMaxHeight,$=r.onScroll,C=r.shouldRestoreFocus,x=C===void 0?!0:C,E=r.target,_=r.hidden,k=r.onLayerMounted,I=r.popupProps,N=m.useRef(null),z=m.useRef(null),O=Nc(z,I==null?void 0:I.ref),A=m.useState(null),M=A[0],L=A[1],j=m.useCallback(function(fe){L(fe)},[]),H=Nc(N,t),B=a0e(r.target,{current:M}),F=B[0],V=B[1],D=$gt(r,F,V),P=_gt(r,N,M,F,D,O),R=Egt(r,D,F,P),W=Pgt(r,P,N,F,V),U=W[0],q=W[1],J=(P==null?void 0:P.elementPosition.top)&&(P==null?void 0:P.elementPosition.bottom),Z=K(K({},P==null?void 0:P.elementPosition),{maxHeight:R});if(J&&(Z.bottom=void 0),kgt(r,P,M),m.useEffect(function(){_||k==null||k()},[_]),!V)return null;var Q=y,oe=u&&!!E,ie=xgt(n,{theme:r.theme,className:l,overflowYHidden:Q,calloutWidth:f,positions:P,beakWidth:d,backgroundColor:S,calloutMaxWidth:p,calloutMinWidth:h,doNotLayer:v}),te=K(K({maxHeight:w||"100%"},o),Q&&{overflowY:"hidden"}),ae=r.hidden?{visibility:"hidden"}:void 0;return m.createElement("div",{ref:H,className:ie.container,style:ae},m.createElement("div",K({},an(r,pi,Cgt),{className:Xr(ie.root,P&&P.targetEdge&&Sgt[P.targetEdge]),style:P?K({},Z):wgt,tabIndex:-1,ref:j}),oe&&m.createElement("div",{className:ie.beak,style:Tgt(P)}),oe&&m.createElement("div",{className:ie.beakCurtain}),m.createElement(yH,K({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:i,ariaLabel:a,ariaLabelledBy:s,className:ie.calloutMain,onDismiss:r.onDismiss,onMouseDown:U,onMouseUp:q,onRestoreFocus:r.onRestoreFocus,onScroll:$,shouldRestoreFocus:x,style:te},I,{ref:O}),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:pH(e,t)});function Tgt(e){var t,r,n=K(K({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((r=e==null?void 0:e.beakPosition)===null||r===void 0)&&r.hideBeak?"none":void 0});return!n.top&&!n.bottom&&!n.left&&!n.right&&(n.left=Pee.left,n.top=Pee.top),n}function Igt(e,t){return Tee(e.elementPosition,t.elementPosition)&&Tee(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function Tee(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=e[r],o=t[r];if(n!==void 0&&o!==void 0){if(n.toFixed(2)!==o.toFixed(2))return!1}else return!1}return!0}s0e.displayName=ygt;function Rgt(e){return{height:e,width:e}}var Fgt={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Ogt=function(e){var t,r=e.theme,n=e.className,o=e.overflowYHidden,a=e.calloutWidth,i=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=Ia(Fgt,r),f=r.semanticColors,p=r.effects;return{container:[d.container,{position:"relative"}],root:[d.root,r.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Yx.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Ze]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},Evt(),n,!!a&&{width:a},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Rgt(i),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},Ngt=Sn(s0e,Ogt,void 0,{scope:"CalloutContent"}),l0e=m.createContext(void 0),Dgt=function(){return function(){}};l0e.Provider;function Agt(){var e;return(e=m.useContext(l0e))!==null&&e!==void 0?e:Dgt}var Mgt=yn(),Bgt=Co(function(e,t){return LE(K(K({},e),{rtl:t}))}),jgt=function(e){var t=e.theme,r=e.dir,n=gn(t)?"rtl":"ltr",o=gn()?"rtl":"ltr",a=r||n;return{rootDir:a!==n||a!==o?a:r,needsTheme:a!==n}},u0e=m.forwardRef(function(e,t){var r=e.className,n=e.theme,o=e.applyTheme,a=e.applyThemeToBody,i=e.styles,s=Mgt(i,{theme:n,applyTheme:o,className:r}),l=m.useRef(null);return zgt(a,s,l),m.createElement(m.Fragment,null,Lgt(e,s,l,t))});u0e.displayName="FabricBase";function Lgt(e,t,r,n){var o=t.root,a=e.as,i=a===void 0?"div":a,s=e.dir,l=e.theme,u=an(e,pi,["dir"]),c=jgt(e),d=c.rootDir,f=c.needsTheme,p=m.createElement(Hge,{providerRef:r},m.createElement(i,K({dir:d},u,{className:o,ref:Nc(r,n)})));return f&&(p=m.createElement(Zmt,{settings:{theme:Bgt(l,s==="rtl")}},p)),p}function zgt(e,t,r){var n=t.bodyThemed;return m.useEffect(function(){if(e){var o=Ho(r.current);if(o)return o.body.classList.add(n),function(){o.body.classList.remove(n)}}},[n,e,r]),r}var M5={fontFamily:"inherit"},Vgt={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Hgt=function(e){var t=e.applyTheme,r=e.className,n=e.preventBlanketFontInheritance,o=e.theme,a=Ia(Vgt,o);return{root:[a.root,o.fonts.medium,{color:o.palette.neutralPrimary},!n&&{"& button":M5,"& input":M5,"& textarea":M5},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},r],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},Wgt=Sn(u0e,Hgt,void 0,{scope:"Fabric"}),EC={},wH={},c0e="fluent-default-layer-host",qgt="#".concat(c0e);function Ugt(e,t){EC[e]||(EC[e]=[]),EC[e].push(t);var r=wH[e];if(r)for(var n=0,o=r;n=0&&(r.splice(n,1),r.length===0&&delete EC[e])}var o=wH[e];if(o)for(var a=0,i=o;a0&&t.current.naturalHeight>0||t.current.complete&&v0t.test(a):!1;d&&l(fs.loaded)}}),m.useEffect(function(){r==null||r(s)},[s]);var u=m.useCallback(function(d){n==null||n(d),a&&l(fs.loaded)},[a,n]),c=m.useCallback(function(d){o==null||o(d),l(fs.error)},[o]);return[s,u,c]}var p0e=m.forwardRef(function(e,t){var r=m.useRef(),n=m.useRef(),o=b0t(e,n),a=o[0],i=o[1],s=o[2],l=an(e,lht,["width","height"]),u=e.src,c=e.alt,d=e.width,f=e.height,p=e.shouldFadeIn,h=p===void 0?!0:p,v=e.shouldStartVisible,b=e.className,g=e.imageFit,y=e.role,S=e.maximizeFrame,w=e.styles,$=e.theme,C=e.loading,x=y0t(e,a,n,r),E=h0t(w,{theme:$,className:b,width:d,height:f,maximizeFrame:S,shouldFadeIn:h,shouldStartVisible:v,isLoaded:a===fs.loaded||a===fs.notLoaded&&e.shouldStartVisible,isLandscape:x===e$.landscape,isCenter:g===Ns.center,isCenterContain:g===Ns.centerContain,isCenterCover:g===Ns.centerCover,isContain:g===Ns.contain,isCover:g===Ns.cover,isNone:g===Ns.none,isError:a===fs.error,isNotImageFit:g===void 0});return m.createElement("div",{className:E.root,style:{width:d,height:f},ref:r},m.createElement("img",K({},l,{onLoad:i,onError:s,key:g0t+e.src||"",className:E.image,ref:Nc(n,t),src:u,alt:c,role:y,loading:C})))});p0e.displayName="ImageBase";function y0t(e,t,r,n){var o=m.useRef(t),a=m.useRef();return(a===void 0||o.current===fs.notLoaded&&t===fs.loaded)&&(a.current=S0t(e,t,r,n)),o.current=t,a.current}function S0t(e,t,r,n){var o=e.imageFit,a=e.width,i=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===fs.loaded&&(o===Ns.cover||o===Ns.contain||o===Ns.centerContain||o===Ns.centerCover)&&r.current&&n.current){var s=void 0;typeof a=="number"&&typeof i=="number"&&o!==Ns.centerContain&&o!==Ns.centerCover?s=a/i:s=n.current.clientWidth/n.current.clientHeight;var l=r.current.naturalWidth/r.current.naturalHeight;if(l>s)return e$.landscape}return e$.portrait}var w0t={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},C0t=function(e){var t=e.className,r=e.width,n=e.height,o=e.maximizeFrame,a=e.isLoaded,i=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,f=e.isCenterContain,p=e.isCenterCover,h=e.isNone,v=e.isError,b=e.isNotImageFit,g=e.theme,y=Ia(w0t,g),S={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},w=fn(),$=w!==void 0&&w.navigator.msMaxTouchPoints===void 0,C=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,g.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],a&&i&&!s&&fl.fadeIn400,(u||c||d||f||p)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},a&&["is-loaded",{opacity:1}],u&&[y.imageCenter,S],c&&[y.imageContain,$&&{width:"100%",height:"100%",objectFit:"contain"},!$&&C,!$&&S],d&&[y.imageCover,$&&{width:"100%",height:"100%",objectFit:"cover"},!$&&C,!$&&S],f&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},S],p&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},S],h&&[y.imageNone,{width:"auto",height:"auto"}],b&&[!!r&&!n&&{height:"auto",width:"100%"},!r&&!!n&&{height:"100%",width:"auto"},!!r&&!!n&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!a&&"is-notLoaded",i&&"is-fadeIn",v&&"is-error"]}},t$=Sn(p0e,C0t,void 0,{scope:"Image"},!0);t$.displayName="Image";var lg=aS({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),m0e="ms-Icon",x0t=function(e){var t=e.className,r=e.iconClassName,n=e.isPlaceholder,o=e.isImage,a=e.styles;return{root:[n&&lg.placeholder,lg.root,o&&lg.image,r,t,a&&a.root,a&&a.imageContainer]}},h0e=Co(function(e){var t=Rht(e)||{subset:{},code:void 0},r=t.code,n=t.subset;return r?{children:r,iconClassName:n.className,fontFamily:n.fontFace&&n.fontFace.fontFamily,mergeImageProps:n.mergeImageProps}:null},void 0,!0),zL=function(e){var t=e.iconName,r=e.className,n=e.style,o=n===void 0?{}:n,a=h0e(t)||{},i=a.iconClassName,s=a.children,l=a.fontFamily,u=a.mergeImageProps,c=an(e,Uo),d=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},p=s;return u&&typeof s=="object"&&typeof s.props=="object"&&d&&(p=m.cloneElement(s,{alt:d})),m.createElement("i",K({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Xr(m0e,lg.root,i,!t&&lg.placeholder,r),style:K({fontFamily:l},o)}),p)};Co(function(e,t,r){return zL({iconName:e,className:t,"aria-label":r})});var $0t=yn({cacheSize:100}),E0t=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;return n._onImageLoadingStateChange=function(o){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(o),o===fs.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return t.prototype.render=function(){var r=this.props,n=r.children,o=r.className,a=r.styles,i=r.iconName,s=r.imageErrorAs,l=r.theme,u=typeof i=="string"&&i.length===0,c=!!this.props.imageProps||this.props.iconType===VI.image||this.props.iconType===VI.Image,d=h0e(i)||{},f=d.iconClassName,p=d.children,h=d.mergeImageProps,v=$0t(a,{theme:l,className:o,iconClassName:f,isImage:c,isPlaceholder:u}),b=c?"span":"i",g=an(this.props,Uo,["aria-label"]),y=this.state.imageLoadError,S=K(K({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),w=y&&s||t$,$=this.props["aria-label"]||this.props.ariaLabel,C=S.alt||$||this.props.title,x=!!(C||this.props["aria-labelledby"]||S["aria-label"]||S["aria-labelledby"]),E=x?{role:c||h?void 0:"img","aria-label":c||h?void 0:C}:{"aria-hidden":!0},_=p;return h&&p&&typeof p=="object"&&C&&(_=m.cloneElement(p,{alt:C})),m.createElement(b,K({"data-icon-name":i},E,g,h?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?m.createElement(w,K({},S)):n||_)},t}(m.Component),Ea=Sn(E0t,x0t,void 0,{scope:"Icon"},!0);Ea.displayName="Icon";var _0t=function(e){var t=e.className,r=e.imageProps,n=an(e,Uo,["aria-label","aria-labelledby","title","aria-describedby"]),o=r.alt||e["aria-label"],a=o||e["aria-labelledby"]||e.title||r["aria-label"]||r["aria-labelledby"]||r.title,i={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=a?{}:{"aria-hidden":!0};return m.createElement("div",K({},s,n,{className:Xr(m0e,lg.root,lg.image,t)}),m.createElement(t$,K({},i,r,{alt:a?o:""})))},VL={none:0,all:1,inputOnly:2},Ti;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(Ti||(Ti={}));var M2="data-is-focusable",k0t="data-disable-click-on-enter",B5="data-focuszone-id",Uc="tabindex",j5="data-no-vertical-wrap",L5="data-no-horizontal-wrap",z5=999999999,cw=-999999999,V5,P0t="ms-FocusZone";function T0t(e,t){var r;typeof MouseEvent=="function"?r=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(r)}function I0t(){return V5||(V5=ad({selectors:{":focus":{outline:"none"}}},P0t)),V5}var dw={},B2=new Set,R0t=["text","number","password","email","tel","url","search","textarea"],cf=!1,VE=function(e){bn(t,e);function t(r){var n=this,o,a,i,s;n=e.call(this,r)||this,n._root=m.createRef(),n._mergedRef=Uge(),n._onFocus=function(u){if(!n._portalContainsElement(u.target)){var c=n.props,d=c.onActiveElementChanged,f=c.doNotAllowFocusEventToPropagate,p=c.stopFocusPropagation,h=c.onFocusNotification,v=c.onFocus,b=c.shouldFocusInnerElementWhenReceivedFocus,g=c.defaultTabbableElement,y=n._isImmediateDescendantOfZone(u.target),S;if(y)S=u.target;else for(var w=u.target;w&&w!==n._root.current;){if(td(w)&&n._isImmediateDescendantOfZone(w)){S=w;break}w=ic(w,cf)}if(b&&u.target===n._root.current){var $=g&&typeof g=="function"&&n._root.current&&g(n._root.current);$&&td($)?(S=$,$.focus()):(n.focus(!0),n._activeElement&&(S=null))}var C=!n._activeElement;S&&S!==n._activeElement&&((y||C)&&n._setFocusAlignment(S,!0,!0),n._activeElement=S,C&&n._updateTabIndexes()),d&&d(n._activeElement,u),(p||f)&&u.stopPropagation(),v?v(u):h&&h()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(u){if(!n._portalContainsElement(u.target)){var c=n.props.disabled;if(!c){for(var d=u.target,f=[];d&&d!==n._root.current;)f.push(d),d=ic(d,cf);for(;f.length&&(d=f.pop(),d&&td(d)&&n._setActiveElement(d,!0),!vf(d)););}}},n._onKeyDown=function(u,c){if(!n._portalContainsElement(u.target)){var d=n.props,f=d.direction,p=d.disabled,h=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,b=d.shouldEnterInnerZone;if(!p&&(n.props.onKeyDown&&n.props.onKeyDown(u),!u.isDefaultPrevented()&&!(n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((b&&b(u)||h&&h(u))&&n._isImmediateDescendantOfZone(u.target)){var g=n._getFirstInnerZone();if(g){if(!g.focus(!0))return}else if(fH(u.target)){if(!n.focusElement(Ri(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case pt.space:if(n._shouldRaiseClicksOnSpace&&n._tryInvokeClickForFocusable(u.target,u))break;return;case pt.left:if(f!==Ti.vertical&&(n._preventDefaultWhenHandled(u),n._moveFocusLeft(c)))break;return;case pt.right:if(f!==Ti.vertical&&(n._preventDefaultWhenHandled(u),n._moveFocusRight(c)))break;return;case pt.up:if(f!==Ti.horizontal&&(n._preventDefaultWhenHandled(u),n._moveFocusUp()))break;return;case pt.down:if(f!==Ti.horizontal&&(n._preventDefaultWhenHandled(u),n._moveFocusDown()))break;return;case pt.pageDown:if(!v&&n._moveFocusPaging(!0))break;return;case pt.pageUp:if(!v&&n._moveFocusPaging(!1))break;return;case pt.tab:if(n.props.allowTabKey||n.props.handleTabKey===VL.all||n.props.handleTabKey===VL.inputOnly&&n._isElementInput(u.target)){var y=!1;if(n._processingTabKey=!0,f===Ti.vertical||!n._shouldWrapFocus(n._activeElement,L5))y=u.shiftKey?n._moveFocusUp():n._moveFocusDown();else{var S=gn(c)?!u.shiftKey:u.shiftKey;y=S?n._moveFocusLeft(c):n._moveFocusRight(c)}if(n._processingTabKey=!1,y)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case pt.home:if(n._isContentEditableElement(u.target)||n._isElementInput(u.target)&&!n._shouldInputLoseFocus(u.target,!1))return!1;var w=n._root.current&&n._root.current.firstChild;if(n._root.current&&w&&n.focusElement(Ri(n._root.current,w,!0)))break;return;case pt.end:if(n._isContentEditableElement(u.target)||n._isElementInput(u.target)&&!n._shouldInputLoseFocus(u.target,!0))return!1;var $=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(cs(n._root.current,$,!0,!0,!0)))break;return;case pt.enter:if(n._shouldRaiseClicksOnEnter&&n._tryInvokeClickForFocusable(u.target,u))break;return;default:return}}u.preventDefault(),u.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(u,c,d){var f=n._focusAlignment.left||n._focusAlignment.x||0,p=Math.floor(d.top),h=Math.floor(c.bottom),v=Math.floor(d.bottom),b=Math.floor(c.top),g=u&&p>h,y=!u&&v=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):n._shouldWrapFocus(n._activeElement,j5)?z5:cw},Ml(n),n._id=Sa("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1;var l=(a=(o=r.shouldRaiseClicks)!==null&&o!==void 0?o:t.defaultProps.shouldRaiseClicks)!==null&&a!==void 0?a:!0;return n._shouldRaiseClicksOnEnter=(i=r.shouldRaiseClicksOnEnter)!==null&&i!==void 0?i:l,n._shouldRaiseClicksOnSpace=(s=r.shouldRaiseClicksOnSpace)!==null&&s!==void 0?s:l,n}return t.getOuterZones=function(){return B2.size},t._onKeyDownCapture=function(r){r.which===pt.tab&&B2.forEach(function(n){return n._updateTabIndexes()})},t.prototype.componentDidMount=function(){var r=this._root.current;if(dw[this._id]=this,r){for(var n=ic(r,cf);n&&n!==this._getDocument().body&&n.nodeType===1;){if(vf(n)){this._isInnerZone=!0;break}n=ic(n,cf)}this._isInnerZone||(B2.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var r=this._root.current,n=this._getDocument();if((this._activeElement&&!As(this._root.current,this._activeElement,cf)||this._defaultFocusElement&&!As(this._root.current,this._defaultFocusElement,cf))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||n.activeElement===null||n.activeElement===r)){var o=bmt(r,this._lastIndexPath);o?(this._setActiveElement(o,!0),o.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete dw[this._id],this._isInnerZone||(B2.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var r=this,n=this.props,o=n.as,a=n.elementType,i=n.rootProps,s=n.ariaDescribedBy,l=n.ariaLabelledBy,u=n.className,c=an(this.props,Uo),d=o||a||"div";this._evaluateFocusBeforeRender();var f=Nvt();return m.createElement(d,K({"aria-labelledby":l,"aria-describedby":s},c,i,{className:Xr(I0t(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(p){return r._onKeyDown(p,f)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this._root.current)if(!r&&this._root.current.getAttribute(M2)==="true"&&this._isInnerZone){var o=this._getOwnerZone(this._root.current);if(o!==this._root.current){var a=dw[o.getAttribute(B5)];return!!a&&a.focusElement(this._root.current)}return!1}else{if(!r&&this._activeElement&&As(this._root.current,this._activeElement)&&td(this._activeElement)&&(!n||Ege(this._activeElement)))return this._activeElement.focus(),!0;var i=this._root.current.firstChild;return this.focusElement(Ri(this._root.current,i,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},t.prototype.focusLast=function(){if(this._root.current){var r=this._root.current&&this._root.current.lastChild;return this.focusElement(cs(this._root.current,r,!0,!0,!0))}return!1},t.prototype.focusElement=function(r,n){var o=this.props,a=o.onBeforeFocus,i=o.shouldReceiveFocus;return i&&!i(r)||a&&!a(r)?!1:r?(this._setActiveElement(r,n),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(r){this._focusAlignment=r},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var r=this._root.current,n=this._getDocument();if(n){var o=n.activeElement;if(o!==r){var a=As(r,o,!1);this._lastIndexPath=a?ymt(r,o):void 0}}},t.prototype._setParkedFocus=function(r){var n=this._root.current;n&&this._isParked!==r&&(this._isParked=r,r?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(r,n){var o=this._activeElement;this._activeElement=r,o&&(vf(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&((!this._focusAlignment||n)&&this._setFocusAlignment(r,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(r){this.props.preventDefaultWhenHandled&&r.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(r,n){var o=r;if(o===this._root.current)return!1;do{if(o.tagName==="BUTTON"||o.tagName==="A"||o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(o)&&o.getAttribute(M2)==="true"&&o.getAttribute(k0t)!=="true")return T0t(o,n),!0;o=ic(o,cf)}while(o!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(r){if(r=r||this._activeElement||this._root.current,!r)return null;if(vf(r))return dw[r.getAttribute(B5)];for(var n=r.firstElementChild;n;){if(vf(n))return dw[n.getAttribute(B5)];var o=this._getFirstInnerZone(n);if(o)return o;n=n.nextElementSibling}return null},t.prototype._moveFocus=function(r,n,o,a){a===void 0&&(a=!0);var i=this._activeElement,s=-1,l=void 0,u=!1,c=this.props.direction===Ti.bidirectional;if(!i||!this._root.current||this._isElementInput(i)&&!this._shouldInputLoseFocus(i,r))return!1;var d=c?i.getBoundingClientRect():null;do if(i=r?Ri(this._root.current,i):cs(this._root.current,i),c){if(i){var f=i.getBoundingClientRect(),p=n(d,f);if(p===-1&&s===-1){l=i;break}if(p>-1&&(s===-1||p=0&&p<0)break}}else{l=i;break}while(i);if(l&&l!==this._activeElement)u=!0,this.focusElement(l);else if(this.props.isCircularNavigation&&a)return r?this.focusElement(Ri(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(cs(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(a,i){var s=-1,l=Math.floor(i.top),u=Math.floor(a.bottom);return l=u||l===n)&&(n=l,o>=i.left&&o<=i.left+i.width?s=0:s=Math.abs(i.left+i.width/2-o)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(a,i){var s=-1,l=Math.floor(i.bottom),u=Math.floor(i.top),c=Math.floor(a.top);return l>c?r._shouldWrapFocus(r._activeElement,j5)?z5:cw:((n===-1&&l<=c||u===n)&&(n=u,o>=i.left&&o<=i.left+i.width?s=0:s=Math.abs(i.left+i.width/2-o)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,L5);return this._moveFocus(gn(r),function(a,i){var s=-1,l;return gn(r)?l=parseFloat(i.top.toFixed(3))parseFloat(a.top.toFixed(3)),l&&i.right<=a.right&&n.props.direction!==Ti.vertical?s=a.right-i.right:o||(s=cw),s},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,L5);return this._moveFocus(!gn(r),function(a,i){var s=-1,l;return gn(r)?l=parseFloat(i.bottom.toFixed(3))>parseFloat(a.top.toFixed(3)):l=parseFloat(i.top.toFixed(3))=a.left&&n.props.direction!==Ti.vertical?s=i.left-a.left:o||(s=cw),s},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(r,n){n===void 0&&(n=!0);var o=this._activeElement;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,r))return!1;var a=mH(o);if(!a)return!1;var i=-1,s=void 0,l=-1,u=-1,c=a.clientHeight,d=o.getBoundingClientRect();do if(o=r?Ri(this._root.current,o):cs(this._root.current,o),o){var f=o.getBoundingClientRect(),p=Math.floor(f.top),h=Math.floor(d.bottom),v=Math.floor(f.bottom),b=Math.floor(d.top),g=this._getHorizontalDistanceFromCenter(r,d,f),y=r&&p>h+c,S=!r&&v-1&&(r&&p>l?(l=p,i=g,s=o):!r&&v-1){var o=r.selectionStart,a=r.selectionEnd,i=o!==a,s=r.value,l=r.readOnly;if(i||o>0&&!n&&!l||o!==s.length&&n&&!l||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(r)))return!1}return!0},t.prototype._shouldWrapFocus=function(r,n){return this.props.checkForNoWrap?_ge(r,n):!0},t.prototype._portalContainsElement=function(r){return r&&!!this._root.current&&dH(r,this._root.current)},t.prototype._getDocument=function(){return Ho(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Ti.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},t}(m.Component),Pi;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Pi||(Pi={}));function Gy(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function rp(e){return!!(e.subMenuProps||e.items)}function hd(e){return!!(e.isDisabled||e.disabled)}function v0e(e){var t=Gy(e),r=t!==null;return r?"menuitemcheckbox":"menuitem"}var Iee=function(e){var t=e.item,r=e.classNames,n=t.iconProps;return m.createElement(Ea,K({},n,{className:r.icon}))},F0t=function(e){var t=e.item,r=e.hasIcons;return r?t.onRenderIcon?t.onRenderIcon(e,Iee):Iee(e):null},O0t=function(e){var t=e.onCheckmarkClick,r=e.item,n=e.classNames,o=Gy(r);if(t){var a=function(i){return t(r,i)};return m.createElement(Ea,{iconName:r.canCheck!==!1&&o?"CheckMark":"",className:n.checkmarkIcon,onClick:a})}return null},N0t=function(e){var t=e.item,r=e.classNames;return t.text||t.name?m.createElement("span",{className:r.label},t.text||t.name):null},D0t=function(e){var t=e.item,r=e.classNames;return t.secondaryText?m.createElement("span",{className:r.secondaryText},t.secondaryText):null},A0t=function(e){var t=e.item,r=e.classNames,n=e.theme;return rp(t)?m.createElement(Ea,K({iconName:gn(n)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:r.subMenuIcon})):null},M0t=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;return n.openSubMenu=function(){var o=n.props,a=o.item,i=o.openSubMenu,s=o.getSubmenuTarget;if(s){var l=s();rp(a)&&i&&l&&i(a,l)}},n.dismissSubMenu=function(){var o=n.props,a=o.item,i=o.dismissSubMenu;rp(a)&&i&&i()},n.dismissMenu=function(o){var a=n.props.dismissMenu;a&&a(void 0,o)},Ml(n),n}return t.prototype.render=function(){var r=this.props,n=r.item,o=r.classNames,a=n.onRenderContent||this._renderLayout;return m.createElement("div",{className:n.split?o.linkContentMenu:o.linkContent},a(this.props,{renderCheckMarkIcon:O0t,renderItemIcon:F0t,renderItemName:N0t,renderSecondaryText:D0t,renderSubMenuIcon:A0t}))},t.prototype._renderLayout=function(r,n){return m.createElement(m.Fragment,null,n.renderCheckMarkIcon(r),n.renderItemIcon(r),n.renderItemName(r),n.renderSecondaryText(r),n.renderSubMenuIcon(r))},t}(m.Component),B0t=Co(function(e){return aS({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),km=36,Ree=CN(0,Xge),j0t=Co(function(e){var t,r,n,o,a,i=e.semanticColors,s=e.fonts,l=e.palette,u=i.menuItemBackgroundHovered,c=i.menuItemTextHovered,d=i.menuItemBackgroundPressed,f=i.bodyDivider,p={item:[s.medium,{color:i.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Ha(e),s.medium,{color:i.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:km,lineHeight:km,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:i.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Ze]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:d,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:d,color:i.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(n={},n[Ze]={color:"inherit"},n)},r[Ze]=K({},Nr()),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:km,fontSize:ds.medium,width:ds.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[Ree]={fontSize:ds.large,width:ds.large},o)},iconColor:{color:i.menuIcon},iconDisabled:{color:i.disabledBodyText},checkmarkIcon:{color:i.bodySubtext},subMenuIcon:{height:km,lineHeight:km,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:ds.small,selectors:(a={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},a[Ree]={fontSize:ds.medium},a)},splitButtonFlexContainer:[Ha(e),{display:"flex",height:km,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Au(p)}),Fee="28px",L0t=CN(0,Xge),z0t=Co(function(e){var t;return aS(B0t(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[L0t]={right:32},t)},divider:{height:16,width:1}})}),V0t={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},H0t=Co(function(e,t,r,n,o,a,i,s,l,u,c,d){var f,p,h,v,b=j0t(e),g=Ia(V0t,e);return aS({item:[g.item,b.item,i],divider:[g.divider,b.divider,s],root:[g.root,b.root,n&&[g.isChecked,b.rootChecked],o&&b.anchorLink,r&&[g.isExpanded,b.rootExpanded],t&&[g.isDisabled,b.rootDisabled],!t&&!r&&[{selectors:(f={":hover":b.rootHovered,":active":b.rootPressed},f[".".concat(Eo," &:focus, .").concat(Eo," &:focus:hover")]=b.rootFocused,f[".".concat(Eo," &:hover")]={background:"inherit;"},f)}],d],splitPrimary:[b.root,{width:"calc(100% - ".concat(Fee,")")},n&&["is-checked",b.rootChecked],(t||c)&&["is-disabled",b.rootDisabled],!(t||c)&&!n&&[{selectors:(p={":hover":b.rootHovered},p[":hover ~ .".concat(g.splitMenu)]=b.rootHovered,p[":active"]=b.rootPressed,p[".".concat(Eo," &:focus, .").concat(Eo," &:focus:hover")]=b.rootFocused,p[".".concat(Eo," &:hover")]={background:"inherit;"},p)}]],splitMenu:[g.splitMenu,b.root,{flexBasis:"0",padding:"0 8px",minWidth:Fee},r&&["is-expanded",b.rootExpanded],t&&["is-disabled",b.rootDisabled],!t&&!r&&[{selectors:(h={":hover":b.rootHovered,":active":b.rootPressed},h[".".concat(Eo," &:focus, .").concat(Eo," &:focus:hover")]=b.rootFocused,h[".".concat(Eo," &:hover")]={background:"inherit;"},h)}]],anchorLink:b.anchorLink,linkContent:[g.linkContent,b.linkContent],linkContentMenu:[g.linkContentMenu,b.linkContent,{justifyContent:"center"}],icon:[g.icon,a&&b.iconColor,b.icon,l,t&&[g.isDisabled,b.iconDisabled]],iconColor:b.iconColor,checkmarkIcon:[g.checkmarkIcon,a&&b.checkmarkIcon,b.icon,l],subMenuIcon:[g.subMenuIcon,b.subMenuIcon,u,r&&{color:e.palette.neutralPrimary},t&&[b.iconDisabled]],label:[g.label,b.label],secondaryText:[g.secondaryText,b.secondaryText],splitContainer:[b.splitButtonFlexContainer,!t&&!n&&[{selectors:(v={},v[".".concat(Eo," &:focus, .").concat(Eo," &:focus:hover")]=b.rootFocused,v)}]],screenReaderText:[g.screenReaderText,b.screenReaderText,xN,{visibility:"hidden"}]})}),g0e=function(e){var t=e.theme,r=e.disabled,n=e.expanded,o=e.checked,a=e.isAnchorLink,i=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,f=e.className;return H0t(t,r,n,o,a,i,s,l,u,c,d,f)},r$=Sn(M0t,g0e,void 0,{scope:"ContextualMenuItem"}),CH=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;return n._onItemMouseEnter=function(o){var a=n.props,i=a.item,s=a.onItemMouseEnter;s&&s(i,o,o.currentTarget)},n._onItemClick=function(o){var a=n.props,i=a.item,s=a.onItemClickBase;s&&s(i,o,o.currentTarget)},n._onItemMouseLeave=function(o){var a=n.props,i=a.item,s=a.onItemMouseLeave;s&&s(i,o)},n._onItemKeyDown=function(o){var a=n.props,i=a.item,s=a.onItemKeyDown;s&&s(i,o)},n._onItemMouseMove=function(o){var a=n.props,i=a.item,s=a.onItemMouseMove;s&&s(i,o,o.currentTarget)},n._getSubmenuTarget=function(){},Ml(n),n}return t.prototype.shouldComponentUpdate=function(r){return!pH(r,this.props)},t}(m.Component),W0t="ktp",Oee="-",q0t="data-ktp-target",U0t="data-ktp-execute-target",K0t="ktp-layer-id",Zc;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(Zc||(Zc={}));var G0t=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,r){r===void 0&&(r=!1);var n=t;r||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(r?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var a=r?Zc.PERSISTED_KEYTIP_ADDED:Zc.KEYTIP_ADDED;fc.raise(this,a,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(t,r){var n=this.addParentOverflow(t),o=this._getUniqueKtp(n,r),a=this.keytips[r];a&&(o.keytip.visible=a.keytip.visible,this.keytips[r]=o,delete this.sequenceMapping[a.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&fc.raise(this,Zc.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(t,r,n){n===void 0&&(n=!1),n?delete this.persistedKeytips[r]:delete this.keytips[r],!n&&delete this.sequenceMapping[t.keySequences.toString()];var o=n?Zc.PERSISTED_KEYTIP_REMOVED:Zc.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&fc.raise(this,o,{keytip:t,uniqueID:r})},e.prototype.enterKeytipMode=function(){fc.raise(this,Zc.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){fc.raise(this,Zc.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(r){return t.keytips[r].keytip})},e.prototype.addParentOverflow=function(t){var r=gr([],t.keySequences,!0);if(r.pop(),r.length!==0){var n=this.sequenceMapping[r.toString()];if(n&&n.overflowSetSequence)return K(K({},t),{overflowSetSequence:n.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,r){fc.raise(this,Zc.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:r})},e.prototype._getUniqueKtp=function(t,r){return r===void 0&&(r=Sa()),{keytip:K({},t),uniqueID:r}},e._instance=new e,e}();function b0e(e){return e.reduce(function(t,r){return t+Oee+r.split("").join(Oee)},W0t)}function Y0t(e,t){var r=t.length,n=gr([],t,!0).pop(),o=gr([],e,!0);return Fmt(o,r-1,n)}function X0t(e){var t=" "+K0t;return e.length?t+" "+b0e(e):t}function Q0t(e){var t=m.useRef(),r=e.keytipProps?K({disabled:e.disabled},e.keytipProps):void 0,n=bu(G0t.getInstance()),o=tp(e);Uy(function(){t.current&&r&&((o==null?void 0:o.keytipProps)!==e.keytipProps||(o==null?void 0:o.disabled)!==e.disabled)&&n.update(r,t.current)}),Uy(function(){return r&&(t.current=n.register(r)),function(){r&&n.unregister(r,t.current)}},[]);var a={ariaDescribedBy:void 0,keytipId:void 0};return r&&(a=Z0t(n,r,e.ariaDescribedBy)),a}function Z0t(e,t,r){var n=e.addParentOverflow(t),o=iS(r,X0t(n.keySequences)),a=gr([],n.keySequences,!0);n.overflowSetSequence&&(a=Y0t(a,n.overflowSetSequence));var i=b0e(a);return{ariaDescribedBy:o,keytipId:i}}var n$=function(e){var t,r=e.children,n=Ro(e,["children"]),o=Q0t(n),a=o.keytipId,i=o.ariaDescribedBy;return r((t={},t[q0t]=a,t[U0t]=a,t["aria-describedby"]=i,t))},J0t=function(e){bn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._anchor=m.createRef(),r._getMemoizedMenuButtonKeytipProps=Co(function(n){return K(K({},n),{hasMenu:!0})}),r._getSubmenuTarget=function(){return r._anchor.current?r._anchor.current:void 0},r._onItemClick=function(n){var o=r.props,a=o.item,i=o.onItemClick;i&&i(a,n)},r._renderAriaDescription=function(n,o){return n?m.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,a=n.classNames,i=n.index,s=n.focusableElementIndex,l=n.totalItemCount,u=n.hasCheckmarks,c=n.hasIcons,d=n.expandedMenuItemKey,f=n.onItemClick,p=n.openSubMenu,h=n.dismissSubMenu,v=n.dismissMenu,b=r$;this.props.item.contextualMenuItemAs&&(b=uu(this.props.item.contextualMenuItemAs,b)),this.props.contextualMenuItemAs&&(b=uu(this.props.contextualMenuItemAs,b));var g=o.rel;o.target&&o.target.toLowerCase()==="_blank"&&(g=g||"nofollow noopener noreferrer");var y=rp(o),S=an(o,Age),w=hd(o),$=o.itemProps,C=o.ariaDescription,x=o.keytipProps;x&&y&&(x=this._getMemoizedMenuButtonKeytipProps(x)),C&&(this._ariaDescriptionId=Sa());var E=iS(o.ariaDescribedBy,C?this._ariaDescriptionId:void 0,S["aria-describedby"]),_={"aria-describedby":E};return m.createElement("div",null,m.createElement(n$,{keytipProps:o.keytipProps,ariaDescribedBy:E,disabled:w},function(k){return m.createElement("a",K({},_,S,k,{ref:r._anchor,href:o.href,target:o.target,rel:g,className:a.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?o.key===d:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":hd(o),style:o.style,onClick:r._onItemClick,onMouseEnter:r._onItemMouseEnter,onMouseLeave:r._onItemMouseLeave,onMouseMove:r._onItemMouseMove,onKeyDown:y?r._onItemKeyDown:void 0}),m.createElement(b,K({componentRef:o.componentRef,item:o,classNames:a,index:i,onCheckmarkClick:u&&f?f:void 0,hasIcons:c,openSubMenu:p,dismissSubMenu:h,dismissMenu:v,getSubmenuTarget:r._getSubmenuTarget},$)),r._renderAriaDescription(C,a.screenReaderText))}))},t}(CH),ebt=function(e){bn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._btn=m.createRef(),r._getMemoizedMenuButtonKeytipProps=Co(function(n){return K(K({},n),{hasMenu:!0})}),r._renderAriaDescription=function(n,o){return n?m.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r._getSubmenuTarget=function(){return r._btn.current?r._btn.current:void 0},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,a=n.classNames,i=n.index,s=n.focusableElementIndex,l=n.totalItemCount,u=n.hasCheckmarks,c=n.hasIcons,d=n.contextualMenuItemAs,f=n.expandedMenuItemKey,p=n.onItemMouseDown,h=n.onItemClick,v=n.openSubMenu,b=n.dismissSubMenu,g=n.dismissMenu,y=r$;o.contextualMenuItemAs&&(y=uu(o.contextualMenuItemAs,y)),d&&(y=uu(d,y));var S=Gy(o),w=S!==null,$=v0e(o),C=rp(o),x=o.itemProps,E=o.ariaLabel,_=o.ariaDescription,k=an(o,Og);delete k.disabled;var I=o.role||$;_&&(this._ariaDescriptionId=Sa());var N=iS(o.ariaDescribedBy,_?this._ariaDescriptionId:void 0,k["aria-describedby"]),z={className:a.root,onClick:this._onItemClick,onKeyDown:C?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(A){return p?p(o,A):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":E,"aria-describedby":N,"aria-haspopup":C||void 0,"aria-expanded":C?o.key===f:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":hd(o),"aria-checked":(I==="menuitemcheckbox"||I==="menuitemradio")&&w?!!S:void 0,"aria-selected":I==="menuitem"&&w?!!S:void 0,role:I,style:o.style},O=o.keytipProps;return O&&C&&(O=this._getMemoizedMenuButtonKeytipProps(O)),m.createElement(n$,{keytipProps:O,ariaDescribedBy:N,disabled:hd(o)},function(A){return m.createElement("button",K({ref:r._btn},k,z,A),m.createElement(y,K({componentRef:o.componentRef,item:o,classNames:a,index:i,onCheckmarkClick:u&&h?h:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:b,dismissMenu:g,getSubmenuTarget:r._getSubmenuTarget},x)),r._renderAriaDescription(_,a.screenReaderText))})},t}(CH),tbt=function(e){var t=e.theme,r=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(r){var o=r(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},rbt=yn(),y0e=m.forwardRef(function(e,t){var r=e.styles,n=e.theme,o=e.getClassNames,a=e.className,i=rbt(r,{theme:n,getClassNames:o,className:a});return m.createElement("span",{className:i.wrapper,ref:t},m.createElement("span",{className:i.divider}))});y0e.displayName="VerticalDividerBase";var nbt=Sn(y0e,tbt,void 0,{scope:"VerticalDivider"}),obt=500,abt=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;return n._getMemoizedMenuButtonKeytipProps=Co(function(o){return K(K({},o),{hasMenu:!0})}),n._onItemKeyDown=function(o){var a=n.props,i=a.item,s=a.onItemKeyDown;o.which===pt.enter?(n._executeItemClick(o),o.preventDefault(),o.stopPropagation()):s&&s(i,o)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(o,a){return o?m.createElement("span",{id:n._ariaDescriptionId,className:a},o):null},n._onItemMouseEnterPrimary=function(o){var a=n.props,i=a.item,s=a.onItemMouseEnter;s&&s(K(K({},i),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseEnterIcon=function(o){var a=n.props,i=a.item,s=a.onItemMouseEnter;s&&s(i,o,n._splitButton)},n._onItemMouseMovePrimary=function(o){var a=n.props,i=a.item,s=a.onItemMouseMove;s&&s(K(K({},i),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseMoveIcon=function(o){var a=n.props,i=a.item,s=a.onItemMouseMove;s&&s(i,o,n._splitButton)},n._onIconItemClick=function(o){var a=n.props,i=a.item,s=a.onItemClickBase;s&&s(i,o,n._splitButton?n._splitButton:o.currentTarget)},n._executeItemClick=function(o){var a=n.props,i=a.item,s=a.executeItemClick,l=a.onItemClick;if(!(i.disabled||i.isDisabled)){if(n._processingTouch&&!i.canCheck&&l)return l(i,o);s&&s(i,o)}},n._onTouchStart=function(o){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(o)},n._onPointerDown=function(o){o.pointerType==="touch"&&(n._handleTouchAndPointerEvent(o),o.preventDefault(),o.stopImmediatePropagation())},n._async=new Gh(n),n._events=new fc(n),n._dismissLabelId=Sa(),n}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var r=this,n,o=this.props,a=o.item,i=o.classNames,s=o.index,l=o.focusableElementIndex,u=o.totalItemCount,c=o.hasCheckmarks,d=o.hasIcons,f=o.onItemMouseLeave,p=o.expandedMenuItemKey,h=rp(a),v=a.keytipProps;v&&(v=this._getMemoizedMenuButtonKeytipProps(v));var b=a.ariaDescription;b&&(this._ariaDescriptionId=Sa());var g=(n=Gy(a))!==null&&n!==void 0?n:void 0;return m.createElement(n$,{keytipProps:v,disabled:hd(a)},function(y){return m.createElement("div",{"data-ktp-target":y["data-ktp-target"],ref:function(S){return r._splitButton=S},role:v0e(a),"aria-label":a.ariaLabel,className:i.splitContainer,"aria-disabled":hd(a),"aria-expanded":h?a.key===p:void 0,"aria-haspopup":!0,"aria-describedby":iS(a.ariaDescribedBy,b?r._ariaDescriptionId:void 0,y["aria-describedby"]),"aria-checked":g,"aria-posinset":l+1,"aria-setsize":u,onMouseEnter:r._onItemMouseEnterPrimary,onMouseLeave:f?f.bind(r,K(K({},a),{subMenuProps:null,items:null})):void 0,onMouseMove:r._onItemMouseMovePrimary,onKeyDown:r._onItemKeyDown,onClick:r._executeItemClick,onTouchStart:r._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":a["aria-roledescription"]},r._renderSplitPrimaryButton(a,i,s,c,d),r._renderSplitDivider(a),r._renderSplitIconButton(a,i,s,y),r._renderAriaDescription(b,i.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(r,n,o,a,i){var s=this.props,l=s.contextualMenuItemAs,u=l===void 0?r$:l,c=s.onItemClick,d={key:r.key,disabled:hd(r)||r.primaryDisabled,name:r.name,text:r.text||r.name,secondaryText:r.secondaryText,className:n.splitPrimary,canCheck:r.canCheck,isChecked:r.isChecked,checked:r.checked,iconProps:r.iconProps,id:this._dismissLabelId,onRenderIcon:r.onRenderIcon,data:r.data,"data-is-focusable":!1},f=r.itemProps;return m.createElement("button",K({},an(d,Og)),m.createElement(u,K({"data-is-focusable":!1,item:d,classNames:n,index:o,onCheckmarkClick:a&&c?c:void 0,hasIcons:i},f)))},t.prototype._renderSplitDivider=function(r){var n=r.getSplitButtonVerticalDividerClassNames||z0t;return m.createElement(nbt,{getClassNames:n})},t.prototype._renderSplitIconButton=function(r,n,o,a){var i=this.props,s=i.onItemMouseLeave,l=i.onItemMouseDown,u=i.openSubMenu,c=i.dismissSubMenu,d=i.dismissMenu,f=r$;this.props.item.contextualMenuItemAs&&(f=uu(this.props.item.contextualMenuItemAs,f)),this.props.contextualMenuItemAs&&(f=uu(this.props.contextualMenuItemAs,f));var p={onClick:this._onIconItemClick,disabled:hd(r),className:n.splitMenu,subMenuProps:r.subMenuProps,submenuIconProps:r.submenuIconProps,split:!0,key:r.key,"aria-labelledby":this._dismissLabelId},h=K(K({},an(p,Og)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:s?s.bind(this,r):void 0,onMouseDown:function(b){return l?l(r,b):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":a["data-ktp-execute-target"],"aria-haspopup":!0}),v=r.itemProps;return m.createElement("button",K({},h),m.createElement(f,K({componentRef:r.componentRef,item:p,classNames:n,index:o,hasIcons:!1,openSubMenu:u,dismissSubMenu:c,dismissMenu:d,getSubmenuTarget:this._getSubmenuTarget},v)))},t.prototype._handleTouchAndPointerEvent=function(r){var n=this,o=this.props.onTap;o&&o(r),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0},obt)},t}(CH),Yy;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(Yy||(Yy={}));var ibt=[479,639,1023,1365,1919,99999999],S0e;function w0e(){var e;return(e=S0e)!==null&&e!==void 0?e:Yy.large}function sbt(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function lbt(e){var t=Yy.small;if(e){try{for(;sbt(e)>ibt[t];)t++}catch{t=w0e()}S0e=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var C0e=function(e,t){var r=m.useState(w0e()),n=r[0],o=r[1],a=m.useCallback(function(){var s=lbt(fn(e.current));n!==s&&o(s)},[e,n]),i=_N();return Zx(i,"resize",a),m.useEffect(function(){t===void 0&&a()},[t]),t??n},ubt=m.createContext({}),cbt=yn(),dbt=yn(),fbt={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:ho.bottomAutoEdge,beakWidth:16};function Nee(e){for(var t=0,r=0,n=e;r0){var fr=0;return m.createElement("li",{role:"presentation",key:Me.key||ue.key||"section-".concat(ut)},m.createElement("div",K({},_t),m.createElement("ul",{className:Ke.list,role:"presentation"},Me.topDivider&&ie(ut,Ue,!0,!0),qe&&oe(qe,ue.key||ut,Ue,ue.title),Me.items.map(function(ar,Ir){var An=J(ar,Ir,fr,Nee(Me.items),We,tt,Ke);if(ar.itemType!==Pi.Divider&&ar.itemType!==Pi.Header){var gt=ar.customOnRenderListLength?ar.customOnRenderListLength:1;fr+=gt}return An}),Me.bottomDivider&&ie(ut,Ue,!1,!0))))}}},oe=function(ue,Ue,Ke,ut){return m.createElement("li",{role:"presentation",title:ut,key:Ue,className:Ke.item},ue)},ie=function(ue,Ue,Ke,ut){return ut||ue>0?m.createElement("li",{role:"separator",key:"separator-"+ue+(Ke===void 0?"":Ke?"-top":"-bottom"),className:Ue.divider,"aria-hidden":"true"}):null},te=function(ue,Ue,Ke,ut,We,tt,Me){if(ue.onRender)return ue.onRender(K({"aria-posinset":ut+1,"aria-setsize":We},ue),l);var qe=o.contextualMenuItemAs,_t={item:ue,classNames:Ue,index:Ke,focusableElementIndex:ut,totalItemCount:We,hasCheckmarks:tt,hasIcons:Me,contextualMenuItemAs:qe,onItemMouseEnter:B,onItemMouseLeave:V,onItemMouseMove:F,onItemMouseDown:$bt,executeItemClick:R,onItemKeyDown:j,expandedMenuItemKey:h,openSubMenu:v,dismissSubMenu:g,dismissMenu:l};if(ue.href){var it=J0t;return ue.contextualMenuItemWrapperAs&&(it=uu(ue.contextualMenuItemWrapperAs,it)),m.createElement(it,K({},_t,{onItemClick:P}))}if(ue.split&&rp(ue)){var It=abt;return ue.contextualMenuItemWrapperAs&&(It=uu(ue.contextualMenuItemWrapperAs,It)),m.createElement(It,K({},_t,{onItemClick:D,onItemClickBase:W,onTap:k}))}var Mt=ebt;return ue.contextualMenuItemWrapperAs&&(Mt=uu(ue.contextualMenuItemWrapperAs,Mt)),m.createElement(Mt,K({},_t,{onItemClick:D,onItemClickBase:W}))},ae=function(ue,Ue,Ke,ut,We,tt){var Me=r$;ue.contextualMenuItemAs&&(Me=uu(ue.contextualMenuItemAs,Me)),o.contextualMenuItemAs&&(Me=uu(o.contextualMenuItemAs,Me));var qe=ue.itemProps,_t=ue.id,it=qe&&an(qe,pi);return m.createElement("div",K({id:_t,className:Ke.header},it,{style:ue.style}),m.createElement(Me,K({item:ue,classNames:Ue,index:ut,onCheckmarkClick:We?D:void 0,hasIcons:tt},qe)))},fe=o.isBeakVisible,ve=o.items,Se=o.labelElementId,se=o.id,pe=o.className,ge=o.beakWidth,de=o.directionalHint,ee=o.directionalHintForRTL,me=o.alignTargetEdge,Re=o.gapSpace,je=o.coverTarget,ze=o.ariaLabel,Le=o.doNotLayer,$e=o.target,Je=o.bounds,Pe=o.useTargetWidth,st=o.useTargetAsMinWidth,_e=o.directionalHintFixed,De=o.shouldFocusOnMount,et=o.shouldFocusOnContainer,Ie=o.title,Fe=o.styles,vt=o.theme,bt=o.calloutProps,wt=o.onRenderSubMenu,mt=wt===void 0?Aee:wt,xe=o.onRenderMenuList,Ae=xe===void 0?function(ue,Ue){return U(ue,ot)}:xe,He=o.focusZoneProps,Ge=o.getMenuClassNames,ot=Ge?Ge(vt,pe):cbt(Fe,{theme:vt,className:pe}),at=Ve(ve);function Ve(ue){for(var Ue=0,Ke=ue;Ue0){var ne=Nee(ve),we=ot.subComponentStyles?ot.subComponentStyles.callout:void 0;return m.createElement(ubt.Consumer,null,function(ue){return m.createElement(zE,K({styles:we,onRestoreFocus:f},bt,{target:$e||ue.target,isBeakVisible:fe,beakWidth:ge,directionalHint:de,directionalHintForRTL:ee,gapSpace:Re,coverTarget:je,doNotLayer:Le,className:Xr("ms-ContextualMenu-Callout",bt&&bt.className),setInitialFocus:De,onDismiss:o.onDismiss||ue.onDismiss,onScroll:x,bounds:Je,directionalHintFixed:_e,alignTargetEdge:me,hidden:o.hidden||ue.hidden,ref:t}),m.createElement("div",{style:Ee,ref:a,id:se,className:ot.container,tabIndex:et?0:-1,onKeyDown:L,onKeyUp:M,onFocusCapture:$,"aria-label":ze,"aria-labelledby":Se,role:"menu"},Ie&&m.createElement("div",{className:ot.title}," ",Ie," "),ve&&ve.length?q(Ae({ariaLabel:ze,items:ve,totalItemCount:ne,hasCheckmarks:he,hasIcons:at,defaultMenuItemRenderer:function(Ue){return Z(Ue,ot)},labelElementId:Se},function(Ue,Ke){return U(Ue,ot)}),Qe):null,ye&&mt(ye,Aee)),m.createElement(yN,null))})}else return null}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:pH(e,t)});_0e.displayName="ContextualMenuBase";function Dee(e){return e.which===pt.alt||e.key==="Meta"}function $bt(e,t){var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,e,t)}function Aee(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function k0e(e,t){for(var r=0,n=t;r span":{position:"relative",left:0,top:0}}}],rootDisabled:[Ha(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":Bee,":focus":Bee}}],iconDisabled:{color:l,selectors:(t={},t[Ze]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(r={},r[Ze]={color:"GrayText"},r)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:jee(a.mediumPlus.fontSize),menuIcon:jee(a.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:xN}}),xH=Co(function(e,t){var r,n,o,a,i,s,l,u,c,d,f,p,h,v=e.effects,b=e.palette,g=e.semanticColors,y={left:-2,top:-2,bottom:-2,right:-2,border:"none"},S={position:"absolute",width:1,right:31,top:8,bottom:8},w={splitButtonContainer:[Ha(e,{highContrastStyle:y,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(r={},r[Ze]=K({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},Nr()),r[":hover"]={border:"none"},r[":active"]={border:"none"},r)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(n={},n[Ze]={border:"1px solid WindowText",borderLeftWidth:"0"},n)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[Ze]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:g.buttonTextDisabled,selectors:(a={},a[Ze]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},a)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(i={},i[Ze]=K({color:"Window",backgroundColor:"WindowText"},Nr()),i)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[Ze]=K({color:"Window",backgroundColor:"WindowText"},Nr()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid ".concat(b.neutralSecondaryAlt),borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[Ze]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:K(K({},S),{selectors:(u={},u[Ze]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:K(K({},S),{selectors:(c={},c[Ze]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[Ze]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(p={},p[Ze]={color:"GrayText"},p)}},d[Ze]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},d)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(h={},h[Ze]=K({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Nr()),h)},splitButtonMenuFocused:K({},Ha(e,{highContrastStyle:y,inset:2}))};return Au(w,t)}),R0e=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function Rbt(e){var t,r,n,o,a,i=e.semanticColors,s=e.palette,l=i.buttonBackground,u=i.buttonBackgroundPressed,c=i.buttonBackgroundHovered,d=i.buttonBackgroundDisabled,f=i.buttonText,p=i.buttonTextHovered,h=i.buttonTextDisabled,v=i.buttonTextChecked,b=i.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:p,selectors:(t={},t[Ze]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:b},rootDisabled:{color:h,backgroundColor:d,selectors:(r={},r[Ze]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(n={},n[Ze]={border:"none"},n)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(o={},o[Ze]={color:"Highlight"},o)}}},splitButtonMenuButtonDisabled:{backgroundColor:i.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:i.buttonBackgroundDisabled}}},splitButtonDivider:K(K({},R0e()),{backgroundColor:s.neutralTertiaryAlt,selectors:(a={},a[Ze]={backgroundColor:"WindowText"},a)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:i.buttonText},splitButtonMenuIconDisabled:{color:i.buttonTextDisabled}}}function Fbt(e){var t,r,n,o,a,i,s,l,u,c=e.palette,d=e.semanticColors;return{root:{backgroundColor:d.primaryButtonBackground,border:"1px solid ".concat(d.primaryButtonBackground),color:d.primaryButtonText,selectors:(t={},t[Ze]=K({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Nr()),t[".".concat(Eo," &:focus")]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid ".concat(d.primaryButtonBackgroundHovered),color:d.primaryButtonTextHovered,selectors:(r={},r[Ze]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},r)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid ".concat(d.primaryButtonBackgroundPressed),color:d.primaryButtonTextPressed,selectors:(n={},n[Ze]=K({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Nr()),n)},rootExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootChecked:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootDisabled:{color:d.primaryButtonTextDisabled,backgroundColor:d.primaryButtonBackgroundDisabled,selectors:(o={},o[Ze]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)},splitButtonContainer:{selectors:(a={},a[Ze]={border:"none"},a)},splitButtonDivider:K(K({},R0e()),{backgroundColor:c.white,selectors:(i={},i[Ze]={backgroundColor:"Window"},i)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[Ze]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[Ze]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:d.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:d.primaryButtonText},splitButtonMenuIconDisabled:{color:c.neutralTertiary,selectors:(u={},u[Ze]={color:"GrayText"},u)}}}var Obt="32px",Nbt="80px",Dbt=Co(function(e,t,r){var n=TN(e),o=xH(e),a={root:{minWidth:Nbt,height:Obt},label:{fontWeight:Gr.semibold}};return Au(n,a,r?Fbt(e):Rbt(e),o,t)}),Abt=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var r=this.props,n=r.primary,o=n===void 0?!1:n,a=r.styles,i=r.theme;return m.createElement(PN,K({},this.props,{variantClassName:o?"ms-Button--primary":"ms-Button--default",styles:Dbt(i,a,o),onRenderDescription:Fg}))},t=ME([jE("DefaultButton",["theme","styles"],!0)],t),t}(m.Component),Mbt="40px",Bbt="0 4px",jbt=Co(function(e,t){var r,n,o,a=TN(e),i={root:{padding:Bbt,height:Mbt,color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:(r={},r[Ze]={borderColor:"Window"},r)},rootHovered:{color:e.palette.themePrimary,selectors:(n={},n[Ze]={color:"Highlight"},n)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent",selectors:(o={},o[Ze]={color:"GrayText"},o)},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}};return Au(a,i,t)}),Lbt=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var r=this.props,n=r.styles,o=r.theme;return m.createElement(PN,K({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:jbt(o,n),onRenderDescription:Fg}))},t=ME([jE("ActionButton",["theme","styles"],!0)],t),t}(m.Component),zbt=Co(function(e,t){var r,n=TN(e),o=xH(e),a=e.palette,i=e.semanticColors,s={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:i.link},rootHovered:{color:a.themeDarkAlt,backgroundColor:a.neutralLighter,selectors:(r={},r[Ze]={borderColor:"Highlight",color:"Highlight"},r)},rootHasMenu:{width:"auto"},rootPressed:{color:a.themeDark,backgroundColor:a.neutralLight},rootExpanded:{color:a.themeDark,backgroundColor:a.neutralLight},rootChecked:{color:a.themeDark,backgroundColor:a.neutralLight},rootCheckedHovered:{color:a.themeDark,backgroundColor:a.neutralQuaternaryAlt},rootDisabled:{color:a.neutralTertiaryAlt}};return Au(n,s,o,t)}),Xy=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var r=this.props,n=r.styles,o=r.theme;return m.createElement(PN,K({},this.props,{variantClassName:"ms-Button--icon",styles:zbt(o,n),onRenderText:Fg,onRenderDescription:Fg}))},t=ME([jE("IconButton",["theme","styles"],!0)],t),t}(m.Component),Vbt=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return m.createElement(Abt,K({},this.props,{primary:!0,onRenderDescription:Fg}))},t=ME([jE("PrimaryButton",["theme","styles"],!0)],t),t}(m.Component),Hbt=Co(function(e,t,r,n){var o,a,i,s,l,u,c,d,f,p,h,v,b,g=TN(e),y=xH(e),S=e.palette,w=e.semanticColors,$={left:4,top:4,bottom:4,right:4,border:"none"},C={root:[Ha(e,{inset:2,highContrastStyle:$,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:S.white,color:S.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(o={},o[Ze]={border:"none"},o)}],rootHovered:{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(a={},a[Ze]={color:"Highlight"},a[".".concat(rs.msButtonIcon)]={color:S.themeDarkAlt},a[".".concat(rs.msButtonMenuIcon)]={color:S.neutralPrimary},a)},rootPressed:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(i={},i[".".concat(rs.msButtonIcon)]={color:S.themeDark},i[".".concat(rs.msButtonMenuIcon)]={color:S.neutralPrimary},i)},rootChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(s={},s[".".concat(rs.msButtonIcon)]={color:S.themeDark},s[".".concat(rs.msButtonMenuIcon)]={color:S.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:S.neutralQuaternaryAlt,selectors:(l={},l[".".concat(rs.msButtonIcon)]={color:S.themeDark},l[".".concat(rs.msButtonMenuIcon)]={color:S.neutralPrimary},l)},rootExpanded:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(u={},u[".".concat(rs.msButtonIcon)]={color:S.themeDark},u[".".concat(rs.msButtonMenuIcon)]={color:S.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:S.neutralQuaternaryAlt},rootDisabled:{backgroundColor:S.white,selectors:(c={},c[".".concat(rs.msButtonIcon)]={color:w.disabledBodySubtext,selectors:(d={},d[Ze]=K({color:"GrayText"},Nr()),d)},c[Ze]=K({color:"GrayText",backgroundColor:"Window"},Nr()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[Ze]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(p={},p[Ze]={backgroundColor:"Window"},p)},splitButtonDivider:{backgroundColor:S.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:S.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:S.neutralSecondary,selectors:{":hover":{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(h={},h[Ze]={color:"Highlight"},h[".".concat(rs.msButtonIcon)]={color:S.neutralPrimary},h)},":active":{backgroundColor:S.neutralLight,selectors:(v={},v[".".concat(rs.msButtonIcon)]={color:S.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:S.white,selectors:(b={},b[Ze]=K({color:"GrayText",border:"none",backgroundColor:"Window"},Nr()),b)},splitButtonMenuButtonChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:S.neutralLight,color:S.black,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:S.neutralPrimary},splitButtonMenuIconDisabled:{color:S.neutralTertiary},label:{fontWeight:"normal"},icon:{color:S.themePrimary},menuIcon:{color:S.neutralSecondary}};return Au(g,y,C,t)}),Wbt=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var r=this.props,n=r.styles,o=r.theme;return m.createElement(PN,K({},this.props,{variantClassName:"ms-Button--commandBar",styles:Hbt(o,n),onRenderDescription:Fg}))},t=ME([jE("CommandBarButton",["theme","styles"],!0)],t),t}(m.Component),qbt=Lbt,Di;(function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"})(Di||(Di={}));var WL;(function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"})(WL||(WL={}));var Qy;(function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"})(Qy||(Qy={}));var ii;(function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"})(ii||(ii={}));var o$=7,Gn={MillisecondsInOneDay:864e5,MillisecondsIn1Sec:1e3,MillisecondsIn1Min:6e4,MillisecondsIn30Mins:18e5,MillisecondsIn1Hour:36e5,MinutesInOneDay:1440,MinutesInOneHour:60,DaysInOneWeek:7,MonthInOneYear:12,HoursInOneDay:24,SecondsInOneMinute:60,OffsetTo24HourFormat:12,TimeFormatRegex:/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i};function Ec(e,t){var r=new Date(e.getTime());return r.setDate(r.getDate()+t),r}function Lee(e,t){return Ec(e,t*Gn.DaysInOneWeek)}function jm(e,t){var r=new Date(e.getTime()),n=r.getMonth()+t;return r.setMonth(n),r.getMonth()!==(n%Gn.MonthInOneYear+Gn.MonthInOneYear)%Gn.MonthInOneYear&&(r=Ec(r,-r.getDate())),r}function Vb(e,t){var r=new Date(e.getTime());return r.setFullYear(e.getFullYear()+t),r.getMonth()!==(e.getMonth()%Gn.MonthInOneYear+Gn.MonthInOneYear)%Gn.MonthInOneYear&&(r=Ec(r,-r.getDate())),r}function F0e(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function O0e(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function Ubt(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function Kbt(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}function j2(e,t){return jm(e,t-e.getMonth())}function xh(e,t){return!e&&!t?!0:!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Vs(e,t){return _C(e)-_C(t)}function HI(e,t,r,n,o){o===void 0&&(o=1);var a=[],i,s=null;switch(n||(n=[Di.Monday,Di.Tuesday,Di.Wednesday,Di.Thursday,Di.Friday]),o=Math.max(o,1),t){case ii.Day:i=zee(e),s=Ec(i,o);break;case ii.Week:case ii.WorkWeek:i=Qbt(zee(e),r),s=Ec(i,Gn.DaysInOneWeek);break;case ii.Month:i=new Date(e.getFullYear(),e.getMonth(),1),s=jm(i,1);break;default:throw new Error("Unexpected object: "+t)}var l=i;do(t!==ii.WorkWeek||n.indexOf(l.getDay())!==-1)&&a.push(l),l=Ec(l,1);while(!xh(l,s));return a}function Gbt(e,t){for(var r=0,n=t;r0&&(r-=Gn.DaysInOneWeek),Ec(e,r)}function zee(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function _C(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function Vee(e,t,r){var n=qL(e)-1,o=e.getDay()-n%Gn.DaysInOneWeek,a=new Date(e.getFullYear()-1,WL.December,31),i=qL(a)-1,s=(t-o+2*Gn.DaysInOneWeek)%Gn.DaysInOneWeek;s!==0&&s>=r&&(s-=Gn.DaysInOneWeek);var l=n-s;return l<0&&(o-=i%Gn.DaysInOneWeek,s=(t-o+2*Gn.DaysInOneWeek)%Gn.DaysInOneWeek,s!==0&&s+1>=r&&(s-=Gn.DaysInOneWeek),l=i-s),Math.floor(l/Gn.DaysInOneWeek+1)}function Zbt(e,t){var r=qL(e)-1,n=e.getDay()-r%Gn.DaysInOneWeek,o=(n-t+2*Gn.DaysInOneWeek)%Gn.DaysInOneWeek;return Math.floor((r+o)/Gn.DaysInOneWeek+1)}function Jbt(e,t){return e!==Di.Sunday&&t=1:!1},M0e=function(e,t){var r=t.maxDate;return r?Vs(e,r)>=1:!1},kC=function(e,t){var r=t.restrictedDates,n=t.minDate,o=t.maxDate;if(!r&&!n&&!o)return!1;var a=r&&r.some(function(i){return xh(i,e)});return a||A0e(e,t)||M0e(e,t)},Hee=function(e){var t=e.targetDate,r=e.initialDate,n=e.direction,o=Ro(e,["targetDate","initialDate","direction"]),a=t;if(!kC(t,o))return t;for(;Vs(r,a)!==0&&kC(a,o)&&!M0e(a,o)&&!A0e(a,o);)a=Ec(a,n);if(Vs(r,a)!==0&&!kC(a,o))return a},B0e=function(e,t,r){var n=gr([],e,!0);return t&&(n=n.filter(function(o){return Vs(o,t)>=0})),r&&(n=n.filter(function(o){return Vs(o,r)<=0})),n},syt=function(e,t,r){for(var n=new Set(e),o=0,a=0,i=e;a=0){var c=(u+n)%o$;l[c]=r.shortMonths[i[1][u].originalDate.getMonth()]}return m.createElement("tr",null,t&&m.createElement("th",{className:s.dayCell}),l.map(function(d,f){var p=(f+n)%o$,h=r.days[p];return m.createElement("th",{className:Xr(s.dayCell,s.weekDayLabelCell),scope:"col",key:l[p]+" "+f,title:h,"aria-label":h,"data-is-focusable":o?!0:void 0},l[p])}))},dyt=function(e){var t,r=e.navigatedDate,n=e.dateTimeFormatter,o=e.allFocusable,a=e.strings,i=e.activeDescendantId,s=e.navigatedDayRef,l=e.calculateRoundedStyles,u=e.weeks,c=e.classNames,d=e.day,f=e.dayIndex,p=e.weekIndex,h=e.weekCorners,v=e.ariaHidden,b=e.customDayCellRef,g=e.dateRangeType,y=e.daysToSelectInDayView,S=e.onSelectDate,w=e.restrictedDates,$=e.minDate,C=e.maxDate,x=e.onNavigateDate,E=e.getDayInfosInRangeOfDay,_=e.getRefsFromDayInfos,k=(t=h==null?void 0:h[p+"_"+f])!==null&&t!==void 0?t:"",I=xh(r,d.originalDate),N=function(H,B){var F=void 0,V=1;if(H.which===pt.up?(F=Lee(B,-1),V=-1):H.which===pt.down?F=Lee(B,1):H.which===FI(pt.left)?(F=Ec(B,-1),V=-1):H.which===FI(pt.right)&&(F=Ec(B,1)),!!F){var D={initialDate:B,targetDate:F,direction:V,restrictedDates:w,minDate:$,maxDate:C},P=Hee(D);P||(D.direction=-V,P=Hee(D));var R=u&&P&&u.slice(1,u.length-1).some(function(W){return W.some(function(U){return xh(U.originalDate,P)})});R||P&&(x(P,!0),H.preventDefault())}},z=function(H){var B=E(d),F=_(B);F.forEach(function(V,D){var P;if(V&&(V.classList.add("ms-CalendarDay-hoverStyle"),!B[D].isSelected&&g===ii.Day&&y&&y>1)){V.classList.remove(c.bottomLeftCornerDate,c.bottomRightCornerDate,c.topLeftCornerDate,c.topRightCornerDate);var R=l(c,!1,!1,D>0,D1)){var R=l(c,!1,!1,D>0,D0};return[t,r]}var j0e=function(e){var t=m.useRef(null),r=Ks(),n=function(_){var k,I,N=e.firstDayOfWeek,z=e.minDate,O=e.maxDate,A=e.workWeekDays,M=e.daysToSelectInDayView,L=e.restrictedDates,j={minDate:z,maxDate:O,restrictedDates:L},H=HI(_,g,N,A,M);H=B0e(H,z,O),H=H.filter(function(B){return!kC(B,j)}),(k=e.onSelectDate)===null||k===void 0||k.call(e,_,H),(I=e.onNavigateDate)===null||I===void 0||I.call(e,_,!0)},o=pyt(),a=o[0],i=o[1],s=myt(e,n,i),l=hyt(s),u=vyt(e),c=u[0],d=u[1];m.useImperativeHandle(e.componentRef,function(){return{focus:function(){var _,k;(k=(_=t.current)===null||_===void 0?void 0:_.focus)===null||k===void 0||k.call(_)}}},[]);var f=function(_){var k=gyt(e.dateRangeType,e.workWeekDays),I=HI(_.originalDate,k,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map(function(z){return z.getTime()}),N=s.reduce(function(z,O){return z.concat(O.filter(function(A){return I.indexOf(A.originalDate.getTime())!==-1}))},[]);return N},p=function(_){var k=[];return k=_.map(function(I){return a.current[I.key]}),k},h=e.styles,v=e.theme,b=e.className,g=e.dateRangeType,y=e.showWeekNumbers,S=e.labelledBy,w=e.lightenDaysOutsideNavigatedMonth,$=e.animationDirection,C=fyt(h,{theme:v,className:b,dateRangeType:g,showWeekNumbers:y,lightenDaysOutsideNavigatedMonth:w===void 0?!0:w,animationDirection:$,animateBackwards:l}),x=c(C,s),E={weeks:s,navigatedDayRef:t,calculateRoundedStyles:d,activeDescendantId:r,classNames:C,weekCorners:x,getDayInfosInRangeOfDay:f,getRefsFromDayInfos:p};return m.createElement(VE,{className:C.wrapper,preventDefaultWhenHandled:!0},m.createElement("table",{className:C.table,"aria-multiselectable":"false","aria-labelledby":S,"aria-activedescendant":r,role:"grid"},m.createElement("tbody",null,m.createElement(cyt,K({},e,{classNames:C,weeks:s})),m.createElement(H5,K({},e,E,{week:s[0],weekIndex:-1,rowClassName:C.firstTransitionWeek,ariaRole:"presentation",ariaHidden:!0})),s.slice(1,s.length-1).map(function(_,k){return m.createElement(H5,K({},e,E,{key:k,week:_,weekIndex:k,rowClassName:C.weekRow}))}),m.createElement(H5,K({},e,E,{week:s[s.length-1],weekIndex:-2,rowClassName:C.lastTransitionWeek,ariaRole:"presentation",ariaHidden:!0})))))};j0e.displayName="CalendarDayGridBase";function gyt(e,t){if(t&&e===ii.WorkWeek){for(var r=t.slice().sort(),n=!0,o=1;ou,k=x===new Date().getFullYear();return m.createElement(q0e,K({},e,{key:x,year:x,selected:E,current:k,disabled:_,onSelectYear:c,componentRef:E?p:k?h:void 0,theme:r}))},b=h0(t,{theme:r,className:n,animateBackwards:s,animationDirection:i}),g=function(x){var E,_;return(_=(E=e.onRenderYear)===null||E===void 0?void 0:E.call(e,x))!==null&&_!==void 0?_:x},y="".concat(g(o)," - ").concat(g(a)),S=o,w=[],$=0;$<(a-o+1)/qee;$++){w.push([]);for(var C=0;Ch,C=function(){u===rd.Previous?c==null||c():d==null||d()},x=function(_){_.which===pt.enter&&C()},E=gn()?u===rd.Next:u===rd.Previous;return m.createElement("button",{className:Xr(b.navigationButton,(t={},t[b.disabled]=$,t)),onClick:$?void 0:C,onKeyDown:$?void 0:x,type:"button",title:w,disabled:$},m.createElement(Ea,{iconName:E?i.leftNavigation:i.rightNavigation}))};UL.displayName="CalendarYearNavArrow";var K0e=function(e){var t=e.styles,r=e.theme,n=e.className,o=h0(t,{theme:r,className:n});return m.createElement("div",{className:o.navigationButtonsContainer},m.createElement(UL,K({},e,{direction:rd.Previous})),m.createElement(UL,K({},e,{direction:rd.Next})))};K0e.displayName="CalendarYearNav";var G0e=function(e){var t=e.styles,r=e.theme,n=e.className,o=e.fromYear,a=e.toYear,i=e.strings,s=i===void 0?W0e:i,l=e.animateBackwards,u=e.animationDirection,c=function(){var y;(y=e.onHeaderSelect)===null||y===void 0||y.call(e,!0)},d=function(y){(y.which===pt.enter||y.which===pt.space)&&c()},f=function(y){var S,w;return(w=(S=e.onRenderYear)===null||S===void 0?void 0:S.call(e,y))!==null&&w!==void 0?w:y},p=h0(t,{theme:r,className:n,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:l,animationDirection:u});if(e.onHeaderSelect){var h=s.rangeAriaLabel,v=s.headerAriaLabelFormatString,b=h?typeof h=="string"?h:h(e):void 0,g=v?Ng(v,b):b;return m.createElement("button",{className:p.currentItemButton,onClick:c,onKeyDown:d,"aria-label":g,role:"button",type:"button"},m.createElement("span",{"aria-live":"assertive","aria-atomic":"true"},f(o)," - ",f(a)))}return m.createElement("div",{className:p.current},f(o)," - ",f(a))};G0e.displayName="CalendarYearTitle";var Y0e=function(e){var t,r=e.styles,n=e.theme,o=e.className,a=e.animateBackwards,i=e.animationDirection,s=e.onRenderTitle,l=h0(r,{theme:n,className:o,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:a,animationDirection:i});return m.createElement("div",{className:l.headerContainer},(t=s==null?void 0:s(e))!==null&&t!==void 0?t:m.createElement(G0e,K({},e)),m.createElement(K0e,K({},e)))};Y0e.displayName="CalendarYearHeader";function _yt(e){var t=e.selectedYear,r=e.navigatedYear,n=t||r||new Date().getFullYear(),o=Math.floor(n/10)*10,a=tp(o);if(!(!a||a===o))return a>o}function kyt(e){var t=e.selectedYear,r=e.navigatedYear,n=m.useMemo(function(){return t||r||Math.floor(new Date().getFullYear()/10)*10},[r,t]),o=m.useState(n),a=o[0],i=o[1],s=function(){i(function(c){return c+cy})},l=function(){i(function(c){return c-cy})};m.useEffect(function(){i(n)},[n]);var u=a+cy-1;return[a,u,s,l]}var X0e=function(e){var t=_yt(e),r=kyt(e),n=r[0],o=r[1],a=r[2],i=r[3],s=m.useRef(null);m.useImperativeHandle(e.componentRef,function(){return{focus:function(){var f,p;(p=(f=s.current)===null||f===void 0?void 0:f.focus)===null||p===void 0||p.call(f)}}});var l=e.styles,u=e.theme,c=e.className,d=h0(l,{theme:u,className:c});return m.createElement("div",{className:d.root},m.createElement(Y0e,K({},e,{fromYear:n,toYear:o,onSelectPrev:i,onSelectNext:a,animateBackwards:t})),m.createElement(U0e,K({},e,{fromYear:n,toYear:o,animateBackwards:t,componentRef:s})))};X0e.displayName="CalendarYearBase";var Pyt=Sn(X0e,$yt,void 0,{scope:"CalendarYear"}),L2=4,Tyt=yn(),Iyt={styles:H0e,strings:void 0,navigationIcons:$H,dateTimeFormatter:N0e,yearPickerHidden:!1};function Ryt(e){var t=e.navigatedDate,r=t.getFullYear(),n=tp(r);if(!(n===void 0||n===r))return n>r}function Fyt(e){var t=e.componentRef,r=m.useRef(null),n=m.useRef(null),o=m.useRef(!1),a=m.useCallback(function(){n.current?n.current.focus():r.current&&r.current.focus()},[]);m.useImperativeHandle(t,function(){return{focus:a}},[a]),m.useEffect(function(){o.current&&(a(),o.current=!1)});var i=function(){o.current=!0};return[r,n,i]}var Q0e=function(e){var t,r,n=Hd(Iyt,e),o=Fyt(n),a=o[0],i=o[1],s=o[2],l=m.useState(!1),u=l[0],c=l[1],d=Ryt(n),f=n.navigatedDate,p=n.selectedDate,h=n.strings,v=n.today,b=v===void 0?new Date:v,g=n.navigationIcons,y=n.dateTimeFormatter,S=n.minDate,w=n.maxDate,$=n.theme,C=n.styles,x=n.className,E=n.allFocusable,_=n.highlightCurrentMonth,k=n.highlightSelectedMonth,I=n.animationDirection,N=n.yearPickerHidden,z=n.onNavigateDate,O=function(te){return function(){return L(te)}},A=function(){z(Vb(f,1),!1)},M=function(){z(Vb(f,-1),!1)},L=function(te){var ae;(ae=n.onHeaderSelect)===null||ae===void 0||ae.call(n),z(j2(f,te),!0)},j=function(){var te;N?(te=n.onHeaderSelect)===null||te===void 0||te.call(n):(s(),c(!0))},H=function(te){s();var ae=f.getFullYear();if(ae!==te){var fe=new Date(f.getTime());fe.setFullYear(te),w&&fe>w?fe=j2(fe,w.getMonth()):S&&feYee||l.height>Yee),imageSize:l,focused:n}),b=an(h,Mge),g=b.className,y=Ro(b,["className"]),S=function(){return m.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},w=function(){var k=t.imageAlt,I=k===void 0?"":k,N=t.selectedImageSrc,z=t.onRenderLabel?AI(t.onRenderLabel,S):S,O=z(K(K({},t),{key:t.itemKey}));return m.createElement("label",{htmlFor:d,className:v.field},s&&m.createElement("div",{className:v.innerField},m.createElement("div",{className:v.imageWrapper},m.createElement(t$,K({src:s,alt:I},l))),m.createElement("div",{className:v.selectedImageWrapper},m.createElement(t$,K({src:N,alt:I},l)))),i&&m.createElement("div",{className:v.innerField},m.createElement("div",{className:v.iconWrapper},m.createElement(Ea,K({},i)))),s||i?m.createElement("div",{className:v.labelWrapper},O):O)},$=t.onRenderField,C=$===void 0?w:$,x=function(k){var I;(I=t.onChange)===null||I===void 0||I.call(t,k,K(K({},t),{key:t.itemKey}))},E=function(k){var I;(I=t.onBlur)===null||I===void 0||I.call(t,k)},_=function(k){var I;(I=t.onFocus)===null||I===void 0||I.call(t,k,K(K({},t),{key:t.itemKey}))};return m.createElement("div",{className:v.root},m.createElement("div",{className:v.choiceFieldWrapper},m.createElement("input",K({"aria-label":r,id:d,className:Xr(v.input,g),type:"radio",name:p,disabled:u,checked:c,required:o},y,{onChange:x,onFocus:_,onBlur:E})),C(K(K({},t),{key:t.itemKey}),w)))};ebe.displayName="ChoiceGroupOption";var e1t={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},tbe=15,t1t=tbe*2+2,W5=32,q5=20,JP="200ms",Xee="cubic-bezier(.4, 0, .23, 1)",V2=3,Qee=5;function r1t(e,t){var r,n;return["is-inFocus",{selectors:(r={},r[".".concat(Eo," &")]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid ".concat(e),position:"absolute",selectors:(n={},n[Ze]={borderColor:"WindowText",borderWidth:t?1:2},n)}}},r)}]}function Zee(e,t,r){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:JP,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(r?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var n1t=function(e){var t,r,n,o,a,i=e.theme,s=e.hasIcon,l=e.hasImage,u=e.checked,c=e.disabled,d=e.imageIsLarge,f=e.focused,p=e.imageSize,h=i.palette,v=i.semanticColors,b=i.fonts,g=Ia(e1t,i),y=h.neutralPrimary,S=v.inputBorderHovered,w=v.inputBackgroundChecked,$=h.themeDark,C=v.disabledBodySubtext,x=v.bodyBackground,E=h.neutralSecondary,_=v.inputBackgroundChecked,k=h.themeDark,I=v.disabledBodySubtext,N=h.neutralDark,z=v.focusBorder,O=v.inputBorderHovered,A=v.inputBackgroundChecked,M=h.themeDark,L=h.neutralLighter,j={selectors:{".ms-ChoiceFieldLabel":{color:N},":before":{borderColor:u?$:S},":after":[!s&&!l&&!u&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:E},u&&{borderColor:k,background:k}]}},H={borderColor:u?M:O,selectors:{":before":{opacity:1,borderColor:u?$:S}}},B=[{content:'""',display:"inline-block",backgroundColor:x,borderWidth:1,borderStyle:"solid",borderColor:y,width:q5,height:q5,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:JP,transitionTimingFunction:Xee,borderRadius:"50%"},c&&{borderColor:C,selectors:(t={},t[Ze]=K({borderColor:"GrayText",background:"Window"},Nr()),t)},u&&{borderColor:c?C:w,selectors:(r={},r[Ze]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},r)},(s||l)&&{top:V2,right:V2,left:"auto",opacity:u?1:0}],F=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:q5/2,right:0,transitionProperty:"border-width",transitionDuration:JP,transitionTimingFunction:Xee,boxSizing:"border-box"},u&&{borderWidth:5,borderStyle:"solid",borderColor:c?I:_,background:_,left:5,top:5,width:10,height:10,selectors:(n={},n[Ze]={borderColor:"Highlight",forcedColorAdjust:"none"},n)},u&&(s||l)&&{top:V2+Qee,right:V2+Qee,left:"auto"}];return{root:[g.root,i.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:v.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!s&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",s&&"ms-ChoiceField--icon",(s||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:L,height:"100%"}],choiceFieldWrapper:[g.choiceFieldWrapper,f&&r1t(z,s||l)],input:[g.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},c&&"is-disabled"],field:[g.field,u&&g.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!c&&j,":focus":!c&&j,":before":B,":after":F}},s&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(s||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:JP,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},u&&{borderColor:A},(s||l)&&!c&&{selectors:{":hover":H,":focus":H}},c&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:v.disabledBodyText,selectors:(o={},o[Ze]=K({color:"GrayText"},Nr()),o)}}},u&&c&&{borderColor:L}],innerField:[g.innerField,l&&{height:p.height,width:p.width},(s||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(s||l)&&d&&{paddingLeft:24,paddingRight:24},(s||l)&&c&&{opacity:.25,selectors:(a={},a[Ze]={color:"GrayText",opacity:1},a)}],imageWrapper:Zee(!1,g.imageWrapper,u),selectedImageWrapper:Zee(!0,g.imageWrapper,u),iconWrapper:[g.iconWrapper,{fontSize:W5,lineHeight:W5,height:W5}],labelWrapper:[g.labelWrapper,b.medium,(s||l)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:t1t,lineHeight:tbe,maxWidth:p.width*2,overflow:"hidden",whiteSpace:"pre-wrap"}]}},o1t=Sn(ebe,n1t,void 0,{scope:"ChoiceGroupOption"}),a1t=yn(),rbe=function(e,t){return"".concat(t,"-").concat(e.key)},_H=function(e,t){return t===void 0?void 0:Rmt(e,function(r){return r.key===t})},nbe=function(e,t,r,n,o){var a=_H(e,t)||e.filter(function(s){return!s.disabled})[0],i=a&&(o==null?void 0:o.getElementById(rbe(a,r)));i&&(i.focus(),uh(!0,i,n))},i1t=function(e){return e.relatedTarget instanceof HTMLElement&&e.relatedTarget.dataset.isFocusTrapZoneBumper==="true"},s1t=function(e,t,r,n,o){var a=bgt();m.useImperativeHandle(n,function(){return{get checkedOption(){return _H(e,t)},focus:function(){nbe(e,t,r,o,a)}}},[e,t,r,o,a])},l1t="ChoiceGroup",obe=m.forwardRef(function(e,t){var r=e.className,n=e.theme,o=e.styles,a=e.options,i=a===void 0?[]:a,s=e.label,l=e.required,u=e.disabled,c=e.name,d=e.defaultSelectedKey,f=e.componentRef,p=e.onChange,h=Ks("ChoiceGroup"),v=Ks("ChoiceGroupLabel"),b=an(e,pi,["onChange","className","required"]),g=a1t(o,{theme:n,className:r,optionsContainIconOrImage:i.some(function(M){return!!(M.iconProps||M.imageSrc)})}),y=e.ariaLabelledBy||(s?v:e["aria-labelledby"]),S=Nd(e.selectedKey,d),w=S[0],$=S[1],C=m.useState(),x=C[0],E=C[1],_=m.useRef(null),k=Nc(_,t),I=m.useContext(qy);s1t(i,w,h,f,I==null?void 0:I.registeredProviders),vH(_);var N=m.useCallback(function(M,L){var j;L&&(E(L.itemKey),(j=L.onFocus)===null||j===void 0||j.call(L,M))},[]),z=m.useCallback(function(M,L){var j;E(void 0),(j=L==null?void 0:L.onBlur)===null||j===void 0||j.call(L,M)},[]),O=m.useCallback(function(M,L){var j;L&&($(L.itemKey),(j=L.onChange)===null||j===void 0||j.call(L,M),p==null||p(M,_H(i,L.itemKey)))},[p,i,$]),A=m.useCallback(function(M){i1t(M)&&nbe(i,w,h,I==null?void 0:I.registeredProviders)},[i,w,h,I]);return m.createElement("div",K({className:g.root},b,{ref:k}),m.createElement("div",K({role:"radiogroup"},y&&{"aria-labelledby":y},{onFocus:A}),s&&m.createElement(mc,{className:g.label,required:l,id:v,disabled:u},s),m.createElement("div",{className:g.flexContainer},i.map(function(M){return m.createElement(o1t,K({itemKey:M.key},M,{key:M.key,onBlur:z,onFocus:N,onChange:O,focused:M.key===x,checked:M.key===w,disabled:M.disabled||u,id:rbe(M,h),labelId:M.labelId||"".concat(v,"-").concat(M.key),name:c||h,required:l}))}))))});obe.displayName=l1t;var u1t={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},c1t=function(e){var t=e.className,r=e.optionsContainIconOrImage,n=e.theme,o=Ia(u1t,n);return{root:[t,o.root,n.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,r&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}},d1t=Sn(obe,c1t,void 0,{scope:"ChoiceGroup"}),qI=100,f1t=359,ug=100,Mf=255,Gs=100,UI=3,PC=6,p1t=1,m1t=3,h1t=/^[\da-f]{0,6}$/i,v1t=/^\d{0,3}$/;function g1t(e,t,r){t*=(r<50?r:100-r)/100;var n=r+t;return{h:e,s:n===0?0:2*t/n*100,v:n}}function IN(e,t,r){t=t/100,r=r/100;var n=[],o=r*t,a=e/60,i=o*(1-Math.abs(a%2-1)),s=r-o;switch(Math.floor(a)){case 0:n=[o,i,0];break;case 1:n=[i,o,0];break;case 2:n=[0,o,i];break;case 3:n=[0,i,o];break;case 4:n=[i,0,o];break;case 5:n=[o,0,i];break}return{r:Math.round(Mf*(n[0]+s)),g:Math.round(Mf*(n[1]+s)),b:Math.round(Mf*(n[2]+s))}}function b1t(e,t,r){var n=g1t(e,t,r);return IN(n.h,n.s,n.v)}function y1t(e,t){if(e){var r=t??Ho(),n=abe(e)||C1t(e)||x1t(e)||w1t(e);return n||S1t(e,r)}}function S1t(e,t){var r;if(!(typeof t>"u")){var n=t.createElement("div");n.style.backgroundColor=e,n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",n.style.height="1px",n.style.width="1px",t.body.appendChild(n);var o=(r=t.defaultView)===null||r===void 0?void 0:r.getComputedStyle(n),a=o&&o.backgroundColor;if(t.body.removeChild(n),a==="rgba(0, 0, 0, 0)"||a==="transparent"){switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}return}return abe(a)}}function abe(e){if(e){var t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){var r=!!t[1],n=r?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===n)return{r:o[0],g:o[1],b:o[2],a:r?o[3]*100:Gs}}}}function w1t(e){var t=e.match(/^hsl(a?)\(([\d., ]+)\)$/);if(t){var r=!!t[1],n=r?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===n){var a=b1t(o[0],o[1],o[2]);return a.a=r?o[3]*100:Gs,a}}}function C1t(e){if(e[0]==="#"&&e.length===7&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:Gs}}function x1t(e){if(e[0]==="#"&&e.length===4&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:Gs}}function Cl(e,t,r){return r===void 0&&(r=0),et?t:e}function RN(e,t,r){return[U5(e),U5(t),U5(r)].join("")}function U5(e){e=Cl(e,Mf);var t=e.toString(16);return t.length===1?"0"+t:t}function $1t(e,t,r){var n=IN(e,t,r),o=n.r,a=n.g,i=n.b;return RN(o,a,i)}function E1t(e,t,r){var n=NaN,o=Math.max(e,t,r),a=Math.min(e,t,r),i=o-a;i===0?n=0:e===o?n=(t-r)/i%6:t===o?n=(r-e)/i+2:r===o&&(n=(e-t)/i+4),n=Math.round(n*60),n<0&&(n+=360);var s=Math.round((o===0?0:i/o)*100),l=Math.round(o/Mf*100);return{h:n,s,v:l}}function HE(e,t,r,n,o){return n===Gs||typeof n!="number"?"#".concat(o):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(n/Gs,")")}function KL(e){var t=e.a,r=t===void 0?Gs:t,n=e.b,o=e.g,a=e.r,i=E1t(a,o,n),s=i.h,l=i.s,u=i.v,c=RN(a,o,n),d=HE(a,o,n,r,c),f=Gs-r;return{a:r,b:n,g:o,h:s,hex:c,r:a,s:l,str:d,v:u,t:f}}function TC(e,t){var r=t??Ho(),n=y1t(e,r);if(n)return K(K({},KL(n)),{str:e})}function _1t(e){return"#".concat($1t(e.h,qI,ug))}function ibe(e,t,r){var n=IN(e.h,t,r),o=n.r,a=n.g,i=n.b,s=RN(o,a,i);return K(K({},e),{s:t,v:r,r:o,g:a,b:i,hex:s,str:HE(o,a,i,e.a,s)})}function k1t(e,t){var r=IN(t,e.s,e.v),n=r.r,o=r.g,a=r.b,i=RN(n,o,a);return K(K({},e),{h:t,r:n,g:o,b:a,hex:i,str:HE(n,o,a,e.a,i)})}function Jee(e,t){return K(K({},e),{a:t,t:Gs-t,str:HE(e.r,e.g,e.b,t,e.hex)})}function P1t(e){return{r:Cl(e.r,Mf),g:Cl(e.g,Mf),b:Cl(e.b,Mf),a:typeof e.a=="number"?Cl(e.a,Gs):e.a}}function T1t(e){return!e||e.length=PC?e.substring(0,PC):e.substring(0,UI)}function K5(e,t){var r=Gs-t;return K(K({},e),{t,a:r,str:HE(e.r,e.g,e.b,r,e.hex)})}var I1t=yn(),R1t="",dv="TextField",F1t="RedEye",O1t="Hide",N1t=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;n._textElement=m.createRef(),n._onFocus=function(i){n.props.onFocus&&n.props.onFocus(i),n.setState({isFocused:!0},function(){n.props.validateOnFocusIn&&n._validate(n.value)})},n._onBlur=function(i){n.props.onBlur&&n.props.onBlur(i),n.setState({isFocused:!1},function(){n.props.validateOnFocusOut&&n._validate(n.value)})},n._onRenderLabel=function(i){var s=i.label,l=i.required,u=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return s?m.createElement(mc,{required:l,htmlFor:n._id,styles:u,disabled:i.disabled,id:n._labelId},i.label):null},n._onRenderDescription=function(i){return i.description?m.createElement("span",{className:n._classNames.description},i.description):null},n._onRevealButtonClick=function(i){n.setState(function(s){return{isRevealingPassword:!s.isRevealingPassword}})},n._onInputChange=function(i){var s,l,u=i.target,c=u.value,d=G5(n.props,n.state)||"";if(c===void 0||c===n._lastChangeValue||c===d){n._lastChangeValue=void 0;return}n._lastChangeValue=c,(l=(s=n.props).onChange)===null||l===void 0||l.call(s,i,c),n._isControlled||n.setState({uncontrolledValue:c})},Ml(n),n._async=new Gh(n),n._fallbackId=Sa(dv),n._descriptionId=Sa(dv+"Description"),n._labelId=Sa(dv+"Label"),n._prefixId=Sa(dv+"Prefix"),n._suffixId=Sa(dv+"Suffix"),n._warnControlledUsage();var o=r.defaultValue,a=o===void 0?R1t:o;return typeof a=="number"&&(a=String(a)),n.state={uncontrolledValue:n._isControlled?void 0:a,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return Object.defineProperty(t.prototype,"value",{get:function(){return G5(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(r,n){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(r,n,o){var a=this.props,i=(o||{}).selection,s=i===void 0?[null,null]:i,l=s[0],u=s[1];!!r.multiline!=!!a.multiline&&n.isFocused&&(this.focus(),l!==null&&u!==null&&l>=0&&u>=0&&this.setSelectionRange(l,u)),r.value!==a.value&&(this._lastChangeValue=void 0);var c=G5(r,n),d=this.value;c!==d&&(this._warnControlledUsage(r),this.state.errorMessage&&!a.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),ete(a)&&this._delayedValidate(d))},t.prototype.render=function(){var r=this.props,n=r.borderless,o=r.className,a=r.disabled,i=r.invalid,s=r.iconProps,l=r.inputClassName,u=r.label,c=r.multiline,d=r.required,f=r.underlined,p=r.prefix,h=r.resizable,v=r.suffix,b=r.theme,g=r.styles,y=r.autoAdjustHeight,S=r.canRevealPassword,w=r.revealPasswordAriaLabel,$=r.type,C=r.onRenderPrefix,x=C===void 0?this._onRenderPrefix:C,E=r.onRenderSuffix,_=E===void 0?this._onRenderSuffix:E,k=r.onRenderLabel,I=k===void 0?this._onRenderLabel:k,N=r.onRenderDescription,z=N===void 0?this._onRenderDescription:N,O=this.state,A=O.isFocused,M=O.isRevealingPassword,L=this._errorMessage,j=typeof i=="boolean"?i:!!L,H=!!S&&$==="password"&&D1t(),B=this._classNames=I1t(g,{theme:b,className:o,disabled:a,focused:A,required:d,multiline:c,hasLabel:!!u,hasErrorMessage:j,borderless:n,resizable:h,hasIcon:!!s,underlined:f,inputClassName:l,autoAdjustHeight:y,hasRevealButton:H});return m.createElement("div",{ref:this.props.elementRef,className:B.root},m.createElement("div",{className:B.wrapper},I(this.props,this._onRenderLabel),m.createElement("div",{className:B.fieldGroup},(p!==void 0||this.props.onRenderPrefix)&&m.createElement("div",{className:B.prefix,id:this._prefixId},x(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&m.createElement(Ea,K({className:B.icon},s)),H&&m.createElement("button",{"aria-label":w,className:B.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!M,type:"button"},m.createElement("span",{className:B.revealSpan},m.createElement(Ea,{className:B.revealIcon,iconName:M?O1t:F1t}))),(v!==void 0||this.props.onRenderSuffix)&&m.createElement("div",{className:B.suffix,id:this._suffixId},_(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&m.createElement("span",{id:this._descriptionId},z(this.props,this._onRenderDescription),L&&m.createElement("div",{role:"alert"},m.createElement(Ige,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(r){this._textElement.current&&(this._textElement.current.selectionStart=r)},t.prototype.setSelectionEnd=function(r){this._textElement.current&&(this._textElement.current.selectionEnd=r)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(r,n){this._textElement.current&&this._textElement.current.setSelectionRange(r,n)},t.prototype._warnControlledUsage=function(r){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,BE("Warning: 'value' prop on '".concat(dv,"' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return Wmt(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(r){var n=r.prefix;return m.createElement("span",{style:{paddingBottom:"1px"}},n)},t.prototype._onRenderSuffix=function(r){var n=r.suffix;return m.createElement("span",{style:{paddingBottom:"1px"}},n)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var r=this.props.errorMessage,n=r===void 0?this.state.errorMessage:r;return n||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var r=this._errorMessage;return r?typeof r=="string"?m.createElement("p",{className:this._classNames.errorMessage},m.createElement("span",{"data-automation-id":"error-message"},r)):m.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},r):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var r=this.props;return!!(r.onRenderDescription||r.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var r=this.props.invalid,n=r===void 0?!!this._errorMessage:r,o=an(this.props,sht,["defaultValue"]),a=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return m.createElement("textarea",K({id:this._id},o,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":a,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":n,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var r=this.props,n=r.ariaLabel,o=r.invalid,a=o===void 0?!!this._errorMessage:o,i=r.onRenderPrefix,s=r.onRenderSuffix,l=r.prefix,u=r.suffix,c=r.type,d=c===void 0?"text":c,f=r.label,p=[];f&&p.push(this._labelId),(l!==void 0||i)&&p.push(this._prefixId),(u!==void 0||s)&&p.push(this._suffixId);var h=K(K({type:this.state.isRevealingPassword?"text":d,id:this._id},an(this.props,Mge,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(p.length>0?p.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":n,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":a,onFocus:this._onFocus,onBlur:this._onBlur}),v=function(g){return m.createElement("input",K({},g))},b=this.props.onRenderInput||v;return b(h,v)},t.prototype._validate=function(r){var n=this;if(!(this._latestValidateValue===r&&ete(this.props))){this._latestValidateValue=r;var o=this.props.onGetErrorMessage,a=o&&o(r||"");if(a!==void 0)if(typeof a=="string"||!("then"in a))this.setState({errorMessage:a}),this._notifyAfterValidate(r,a);else{var i=++this._lastValidation;a.then(function(s){i===n._lastValidation&&n.setState({errorMessage:s}),n._notifyAfterValidate(r,s)})}else this._notifyAfterValidate(r,"")}},t.prototype._notifyAfterValidate=function(r,n){r===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(n,r)},t.prototype._adjustInputHeight=function(){var r,n;if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var o=(n=(r=this.props.scrollContainerRef)===null||r===void 0?void 0:r.current)===null||n===void 0?void 0:n.scrollTop,a=this._textElement.current;a.style.height="",a.style.height=a.scrollHeight+"px",o&&(this.props.scrollContainerRef.current.scrollTop=o)}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(m.Component);function G5(e,t){var r=e.value,n=r===void 0?t.uncontrolledValue:r;return typeof n=="number"?String(n):n}function ete(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var H2;function D1t(){if(typeof H2!="boolean"){var e=fn();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");H2=!(Pht()||t)}else H2=!0}return H2}var A1t={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function M1t(e){var t=e.underlined,r=e.disabled,n=e.focused,o=e.theme,a=o.palette,i=o.fonts;return function(){var s;return{root:[t&&r&&{color:a.neutralTertiary},t&&{fontSize:i.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&n&&{selectors:(s={},s[Ze]={height:31},s)}]}}}function B1t(e){var t,r,n,o,a,i,s,l,u,c,d,f,p=e.theme,h=e.className,v=e.disabled,b=e.focused,g=e.required,y=e.multiline,S=e.hasLabel,w=e.borderless,$=e.underlined,C=e.hasIcon,x=e.resizable,E=e.hasErrorMessage,_=e.inputClassName,k=e.autoAdjustHeight,I=e.hasRevealButton,N=p.semanticColors,z=p.effects,O=p.fonts,A=Ia(A1t,p),M={background:N.disabledBackground,color:v?N.disabledText:N.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[Ze]={background:"Window",color:v?"GrayText":"WindowText"},t)},L=[{color:N.inputPlaceholderText,opacity:1,selectors:(r={},r[Ze]={color:"GrayText"},r)}],j={color:N.disabledText,selectors:(n={},n[Ze]={color:"GrayText"},n)};return{root:[A.root,O.medium,g&&A.required,v&&A.disabled,b&&A.active,y&&A.multiline,w&&A.borderless,$&&A.underlined,Af,{position:"relative"},h],wrapper:[A.wrapper,$&&[{display:"flex",borderBottom:"1px solid ".concat(E?N.errorText:N.inputBorder),width:"100%"},v&&{borderBottomColor:N.disabledBackground,selectors:(o={},o[Ze]=K({borderColor:"GrayText"},Nr()),o)},!v&&{selectors:{":hover":{borderBottomColor:E?N.errorText:N.inputBorderHovered,selectors:(a={},a[Ze]=K({borderBottomColor:"Highlight"},Nr()),a)}}},b&&[{position:"relative"},BL(E?N.errorText:N.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[A.fieldGroup,Af,{border:"1px solid ".concat(N.inputBorder),borderRadius:z.roundedCorner2,background:N.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},y&&{minHeight:"60px",height:"auto",display:"flex"},!b&&!v&&{selectors:{":hover":{borderColor:N.inputBorderHovered,selectors:(i={},i[Ze]=K({borderColor:"Highlight"},Nr()),i)}}},b&&!$&&BL(E?N.errorText:N.inputFocusBorderAlt,z.roundedCorner2),v&&{borderColor:N.disabledBackground,selectors:(s={},s[Ze]=K({borderColor:"GrayText"},Nr()),s),cursor:"default"},w&&{border:"none"},w&&b&&{border:"none",selectors:{":after":{border:"none"}}},$&&{flex:"1 1 0px",border:"none",textAlign:"left"},$&&v&&{backgroundColor:"transparent"},E&&!$&&{borderColor:N.errorText,selectors:{"&:hover":{borderColor:N.errorText}}},!S&&g&&{selectors:(l={":before":{content:"'*'",color:N.errorText,position:"absolute",top:-5,right:-10}},l[Ze]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[O.medium,A.field,Af,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:N.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[Ze]={background:"Window",color:v?"GrayText":"WindowText"},u)},Eee(L),y&&!x&&[A.unresizable,{resize:"none"}],y&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},y&&k&&{overflow:"hidden"},C&&!I&&{paddingRight:24},y&&C&&{paddingRight:40},v&&[{backgroundColor:N.disabledBackground,color:N.disabledText,borderColor:N.disabledBackground},Eee(j)],$&&{textAlign:"left"},b&&!w&&{selectors:(c={},c[Ze]={paddingLeft:11,paddingRight:11},c)},b&&y&&!w&&{selectors:(d={},d[Ze]={paddingTop:4},d)},_],icon:[y&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:ds.medium,lineHeight:18},v&&{color:N.disabledText}],description:[A.description,{color:N.bodySubtext,fontSize:O.xSmall.fontSize}],errorMessage:[A.errorMessage,fl.slideDownIn20,O.small,{color:N.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[A.prefix,M],suffix:[A.suffix,M],revealButton:[A.revealButton,"ms-Button","ms-Button--icon",Ha(p,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:N.link,selectors:{":hover":{outline:0,color:N.primaryButtonBackgroundHovered,backgroundColor:N.buttonBackgroundHovered,selectors:(f={},f[Ze]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},C&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:ds.medium,lineHeight:18},subComponentStyles:{label:M1t(e)}}}var FN=Sn(N1t,B1t,void 0,{scope:"TextField"}),j1t=yn(),eT=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;return n._disposables=[],n._root=m.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=Sa("ColorRectangle-description"),n._onKeyDown=function(o){var a=n.state.color,i=a.s,s=a.v,l=o.shiftKey?10:1;switch(o.which){case pt.up:{n._isAdjustingSaturation=!1,s+=l;break}case pt.down:{n._isAdjustingSaturation=!1,s-=l;break}case pt.left:{n._isAdjustingSaturation=!0,i-=l;break}case pt.right:{n._isAdjustingSaturation=!0,i+=l;break}default:return}n._updateColor(o,ibe(a,Cl(i,qI),Cl(s,ug)))},n._onMouseDown=function(o){var a=kN(n.context);n._disposables.push(Ni(a,"mousemove",n._onMouseMove,!0),Ni(a,"mouseup",n._disposeListeners,!0)),n._onMouseMove(o)},n._onMouseMove=function(o){if(n._root.current){var a=tte(o,n.state.color,n._root.current);a&&n._updateColor(o,a)}},n._onTouchStart=function(o){n._root.current&&o.stopPropagation()},n._onTouchMove=function(o){if(n._root.current){var a=tte(o,n.state.color,n._root.current);a&&n._updateColor(o,a),o.preventDefault(),o.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach(function(o){return o()}),n._disposables=[]},Ml(n),n.state={color:r.color},n}return Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(r,n){r!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var r=this.props,n=r.minSize,o=r.theme,a=r.className,i=r.styles,s=r.ariaValueFormat,l=r.ariaLabel,u=r.ariaDescription,c=this.state.color,d=j1t(i,{theme:o,className:a,minSize:n}),f=s.replace("{0}",String(c.s)).replace("{1}",String(c.v));return m.createElement("div",{ref:this._root,tabIndex:0,className:d.root,style:{backgroundColor:_1t(c)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":f,"aria-valuenow":this._isAdjustingSaturation?c.s:c.v,"aria-valuemin":0,"aria-valuemax":ug,"aria-label":l,"aria-describedby":this._descriptionId,"data-is-focusable":!0},m.createElement("div",{className:d.description,id:this._descriptionId},u),m.createElement("div",{className:d.light}),m.createElement("div",{className:d.dark}),m.createElement("div",{className:d.thumb,style:{left:c.s+"%",top:ug-c.v+"%",backgroundColor:c.str}}))},t.prototype._updateColor=function(r,n){var o=this.props.onChange,a=this.state.color;n.s===a.s&&n.v===a.v||(o&&o(r,n),r.defaultPrevented||(this.setState({color:n}),r.preventDefault()))},t.contextType=m0,t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(m.Component);function tte(e,t,r){var n=r.getBoundingClientRect(),o=void 0,a=e;if(a.touches){var i=a.touches[a.touches.length-1];i.clientX!==void 0&&i.clientY!==void 0&&(o={clientX:i.clientX,clientY:i.clientY})}if(!o){var s=e;s.clientX!==void 0&&s.clientY!==void 0&&(o={clientX:s.clientX,clientY:s.clientY})}if(o){var l=(o.clientX-n.left)/n.width,u=(o.clientY-n.top)/n.height;return ibe(t,Cl(Math.round(l*qI),qI),Cl(Math.round(ug-u*ug),ug))}}var L1t=function(e){var t,r,n=e.className,o=e.theme,a=e.minSize,i=o.palette,s=o.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid ".concat(i.neutralLighter),borderRadius:s.roundedCorner2,minWidth:a,minHeight:a,outline:"none",selectors:(t={},t[Ze]=K({},Nr()),t[".".concat(Eo," &:focus")]=(r={outline:"1px solid ".concat(i.neutralSecondary)},r["".concat(Ze)]={outline:"2px solid CanvasText"},r),t)},n],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(i.neutralSecondaryAlt),borderRadius:"50%",boxShadow:s.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid ".concat(i.white),borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:xN}},z1t=Sn(eT,L1t,void 0,{scope:"ColorRectangle"}),V1t=yn(),H1t=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;return n._disposables=[],n._root=m.createRef(),n._onKeyDown=function(o){var a=n.value,i=n._maxValue,s=o.shiftKey?10:1;switch(o.which){case pt.left:{a-=s;break}case pt.right:{a+=s;break}case pt.home:{a=0;break}case pt.end:{a=i;break}default:return}n._updateValue(o,Cl(a,i))},n._onMouseDown=function(o){var a=fn(n);a&&n._disposables.push(Ni(a,"mousemove",n._onMouseMove,!0),Ni(a,"mouseup",n._disposeListeners,!0)),n._onMouseMove(o)},n._onMouseMove=function(o){if(n._root.current){var a=n._maxValue,i=n._root.current.getBoundingClientRect(),s=(o.clientX-i.left)/i.width,l=Cl(Math.round(s*a),a);n._updateValue(o,l)}},n._onTouchStart=function(o){n._root.current&&o.stopPropagation()},n._onTouchMove=function(o){if(n._root.current){var a=o.touches[o.touches.length-1];if(a.clientX!==void 0){var i=n._maxValue,s=n._root.current.getBoundingClientRect(),l=(a.clientX-s.left)/s.width,u=Cl(Math.round(l*i),i);n._updateValue(o,u)}o.preventDefault(),o.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach(function(o){return o()}),n._disposables=[]},Ml(n),n._type!=="hue"&&!(r.overlayColor||r.overlayStyle)&&BE(`ColorSlider: 'overlayColor' is required when 'type' is "alpha" or "transparency"`),n.state={currentValue:r.value||0},n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(r,n){r!==this.props&&this.props.value!==void 0&&this.setState({currentValue:this.props.value})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var r=this._type,n=this._maxValue,o=this.props,a=o.overlayStyle,i=o.overlayColor,s=o.theme,l=o.className,u=o.styles,c=o.ariaLabel,d=c===void 0?r:c,f=this.value,p=V1t(u,{theme:s,className:l,type:r}),h=100*f/n;return m.createElement("div",{ref:this._root,className:p.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":f,"aria-valuetext":String(f),"aria-valuemin":0,"aria-valuemax":n,"aria-label":d,"data-is-focusable":!0},!!(i||a)&&m.createElement("div",{className:p.sliderOverlay,style:i?{background:r==="transparency"?"linear-gradient(to right, #".concat(i,", transparent)"):"linear-gradient(to right, transparent, #".concat(i,")")}:a}),m.createElement("div",{className:p.sliderThumb,style:{left:h+"%"}}))},Object.defineProperty(t.prototype,"_type",{get:function(){var r=this.props,n=r.isAlpha,o=r.type,a=o===void 0?n?"alpha":"hue":o;return a},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_maxValue",{get:function(){return this._type==="hue"?f1t:Gs},enumerable:!1,configurable:!0}),t.prototype._updateValue=function(r,n){if(n!==this.value){var o=this.props.onChange;o&&o(r,n),r.defaultPrevented||(this.setState({currentValue:n}),r.preventDefault())}},t.defaultProps={value:0},t}(m.Component),W1t={background:"linear-gradient(".concat(["to left","red 0","#f09 10%","#cd00ff 20%","#3200ff 30%","#06f 40%","#00fffd 50%","#0f6 60%","#35ff00 70%","#cdff00 80%","#f90 90%","red 100%"].join(","),")")},q1t={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},U1t=function(e){var t,r,n=e.theme,o=e.className,a=e.type,i=a===void 0?"hue":a,s=e.isAlpha,l=s===void 0?i!=="hue":s,u=n.palette,c=n.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid ".concat(u.neutralLight),borderRadius:c.roundedCorner2,boxSizing:"border-box",outline:"none",forcedColorAdjust:"none",selectors:(t={},t[".".concat(Eo," &:focus")]=(r={outline:"1px solid ".concat(u.neutralSecondary)},r["".concat(Ze)]={outline:"2px solid CanvasText"},r),t)},l?q1t:W1t,o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(u.neutralSecondaryAlt),borderRadius:"50%",boxShadow:c.elevation8,transform:"translate(-50%, -50%)",top:"50%",forcedColorAdjust:"auto"}]}},rte=Sn(H1t,U1t,void 0,{scope:"ColorSlider"}),K1t=yn(),G1t=["hex","r","g","b","a","t"],Y1t={hex:"hexError",r:"redError",g:"greenError",b:"blueError",a:"alphaError",t:"transparencyError"},X1t=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;n._onSVChanged=function(u,c){n._updateColor(u,c)},n._onHChanged=function(u,c){n._updateColor(u,k1t(n.state.color,c))},n._onATChanged=function(u,c){var d=n.props.alphaType==="transparency"?K5:Jee;n._updateColor(u,d(n.state.color,Math.round(c)))},n._onBlur=function(u){var c,d=n.state,f=d.color,p=d.editingColor;if(p){var h=p.value,v=p.component,b=v==="hex",g=v==="a",y=v==="t",S=b?UI:p1t;if(h.length>=S&&(b||!isNaN(Number(h)))){var w=void 0;if(b)w=TC("#"+T1t(h));else if(g||y){var $=g?Jee:K5;w=$(f,Cl(Number(h),Gs))}else w=KL(P1t(K(K({},f),(c={},c[v]=Number(h),c))));n._updateColor(u,w)}else n.setState({editingColor:void 0})}},Ml(n);var o=r.strings;o.hue&&BE("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),n.state={color:nte(r)||TC("#ffffff")},n._textChangeHandlers={};for(var a=0,i=G1t;a=UI&&o.length<=PC)){var a=Y1t[r];return this._strings[a]}}},t.prototype._onTextChange=function(r,n,o){var a,i=this.state.color,s=r==="hex",l=r==="a",u=r==="t";o=(o||"").substr(0,s?PC:m1t);var c=s?h1t:v1t;if(c.test(o)){var d;if(o===""?d=!1:s?d=o.length===PC:l||u?d=Number(o)<=Gs:d=Number(o)<=Mf,!d)this.setState({editingColor:{component:r,value:o}});else if(String(i[r])===o)this.state.editingColor&&this.setState({editingColor:void 0});else{var f=s?TC("#"+o):u?K5(i,Number(o)):KL(K(K({},i),(a={},a[r]=Number(o),a)));this._updateColor(n,f)}}},t.prototype._updateColor=function(r,n){if(n){var o=this.state,a=o.color,i=o.editingColor,s=n.h!==a.h||n.str!==a.str;if(s||i){if(r&&this.props.onChange&&(this.props.onChange(r,n),r.defaultPrevented))return;this.setState({color:n,editingColor:void 0})}}},t.defaultProps={alphaType:"alpha",strings:{rootAriaLabelFormat:"Color picker, {0} selected.",hex:"Hex",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",transparency:"Transparency",hueAriaLabel:"Hue",svAriaLabel:eT.defaultProps.ariaLabel,svAriaValueFormat:eT.defaultProps.ariaValueFormat,svAriaDescription:eT.defaultProps.ariaDescription,hexError:"Hex values must be between 3 and 6 characters long",alphaError:"Alpha must be between 0 and 100",transparencyError:"Transparency must be between 0 and 100",redError:"Red must be between 0 and 255",greenError:"Green must be between 0 and 255",blueError:"Blue must be between 0 and 255"}},t}(m.Component);function nte(e){var t=e.color;return typeof t=="string"?TC(t):t}var Q1t=function(e){var t=e.className,r=e.theme,n=e.alphaType;return{root:["ms-ColorPicker",r.fonts.medium,{position:"relative",maxWidth:300},t],panel:["ms-ColorPicker-panel",{padding:"16px"}],table:["ms-ColorPicker-table",{tableLayout:"fixed",width:"100%",selectors:{"tbody td:last-of-type .ms-ColorPicker-input":{paddingRight:0}}}],tableHeader:[r.fonts.small,{selectors:{td:{paddingBottom:4}}}],tableHexCell:{width:"25%"},tableAlphaCell:n==="transparency"&&{width:"22%"},colorSquare:["ms-ColorPicker-colorSquare",{width:48,height:48,margin:"0 0 0 8px",border:"1px solid #c8c6c4",forcedColorAdjust:"none"}],flexContainer:{display:"flex"},flexSlider:{flexGrow:"1"},flexPreviewBox:{flexGrow:"0"},input:["ms-ColorPicker-input",{width:"100%",border:"none",boxSizing:"border-box",height:30,selectors:{"&.ms-TextField":{paddingRight:4},"& .ms-TextField-field":{minWidth:"auto",padding:5,textOverflow:"clip"}}}]}},Z1t=Sn(X1t,Q1t,void 0,{scope:"ColorPicker"});function ote(e,t){for(var r=[],n=0,o=t;nr;if(h){if(n&&this._scrollElement){for(var v=cSt(this._scrollElement),b=ate(this._scrollElement),g={top:b,bottom:b+v.height},y=r-d,S=0;S=g.top&&w<=g.bottom;if($)return;var C=ug.bottom;C||x&&(u=w-v.height)}this._scrollElement&&q2(this._scrollElement,u);return}u+=p}},t.prototype.getStartItemIndexInView=function(r){for(var n=this.state.pages||[],o=0,a=n;o=i.top&&(this._scrollTop||0)<=i.top+i.height;if(s)if(r)for(var u=0,c=i.startIndex;c0?a:void 0,"aria-label":c.length>0?d["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(r){r===void 0&&(r=this.props);var n=r.onShouldVirtualize;return!n||n(r)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(r){var n=this,o=this.props.usePageCache,a;if(o&&(a=this._pageCache[r.key],a&&a.pageElement))return a.pageElement;var i=this._getPageStyle(r),s=this.props.onRenderPage,l=s===void 0?this._onRenderPage:s,u=l({page:r,className:"ms-List-page",key:r.key,ref:function(c){n._pageRefs[r.key]=c},style:i,role:"presentation"},this._onRenderPage);return o&&r.startIndex===0&&(this._pageCache[r.key]={page:r,pageElement:u}),u},t.prototype._getPageStyle=function(r){var n=this.props.getPageStyle;return K(K({},n?n(r):{}),r.items?{}:{height:r.height})},t.prototype._onFocus=function(r){for(var n=r.target;n!==this._surface.current;){var o=n.getAttribute("data-list-index");if(o){this._focusedIndex=Number(o);break}n=ic(n)}},t.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!fSt(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var r=this.props,n=r.renderedWindowsAhead,o=r.renderedWindowsBehind,a=this,i=a._requiredWindowsAhead,s=a._requiredWindowsBehind,l=Math.min(n,i+1),u=Math.min(o,s+1);(l!==i||u!==s)&&(this._requiredWindowsAhead=l,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>l||o>u)&&this._onAsyncIdleDebounced()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(r,n){this._requiredRect||this._updateRenderRects(r,n);var o=this._buildPages(r,n),a=n.pages;return this._notifyPageChanges(a,o.pages,this.props),K(K(K({},n),o),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(r,n,o){var a=o.onPageAdded,i=o.onPageRemoved;if(a||i){for(var s={},l=0,u=r;l-1,z=!g||I>=g.top&&d<=g.bottom,O=!S._requiredRect||I>=S._requiredRect.top&&d<=S._requiredRect.bottom,A=!b&&(O||z&&N)||!v,M=p>=C&&p=S._visibleRect.top&&d<=S._visibleRect.bottom),u.push(H),O&&S._allowedRect&&pSt(l,{top:d,bottom:I,height:E,left:g.left,right:g.right,width:g.width})}else f||(f=S._createPage(ste+C,void 0,C,0,void 0,_,!0)),f.height=(f.height||0)+(I-d)+1,f.itemCount+=c;if(d+=I-d+1,b&&v)return"break"},S=this,w=i;wthis._estimatedPageHeight/3)&&(l=this._surfaceRect=uSt(this._surface.current),this._scrollTop=c),(o||!u||u!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=u||0;var d=Math.max(0,-l.top),f=fn(this._root.current),p={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=ute(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=ute(p,i,a),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(r,n,o){return m.createElement(m.Fragment,null,r&&r.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:sSt,renderedWindowsBehind:iSt},t.contextType=m0,t}(m.Component);function ute(e,t,r){var n=e.top-t*e.height,o=e.height+(t+r)*e.height;return{top:n,bottom:n+o,height:o,left:e.left,right:e.right,width:e.width}}function fSt(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function pSt(e,t){return e.top=t.tope.bottom||e.bottom===-1?t.bottom:e.bottom,e.right=t.right>e.right||e.right===-1?t.right:e.right,e.width=e.right-e.left+1,e.height=e.bottom-e.top+1,e}var mSt=K(K({},Eyt),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format",isResetStatusMessage:'Invalid entry "{0}", date reset to "{1}"'}),hSt=yn(),vSt={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){e.match(/^\d{4}(-\d{2}){2}$/)&&(e+="T12:00");var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:Di.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:mSt,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:Qy.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1};function gSt(){var e=m.useRef(null),t=m.useRef(!1),r=function(){var o,a;(a=(o=e.current)===null||o===void 0?void 0:o.focus)===null||a===void 0||a.call(o)},n=function(){t.current=!0};return[e,r,t,n]}function bSt(e,t){var r=e.allowTextInput,n=e.onAfterMenuDismiss,o=m.useState(!1),a=o[0],i=o[1],s=m.useRef(!1),l=Qh();return m.useEffect(function(){s.current&&!a&&(r&&l.requestAnimationFrame(t),n==null||n()),s.current=!0},[a]),[a,i]}function ySt(e){var t=e.formatDate,r=e.value,n=e.onSelectDate,o=Nd(r,void 0,function(d,f){return n==null?void 0:n(f)}),a=o[0],i=o[1],s=m.useState(function(){return r&&t?t(r):""}),l=s[0],u=s[1],c=function(d){i(d),u(d&&t?t(d):"")};return m.useEffect(function(){u(r&&t?t(r):"")},[t,r]),[a,l,c,u]}function SSt(e,t,r,n,o){var a,i=e.isRequired,s=e.allowTextInput,l=e.strings,u=e.parseDateFromString,c=e.onSelectDate,d=e.formatDate,f=e.minDate,p=e.maxDate,h=e.textField,v=m.useState(),b=v[0],g=v[1],y=m.useState(),S=y[0],w=y[1],$=m.useRef(!0),C=(a=h==null?void 0:h.validateOnLoad)!==null&&a!==void 0?a:!0,x=function(E){if(E===void 0&&(E=null),s)if(n||E){if(t&&!b&&d&&d(E??t)===n)return;if(E=E||u(n),!E||isNaN(E.getTime())){r(t);var _=d?d(t):"",k=l.isResetStatusMessage?Ng(l.isResetStatusMessage,n,_):l.invalidInputErrorMessage||"";w(k)}else cte(E,f,p)?g(l.isOutOfBoundsErrorMessage||" "):(r(E),g(void 0),w(void 0))}else g(i?l.isRequiredErrorMessage||" ":void 0),c==null||c(E);else i&&!n?g(l.isRequiredErrorMessage||" "):(g(void 0),w(void 0))};return m.useEffect(function(){$.current&&($.current=!1,!C)||(i&&!t?g(l.isRequiredErrorMessage||" "):t&&cte(t,f,p)?g(l.isOutOfBoundsErrorMessage||" "):g(void 0))},[f&&_C(f),p&&_C(p),t&&_C(t),i,C]),[o?void 0:b,x,g,o?void 0:S,w]}var lbe=m.forwardRef(function(e,t){var r,n,o=Hd(vSt,e),a=o.firstDayOfWeek,i=o.strings,s=o.label,l=o.theme,u=o.className,c=o.styles,d=o.initialPickerDate,f=o.isRequired,p=o.disabled,h=o.ariaLabel,v=o.pickerAriaLabel,b=o.placeholder,g=o.allowTextInput,y=o.borderless,S=o.minDate,w=o.maxDate,$=o.showCloseButton,C=o.calendarProps,x=o.calloutProps,E=o.textField,_=o.underlined,k=o.allFocusable,I=o.calendarAs,N=I===void 0?Wyt:I,z=o.tabIndex,O=o.disableAutoFocus,A=O===void 0?!0:O,M=Ks("DatePicker",o.id),L=Ks("DatePicker-Callout"),j=m.useRef(null),H=m.useRef(null),B=gSt(),F=B[0],V=B[1],D=B[2],P=B[3],R=bSt(o,V),W=R[0],U=R[1],q=ySt(o),J=q[0],Z=q[1],Q=q[2],oe=q[3],ie=SSt(o,J,Q,Z,W),te=ie[0],ae=ie[1],fe=ie[2],ve=ie[3],Se=ie[4],se=m.useCallback(function(){W||(P(),U(!0))},[W,P,U]);m.useImperativeHandle(o.componentRef,function(){return{focus:V,reset:function(){U(!1),Q(void 0),fe(void 0),Se(void 0)},showDatePickerPopup:se}},[V,fe,U,Q,Se,se]);var pe=function(){A||g||(D.current||se(),D.current=!1)},ge=function(mt){o.calendarProps&&o.calendarProps.onSelectDate&&o.calendarProps.onSelectDate(mt),Pe(mt)},de=function(){var mt=!0;o.calloutProps&&o.calloutProps.setInitialFocus!==void 0&&(mt=o.calloutProps.setInitialFocus),j.current&&mt&&j.current.focus()},ee=function(mt){ae()},me=function(mt,xe){var Ae,He=o.textField;g&&(W&&Le(),oe(xe)),(Ae=He==null?void 0:He.onChange)===null||Ae===void 0||Ae.call(He,mt,xe)},Re=function(mt){switch(mt.which){case pt.enter:mt.preventDefault(),mt.stopPropagation(),W?o.allowTextInput&&Le():(ae(),se());break;case pt.escape:_e(mt);break;case pt.down:mt.altKey&&!W&&se();break}},je=function(mt){var xe=o.openOnClick||!o.disableAutoFocus;if(xe&&!W&&!o.disabled){se();return}o.allowTextInput&&Le()},ze=function(mt){mt.stopPropagation(),!W&&!o.disabled?se():o.allowTextInput&&Le()},Le=function(mt){W&&(U(!1),ae(mt),!g&&mt&&Q(mt))},$e=function(mt,xe){return m.createElement(m.Fragment,null,mt.description||mt.onRenderDescription?xe(mt):null,m.createElement("div",{"aria-live":"assertive",className:et.statusMessage},ve))},Je=function(mt){var xe=an(mt,pi),Ae=ad(xe.className,et.readOnlyTextField);return m.createElement("div",K({},xe,{className:Ae,tabIndex:z||0}),Z||m.createElement("span",{className:et.readOnlyPlaceholder},b))},Pe=function(mt){P(),Le(mt)},st=function(mt){Pe()},_e=function(mt){W&&(mt.stopPropagation(),Pe())},De=function(mt){Pe()},et=hSt(c,{theme:l,className:u,disabled:p,underlined:_,label:!!s,isDatePickerShown:W}),Ie=an(o,pi,["value"]),Fe=E&&E.iconProps,vt=E&&E.id&&E.id!==M?E.id:M+"-label",bt=!g&&!p,wt=(n=(r=E==null?void 0:E["data-is-focusable"])!==null&&r!==void 0?r:o["data-is-focusable"])!==null&&n!==void 0?n:!0;return m.createElement("div",K({},Ie,{className:et.root,ref:t}),m.createElement("div",{ref:H,"aria-owns":W?L:void 0,className:et.wrapper},m.createElement(FN,K({role:"combobox",label:s,"aria-expanded":W,ariaLabel:h,"aria-haspopup":"dialog","aria-controls":W?L:void 0,required:f,disabled:p,errorMessage:te,placeholder:b,borderless:y,value:Z,componentRef:F,underlined:_,tabIndex:z,readOnly:!g},E,{"data-is-focusable":wt,id:vt,className:Xr(et.textField,E&&E.className),iconProps:K(K({iconName:"Calendar"},Fe),{className:Xr(et.icon,Fe&&Fe.className),onClick:ze}),onRenderDescription:$e,onKeyDown:Re,onFocus:pe,onBlur:ee,onClick:je,onChange:me,onRenderInput:bt?Je:void 0}))),W&&m.createElement(zE,K({id:L,role:"dialog",ariaLabel:v,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:H.current,directionalHint:ho.bottomLeftEdge},x,{className:Xr(et.callout,x&&x.className),onDismiss:st,onPositioned:de}),m.createElement(Bm,{isClickableOutsideFocusTrap:!0,disableFirstFocus:A},m.createElement(N,K({},C,{onSelectDate:ge,onDismiss:De,isMonthPickerVisible:o.isMonthPickerVisible,showMonthPickerAsOverlay:o.showMonthPickerAsOverlay,today:o.today,value:J||d,firstDayOfWeek:a,strings:i,highlightCurrentMonth:o.highlightCurrentMonth,highlightSelectedMonth:o.highlightSelectedMonth,showWeekNumbers:o.showWeekNumbers,firstWeekOfYear:o.firstWeekOfYear,showGoToToday:o.showGoToToday,dateTimeFormatter:o.dateTimeFormatter,minDate:S,maxDate:w,componentRef:j,showCloseButton:$,allFocusable:k})))))});lbe.displayName="DatePickerBase";function cte(e,t,r){return!!t&&Vs(t,e)>0||!!r&&Vs(r,e)<0}var wSt={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},Y5=32,CSt=function(e){var t,r=e.className,n=e.theme,o=e.disabled,a=e.underlined,i=e.label,s=e.isDatePickerShown,l=n.palette,u=n.semanticColors,c=n.fonts,d=Ia(wSt,n),f={color:l.neutralSecondary,fontSize:Kn.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[d.root,n.fonts.large,s&&"is-open",Af,r],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},o&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[d.callout],icon:[f,i?d.withLabel:d.withoutLabel,{paddingTop:"7px"},!o&&[d.disabled,{pointerEvents:"initial",cursor:"pointer"}],o&&{color:u.disabledText,cursor:"default"}],statusMessage:[c.small,{color:u.errorText,marginTop:5}],readOnlyTextField:[{cursor:"pointer",height:Y5,lineHeight:Y5-2,overflow:"hidden",textOverflow:"ellipsis"},a&&{lineHeight:Y5+2}],readOnlyPlaceholder:(t={color:u.inputPlaceholderText},t[Ze]={color:"GrayText"},t)}},xSt=Sn(lbe,CSt,void 0,{scope:"DatePicker"}),$St=yn(),ESt=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;Ml(n);var o=n.props.allowTouchBodyScroll,a=o===void 0?!1:o;return n._allowTouchBodyScroll=a,n}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&xmt()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&$mt()},t.prototype.render=function(){var r=this.props,n=r.isDarkThemed,o=r.className,a=r.theme,i=r.styles,s=an(this.props,pi),l=$St(i,{theme:a,className:o,isDark:n});return m.createElement("div",K({},s,{className:l.root}))},t}(m.Component),_St={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},kSt=function(e){var t,r=e.className,n=e.theme,o=e.isNone,a=e.isDark,i=n.palette,s=Ia(_St,n);return{root:[s.root,n.fonts.medium,{backgroundColor:i.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[Ze]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},a&&[s.rootDark,{backgroundColor:i.blackTranslucent40}],r]}},PSt=Sn(ESt,kSt,void 0,{scope:"Overlay"}),TSt=function(){function e(){this._size=0}return e.prototype.updateOptions=function(t){for(var r=[],n=[],o=0,a=0;athis._notSelectableOptionsCache[r];)r++;if(this._displayOnlyOptionsCache[r]===t)throw new Error("Unexpected: Option at index ".concat(t," is not a selectable element."));if(this._notSelectableOptionsCache[r]!==t)return t-r+1}},e}(),ja;(function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"})(ja||(ja={}));var ISt=yn(),$o;(function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"})($o||($o={}));var RSt=function(e){bn(t,e);function t(r){var n=e.call(this,r)||this;n._panel=m.createRef(),n._animationCallback=null,n._hasCustomNavigation=!!(n.props.onRenderNavigation||n.props.onRenderNavigationContent),n.dismiss=function(i){n.props.onDismiss&&n.isActive&&n.props.onDismiss(i),(!i||i&&!i.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(i){i?n._allowTouchBodyScroll?Cmt(i,n._events):wmt(i,n._events):n._events.off(n._scrollableContent),n._scrollableContent=i},n._onRenderNavigation=function(i){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var s=n.props.onRenderNavigationContent,l=s===void 0?n._onRenderNavigationContent:s;return m.createElement("div",{className:n._classNames.navigation},l(i,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(i){var s,l=i.closeButtonAriaLabel,u=i.hasCloseButton,c=i.onRenderHeader,d=c===void 0?n._onRenderHeader:c;if(u){var f=(s=n._classNames.subComponentStyles)===null||s===void 0?void 0:s.closeButton();return m.createElement(m.Fragment,null,!n._hasCustomNavigation&&d(n.props,n._onRenderHeader,n._headerTextId),m.createElement(Xy,{styles:f,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:l,title:l,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(i,s,l){var u=i.headerText,c=i.headerTextProps,d=c===void 0?{}:c;return u?m.createElement("div",{className:n._classNames.header},m.createElement("div",K({id:l,role:"heading","aria-level":1},d,{className:Xr(n._classNames.headerText,d.className)}),u)):null},n._onRenderBody=function(i){return m.createElement("div",{className:n._classNames.content},i.children)},n._onRenderFooter=function(i){var s=n.props.onRenderFooterContent,l=s===void 0?null:s;return l?m.createElement("div",{className:n._classNames.footer},m.createElement("div",{className:n._classNames.footerInner},l())):null},n._animateTo=function(i){i===$o.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout(function(){n.setState({visibility:i}),n._onTransitionComplete(i)},200)},n._clearExistingAnimationTimer=function(){n._animationCallback!==null&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(i){n.dismiss(i)},n._onTransitionComplete=function(i){n._updateFooterPosition(),i===$o.open&&n.props.onOpened&&n.props.onOpened(),i===$o.closed&&n.props.onDismissed&&n.props.onDismissed()};var o=n.props.allowTouchBodyScroll,a=o===void 0?!1:o;return n._allowTouchBodyScroll=a,Ml(n),n.state={isFooterSticky:!1,visibility:$o.closed,id:Sa("Panel")},n}return t.getDerivedStateFromProps=function(r,n){return r.isOpen===void 0?null:r.isOpen&&(n.visibility===$o.closed||n.visibility===$o.animatingClosed)?{visibility:$o.animatingOpen}:!r.isOpen&&(n.visibility===$o.open||n.visibility===$o.animatingOpen)?{visibility:$o.animatingClosed}:null},t.prototype.componentDidMount=function(){this._async=new Gh(this),this._events=new fc(this);var r=kN(this.context),n=Jx(this.context);this._events.on(r,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(n==null?void 0:n.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:$o.animatingOpen})},t.prototype.componentDidUpdate=function(r,n){var o=this._shouldListenForOuterClick(this.props),a=this._shouldListenForOuterClick(r);this.state.visibility!==n.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===$o.animatingOpen?this._animateTo($o.open):this.state.visibility===$o.animatingClosed&&this._animateTo($o.closed));var i=Jx(this.context);o&&!a?this._events.on(i==null?void 0:i.body,"mousedown",this._dismissOnOuterClick,!0):!o&&a&&this._events.off(i==null?void 0:i.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var r=this.props,n=r.className,o=n===void 0?"":n,a=r.elementToFocusOnDismiss,i=r.firstFocusableSelector,s=r.focusTrapZoneProps,l=r.forceFocusInsideTrap,u=r.hasCloseButton,c=r.headerText,d=r.headerClassName,f=d===void 0?"":d,p=r.ignoreExternalFocusing,h=r.isBlocking,v=r.isFooterAtBottom,b=r.isLightDismiss,g=r.isHiddenOnDismiss,y=r.layerProps,S=r.overlayProps,w=r.popupProps,$=r.type,C=r.styles,x=r.theme,E=r.customWidth,_=r.onLightDismissClick,k=_===void 0?this._onPanelClick:_,I=r.onRenderNavigation,N=I===void 0?this._onRenderNavigation:I,z=r.onRenderHeader,O=z===void 0?this._onRenderHeader:z,A=r.onRenderBody,M=A===void 0?this._onRenderBody:A,L=r.onRenderFooter,j=L===void 0?this._onRenderFooter:L,H=this.state,B=H.isFooterSticky,F=H.visibility,V=H.id,D=$===ja.smallFixedNear||$===ja.customNear,P=gn(x),R=P?D:!D,W=$===ja.custom||$===ja.customNear?{width:E}:{},U=an(this.props,pi),q=this.isActive,J=F===$o.animatingClosed||F===$o.animatingOpen;if(this._headerTextId=c&&V+"-headerText",!q&&!J&&!g)return null;this._classNames=ISt(C,{theme:x,className:o,focusTrapZoneClassName:s?s.className:void 0,hasCloseButton:u,headerClassName:f,isAnimating:J,isFooterSticky:B,isFooterAtBottom:v,isOnRightSide:R,isOpen:q,isHiddenOnDismiss:g,type:$,hasCustomNavigation:this._hasCustomNavigation});var Z=this,Q=Z._classNames,oe=Z._allowTouchBodyScroll,ie;return h&&q&&(ie=m.createElement(PSt,K({className:Q.overlay,isDarkThemed:!1,onClick:b?k:void 0,allowTouchBodyScroll:oe},S))),m.createElement(f0e,K({},y),m.createElement(yH,K({role:"dialog","aria-modal":h?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:Q.hiddenPanel,enableAriaHiddenSiblings:!!q},w),m.createElement("div",K({"aria-hidden":!q&&J},U,{ref:this._panel,className:Q.root}),ie,m.createElement(Bm,K({ignoreExternalFocusing:p,forceFocusInsideTrap:!h||g&&!q?!1:l,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},s,{className:Q.main,style:W,elementToFocusOnDismiss:a}),m.createElement("div",{className:Q.contentInner},m.createElement("div",{ref:this._allowScrollOnPanel,className:Q.scrollableContent,"data-is-scrollable":!0},m.createElement("div",{className:Q.commands,"data-is-visible":!0},N(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!u)&&O(this.props,this._onRenderHeader,this._headerTextId),M(this.props,this._onRenderBody),j(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){this.props.isOpen===void 0&&(this.isActive||this.setState({visibility:$o.animatingOpen}))},t.prototype.close=function(){this.props.isOpen===void 0&&this.isActive&&this.setState({visibility:$o.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===$o.open||this.state.visibility===$o.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(r){return!!r.isBlocking&&!!r.isOpen},t.prototype._updateFooterPosition=function(){var r=this._scrollableContent;if(r){var n=r.clientHeight,o=r.scrollHeight;this.setState({isFooterSticky:n0&&c();var h=n._id+f.key;l.items.push(s(K(K({id:h},f),{index:p}),n._onRenderItem)),l.id=h;break;case nd.Divider:p>0&&l.items.push(s(K(K({},f),{index:p}),n._onRenderItem)),l.items.length>0&&c();break;default:l.items.push(s(K(K({},f),{index:p}),n._onRenderItem))}};return a.options.forEach(function(f,p){d(f,p)}),l.items.length>0&&c(),m.createElement(m.Fragment,null,u)},n._onRenderItem=function(a){switch(a.itemType){case nd.Divider:return n._renderSeparator(a);case nd.Header:return n._renderHeader(a);default:return n._renderOption(a)}},n._renderOption=function(a){var i,s=n.props,l=s.onRenderOption,u=l===void 0?n._onRenderOption:l,c=s.hoisted.selectedIndices,d=c===void 0?[]:c,f=a.index!==void 0&&d?d.indexOf(a.index)>-1:!1,p=a.hidden?n._classNames.dropdownItemHidden:f&&a.disabled===!0?n._classNames.dropdownItemSelectedAndDisabled:f?n._classNames.dropdownItemSelected:a.disabled===!0?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,h=a.title,v=n._listId+a.index,b=(i=a.id)!==null&&i!==void 0?i:v+"-label",g=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?m.createElement(EH,{id:v,key:a.key,disabled:a.disabled,onChange:n._onItemClick(a),inputProps:K({"aria-selected":f,onMouseEnter:n._onItemMouseEnter.bind(n,a),onMouseLeave:n._onMouseItemLeave.bind(n,a),onMouseMove:n._onItemMouseMove.bind(n,a),role:"option"},{"data-index":a.index,"data-is-focusable":!(a.disabled||a.hidden)}),label:a.text,title:h,onRenderLabel:n._onRenderItemLabel.bind(n,K(K({},a),{id:b})),className:Xr(p,"is-multi-select"),checked:f,styles:g,ariaPositionInSet:a.hidden?void 0:n._sizePosCache.positionInSet(a.index),ariaSetSize:a.hidden?void 0:n._sizePosCache.optionSetSize,ariaLabel:a.ariaLabel,ariaLabelledBy:a.ariaLabel?void 0:b}):m.createElement(qbt,{id:v,key:a.key,"data-index":a.index,"data-is-focusable":!a.disabled,disabled:a.disabled,className:p,onClick:n._onItemClick(a),onMouseEnter:n._onItemMouseEnter.bind(n,a),onMouseLeave:n._onMouseItemLeave.bind(n,a),onMouseMove:n._onItemMouseMove.bind(n,a),role:"option","aria-selected":f?"true":"false",ariaLabel:a.ariaLabel,title:h,"aria-posinset":n._sizePosCache.positionInSet(a.index),"aria-setsize":n._sizePosCache.optionSetSize},u(a,n._onRenderOption))},n._onRenderOption=function(a){return m.createElement("span",{className:n._classNames.dropdownOptionText},a.text)},n._onRenderMultiselectOption=function(a){return m.createElement("span",{id:a.id,"aria-hidden":"true",className:n._classNames.dropdownOptionText},a.text)},n._onRenderItemLabel=function(a){var i=n.props.onRenderOption,s=i===void 0?n._onRenderMultiselectOption:i;return s(a,n._onRenderMultiselectOption)},n._onPositioned=function(a){n._focusZone.current&&n._requestAnimationFrame(function(){var i=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(!n._hasBeenPositioned&&i&&i[0]&&!n.props.options[i[0]].disabled){var s=Ho().getElementById("".concat(n._id,"-list").concat(i[0]));s&&n._focusZone.current.focusElement(s),n._hasBeenPositioned=!0}else n._focusZone.current.focus()}),(!n.state.calloutRenderEdge||n.state.calloutRenderEdge!==a.targetEdge)&&n.setState({calloutRenderEdge:a.targetEdge})},n._onItemClick=function(a){return function(i){a.disabled||(n.setSelectedIndex(i,a.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){var a=kN(n.context);!n._isScrollIdle&&n._scrollIdleTimeoutId!==void 0?(a.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0):n._isScrollIdle=!1,n._scrollIdleTimeoutId=a.setTimeout(function(){n._isScrollIdle=!0},n._scrollIdleDelay)},n._onMouseItemLeave=function(a,i){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch{}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(a){var i=n._isDisabled();i||n.state.isOpen||(n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(a))},n._onDropdownKeyDown=function(a){var i=n._isDisabled();if(!i&&(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(a),!(n.props.onKeyDown&&(n.props.onKeyDown(a),a.defaultPrevented)))){var s,l=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,u=a.altKey||a.metaKey,c=n.state.isOpen;switch(a.which){case pt.enter:n.setState({isOpen:!c});break;case pt.escape:if(!c)return;n.setState({isOpen:!1});break;case pt.up:if(u){if(c){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(s=n._moveIndex(a,-1,l-1,l));break;case pt.down:u&&(a.stopPropagation(),a.preventDefault()),u&&!c||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(s=n._moveIndex(a,1,l+1,l));break;case pt.home:n.props.multiSelect||(s=n._moveIndex(a,1,0,l));break;case pt.end:n.props.multiSelect||(s=n._moveIndex(a,-1,n.props.options.length-1,l));break;case pt.space:break;default:return}s!==l&&(a.stopPropagation(),a.preventDefault())}},n._onDropdownKeyUp=function(a){var i=n._isDisabled();if(!i){var s=n._shouldHandleKeyUp(a),l=n.state.isOpen;if(!(n.props.onKeyUp&&(n.props.onKeyUp(a),a.defaultPrevented))){switch(a.which){case pt.space:n.setState({isOpen:!l});break;default:s&&l&&n.setState({isOpen:!1});return}a.stopPropagation(),a.preventDefault()}}},n._onZoneKeyDown=function(a){var i,s,l;n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(a);var u=a.altKey||a.metaKey;switch(a.which){case pt.up:u?n.setState({isOpen:!1}):n._host.current&&(l=$ge(n._host.current,n._host.current.lastChild,!0));break;case pt.home:case pt.end:case pt.pageUp:case pt.pageDown:break;case pt.down:!u&&n._host.current&&(l=xge(n._host.current,n._host.current.firstChild,!0));break;case pt.escape:n.setState({isOpen:!1});break;case pt.tab:n.setState({isOpen:!1});var c=Ho();c&&(a.shiftKey?(i=cs(c.body,n._dropDown.current,!1,!1,!0,!0))===null||i===void 0||i.focus():(s=Ri(c.body,n._dropDown.current,!1,!1,!0,!0))===null||s===void 0||s.focus());break;default:return}l&&l.focus(),a.stopPropagation(),a.preventDefault()},n._onZoneKeyUp=function(a){var i=n._shouldHandleKeyUp(a);i&&n.state.isOpen&&(n.setState({isOpen:!1}),a.preventDefault())},n._onDropdownClick=function(a){if(!(n.props.onClick&&(n.props.onClick(a),a.defaultPrevented))){var i=n.state.isOpen,s=n._isDisabled();!s&&!n._shouldOpenOnFocus()&&n.setState({isOpen:!i}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(a){var i=n._isDisabled();if(!i){n.props.onFocus&&n.props.onFocus(a);var s={hasFocus:!0};n._shouldOpenOnFocus()&&(s.isOpen=!0),n.setState(s)}},n._isDisabled=function(){var a=n.props.disabled,i=n.props.isDisabled;return a===void 0&&(a=i),a},n._onRenderLabel=function(a){var i=a.label,s=a.required,l=a.disabled,u=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return i?m.createElement(mc,{className:n._classNames.label,id:n._labelId,required:s,styles:u,disabled:l},i):null},Ml(n),r.multiSelect,r.selectedKey,r.selectedKeys,r.defaultSelectedKey,r.defaultSelectedKeys;var o=r.options;return n._id=r.id||Sa("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._hasBeenPositioned=!1,n._sizePosCache.updateOptions(o),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var r=this.props,n=r.options,o=r.hoisted.selectedIndices;return ote(n,o)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(r,n){n.isOpen===!0&&this.state.isOpen===!1&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var r=this._id,n=this.props,o=n.className,a=n.label,i=n.options,s=n.ariaLabel,l=n.required,u=n.errorMessage,c=n.styles,d=n.theme,f=n.panelProps,p=n.calloutProps,h=n.onRenderTitle,v=h===void 0?this._getTitle:h,b=n.onRenderContainer,g=b===void 0?this._onRenderContainer:b,y=n.onRenderCaretDown,S=y===void 0?this._onRenderCaretDown:y,w=n.onRenderLabel,$=w===void 0?this._onRenderLabel:w,C=n.onRenderItem,x=C===void 0?this._onRenderItem:C,E=n.hoisted.selectedIndices,_=this.state,k=_.isOpen,I=_.calloutRenderEdge,N=_.hasFocus,z=n.onRenderPlaceholder||n.onRenderPlaceHolder||this._getPlaceholder;i!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(i);var O=ote(i,E),A=an(n,pi),M=this._isDisabled(),L=r+"-errorMessage";this._classNames=jSt(c,{theme:d,className:o,hasError:!!(u&&u.length>0),hasLabel:!!a,isOpen:k,required:l,disabled:M,isRenderingPlaceholder:!O.length,panelClassName:f?f.className:void 0,calloutClassName:p?p.className:void 0,calloutRenderEdge:I});var j=!!u&&u.length>0;return m.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":k?this._listId:void 0},$(this.props,this._onRenderLabel),m.createElement("div",K({"data-is-focusable":!M,"data-ktp-target":!0,ref:this._dropDown,id:r,tabIndex:M?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":k?"true":"false","aria-label":s,"aria-labelledby":a&&!s?iS(this._labelId,this._optionId):void 0,"aria-describedby":j?this._id+"-errorMessage":void 0,"aria-required":l,"aria-disabled":M,"aria-controls":k?this._listId:void 0},A,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),m.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":N?"polite":void 0,"aria-atomic":N?!0:void 0,"aria-invalid":j},O.length?v(O,this._onRenderTitle):z(n,this._onRenderPlaceholder)),m.createElement("span",{className:this._classNames.caretDownWrapper},S(n,this._onRenderCaretDown))),k&&g(K(K({},n),{onDismiss:this._onDismiss,onRenderItem:x}),this._onRenderContainer),j&&m.createElement("div",{role:"alert",id:L,className:this._classNames.errorMessage},u))},t.prototype.focus=function(r){this._dropDown.current&&(this._dropDown.current.focus(),r&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(r,n){var o=this.props,a=o.options,i=o.selectedKey,s=o.selectedKeys,l=o.multiSelect,u=o.notifyOnReselect,c=o.hoisted.selectedIndices,d=c===void 0?[]:c,f=d?d.indexOf(n)>-1:!1,p=[];if(n=Math.max(0,Math.min(a.length-1,n)),i!==void 0||s!==void 0){this._onChange(r,a,n,f,l);return}if(!(!l&&!u&&n===d[0])){if(l)if(p=d?this._copyArray(d):[],f){var h=p.indexOf(n);h>-1&&p.splice(h,1)}else p.push(n);else p=[n];r.persist(),this.props.hoisted.setSelectedIndices(p),this._onChange(r,a,n,f,l)}},t.prototype._copyArray=function(r){for(var n=[],o=0,a=r;o=i.length?o=0:o<0&&(o=i.length-1);for(var s=0;i[o].itemType===nd.Header||i[o].itemType===nd.Divider||i[o].disabled;){if(s>=i.length)return a;o+n<0?o=i.length:o+n>=i.length&&(o=-1),o=o+n,s++}return this.setSelectedIndex(r,o),o},t.prototype._renderFocusableList=function(r){var n=r.onRenderList,o=n===void 0?this._onRenderList:n,a=r.label,i=r.ariaLabel,s=r.multiSelect;return m.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},m.createElement(VE,{ref:this._focusZone,direction:Ti.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":i,"aria-labelledby":a&&!i?this._labelId:void 0,"aria-multiselectable":s},o(r,this._onRenderList)))},t.prototype._renderSeparator=function(r){var n=r.index,o=r.key,a=r.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return n>0?m.createElement("div",{role:"presentation",key:o,className:a}):null},t.prototype._renderHeader=function(r){var n=this.props.onRenderOption,o=n===void 0?this._onRenderOption:n,a=r.key,i=r.id,s=r.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return m.createElement("div",{id:i,key:a,className:s},o(r,this._onRenderOption))},t.prototype._onItemMouseEnter=function(r,n){if(!this._shouldIgnoreMouseEvent()){var o=n.currentTarget;o.focus()}},t.prototype._onItemMouseMove=function(r,n){var o=Jx(this.context),a=n.currentTarget;this._gotMouseMove=!0,!(!this._isScrollIdle||o.activeElement===a)&&a.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(r){return r.which===pt.alt||r.key==="Meta"},t.prototype._shouldHandleKeyUp=function(r){var n=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(r);return this._lastKeyDownWasAltOrMeta=!1,!!n&&!(DL()||NL())},t.prototype._shouldOpenOnFocus=function(){var r=this.state.hasFocus,n=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&n===!0&&!r},t.defaultProps={options:[]},t.contextType=m0,t}(m.Component),tB,Y2,rB,nB,HSt={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},X2=32,oB=36,WSt=(tB={},tB["".concat(Ze,", ").concat(Gge.replace("@media ",""))]=K({},Nr()),tB),Q2={selectors:K((Y2={},Y2[Ze]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Y2[".ms-Checkbox-checkbox"]=(rB={},rB[Ze]={borderColor:"HighlightText"},rB),Y2),WSt)},dte={selectors:(nB={},nB[Ze]={borderColor:"Highlight"},nB)},qSt=CN(0,uy),USt=function(e){var t,r,n,o,a,i,s,l,u,c,d,f,p=e.theme,h=e.hasError,v=e.hasLabel,b=e.className,g=e.isOpen,y=e.disabled,S=e.required,w=e.isRenderingPlaceholder,$=e.panelClassName,C=e.calloutClassName,x=e.calloutRenderEdge;if(!p)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var E=Ia(HSt,p),_=p.palette,k=p.semanticColors,I=p.effects,N=p.fonts,z={color:k.menuItemTextHovered},O={color:k.menuItemText},A={borderColor:k.errorText},M=[E.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:oB,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],L=[E.dropdownItemHeader,K(K({},N.medium),{fontWeight:Gr.semibold,color:k.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:oB,lineHeight:oB,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(t={},t[Ze]=K({color:"GrayText"},Nr()),t)})],j=k.menuItemBackgroundPressed,H=function(P){var R,W;return P===void 0&&(P=!1),{selectors:(R={"&:hover":[{color:k.menuItemTextHovered,backgroundColor:P?j:k.menuItemBackgroundHovered},Q2],"&.is-multi-select:hover":[{backgroundColor:P?j:"transparent"},Q2],"&:active:hover":[{color:k.menuItemTextHovered,backgroundColor:P?k.menuItemBackgroundHovered:k.menuItemBackgroundPressed},Q2]},R[".".concat(Eo," &:focus:after")]=(W={left:0,top:0,bottom:0,right:0},W[Ze]={inset:"2px"},W),R[Ze]={border:"none"},R)}},B=gr(gr([],M,!0),[{backgroundColor:j,color:k.menuItemTextHovered},H(!0),Q2],!1),F=gr(gr([],M,!0),[{color:k.disabledText,cursor:"default",selectors:(r={},r[Ze]={color:"GrayText",border:"none"},r)}],!1),V=x===Vt.bottom?"".concat(I.roundedCorner2," ").concat(I.roundedCorner2," 0 0"):"0 0 ".concat(I.roundedCorner2," ").concat(I.roundedCorner2),D=x===Vt.bottom?"0 0 ".concat(I.roundedCorner2," ").concat(I.roundedCorner2):"".concat(I.roundedCorner2," ").concat(I.roundedCorner2," 0 0");return{root:[E.root,b],label:E.label,dropdown:[E.dropdown,Af,N.medium,{color:k.menuItemText,borderColor:k.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(n={},n["&:hover ."+E.title]=[!y&&z,{borderColor:g?_.neutralSecondary:_.neutralPrimary},dte],n["&:focus ."+E.title]=[!y&&z,{selectors:(o={},o[Ze]={color:"Highlight"},o)}],n["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:y?"none":"2px solid ".concat(_.themePrimary),borderRadius:"2px",selectors:(a={},a[Ze]={color:"Highlight"},a)}],n["&:active ."+E.title]=[!y&&z,{borderColor:_.themePrimary},dte],n["&:hover ."+E.caretDown]=!y&&O,n["&:focus ."+E.caretDown]=[!y&&O,{selectors:(i={},i[Ze]={color:"Highlight"},i)}],n["&:active ."+E.caretDown]=!y&&O,n["&:hover ."+E.titleIsPlaceHolder]=!y&&O,n["&:focus ."+E.titleIsPlaceHolder]=!y&&O,n["&:active ."+E.titleIsPlaceHolder]=!y&&O,n["&:hover ."+E.titleHasError]=A,n["&:active ."+E.titleHasError]=A,n)},g&&"is-open",y&&"is-disabled",S&&"is-required",S&&!v&&{selectors:(s={":before":{content:"'*'",color:k.errorText,position:"absolute",top:-5,right:-10}},s[Ze]={selectors:{":after":{right:-14}}},s)}],title:[E.title,Af,{backgroundColor:k.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:k.inputBorder,borderRadius:g?V:I.roundedCorner2,cursor:"pointer",display:"block",height:X2,lineHeight:X2-2,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},w&&[E.titleIsPlaceHolder,{color:k.inputPlaceholderText}],h&&[E.titleHasError,A],y&&{backgroundColor:k.disabledBackground,border:"none",color:k.disabledText,cursor:"default",selectors:(l={},l[Ze]=K({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},Nr()),l)}],caretDownWrapper:[E.caretDownWrapper,{height:X2,lineHeight:X2-2,paddingTop:1,position:"absolute",right:8,top:0},!y&&{cursor:"pointer"}],caretDown:[E.caretDown,{color:_.neutralSecondary,fontSize:N.small.fontSize,pointerEvents:"none"},y&&{color:k.disabledText,selectors:(u={},u[Ze]=K({color:"GrayText"},Nr()),u)}],errorMessage:K(K({color:k.errorText},p.fonts.small),{paddingTop:5}),callout:[E.callout,{boxShadow:I.elevation8,borderRadius:D,selectors:(c={},c[".ms-Callout-main"]={borderRadius:D},c)},C],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[E.dropdownItems,{display:"block"}],dropdownItem:gr(gr([],M,!0),[H()],!1),dropdownItemSelected:B,dropdownItemDisabled:F,dropdownItemSelectedAndDisabled:[B,F,{backgroundColor:"transparent"}],dropdownItemHidden:gr(gr([],M,!0),[{display:"none"}],!1),dropdownDivider:[E.dropdownDivider,{height:1,backgroundColor:k.bodyDivider}],dropdownDividerHidden:[E.dropdownDivider,{display:"none"}],dropdownOptionText:[E.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:L,dropdownItemHeaderHidden:gr(gr([],L,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(d={},d[".".concat(Eo," &:focus + label::before")]={outlineOffset:"0px"},d)}},panel:{root:[$],main:{selectors:(f={},f[qSt]={width:272},f)},contentInner:{padding:"0 0 20px"}}}}},cbe=Sn(ube,USt,void 0,{scope:"Dropdown"});cbe.displayName="Dropdown";function KSt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Ta(r,t)}function GSt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Ta(r,t)}function YSt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Ta(r,t)}function XSt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Ta(r,t)}function QSt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Ta(r,t)}function ZSt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Ta(r,t)}function JSt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Ta(r,t)}function ewt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Ta(r,t)}function twt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Ta(r,t)}function rwt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Ta(r,t)}function nwt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Ta(r,t)}function owt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Ta(r,t)}function awt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Ta(r,t)}function iwt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Ta(r,t)}function swt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Ta(r,t)}function lwt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Ta(r,t)}function uwt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Ta(r,t)}function cwt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Ta(r,t)}function dwt(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Ta(r,t)}var fwt=function(){cv("trash","delete"),cv("onedrive","onedrivelogo"),cv("alertsolid12","eventdatemissed12"),cv("sixpointstar","6pointstar"),cv("twelvepointstar","12pointstar"),cv("toggleon","toggleleft"),cv("toggleoff","toggleright")};lH("@fluentui/font-icons-mdl2","8.5.32");var pwt="".concat(Mvt,"/assets/icons/"),Q0=fn();function mwt(e,t){var r,n;e===void 0&&(e=((r=Q0==null?void 0:Q0.FabricConfig)===null||r===void 0?void 0:r.iconBaseUrl)||((n=Q0==null?void 0:Q0.FabricConfig)===null||n===void 0?void 0:n.fontBaseUrl)||pwt),[KSt,GSt,YSt,XSt,QSt,ZSt,JSt,ewt,twt,rwt,nwt,owt,awt,iwt,swt,lwt,uwt,cwt,dwt].forEach(function(o){return o(e,t)}),fwt()}var cr;(function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"})(cr||(cr={}));var em,hwt=(em={},em[cr.info]="Info",em[cr.warning]="Info",em[cr.error]="ErrorBadge",em[cr.blocked]="Blocked2",em[cr.severeWarning]="Warning",em[cr.success]="Completed",em),vwt="MessageBar",gwt=yn(),bwt=function(e){switch(e){case cr.blocked:case cr.error:case cr.severeWarning:return"assertive"}return"polite"},ywt=function(e){switch(e){case cr.blocked:case cr.error:case cr.severeWarning:return"alert"}return"status"},dbe=m.forwardRef(function(e,t){var r=dgt(!1),n=r[0],o=r[1].toggle,a=Ks("MessageBar"),i=e.actions,s=e.className,l=e.children,u=e.overflowButtonAriaLabel,c=e.dismissIconProps,d=e.styles,f=e.theme,p=e.messageBarType,h=p===void 0?cr.info:p,v=e.onDismiss,b=v===void 0?void 0:v,g=e.isMultiline,y=g===void 0?!0:g,S=e.truncated,w=e.dismissButtonAriaLabel,$=e.messageBarIconProps,C=e.role,x=e.delayedRender,E=x===void 0?!0:x,_=e.expandButtonProps,k=e.onExpandButtonToggled,I=k===void 0?void 0:k,N=m.useCallback(function(){o(),I&&I(!n)},[n,I,o]),z=an(e,Uo,["className","role"]),O=gwt(d,{theme:f,messageBarType:h||cr.info,onDismiss:b!==void 0,actions:i!==void 0,truncated:S,isMultiline:y,expandSingleLine:n,className:s}),A={iconName:n?"DoubleChevronUp":"DoubleChevronDown"},M=i||b?{"aria-describedby":a,role:"region"}:{},L=i?m.createElement("div",{className:O.actions},i):null,j=b?m.createElement(Xy,{disabled:!1,className:O.dismissal,onClick:b,iconProps:c||{iconName:"Clear"},title:w,ariaLabel:w}):null;return m.createElement("div",K({ref:t,className:O.root},M),m.createElement("div",{className:O.content},m.createElement("div",{className:O.iconContainer,"aria-hidden":!0},$?m.createElement(Ea,K({},$,{className:Xr(O.icon,$.className)})):m.createElement(Ea,{iconName:hwt[h],className:O.icon})),m.createElement("div",{className:O.text,id:a,role:C||ywt(h),"aria-live":bwt(h)},m.createElement("span",K({className:O.innerText},z),E?m.createElement(Ige,null,m.createElement("span",null,l)):m.createElement("span",null,l))),!y&&!L&&S&&m.createElement("div",{className:O.expandSingleLine},m.createElement(Xy,K({disabled:!1,className:O.expand,onClick:N,iconProps:A,ariaLabel:u,"aria-expanded":n},_))),!y&&L,!y&&j&&m.createElement("div",{className:O.dismissSingleLine},j),y&&j),y&&L)});dbe.displayName=vwt;var tm,rm,nm,om,Swt={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},wwt=(tm={},tm[cr.error]="errorBackground",tm[cr.blocked]="errorBackground",tm[cr.success]="successBackground",tm[cr.warning]="warningBackground",tm[cr.severeWarning]="severeWarningBackground",tm[cr.info]="infoBackground",tm),Cwt=(rm={},rm[cr.error]="errorIcon",rm[cr.blocked]="errorIcon",rm[cr.success]="successIcon",rm[cr.warning]="warningIcon",rm[cr.severeWarning]="severeWarningIcon",rm[cr.info]="infoIcon",rm),xwt=(nm={},nm[cr.error]="#ff0000",nm[cr.blocked]="#ff0000",nm[cr.success]="#bad80a",nm[cr.warning]="#fff100",nm[cr.severeWarning]="#ff0000",nm[cr.info]="WindowText",nm),$wt=(om={},om[cr.error]="#e81123",om[cr.blocked]="#e81123",om[cr.success]="#107c10",om[cr.warning]="#966400",om[cr.severeWarning]="#d83b01",om[cr.info]="WindowText",om),Ewt=function(e){var t,r,n,o,a,i,s,l,u,c,d,f=e.theme,p=e.className,h=e.onDismiss,v=e.truncated,b=e.isMultiline,g=e.expandSingleLine,y=e.messageBarType,S=y===void 0?cr.info:y,w=f.semanticColors,$=f.fonts,C=CN(0,xvt),x=Ia(Swt,f),E={fontSize:ds.xSmall,height:10,lineHeight:"10px",color:w.messageText,selectors:(t={},t[Ze]=K(K({},Nr()),{color:"WindowText"}),t)},_=[Ha(f,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":E,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[x.root,$.medium,S===cr.error&&x.error,S===cr.blocked&&x.blocked,S===cr.severeWarning&&x.severeWarning,S===cr.success&&x.success,S===cr.warning&&x.warning,b?x.multiline:x.singleline,!b&&h&&x.dismissalSingleLine,!b&&v&&x.expandingSingleLine,{background:w[wwt[S]],boxSizing:"border-box",color:w.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(r={".ms-Link":{color:w.messageLink,selectors:{":hover":{color:w.messageLinkHovered}}}},r[Ze]=K(K({},Nr()),{background:"transparent",border:"1px solid ".concat(xwt[S]),color:"WindowText"}),r[Gge]={border:"1px solid ".concat($wt[S])},r)},b&&{flexDirection:"column"},p],content:[x.content,(n={display:"flex",width:"100%",lineHeight:"normal"},n[C]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:` + "icon text close" + "action action action" + `},n)],iconContainer:[x.iconContainer,(o={fontSize:ds.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"},o[C]={gridArea:"icon"},o)],icon:{color:w[Cwt[S]],selectors:(a={},a[Ze]=K(K({},Nr()),{color:"WindowText"}),a)},text:[x.text,K(K({minWidth:0,display:"flex",flexGrow:1,margin:8},$.small),(i={},i[C]={gridArea:"text"},i.selectors=(s={},s[Ze]=K({},Nr()),s),i)),!h&&{marginRight:12}],innerText:[x.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},v&&{overflow:"visible",whiteSpace:"pre-wrap"},!b&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!b&&!v&&{selectors:(l={},l[C]={overflow:"visible",whiteSpace:"pre-wrap"},l)},g&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[x.dismissSingleLine,(u={},u[C]={gridArea:"close"},u)],expandSingleLine:x.expandSingleLine,dismissal:[x.dismissal,_],expand:[x.expand,_],actions:[b?x.actions:x.actionsSingleline,(c={display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",forcedColorAdjust:"auto",MsHighContrastAdjust:"auto"},c[C]={gridArea:"action",marginRight:8,marginBottom:8},c.selectors={"& button:nth-child(n+2)":(d={marginLeft:8},d[C]={marginBottom:0},d)},c),b&&{marginBottom:8},h&&!b&&{marginRight:0}]}},_wt=Sn(dbe,Ewt,void 0,{scope:"MessageBar"}),kwt=1e3,Pwt=yn(),fte=function(e){return function(t){var r;return r={},r[e]="".concat(t,"%"),r}},aB=function(e,t,r){return r===t?0:(e-t)/(r-t)*100},Twt=function(e,t,r,n){m.useImperativeHandle(e.componentRef,function(){return{get value(){return r},get range(){return n},focus:function(){var o;(o=t.current)===null||o===void 0||o.focus()}}},[n,t,r])},Iwt=function(e,t){var r=e.step,n=r===void 0?1:r,o=e.className,a=e.disabled,i=a===void 0?!1:a,s=e.label,l=e.max,u=l===void 0?10:l,c=e.min,d=c===void 0?0:c,f=e.showValue,p=f===void 0?!0:f,h=e.buttonProps,v=h===void 0?{}:h,b=e.vertical,g=b===void 0?!1:b,y=e.snapToStep,S=e.valueFormat,w=e.styles,$=e.theme,C=e.originFromZero,x=e["aria-labelledby"],E=e.ariaLabel,_=E===void 0?e["aria-label"]:E,k=e.ranged,I=e.onChange,N=e.onChanged,z=m.useRef([]),O=fgt(),A=O.setTimeout,M=O.clearTimeout,L=m.useRef(null),j=SH(),H=Nd(e.value,e.defaultValue,function(he,ye){return I==null?void 0:I(ye,k?[U.latestLowerValue,ye]:void 0,he)}),B=H[0],F=H[1],V=Nd(e.lowerValue,e.defaultLowerValue,function(he,ye){return I==null?void 0:I(U.latestValue,[ye,U.latestValue],he)}),D=V[0],P=V[1],R=Math.max(d,Math.min(u,B||0)),W=Math.max(d,Math.min(R,D||0)),U=bu({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:R,latestLowerValue:W});U.latestValue=R,U.latestLowerValue=W;var q=Ks("Slider",e.id||(v==null?void 0:v.id)),J=Pwt(w,{className:o,disabled:i,vertical:g,showTransitions:!y&&!U.isBetweenSteps,showValue:p,ranged:k,theme:$}),Z=(u-d)/n,Q=function(){M(U.onKeyDownTimer),U.onKeyDownTimer=-1},oe=function(he){Q(),N&&(U.onKeyDownTimer=A(function(){N(he,U.latestValue,k?[U.latestLowerValue,U.latestValue]:void 0)},kwt))},ie=function(he){var ye=e.ariaValueText;if(he!==void 0)return ye?ye(he):he.toString()},te=function(he,ye,Ee){ye=Math.min(u,Math.max(d,ye)),Ee=Ee!==void 0?Math.min(u,Math.max(d,Ee)):void 0;var rt=0;if(isFinite(n))for(;Math.round(n*Math.pow(10,rt))/Math.pow(10,rt)!==n;)rt++;var re=parseFloat(ye.toFixed(rt));U.isBetweenSteps=Ee!==void 0&&Ee!==re,k?U.isAdjustingLowerValue&&(C?re<=0:re<=U.latestValue)?P(re,he):!U.isAdjustingLowerValue&&(C?re>=0:re>=U.latestLowerValue)&&F(re,he):F(re,he)},ae=function(he){var ye=U.isAdjustingLowerValue?U.latestLowerValue:U.latestValue,Ee=0;switch(he.which){case FI(pt.left,e.theme):case pt.down:Ee=-n,Q(),oe(he);break;case FI(pt.right,e.theme):case pt.up:Ee=n,Q(),oe(he);break;case pt.home:ye=d,Q(),oe(he);break;case pt.end:ye=u,Q(),oe(he);break;default:return}te(he,ye+Ee),he.preventDefault(),he.stopPropagation()},fe=function(he,ye){var Ee=0;switch(he.type){case"mousedown":case"mousemove":Ee=ye?he.clientY:he.clientX;break;case"touchstart":case"touchmove":Ee=ye?he.touches[0].clientY:he.touches[0].clientX;break}return Ee},ve=function(he){var ye=L.current.getBoundingClientRect(),Ee=e.vertical?ye.height:ye.width,rt=Ee/Z,re,X;if(e.vertical){var we=fe(he,e.vertical);X=ye.bottom-we,re=X/rt}else{var ne=fe(he,e.vertical);X=gn(e.theme)?ye.right-ne:ne-ye.left,re=X/rt}return re},Se=function(he,ye){var Ee=ve(he),rt=d+n*Ee,re=d+n*Math.round(Ee);te(he,re,rt),ye||(he.preventDefault(),he.stopPropagation())},se=function(he){if(k){var ye=ve(he),Ee=d+n*ye;U.isAdjustingLowerValue=Ee<=U.latestLowerValue||Ee-U.latestLowerValue<=U.latestValue-Ee}he.type==="mousedown"?z.current.push(Ni(j,"mousemove",Se,!0),Ni(j,"mouseup",pe,!0)):he.type==="touchstart"&&z.current.push(Ni(j,"touchmove",Se,!0),Ni(j,"touchend",pe,!0)),Se(he,!0)},pe=function(he){U.isBetweenSteps=void 0,N==null||N(he,U.latestValue,k?[U.latestLowerValue,U.latestValue]:void 0),de()},ge=function(he){U.isAdjustingLowerValue=he.target===ee.current},de=m.useCallback(function(){z.current.forEach(function(he){return he()}),z.current=[]},[]);m.useEffect(function(){return de},[de]);var ee=m.useRef(null),me=m.useRef(null),Re=m.useRef(null);Twt(e,Re,R,k?[W,R]:void 0);var je=fte(g?"bottom":gn(e.theme)?"right":"left"),ze=fte(g?"height":"width"),Le=C?0:d,$e=aB(R,d,u),Je=aB(W,d,u),Pe=aB(Le,d,u),st=k?$e-Je:Math.abs(Pe-$e),_e=Math.min(100-$e,100-Pe),De=k?Je:Math.min($e,Pe),et={className:J.root,ref:t},Ie={className:J.titleLabel,children:s,disabled:i,htmlFor:_?void 0:q},Fe=p?{className:J.valueLabel,children:S?S(R):R,disabled:i,htmlFor:i?q:void 0}:void 0,vt=k&&p?{className:J.valueLabel,children:S?S(W):W,disabled:i}:void 0,bt=C?{className:J.zeroTick,style:je(Pe)}:void 0,wt={className:Xr(J.lineContainer,J.activeSection),style:ze(st)},mt={className:Xr(J.lineContainer,J.inactiveSection),style:ze(_e)},xe={className:Xr(J.lineContainer,J.inactiveSection),style:ze(De)},Ae=K({"aria-disabled":i,role:"slider",tabIndex:i?void 0:0},{"data-is-focusable":!i}),He=K(K(K({id:q,className:Xr(J.slideBox,v.className),ref:Re},!i&&{onMouseDown:se,onTouchStart:se,onKeyDown:ae}),v&&an(v,pi,["id","className"])),!k&&K(K({},Ae),{"aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":R,"aria-valuetext":ie(R),"aria-label":_||s,"aria-labelledby":x})),Ge=i?{}:{onFocus:ge},ot=K({ref:me,className:J.thumb,style:je($e)},k&&K(K(K({},Ae),Ge),{id:"max-".concat(q),"aria-valuemin":W,"aria-valuemax":u,"aria-valuenow":R,"aria-valuetext":ie(R),"aria-label":"max ".concat(_||s)})),at=k?K(K(K({ref:ee,className:J.thumb,style:je(Je)},Ae),Ge),{id:"min-".concat(q),"aria-valuemin":d,"aria-valuemax":R,"aria-valuenow":W,"aria-valuetext":ie(W),"aria-label":"min ".concat(_||s)}):void 0,Ve={className:J.container},Qe={ref:L,className:J.line};return{root:et,label:Ie,sliderBox:He,container:Ve,valueLabel:Fe,lowerValueLabel:vt,thumb:ot,lowerValueThumb:at,zeroTick:bt,activeTrack:wt,topInactiveTrack:mt,bottomInactiveTrack:xe,sliderLine:Qe}},Rwt="SliderBase",fbe=m.forwardRef(function(e,t){var r=Iwt(e,t);return m.createElement("div",K({},r.root),r&&m.createElement(mc,K({},r.label)),m.createElement("div",K({},r.container),e.ranged&&(e.vertical?r.valueLabel&&m.createElement(mc,K({},r.valueLabel)):r.lowerValueLabel&&m.createElement(mc,K({},r.lowerValueLabel))),m.createElement("div",K({},r.sliderBox),m.createElement("div",K({},r.sliderLine),e.ranged&&m.createElement("span",K({},r.lowerValueThumb)),m.createElement("span",K({},r.thumb)),r.zeroTick&&m.createElement("span",K({},r.zeroTick)),m.createElement("span",K({},r.bottomInactiveTrack)),m.createElement("span",K({},r.activeTrack)),m.createElement("span",K({},r.topInactiveTrack)))),e.ranged&&e.vertical?r.lowerValueLabel&&m.createElement(mc,K({},r.lowerValueLabel)):r.valueLabel&&m.createElement(mc,K({},r.valueLabel))),m.createElement(yN,null))});fbe.displayName=Rwt;var Fwt={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},Owt=function(e){var t,r,n,o,a,i,s,l,u,c,d,f,p,h=e.className,v=e.titleLabelClassName,b=e.theme,g=e.vertical,y=e.disabled,S=e.showTransitions,w=e.showValue,$=e.ranged,C=b.semanticColors,x=b.palette,E=Ia(Fwt,b),_=C.inputBackgroundCheckedHovered,k=C.inputBackgroundChecked,I=x.neutralSecondaryAlt,N=x.neutralPrimary,z=x.neutralSecondaryAlt,O=C.disabledText,A=C.disabledBackground,M=C.inputBackground,L=C.smallInputBorder,j=C.disabledBorder,H=!y&&{backgroundColor:_,selectors:(t={},t[Ze]={backgroundColor:"Highlight"},t)},B=!y&&{backgroundColor:I,selectors:(r={},r[Ze]={borderColor:"Highlight"},r)},F=!y&&{backgroundColor:k,selectors:(n={},n[Ze]={backgroundColor:"Highlight"},n)},V=!y&&{border:"2px solid ".concat(_),selectors:(o={},o[Ze]={borderColor:"Highlight"},o)},D=!e.disabled&&{backgroundColor:C.inputPlaceholderBackgroundChecked,selectors:(a={},a[Ze]={backgroundColor:"Highlight"},a)};return{root:gr(gr(gr(gr(gr([E.root,b.fonts.medium,{userSelect:"none"},g&&{marginRight:8}],[y?void 0:E.enabled],!1),[y?E.disabled:void 0],!1),[g?void 0:E.row],!1),[g?E.column:void 0],!1),[h],!1),titleLabel:[{padding:0},v],container:[E.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},g&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:gr(gr([E.slideBox,!$&&Ha(b),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(i={},i[":active .".concat(E.activeSection)]=H,i[":hover .".concat(E.activeSection)]=F,i[":active .".concat(E.inactiveSection)]=B,i[":hover .".concat(E.inactiveSection)]=B,i[":active .".concat(E.thumb)]=V,i[":hover .".concat(E.thumb)]=V,i[":active .".concat(E.zeroTick)]=D,i[":hover .".concat(E.zeroTick)]=D,i[Ze]={forcedColorAdjust:"none"},i)},g?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[w?E.showValue:void 0],!1),[S?E.showTransitions:void 0],!1),thumb:[E.thumb,$&&Ha(b,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:L,borderRadius:10,boxSizing:"border-box",background:M,display:"block",width:16,height:16,position:"absolute"},g?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:gn(b)?"translateX(50%)":"translateX(-50%)"},S&&{transition:"left ".concat(_m.durationValue3," ").concat(_m.easeFunction1)},y&&{borderColor:j,selectors:(s={},s[Ze]={borderColor:"GrayText"},s)}],line:[E.line,{display:"flex",position:"relative"},g?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},g?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[E.activeSection,{background:N,selectors:(l={},l[Ze]={backgroundColor:"WindowText"},l)},S&&{transition:"width ".concat(_m.durationValue3," ").concat(_m.easeFunction1)},y&&{background:O,selectors:(u={},u[Ze]={backgroundColor:"GrayText",borderColor:"GrayText"},u)}],inactiveSection:[E.inactiveSection,{background:z,selectors:(c={},c[Ze]={border:"1px solid WindowText"},c)},S&&{transition:"width ".concat(_m.durationValue3," ").concat(_m.easeFunction1)},y&&{background:A,selectors:(d={},d[Ze]={borderColor:"GrayText"},d)}],zeroTick:[E.zeroTick,{position:"absolute",background:C.disabledBorder,selectors:(f={},f[Ze]={backgroundColor:"WindowText"},f)},e.disabled&&{background:C.disabledBackground,selectors:(p={},p[Ze]={backgroundColor:"GrayText"},p)},e.vertical?{width:"16px",height:"1px",transform:gn(b)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[E.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},g?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}},Nwt=Sn(fbe,Owt,void 0,{scope:"Slider"}),pbe=23,Dwt=8,iB=32,sB=86,pte=10,lB=Co(function(e){var t,r=e.semanticColors,n=r.disabledText,o=r.disabledBackground;return{backgroundColor:o,pointerEvents:"none",cursor:"default",color:n,selectors:(t={":after":{borderColor:o}},t[Ze]={color:"GrayText"},t)}}),mte=Co(function(e,t,r){var n,o,a,i=e.palette,s=e.semanticColors,l=e.effects,u=i.neutralSecondary,c=s.buttonText,d=s.buttonText,f=s.buttonBackgroundHovered,p=s.buttonBackgroundPressed,h={root:{outline:"none",display:"block",height:"50%",width:pbe,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:u,selectors:{"&.ms-DownButton":{borderRadius:"0 0 ".concat(l.roundedCorner2," 0")},"&.ms-UpButton":{borderRadius:"0 ".concat(l.roundedCorner2," 0 0")}}},rootHovered:{backgroundColor:f,color:c},rootChecked:{backgroundColor:p,color:d,selectors:(n={},n[Ze]={backgroundColor:"Highlight",color:"HighlightText"},n)},rootPressed:{backgroundColor:p,color:d,selectors:(o={},o[Ze]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootDisabled:{opacity:.5,selectors:(a={},a[Ze]={color:"GrayText",opacity:1},a)},icon:{fontSize:Dwt,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},v={},b={};return Au(h,t?v:b,r)}),Awt=function(e){var t,r,n,o,a=e.theme,i=e.className,s=e.labelPosition,l=e.disabled,u=e.isFocused,c=a.palette,d=a.semanticColors,f=a.effects,p=a.fonts,h=d.inputBorder,v=d.inputBackground,b=d.inputBorderHovered,g=d.inputFocusBorderAlt,y=d.inputText,S=c.white,w=d.inputBackgroundChecked,$=d.disabledText;return{root:[p.medium,{outline:"none",width:"100%",minWidth:sB},i],labelWrapper:[{display:"inline-flex",alignItems:"center"},s===id.start&&{height:iB,float:"left",marginRight:pte},s===id.end&&{height:iB,float:"right",marginLeft:pte},s===id.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:ds.large},l&&{color:$}],label:{pointerEvents:"none",lineHeight:ds.large},spinButtonWrapper:[K(K({display:"flex",position:"relative",boxSizing:"border-box",height:iB,minWidth:sB},BL(h,f.roundedCorner2,"border",0)),{":after":(t={borderWidth:"1px"},t[Ze]={borderColor:"GrayText"},t)}),(s===id.top||s===id.bottom)&&{width:"100%"},!l&&[{":hover:after":(r={borderColor:b},r[Ze]={borderColor:"Highlight"},r)},u&&{":hover:after, :after":(n={borderColor:g,borderWidth:"2px"},n[Ze]={borderColor:"Highlight"},n)}],l&&lB(a)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:p.medium.fontSize,fontFamily:"inherit",color:y,backgroundColor:v,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:sB-pbe-2,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:"".concat(f.roundedCorner2," 0 0 ").concat(f.roundedCorner2)},!l&&{selectors:{"::selection":{backgroundColor:w,color:S,selectors:(o={},o[Ze]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},o)}}},l&&lB(a)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},l&&lB(a)]}},tc;(function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"})(tc||(tc={}));var Mwt=yn(),Bwt="SpinButton",jwt={disabled:!1,label:"",step:1,labelPosition:id.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},Lwt=400,zwt=75,Vwt=function(e,t,r){m.useImperativeHandle(e.componentRef,function(){return{get value(){return r},focus:function(){t.current&&t.current.focus()}}},[t,r])},Hwt=function(){},uB=function(e,t){var r=t.min,n=t.max;return typeof n=="number"&&(e=Math.min(e,n)),typeof r=="number"&&(e=Math.max(e,r)),e},mbe=m.forwardRef(function(e,t){var r=Hd(jwt,e),n=r.disabled,o=r.label,a=r.min,i=r.max,s=r.step,l=r.defaultValue,u=r.value,c=r.precision,d=r.labelPosition,f=r.iconProps,p=r.incrementButtonIcon,h=r.incrementButtonAriaLabel,v=r.decrementButtonIcon,b=r.decrementButtonAriaLabel,g=r.ariaLabel,y=r.ariaDescribedBy,S=r.upArrowButtonStyles,w=r.downArrowButtonStyles,$=r.theme,C=r.ariaPositionInSet,x=r.ariaSetSize,E=r.ariaValueNow,_=r.ariaValueText,k=r.className,I=r.inputProps,N=r.onDecrement,z=r.onIncrement,O=r.iconButtonProps,A=r.onValidate,M=r.onChange,L=r.styles,j=m.useRef(null),H=Ks("input"),B=Ks("Label"),F=m.useState(!1),V=F[0],D=F[1],P=m.useState(tc.notSpinning),R=P[0],W=P[1],U=Qh(),q=m.useMemo(function(){return c??Math.max(vht(s),0)},[c,s]),J=Nd(u,l??String(a||0),M),Z=J[0],Q=J[1],oe=m.useState(),ie=oe[0],te=oe[1],ae=m.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;ae.latestValue=Z,ae.latestIntermediateValue=ie;var fe=tp(u);m.useEffect(function(){u!==fe&&ie!==void 0&&te(void 0)},[u,fe,ie]);var ve=Mwt(L,{theme:$,disabled:n,isFocused:V,keyboardSpinDirection:R,labelPosition:d,className:k}),Se=an(r,pi,["onBlur","onFocus","className","onChange"]),se=m.useCallback(function(_e){var De=ae.latestIntermediateValue;if(De!==void 0&&De!==ae.latestValue){var et=void 0;A?et=A(De,_e):De&&De.trim().length&&!isNaN(Number(De))&&(et=String(uB(Number(De),{min:a,max:i}))),et!==void 0&&et!==ae.latestValue&&Q(et,_e)}te(void 0)},[ae,i,a,A,Q]),pe=m.useCallback(function(){ae.stepTimeoutHandle>=0&&(U.clearTimeout(ae.stepTimeoutHandle),ae.stepTimeoutHandle=-1),(ae.spinningByMouse||R!==tc.notSpinning)&&(ae.spinningByMouse=!1,W(tc.notSpinning))},[ae,R,U]),ge=m.useCallback(function(_e,De){if(De.persist(),ae.latestIntermediateValue!==void 0){(De.type==="keydown"||De.type==="mousedown")&&se(De),U.requestAnimationFrame(function(){ge(_e,De)});return}var et=_e(ae.latestValue||"",De);et!==void 0&&et!==ae.latestValue&&Q(et,De);var Ie=ae.spinningByMouse;ae.spinningByMouse=De.type==="mousedown",ae.spinningByMouse&&(ae.stepTimeoutHandle=U.setTimeout(function(){ge(_e,De)},Ie?zwt:Lwt))},[ae,U,se,Q]),de=m.useCallback(function(_e){if(z)return z(_e);var De=uB(Number(_e)+Number(s),{max:i});return De=bee(De,q),String(De)},[q,i,z,s]),ee=m.useCallback(function(_e){if(N)return N(_e);var De=uB(Number(_e)-Number(s),{min:a});return De=bee(De,q),String(De)},[q,a,N,s]),me=function(_e){te(_e.target.value)},Re=function(_e){var De;j.current&&((ae.spinningByMouse||R!==tc.notSpinning)&&pe(),j.current.select(),D(!0),(De=r.onFocus)===null||De===void 0||De.call(r,_e))},je=function(_e){var De;se(_e),D(!1),(De=r.onBlur)===null||De===void 0||De.call(r,_e)},ze=function(_e){if((_e.which===pt.up||_e.which===pt.down||_e.which===pt.enter)&&(_e.preventDefault(),_e.stopPropagation()),n){pe();return}var De=tc.notSpinning;switch(_e.which){case pt.up:De=tc.up,ge(de,_e);break;case pt.down:De=tc.down,ge(ee,_e);break;case pt.enter:se(_e);break;case pt.escape:te(void 0);break}R!==De&&W(De)},Le=m.useCallback(function(_e){if(n||_e.which===pt.up||_e.which===pt.down){pe();return}},[n,pe]),$e=m.useCallback(function(_e){ge(de,_e)},[de,ge]),Je=m.useCallback(function(_e){ge(ee,_e)},[ee,ge]);Vwt(r,j,Z),Wwt();var Pe=!!Z&&!isNaN(Number(Z)),st=(f||o)&&m.createElement("div",{className:ve.labelWrapper},f&&m.createElement(Ea,K({},f,{className:ve.icon,"aria-hidden":"true"})),o&&m.createElement(mc,{id:B,htmlFor:H,className:ve.label,disabled:n},o));return m.createElement("div",{className:ve.root,ref:t},d!==id.bottom&&st,m.createElement("div",K({},Se,{className:ve.spinButtonWrapper,"aria-label":g&&g,"aria-posinset":C,"aria-setsize":x,"data-ktp-target":!0}),m.createElement("input",K({value:ie??Z,id:H,onChange:Hwt,onInput:me,className:ve.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":o&&B,"aria-valuenow":E??(Pe?Number(Z):void 0),"aria-valuetext":_??(Pe?void 0:Z),"aria-valuemin":a,"aria-valuemax":i,"aria-describedby":y,onBlur:je,ref:j,onFocus:Re,onKeyDown:ze,onKeyUp:Le,disabled:n,"aria-disabled":n,"data-lpignore":!0,"data-ktp-execute-target":!0},I)),m.createElement("span",{className:ve.arrowButtonsContainer},m.createElement(Xy,K({styles:mte($,!0,S),className:"ms-UpButton",checked:R===tc.up,disabled:n,iconProps:p,onMouseDown:$e,onMouseLeave:pe,onMouseUp:pe,tabIndex:-1,ariaLabel:h,"data-is-focusable":!1},O)),m.createElement(Xy,K({styles:mte($,!1,w),className:"ms-DownButton",checked:R===tc.down,disabled:n,iconProps:v,onMouseDown:Je,onMouseLeave:pe,onMouseUp:pe,tabIndex:-1,ariaLabel:b,"data-is-focusable":!1},O)))),d===id.bottom&&st)});mbe.displayName=Bwt;var Wwt=function(e){},qwt=Sn(mbe,Awt,void 0,{scope:"SpinButton"}),kH=K;function Uwt(e,t){for(var r=[],n=2;n0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return Qwt(t[i],l,n[i],n.slots&&n.slots[i],n._defaultStyles&&n._defaultStyles[i],n.theme)};s.isSlot=!0,r[i]=s}};for(var a in t)o(a);return r}function Ywt(e,t){var r,n;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?n=(r={},r[e]=t,r):n=t,n}function Xwt(e,t){for(var r=[],n=2;n0&&a.map(({key:g,...y})=>T.jsx(h,{...y},g)),t&&T.jsx("span",{style:iCt,children:T.jsx(b,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})]})}const lCt=["multiline","resizable","autoAdjustHeight","underlined","borderless","label","onRenderLabel","description","onRenderDescription","prefix","suffix","onRenderPrefix","onRenderSuffix","iconProps","defaultValue","value","disabled","readOnly","errorMessage","onChange","onNotifyValidationResult","onGetErrorMessage","deferredValidationTime","className","inputClassName","ariaLabel","validateOnFocusIn","validateOnFocusOut","validateOnLoad","theme","styles","autoComplete","mask","maskChar","maskFormat","type","list"];function uCt({id:e,placeholder:t,required:r,readonly:n,disabled:o,label:a,hideLabel:i,value:s,onChange:l,onChangeOverride:u,onBlur:c,onFocus:d,autofocus:f,options:p,schema:h,type:v,rawErrors:b,multiline:g}){const y=kp(h,v,p),S=({target:{value:x}})=>l(x===""?p.emptyValue:x),w=({target:x})=>c(e,x&&x.value),$=({target:x})=>d(e,x&&x.value),C=Oc(p.props||{},lCt);return T.jsxs(T.Fragment,{children:[T.jsx(FN,{id:e,name:e,placeholder:t,label:wr(a,i),autoFocus:f,required:r,disabled:o,readOnly:n,multiline:g,...y,value:s||s===0?s:"",onChange:u||S,onBlur:w,onFocus:$,errorMessage:(b||[]).join(` +`),list:h.examples?da(e):void 0,...C,"aria-describedby":Ot(e,!!h.examples)}),Array.isArray(h.examples)&&T.jsx("datalist",{id:da(e),children:h.examples.concat(h.default&&!h.examples.includes(h.default)?[h.default]:[]).map(x=>T.jsx("option",{value:x},x))})]})}function cCt({description:e,id:t}){return e?T.jsx(PH,{id:t,children:e}):null}function dCt({errors:e,registry:t}){const{translateString:r}=t;return T.jsx(T.Fragment,{children:e.map((n,o)=>T.jsx(_wt,{messageBarType:cr.error,isMultiline:!1,dismissButtonAriaLabel:r($t.CloseLabel),children:n.stack},o))})}function ON(e){const t={iconName:e.icon};return T.jsx(Xy,{disabled:e.disabled,onClick:e.onClick,iconProps:t,color:"secondary"})}function fCt(e){const{registry:{translateString:t}}=e;return T.jsx(ON,{title:t($t.CopyButton),...e,icon:"Copy"})}function pCt(e){const{registry:{translateString:t}}=e;return T.jsx(ON,{title:t($t.MoveDownButton),...e,icon:"Down"})}function mCt(e){const{registry:{translateString:t}}=e;return T.jsx(ON,{title:t($t.MoveUpButton),...e,icon:"Up"})}function hCt(e){const{registry:{translateString:t}}=e;return T.jsx(ON,{title:t($t.RemoveButton),...e,icon:"Delete"})}function vCt(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=Vd(r);return T.jsx(dSt,{id:n,items:t})}function gCt(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Tp(t);return T.jsx(PH,{id:n,children:r})}function bCt(e){const{children:t,errors:r,help:n,displayLabel:o,description:a,rawDescription:i,hidden:s,uiSchema:l,registry:u}=e,c=At(l),d=Ct("WrapIfAdditionalTemplate",u,c);return s?T.jsx("div",{style:{display:"none"},children:t}):T.jsxs(d,{...e,children:[t,o&&i&&T.jsx(PH,{children:a}),r,n]})}const yCt={float:"right"};function SCt({description:e,title:t,properties:r,required:n,disabled:o,readonly:a,schema:i,uiSchema:s,idSchema:l,formData:u,onAddClick:c,registry:d}){const f=At(s),p=Ct("TitleFieldTemplate",d,f),h=Ct("DescriptionFieldTemplate",d,f),{ButtonTemplates:{AddButton:v}}=d.templates;return T.jsxs(T.Fragment,{children:[t&&T.jsx(p,{id:Nu(l),title:t,required:n,schema:i,uiSchema:s,registry:d}),e&&T.jsx(h,{id:pa(l),schema:i,uiSchema:s,description:e,registry:d}),T.jsxs("div",{className:"ms-Grid",dir:"ltr",children:[T.jsx("div",{className:"ms-Grid-row",children:r.map(b=>b.content)}),$p(i,s,u)&&T.jsx("span",{style:yCt,children:T.jsx(v,{className:"object-property-expand",onClick:c(i),disabled:o||a,uiSchema:s,registry:d})})]})]})}function wCt({uiSchema:e}){const{submitText:t,norender:r,props:n}=Pp(e);return r?null:T.jsxs("div",{children:[T.jsx("br",{}),T.jsx("div",{className:"ms-Grid-col ms-sm12",children:T.jsx(Vbt,{text:t,type:"submit",...n})})]})}const CCt={root:[{fontSize:24,marginBottom:20,paddingBottom:0}]};function xCt({id:e,title:t}){return T.jsx(mc,{id:e,styles:CCt,children:t})}function $Ct(e){const{children:t,disabled:r,id:n,label:o,onDropPropertyClick:a,onKeyChange:i,readonly:s,registry:l,required:u,schema:c,style:d,uiSchema:f}=e,{templates:p,translateString:h}=l;let{classNames:v=""}=e;v="ms-Grid-col ms-sm12 "+v.replace("form-group","");const{RemoveButton:b}=p.ButtonTemplates,g=h($t.KeyLabel,[o]);if(!(Nl in c))return T.jsx("div",{className:v,style:{...d,marginBottom:15},children:t});const S=({target:w})=>i(w.value);return T.jsx("div",{className:v,style:{...d,marginBottom:15},dir:"ltr",children:T.jsxs("div",{className:"ms-Grid-row",children:[T.jsx("div",{className:"ms-Grid-col ms-sm4 ms-md4 ms-lg5",children:T.jsx(FN,{required:u,label:g,defaultValue:o,disabled:r||s,id:`${n}-key`,name:`${n}-key`,onBlur:s?void 0:S,type:"text"})}),T.jsx("div",{className:"ms-Grid-col ms-sm4 ms-md4 ms-lg5",children:t}),T.jsx("div",{className:"ms-Grid-col ms-sm4 ms-md4 ms-lg2",style:{textAlign:"right"},children:T.jsx(b,{disabled:r||s,onClick:a(o),uiSchema:f,registry:l})})]},`${n}-key`)})}function ECt(){return{ArrayFieldItemTemplate:nCt,ArrayFieldTemplate:sCt,BaseInputTemplate:uCt,ButtonTemplates:{CopyButton:fCt,AddButton:aCt,MoveDownButton:pCt,MoveUpButton:mCt,RemoveButton:hCt,SubmitButton:wCt},DescriptionFieldTemplate:cCt,ErrorListTemplate:dCt,FieldErrorTemplate:vCt,FieldHelpTemplate:gCt,FieldTemplate:bCt,ObjectFieldTemplate:SCt,TitleFieldTemplate:xCt,WrapIfAdditionalTemplate:$Ct}}const gbe=["ariaDescribedBy","ariaLabel","ariaPositionInSet","ariaSetSize","boxSide","checked","checkmarkIconProps","className","componentRef","defaultChecked","defaultIndeterminate","disabled","indeterminate","inputProps","keytipProps","label","onChange","onRenderLabel","styles","theme"];function _Ct(e){const{id:t,value:r,disabled:n,readonly:o,label:a,hideLabel:i,schema:s,autofocus:l,onChange:u,onBlur:c,onFocus:d,options:f,registry:p,uiSchema:h}=e,v=Ct("DescriptionFieldTemplate",p,f),b=m.useCallback(($,C)=>{u(C)},[u]),g=({target:$})=>c(t,$&&$.value),y=({target:$})=>d(t,$&&$.value),S=Oc(f.props||{},gbe),w=f.description??s.description;return T.jsxs(T.Fragment,{children:[!i&&!!w&&T.jsx(v,{id:pa(t),description:w,schema:s,uiSchema:h,registry:p}),T.jsx(EH,{id:t,name:t,label:wr(a||void 0,i),disabled:n||o,inputProps:{autoFocus:l,onBlur:g,onFocus:y},checked:typeof r>"u"?!1:r,onChange:b,...S,"aria-describedby":Ot(t),autoFocus:l,onBlur:g,onFocus:y})]})}const bbe={color:"rgb(164, 38, 44)",fontSize:12,fontWeight:"normal",fontFamily:'"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif'};function NN({label:e,required:t,id:r}){return T.jsxs(mc,{htmlFor:r,children:[e,t&&T.jsx("span",{style:bbe,children:" *"})]})}function kCt({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:u,onBlur:c,onFocus:d,rawErrors:f=[]}){const{enumOptions:p,enumDisabled:h,emptyValue:v}=o,b=Array.isArray(a)?a:[a],g=$=>(C,x)=>{u(x?qh($,b,p):Wh($,b,p))},y=({target:$})=>c(r,Tt($&&$.value,p,v)),S=({target:$})=>d(r,Tt($&&$.value,p,v)),w=Oc(o.props||{},gbe);return T.jsxs(T.Fragment,{children:[wr(T.jsx(NN,{label:e||void 0,required:l}),t),Array.isArray(p)&&p.map(($,C)=>{const x=Fu($.value,b),E=Array.isArray(h)&&h.indexOf($.value)!==-1;return T.jsx(EH,{id:Wa(r,C),name:r,checked:x,label:$.label,disabled:n||E||s,inputProps:{autoFocus:i&&C===0,onBlur:y,onFocus:S},onChange:g(C),...w,"aria-describedby":Ot(r),autoFocus:i&&C===0,onBlur:y,onFocus:S},C)}),T.jsx("span",{style:bbe,children:(f||[]).join(` +`)})]})}const PCt=["componentRef","color","strings","onChange","alphaType","alphaSliderHidden","hexLabel","redLabel","greenLabel","blueLabel","alphaLabel","className","theme","styles","showPreview"];function TCt({id:e,options:t,value:r,required:n,label:o,hideLabel:a,onChange:i}){const s=(u,c)=>{i(c.hex)},l={id:e,...Oc(t.props||{},PCt)};return T.jsxs(T.Fragment,{children:[wr(T.jsx(NN,{label:o||void 0,required:n,id:e}),a),T.jsx(Z1t,{color:TC(r),onChange:s,alphaType:"alpha",showPreview:!0,...l,"aria-describedby":Ot(e)})]})}const ICt=["componentRef","styles","theme","calloutProps","calendarProps","textField","calendarAs","onSelectDate","label","isRequired","disabled","ariaLabel","underlined","pickerAriaLabel","isMonthPickerVisible","showMonthPickerAsOverlay","allowTextInput","disableAutoFocus","placeholder","today","value","formatDate","parseDateFromString","firstDayOfWeek","strings","highlightCurrentMonth","highlightSelectedMonth","showWeekNumbers","firstWeekOfYear","showGoToToday","borderless","className","dateTimeFormatter","minDate","maxDate","initialPickerDate","allFocusable","onAfterMenuDismiss","showCloseButton","tabIndex"],RCt=aS({control:{margin:"0 0 15px 0"}}),FCt=e=>{if(!e)return"";const t=ac(e.getFullYear(),4),r=ac(e.getMonth()+1,2),n=ac(e.getDate(),2);return`${t}-${r}-${n}`},OCt=e=>{if(!e)return;const[t,r,n]=e.split("-").map(a=>parseInt(a));return new Date(t,r-1,n)};function NCt({id:e,required:t,label:r,hideLabel:n,value:o,onChange:a,onBlur:i,onFocus:s,options:l,placeholder:u,registry:c}){const{translateString:d}=c,f=b=>{if(b){const g=FCt(b);g&&a(g)}},p=({target:b})=>i(e,b&&b.value),h=({target:b})=>s(e,b&&b.value),v=Oc(l.props||{},ICt);return T.jsx(xSt,{id:e,className:RCt.control,firstDayOfWeek:Di.Sunday,placeholder:u,ariaLabel:d($t.AriaDateLabel),isRequired:t,label:wr(r,n),onSelectDate:f,onBlur:p,onFocus:h,value:OCt(o),...v,"aria-describedby":Ot(e)})}function DCt(e){const{registry:t}=e,r=e.options.props||{},n={...e.options,props:{type:"datetime-local",...r}},o=Ct("BaseInputTemplate",t,n),a=fme(e.value),i=s=>{e.onChange(ume(s))};return T.jsx(o,{...e,options:n,value:a,onChange:i})}const ACt=["componentRef","options","defaultSelectedKey","selectedKey","onChange","label","onChanged","theme","styles","ariaLabelledBy"];function MCt({id:e,options:t,value:r,required:n,label:o,hideLabel:a,onChange:i,onBlur:s,onFocus:l,disabled:u,readonly:c}){const{enumOptions:d,enumDisabled:f,emptyValue:p}=t;function h(w,$){$&&i(Tt($.key,d,p))}const v=({target:w})=>s(e,Tt(w&&w.value,d,p)),b=({target:w})=>l(e,Tt(w&&w.value,d,p)),g=Array.isArray(d)?d.map((w,$)=>({key:String($),name:e,id:Wa(e,$),text:w.label,disabled:Array.isArray(f)&&f.indexOf(w.value)!==-1,"aria-describedby":Ot(e)})):[],y=mi(r,d),S=Oc(t.props||{},ACt);return T.jsx(d1t,{id:e,name:e,options:g,disabled:u||c,onChange:h,onFocus:b,onBlur:v,label:wr(o,a||!o),required:n,selectedKey:y,...S})}const BCt=["componentRef","styles?","theme","label","defaultValue","value","min","max","step","showValue","onChange","ariaLabel","ariaValueText","vertical","disabled","snapToStep","className","buttonProps","valueFormat","originFromZero"];function jCt({value:e,readonly:t,disabled:r,options:n,schema:o,onChange:a,required:i,label:s,hideLabel:l,id:u}){const c={value:e,label:s,id:u,..._p(o)},d=p=>a(p),f={id:u,...Oc(n.props||{},BCt)};return T.jsxs(T.Fragment,{children:[wr(T.jsx(NN,{label:s||void 0,required:i,id:u}),l),T.jsx(Nwt,{disabled:r||t,min:c.min,max:c.max,step:c.step,onChange:d,snapToStep:!0,...f,"aria-describedby":Ot(u)})]})}const LCt=["placeHolder","options","onChange","onChanged","onRenderLabel","onRenderPlaceholder","onRenderPlaceHolder","onRenderTitle","onRenderCaretDown","dropdownWidth","responsiveMode","defaultSelectedKeys","selectedKeys","multiselectDelimiter","notifyOnReselect","isDisabled","keytipProps","theme","styles","componentRef","label","ariaLabel","id","className","defaultSelectedKey","selectedKey","multiSelect","options","onRenderContainer","onRenderList","onRenderItem","onRenderOption","onDismiss","disabled","required","calloutProps","panelProps","errorMessage","placeholder","openOnKeyboardFocus"];function zCt({id:e,options:t,label:r,hideLabel:n,required:o,disabled:a,readonly:i,value:s,multiple:l,onChange:u,onBlur:c,onFocus:d}){const{enumOptions:f,enumDisabled:p,emptyValue:h}=t,v=($,C)=>{if(C)if(l){const x=s||[];C.selected?u(qh(C.key,x,f)):u(Wh(C.key,x,f))}else u(Tt(C.key,f,h))},b=$=>c(e,Tt($.target.value,f,h)),g=$=>d(e,Tt($.target.value,f,h)),y=Array.isArray(f)?f.map(($,C)=>({key:String(C),text:$.label,disabled:Array.isArray(p)&&p.indexOf($.value)!==-1})):[],S=Oc(t.props||{},LCt),w=mi(s,f,l);return T.jsx(cbe,{id:e,label:wr(r,n),multiSelect:l,defaultSelectedKey:l?void 0:w,defaultSelectedKeys:l?w:void 0,required:o,options:y,disabled:a||i,onChange:v,onBlur:b,onFocus:g,...S,"aria-describedby":Ot(e)})}function VCt(e){const{uiSchema:t,registry:r}=e,n=At(t),o=Ct("BaseInputTemplate",r,n);return T.jsx(o,{...e,multiline:!0})}const HCt=["ariaDescribedBy","ariaLabel","ariaPositionInSet","ariaSetSize","ariaValueNow","ariaValueText","className","componentRef","decrementButtonAriaLabel","decrementButtonIcon","defaultValue","disabled","downArrowButtonStyles","getClassNames","iconButtonProps","iconProps","incrementButtonAriaLabel","incrementButtonIcon","inputProps","keytipProps","label","labelPosition","max","min","onBlur","onDecrement","onFocus","onIncrement","onValidate","precision","step","styles","theme","title","upArrowButtonStyles","value"];function WCt({id:e,required:t,readonly:r,disabled:n,label:o,hideLabel:a,value:i,onChange:s,onBlur:l,onFocus:u,options:c,schema:d,registry:f}){const{translateString:p}=f,h=(x,E)=>{E?s(Number(E)):"value"in x.target&&s(Number(x.target.value))};let{min:v,max:b,step:g}=_p(d);v===void 0&&(v=-1*(1/0)),b===void 0&&(b=1/0),g===void 0&&(g=1);const y=x=>{Number(x)+g<=b&&s(Number(x)+g)},S=x=>{Number(x)-g>=v&&s(Number(x)-g)},w=({target:x})=>l(e,x&&x.value),$=({target:x})=>u(e,x&&x.value),C=Oc(c.props||{},HCt);return T.jsxs(T.Fragment,{children:[wr(T.jsx(NN,{label:o||void 0,required:t,id:e}),a),T.jsx(qwt,{id:e,min:v,max:b,step:g,incrementButtonAriaLabel:p($t.IncrementAriaLabel),decrementButtonAriaLabel:p($t.DecrementAriaLabel),disabled:n||r,value:i||i===0?i:"",onBlur:w,onFocus:$,onChange:h,onIncrement:y,onDecrement:S,...C,"aria-describedby":Ot(e)})]})}function qCt(){return{CheckboxWidget:_Ct,CheckboxesWidget:kCt,ColorWidget:TCt,DateWidget:NCt,DateTimeWidget:DCt,RadioWidget:MCt,RangeWidget:jCt,SelectWidget:zCt,TextareaWidget:VCt,UpDownWidget:WCt}}function ybe(){return{templates:ECt(),widgets:qCt()}}const UCt=ybe();function KCt(){return Fd(ybe())}KCt();mwt();const GCt=["Top","Right","Bottom","Left"];function WE(e,t,...r){const[n,o=n,a=n,i=o]=r,s=[n,o,a,i],l={};for(let u=0;utypeof e=="string"&&/(\d+(\w+|%))/.test(e),Z2=e=>typeof e=="number"&&!Number.isNaN(e),nxt=e=>e==="initial",hte=e=>e==="auto",oxt=e=>e==="none",axt=["content","fit-content","max-content","min-content"],cB=e=>axt.some(t=>e===t)||rxt(e);function ixt(...e){const t=e.length===1,r=e.length===2,n=e.length===3;if(t){const[o]=e;if(nxt(o))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(hte(o))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(oxt(o))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Z2(o))return{flexGrow:o,flexShrink:1,flexBasis:0};if(cB(o))return{flexGrow:1,flexShrink:1,flexBasis:o}}if(r){const[o,a]=e;if(Z2(a))return{flexGrow:o,flexShrink:a,flexBasis:0};if(cB(a))return{flexGrow:o,flexShrink:1,flexBasis:a}}if(n){const[o,a,i]=e;if(Z2(o)&&Z2(a)&&(hte(i)||cB(i)))return{flexGrow:o,flexShrink:a,flexBasis:i}}return{}}function sxt(e,t=e){return{columnGap:e,rowGap:t}}const lxt=/var\(.*\)/gi;function uxt(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!lxt.test(e)}const cxt=/^[a-zA-Z0-9\-_\\#;]+$/,dxt=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function dB(e){return e!==void 0&&typeof e=="string"&&cxt.test(e)&&!dxt.test(e)}function fxt(...e){if(e.some(a=>!uxt(a)))return{};const t=e[0]!==void 0?e[0]:"auto",r=e[1]!==void 0?e[1]:dB(t)?t:"auto",n=e[2]!==void 0?e[2]:dB(t)?t:"auto",o=e[3]!==void 0?e[3]:dB(r)?r:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:n,gridColumnEnd:o}}function pxt(...e){return WE("margin","",...e)}function mxt(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function hxt(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function vxt(...e){return WE("padding","",...e)}function gxt(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function bxt(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function yxt(e,t=e){return{overflowX:e,overflowY:t}}function Sxt(...e){const[t,r=t,n=t,o=r]=e;return{top:t,right:r,bottom:n,left:o}}function wxt(e,t,r){return{outlineWidth:e,...t&&{outlineStyle:t},...r&&{outlineColor:r}}}function Cxt(...e){return $xt(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:Ext(e).reduce((r,[n,o="0s",a="0s",i="ease"],s)=>(s===0?(r.transitionProperty=n,r.transitionDuration=o,r.transitionDelay=a,r.transitionTimingFunction=i):(r.transitionProperty+=`, ${n}`,r.transitionDuration+=`, ${o}`,r.transitionDelay+=`, ${a}`,r.transitionTimingFunction+=`, ${i}`),r),{})}const xxt=["-moz-initial","inherit","initial","revert","unset"];function $xt(e){return e.length===1&&xxt.includes(e[0])}function Ext(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function _xt(e,...t){if(t.length===0)return Pxt(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,n,o]=t;return{textDecorationLine:e,...r&&{textDecorationStyle:r},...n&&{textDecorationColor:n},...o&&{textDecorationThickness:o}}}const kxt=["dashed","dotted","double","solid","wavy"];function Pxt(e){return kxt.includes(e)}const fB=typeof window>"u"?global:window,pB="@griffel/";function Txt(e,t){return fB[Symbol.for(pB+e)]||(fB[Symbol.for(pB+e)]=t),fB[Symbol.for(pB+e)]}const QL=Txt("DEFINITION_LOOKUP_TABLE",{}),IC="data-make-styles-bucket",ZL="f",JL=7,TH="___",Ixt=TH.length+JL,Rxt=0,Fxt=1,Oxt={all:1,animation:1,animationRange:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1,viewTimeline:1};function Nxt(e){const t=e.length;if(t===JL)return e;for(let r=t;r0&&(t+=c.slice(0,d)),r+=f,n[u]=f}}}if(r==="")return t.slice(0,-1);const o=vte[r];if(o!==void 0)return t+o;const a=[];for(let u=0;ua.cssText):n}}}function Axt(e){const t=Array.from(e.attributes).reduce((n,o)=>(n[o.name]=o.value,n),{});return Cbe(e,t[IC],t)}const Mxt=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],gte=Mxt.reduce((e,t,r)=>(e[t]=r,e),{});function Bxt(e,t,r,n,o={}){const a=e==="m",i=a?e+o.m:e;if(!n.stylesheets[i]){const s=t&&t.createElement("style"),l=Cbe(s,e,{...n.styleElementAttributes,...a&&{media:o.m}});n.stylesheets[i]=l,t&&s&&t.head.insertBefore(s,jxt(t,r,e,n,o))}return n.stylesheets[i]}function jxt(e,t,r,n,o){const a=gte[r];let i=c=>a-gte[c.getAttribute(IC)],s=e.head.querySelectorAll(`[${IC}]`);if(r==="m"&&o){const c=e.head.querySelectorAll(`[${IC}="${r}"]`);c.length&&(s=c,i=d=>n.compareMediaQueries(o.m,d.media))}const l=s.length;let u=l-1;for(;u>=0;){const c=s.item(u);if(i(c)>0)return c.nextSibling;u--}return l>0?s.item(0):t?t.nextSibling:null}function bte(e,t){try{e.insertRule(t)}catch{}}let Lxt=0;const zxt=(e,t)=>et?1:0;function xbe(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:o,compareMediaQueries:a=zxt}=t,i={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:a,id:`d${Lxt++}`,insertCSSRules(s){for(const l in s){const u=s[l];for(let c=0,d=u.length;c"u"?void 0:document){t&&t.querySelectorAll("[data-make-styles-bucket]").forEach(n=>{const o=n.dataset.makeStylesBucket,a=Wxt[o]||Hxt,i=o==="m"?o+n.media:o;e.stylesheets[i]||(e.stylesheets[i]=Axt(n));let s;for(;s=a.exec(n.textContent);){const[l]=s;e.insertionCache[l]=o}})}const IH=()=>{const e={};return function(r,n){e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}};function $be(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t[o]=n,t},{})}function Uxt(e){return typeof e=="boolean"}function Kxt(e){return typeof e=="function"}function Kw(e){return typeof e=="number"}function Gxt(e){return e===null||typeof e>"u"}function Yxt(e){return e&&typeof e=="object"}function Xxt(e){return typeof e=="string"}function tT(e,t){return e.indexOf(t)!==-1}function Qxt(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function J2(e,t,r,n){return t+Qxt(r)+n}function Zxt(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function Ebe(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var n=t.list,o=t.state,a=(r.match(/\(/g)||[]).length,i=(r.match(/\)/g)||[]).length;return o.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),o.parensDepth+=a-i,{list:n,state:o}},{list:[],state:{parensDepth:0}}).list}function Ste(e){var t=Ebe(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],o=t[2],a=t[3];return[r,a,o,n].join(" ")}function Jxt(e){return!Uxt(e)&&!Gxt(e)}function e$t(e){for(var t=[],r=0,n=0,o=!1;n{switch(e.type){case FE:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:oat(t).reduce((r,n,o,a)=>{if(n==="")return r;if(n===":"&&a[o+1]==="global"){const i=a[o+2].slice(1,-1)+" ";return r.unshift(i),a[o+1]="",a[o+2]="",r}return r.push(n),r},[]).join(""))}};function Tbe(e,t,r){switch(gve(e,t)){case 5103:return xr+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return xr+e+e;case 4215:if(jo(e,9)===102||jo(e,t+1)===116)return xr+e+e;break;case 4789:return Of+e+e;case 5349:case 4246:case 6968:return xr+e+Of+e+e;case 6187:if(!NV(e,/grab/))return kr(kr(kr(e,/(zoom-|grab)/,xr+"$1"),/(image-set)/,xr+"$1"),e,"")+e;case 5495:case 3959:return kr(e,/(image-set\([^]*)/,xr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return kr(e,/(.+)-inline(.+)/,xr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dc(e)-1-t>6)switch(jo(e,t+1)){case 102:if(jo(e,t+3)===108)return kr(e,/(.+:)(.+)-([^]+)/,"$1"+xr+"$2-$3$1"+Of+(jo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xI(e,"stretch")?Tbe(kr(e,"stretch","fill-available"),t)+e:e}break}return e}function Ibe(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case XO:e.return=Tbe(e.value,e.length);return;case FE:if(e.length)return yve(e.props,function(o){switch(NV(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $c([Fm(e,{props:[kr(o,/:(read-\w+)/,":"+Of+"$1")]})],n);case"::placeholder":return $c([Fm(e,{props:[kr(o,/:(plac\w+)/,":"+xr+"input-$1")]}),Fm(e,{props:[kr(o,/:(plac\w+)/,":"+Of+"$1")]})],n)}return""})}}function c$t(e){switch(e.type){case"@container":case Qot:case Jot:case vve:return!0}return!1}const d$t=e=>{c$t(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function f$t(){}function p$t(e,t){const r=[];return $c(JO(e),BV([u$t,t?d$t:f$t,Ibe,eN,jV(n=>r.push(n))])),r}const m$t=/,( *[^ &])/g;function h$t(e){return"&"+Pbe(e.replace(m$t,",&$1"))}function Cte(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((o,a)=>`${h$t(a)} { ${o} }`,t)),`${e}{${n}}`}function xte(e){const{className:t,media:r,layer:n,selectors:o,support:a,property:i,rtlClassName:s,rtlProperty:l,rtlValue:u,value:c,container:d}=e,f=`.${t}`,p=Array.isArray(c)?`${c.map(v=>`${Gw(i)}: ${v}`).join(";")};`:`${Gw(i)}: ${c};`;let h=Cte(f,p,o);if(l&&s){const v=`.${s}`,b=Array.isArray(u)?`${u.map(g=>`${Gw(l)}: ${g}`).join(";")};`:`${Gw(l)}: ${u};`;h+=Cte(v,b,o)}return r&&(h=`@media ${r} { ${h} }`),n&&(h=`@layer ${n} { ${h} }`),a&&(h=`@supports ${a} { ${h} }`),d&&(h=`@container ${d} { ${h} }`),p$t(h,!0)}function v$t(e){let t="";for(const r in e){const n=e[r];typeof n!="string"&&typeof n!="number"||(t+=Gw(r)+":"+n+";")}return t}function $te(e){let t="";for(const r in e)t+=`${r}{${v$t(e[r])}}`;return t}function Ete(e,t){const r=`@keyframes ${e} {${t}}`,n=[];return $c(JO(r),BV([eN,Ibe,jV(o=>n.push(o))])),n}function _te(e,t){return e.length===0?t:`${e} and ${t}`}function g$t(e){return e.substr(0,6)==="@media"}function b$t(e){return e.substr(0,6)==="@layer"}const y$t=/^(:|\[|>|&)/;function S$t(e){return y$t.test(e)}function w$t(e){return e.substr(0,9)==="@supports"}function C$t(e){return e.substring(0,10)==="@container"}function x$t(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const kte={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Pte(e,t,r,n,o){if(r)return"m";if(t||n)return"t";if(o)return"c";if(e.length>0){const a=e[0].trim();if(a.charCodeAt(0)===58)return kte[a.slice(4,8)]||kte[a.slice(3,5)]||"d"}return"d"}function ek({container:e,media:t,layer:r,property:n,selector:o,support:a,value:i}){const s=Vy(o+e+t+r+a+n+i.trim());return ZL+s}function Tte(e,t,r,n,o){const a=e+t+r+n+o,i=Vy(a),s=i.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+i.slice(1):i}function Ite(e){return e.replace(/>\s+/g,">")}function $$t(e,t){const r=JSON.stringify(t,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${e}": ${r.split(` +`).map((n,o)=>" ".repeat(o===0?0:6)+n).join(` +`)}`," ".repeat(4)+""," ".repeat(2)+"",e.indexOf("&")}function Rte(e,t,r,n){e[t]=n?[r,n]:r}function Fte(e,t){return t?[e,t]:e}function hB(e,t,r,n,o){var a;let i;t==="m"&&o&&(i={m:o}),(a=e[t])!==null&&a!==void 0||(e[t]=[]),r&&e[t].push(Fte(r,i)),n&&e[t].push(Fte(n,i))}function _v(e,t=[],r="",n="",o="",a="",i={},s={},l){for(const u in e){if(Oxt.hasOwnProperty(u)){e[u];continue}const c=e[u];if(c!=null){if(typeof c=="string"||typeof c=="number"){const d=Ite(t.join("")),f=Tte(d,a,r,o,u),p=ek({container:a,media:r,layer:n,value:c.toString(),support:o,selector:d,property:u}),h=l&&{key:u,value:l}||e6(u,c),v=h.key!==u||h.value!==c,b=v?ek({container:a,value:h.value.toString(),property:h.key,selector:d,media:r,layer:n,support:o}):void 0,g=v?{rtlClassName:b,rtlProperty:h.key,rtlValue:h.value}:void 0,y=Pte(t,n,r,o,a),[S,w]=xte({className:p,media:r,layer:n,selectors:t,property:u,support:o,container:a,value:c,...g});Rte(i,f,p,b),hB(s,y,S,w,r)}else if(u==="animationName"){const d=Array.isArray(c)?c:[c],f=[],p=[];for(const h of d){const v=$te(h),b=$te(kbe(h)),g=ZL+Vy(v);let y;const S=Ete(g,v);let w=[];v===b?y=g:(y=ZL+Vy(b),w=Ete(y,b));for(let $=0;$(C??"").toString()).join(";"),support:o,selector:d,property:u}),h=c.map(C=>e6(u,C));if(!!h.some(C=>C.key!==h[0].key))continue;const b=h[0].key!==u||h.some((C,x)=>C.value!==c[x]),g=b?ek({container:a,value:h.map(C=>{var x;return((x=C==null?void 0:C.value)!==null&&x!==void 0?x:"").toString()}).join(";"),property:h[0].key,selector:d,layer:n,media:r,support:o}):void 0,y=b?{rtlClassName:g,rtlProperty:h[0].key,rtlValue:h.map(C=>C.value)}:void 0,S=Pte(t,n,r,o,a),[w,$]=xte({className:p,media:r,layer:n,selectors:t,property:u,support:o,container:a,value:c,...y});Rte(i,f,p,g),hB(s,S,w,$,r)}else if(x$t(c))if(S$t(u))_v(c,t.concat(Pbe(u)),r,n,o,a,i,s);else if(g$t(u)){const d=_te(r,u.slice(6).trim());_v(c,t,d,n,o,a,i,s)}else if(b$t(u)){const d=(n?`${n}.`:"")+u.slice(6).trim();_v(c,t,r,d,o,a,i,s)}else if(w$t(u)){const d=_te(o,u.slice(9).trim());_v(c,t,r,n,d,a,i,s)}else if(C$t(u)){const d=u.slice(10).trim();_v(c,t,r,n,o,d,i,s)}else $$t(u,c)}}return[i,s]}function E$t(e){const t={},r={};for(const n in e){const o=e[n],[a,i]=_v(o);t[n]=a,Object.keys(i).forEach(s=>{r[s]=(r[s]||[]).concat(i[s])})}return[t,r]}function _$t(e,t=IH){const r=t();let n=null,o=null,a=null,i=null;function s(l){const{dir:u,renderer:c}=l;n===null&&([n,o]=E$t(e));const d=u==="ltr";return d?a===null&&(a=KI(n,u)):i===null&&(i=KI(n,u)),r(c,o),d?a:i}return s}function Rbe(e,t,r=IH){const n=r();let o=null,a=null;function i(s){const{dir:l,renderer:u}=s,c=l==="ltr";return c?o===null&&(o=KI(e,l)):a===null&&(a=KI(e,l)),n(u,t),c?o:a}return i}function k$t(e,t,r,n=IH){const o=n();function a(i){const{dir:s,renderer:l}=i,u=s==="ltr"?e:t||e;return o(l,Array.isArray(r)?{r}:r),u}return a}const Fbe={border:XCt,borderLeft:QCt,borderBottom:ZCt,borderRight:JCt,borderTop:ext,borderColor:XL,borderStyle:YL,borderRadius:txt,borderWidth:GL,flex:ixt,gap:sxt,gridArea:fxt,margin:pxt,marginBlock:mxt,marginInline:hxt,padding:vxt,paddingBlock:gxt,paddingInline:bxt,overflow:yxt,inset:Sxt,outline:wxt,transition:Cxt,textDecoration:_xt};function Obe(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const Ote=Vi["useInsertionEffect"]?Vi["useInsertionEffect"]:void 0,RH=()=>{const e={};return function(r,n){if(Ote&&Obe()){Ote(()=>{r.insertCSSRules(n)},[r,n]);return}e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}},Nbe=m.createContext(xbe()),P$t=({children:e,renderer:t,targetDocument:r})=>(Obe()&&m.useMemo(()=>{qxt(t,r)},[t,r]),m.createElement(Nbe.Provider,{value:t},e));function UE(){return m.useContext(Nbe)}const Dbe=m.createContext("ltr"),T$t=({children:e,dir:t})=>m.createElement(Dbe.Provider,{value:t},e);function FH(){return m.useContext(Dbe)}function Wd(e){const t=_$t(e,RH);return function(){const n=FH(),o=UE();return t({dir:n,renderer:o})}}function Tr(e,t){const r=Rbe(e,t,RH);return function(){const o=FH(),a=UE();return r({dir:o,renderer:a})}}function Qs(e,t,r){const n=k$t(e,t,r,RH);return function(){const a=FH(),i=UE();return n({dir:a,renderer:i})}}function I$t(e,t){if(t){const r=Object.keys(t).reduce((n,o)=>`${n}--${o}: ${t[o]}; `,"");return`${e} { ${r} }`}return`${e} {}`}const Abe=Symbol.for("fui.slotRenderFunction"),DN=Symbol.for("fui.slotElementType");function Vn(e,t){const{defaultProps:r,elementType:n}=t,o=R$t(e),a={...r,...o,[DN]:n};return o&&typeof o.children=="function"&&(a[Abe]=o.children,a.children=r==null?void 0:r.children),a}function li(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Vn(e,t)}function R$t(e){return typeof e=="string"||typeof e=="number"||Array.isArray(e)||m.isValidElement(e)?{children:e}:e}function F$t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!m.isValidElement(e)}function Nte(e){return!!(e!=null&&e.hasOwnProperty(DN))}const Zn=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)t[o]=1}return t},O$t=Zn(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),N$t=Zn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),D$t=Zn(["itemID","itemProp","itemRef","itemScope","itemType"]),ma=Zn(N$t,O$t,D$t),A$t=Zn(ma,["form"]),Mbe=Zn(ma,["height","loop","muted","preload","src","width"]),M$t=Zn(Mbe,["poster"]),B$t=Zn(ma,["start"]),j$t=Zn(ma,["value"]),L$t=Zn(ma,["download","href","hrefLang","media","rel","target","type"]),z$t=Zn(ma,["dateTime"]),AN=Zn(ma,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),V$t=Zn(AN,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),H$t=Zn(AN,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),W$t=Zn(AN,["form","multiple","required"]),q$t=Zn(ma,["selected","value"]),U$t=Zn(ma,["cellPadding","cellSpacing"]),K$t=ma,G$t=Zn(ma,["colSpan","rowSpan","scope"]),Y$t=Zn(ma,["colSpan","headers","rowSpan","scope"]),X$t=Zn(ma,["span"]),Q$t=Zn(ma,["span"]),Z$t=Zn(ma,["disabled","form"]),J$t=Zn(ma,["acceptCharset","action","encType","encType","method","noValidate","target"]),eEt=Zn(ma,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),tEt=Zn(ma,["alt","crossOrigin","height","src","srcSet","useMap","width"]),rEt=Zn(ma,["open","onCancel","onClose"]);function nEt(e,t,r){const n=Array.isArray(t),o={},a=Object.keys(e);for(const i of a)(!n&&t[i]||n&&t.indexOf(i)>=0||i.indexOf("data-")===0||i.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(i))===-1)&&(o[i]=e[i]);return o}const oEt={label:A$t,audio:Mbe,video:M$t,ol:B$t,li:j$t,a:L$t,button:AN,input:V$t,textarea:H$t,select:W$t,option:q$t,table:U$t,tr:K$t,th:G$t,td:Y$t,colGroup:X$t,col:Q$t,fieldset:Z$t,form:J$t,iframe:eEt,img:tEt,time:z$t,dialog:rEt};function Bbe(e,t,r){const n=e&&oEt[e]||ma;return n.as=1,nEt(t,n,r)}const lS=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:Bbe(e,t,[...r||[],"style","className"])}),qd=(e,t,r)=>{var n;return Bbe((n=t.as)!==null&&n!==void 0?n:e,t,r)};function MN(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function aEt(e,t){const r=m.useRef(void 0),n=m.useCallback((a,i)=>(r.current!==void 0&&t(r.current),r.current=e(a,i),r.current),[t,e]),o=m.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return m.useEffect(()=>o,[o]),[n,o]}function iEt(e){return typeof e=="function"}const $h=e=>{const[t,r]=m.useState(()=>e.defaultState===void 0?e.initialState:sEt(e.defaultState)?e.defaultState():e.defaultState),n=m.useRef(e.state);m.useEffect(()=>{n.current=e.state},[e.state]);const o=m.useCallback(a=>{iEt(a)&&a(n.current)},[]);return lEt(e.state)?[e.state,o]:[t,r]};function sEt(e){return typeof e=="function"}const lEt=e=>{const[t]=m.useState(()=>e!==void 0);return t},uEt={current:0},cEt=m.createContext(void 0);function dEt(){var e;return(e=m.useContext(cEt))!==null&&e!==void 0?e:uEt}const np=MN()?m.useLayoutEffect:m.useEffect,hs=e=>{const t=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return np(()=>{t.current=e},[e]),m.useCallback((...r)=>{const n=t.current;return n(...r)},[t])};function fEt(){const e=m.useRef(!0);return e.current?(e.current=!1,!0):e.current}const jbe=m.createContext(void 0);jbe.Provider;function pEt(){return m.useContext(jbe)||""}function Op(e="fui-",t){const r=dEt(),n=pEt(),o=Vi["useId"];if(o){const a=o(),i=m.useMemo(()=>a.replace(/:/g,""),[a]);return t||`${n}${e}${i}`}return m.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function Dd(...e){const t=m.useCallback(r=>{t.current=r;for(const n of e)typeof n=="function"?n(r):n&&(n.current=r)},[...e]);return t}const Lbe=m.createContext(void 0),mEt=Lbe.Provider,zbe=m.createContext(void 0),hEt="",vEt=zbe.Provider;function gEt(){var e;return(e=m.useContext(zbe))!==null&&e!==void 0?e:hEt}const bEt=m.createContext(void 0),yEt=bEt.Provider,Vbe=m.createContext(void 0),SEt={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},wEt=Vbe.Provider;function Zh(){var e;return(e=m.useContext(Vbe))!==null&&e!==void 0?e:SEt}const Hbe=m.createContext(void 0),CEt=Hbe.Provider;function OH(){var e;return(e=m.useContext(Hbe))!==null&&e!==void 0?e:{}}const NH=m.createContext(void 0),xEt=()=>{},$Et=NH.Provider,Bl=e=>{var t,r;return(r=(t=m.useContext(NH))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:xEt},Wbe=m.createContext(void 0);Wbe.Provider;function EEt(){return m.useContext(Wbe)}function _Et(){return aEt(setTimeout,clearTimeout)}const vB=(e,t,r)=>Math.max(t,Math.min(r,e||0));function Ms(e,t){return(...r)=>{e==null||e(...r),t==null||t(...r)}}function Zy(e,t){var r;const n=e;var o;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(o=t==null?void 0:t.constructorName)!==null&&o!==void 0?o:"HTMLElement"])}function kEt(e){return e&&!!e._virtual}function PEt(e){return kEt(e)&&e._virtual.parent||null}function TEt(e,t={}){if(!e)return null;if(!t.skipVirtual){const n=PEt(e);if(n)return n}const r=e.parentNode;return r&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r}function Dte(e,t){if(!e)return;const r=e;r._virtual||(r._virtual={}),r._virtual.parent=t}function IEt(e,t){return{...t,[DN]:e}}function qbe(e,t){return function(n,o,a,i,s){return Nte(o)?t(IEt(n,o),null,a,i,s):Nte(n)?t(n,o,a,i,s):e(n,o,a,i,s)}}function Ube(e){const{as:t,[DN]:r,[Abe]:n,...o}=e,a=o,i=typeof r=="string"?t??r:r;return typeof i!="string"&&t&&(a.as=t),{elementType:i,props:a,renderFunction:n}}const cg=NIe,REt=(e,t,r)=>{const{elementType:n,renderFunction:o,props:a}=Ube(e),i={...a,...t};return o?cg.jsx(m.Fragment,{children:o(n,i)},r):cg.jsx(n,i,r)},FEt=(e,t,r)=>{const{elementType:n,renderFunction:o,props:a}=Ube(e),i={...a,...t};return o?cg.jsx(m.Fragment,{children:o(n,{...i,children:cg.jsxs(m.Fragment,{children:i.children},void 0)})},r):cg.jsxs(n,i,r)},lr=qbe(cg.jsx,REt),Pl=qbe(cg.jsxs,FEt),t6=m.createContext(void 0),OEt={},NEt=t6.Provider,DEt=()=>m.useContext(t6)?m.useContext(t6):OEt,AEt=Tr({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),MEt=(e,t)=>{const{title:r,primaryFill:n="currentColor",...o}=e,a={...o,title:void 0,fill:n},i=AEt(),s=DEt();return a.className=dr(i.root,(t==null?void 0:t.flipInRtl)&&(s==null?void 0:s.textDirection)==="rtl"&&i.rtl,a.className),r&&(a["aria-label"]=r),!a["aria-label"]&&!a["aria-labelledby"]?a["aria-hidden"]=!0:a.role="img",a},Gi=(e,t,r,n)=>{const o=t==="1em"?"20":t,a=m.forwardRef((i,s)=>{const l={...MEt(i,{flipInRtl:n==null?void 0:n.flipInRtl}),ref:s,width:t,height:t,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return m.createElement("svg",l,...r.map(u=>m.createElement("path",{d:u,fill:l.fill})))});return a.displayName=e,a},BEt=Gi("AddRegular","1em",["M10 2.5a.5.5 0 0 0-1 0V9H2.5a.5.5 0 0 0 0 1H9v6.5a.5.5 0 0 0 1 0V10h6.5a.5.5 0 0 0 0-1H10V2.5Z"]),jEt=Gi("ArrowSortDownRegular","1em",["m10 15.29 2.65-2.64a.5.5 0 0 1 .7.7L9.9 16.82a.5.5 0 0 1-.74.03h-.01l-3.5-3.5a.5.5 0 1 1 .71-.7L9 15.29V3.5a.5.5 0 0 1 1 0v11.79Z"]),LEt=Gi("ArrowSortUpRegular","1em",["M9 4.71 6.35 7.35a.5.5 0 1 1-.7-.7L9.1 3.18a.5.5 0 0 1 .74-.03h.01l3.5 3.5a.5.5 0 1 1-.71.7L10 4.71V16.5a.5.5 0 0 1-1 0V4.71Z"]),zEt=Gi("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),VEt=Gi("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),HEt=Gi("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),WEt=Gi("CopyRegular","1em",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),qEt=Gi("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),UEt=Gi("SubtractRegular","1em",["M3 10c0-.28.22-.5.5-.5h13a.5.5 0 0 1 0 1h-13A.5.5 0 0 1 3 10Z"]),Kbe=Gi("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),KEt=Gi("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),GEt=Gi("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),YEt=Gi("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),XEt=Gi("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),QEt=Gi("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),ZEt=Gi("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),JEt=(e,t)=>lr(wEt,{value:t.provider,children:lr(mEt,{value:t.theme,children:lr(vEt,{value:t.themeClassName,children:lr($Et,{value:t.customStyleHooks_unstable,children:lr(yEt,{value:t.tooltip,children:lr(T$t,{dir:t.textDirection,children:lr(NEt,{value:t.iconDirection,children:lr(CEt,{value:t.overrides_unstable,children:Pl(e.root,{children:[MN()?null:lr("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});var e_t=typeof WeakRef<"u",Ate=class{constructor(e){e_t&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,t;let r;return this._weakRef?(r=(e=this._weakRef)==null?void 0:e.deref(),r||delete this._weakRef):(r=this._instance,(t=r==null?void 0:r.isDisposed)!=null&&t.call(r)&&delete this._instance),r}},Dc="keyborg:focusin",i$="keyborg:focusout";function t_t(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}var gB=!1;function Ag(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function r_t(e){const t=e;gB||(gB=t_t(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=l;const n=new Set,o=c=>{const d=c.target;if(!d)return;const f=new CustomEvent(i$,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:c}});d.dispatchEvent(f)},a=c=>{const d=c.target;if(!d)return;let f=c.composedPath()[0];const p=new Set;for(;f;)f.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(p.add(f),f=f.host):f=f.parentNode;for(const h of n){const v=h.deref();(!v||!p.has(v))&&(n.delete(h),v&&(v.removeEventListener("focusin",a,!0),v.removeEventListener("focusout",o,!0)))}i(d,c.relatedTarget||void 0)},i=(c,d,f)=>{var p;const h=c.shadowRoot;if(h){for(const g of n)if(g.deref()===h)return;h.addEventListener("focusin",a,!0),h.addEventListener("focusout",o,!0),n.add(new Ate(h));return}const v={relatedTarget:d,originalEvent:f},b=new CustomEvent(Dc,{cancelable:!0,bubbles:!0,composed:!0,detail:v});b.details=v,(gB||s.lastFocusedProgrammatically)&&(v.isFocusedProgrammatically=c===((p=s.lastFocusedProgrammatically)==null?void 0:p.deref()),s.lastFocusedProgrammatically=void 0),c.dispatchEvent(b)},s=t.__keyborgData={focusInHandler:a,focusOutHandler:o,shadowTargets:n};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0),t.document.addEventListener("focusout",t.__keyborgData.focusOutHandler,!0);function l(){const c=t.__keyborgData;return c&&(c.lastFocusedProgrammatically=new Ate(this)),r.apply(this,arguments)}let u=t.document.activeElement;for(;u&&u.shadowRoot;)i(u),u=u.shadowRoot.activeElement;l.__keyborgNativeFocus=r}function n_t(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=t.__keyborgData;if(o){t.document.removeEventListener("focusin",o.focusInHandler,!0),t.document.removeEventListener("focusout",o.focusOutHandler,!0);for(const a of o.shadowTargets){const i=a.deref();i&&(i.removeEventListener("focusin",o.focusInHandler,!0),i.removeEventListener("focusout",o.focusOutHandler,!0))}o.shadowTargets.clear(),delete t.__keyborgData}n&&(r.focus=n)}var o_t=500,Gbe=0,a_t=class{constructor(e,t){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=n=>{if(this._isMouseUsedTimer||this.isNavigatingWithKeyboard)return;const o=n.detail;o.relatedTarget&&(o.isFocusedProgrammatically||o.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=n=>{if(n.buttons===0||n.clientX===0&&n.clientY===0&&n.screenX===0&&n.screenY===0)return;const o=this._win;o&&(this._isMouseUsedTimer&&o.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=o.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=n=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(n)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(n)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++Gbe,this._win=e;const r=e.document;if(t){const n=t.triggerKeys,o=t.dismissKeys;n!=null&&n.length&&(this._triggerKeys=new Set(n)),o!=null&&o.length&&(this._dismissKeys=new Set(o))}r.addEventListener(Dc,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),r_t(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseUsedTimer&&(e.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),n_t(e);const t=e.document;t.removeEventListener(Dc,this._onFocusIn,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,t;const r=(t=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:t.refs;if(r)for(const n of Object.keys(r))DH.update(r[n],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var t;if(e.key==="Tab")return!0;const r=(t=this._win)==null?void 0:t.document.activeElement,n=!this._triggerKeys||this._triggerKeys.has(e.keyCode),o=r&&(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.isContentEditable);return n&&!o}_shouldDismissKeyboardNavigation(e){var t;return(t=this._dismissKeys)==null?void 0:t.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const t=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const r=e.document.activeElement;t&&r&&t===r&&(this.isNavigatingWithKeyboard=!1)},o_t)}}},DH=class Ybe{constructor(t,r){this._cb=[],this._id="k"+ ++Gbe,this._win=t;const n=t.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new a_t(t,r),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new Ybe(t,r)}static dispose(t){t.dispose()}static update(t,r){t._cb.forEach(n=>n(r))}dispose(){var t;const r=(t=this._win)==null?void 0:t.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var t;return!!((t=this._core)!=null&&t.isNavigatingWithKeyboard)}subscribe(t){this._cb.push(t)}unsubscribe(t){const r=this._cb.indexOf(t);r>=0&&this._cb.splice(r,1)}setVal(t){this._core&&(this._core.isNavigatingWithKeyboard=t)}};function AH(e,t){return DH.create(e,t)}function MH(e){DH.dispose(e)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + *//*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const Bf="data-tabster",Xbe="data-tabster-dummy",i_t="tabster:deloser",s_t="tabster:modalizer:active",l_t="tabster:modalizer:inactive",u_t="tabster:modalizer:focusin",c_t="tabster:modalizer:focusout",d_t="tabster:modalizer:beforefocusout",f_t="tabster:mover",Qbe="tabster:focusin",Zbe="tabster:focusout",Jbe="tabster:movefocus",p_t="tabster:mover:movefocus",r6="tabster:groupper:movefocus",BH=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),n6={Enter:1,Escape:2},m_t={Any:0,Accessible:1,Focusable:2},h_t={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},v_t={Invisible:0,PartiallyVisible:1,Visible:2},g_t={Source:0,Target:1},b_t={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},y_t={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},eye={Unlimited:0,Limited:1,LimitedTrapFocus:2},tye={Auto:0,Inside:1,Outside:2};var rT=Object.freeze({__proto__:null,TabsterAttributeName:Bf,TabsterDummyInputAttributeName:Xbe,DeloserEventName:i_t,ModalizerActiveEventName:s_t,ModalizerInactiveEventName:l_t,ModalizerFocusInEventName:u_t,ModalizerFocusOutEventName:c_t,ModalizerBeforeFocusOutEventName:d_t,MoverEventName:f_t,FocusInEventName:Qbe,FocusOutEventName:Zbe,MoveFocusEventName:Jbe,MoverMoveFocusEventName:p_t,GroupperMoveFocusEventName:r6,FocusableSelector:BH,GroupperMoveFocusActions:n6,ObservedElementAccesibilities:m_t,RestoreFocusOrders:h_t,Visibilities:v_t,RestorerTypes:g_t,MoverDirections:b_t,MoverKeys:y_t,GroupperTabbabilities:eye,SysDummyInputsPositions:tye});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function jf(e,t){var r;return(r=e.storageEntry(t))===null||r===void 0?void 0:r.tabster}function rye(e,t,r){var n,o;const a=r||e._noop?void 0:t.getAttribute(Bf);let i=e.storageEntry(t),s;if(a)if(a!==((n=i==null?void 0:i.attr)===null||n===void 0?void 0:n.string))try{const d=JSON.parse(a);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${a}'.`);s={string:a,object:d}}catch{}else return;else if(!i)return;i||(i=e.storageEntry(t,!0)),i.tabster||(i.tabster={});const l=i.tabster||{},u=((o=i.attr)===null||o===void 0?void 0:o.object)||{},c=(s==null?void 0:s.object)||{};for(const d of Object.keys(u))if(!c[d]){if(d==="root"){const f=l[d];f&&e.root.onRoot(f,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=l[d];f&&(f.dispose(),delete l[d]);break;case"observed":delete l[d],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[d];break}}for(const d of Object.keys(c)){const f=c.sys;switch(d){case"deloser":l.deloser?l.deloser.setProps(c.deloser):e.deloser&&(l.deloser=e.deloser.createDeloser(t,c.deloser));break;case"root":l.root?l.root.setProps(c.root):l.root=e.root.createRoot(t,c.root,f),e.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(c.modalizer):e.modalizer&&(l.modalizer=e.modalizer.createModalizer(t,c.modalizer,f));break;case"restorer":l.restorer?l.restorer.setProps(c.restorer):e.restorer&&c.restorer&&(l.restorer=e.restorer.createRestorer(t,c.restorer));break;case"focusable":l.focusable=c.focusable;break;case"groupper":l.groupper?l.groupper.setProps(c.groupper):e.groupper&&(l.groupper=e.groupper.createGroupper(t,c.groupper,f));break;case"mover":l.mover?l.mover.setProps(c.mover):e.mover&&(l.mover=e.mover.createMover(t,c.mover,f));break;case"observed":e.observedElement&&(l.observed=c.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":l.uncontrolled=c.uncontrolled;break;case"outline":e.outline&&(l.outline=c.outline);break;case"sys":l.sys=c.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}s?i.attr=s:(Object.keys(l).length===0&&(delete i.tabster,delete i.attr),e.storageEntry(t,!1))}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function S_t(e){const t=e();try{if(t.EventTarget)return new t.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return t.document.createElement("div")}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const w_t=e=>new MutationObserver(e),C_t=(e,t,r,n)=>e.createTreeWalker(t,r,n),x_t=e=>e?e.parentNode:null,$_t=e=>e?e.parentElement:null,E_t=(e,t)=>!!(t&&(e!=null&&e.contains(t))),__t=e=>e.activeElement,k_t=(e,t)=>e.querySelector(t),P_t=(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),T_t=(e,t)=>e.getElementById(t),I_t=e=>(e==null?void 0:e.firstChild)||null,R_t=e=>(e==null?void 0:e.lastChild)||null,F_t=e=>(e==null?void 0:e.nextSibling)||null,O_t=e=>(e==null?void 0:e.previousSibling)||null,N_t=e=>(e==null?void 0:e.firstElementChild)||null,D_t=e=>(e==null?void 0:e.lastElementChild)||null,A_t=e=>(e==null?void 0:e.nextElementSibling)||null,M_t=e=>(e==null?void 0:e.previousElementSibling)||null,B_t=(e,t)=>e.appendChild(t),j_t=(e,t,r)=>e.insertBefore(t,r),L_t=e=>{var t;return((t=e.ownerDocument)===null||t===void 0?void 0:t.getSelection())||null},Dt={createMutationObserver:w_t,createTreeWalker:C_t,getParentNode:x_t,getParentElement:$_t,nodeContains:E_t,getActiveElement:__t,querySelector:k_t,querySelectorAll:P_t,getElementById:T_t,getFirstChild:I_t,getLastChild:R_t,getNextSibling:F_t,getPreviousSibling:O_t,getFirstElementChild:N_t,getLastElementChild:D_t,getNextElementSibling:A_t,getPreviousElementSibling:M_t,appendChild:B_t,insertBefore:j_t,getSelection:L_t};function z_t(e){for(const t of Object.keys(e))Dt[t]=e[t]}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let o6,V_t=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),o6=!1}catch{o6=!0}const bB=100;function v0(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function H_t(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function W_t(e){const t=e.__tabsterInstanceContext;return new((t==null?void 0:t.basics.WeakMap)||WeakMap)}function q_t(e){return!!e.querySelector(BH)}class nye{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!jH(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class Lf{constructor(t,r,n){const o=v0(t);let a;o.WeakRef?a=new o.WeakRef(r):(a=new nye(r),o.fakeWeakRefs.push(a)),this._ref=a,this._data=n}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function oye(e,t){const r=v0(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(n=>!nye.cleanup(n,t))}function aye(e){const t=v0(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=Q_t(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,oye(e),aye(e)},2*60*1e3))}function U_t(e){const t=v0(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function iye(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=o6?r:{acceptNode:r};return Dt.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,n,!1)}function K_t(e){e.__shouldIgnoreFocus=!0}function sye(e){return!!e.__shouldIgnoreFocus}function G_t(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let n=0;n{if(this._fixedTarget){const f=this._fixedTarget.get();f&&Ag(f);return}const d=this.input;if(this.onFocusIn&&d){const f=c.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,f),f)}},this._focusOut=c=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const f=c.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,f),f)}};const s=t(),l=s.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(Xbe,""),l.setAttribute("aria-hidden","true");const u=l.style;u.position="fixed",u.width=u.height="1px",u.opacity="0.001",u.zIndex="-1",u.setProperty("content-visibility","hidden"),K_t(l),this.input=l,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=(i=n.isPhantom)!==null&&i!==void 0?i:!1,this._fixedTarget=a,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=s.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(s.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(t=Dt.getParentNode(r))===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var n;const o=(n=this.input)===null||n===void 0?void 0:n.style;o&&(o.top=`${t}px`,o.left=`${r}px`)}_isBackward(t,r,n){return t&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}};const uye={Root:1,Modalizer:2,Mover:3,Groupper:4};class YI{constructor(t,r,n,o,a,i){this._element=r,this._instance=new e2t(t,r,this,n,o,a,i)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t,r){var n;(n=this._instance)===null||n===void 0||n.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,n,o,a){var i;const l=new GI(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let u,c;if(r.tagName==="BODY")u=r,c=n&&o||!n&&!o?Dt.getFirstElementChild(r):null;else{n&&(!o||o&&!t.focusable.isFocusable(r,!1,!0,!0))?(u=r,c=o?r.firstElementChild:null):(u=Dt.getParentElement(r),c=n&&o||!n&&!o?r:Dt.getNextElementSibling(r));let d,f;do d=n&&o||!n&&!o?Dt.getPreviousElementSibling(c):c,f=(i=d==null?void 0:d.__tabsterDummyContainer)===null||i===void 0?void 0:i.get(),f===r?c=n&&o||!n&&!o?d:Dt.getNextElementSibling(d):f=void 0;while(f)}u&&dg({by:"root",owner:u,next:null,relatedEvent:a})&&(Dt.insertBefore(u,l,c),Ag(l))}}static addPhantomDummyWithTarget(t,r,n,o){const i=new GI(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Lf(t.getWindow,o)).input;if(i){let s,l;q_t(r)&&!n?(s=r,l=Dt.getFirstElementChild(r)):(s=Dt.getParentElement(r),l=n?r:Dt.getNextElementSibling(r)),s&&Dt.insertBefore(s,i,l)}}}class J_t{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var n;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const o of this._dummyElements){const a=o.get();if(a){const i=this._dummyCallbacks.get(a);if(i){const s=Dt.getParentNode(a);(!s||this._changedParents.has(s))&&i()}}}this._changedParents=new WeakSet},bB)))},this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new Lf(this._win,t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+bB<=Date.now()){const r=new Map,n=[];for(const o of this._updateQueue)n.push(o(r));this._updateQueue.clear();for(const o of n)o();r.clear()}else this._scheduledUpdatePositions()},bB))}}class e2t{constructor(t,r,n,o,a,i,s){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(p,h,v)=>{this._onFocus(!0,p,h,v)},this._onFocusOut=(p,h,v)=>{this._onFocus(!1,p,h,v)},this.moveOut=p=>{var h;const v=this._firstDummy,b=this._lastDummy;if(v&&b){this._ensurePosition();const g=v.input,y=b.input,S=(h=this._element)===null||h===void 0?void 0:h.get();if(g&&y&&S){let w;p?(g.tabIndex=0,w=g):(y.tabIndex=0,w=y),w&&Ag(w)}}},this.moveOutWithDefaultAction=(p,h)=>{var v;const b=this._firstDummy,g=this._lastDummy;if(b&&g){this._ensurePosition();const y=b.input,S=g.input,w=(v=this._element)===null||v===void 0?void 0:v.get();if(y&&S&&w){let $;p?!b.isOutside&&this._tabster.focusable.isFocusable(w,!0,!0,!0)?$=w:(b.useDefaultAction=!0,y.tabIndex=0,$=y):(g.useDefaultAction=!0,S.tabIndex=0,$=S),$&&dg({by:"root",owner:w,next:null,relatedEvent:h})&&Ag($)}}},this.setTabbable=(p,h)=>{var v,b;for(const y of this._wrappers)if(y.manager===p){y.tabbable=h;break}const g=this._getCurrent();if(g){const y=g.tabbable?0:-1;let S=(v=this._firstDummy)===null||v===void 0?void 0:v.input;S&&(S.tabIndex=y),S=(b=this._lastDummy)===null||b===void 0?void 0:b.input,S&&(S.tabIndex=y)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=p=>{var h,v;const b=((h=this._firstDummy)===null||h===void 0?void 0:h.input)||((v=this._lastDummy)===null||v===void 0?void 0:v.input),g=this._transformElements,y=new Set;let S=0,w=0;const $=this._getWindow();for(let C=b;C&&C.nodeType===Node.ELEMENT_NODE;C=Dt.getParentElement(C)){let x=p.get(C);if(x===void 0){const E=$.getComputedStyle(C).transform;E&&E!=="none"&&(x={scrollTop:C.scrollTop,scrollLeft:C.scrollLeft}),p.set(C,x||null)}x&&(y.add(C),g.has(C)||C.addEventListener("scroll",this._addTransformOffsets),S+=x.scrollTop,w+=x.scrollLeft)}for(const C of g)y.has(C)||C.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=y,()=>{var C,x;(C=this._firstDummy)===null||C===void 0||C.setTopLeft(S,w),(x=this._lastDummy)===null||x===void 0||x.setTopLeft(S,w)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=s;const u=l.__tabsterDummy;if((u||this)._wrappers.push({manager:n,priority:o,tabbable:!0}),u)return u;l.__tabsterDummy=this;const c=a==null?void 0:a.dummyInputsPosition,d=l.tagName;this._isOutside=c?c===tye.Outside:(i||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new GI(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new GI(this._getWindow,this._isOutside,{isFirst:!1},r);const f=this._firstDummy.input;f&&t._dummyObserver.add(f,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){var n,o,a,i;if((this._wrappers=this._wrappers.filter(l=>l.manager!==t&&!r)).length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const u=(o=this._firstDummy)===null||o===void 0?void 0:o.input;u&&this._tabster._dummyObserver.remove(u),(a=this._firstDummy)===null||a===void 0||a.dispose(),(i=this._lastDummy)===null||i===void 0||i.dispose()}}_onFocus(t,r,n,o){var a;const i=this._getCurrent();i&&(!r.useDefaultAction||this._callForDefaultAction)&&((a=i.manager.getHandler(t))===null||a===void 0||a(r,n,o))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,n;const o=(t=this._element)===null||t===void 0?void 0:t.get(),a=(r=this._firstDummy)===null||r===void 0?void 0:r.input,i=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!o||!a||!i))if(this._isOutside){const s=Dt.getParentNode(o);if(s){const l=Dt.getNextSibling(o);l!==i&&Dt.insertBefore(s,i,l),Dt.getPreviousElementSibling(o)!==a&&Dt.insertBefore(s,a,o)}}else{Dt.getLastElementChild(o)!==i&&Dt.appendChild(o,i);const s=Dt.getFirstElementChild(o);s&&s!==a&&s.parentNode&&Dt.insertBefore(s.parentNode,a,s)}}}function cye(e){let t=null;for(let r=Dt.getLastElementChild(e);r;r=Dt.getLastElementChild(r))t=r;return t||void 0}function t2t(e,t){let r=e,n=null;for(;r&&!n;)n=t?Dt.getPreviousElementSibling(r):Dt.getNextElementSibling(r),r=Dt.getParentElement(r);return n||void 0}function s$(e,t,r){const n=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,detail:r});return n.details=r,e.dispatchEvent(n),!n.defaultPrevented}function dg(e){return s$(e.owner,Jbe,e)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function dye(e,t){const r=JSON.stringify(e);return t===!0?r:{[Bf]:r}}function r2t(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}function n2t(e,t,r){let n;if(r){const o=e.getAttribute(Bf);if(o)try{n=JSON.parse(o)}catch{}}n||(n={}),r2t(n,t),Object.keys(n).length>0?e.setAttribute(Bf,dye(n,!0)):e.removeAttribute(Bf)}class Bte extends YI{constructor(t,r,n,o){super(t,r,uye.Root,o,void 0,!0),this._onDummyInputFocus=a=>{var i;if(a.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const s=this._element.get();if(s){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(a.isFirst,{container:s,ignoreAccessibility:!0});if(l){Ag(l);return}}(i=a.input)===null||i===void 0||i.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=n}}class o2t extends lye{constructor(t,r,n,o,a){super(t,r,o),this._isFocused=!1,this._setFocused=u=>{var c;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===u)return;const d=this._element.get();d&&(u?(this._isFocused=!0,(c=this._dummyManager)===null||c===void 0||c.setTabbable(!1),s$(this._tabster.root.eventTarget,"focus",{element:d})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),s$(this._tabster.root.eventTarget,"blur",{element:d})},0))},this._onFocusIn=u=>{const c=this._tabster.getParent,d=this._element.get();let f=u.composedPath()[0];do{if(f===d){this._setFocused(!0);return}f=f&&c(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const i=t.getWindow;this.uid=Y_t(i,r),this._sys=a,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const l=i().document;l.addEventListener(Dc,this._onFocusIn),l.addEventListener(i$,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Bte(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const r=this._tabster.getWindow(),n=r.document;n.removeEventListener(Dc,this._onFocusIn),n.removeEventListener(i$,this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,r){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(t,r);else{const o=this.getElement();o&&Bte.moveWithPhantomDummy(this._tabster,o,!0,t,r)}}_add(){}_remove(){}}class Ai{constructor(t,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const o=this._win().document,a=o.body;if(a){this._autoRootUnwait(o);const i=this._autoRoot;if(i)return n2t(a,{root:i},!0),rye(this._tabster,a),(n=jf(this._tabster,a))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,o.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=r,this.eventTarget=S_t(this._win),t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,n){const o=new o2t(this._tabster,t,this._onRootDispose,r,n);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const n=t().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(t,r,n){n===void 0&&(n={});var o,a,i,s;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:u}=n,c=t.getParent;t.drainInitQueue();let d,f,p,h,v=!1,b,g,y,S,w=u||r;const $={};for(;w&&(!d||l);){const x=jf(t,w);if(l&&y===void 0){const N=w.dir;N&&(y=N.toLowerCase()==="rtl")}if(!x){w=c(w);continue}const E=w.tagName;(x.uncontrolled||E==="IFRAME"||E==="WEBVIEW")&&(S=w),!h&&(!((o=x.focusable)===null||o===void 0)&&o.excludeFromMover)&&!p&&(v=!0);const _=x.modalizer,k=x.groupper,I=x.mover;!f&&_&&(f=_),!p&&k&&(!f||_)&&(f?(!k.isActive()&&k.getProps().tabbability&&f.userId!==((a=t.modalizer)===null||a===void 0?void 0:a.activeId)&&(f=void 0,p=k),g=k):p=k),!h&&I&&(!f||_)&&(!k||w!==r)&&(h=I,b=!!p&&p!==k),x.root&&(d=x.root),!((i=x.focusable)===null||i===void 0)&&i.ignoreKeydown&&Object.assign($,x.focusable.ignoreKeydown),w=c(w)}if(!d){const x=t.root;x._autoRoot&&!((s=r.ownerDocument)===null||s===void 0)&&s.body&&(d=x._autoRootCreate())}return p&&!h&&(b=!0),d?{root:d,modalizer:f,groupper:p,mover:h,groupperBeforeMover:b,modalizerInGroupper:g,rtl:l?!!y:void 0,uncontrolled:S,excludedFromMover:v,ignoreKeydown:x=>!!$[x.key]}:void 0}static getRoot(t,r){var n;const o=t.getParent;for(let a=r;a;a=o(a)){const i=(n=jf(t,a))===null||n===void 0?void 0:n.root;if(i)return i}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class fye{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,n=r.indexOf(t);n>=0&&r.splice(n,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(n=>n(t,r))}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class a2t{constructor(t){this._tabster=t}dispose(){}getProps(t){const r=jf(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,n,o){return X_t(t,BH)&&(r||t.tabIndex!==-1)?(n||this.isVisible(t))&&(o||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||t.offsetParent===null&&t.ownerDocument.body!==t)return!1;const r=t.ownerDocument.defaultView;if(!r)return!1;const n=t.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0||r.getComputedStyle(t).visibility==="hidden")}isAccessible(t){var r;for(let n=t;n;n=Dt.getParentElement(n)){const o=jf(this._tabster,n);if(this._isHidden(n)||!((r=o==null?void 0:o.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var r;const n=t.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(t)))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:n=>this.isFocusable(n,t.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const n=this._findElements(!1,t,r);return n&&n[0]}_findElements(t,r,n){var o,a,i;const{container:s,currentElement:l=null,includeProgrammaticallyFocusable:u,useActiveModalizer:c,ignoreAccessibility:d,modalizerId:f,isBackward:p,onElement:h}=r;n||(n={});const v=[];let{acceptCondition:b}=r;const g=!!b;if(!s)return null;b||(b=$=>this.isFocusable($,u,!1,d));const y={container:s,modalizerUserId:f===void 0&&c?(o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId:f||((i=(a=Ai.getTabsterContext(this._tabster,s))===null||a===void 0?void 0:a.modalizer)===null||i===void 0?void 0:i.userId),from:l||s,isBackward:p,acceptCondition:b,hasCustomCondition:g,includeProgrammaticallyFocusable:u,ignoreAccessibility:d,cachedGrouppers:{}},S=iye(s.ownerDocument,s,$=>this._acceptElement($,y));if(!S)return null;const w=$=>{var C,x;const E=(C=y.foundElement)!==null&&C!==void 0?C:y.foundBackward;return E&&v.push(E),t?E&&(y.found=!1,delete y.foundElement,delete y.foundBackward,delete y.fromCtx,y.from=E,h&&!h(E))?!1:!!(E||$):(E&&n&&(n.uncontrolled=(x=Ai.getTabsterContext(this._tabster,E))===null||x===void 0?void 0:x.uncontrolled),!!($&&!E))};if(l||(n.outOfDOMOrder=!0),l&&Dt.nodeContains(s,l))S.currentNode=l;else if(p){const $=cye(s);if(!$)return null;if(this._acceptElement($,y)===NodeFilter.FILTER_ACCEPT&&!w(!0))return y.skippedFocusable&&(n.outOfDOMOrder=!0),v;S.currentNode=$}do p?S.previousNode():S.nextNode();while(w());return y.skippedFocusable&&(n.outOfDOMOrder=!0),v.length?v:null}_acceptElement(t,r){var n,o,a;if(r.found)return NodeFilter.FILTER_ACCEPT;const i=r.foundBackward;if(i&&(t===i||!Dt.nodeContains(i,t)))return r.found=!0,r.foundElement=i,NodeFilter.FILTER_ACCEPT;const s=r.container;if(t===s)return NodeFilter.FILTER_SKIP;if(!Dt.nodeContains(s,t)||t.__tabsterDummyContainer||Dt.nodeContains(r.rejectElementsFrom,t))return NodeFilter.FILTER_REJECT;const l=r.currentCtx=Ai.getTabsterContext(this._tabster,t);if(!l)return NodeFilter.FILTER_SKIP;if(sye(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return((n=l.modalizer)===null||n===void 0?void 0:n.userId)===((o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let u,c=r.fromCtx;c||(c=r.fromCtx=Ai.getTabsterContext(this._tabster,r.from));const d=c==null?void 0:c.mover;let f=l.groupper,p=l.mover;if(u=(a=this._tabster.modalizer)===null||a===void 0?void 0:a.acceptElement(t,r),u!==void 0&&(r.skippedFocusable=!0),u===void 0&&(f||p||d)){const h=f==null?void 0:f.getElement(),v=d==null?void 0:d.getElement();let b=p==null?void 0:p.getElement();b&&Dt.nodeContains(v,b)&&Dt.nodeContains(s,v)&&(!h||!p||Dt.nodeContains(v,h))&&(p=d,b=v),h&&(h===s||!Dt.nodeContains(s,h))&&(f=void 0),b&&!Dt.nodeContains(s,b)&&(p=void 0),f&&p&&(b&&h&&!Dt.nodeContains(h,b)?p=void 0:f=void 0),f&&(u=f.acceptElement(t,r)),p&&(u=p.acceptElement(t,r))}return u===void 0&&(u=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,u===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),u===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=t,u=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)),u}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const Yw={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function i2t(e,t){var r;const n=e.getParent;let o=t;do{const a=(r=jf(e,o))===null||r===void 0?void 0:r.uncontrolled;if(a&&e.uncontrolled.isUncontrolledCompletely(o,!!a.completely))return o;o=n(o)}while(o)}class ga extends fye{constructor(t,r){super(),this._init=()=>{const n=this._win(),o=n.document;o.addEventListener(Dc,this._onFocusIn,!0),o.addEventListener(i$,this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const a=Dt.getActiveElement(o);a&&a!==o.body&&this._setFocusedElement(a),this.subscribe(this._onChanged)},this._onFocusIn=n=>{const o=n.composedPath()[0];o&&this._setFocusedElement(o,n.detail.relatedTarget,n.detail.isFocusedProgrammatically)},this._onFocusOut=n=>{var o;this._setFocusedElement(void 0,(o=n.detail)===null||o===void 0?void 0:o.originalEvent.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.keyCode!==Yw.Tab||n.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const a=this._tabster,i=a.controlTab,s=Ai.getTabsterContext(a,o);if(!s||s.ignoreKeydown(n))return;const l=n.shiftKey,u=ga.findNextTabbable(a,s,void 0,o,void 0,l,!0),c=s.root.getElement();if(!c)return;const d=u==null?void 0:u.element,f=i2t(a,o);if(d){const p=u.uncontrolled;if(s.uncontrolled||Dt.nodeContains(p,o)){if(!u.outOfDOMOrder&&p===s.uncontrolled||f&&!Dt.nodeContains(f,d))return;YI.addPhantomDummyWithTarget(a,o,l,d);return}if(p||d.tagName==="IFRAME"){dg({by:"root",owner:c,next:d,relatedEvent:n})&&YI.moveWithPhantomDummy(this._tabster,p??d,!1,l,n);return}(i||u!=null&&u.outOfDOMOrder)&&dg({by:"root",owner:c,next:d,relatedEvent:n})&&(n.preventDefault(),n.stopImmediatePropagation(),Ag(d))}else!f&&dg({by:"root",owner:c,next:null,relatedEvent:n})&&s.root.moveOutWithDefaultAction(l,n)},this._onChanged=(n,o)=>{var a,i;if(n)s$(n,Qbe,o);else{const s=(a=this._lastVal)===null||a===void 0?void 0:a.get();if(s){const l={...o},u=Ai.getTabsterContext(this._tabster,s),c=(i=u==null?void 0:u.modalizer)===null||i===void 0?void 0:i.userId;c&&(l.modalizerId=c),s$(s,Zbe,l)}}},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win(),r=t.document;r.removeEventListener(Dc,this._onFocusIn,!0),r.removeEventListener(i$,this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete ga._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){var n,o;let a=ga._lastResetElement,i=a&&a.get();i&&Dt.nodeContains(r,i)&&delete ga._lastResetElement,i=(o=(n=t._nextVal)===null||n===void 0?void 0:n.element)===null||o===void 0?void 0:o.get(),i&&Dt.nodeContains(r,i)&&delete t._nextVal,a=t._lastVal,i=a&&a.get(),i&&Dt.nodeContains(r,i)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let r=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!r||r&&!jH(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(t,r,n){return this._tabster.focusable.isFocusable(t,r,!1,n)?(t.focus(),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){var n;const{container:o,ignoreAccessibility:a}=r;let i;if(o){const s=Ai.getTabsterContext(this._tabster,o);s&&(i=(n=ga.findNextTabbable(this._tabster,s,o,void 0,void 0,!t,a))===null||n===void 0?void 0:n.element)}return i&&!Dt.nodeContains(o,i)&&(i=void 0),i||void 0}_focusFirstOrLast(t,r){const n=this.getFirstOrLastTabbable(t,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),n=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),ga._lastResetElement=new Lf(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",n)}return!0}_setOrRemoveAttribute(t,r,n){n===null?t.removeAttribute(r):t.setAttribute(r,n)}_setFocusedElement(t,r,n){var o,a;if(this._tabster._noop)return;const i={relatedTarget:r};if(t){const l=(o=ga._lastResetElement)===null||o===void 0?void 0:o.get();if(ga._lastResetElement=void 0,l===t||sye(t))return;i.isFocusedProgrammatically=n;const u=Ai.getTabsterContext(this._tabster,t),c=(a=u==null?void 0:u.modalizer)===null||a===void 0?void 0:a.userId;c&&(i.modalizerId=c)}const s=this._nextVal={element:t?new Lf(this._win,t):void 0,details:i};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===s&&this.setVal(t,i),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new Lf(this._win,t))}static findNextTabbable(t,r,n,o,a,i,s){const l=n||r.root.getElement();if(!l)return null;let u=null;const c=ga._isTabbingTimer,d=t.getWindow();c&&d.clearTimeout(c),ga.isTabbing=!0,ga._isTabbingTimer=d.setTimeout(()=>{delete ga._isTabbingTimer,ga.isTabbing=!1},0);const f=r.modalizer,p=r.groupper,h=r.mover,v=b=>{if(u=b.findNextTabbable(o,a,i,s),o&&!(u!=null&&u.element)){const g=b!==f&&Dt.getParentElement(b.getElement());if(g){const y=Ai.getTabsterContext(t,o,{referenceElement:g});if(y){const S=b.getElement(),w=i?S:S&&cye(S)||S;w&&(u=ga.findNextTabbable(t,y,n,w,g,i,s),u&&(u.outOfDOMOrder=!0))}}}};if(p&&h)v(r.groupperBeforeMover?p:h);else if(p)v(p);else if(h)v(h);else if(f)v(f);else{const b={container:l,currentElement:o,referenceElement:a,ignoreAccessibility:s,useActiveModalizer:!0},g={};u={element:t.focusable[i?"findPrev":"findNext"](b,g),outOfDOMOrder:g.outOfDOMOrder,uncontrolled:g.uncontrolled}}return u}}ga.isTabbing=!1;/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class s2t extends YI{constructor(t,r,n,o){super(n,t,uye.Groupper,o,!0),this._setHandlers((a,i,s)=>{var l,u;const c=t.get(),d=a.input;if(c&&d){const f=Ai.getTabsterContext(n,d);if(f){let p;p=(l=r.findNextTabbable(s||void 0,void 0,i,!0))===null||l===void 0?void 0:l.element,p||(p=(u=ga.findNextTabbable(n,f,void 0,a.isOutside?d:t2t(c,!i),void 0,i,!0))===null||u===void 0?void 0:u.element),p&&Ag(p)}}})}}class l2t extends lye{constructor(t,r,n,o,a){super(t,r,o),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=n,t.controlTab||(this.dummyManager=new s2t(this._element,this,t,a))}dispose(){var t;this._onDispose(this),this._element.get(),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(t,r,n,o){var a;const i=this.getElement();if(!i)return null;const s=((a=t==null?void 0:t.__tabsterDummyContainer)===null||a===void 0?void 0:a.get())===i;if(!this._shouldTabInside&&t&&Dt.nodeContains(i,t)&&!s)return{element:void 0,outOfDOMOrder:!0};const l=this.getFirst(!0);if(!t||!Dt.nodeContains(i,t)||s)return{element:l,outOfDOMOrder:!0};const u=this._tabster;let c=null,d=!1,f;if(this._shouldTabInside&&l){const p={container:i,currentElement:t,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},h={};c=u.focusable[n?"findPrev":"findNext"](p,h),d=!!h.outOfDOMOrder,!c&&this._props.tabbability===eye.LimitedTrapFocus&&(c=u.focusable[n?"findLast":"findFirst"]({container:i,ignoreAccessibility:o,useActiveModalizer:!0},h),d=!0),f=h.uncontrolled}return{element:c,uncontrolled:f,outOfDOMOrder:d}}makeTabbable(t){this._shouldTabInside=t||!this._props.tabbability}isActive(t){var r;const n=this.getElement()||null;let o=!0;for(let i=Dt.getParentElement(n);i;i=Dt.getParentElement(i)){const s=(r=jf(this._tabster,i))===null||r===void 0?void 0:r.groupper;s&&(s._shouldTabInside||(o=!1))}let a=o?this._props.tabbability?this._shouldTabInside:!1:void 0;if(a&&t){const i=this._tabster.focusedElement.getFocusedElement();i&&(a=i!==this.getFirst(!0))}return a}getFirst(t){var r;const n=this.getElement();let o;if(n){if(t&&this._tabster.focusable.isFocusable(n))return n;o=(r=this._first)===null||r===void 0?void 0:r.get(),o||(o=this._tabster.focusable.findFirst({container:n,useActiveModalizer:!0})||void 0,o&&this.setFirst(o))}return o}setFirst(t){t?this._first=new Lf(this._tabster.getWindow,t):delete this._first}acceptElement(t,r){const n=r.cachedGrouppers,o=Dt.getParentElement(this.getElement()),a=o&&Ai.getTabsterContext(this._tabster,o),i=a==null?void 0:a.groupper,s=a!=null&&a.groupperBeforeMover?i:void 0;let l;const u=f=>{let p=n[f.id],h;return p?h=p.isActive:(h=this.isActive(!0),p=n[f.id]={isActive:h}),h};if(s&&(l=s.getElement(),!u(s)&&l&&r.container!==l&&Dt.nodeContains(r.container,l)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const c=u(this),d=this.getElement();if(d&&c!==!0){if(d===t&&i&&(l||(l=i.getElement()),l&&!u(i)&&Dt.nodeContains(r.container,l)&&l!==r.container)||d!==t&&Dt.nodeContains(d,t))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const f=n[this.id];let p;if("first"in f?p=f.first:p=f.first=this.getFirst(!0),p&&r.acceptCondition(p))return r.rejectElementsFrom=d,r.skippedFocusable=!0,p!==r.from?(r.found=!0,r.foundElement=p,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class u2t{constructor(t,r){this._current={},this._grouppers={},this._init=()=>{const n=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const o=n.document,a=Dt.getActiveElement(o);a&&this._onFocus(a),o.addEventListener("mousedown",this._onMouseDown,!0),n.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener(r6,this._onMoveFocus)},this._onGroupperDispose=n=>{delete this._grouppers[n.id]},this._onFocus=n=>{n&&this._updateCurrent(n,!0,!0)},this._onMouseDown=n=>{n.target&&this._updateCurrent(n.target,!0)},this._onKeyDown=n=>{if(n.keyCode!==Yw.Enter&&n.keyCode!==Yw.Esc||n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;const o=this._tabster.focusedElement.getFocusedElement();o&&this.handleKeyPress(o,n)},this._onMoveFocus=n=>{var o;const a=n.composedPath()[0],i=(o=n.detail)===null||o===void 0?void 0:o.action;a&&i!==void 0&&!n.defaultPrevented&&(i===n6.Enter?this._enterGroupper(a):this._escapeGroupper(a),n.stopImmediatePropagation())},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){const t=this._win();this._handleKeyPressTimer&&(t.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),t.document.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(r6,this._onMoveFocus),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(t,r,n){const o=new l2t(this._tabster,t,this._onGroupperDispose,r,n);this._grouppers[o.id]=o;const a=this._tabster.focusedElement.getFocusedElement();return a&&Dt.nodeContains(t,a)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,a===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(a,!0,!0)},0)),o}forgetCurrentGrouppers(){this._current={}}_updateCurrent(t,r,n){var o;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const a={};let i=!0;for(let s=t;s;s=Dt.getParentElement(s)){const l=(o=jf(this._tabster,s))===null||o===void 0?void 0:o.groupper;if(l){if(a[l.id]=!0,i&&n&&s!==t&&(i=!1),r||!i){this._current[l.id]=l;const u=l.isActive()||t!==s&&(!l.getProps().delegated||l.getFirst(!1)!==t);l.makeTabbable(u)}i=!1}}for(const s of Object.keys(this._current)){const l=this._current[s];l.id in a||(l.makeTabbable(!1),l.setFirst(void 0),delete this._current[s])}}_enterGroupper(t,r){const n=this._tabster,o=Ai.getTabsterContext(n,t),a=(o==null?void 0:o.groupper)||(o==null?void 0:o.modalizerInGroupper),i=a==null?void 0:a.getElement();if(a&&i&&(t===i||a.getProps().delegated&&t===a.getFirst(!1))){const s=n.focusable.findNext({container:i,currentElement:t,useActiveModalizer:!0});if(s&&(!r||r&&dg({by:"groupper",owner:i,next:s,relatedEvent:r})))return r&&(r.preventDefault(),r.stopImmediatePropagation()),s.focus(),s}return null}_escapeGroupper(t,r,n){var o;const a=this._tabster,i=Ai.getTabsterContext(a,t),s=i==null?void 0:i.modalizerInGroupper;let l=(i==null?void 0:i.groupper)||s;const u=l==null?void 0:l.getElement();if(l&&u&&Dt.nodeContains(u,t)){let c;if(t!==u||n)c=l.getFirst(!0);else{const d=Dt.getParentElement(u),f=d?Ai.getTabsterContext(a,d):void 0;l=f==null?void 0:f.groupper,c=l==null?void 0:l.getFirst(!0)}if(c&&(!r||r&&dg({by:"groupper",owner:u,next:c,relatedEvent:r})))return l&&(l.makeTabbable(!1),s&&((o=a.modalizer)===null||o===void 0||o.setActive(void 0))),c.focus(),c}return null}moveFocus(t,r){return r===n6.Enter?this._enterGroupper(t):this._escapeGroupper(t)}handleKeyPress(t,r,n){const o=this._tabster,a=Ai.getTabsterContext(o,t);if(a&&(a!=null&&a.groupper||a!=null&&a.modalizerInGroupper)){const i=this._win();if(this._handleKeyPressTimer&&(i.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),a.ignoreKeydown(r))return;if(r.keyCode===Yw.Enter)this._enterGroupper(t,r);else if(r.keyCode===Yw.Esc){const s=o.focusedElement.getFocusedElement();this._handleKeyPressTimer=i.setTimeout(()=>{delete this._handleKeyPressTimer,!(s!==o.focusedElement.getFocusedElement()&&(n&&!s||!n))&&this._escapeGroupper(t,r,n)},0)}}}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class c2t extends fye{constructor(t){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=AH(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),MH(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var r;(r=this._keyborg)===null||r===void 0||r.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function d2t(e,t,r,n){if(typeof MutationObserver>"u")return()=>{};const o=t.getWindow;let a;const i=c=>{var d,f,p,h,v;for(const b of c){const g=b.target,y=b.removedNodes,S=b.addedNodes;if(b.type==="attributes")b.attributeName===Bf&&r(t,g);else{for(let w=0;wl(p,d));if(f)for(;f.nextNode(););}function l(c,d){var f;if(!c.getAttribute)return NodeFilter.FILTER_SKIP;const p=c.__tabsterElementUID;return p&&a&&(d?delete a[p]:(f=a[p])!==null&&f!==void 0||(a[p]=new Lf(o,c))),(jf(t,c)||c.hasAttribute(Bf))&&r(t,c,d),NodeFilter.FILTER_SKIP}const u=Dt.createMutationObserver(i);return n&&s(o().document.body),u.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Bf]}),()=>{u.disconnect()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class f2t{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){var n;const o=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,t,r);return o===void 0?r:o}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class p2t{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class m2t{constructor(t,r){var n,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="6.0.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=W_t(t),this._win=t;const a=this.getWindow;r!=null&&r.DOMAPI&&z_t({...r.DOMAPI}),this.keyboardNavigation=new c2t(a),this.focusedElement=new ga(this,a),this.focusable=new a2t(this),this.root=new Ai(this,r==null?void 0:r.autoRoot),this.uncontrolled=new f2t((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(n=r==null?void 0:r.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new J_t(a),this.getParent=(o=r==null?void 0:r.getParent)!==null&&o!==void 0?o:Dt.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:i=>{if(!this._unobserve){const s=a().document;this._unobserve=d2t(s,this,rye,i)}}},aye(a),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const n=new p2t(this);return t||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,n,o,a,i,s,l;this.internal.stopObserver();const u=this._win;u==null||u.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],u&&this._forgetMemorizedTimer&&(u.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(o=this.groupper)===null||o===void 0||o.dispose(),(a=this.mover)===null||a===void 0||a.dispose(),(i=this.modalizer)===null||i===void 0||i.dispose(),(s=this.observedElement)===null||s===void 0||s.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),U_t(this.getWindow),Mte(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),u&&(H_t(u),delete u.__tabsterInstance,delete this._win)}storageEntry(t,r){const n=this._storage;let o=n.get(t);return o?r===!1&&Object.keys(o).length===0&&n.delete(t):r===!0&&(o={},n.set(t,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())Mte(this.getWindow,t),ga.forgetMemorized(this.focusedElement,t)},0),oye(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function h2t(e,t){let r=b2t(e);return r?r.createTabster(!1,t):(r=new m2t(e,t),e.__tabsterInstance=r,r.createTabster())}function v2t(e){const t=e.core;return t.groupper||(t.groupper=new u2t(t,t.getWindow)),t.groupper}function g2t(e,t){e.core.disposeTabster(e,t)}function b2t(e){return e.__tabsterInstance}const LH=()=>{const{targetDocument:e}=Zh(),t=(e==null?void 0:e.defaultView)||void 0,r=t==null?void 0:t.__tabsterShadowDOMAPI,n=m.useMemo(()=>t?h2t(t,{autoRoot:{},controlTab:!1,getParent:TEt,checkUncontrolledTrappingFocus:o=>{var a;return!!(!((a=o.firstElementChild)===null||a===void 0)&&a.hasAttribute("data-is-focus-trap-zone-bumper"))},DOMAPI:r}):null,[t,r]);return np(()=>()=>{n&&g2t(n)},[n]),n},y2t=e=>{LH();const t=dye(e,!0);return m.useMemo(()=>({[rT.TabsterAttributeName]:t}),[t])},S2t=e=>{const t=LH();return t&&v2t(t),y2t({groupper:{tabbability:w2t(e==null?void 0:e.tabBehavior)},focusable:{ignoreKeydown:e==null?void 0:e.ignoreDefaultKeydown}})},w2t=e=>{switch(e){case"unlimited":return rT.GroupperTabbabilities.Unlimited;case"limited":return rT.GroupperTabbabilities.Limited;case"limited-trap-focus":return rT.GroupperTabbabilities.LimitedTrapFocus;default:return}},C2t=()=>{const e=LH(),{targetDocument:t}=Zh(),r=m.useCallback((s,l)=>(e==null?void 0:e.focusable.findAll({container:s,acceptCondition:l}))||[],[e]),n=m.useCallback(s=>e==null?void 0:e.focusable.findFirst({container:s}),[e]),o=m.useCallback(s=>e==null?void 0:e.focusable.findLast({container:s}),[e]),a=m.useCallback((s,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findNext({currentElement:s,container:u})},[e,t]),i=m.useCallback((s,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findPrev({currentElement:s,container:u})},[e,t]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:o,findNextFocusable:a,findPrevFocusable:i}},jte="data-fui-focus-visible",pye="data-fui-focus-within";function x2t(e,t){if(mye(e))return()=>{};const r={current:void 0},n=AH(t);function o(l){n.isNavigatingWithKeyboard()&&Zy(l)&&(r.current=l,l.setAttribute(jte,""))}function a(){r.current&&(r.current.removeAttribute(jte),r.current=void 0)}n.subscribe(l=>{l||a()});const i=l=>{a();const u=l.composedPath()[0];o(u)},s=l=>{(!l.relatedTarget||Zy(l.relatedTarget)&&!e.contains(l.relatedTarget))&&a()};return e.addEventListener(Dc,i),e.addEventListener("focusout",s),e.focusVisible=!0,o(t.document.activeElement),()=>{a(),e.removeEventListener(Dc,i),e.removeEventListener("focusout",s),delete e.focusVisible,MH(n)}}function mye(e){return e?e.focusVisible?!0:mye(e==null?void 0:e.parentElement):!1}function hye(e={}){const t=Zh(),r=m.useRef(null);var n;const o=(n=e.targetDocument)!==null&&n!==void 0?n:t.targetDocument;return m.useEffect(()=>{if(o!=null&&o.defaultView&&r.current)return x2t(r.current,o.defaultView)},[r,o]),r}function $2t(e,t){const r=AH(t);r.subscribe(a=>{a||Lte(e)});const n=a=>{r.isNavigatingWithKeyboard()&&zte(a.target)&&E2t(e)},o=a=>{(!a.relatedTarget||zte(a.relatedTarget)&&!e.contains(a.relatedTarget))&&Lte(e)};return e.addEventListener(Dc,n),e.addEventListener("focusout",o),()=>{e.removeEventListener(Dc,n),e.removeEventListener("focusout",o),MH(r)}}function E2t(e){e.setAttribute(pye,"")}function Lte(e){e.removeAttribute(pye)}function zte(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function BN(){const{targetDocument:e}=Zh(),t=m.useRef(null);return m.useEffect(()=>{if(e!=null&&e.defaultView&&t.current)return $2t(t.current,e.defaultView)},[t,e]),t}const Xt={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},am={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},im={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},la="#ffffff",_2t="#000000",k2t={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},vye={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},P2t={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},T2t={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},I2t={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},R2t={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},F2t={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},O2t={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},N2t={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},D2t={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},A2t={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},M2t={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},B2t={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},j2t={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},L2t={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},gye={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},z2t={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},V2t={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},H2t={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},W2t={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},q2t={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},U2t={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},K2t={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},G2t={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},Y2t={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},X2t={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},Q2t={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},Z2t={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},J2t={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},ekt={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},tkt={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},rkt={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},nkt={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},okt={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},akt={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},ikt={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},ul={red:P2t,green:gye,darkOrange:T2t,yellow:N2t,berry:Z2t,lightGreen:L2t,marigold:O2t},yB={darkRed:k2t,cranberry:vye,pumpkin:I2t,peach:F2t,gold:D2t,brass:A2t,brown:M2t,forest:B2t,seafoam:j2t,darkGreen:z2t,lightTeal:V2t,teal:H2t,steel:W2t,blue:q2t,royalBlue:U2t,cornflower:K2t,navy:G2t,lavender:Y2t,purple:X2t,grape:Q2t,lilac:J2t,pink:ekt,magenta:tkt,plum:rkt,beige:nkt,mink:okt,platinum:akt,anchor:ikt},ll={cranberry:vye,green:gye,orange:R2t},skt=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],lkt=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],jN={success:"green",warning:"orange",danger:"cranberry"},KE=skt.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:ul[t].tint60,[`colorPalette${r}Background2`]:ul[t].tint40,[`colorPalette${r}Background3`]:ul[t].primary,[`colorPalette${r}Foreground1`]:ul[t].shade10,[`colorPalette${r}Foreground2`]:ul[t].shade30,[`colorPalette${r}Foreground3`]:ul[t].primary,[`colorPalette${r}BorderActive`]:ul[t].primary,[`colorPalette${r}Border1`]:ul[t].tint40,[`colorPalette${r}Border2`]:ul[t].primary};return Object.assign(e,n)},{});KE.colorPaletteYellowForeground1=ul.yellow.shade30;KE.colorPaletteRedForegroundInverted=ul.red.tint20;KE.colorPaletteGreenForegroundInverted=ul.green.tint20;KE.colorPaletteYellowForegroundInverted=ul.yellow.tint40;const ukt=lkt.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:yB[t].tint40,[`colorPalette${r}Foreground2`]:yB[t].shade30,[`colorPalette${r}BorderActive`]:yB[t].primary};return Object.assign(e,n)},{}),ckt={...KE,...ukt},LN=Object.entries(jN).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:ll[r].tint60,[`colorStatus${n}Background2`]:ll[r].tint40,[`colorStatus${n}Background3`]:ll[r].primary,[`colorStatus${n}Foreground1`]:ll[r].shade10,[`colorStatus${n}Foreground2`]:ll[r].shade30,[`colorStatus${n}Foreground3`]:ll[r].primary,[`colorStatus${n}ForegroundInverted`]:ll[r].tint30,[`colorStatus${n}BorderActive`]:ll[r].primary,[`colorStatus${n}Border1`]:ll[r].tint40,[`colorStatus${n}Border2`]:ll[r].primary};return Object.assign(e,o)},{});LN.colorStatusWarningForeground1=ll[jN.warning].shade20;LN.colorStatusWarningForeground3=ll[jN.warning].shade20;LN.colorStatusWarningBorder2=ll[jN.warning].shade20;const dkt=e=>({colorNeutralForeground1:Xt[14],colorNeutralForeground1Hover:Xt[14],colorNeutralForeground1Pressed:Xt[14],colorNeutralForeground1Selected:Xt[14],colorNeutralForeground2:Xt[26],colorNeutralForeground2Hover:Xt[14],colorNeutralForeground2Pressed:Xt[14],colorNeutralForeground2Selected:Xt[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:Xt[38],colorNeutralForeground3Hover:Xt[26],colorNeutralForeground3Pressed:Xt[26],colorNeutralForeground3Selected:Xt[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:Xt[44],colorNeutralForegroundDisabled:Xt[74],colorNeutralForegroundInvertedDisabled:am[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:Xt[26],colorNeutralForeground2LinkHover:Xt[14],colorNeutralForeground2LinkPressed:Xt[14],colorNeutralForeground2LinkSelected:Xt[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:Xt[14],colorNeutralForegroundStaticInverted:la,colorNeutralForegroundInverted:la,colorNeutralForegroundInvertedHover:la,colorNeutralForegroundInvertedPressed:la,colorNeutralForegroundInvertedSelected:la,colorNeutralForegroundInverted2:la,colorNeutralForegroundOnBrand:la,colorNeutralForegroundInvertedLink:la,colorNeutralForegroundInvertedLinkHover:la,colorNeutralForegroundInvertedLinkPressed:la,colorNeutralForegroundInvertedLinkSelected:la,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:la,colorNeutralBackground1Hover:Xt[96],colorNeutralBackground1Pressed:Xt[88],colorNeutralBackground1Selected:Xt[92],colorNeutralBackground2:Xt[98],colorNeutralBackground2Hover:Xt[94],colorNeutralBackground2Pressed:Xt[86],colorNeutralBackground2Selected:Xt[90],colorNeutralBackground3:Xt[96],colorNeutralBackground3Hover:Xt[92],colorNeutralBackground3Pressed:Xt[84],colorNeutralBackground3Selected:Xt[88],colorNeutralBackground4:Xt[94],colorNeutralBackground4Hover:Xt[98],colorNeutralBackground4Pressed:Xt[96],colorNeutralBackground4Selected:la,colorNeutralBackground5:Xt[92],colorNeutralBackground5Hover:Xt[96],colorNeutralBackground5Pressed:Xt[94],colorNeutralBackground5Selected:Xt[98],colorNeutralBackground6:Xt[90],colorNeutralBackgroundInverted:Xt[16],colorNeutralBackgroundStatic:Xt[20],colorNeutralBackgroundAlpha:am[50],colorNeutralBackgroundAlpha2:am[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:Xt[96],colorSubtleBackgroundPressed:Xt[88],colorSubtleBackgroundSelected:Xt[92],colorSubtleBackgroundLightAlphaHover:am[70],colorSubtleBackgroundLightAlphaPressed:am[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:im[10],colorSubtleBackgroundInvertedPressed:im[30],colorSubtleBackgroundInvertedSelected:im[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:Xt[94],colorNeutralBackgroundInvertedDisabled:am[10],colorNeutralStencil1:Xt[90],colorNeutralStencil2:Xt[98],colorNeutralStencil1Alpha:im[10],colorNeutralStencil2Alpha:im[5],colorBackgroundOverlay:im[40],colorScrollbarOverlay:im[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackgroundInverted:la,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:Xt[38],colorNeutralStrokeAccessibleHover:Xt[34],colorNeutralStrokeAccessiblePressed:Xt[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:Xt[82],colorNeutralStroke1Hover:Xt[78],colorNeutralStroke1Pressed:Xt[70],colorNeutralStroke1Selected:Xt[74],colorNeutralStroke2:Xt[88],colorNeutralStroke3:Xt[94],colorNeutralStrokeSubtle:Xt[88],colorNeutralStrokeOnBrand:la,colorNeutralStrokeOnBrand2:la,colorNeutralStrokeOnBrand2Hover:la,colorNeutralStrokeOnBrand2Pressed:la,colorNeutralStrokeOnBrand2Selected:la,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:Xt[88],colorNeutralStrokeInvertedDisabled:am[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:im[5],colorNeutralStrokeAlpha2:am[20],colorStrokeFocus1:la,colorStrokeFocus2:_2t,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),fkt={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},pkt={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},mkt={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},hkt={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},vkt={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},gkt={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},bkt={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Mo={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},ykt={spacingHorizontalNone:Mo.none,spacingHorizontalXXS:Mo.xxs,spacingHorizontalXS:Mo.xs,spacingHorizontalSNudge:Mo.sNudge,spacingHorizontalS:Mo.s,spacingHorizontalMNudge:Mo.mNudge,spacingHorizontalM:Mo.m,spacingHorizontalL:Mo.l,spacingHorizontalXL:Mo.xl,spacingHorizontalXXL:Mo.xxl,spacingHorizontalXXXL:Mo.xxxl},Skt={spacingVerticalNone:Mo.none,spacingVerticalXXS:Mo.xxs,spacingVerticalXS:Mo.xs,spacingVerticalSNudge:Mo.sNudge,spacingVerticalS:Mo.s,spacingVerticalMNudge:Mo.mNudge,spacingVerticalM:Mo.m,spacingVerticalL:Mo.l,spacingVerticalXL:Mo.xl,spacingVerticalXXL:Mo.xxl,spacingVerticalXXXL:Mo.xxxl},wkt={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},vd={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function Vte(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const Ckt=e=>{const t=dkt(e);return{...fkt,...hkt,...vkt,...bkt,...gkt,...wkt,...ykt,...Skt,...mkt,...pkt,...t,...ckt,...LN,...Vte(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Vte(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},xkt={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},$kt=Ckt(xkt),bye={root:"fui-FluentProvider"},Ekt=Rbe({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),_kt=e=>{const t=UE(),r=Ekt({dir:e.dir,renderer:t});return e.root.className=dr(bye.root,e.themeClassName,r.root,e.root.className),e},kkt=Vi["useInsertionEffect"]?Vi["useInsertionEffect"]:np,Pkt=(e,t)=>{if(!e)return;const r=e.createElement("style");return Object.keys(t).forEach(n=>{r.setAttribute(n,t[n])}),e.head.appendChild(r),r},Tkt=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},Ikt=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=m.useRef(),a=Op(bye.root),i=n,s=m.useMemo(()=>I$t(`.${a}`,r),[r,a]);return Rkt(t,a),kkt(()=>{const l=t==null?void 0:t.getElementById(a);return l?o.current=l:(o.current=Pkt(t,{...i,id:a}),o.current&&Tkt(o.current,s)),()=>{var u;(u=o.current)===null||u===void 0||u.remove()}},[a,t,s,i]),{styleTagId:a,rule:s}};function Rkt(e,t){m.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const Fkt={},Okt=(e,t)=>{const r=Zh(),n=Nkt(),o=OH(),a=m.useContext(NH)||Fkt,{applyStylesToPortals:i=!0,customStyleHooks_unstable:s,dir:l=r.dir,targetDocument:u=r.targetDocument,theme:c,overrides_unstable:d={}}=e,f=SB(n,c),p=SB(o,d),h=SB(a,s),v=UE();var b;const{styleTagId:g,rule:y}=Ikt({theme:f,targetDocument:u,rendererAttributes:(b=v.styleElementAttributes)!==null&&b!==void 0?b:{}});return{applyStylesToPortals:i,customStyleHooks_unstable:h,dir:l,targetDocument:u,theme:f,overrides_unstable:p,themeClassName:g,components:{root:"div"},root:Vn(qd("div",{...e,dir:l,ref:Dd(t,hye({targetDocument:u}))}),{elementType:"div"}),serverStyleProps:{cssRule:y,attributes:{...v.styleElementAttributes,id:g}}}};function SB(e,t){return e&&t?{...e,...t}:e||t}function Nkt(){return m.useContext(Lbe)}function Dkt(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:a,theme:i,themeClassName:s,overrides_unstable:l}=e,u=m.useMemo(()=>({dir:n,targetDocument:a}),[n,a]),[c]=m.useState(()=>({})),d=m.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:u,textDirection:n,iconDirection:d,tooltip:c,theme:i,themeClassName:t?o.className:s}}const yye=m.forwardRef((e,t)=>{const r=Okt(e,t);_kt(r);const n=Dkt(r);return JEt(r,n)});yye.displayName="FluentProvider";const Akt=e=>r=>{const n=m.useRef(r.value),o=m.useRef(0),a=m.useRef();return a.current||(a.current={value:n,version:o,listeners:[]}),np(()=>{n.current=r.value,o.current+=1,U3.unstable_runWithPriority(U3.unstable_NormalPriority,()=>{a.current.listeners.forEach(i=>{i([o.current,r.value])})})},[r.value]),m.createElement(e,{value:a.current},r.children)},Sye=e=>{const t=m.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=Akt(t.Provider),delete t.Consumer,t},Rs=(e,t)=>{const r=m.useContext(e),{value:{current:n},version:{current:o},listeners:a}=r,i=t(n),[s,l]=m.useReducer((u,c)=>{if(!c)return[n,i];if(c[0]<=o)return tk(u[1],i)?u:[n,i];try{if(tk(u[0],c[1]))return u;const d=t(c[1]);return tk(u[1],d)?u:[c[1],d]}catch{}return[u[0],u[1]]},[n,i]);return tk(s[1],i)||l(void 0),np(()=>(a.push(l),()=>{const u=a.indexOf(l);a.splice(u,1)}),[a]),s[1]};function Mkt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const tk=typeof Object.is=="function"?Object.is:Mkt;function wye(e){const t=m.useContext(e);return t.version?t.version.current!==-1:!1}const dy="Enter",Lm=" ",Bkt="Tab",Hte="ArrowDown",wB="ArrowUp",jkt="End",Lkt="Home",zkt="PageDown",Vkt="PageUp",Hkt="Escape";function Wkt(e,t){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:o,onClick:a,onKeyDown:i,onKeyUp:s,...l}=t??{},u=typeof o=="string"?o==="true":o,c=r||n||u,d=hs(h=>{c?(h.preventDefault(),h.stopPropagation()):a==null||a(h)}),f=hs(h=>{if(i==null||i(h),h.isDefaultPrevented())return;const v=h.key;if(c&&(v===dy||v===Lm)){h.preventDefault(),h.stopPropagation();return}if(v===Lm){h.preventDefault();return}else v===dy&&(h.preventDefault(),h.currentTarget.click())}),p=hs(h=>{if(s==null||s(h),h.isDefaultPrevented())return;const v=h.key;if(c&&(v===dy||v===Lm)){h.preventDefault(),h.stopPropagation();return}v===Lm&&(h.preventDefault(),h.currentTarget.click())});if(e==="button"||e===void 0)return{...l,disabled:r&&!n,"aria-disabled":n?!0:u,onClick:n?void 0:d,onKeyUp:n?void 0:s,onKeyDown:n?void 0:i};{const h={role:"button",tabIndex:r&&!n?void 0:0,...l,onClick:d,onKeyUp:p,onKeyDown:f,"aria-disabled":r||n||u};return e==="a"&&c&&(h.href=void 0),h}}const Wte="data-popper-is-intersecting",qte="data-popper-escaped",Ute="data-popper-reference-hidden",qkt="data-popper-placement",a6="fui-positioningend",Ukt=["top","right","bottom","left"],Eh=Math.min,pl=Math.max,XI=Math.round,rk=Math.floor,_h=e=>({x:e,y:e}),Kkt={left:"right",right:"left",bottom:"top",top:"bottom"},Gkt={start:"end",end:"start"};function i6(e,t,r){return pl(e,Eh(t,r))}function op(e,t){return typeof e=="function"?e(t):e}function ap(e){return e.split("-")[0]}function uS(e){return e.split("-")[1]}function zH(e){return e==="x"?"y":"x"}function VH(e){return e==="y"?"height":"width"}function cS(e){return["top","bottom"].includes(ap(e))?"y":"x"}function HH(e){return zH(cS(e))}function Ykt(e,t,r){r===void 0&&(r=!1);const n=uS(e),o=HH(e),a=VH(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=QI(i)),[i,QI(i)]}function Xkt(e){const t=QI(e);return[s6(e),t,s6(t)]}function s6(e){return e.replace(/start|end/g,t=>Gkt[t])}function Qkt(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function Zkt(e,t,r,n){const o=uS(e);let a=Qkt(ap(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(s6)))),a}function QI(e){return e.replace(/left|right|bottom|top/g,t=>Kkt[t])}function Jkt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cye(e){return typeof e!="number"?Jkt(e):{top:e,right:e,bottom:e,left:e}}function ZI(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Kte(e,t,r){let{reference:n,floating:o}=e;const a=cS(t),i=HH(t),s=VH(i),l=ap(t),u=a==="y",c=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:n.y-o.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(uS(t)){case"start":p[i]-=f*(r&&u?-1:1);break;case"end":p[i]+=f*(r&&u?-1:1);break}return p}const ePt=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Kte(u,n,l),f=n,p={},h=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=op(e,t)||{};if(u==null)return{};const d=Cye(c),f={x:r,y:n},p=HH(o),h=VH(p),v=await i.getDimensions(u),b=p==="y",g=b?"top":"left",y=b?"bottom":"right",S=b?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],$=f[p]-a.reference[p],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let x=C?C[S]:0;(!x||!await(i.isElement==null?void 0:i.isElement(C)))&&(x=s.floating[S]||a.floating[h]);const E=w/2-$/2,_=x/2-v[h]/2-1,k=Eh(d[g],_),I=Eh(d[y],_),N=k,z=x-v[h]-I,O=x/2-v[h]/2+E,A=i6(N,O,z),M=!l.arrow&&uS(o)!=null&&O!==A&&a.reference[h]/2-(ON<=0)){var _,k;const N=(((_=a.flip)==null?void 0:_.index)||0)+1,z=$[N];if(z)return{data:{index:N,overflows:E},reset:{placement:z}};let O=(k=E.filter(A=>A.overflows[0]<=0).sort((A,M)=>A.overflows[1]-M.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(p){case"bestFit":{var I;const A=(I=E.map(M=>[M.placement,M.overflows.filter(L=>L>0).reduce((L,j)=>L+j,0)]).sort((M,L)=>M[1]-L[1])[0])==null?void 0:I[0];A&&(O=A);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Gte(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yte(e){return Ukt.some(t=>e[t]>=0)}const nPt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=op(e,t);switch(n){case"referenceHidden":{const a=await Jy(t,{...o,elementContext:"reference"}),i=Gte(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Yte(i)}}}case"escaped":{const a=await Jy(t,{...o,altBoundary:!0}),i=Gte(a,r.floating);return{data:{escapedOffsets:i,escaped:Yte(i)}}}default:return{}}}}};async function oPt(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=ap(r),s=uS(r),l=cS(r)==="y",u=["left","top"].includes(i)?-1:1,c=a&&l?-1:1,d=op(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const aPt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await oPt(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},iPt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:g,y}=b;return{x:g,y}}},...l}=op(e,t),u={x:r,y:n},c=await Jy(t,l),d=cS(ap(o)),f=zH(d);let p=u[f],h=u[d];if(a){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",y=p+c[b],S=p-c[g];p=i6(y,p,S)}if(i){const b=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=h+c[b],S=h-c[g];h=i6(y,h,S)}const v=s.fn({...t,[f]:p,[d]:h});return{...v,data:{x:v.x-r,y:v.y-n}}}}},sPt=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=op(e,t),c={x:r,y:n},d=cS(o),f=zH(d);let p=c[f],h=c[d];const v=op(s,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const S=f==="y"?"height":"width",w=a.reference[f]-a.floating[S]+b.mainAxis,$=a.reference[f]+a.reference[S]-b.mainAxis;p$&&(p=$)}if(u){var g,y;const S=f==="y"?"width":"height",w=["top","left"].includes(ap(o)),$=a.reference[d]-a.floating[S]+(w&&((g=i.offset)==null?void 0:g[d])||0)+(w?0:b.crossAxis),C=a.reference[d]+a.reference[S]+(w?0:((y=i.offset)==null?void 0:y[d])||0)-(w?b.crossAxis:0);h<$?h=$:h>C&&(h=C)}return{[f]:p,[d]:h}}}},lPt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:i=()=>{},...s}=op(e,t),l=await Jy(t,s),u=ap(r),c=uS(r),d=cS(r)==="y",{width:f,height:p}=n.floating;let h,v;u==="top"||u==="bottom"?(h=u,v=c===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=u,h=c==="end"?"top":"bottom");const b=p-l[h],g=f-l[v],y=!t.middlewareData.shift;let S=b,w=g;if(d){const C=f-l.left-l.right;w=c||y?Eh(g,C):C}else{const C=p-l.top-l.bottom;S=c||y?Eh(b,C):C}if(y&&!c){const C=pl(l.left,0),x=pl(l.right,0),E=pl(l.top,0),_=pl(l.bottom,0);d?w=f-2*(C!==0||x!==0?C+x:pl(l.left,l.right)):S=p-2*(E!==0||_!==0?E+_:pl(l.top,l.bottom))}await i({...t,availableWidth:w,availableHeight:S});const $=await o.getDimensions(a.floating);return f!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function kh(e){return xye(e)?(e.nodeName||"").toLowerCase():"#document"}function _l(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Np(e){var t;return(t=(xye(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xye(e){return e instanceof Node||e instanceof _l(e).Node}function ip(e){return e instanceof Element||e instanceof _l(e).Element}function Ad(e){return e instanceof HTMLElement||e instanceof _l(e).HTMLElement}function Xte(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _l(e).ShadowRoot}function GE(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ku(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function uPt(e){return["table","td","th"].includes(kh(e))}function WH(e){const t=qH(),r=ku(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function $ye(e){let t=e1(e);for(;Ad(t)&&!zN(t);){if(WH(t))return t;t=e1(t)}return null}function qH(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zN(e){return["html","body","#document"].includes(kh(e))}function ku(e){return _l(e).getComputedStyle(e)}function VN(e){return ip(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function e1(e){if(kh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xte(e)&&e.host||Np(e);return Xte(t)?t.host:t}function Eye(e){const t=e1(e);return zN(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ad(t)&&GE(t)?t:Eye(t)}function l$(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Eye(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=_l(o);return a?t.concat(i,i.visualViewport||[],GE(o)?o:[],i.frameElement&&r?l$(i.frameElement):[]):t.concat(o,l$(o,[],r))}function _ye(e){const t=ku(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ad(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=XI(r)!==a||XI(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function UH(e){return ip(e)?e:e.contextElement}function fy(e){const t=UH(e);if(!Ad(t))return _h(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=_ye(t);let i=(a?XI(r.width):r.width)/n,s=(a?XI(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const cPt=_h(0);function kye(e){const t=_l(e);return!qH()||!t.visualViewport?cPt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dPt(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_l(e)?!1:t}function Mg(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=UH(e);let i=_h(1);t&&(n?ip(n)&&(i=fy(n)):i=fy(e));const s=dPt(a,r,n)?kye(a):_h(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const f=_l(a),p=n&&ip(n)?_l(n):n;let h=f.frameElement;for(;h&&n&&p!==f;){const v=fy(h),b=h.getBoundingClientRect(),g=ku(h),y=b.left+(h.clientLeft+parseFloat(g.paddingLeft))*v.x,S=b.top+(h.clientTop+parseFloat(g.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=y,u+=S,h=_l(h).frameElement}}return ZI({width:c,height:d,x:l,y:u})}const fPt=[":popover-open",":modal"];function Pye(e){let t=!1,r=0,n=0;function o(a){try{t=t||e.matches(a)}catch{}}if(fPt.forEach(a=>{o(a)}),t){const a=$ye(e);if(a){const i=a.getBoundingClientRect();r=i.x,n=i.y}}return[t,r,n]}function pPt(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=Np(n),[i]=t?Pye(t.floating):[!1];if(n===a||i)return r;let s={scrollLeft:0,scrollTop:0},l=_h(1);const u=_h(0),c=Ad(n);if((c||!c&&o!=="fixed")&&((kh(n)!=="body"||GE(a))&&(s=VN(n)),Ad(n))){const d=Mg(n);l=fy(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-s.scrollLeft*l.x+u.x,y:r.y*l.y-s.scrollTop*l.y+u.y}}function mPt(e){return Array.from(e.getClientRects())}function Tye(e){return Mg(Np(e)).left+VN(e).scrollLeft}function hPt(e){const t=Np(e),r=VN(e),n=e.ownerDocument.body,o=pl(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=pl(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Tye(e);const s=-r.scrollTop;return ku(n).direction==="rtl"&&(i+=pl(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function vPt(e,t){const r=_l(e),n=Np(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=qH();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function gPt(e,t){const r=Mg(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ad(e)?fy(e):_h(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,u=n*a.y;return{width:i,height:s,x:l,y:u}}function Qte(e,t,r){let n;if(t==="viewport")n=vPt(e,r);else if(t==="document")n=hPt(Np(e));else if(ip(t))n=gPt(t,r);else{const o=kye(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return ZI(n)}function Iye(e,t){const r=e1(e);return r===t||!ip(r)||zN(r)?!1:ku(r).position==="fixed"||Iye(r,t)}function bPt(e,t){const r=t.get(e);if(r)return r;let n=l$(e,[],!1).filter(s=>ip(s)&&kh(s)!=="body"),o=null;const a=ku(e).position==="fixed";let i=a?e1(e):e;for(;ip(i)&&!zN(i);){const s=ku(i),l=WH(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||GE(i)&&!l&&Iye(e,i))?n=n.filter(c=>c!==i):o=s,i=e1(i)}return t.set(e,n),n}function yPt(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?bPt(t,this._c):[].concat(r),n],s=i[0],l=i.reduce((u,c)=>{const d=Qte(t,c,o);return u.top=pl(d.top,u.top),u.right=Eh(d.right,u.right),u.bottom=Eh(d.bottom,u.bottom),u.left=pl(d.left,u.left),u},Qte(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function SPt(e){const{width:t,height:r}=_ye(e);return{width:t,height:r}}function wPt(e,t,r,n){const o=Ad(t),a=Np(t),i=r==="fixed",s=Mg(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const u=_h(0);if(o||!o&&!i)if((kh(t)!=="body"||GE(a))&&(l=VN(t)),o){const v=Mg(t,!0,i,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else a&&(u.x=Tye(a));let c=s.left+l.scrollLeft-u.x,d=s.top+l.scrollTop-u.y;const[f,p,h]=Pye(n);return f&&(c+=p,d+=h,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:s.width,height:s.height}}function Zte(e,t){return!Ad(e)||ku(e).position==="fixed"?null:t?t(e):e.offsetParent}function Rye(e,t){const r=_l(e);if(!Ad(e))return r;let n=Zte(e,t);for(;n&&uPt(n)&&ku(n).position==="static";)n=Zte(n,t);return n&&(kh(n)==="html"||kh(n)==="body"&&ku(n).position==="static"&&!WH(n))?r:n||$ye(e)||r}const CPt=async function(e){const t=this.getOffsetParent||Rye,r=this.getDimensions;return{reference:wPt(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await r(e.floating)}}};function xPt(e){return ku(e).direction==="rtl"}const $Pt={convertOffsetParentRelativeRectToViewportRelativeRect:pPt,getDocumentElement:Np,getClippingRect:yPt,getOffsetParent:Rye,getElementRects:CPt,getClientRects:mPt,getDimensions:SPt,getScale:fy,isElement:ip,isRTL:xPt};function EPt(e,t){let r=null,n;const o=Np(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=rk(c),h=rk(o.clientWidth-(u+d)),v=rk(o.clientHeight-(c+f)),b=rk(u),y={rootMargin:-p+"px "+-h+"px "+-v+"px "+-b+"px",threshold:pl(0,Eh(1,l))||1};let S=!0;function w($){const C=$[0].intersectionRatio;if(C!==l){if(!S)return i();C?i(!1,C):n=setTimeout(()=>{i(!1,1e-7)},100)}S=!1}try{r=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,y)}r.observe(e)}return i(!0),a}function _Pt(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=UH(e),c=o||a?[...u?l$(u):[],...l$(t)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),a&&g.addEventListener("resize",r)});const d=u&&s?EPt(u,r):null;let f=-1,p=null;i&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),r()}),u&&!l&&p.observe(u),p.observe(t));let h,v=l?Mg(e):null;l&&b();function b(){const g=Mg(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&r(),v=g,h=requestAnimationFrame(b)}return r(),()=>{var g;c.forEach(y=>{o&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),d==null||d(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const kPt=iPt,PPt=rPt,TPt=lPt,Jte=nPt,IPt=tPt,RPt=sPt,FPt=(e,t,r)=>{const n=new Map,o={platform:$Pt,...r},a={...o.platform,_c:n};return ePt(e,t,{...o,platform:a})};function Fye(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const OPt=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,NPt=e=>{var t;return e.nodeType!==1?{}:((t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView).getComputedStyle(e,null)},HN=e=>{const t=e&&OPt(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:o}=NPt(t);return/(auto|scroll|overlay)/.test(r+o+n)?t:HN(t)},DPt=e=>{var t;const r=HN(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function KH(e,t){if(t==="window")return e==null?void 0:e.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=HN(e);return r.nodeName==="BODY"&&(r=e==null?void 0:e.ownerDocument.documentElement),r}return t}function APt(e,t){if(typeof e=="number")return e;const{start:r,end:n,...o}=e,a=o,i=t?"end":"start",s=t?"start":"end";return e[i]&&(a.left=e[i]),e[s]&&(a.right=e[s]),a}const MPt=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),BPt=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),jPt=(e,t)=>{const r=e==="above"||e==="below",n=t==="top"||t==="bottom";return r&&n||!r&&!n},Oye=(e,t,r)=>{const n=jPt(t,e)?"center":e,o=t&&MPt(r)[t],a=n&&BPt()[n];return o&&a?`${o}-${a}`:o},LPt=()=>({top:"above",bottom:"below",right:"after",left:"before"}),zPt=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},VPt=e=>{const{side:t,alignment:r}=Fye(e),n=LPt()[t],o=r&&zPt(n)[r];return{position:n,alignment:o}},HPt={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function Nye(e){return e==null?{}:typeof e=="string"?HPt[e]:e}function CB(e,t,r){const n=m.useRef(!0),[o]=m.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(a){const i=o.value;if(i!==a){if(o.value=a,r&&n.current)return;o.callback(a,i)}}}}));return np(()=>{n.current=!1},[]),o.callback=t,o.facade}function WPt(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function qPt(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:o}=r.arrow;Object.assign(t.style,{left:`${n}px`,top:`${o}px`})}function UPt(e){var t,r,n;const{container:o,placement:a,middlewareData:i,strategy:s,lowPPI:l,coordinates:u,useTransform:c=!0}=e;if(!o)return;o.setAttribute(qkt,a),o.removeAttribute(Wte),i.intersectionObserver.intersecting&&o.setAttribute(Wte,""),o.removeAttribute(qte),!((t=i.hide)===null||t===void 0)&&t.escaped&&o.setAttribute(qte,""),o.removeAttribute(Ute),!((r=i.hide)===null||r===void 0)&&r.referenceHidden&&o.setAttribute(Ute,"");const d=((n=o.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,f=Math.round(u.x*d)/d,p=Math.round(u.y*d)/d;if(Object.assign(o.style,{position:s}),c){Object.assign(o.style,{transform:l?`translate(${f}px, ${p}px)`:`translate3d(${f}px, ${p}px, 0)`});return}Object.assign(o.style,{left:`${f}px`,top:`${p}px`})}const KPt=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function GPt(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,a=Fye(t).side,i={x:n,y:o};switch(a){case"bottom":i.y-=r.reference.height;break;case"top":i.y+=r.reference.height;break;case"left":i.x+=r.reference.width;break;case"right":i.x-=r.reference.width;break}return i}}}function YPt(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:a}=e,i=o.reduce((s,l)=>{const{position:u,align:c}=Nye(l),d=Oye(c,u,a);return d&&s.push(d),s},[]);return PPt({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:KH(n,r)},fallbackStrategy:"bestFit",...i.length&&{fallbackPlacements:i}})}function XPt(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Jy(e,{altBoundary:!0}),n=r.top0,o=r.bottom0;return{data:{intersecting:n||o}}}}}const QPt=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(!((n=t.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:o,applyMaxHeight:a}=e;return o&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),a&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function ZPt(e,t){const{container:r,overflowBoundary:n}=t;return TPt({...n&&{altBoundary:!0,boundary:KH(r,n)},apply({availableHeight:o,availableWidth:a,elements:i,rects:s}){const l=(d,f,p)=>{if(d&&(i.floating.style.setProperty("box-sizing","border-box"),i.floating.style.setProperty(`max-${f}`,`${p}px`),s.floating[f]>p)){i.floating.style.setProperty(f,`${p}px`);const h=f==="width"?"x":"y";i.floating.style.getPropertyValue(`overflow-${h}`)||i.floating.style.setProperty(`overflow-${h}`,"auto")}},{applyMaxWidth:u,applyMaxHeight:c}=e;l(u,"width",a),l(c,"height",o)}})}function JPt(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:o,alignment:a}=VPt(n);return e({positionedRect:t,targetRect:r,position:o,alignment:a})}}function eTt(e){const t=JPt(e);return aPt(t)}function tTt(e){const{hasScrollableElement:t,disableTether:r,overflowBoundary:n,container:o,overflowBoundaryPadding:a,isRtl:i}=e;return kPt({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:RPt({crossAxis:r!=="all",mainAxis:!1})},...a&&{padding:APt(a,i)},...n&&{altBoundary:!0,boundary:KH(o,n)}})}const ere="--fui-match-target-size";function rTt(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===r.width||o)return{};const{width:a}=t;return n.style.setProperty(ere,`${a}px`),n.style.width||(n.style.width=`var(${ere})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function tre(e){const t=[];let r=e;for(;r;){const n=HN(r);if(e.ownerDocument.body===n){t.push(n);break}if(n.nodeName==="BODY"&&n!==e.ownerDocument.body)break;t.push(n),r=n}return t}function nTt(e,t){return new e.ResizeObserver(t)}function oTt(e){let t=!1;const{container:r,target:n,arrow:o,strategy:a,middleware:i,placement:s,useTransform:l=!0,disableUpdateOnResize:u=!1}=e,c=r.ownerDocument.defaultView;if(!n||!r||!c)return{updatePosition:()=>{},dispose:()=>{}};const d=u?null:nTt(c,()=>v());let f=!0;const p=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const h=()=>{t||(f&&(tre(r).forEach(g=>p.add(g)),Zy(n)&&tre(n).forEach(g=>p.add(g)),p.forEach(g=>{g.addEventListener("scroll",v,{passive:!0})}),d==null||d.observe(r),Zy(n)&&(d==null||d.observe(n)),f=!1),Object.assign(r.style,{position:a}),FPt(n,r,{placement:s,middleware:i,strategy:a}).then(({x:g,y,middlewareData:S,placement:w})=>{t||(qPt({arrow:o,middlewareData:S}),UPt({container:r,middlewareData:S,placement:w,coordinates:{x:g,y},lowPPI:((c==null?void 0:c.devicePixelRatio)||1)<=1,strategy:a,useTransform:l}),r.dispatchEvent(new CustomEvent(a6)))}).catch(g=>{}))},v=WPt(()=>h()),b=()=>{t=!0,c&&(c.removeEventListener("scroll",v),c.removeEventListener("resize",v)),p.forEach(g=>{g.removeEventListener("scroll",v)}),p.clear(),d==null||d.disconnect()};return c&&(c.addEventListener("scroll",v,{passive:!0}),c.addEventListener("resize",v)),v(),{updatePosition:v,dispose:b}}function aTt(e){const t=m.useRef(null),r=m.useRef(null),n=m.useRef(null),o=m.useRef(null),a=m.useRef(null),{enabled:i=!0}=e,s=iTt(e),l=m.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var h;const v=(h=n.current)!==null&&h!==void 0?h:r.current;i&&MN()&&v&&o.current&&(t.current=oTt({container:o.current,target:v,arrow:a.current,...s(o.current,a.current)}))},[i,s]),u=hs(h=>{n.current=h,l()});m.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var h;return(h=t.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{e.target,u(h)}}),[e.target,u]),np(()=>{var h;u((h=e.target)!==null&&h!==void 0?h:null)},[e.target,u]),np(()=>{l()},[l]);const c=CB(null,h=>{r.current!==h&&(r.current=h,l())}),d=hs(()=>{var h;return(h=e.onPositioningEnd)===null||h===void 0?void 0:h.call(e)}),f=CB(null,h=>{if(o.current!==h){var v;(v=o.current)===null||v===void 0||v.removeEventListener(a6,d),h==null||h.addEventListener(a6,d),o.current=h,l()}}),p=CB(null,h=>{a.current!==h&&(a.current=h,l())});return{targetRef:c,containerRef:f,arrowRef:p}}function iTt(e){const{align:t,arrowPadding:r,autoSize:n,coverTarget:o,flipBoundary:a,offset:i,overflowBoundary:s,pinned:l,position:u,unstable_disableTether:c,positionFixed:d,strategy:f,overflowBoundaryPadding:p,fallbackPositions:h,useTransform:v,matchTargetSize:b,disableUpdateOnResize:g=!1}=e,{dir:y,targetDocument:S}=Zh(),w=y==="rtl",$=f??d?"fixed":"absolute",C=KPt(n);return m.useCallback((x,E)=>{const _=DPt(x),k=[C&&QPt(C),b&&rTt(),i&&eTt(i),o&&GPt(),!l&&YPt({container:x,flipBoundary:a,hasScrollableElement:_,isRtl:w,fallbackPositions:h}),tTt({container:x,hasScrollableElement:_,overflowBoundary:s,disableTether:c,overflowBoundaryPadding:p,isRtl:w}),C&&ZPt(C,{container:x,overflowBoundary:s}),XPt(),E&&IPt({element:E,padding:r}),Jte({strategy:"referenceHidden"}),Jte({strategy:"escaped"}),!1].filter(Boolean);return{placement:Oye(t,u,w),middleware:k,strategy:$,useTransform:v,disableUpdateOnResize:g}},[t,r,C,o,c,a,w,i,s,l,u,$,p,h,v,b,S,g])}function sTt(e){return Zy(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}var Dye=()=>m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,lTt=()=>!1,rre=new WeakSet;function uTt(e,t){const r=Dye();m.useEffect(()=>{if(!rre.has(r)){rre.add(r),e();return}return e()},t)}var nre=new WeakSet;function cTt(e,t){return m.useMemo(()=>{const r=Dye();return nre.has(r)?e():(nre.add(r),null)},t)}function dTt(e,t){var r;const n=lTt()&&!1,o=n?cTt:m.useMemo,a=n?uTt:m.useEffect,[i,s]=(r=o(()=>e(),t))!=null?r:[null,()=>null];return a(()=>s,t),i}const fTt=Tr({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),ore=Vi["useInsertionEffect"],pTt=e=>{const{targetDocument:t,dir:r}=Zh(),n=EEt(),o=hye(),a=fTt(),i=gEt(),s=dr(i,a.root,e.className),l=n??(t==null?void 0:t.body),u=dTt(()=>{if(l===void 0||e.disabled)return[null,()=>null];const c=l.ownerDocument.createElement("div");return l.appendChild(c),[c,()=>c.remove()]},[l]);return ore?ore(()=>{if(!u)return;const c=s.split(" ").filter(Boolean);return u.classList.add(...c),u.setAttribute("dir",r),o.current=u,()=>{u.classList.remove(...c),u.removeAttribute("dir")}},[s,r,u,o]):m.useMemo(()=>{u&&(u.className=s,u.setAttribute("dir",r),o.current=u)},[s,r,u,o]),u},mTt=e=>{const{element:t,className:r}=sTt(e.mountNode),n=m.useRef(null),o=pTt({disabled:!!t,className:r}),a=t??o,i={children:e.children,mountNode:a,virtualParentRootRef:n};return m.useEffect(()=>{if(!a)return;const s=n.current,l=a.contains(s);if(s&&!l)return Dte(a,s),()=>{Dte(a,void 0)}},[n,a]),i},hTt=e=>m.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&uo.createPortal(e.children,e.mountNode)),Aye=e=>{const t=mTt(e);return hTt(t)};Aye.displayName="Portal";const vTt=e=>{const{iconOnly:t,iconPosition:r}=e;return Pl(e.root,{children:[r!=="after"&&e.icon&&lr(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&lr(e.icon,{})]})},Mye=m.createContext(void 0),gTt={};Mye.Provider;const bTt=()=>{var e;return(e=m.useContext(Mye))!==null&&e!==void 0?e:gTt},yTt=(e,t)=>{const{size:r}=bTt(),{appearance:n="secondary",as:o="button",disabled:a=!1,disabledFocusable:i=!1,icon:s,iconPosition:l="before",shape:u="rounded",size:c=r??"medium"}=e,d=li(s,{elementType:"span"});return{appearance:n,disabled:a,disabledFocusable:i,iconPosition:l,shape:u,size:c,iconOnly:!!(d!=null&&d.children&&!e.children),components:{root:"button",icon:"span"},root:Vn(qd(o,Wkt(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"}}),icon:d}},are={root:"fui-Button",icon:"fui-Button__icon"},STt=Qs("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),wTt=Qs("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),CTt=Tr({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),xTt=Tr({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),$Tt=Tr({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),ETt=Tr({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),_Tt=Tr({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),kTt=e=>{const t=STt(),r=wTt(),n=CTt(),o=xTt(),a=$Tt(),i=ETt(),s=_Tt(),{appearance:l,disabled:u,disabledFocusable:c,icon:d,iconOnly:f,iconPosition:p,shape:h,size:v}=e;return e.root.className=dr(are.root,t,l&&n[l],n[v],d&&v==="small"&&n.smallWithIcon,d&&v==="large"&&n.largeWithIcon,n[h],(u||c)&&o.base,(u||c)&&o.highContrast,l&&(u||c)&&o[l],l==="primary"&&a.primary,a[v],a[h],f&&i[v],e.root.className),e.icon&&(e.icon.className=dr(are.icon,r,!!e.root.children&&s[p],s[v],e.icon.className)),e},WN=m.forwardRef((e,t)=>{const r=yTt(e,t);return kTt(r),Bl("useButtonStyles_unstable")(r),vTt(r)});WN.displayName="Button";const Bye=m.createContext(void 0),PTt=Bye.Provider,TTt=()=>m.useContext(Bye),ITt=e=>{var t,r,n,o;const{generatedControlId:a,orientation:i,required:s,size:l,validationState:u}=e,c=(t=e.label)===null||t===void 0?void 0:t.htmlFor,d=(r=e.label)===null||r===void 0?void 0:r.id,f=(n=e.validationMessage)===null||n===void 0?void 0:n.id,p=(o=e.hint)===null||o===void 0?void 0:o.id;return{field:m.useMemo(()=>({generatedControlId:a,hintId:p,labelFor:c,labelId:d,orientation:i,required:s,size:l,validationMessageId:f,validationState:u}),[a,p,c,d,i,s,l,f,u])}};function dS(e,t){return jye(TTt(),e,t)}function jye(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:o,labelFor:a,labelId:i,required:s,validationMessageId:l,validationState:u}=e;if(n){var c,d;(d=(c=t).id)!==null&&d!==void 0||(c.id=n)}if(i&&(!(r!=null&&r.supportsLabelFor)||a!==t.id)){var f,p,h;(h=(f=t)[p="aria-labelledby"])!==null&&h!==void 0||(f[p]=i)}if((l||o)&&(t["aria-describedby"]=[l,o,t==null?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),u==="error"){var v,b,g;(g=(v=t)[b="aria-invalid"])!==null&&g!==void 0||(v[b]=!0)}if(s)if(r!=null&&r.supportsRequired){var y,S;(S=(y=t).required)!==null&&S!==void 0||(y.required=!0)}else{var w,$,C;(C=(w=t)[$="aria-required"])!==null&&C!==void 0||(w[$]=!0)}if(r!=null&&r.supportsSize){var x,E;(E=(x=t).size)!==null&&E!==void 0||(x.size=e.size)}return t}const RTt=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(jye(t.field)||{})),lr(PTt,{value:t==null?void 0:t.field,children:Pl(e.root,{children:[e.label&&lr(e.label,{}),r,e.validationMessage&&Pl(e.validationMessage,{children:[e.validationMessageIcon&&lr(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&lr(e.hint,{})]})})},FTt=(e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:a="medium"}=e;return{disabled:r,required:li(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:a,components:{root:"label",required:"span"},root:Vn(qd("label",{ref:t,...e}),{elementType:"label"})}},OTt=e=>Pl(e.root,{children:[e.root.children,e.required&&lr(e.required,{})]}),ire={root:"fui-Label",required:"fui-Label__required"},NTt=Tr({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),DTt=e=>{const t=NTt();return e.root.className=dr(ire.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=dr(ire.required,t.required,e.disabled&&t.disabled,e.required.className)),e},Pu=m.forwardRef((e,t)=>{const r=FTt(e,t);return DTt(r),Bl("useLabelStyles_unstable")(r),OTt(r)});Pu.displayName="Label";const ATt={error:m.createElement(YEt,null),warning:m.createElement(ZEt,null),success:m.createElement(GEt,null),none:void 0},MTt=(e,t)=>{const{children:r,orientation:n="vertical",required:o=!1,validationState:a=e.validationMessage?"error":"none",size:i="medium"}=e,s=Op("field-"),l=s+"__control",u=Vn(qd("div",{...e,ref:t},["children"]),{elementType:"div"}),c=li(e.label,{defaultProps:{htmlFor:l,id:s+"__label",required:o,size:i},elementType:Pu}),d=li(e.validationMessage,{defaultProps:{id:s+"__validationMessage",role:a==="error"?"alert":void 0},elementType:"div"}),f=li(e.hint,{defaultProps:{id:s+"__hint"},elementType:"div"}),p=ATt[a],h=li(e.validationMessageIcon,{renderByDefault:!!p,defaultProps:{children:p},elementType:"span"});return{children:r,generatedControlId:l,orientation:n,required:o,size:i,validationState:a,components:{root:"div",label:Pu,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:u,label:c,validationMessageIcon:h,validationMessage:d,hint:f}},pw={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},BTt=Tr({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),jTt=Tr({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),LTt=Qs("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),zTt=Tr({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),VTt=Qs("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),HTt=Tr({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),WTt=e=>{const{validationState:t}=e,r=e.orientation==="horizontal",n=BTt();e.root.className=dr(pw.root,n.base,r&&n.horizontal,r&&!e.label&&n.horizontalNoLabel,e.root.className);const o=jTt();e.label&&(e.label.className=dr(pw.label,o.base,r&&o.horizontal,!r&&o.vertical,e.label.size==="large"&&o.large,!r&&e.label.size==="large"&&o.verticalLarge,e.label.className));const a=VTt(),i=HTt();e.validationMessageIcon&&(e.validationMessageIcon.className=dr(pw.validationMessageIcon,a,t!=="none"&&i[t],e.validationMessageIcon.className));const s=LTt(),l=zTt();e.validationMessage&&(e.validationMessage.className=dr(pw.validationMessage,s,t==="error"&&l.error,!!e.validationMessageIcon&&l.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=dr(pw.hint,s,e.hint.className))},qN=m.forwardRef((e,t)=>{const r=MTt(e,t);WTt(r);const n=ITt(r);return RTt(r,n)});qN.displayName="Field";const qTt=(e,t)=>{e=dS(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:n,shape:o="square",size:a="medium",labelPosition:i="after",onChange:s}=e,[l,u]=$h({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),c=lS({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d=l==="mixed",f=Op("checkbox-",c.primary.id);let p;d?o==="circular"?p=m.createElement(HEt,null):p=a==="large"?m.createElement(QEt,null):m.createElement(XEt,null):l&&(p=a==="large"?m.createElement(KEt,null):m.createElement(Kbe,null));const h={shape:o,checked:l,disabled:r,size:a,labelPosition:i,components:{root:"span",input:"input",indicator:"div",label:Pu},root:Vn(e.root,{defaultProps:{ref:BN(),...c.root},elementType:"span"}),input:Vn(e.input,{defaultProps:{type:"checkbox",id:f,ref:t,checked:l===!0,...c.primary},elementType:"input"}),label:li(e.label,{defaultProps:{htmlFor:f,disabled:r,required:n,size:"medium"},elementType:Pu}),indicator:li(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:p},elementType:"div"})};h.input.onChange=hs(b=>{const g=b.currentTarget.indeterminate?"mixed":b.currentTarget.checked;s==null||s(b,{checked:g}),u(g)});const v=Dd(h.input.ref);return h.input.ref=v,np(()=>{v.current&&(v.current.indeterminate=d)},[v,d]),h},UTt=e=>Pl(e.root,{children:[lr(e.input,{}),e.labelPosition==="before"&&e.label&&lr(e.label,{}),lr(e.indicator,{}),e.labelPosition==="after"&&e.label&&lr(e.label,{})]}),nk={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},KTt=Qs("r10zo65y","rpa3v06",{r:[".r10zo65y{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r10zo65y:focus{outline-style:none;}",".r10zo65y:focus-visible{outline-style:none;}",".r10zo65y[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r10zo65y[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rpa3v06{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rpa3v06:focus{outline-style:none;}",".rpa3v06:focus-visible{outline-style:none;}",".rpa3v06[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rpa3v06[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r10zo65y[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rpa3v06[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),GTt=Tr({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),YTt=Qs("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),XTt=Tr({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),QTt=Qs("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),ZTt=Tr({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),JTt=Tr({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),eIt=e=>{const{checked:t,disabled:r,labelPosition:n,shape:o,size:a}=e,i=KTt(),s=GTt();e.root.className=dr(nk.root,i,r?s.disabled:t==="mixed"?s.mixed:t?s.checked:s.unchecked,e.root.className);const l=YTt(),u=XTt();e.input.className=dr(nk.input,l,a==="large"&&u.large,u[n],e.input.className);const c=QTt(),d=ZTt();e.indicator&&(e.indicator.className=dr(nk.indicator,c,a==="large"&&d.large,o==="circular"&&d.circular,e.indicator.className));const f=JTt();return e.label&&(e.label.className=dr(nk.label,f.base,f[a],f[n],e.label.className)),e},GH=m.forwardRef((e,t)=>{const r=qTt(e,t);return eIt(r),Bl("useCheckboxStyles_unstable")(r),UTt(r)});GH.displayName="Checkbox";const pc=Sye({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});pc.Provider;const bf=Sye({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});bf.Provider;function tIt(e){const{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:a,selectedOptions:i,selectOption:s,setActiveOption:l,setOpen:u,size:c}=e;return{combobox:{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:a,selectedOptions:i,selectOption:s,setActiveOption:l,setOpen:u,size:c}}}function rIt(e){const t=wye(pc),{activeOption:r,focusVisible:n,multiselect:o,registerOption:a,selectedOptions:i,selectOption:s,setActiveOption:l}=e,u=Rs(pc,f=>f.registerOption);return{listbox:{activeOption:r,focusVisible:n,multiselect:o,registerOption:t?u:a,selectedOptions:i,selectOption:s,setActiveOption:l}}}function YH(e,t={}){const{open:r=!0,multiselect:n=!1}=t,o=e.key,{altKey:a,ctrlKey:i,key:s,metaKey:l}=e;return s.length===1&&o!==Lm&&!a&&!i&&!l?"Type":r?o===wB&&a||o===dy||!n&&o===Lm?"CloseSelect":n&&o===Lm?"Select":o===Hkt?"Close":o===Hte?"Next":o===wB?"Previous":o===Lkt?"First":o===jkt?"Last":o===Vkt?"PageUp":o===zkt?"PageDown":o===Bkt?"Tab":"None":o===Hte||o===wB||o===dy||o===Lm?"Open":"None"}function Lye(e,t,r){switch(e){case"Next":return Math.min(r,t+1);case"Previous":return Math.max(0,t-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,t+10);case"PageUp":return Math.max(0,t-10);default:return t}}const zye=()=>{const e=m.useRef([]),t=m.useMemo(()=>({getCount:()=>e.current.length,getOptionAtIndex:u=>{var c;return(c=e.current[u])===null||c===void 0?void 0:c.option},getIndexOfId:u=>e.current.findIndex(c=>c.option.id===u),getOptionById:u=>{const c=e.current.find(d=>d.option.id===u);return c==null?void 0:c.option},getOptionsMatchingText:u=>e.current.filter(c=>u(c.option.text)).map(c=>c.option),getOptionsMatchingValue:u=>e.current.filter(c=>u(c.option.value)).map(c=>c.option)}),[]),r=m.useCallback((n,o)=>{var a;const i=e.current.findIndex(s=>!s.element||!o?!1:s.option.id===n.id?!0:s.element.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING);if(((a=e.current[i])===null||a===void 0?void 0:a.option.id)!==n.id){const s={element:o,option:n};i===-1?e.current=[...e.current,s]:e.current.splice(i,0,s)}return()=>{e.current=e.current.filter(s=>s.option.id!==n.id)}},[]);return{...t,options:e.current.map(n=>n.option),registerOption:r}};function nIt(e){const{activeOption:t}=e,r=m.useRef(null);return m.useEffect(()=>{if(r.current&&t&&MN()){const n=r.current.querySelector(`#${t.id}`);if(!n)return;const{offsetHeight:o,offsetTop:a}=n,{offsetHeight:i,scrollTop:s}=r.current,l=as+i,c=2;l?r.current.scrollTo(0,a-c):u&&r.current.scrollTo(0,a-i+o+c)}},[t]),r}const Vye=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,a]=$h({state:e.selectedOptions,defaultState:t,initialState:[]}),i=m.useCallback((l,u)=>{if(u.disabled)return;let c=[u.value];if(r){const d=o.findIndex(f=>f===u.value);d>-1?c=[...o.slice(0,d),...o.slice(d+1)]:c=[...o,u.value]}a(c),n==null||n(l,{optionValue:u.value,optionText:u.text,selectedOptions:c})},[n,r,o,a]);return{clearSelection:l=>{a([]),n==null||n(l,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:i,selectedOptions:o}},oIt=(e,t)=>{const{multiselect:r}=e,n=zye(),{getCount:o,getOptionAtIndex:a,getIndexOfId:i}=n,{clearSelection:s,selectedOptions:l,selectOption:u}=Vye(e),[c,d]=m.useState(),[f,p]=m.useState(!1),h=_=>{const k=YH(_,{open:!0}),I=o()-1,N=c?i(c.id):-1;let z=N;switch(k){case"Select":case"CloseSelect":c&&u(_,c);break;default:z=Lye(k,N,I)}z!==N&&(_.preventDefault(),d(a(z)),p(!0))},v=_=>{p(!1)},b=wye(pc),g=Rs(pc,_=>_.activeOption),y=Rs(pc,_=>_.focusVisible),S=Rs(pc,_=>_.selectedOptions),w=Rs(pc,_=>_.selectOption),$=Rs(pc,_=>_.setActiveOption),C=b?{activeOption:g,focusVisible:y,selectedOptions:S,selectOption:w,setActiveOption:$}:{activeOption:c,focusVisible:f,selectedOptions:l,selectOption:u,setActiveOption:d},x={components:{root:"div"},root:Vn(qd("div",{ref:t,role:r?"menu":"listbox","aria-activedescendant":b||c==null?void 0:c.id,tabIndex:0,...e}),{elementType:"div"}),multiselect:r,clearSelection:s,...n,...C},E=nIt(x);return x.root.ref=Dd(x.root.ref,E),x.root.onKeyDown=hs(Ms(x.root.onKeyDown,h)),x.root.onMouseOver=hs(Ms(x.root.onMouseOver,v)),x},aIt=(e,t)=>lr(bf.Provider,{value:t.listbox,children:lr(e.root,{})}),iIt={root:"fui-Listbox"},sIt=Tr({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),lIt=e=>{const t=sIt();return e.root.className=dr(iIt.root,t.root,e.root.className),e},XH=m.forwardRef((e,t)=>{const r=oIt(e,t),n=rIt(r);return lIt(r),Bl("useListboxStyles_unstable")(r),aIt(r,n)});XH.displayName="Listbox";function uIt(e,t){if(e!==void 0)return e;let r="",n=!1;return m.Children.forEach(t,o=>{typeof o=="string"?r+=o:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const cIt=(e,t)=>{const{children:r,disabled:n,text:o,value:a}=e,i=m.useRef(null),s=uIt(o,r),l=a??s,u=Op("fluent-option",e.id),c=m.useMemo(()=>({id:u,disabled:n,text:s,value:l}),[u,n,s,l]),d=Rs(bf,C=>C.focusVisible),f=Rs(bf,C=>C.multiselect),p=Rs(bf,C=>C.registerOption),h=Rs(bf,C=>{const x=C.selectedOptions;return!!l&&!!x.find(E=>E===l)}),v=Rs(bf,C=>C.selectOption),b=Rs(bf,C=>C.setActiveOption),g=Rs(pc,C=>C.setOpen),y=Rs(bf,C=>{var x,E;return((x=C.activeOption)===null||x===void 0?void 0:x.id)!==void 0&&((E=C.activeOption)===null||E===void 0?void 0:E.id)===u});let S=m.createElement(zEt,null);f&&(S=h?m.createElement(Kbe,null):"");const w=C=>{var x;if(n){C.preventDefault();return}b(c),f||g==null||g(C,!1),v(C,c),(x=e.onClick)===null||x===void 0||x.call(e,C)};m.useEffect(()=>{if(u&&i.current)return p(c,i.current)},[u,c,p]);const $=f?{role:"menuitemcheckbox","aria-checked":h}:{role:"option","aria-selected":h};return{components:{root:"div",checkIcon:"span"},root:Vn(qd("div",{ref:Dd(t,i),"aria-disabled":n?"true":void 0,id:u,...$,...e,onClick:w}),{elementType:"div"}),checkIcon:li(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:S},elementType:"span"}),active:y,disabled:n,focusVisible:d,multiselect:f,selected:h}},dIt=e=>Pl(e.root,{children:[e.checkIcon&&lr(e.checkIcon,{}),e.root.children]}),sre={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},fIt=Tr({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),pIt=e=>{const{active:t,disabled:r,focusVisible:n,multiselect:o,selected:a}=e,i=fIt();return e.root.className=dr(sre.root,i.root,t&&n&&i.active,r&&i.disabled,a&&i.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=dr(sre.checkIcon,i.checkIcon,o&&i.multiselectCheck,a&&i.selectedCheck,a&&o&&i.selectedMultiselectCheck,r&&i.checkDisabled,r&&o&&i.multiselectCheckDisabled,e.checkIcon.className)),e},l6=m.forwardRef((e,t)=>{const r=cIt(e,t);return pIt(r),Bl("useOptionStyles_unstable")(r),dIt(r)});l6.displayName="Option";const mIt=e=>{const{appearance:t="outline",children:r,clearable:n=!1,editable:o=!1,inlinePopup:a=!1,mountNode:i=void 0,multiselect:s,onOpenChange:l,size:u="medium"}=e,c=zye(),{getOptionAtIndex:d,getOptionsMatchingValue:f}=c,[p,h]=m.useState(),[v,b]=m.useState(!1),[g,y]=m.useState(!1),S=m.useRef(!1),w=Vye(e),{selectedOptions:$}=w,C=fEt(),[x,E]=$h({state:e.value,initialState:void 0}),_=m.useMemo(()=>{if(x!==void 0)return x;if(C&&e.defaultValue!==void 0)return e.defaultValue;const z=f(O=>$.includes(O)).map(O=>O.text);return s?o?"":z.join(", "):z[0]},[x,o,f,s,e.defaultValue,$]),[k,I]=$h({state:e.open,defaultState:e.defaultOpen,initialState:!1}),N=m.useCallback((z,O)=>{l==null||l(z,{open:O}),I(O)},[l,I]);return m.useEffect(()=>{if(k&&!p)if(!s&&$.length>0){const z=f(O=>O===$[0]).pop();z&&h(z)}else h(d(0));else k||h(void 0)},[k,r]),{...c,...w,activeOption:p,appearance:t,clearable:n,focusVisible:v,hasFocus:g,ignoreNextBlur:S,inlinePopup:a,mountNode:i,open:k,setActiveOption:h,setFocusVisible:b,setHasFocus:y,setOpen:N,setValue:E,size:u,value:_,multiselect:s}};function hIt(e){const{positioning:t}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...Nye(t)},{targetRef:o,containerRef:a}=aTt(n);return[a,o]}function vIt(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:a}=r,i=Op("fluent-listbox",F$t(e)?e.id:void 0),s=li(e,{renderByDefault:!0,elementType:XH,defaultProps:{id:i,multiselect:n,tabIndex:void 0,...a}}),l=hs(Ms(d=>{d.preventDefault()},s==null?void 0:s.onMouseDown)),u=hs(Ms(d=>{var f;d.preventDefault(),(f=o.current)===null||f===void 0||f.focus()},s==null?void 0:s.onClick)),c=Dd(s==null?void 0:s.ref,t);return s&&(s.ref=c,s.onMouseDown=l,s.onClick=u),s}function gIt(e,t,r){const{state:{activeOption:n,getCount:o,getIndexOfId:a,getOptionAtIndex:i,open:s,selectOption:l,setActiveOption:u,setFocusVisible:c,setOpen:d,multiselect:f,setHasFocus:p},defaultProps:h,elementType:v}=r,b=Vn(e,{defaultProps:{type:"text","aria-expanded":s,"aria-activedescendant":s?n==null?void 0:n.id:void 0,role:"combobox",...typeof h=="object"&&h},elementType:v}),g=m.useRef(null);return b.ref=Dd(g,b.ref,t),b.onBlur=Ms(y=>{d(y,!1),p(!1)},b.onBlur),b.onFocus=Ms(y=>{y.target===y.currentTarget&&p(!0)},b.onFocus),b.onClick=Ms(y=>{d(y,!s)},b.onClick),b.onKeyDown=Ms(y=>{const S=YH(y,{open:s,multiselect:f}),w=o()-1,$=n?a(n.id):-1;let C=$;switch(S){case"Open":y.preventDefault(),c(!0),d(y,!0);break;case"Close":y.stopPropagation(),y.preventDefault(),d(y,!1);break;case"CloseSelect":!f&&!(n!=null&&n.disabled)&&d(y,!1);case"Select":n&&l(y,n),y.preventDefault();break;case"Tab":!f&&n&&l(y,n);break;default:C=Lye(S,$,w)}C!==$&&(y.preventDefault(),u(i(C)),c(!0))},b.onKeyDown),b.onMouseOver=Ms(y=>{c(!1)},b.onMouseOver),b}function bIt(e,t,r){const{state:{open:n,activeOption:o,setOpen:a,getOptionsMatchingText:i,getIndexOfId:s,setActiveOption:l,setFocusVisible:u},defaultProps:c}=r,d=m.useRef(""),[f,p]=_Et(),h=()=>{let g=$=>$.toLowerCase().indexOf(d.current)===0,y=i(g),S=o?s(o.id):0;if(n&&d.current.length===1&&S++,!y.length){const $=d.current.split("");$.length&&$.every(x=>x===$[0])&&(S++,g=x=>x.toLowerCase().indexOf($[0])===0,y=i(g))}if(y.length>1&&o){const $=y.find(C=>s(C.id)>=S);return $??y[0]}var w;return(w=y[0])!==null&&w!==void 0?w:void 0},v=g=>{if(p(),YH(g)==="Type"){d.current+=g.key.toLowerCase(),f(()=>{d.current=""},500),!n&&a(g,!0);const y=h();l(y),u(!0)}},b=gIt(e,t,{state:r.state,defaultProps:c,elementType:"button"});return b.onKeyDown=Ms(v,b.onKeyDown),b}const yIt=(e,t)=>{var r;e=dS(e,{supportsLabelFor:!0,supportsSize:!0});const n=mIt(e),{clearable:o,clearSelection:a,hasFocus:i,multiselect:s,open:l,selectedOptions:u}=n,{primary:c,root:d}=lS({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[f,p]=hIt(e),h=m.useRef(null),v=vIt(e.listbox,f,{state:n,triggerRef:h,defaultProps:{children:e.children}});var b;const g=bIt((b=e.button)!==null&&b!==void 0?b:{},Dd(h,t),{state:n,defaultProps:{type:"button",tabIndex:0,children:n.value||e.placeholder,"aria-controls":l?v==null?void 0:v.id:void 0,...c}}),y=Vn(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&l?v==null?void 0:v.id:void 0,children:e.children,...d},elementType:"div"});y.ref=Dd(y.ref,p);const S=u.length>0&&o&&!s,w={components:{root:"div",button:"button",clearButton:"button",expandIcon:"span",listbox:XH},root:y,button:g,listbox:l||i?v:void 0,clearButton:li(e.clearButton,{defaultProps:{"aria-label":"Clear selection",children:m.createElement(qEt,null),tabIndex:0,type:"button"},elementType:"button",renderByDefault:!0}),expandIcon:li(e.expandIcon,{renderByDefault:!0,defaultProps:{children:m.createElement(VEt,null)},elementType:"span"}),placeholderVisible:!n.value&&!!e.placeholder,showClearButton:S,...n},$=hs(Ms((r=w.clearButton)===null||r===void 0?void 0:r.onClick,C=>{var x;a(C),(x=h.current)===null||x===void 0||x.focus()}));return w.clearButton&&(w.clearButton.onClick=$),s&&(w.clearButton=void 0),w},SIt=(e,t)=>lr(e.root,{children:Pl(pc.Provider,{value:t.combobox,children:[Pl(e.button,{children:[e.button.children,e.expandIcon&&lr(e.expandIcon,{})]}),e.clearButton&&lr(e.clearButton,{}),e.listbox&&(e.inlinePopup?lr(e.listbox,{}):lr(Aye,{mountNode:e.mountNode,children:lr(e.listbox,{})}))]})}),mw={root:"fui-Dropdown",button:"fui-Dropdown__button",clearButton:"fui-Dropdown__clearButton",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},wIt=Tr({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",mc9l5x:"ftuwxu6",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bz04dq9:"f132nw8t",Budl3uf:"f1htdosj"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1khb0e9",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1sbtcvk",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdghr9",uwmqm3:["f1e60jzv","f135dnwl"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1a1bwwz",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"fy7v416",uwmqm3:["fnphzt9","flt1dlf"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"},hidden:{mc9l5x:"fjseox"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".ftuwxu6{display:inline-flex;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1khb0e9{padding-top:3px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1jnq6q7{padding-bottom:3px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1sbtcvk{padding-top:5px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdghr9{padding-bottom:5px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1a1bwwz{padding-top:7px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fy7v416{padding-bottom:7px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],t:["@supports selector(:has(*)){.f132nw8t:has(.fui-Dropdown__clearButton:focus)::after{border-bottom-color:initial;}}","@supports selector(:has(*)){.f1htdosj:has(.fui-Dropdown__clearButton:focus)::after{transform:scaleX(0);}}"],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),CIt=Tr({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),xIt=Qs("r1ekmruf","r1aeuc1g",{r:[".r1ekmruf{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-right:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".r1ekmruf:focus{outline-style:none;}",".r1ekmruf:focus-visible{outline-style:none;}",".r1ekmruf[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1ekmruf[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1aeuc1g{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-left:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".r1aeuc1g:focus{outline-style:none;}",".r1aeuc1g:focus-visible{outline-style:none;}",".r1aeuc1g[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1aeuc1g[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1ekmruf[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1aeuc1g[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),$It=e=>{const{appearance:t,open:r,placeholderVisible:n,showClearButton:o,size:a}=e,i=`${e.button["aria-invalid"]}`=="true",s=e.button.disabled,l=wIt(),u=CIt(),c=xIt();return e.root.className=dr(mw.root,l.root,l[t],!s&&t==="outline"&&l.outlineInteractive,i&&t!=="underline"&&l.invalid,i&&t==="underline"&&l.invalidUnderline,s&&l.disabled,e.root.className),e.button.className=dr(mw.button,l.button,l[a],n&&l.placeholder,s&&l.disabledText,e.button.className),e.listbox&&(e.listbox.className=dr(mw.listbox,l.listbox,!r&&l.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=dr(mw.expandIcon,u.icon,u[a],s&&u.disabled,o&&l.hidden,e.expandIcon.className)),e.clearButton&&(e.clearButton.className=dr(mw.clearButton,c,u.icon,u[a],s&&u.disabled,!o&&l.hidden,e.clearButton.className)),e},Hye=m.forwardRef((e,t)=>{const r=yIt(e,t),n=tIt(r);return $It(r),Bl("useDropdownStyles_unstable")(r),SIt(r,n)});Hye.displayName="Dropdown";const EIt=e=>lr(e.root,{children:e.root.children!==void 0&&lr(e.wrapper,{children:e.root.children})}),_It=(e,t)=>{const{alignContent:r="center",appearance:n="default",inset:o=!1,vertical:a=!1,wrapper:i}=e,s=Op("divider-");return{alignContent:r,appearance:n,inset:o,vertical:a,components:{root:"div",wrapper:"div"},root:Vn(qd("div",{role:"separator","aria-orientation":a?"vertical":"horizontal","aria-labelledby":e.children?s:void 0,...e,ref:t}),{elementType:"div"}),wrapper:Vn(i,{defaultProps:{id:s,children:e.children},elementType:"div"})}},lre={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},kIt=Tr({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),PIt=Tr({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),TIt=Tr({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),IIt=e=>{const t=kIt(),r=PIt(),n=TIt(),{alignContent:o,appearance:a,inset:i,vertical:s}=e;return e.root.className=dr(lre.root,t.base,t[o],a&&t[a],!s&&r.base,!s&&i&&r.inset,!s&&r[o],s&&n.base,s&&i&&n.inset,s&&n[o],s&&e.root.children!==void 0&&n.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=dr(lre.wrapper,e.wrapper.className)),e},Wye=m.forwardRef((e,t)=>{const r=_It(e,t);return IIt(r),Bl("useDividerStyles_unstable")(r),EIt(r)});Wye.displayName="Divider";const RIt=(e,t)=>{e=dS(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=OH();var n;const{size:o="medium",appearance:a=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:i}=e,[s,l]=$h({state:e.value,defaultState:e.defaultValue,initialState:""}),u=lS({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:o,appearance:a,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Vn(e.input,{defaultProps:{type:"text",ref:t,...u.primary},elementType:"input"}),contentAfter:li(e.contentAfter,{elementType:"span"}),contentBefore:li(e.contentBefore,{elementType:"span"}),root:Vn(e.root,{defaultProps:u.root,elementType:"span"})};return c.input.value=s,c.input.onChange=hs(d=>{const f=d.target.value;i==null||i(d,{value:f}),l(f)}),c},FIt=e=>Pl(e.root,{children:[e.contentBefore&&lr(e.contentBefore,{}),lr(e.input,{}),e.contentAfter&&lr(e.contentAfter,{})]}),ok={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},OIt=Qs("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),NIt=Tr({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),DIt=Qs("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),AIt=Tr({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),MIt=Qs("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),BIt=Tr({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),jIt=e=>{const{size:t,appearance:r}=e,n=e.input.disabled,o=`${e.input["aria-invalid"]}`=="true",a=r.startsWith("filled"),i=NIt(),s=AIt(),l=BIt();e.root.className=dr(ok.root,OIt(),i[t],i[r],!n&&r==="outline"&&i.outlineInteractive,!n&&r==="underline"&&i.underlineInteractive,!n&&a&&i.filledInteractive,a&&i.filled,!n&&o&&i.invalid,n&&i.disabled,e.root.className),e.input.className=dr(ok.input,DIt(),t==="large"&&s.large,n&&s.disabled,e.input.className);const u=[MIt(),n&&l.disabled,l[t]];return e.contentBefore&&(e.contentBefore.className=dr(ok.contentBefore,...u,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=dr(ok.contentAfter,...u,e.contentAfter.className)),e},QH=m.forwardRef((e,t)=>{const r=RIt(e,t);return jIt(r),Bl("useInputStyles_unstable")(r),FIt(r)});QH.displayName="Input";const ZH=m.createContext(void 0),LIt={};ZH.Provider;const zIt=()=>m.useContext(ZH)||LIt,VIt=(e,t)=>lr(ZH.Provider,{value:t.radioGroup,children:lr(e.root,{})}),HIt=(e,t)=>{e=dS(e);const r=Op("radiogroup-"),{name:n=r,value:o,defaultValue:a,disabled:i,layout:s="vertical",onChange:l,required:u}=e;return{layout:s,name:n,value:o,defaultValue:a,disabled:i,required:u,components:{root:"div"},root:{ref:t,role:"radiogroup",...Vn(qd("div",e,["onChange","name"]),{elementType:"div"}),onChange:hs(c=>{l&&Zy(c.target,{constructorName:"HTMLInputElement"})&&c.target.type==="radio"&&l(c,{value:c.target.value})})}}},WIt={root:"fui-RadioGroup"},qIt=Tr({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),UIt=e=>{const t=qIt();e.root.className=dr(WIt.root,t.root,e.layout==="vertical"&&t.vertical,e.root.className)},KIt=e=>{const{name:t,value:r,defaultValue:n,disabled:o,layout:a,required:i}=e,s=e.root["aria-describedby"];return{radioGroup:m.useMemo(()=>({name:t,value:r,defaultValue:n,disabled:o,layout:a,required:i,"aria-describedby":s}),[t,r,n,o,a,i,s])}},qye=m.forwardRef((e,t)=>{const r=HIt(e,t),n=KIt(r);return UIt(r),Bl("useRadioGroupStyles_unstable")(r),VIt(r,n)});qye.displayName="RadioGroup";const GIt=e=>Pl(e.root,{children:[lr(e.input,{}),lr(e.indicator,{}),e.label&&lr(e.label,{})]}),YIt=(e,t)=>{const r=zIt(),{name:n=r.name,checked:o=r.value!==void 0?r.value===e.value:void 0,defaultChecked:a=r.defaultValue!==void 0?r.defaultValue===e.value:void 0,labelPosition:i=r.layout==="horizontal-stacked"?"below":"after",disabled:s=r.disabled,required:l=r.required,"aria-describedby":u=r["aria-describedby"],onChange:c}=e,d=lS({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=Vn(e.root,{defaultProps:{ref:BN(),...d.root},elementType:"span"}),p=Vn(e.input,{defaultProps:{ref:t,type:"radio",id:Op("radio-",d.primary.id),name:n,checked:o,defaultChecked:a,disabled:s,required:l,"aria-describedby":u,...d.primary},elementType:"input"});p.onChange=Ms(p.onChange,b=>c==null?void 0:c(b,{value:b.currentTarget.value}));const h=li(e.label,{defaultProps:{htmlFor:p.id,disabled:p.disabled},elementType:Pu}),v=Vn(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:i,components:{root:"span",input:"input",label:Pu,indicator:"div"},root:f,input:p,label:h,indicator:v}},ak={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},XIt=Qs("rm0dkue","rjjxb3w",{r:[".rm0dkue{display:inline-flex;position:relative;}",".rm0dkue:focus{outline-style:none;}",".rm0dkue:focus-visible{outline-style:none;}",".rm0dkue[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rm0dkue[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rjjxb3w{display:inline-flex;position:relative;}",".rjjxb3w:focus{outline-style:none;}",".rjjxb3w:focus-visible{outline-style:none;}",".rjjxb3w[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rjjxb3w[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rm0dkue[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rjjxb3w[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),QIt=Tr({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),ZIt=Qs("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),JIt=Tr({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bojc29n:"fhb1dn5"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".fhb1dn5:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),eRt=Qs("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),tRt=Tr({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),rRt=e=>{const{labelPosition:t}=e,r=XIt(),n=QIt();e.root.className=dr(ak.root,r,t==="below"&&n.vertical,e.root.className);const o=ZIt(),a=JIt();e.input.className=dr(ak.input,o,t==="below"&&a.below,e.indicator.children?a.customIndicator:a.defaultIndicator,e.input.className);const i=eRt();e.indicator.className=dr(ak.indicator,i,e.indicator.className);const s=tRt();e.label&&(e.label.className=dr(ak.label,s.base,s[t],e.label.className))},Uye=m.forwardRef((e,t)=>{const r=YIt(e,t);return rRt(r),Bl("useRadioStyles_unstable")(r),GIt(r)});Uye.displayName="Radio";const ik={root:"fui-Slider",rail:"fui-Slider__rail",thumb:"fui-Slider__thumb",input:"fui-Slider__input"},nRt={sliderDirectionVar:"--fui-Slider--direction",sliderProgressVar:"--fui-Slider--progress",sliderStepsPercentVar:"--fui-Slider--steps-percent"},oRt=Tr({root:{qhf8xq:"f10pi13n",mc9l5x:"fwk3njj",lpbzjs:"f1sdsnyy",Bt984gj:"f122n59",B7hvi0a:"f1oiokrs"},small:{Bi64ftq:"f1agqo6f",Ba19x4e:"f1i7ztpd",sshi5w:"f1pha7fy"},medium:{Bi64ftq:"f1a78h9h",Ba19x4e:"fuok0yf",sshi5w:"f1nxs5xn"},horizontal:{Bf4jedk:"fyvtabn",wkccdc:"fgfd48t",Budl1dq:"f4t5rw1"},vertical:{sshi5w:"f1pzv1zu",wkccdc:"fktlcaf",Budl1dq:"fiadc6h"},enabled:{B7wi8oa:"f4l8x3l",B250r6j:"f671q34",Bpmy4es:"fvfzmw5",Buw9y6v:"faw1t00",Bq939m0:"fxdgx5",gjzr1t:"fii04fa",tg7hqu:"f36hzz8",ypdvl1:"f1volkfw",Bw5jdd4:"f1xddb6",Bdjie01:"fcdikl",Bvh9j6m:"fhpzgm6",Bvsvvpo:"f1q6pm3h"},disabled:{Bpmy4es:"foojseg",B7wi8oa:"f1lgdqhv",B250r6j:"f1veetlj",ypdvl1:"fu12m3e",Bw5jdd4:"fi9guym",Bdjie01:"fcdjl4u"},focusIndicatorHorizontal:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f1pmxfrl",Bil7v7r:["fszkfcr","f1ap5ily"],skfxo0:"f57dp0y",jo1ztg:["f1ap5ily","fszkfcr"],Ba3ybja:["f11dm2qb","f136rfnd"],az1dzo:["f136rfnd","f11dm2qb"],vppk2z:["fdsq1qd","f1khssms"],B6352mv:["f1khssms","fdsq1qd"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1pffoy2",B29w5g4:["f1bmyog6","f15fv2gd"],Bhhzhcn:"fs6b7xr",Bec0n69:["f15fv2gd","f1bmyog6"]},focusIndicatorVertical:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f1pmxfrl",Bil7v7r:["fszkfcr","f1ap5ily"],skfxo0:"f57dp0y",jo1ztg:["f1ap5ily","fszkfcr"],Ba3ybja:["f11dm2qb","f136rfnd"],az1dzo:["f136rfnd","f11dm2qb"],vppk2z:["fdsq1qd","f1khssms"],B6352mv:["f1khssms","fdsq1qd"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1hxpdv8",B29w5g4:["fm5xmfm","femsgmt"],Bhhzhcn:"f1dmxpeg",Bec0n69:["femsgmt","fm5xmfm"]}},{d:[".f10pi13n{position:relative;}",".fwk3njj{display:inline-grid;}",".f1sdsnyy{touch-action:none;}",".f122n59{align-items:center;}",".f1oiokrs{justify-items:center;}",".f1agqo6f{--fui-Slider__thumb--size:16px;}",".f1i7ztpd{--fui-Slider__rail--size:2px;}",".f1pha7fy{min-height:24px;}",".f1a78h9h{--fui-Slider__thumb--size:20px;}",".fuok0yf{--fui-Slider__rail--size:4px;}",".f1nxs5xn{min-height:32px;}",".fyvtabn{min-width:120px;}",".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}",".f4t5rw1{grid-template-columns:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}",".f1pzv1zu{min-height:120px;}",".fktlcaf{grid-template-rows:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}",".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}",".f4l8x3l{--fui-Slider__rail--color:var(--colorNeutralStrokeAccessible);}",".f671q34{--fui-Slider__progress--color:var(--colorCompoundBrandBackground);}",".fvfzmw5{--fui-Slider__thumb--color:var(--colorCompoundBrandBackground);}",".foojseg{--fui-Slider__thumb--color:var(--colorNeutralForegroundDisabled);}",".f1lgdqhv{--fui-Slider__rail--color:var(--colorNeutralBackgroundDisabled);}",".f1veetlj{--fui-Slider__progress--color:var(--colorNeutralForegroundDisabled);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f1pmxfrl[data-fui-focus-within]:focus-within::after{border-top-width:2px;}",".fszkfcr[data-fui-focus-within]:focus-within::after{border-right-width:2px;}",".f1ap5ily[data-fui-focus-within]:focus-within::after{border-left-width:2px;}",".f57dp0y[data-fui-focus-within]:focus-within::after{border-bottom-width:2px;}",".f11dm2qb[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f136rfnd[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".fdsq1qd[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--borderRadiusMedium);}",".f1khssms[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--borderRadiusMedium);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1pffoy2[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - -2px);}",".f1bmyog6[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 8px);}",".f15fv2gd[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 8px);}",".fs6b7xr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - -2px);}",".f1hxpdv8[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - 6px);}",".fm5xmfm[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 4px);}",".femsgmt[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 4px);}",".f1dmxpeg[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - 6px);}"],h:[".faw1t00:hover{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundHover);}",".fxdgx5:hover{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundHover);}"],a:[".fii04fa:active{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundPressed);}",".f36hzz8:active{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundPressed);}"],m:[["@media (forced-colors: active){.f1volkfw{--fui-Slider__rail--color:CanvasText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xddb6{--fui-Slider__thumb--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcdikl{--fui-Slider__progress--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhpzgm6:hover{--fui-Slider__thumb--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1q6pm3h:hover{--fui-Slider__progress--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fu12m3e{--fui-Slider__rail--color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fi9guym{--fui-Slider__thumb--color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcdjl4u{--fui-Slider__progress--color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"]}),aRt=Tr({rail:{Bbmb7ep:["fnivh3a","fc7yr5o"],Beyfa6y:["fc7yr5o","fnivh3a"],B7oj6ja:["f1el4m67","f8yange"],Btl43ni:["f8yange","f1el4m67"],Bkecrkj:"f1aehjj5",Ijaq50:"faunodf",nk6f5a:"f88nxoq",Br312pm:"fd46tj4",Bw0ie65:"f1e2fz10",qhf8xq:"f10pi13n",Bvjb7m6:"fdgv6k0",Bcmaq0h:"fizngqt",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",Ftih45:"fzhtfnv",Brfgrao:"f1j7ml58",Bbn5juq:"fx36ao7",Brdvuy1:"fux3rle"},horizontal:{a9b677:"fly5x3f",Bqenvij:"f1cy86ho",Fbdkly:["f1heqfse","fkh49vu"],mdwyqc:["fkh49vu","f1heqfse"],Baz25je:"f16tdq4e"},vertical:{a9b677:"fqxfnkd",Bqenvij:"f1l02sjl",Ccq8qp:"f1rik0od",Bciustq:"f14xwovp",lawp4y:"febq2dz"}},{d:[".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}",".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}",".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}",".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}",".f1aehjj5{pointer-events:none;}",".faunodf{grid-row-start:2;}",".f88nxoq{grid-row-end:2;}",".fd46tj4{grid-column-start:2;}",".f1e2fz10{grid-column-end:2;}",".f10pi13n{position:relative;}",".fdgv6k0{forced-color-adjust:none;}",`.fizngqt{background-image:linear-gradient( + var(--fui-Slider--direction), + var(--fui-Slider__progress--color) 0%, + var(--fui-Slider__progress--color) var(--fui-Slider--progress), + var(--fui-Slider__rail--color) var(--fui-Slider--progress) + );}`,".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".fzhtfnv::before{content:'';}",".f1j7ml58::before{position:absolute;}",`.fx36ao7::before{background-image:repeating-linear-gradient( + var(--fui-Slider--direction), + #0000 0%, + #0000 calc(var(--fui-Slider--steps-percent) - 1px), + var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - 1px), + var(--colorNeutralBackground1) var(--fui-Slider--steps-percent) + );}`,".fly5x3f{width:100%;}",".f1cy86ho{height:var(--fui-Slider__rail--size);}",".f1heqfse::before{left:-1px;}",".fkh49vu::before{right:-1px;}",".f16tdq4e::before{height:var(--fui-Slider__rail--size);}",".fqxfnkd{width:var(--fui-Slider__rail--size);}",".f1l02sjl{height:100%;}",".f1rik0od::before{width:var(--fui-Slider__rail--size);}",".f14xwovp::before{top:-1px;}",".febq2dz::before{bottom:1px;}"],m:[[`@media (forced-colors: active){.fux3rle::before{background-image:repeating-linear-gradient( + var(--fui-Slider--direction), + #0000 0%, + #0000 calc(var(--fui-Slider--steps-percent) - 1px), + HighlightText calc(var(--fui-Slider--steps-percent) - 1px), + HighlightText var(--fui-Slider--steps-percent) + );}}`,{m:"(forced-colors: active)"}]]}),iRt=Tr({thumb:{Ijaq50:"faunodf",nk6f5a:"f88nxoq",Br312pm:"fd46tj4",Bw0ie65:"f1e2fz10",qhf8xq:"f1euv43f",a9b677:"f174ca62",Bqenvij:"f1yfdkfd",Bkecrkj:"f1aehjj5",oeaueh:"f1s6fcnf",Bvjb7m6:"fdgv6k0",Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"],E5pizo:"fof7hq0",De3pzq:"foksa45",Brfgrao:"f1j7ml58",Bciustq:"f14u7mkt",Fbdkly:["f5zrw40","f1ks5ppg"],lawp4y:"fto0uou",mdwyqc:["f1ks5ppg","f5zrw40"],Budzafs:["feh19e8","f3j3guj"],r59vdv:["f3j3guj","feh19e8"],n07z76:["fo75joz","f1yag6sl"],ck0cow:["f1yag6sl","fo75joz"],Bcvre1j:"fyl8oag",Ftih45:"fzhtfnv",B0qfbqy:"f1rponpz",B4f6apu:["f1rvw2z1","fjj0g3m"],y0oebl:"f1muowhs",uvfttm:["fjj0g3m","f1rvw2z1"],Bdkvgpv:"f163fonl",m598lv:["f1yq6w5o","f1jpmc5p"],qa3bma:"f11yjt3y",Bbv0w2i:["f1jpmc5p","f1yq6w5o"],Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"]},disabled:{B0qfbqy:"f1rponpz",B4f6apu:["f1rvw2z1","fjj0g3m"],y0oebl:"f1muowhs",uvfttm:["fjj0g3m","f1rvw2z1"],Bdkvgpv:"f163fonl",m598lv:["f1yq6w5o","f1jpmc5p"],qa3bma:"f11yjt3y",Bbv0w2i:["f1jpmc5p","f1yq6w5o"],Bq4z7u6:"f1pw3ppl",Bk5zm6e:["fxoq2z","f1ykj0h9"],Bqjgrrk:"f1sz5gii",Bm6vgfq:["f1ykj0h9","fxoq2z"]},horizontal:{Bz10aip:["f13gfj74","f1nfknbn"],oyh7mz:["f1fj3zth","fcf9u6w"]},vertical:{Bz10aip:"f5cv5a3",B5kzvoi:"feeniun"}},{d:[".faunodf{grid-row-start:2;}",".f88nxoq{grid-row-end:2;}",".fd46tj4{grid-column-start:2;}",".f1e2fz10{grid-column-end:2;}",".f1euv43f{position:absolute;}",".f174ca62{width:var(--fui-Slider__thumb--size);}",".f1yfdkfd{height:var(--fui-Slider__thumb--size);}",".f1aehjj5{pointer-events:none;}",".f1s6fcnf{outline-style:none;}",".fdgv6k0{forced-color-adjust:none;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fof7hq0{box-shadow:0 0 0 calc(var(--fui-Slider__thumb--size) * .2) var(--colorNeutralBackground1) inset;}",".foksa45{background-color:var(--fui-Slider__thumb--color);}",".f1j7ml58::before{position:absolute;}",".f14u7mkt::before{top:0px;}",".f5zrw40::before{left:0px;}",".f1ks5ppg::before{right:0px;}",".fto0uou::before{bottom:0px;}",".feh19e8::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f3j3guj::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".fo75joz::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1yag6sl::before{border-top-left-radius:var(--borderRadiusCircular);}",".fyl8oag::before{box-sizing:border-box;}",".fzhtfnv::before{content:'';}",".f1rponpz::before{border-top-width:calc(var(--fui-Slider__thumb--size) * .05);}",".f1rvw2z1::before{border-right-width:calc(var(--fui-Slider__thumb--size) * .05);}",".fjj0g3m::before{border-left-width:calc(var(--fui-Slider__thumb--size) * .05);}",".f1muowhs::before{border-bottom-width:calc(var(--fui-Slider__thumb--size) * .05);}",".f163fonl::before{border-top-style:solid;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f11yjt3y::before{border-bottom-style:solid;}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".f1pw3ppl::before{border-top-color:var(--colorNeutralForegroundDisabled);}",".fxoq2z::before{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1ykj0h9::before{border-left-color:var(--colorNeutralForegroundDisabled);}",".f1sz5gii::before{border-bottom-color:var(--colorNeutralForegroundDisabled);}",".f13gfj74{transform:translateX(-50%);}",".f1nfknbn{transform:translateX(50%);}",".f1fj3zth{left:var(--fui-Slider--progress);}",".fcf9u6w{right:var(--fui-Slider--progress);}",".f5cv5a3{transform:translateY(50%);}",".feeniun{bottom:var(--fui-Slider--progress);}"]}),sRt=Tr({input:{Bceei9c:"f1k6fduh",abs64n:"fk73vx1",Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z",Br312pm:"fwpfdsa",Bw0ie65:"fuur7zz",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"]},disabled:{Bceei9c:"f158kwzp"},horizontal:{Bqenvij:"f1yfdkfd",a9b677:"fly5x3f"},vertical:{Bqenvij:"f1l02sjl",a9b677:"f174ca62",Brp00wb:"f1r9mf01"}},{d:[".f1k6fduh{cursor:pointer;}",".fk73vx1{opacity:0;}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".fwpfdsa{grid-column-start:1;}",".fuur7zz{grid-column-end:-1;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f158kwzp{cursor:default;}",".f1yfdkfd{height:var(--fui-Slider__thumb--size);}",".fly5x3f{width:100%;}",".f1l02sjl{height:100%;}",".f174ca62{width:var(--fui-Slider__thumb--size);}",".f1r9mf01{-webkit-appearance:slider-vertical;}"]}),lRt=e=>{const t=oRt(),r=aRt(),n=iRt(),o=sRt(),a=e.vertical;return e.root.className=dr(ik.root,t.root,a?t.focusIndicatorVertical:t.focusIndicatorHorizontal,t[e.size],a?t.vertical:t.horizontal,e.disabled?t.disabled:t.enabled,e.root.className),e.rail.className=dr(ik.rail,r.rail,a?r.vertical:r.horizontal,e.rail.className),e.thumb.className=dr(ik.thumb,n.thumb,a?n.vertical:n.horizontal,e.disabled&&n.disabled,e.thumb.className),e.input.className=dr(ik.input,o.input,a?o.vertical:o.horizontal,e.disabled&&o.disabled,e.input.className),e},{sliderStepsPercentVar:uRt,sliderProgressVar:cRt,sliderDirectionVar:dRt}=nRt,fRt=(e,t,r)=>r===t?0:(e-t)/(r-t)*100,pRt=(e,t)=>{const{defaultValue:r=0,min:n=0,max:o=100,step:a,value:i}=t,{dir:s}=Zh(),[l,u]=$h({state:i!==void 0?vB(i,n,o):void 0,defaultState:vB(r,n,o),initialState:0}),c=fRt(l,n,o),d=e.input.onChange,f=t.onChange,p=hs(v=>{const b=Number(v.target.value);u(vB(b,n,o)),d&&d!==f?d(v):f&&f(v,{value:b})}),h={[dRt]:e.vertical?"0deg":s==="ltr"?"90deg":"270deg",[uRt]:a&&a>0?`${a*100/(o-n)}%`:"",[cRt]:`${c}%`};return e.root.style={...h,...e.root.style},e.input.value=l,e.input.onChange=p,e},mRt=(e,t)=>{e=dS(e,{supportsLabelFor:!0});const r=lS({props:e,primarySlotTagName:"input",excludedPropNames:["onChange","size"]}),{disabled:n,vertical:o,size:a="medium",root:i,input:s,rail:l,thumb:u}=e,c={disabled:n,size:a,vertical:o,components:{input:"input",rail:"div",root:"div",thumb:"div"},root:Vn(i,{defaultProps:r.root,elementType:"div"}),input:Vn(s,{defaultProps:{id:Op("slider-",e.id),ref:t,...r.primary,type:"range",orient:o?"vertical":void 0},elementType:"input"}),rail:Vn(l,{elementType:"div"}),thumb:Vn(u,{elementType:"div"})};return c.root.ref=Dd(c.root.ref,BN()),pRt(c,e),c},hRt=e=>Pl(e.root,{children:[lr(e.input,{}),lr(e.rail,{}),lr(e.thumb,{})]}),Kye=m.forwardRef((e,t)=>{const r=mRt(e,t);return lRt(r),Bl("useSliderStyles_unstable")(r),hRt(r)});Kye.displayName="Slider";const Gye=(e,t)=>{const{wrap:r,truncate:n,block:o,italic:a,underline:i,strikethrough:s,size:l,font:u,weight:c,align:d}=e;return{align:d??"start",block:o??!1,font:u??"base",italic:a??!1,size:l??300,strikethrough:s??!1,truncate:n??!1,underline:i??!1,weight:c??"regular",wrap:r??!0,components:{root:"span"},root:Vn(qd("span",{ref:t,...e}),{elementType:"span"})}},Yye=e=>lr(e.root,{}),vRt={root:"fui-Text"},gRt=Tr({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),Xye=e=>{const t=gRt();return e.root.className=dr(vRt.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font==="monospace"&&t.monospace,e.font==="numeric"&&t.numeric,e.weight==="medium"&&t.weightMedium,e.weight==="semibold"&&t.weightSemibold,e.weight==="bold"&&t.weightBold,e.align==="center"&&t.alignCenter,e.align==="end"&&t.alignEnd,e.align==="justify"&&t.alignJustify,e.root.className),e},YE=m.forwardRef((e,t)=>{const r=Gye(e,t);return Xye(r),Bl("useTextStyles_unstable")(r),Yye(r)});YE.displayName="Text";function bRt(e){const{useStyles:t,className:r,displayName:n}=e,o=m.forwardRef((a,i)=>{const s=t(),l=Gye(a,i);return Xye(l),l.root.className=dr(r,l.root.className,s.root,a.className),Yye(l)});return o.displayName=n,o}const yRt={root:"fui-Caption1"},SRt=Tr({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),wRt=bRt({useStyles:SRt,className:yRt.root,displayName:"Caption1"}),CRt=e=>lr(e.root,{children:lr(e.textarea,{})}),xRt=(e,t)=>{e=dS(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=OH();var n;const{size:o="medium",appearance:a=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",resize:i="none",onChange:s}=e,[l,u]=$h({state:e.value,defaultState:e.defaultValue,initialState:void 0}),c=lS({props:e,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),d={size:o,appearance:a,resize:i,components:{root:"span",textarea:"textarea"},textarea:Vn(e.textarea,{defaultProps:{ref:t,...c.primary},elementType:"textarea"}),root:Vn(e.root,{defaultProps:c.root,elementType:"span"})};return d.textarea.value=l,d.textarea.onChange=hs(f=>{const p=f.target.value;s==null||s(f,{value:p}),u(p)}),d},ure={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},$Rt=Tr({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1ean75l",uwmqm3:["f1cnd47f","fhxju0i"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},disabled:{De3pzq:"f1c21dwh",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{ckks6v:"f7ic3uo",B2zwrfe:["f1omjgsz","f1snvl17"],xv9156:"fn6xmsl",dt87k2:["f1snvl17","f1omjgsz"],Bf40cpq:"f1sn8sm0",Bop6t4b:["f1wovo5e","f716mnf"],gvrnp0:"fm0h710",Beu9t3s:["f716mnf","f1wovo5e"],Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],uqwnxt:"fk7lb2a",Bvecx4l:["f1knhbbd","f17itt0b"],Bs0cc2w:"f15pjvi3",e1hlit:["f17itt0b","f1knhbbd"],e2sjt0:"f6ginmj",Bbcopvn:["f1grcyuh","fgzu20w"],Bj33j0h:"fk1xjsr",f7epvg:["fgzu20w","f1grcyuh"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bbs6y8j:"fu7v4fk",rexu52:["f1fnaxjy","fwory1w"],B7pmvfx:"f7hodha",Belqbek:["fwory1w","f1fnaxjy"],Bawrxx6:"f8jkv7v",r7b1zc:["f1f3jaeo","fh8au0q"],Bt3ojkv:"f19usxel",t1ykpo:["fh8au0q","f1f3jaeo"],Bvq3b66:"f12oevn0",Brahy3i:["fvdgz8d","f1cq0lt5"],zoxjo1:"f1so894s",an54nd:["f1cq0lt5","fvdgz8d"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1ean75l{padding-bottom:var(--strokeWidthThick);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fyed02w{box-shadow:var(--shadow2);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fu7v4fk:focus-within{border-top-width:var(--strokeWidthThin);}",".f1fnaxjy:focus-within{border-right-width:var(--strokeWidthThin);}",".fwory1w:focus-within{border-left-width:var(--strokeWidthThin);}",".f7hodha:focus-within{border-bottom-width:var(--strokeWidthThin);}",".f8jkv7v:focus-within{border-top-style:solid;}",".f1f3jaeo:focus-within{border-right-style:solid;}",".fh8au0q:focus-within{border-left-style:solid;}",".f19usxel:focus-within{border-bottom-style:solid;}",".f12oevn0:focus-within{border-top-color:var(--colorNeutralStroke1);}",".fvdgz8d:focus-within{border-right-color:var(--colorNeutralStroke1);}",".f1cq0lt5:focus-within{border-left-color:var(--colorNeutralStroke1);}",".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".f7ic3uo:hover{border-top-width:var(--strokeWidthThin);}",".f1omjgsz:hover{border-right-width:var(--strokeWidthThin);}",".f1snvl17:hover{border-left-width:var(--strokeWidthThin);}",".fn6xmsl:hover{border-bottom-width:var(--strokeWidthThin);}",".f1sn8sm0:hover{border-top-style:solid;}",".f1wovo5e:hover{border-right-style:solid;}",".f716mnf:hover{border-left-style:solid;}",".fm0h710:hover{border-bottom-style:solid;}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fk7lb2a:active{border-top-width:var(--strokeWidthThin);}",".f1knhbbd:active{border-right-width:var(--strokeWidthThin);}",".f17itt0b:active{border-left-width:var(--strokeWidthThin);}",".f15pjvi3:active{border-bottom-width:var(--strokeWidthThin);}",".f6ginmj:active{border-top-style:solid;}",".f1grcyuh:active{border-right-style:solid;}",".fgzu20w:active{border-left-style:solid;}",".fk1xjsr:active{border-bottom-style:solid;}",".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),ERt=Tr({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",B4brmom:"f1vw9udw",Brrnbx2:"fbb3kq8",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",z8tnut:"f1ywm7hm",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f14wxoun",uwmqm3:["f1xile11","fqznh8f"],Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",z8tnut:"fp2oml8",z189sj:["f135dnwl","f1e60jzv"],Byoj8tv:"f1tdddsa",uwmqm3:["f1e60jzv","f135dnwl"],Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",z8tnut:"f1kwiid1",z189sj:["fcgl2c4","f1anj20m"],Byoj8tv:"f5b47ha",uwmqm3:["f1anj20m","fcgl2c4"],Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1vw9udw::selection{color:var(--colorNeutralForegroundInverted);}",".fbb3kq8::selection{background-color:var(--colorNeutralBackgroundInverted);}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".fcgl2c4{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f1anj20m{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),_Rt=Tr({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),kRt=e=>{const{size:t,appearance:r,resize:n}=e,o=e.textarea.disabled,a=`${e.textarea["aria-invalid"]}`=="true",i=r.startsWith("filled"),s=$Rt();e.root.className=dr(ure.root,s.base,o&&s.disabled,!o&&i&&s.filled,!o&&s[r],!o&&s.interactive,!o&&r==="outline"&&s.outlineInteractive,!o&&a&&s.invalid,e.root.className);const l=ERt(),u=_Rt();return e.textarea.className=dr(ure.textarea,l.base,l[t],u[n],o&&l.disabled,e.textarea.className),e},Qye=m.forwardRef((e,t)=>{const r=xRt(e,t);return kRt(r),Bl("useTextareaStyles_unstable")(r),CRt(r)});Qye.displayName="Textarea";const PRt=(e,{referenceLabel:t,referenceId:r},n)=>{const{checkbox:o={},onSelectionChange:a,floatingAction:i,onClick:s,onKeyDown:l}=e,{findAllFocusable:u}=C2t(),c=m.useRef(null),[d,f]=$h({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),p=[e.selected,e.defaultSelected,a].some(C=>typeof C<"u"),[h,v]=m.useState(!1),b=m.useCallback(C=>{if(!n.current)return!1;const x=u(n.current),E=C.target,_=x.some(I=>I.contains(E)),k=(c==null?void 0:c.current)===E;return _&&!k},[n,u]),g=m.useCallback(C=>{if(b(C))return;const x=!d;f(x),a&&a(C,{selected:x})},[a,d,f,b]),y=m.useCallback(C=>{[dy].includes(C.key)&&(C.preventDefault(),g(C))},[g]),S=m.useMemo(()=>{if(!p||i)return;const C={};return r?C["aria-labelledby"]=r:t&&(C["aria-label"]=t),li(o,{defaultProps:{ref:c,type:"checkbox",checked:d,onChange:x=>g(x),onFocus:()=>v(!0),onBlur:()=>v(!1),...C},elementType:"input"})},[o,i,d,p,g,r,t]),w=m.useMemo(()=>{if(i)return li(i,{defaultProps:{ref:c},elementType:"div"})},[i]),$=m.useMemo(()=>p?{onClick:Ms(s,g),onKeyDown:Ms(l,y)}:null,[p,g,s,l,y]);return{selected:d,selectable:p,selectFocused:h,selectableCardProps:$,checkboxSlot:S,floatingActionSlot:w}},TRt=m.createContext(void 0),cre={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},IRt=TRt.Provider,RRt={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},FRt=({focusMode:e="off",...t})=>{const r=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(a=>t[a]),o={...S2t({tabBehavior:RRt[r?"no-tab":e]}),tabIndex:0};return{interactive:r,focusAttributes:!r&&e==="off"?null:o}},ORt=(e,t)=>{const{appearance:r="filled",orientation:n="vertical",size:o="medium"}=e,[a,i]=m.useState(cre.selectableA11yProps.referenceId),[s,l]=m.useState(cre.selectableA11yProps.referenceId),u=BN(),{selectable:c,selected:d,selectableCardProps:f,selectFocused:p,checkboxSlot:h,floatingActionSlot:v}=PRt(e,{referenceId:a,referenceLabel:s},u),b=Dd(u,t),{interactive:g,focusAttributes:y}=FRt(e);return{appearance:r,orientation:n,size:o,interactive:g,selectable:c,selectFocused:p,selected:d,selectableA11yProps:{setReferenceId:i,referenceId:a,referenceLabel:s,setReferenceLabel:l},components:{root:"div",floatingAction:"div",checkbox:"input"},root:Vn(qd("div",{ref:b,role:"group",...c?null:y,...e,...f}),{elementType:"div"}),floatingAction:v,checkbox:h}},NRt=(e,t)=>lr(e.root,{children:Pl(IRt,{value:t,children:[e.checkbox?lr(e.checkbox,{}):null,e.floatingAction?lr(e.floatingAction,{}):null,e.root.children]})}),xB={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},DRt=Tr({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),ARt=e=>{const t=DRt(),r={horizontal:t.orientationHorizontal,vertical:t.orientationVertical},n={small:t.sizeSmall,medium:t.sizeMedium,large:t.sizeLarge},o={filled:t.filled,"filled-alternative":t.filledAlternative,outline:t.outline,subtle:t.subtle},a={filled:t.filledInteractiveSelected,"filled-alternative":t.filledAlternativeInteractiveSelected,outline:t.outlineInteractiveSelected,subtle:t.subtleInteractiveSelected},i={filled:t.filledInteractive,"filled-alternative":t.filledAlternativeInteractive,outline:t.outlineInteractive,subtle:t.subtleInteractive},s=e.interactive||e.selectable,l=m.useMemo(()=>e.selectable?e.selectFocused?t.selectableFocused:"":t.focused,[e.selectFocused,e.selectable,t.focused,t.selectableFocused]);return e.root.className=dr(xB.root,t.root,r[e.orientation],n[e.size],o[e.appearance],s&&i[e.appearance],e.selected&&a[e.appearance],l,s&&t.highContrastInteractive,e.selected&&t.highContrastSelected,e.root.className),e.floatingAction&&(e.floatingAction.className=dr(xB.floatingAction,t.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=dr(xB.checkbox,t.hiddenCheckbox,e.checkbox.className)),e};function MRt({selectableA11yProps:e}){return{selectableA11yProps:e}}const Zye=m.forwardRef((e,t)=>{const r=ORt(e,t),n=MRt(r);return ARt(r),NRt(r,n)});Zye.displayName="Card";const BRt=Tr({flex:{mc9l5x:"f22iagw"},inline:{mc9l5x:"ftuwxu6"},column:{Beiy3e4:"f1vx9l62"},alignItemsFlexStart:{Bt984gj:"f6jr5hl"},alignItemsCenter:{Bt984gj:"f122n59"},alignItemsFlexEnd:{Bt984gj:"fgs5rwf"},alignItemsStretch:{Bt984gj:"f1q9h2pe"},justifyContentFlexStart:{Brf1p80:"fbhxue7"},justifyContentCenter:{Brf1p80:"f4d9j23"},justifyContentFlexEnd:{Brf1p80:"f9c4gz4"},justifyContentStretch:{Brf1p80:"fsxf2b5"},justifyContentSpaceAround:{Brf1p80:"f1iw3tyt"},justifyContentSpaceBetween:{Brf1p80:"f1869bpl"},justifyContentSpaceEvenly:{Brf1p80:"figf6al"},wrap:{Eh141a:"fni485r"},fill:{a9b677:"fly5x3f",Bqenvij:"f1l02sjl"},gapForColumnFlexSmall:{Belr9w4:"fd7ph1c"},gapForColumnFlexSmaller:{Belr9w4:"fn67r4l"},gapForColumnFlexMedium:{Belr9w4:"f16r77es"},gapForColumnFlexLarge:{Belr9w4:"fej36a"},gapForRowFlexSmall:{i8kkvl:"f18w1nra"},gapForRowFlexSmaller:{i8kkvl:"f4px1ci"},gapForRowFlexMedium:{i8kkvl:"f1lv1r8n"},gapForRowFlexLarge:{i8kkvl:"fzco7x8"},paddingMedium:{z8tnut:"f1809wu7",z189sj:["f81rol6","frdkuqy"],Byoj8tv:"f1fow5ox",uwmqm3:["frdkuqy","f81rol6"]}},{d:[".f22iagw{display:flex;}",".ftuwxu6{display:inline-flex;}",".f1vx9l62{flex-direction:column;}",".f6jr5hl{align-items:flex-start;}",".f122n59{align-items:center;}",".fgs5rwf{align-items:flex-end;}",".f1q9h2pe{align-items:stretch;}",".fbhxue7{justify-content:flex-start;}",".f4d9j23{justify-content:center;}",".f9c4gz4{justify-content:flex-end;}",".fsxf2b5{justify-content:stretch;}",".f1iw3tyt{justify-content:space-around;}",".f1869bpl{justify-content:space-between;}",".figf6al{justify-content:space-evenly;}",".fni485r{flex-wrap:wrap;}",".fly5x3f{width:100%;}",".f1l02sjl{height:100%;}",".fd7ph1c{row-gap:10px;}",".fn67r4l{row-gap:8px;}",".f16r77es{row-gap:15px;}",".fej36a{row-gap:30px;}",".f18w1nra{column-gap:10px;}",".f4px1ci{column-gap:8px;}",".f1lv1r8n{column-gap:15px;}",".fzco7x8{column-gap:30px;}",".f1809wu7{padding-top:10px;}",".f81rol6{padding-right:10px;}",".frdkuqy{padding-left:10px;}",".f1fow5ox{padding-bottom:10px;}"]}),jRt="fui-Flex",_c=m.forwardRef((e,t)=>{const{children:r,column:n,fill:o,gap:a,hAlign:i,inline:s,padding:l,space:u,vAlign:c,wrap:d,className:f,...p}=e,h=BRt(),v=m.useMemo(()=>({alignItems:{start:h.alignItemsFlexStart,center:h.alignItemsCenter,end:h.alignItemsFlexEnd,stretch:h.alignItemsCenter},justifyContent:{start:h.justifyContentFlexStart,center:h.justifyContentCenter,end:h.justifyContentFlexEnd,stretch:h.justifyContentStretch},justifyContentSpace:{around:h.justifyContentSpaceAround,between:h.justifyContentSpaceBetween,evenly:h.justifyContentSpaceEvenly},gapForColumnFlex:{"gap.smaller":h.gapForColumnFlexSmaller,"gap.small":h.gapForColumnFlexSmall,"gap.medium":h.gapForColumnFlexMedium,"gap.large":h.gapForColumnFlexLarge},gapRow:{"gap.smaller":h.gapForRowFlexSmaller,"gap.small":h.gapForRowFlexSmall,"gap.medium":h.gapForRowFlexMedium,"gap.large":h.gapForRowFlexLarge},paddings:{"padding.medium":h.paddingMedium}}),[h]),b=dr(jRt,h.flex,s&&h.inline,n&&h.column,i&&(n?v.alignItems[i]:v.justifyContent[i]),c&&(n?v.justifyContent[c]:v.alignItems[c]),u&&v.justifyContentSpace[u],d&&h.wrap,o&&h.fill,a&&(n?v.gapForColumnFlex[a]:v.gapRow[a]),l&&v.paddings[l],f),g=m.Children.map(r,y=>{var S;return(y==null||(S=y.type)===null||S===void 0?void 0:S.__isFlexItem)?m.cloneElement(y,{flexDirection:n?"column":"row"}):y});return m.createElement("div",{ref:t,className:b,...p},g)});_c.displayName="Flex";const LRt=Wd({arrayFieldItem:{"> .form-group":{width:"100%"}}});function zRt(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,v=LRt(),{CopyButton:b,MoveDownButton:g,MoveUpButton:y,RemoveButton:S}=h.templates.ButtonTemplates;return T.jsxs(_c,{vAlign:"end",children:[T.jsx(_c,{fill:!0,className:v.arrayFieldItem,children:t}),n&&T.jsxs(_c,{style:{marginLeft:"8px"},children:[(i||a)&&T.jsx(y,{disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&T.jsx(g,{disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&T.jsx(b,{disabled:r||f,onClick:u(l),uiSchema:p,registry:h}),s&&T.jsx(S,{disabled:r||f,onClick:c(l),uiSchema:p,registry:h})]})]})}function VRt({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return T.jsx(WN,{...r,icon:T.jsx(BEt,{}),title:n($t.AddItemButton)})}const HRt=Wd({arrayItemList:{...Fbe.gap("12px")}});function WRt(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:u,schema:c,title:d}=e,f=HRt(),p=At(o),h=Ct("ArrayFieldDescriptionTemplate",l,p),v=Ct("ArrayFieldItemTemplate",l,p),b=Ct("ArrayFieldTitleTemplate",l,p),{ButtonTemplates:{AddButton:g}}=l.templates;return T.jsxs(T.Fragment,{children:[T.jsx(b,{idSchema:n,title:p.title||d,schema:c,uiSchema:o,required:u,registry:l}),T.jsx(h,{idSchema:n,description:p.description||c.description,schema:c,uiSchema:o,registry:l}),T.jsxs(_c,{column:!0,className:f.arrayItemList,children:[a&&a.map(({key:y,...S})=>T.jsx(v,{...S},y)),t&&T.jsx(_c,{hAlign:"end",children:T.jsx(g,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})]},`array-item-list-${n.$id}`)]})}const qRt=Wd({input:{width:"100%"},label:{paddingTop:"2px",paddingBottom:"2px",marginBottom:"2px"}});function URt(e){const{id:t,placeholder:r,required:n,readonly:o,disabled:a,type:i,value:s,label:l,hideLabel:u,onChange:c,onChangeOverride:d,onBlur:f,onFocus:p,autofocus:h,options:v,schema:b}=e,g=qRt(),y=kp(b,i,v),S=({target:{value:C}})=>c(C===""?v.emptyValue:C),w=({target:C})=>f(t,C&&C.value),$=({target:C})=>p(t,C&&C.value);return T.jsxs(T.Fragment,{children:[wr(T.jsx(Pu,{htmlFor:t,required:n,disabled:a,className:g.label,children:l}),u),T.jsx(QH,{id:t,name:t,placeholder:r,autoFocus:h,required:n,disabled:a||o,...y,input:{className:g.input,list:b.examples?da(t):void 0},value:s||s===0?s:"",onChange:d||S,onFocus:$,onBlur:w,"aria-describedby":Ot(t,!!b.examples)}),Array.isArray(b.examples)&&T.jsx("datalist",{id:da(t),children:b.examples.concat(b.default&&!b.examples.includes(b.default)?[b.default]:[]).map(C=>T.jsx("option",{value:C},C))})]})}const KRt=Wd({label:{marginTop:vd.spacingVerticalS,marginBottom:vd.spacingVerticalM}});function GRt(e){const{id:t,description:r}=e,n=KRt();return r?T.jsx(YE,{block:!0,id:t,className:n.label,children:r}):null}const YRt=Wd({errorCard:{backgroundColor:vd.colorStatusDangerBackground1,marginBottom:vd.spacingVerticalL,"&::after":{...Fbe.borderColor(vd.colorStatusDangerBorder1)}},errorTitle:{marginTop:0,marginBottom:0}});function XRt({errors:e,registry:t}){const{translateString:r}=t,n=YRt();return T.jsxs(Zye,{appearance:"outline",className:n.errorCard,children:[T.jsx(YE,{as:"h6",size:400,className:n.errorTitle,children:r($t.ErrorsLabel)}),T.jsx("ul",{children:e.map((o,a)=>T.jsx("li",{children:o.stack},a))})]})}function UN(e){const{color:t,uiSchema:r,registry:n,...o}=e;return T.jsx(WN,{...o,color:"secondary"})}function QRt(e){const{registry:{translateString:t}}=e;return T.jsx(UN,{title:t($t.CopyButton),...e,icon:T.jsx(WEt,{})})}function ZRt(e){const{registry:{translateString:t}}=e;return T.jsx(UN,{title:t($t.MoveDownButton),...e,icon:T.jsx(jEt,{})})}function JRt(e){const{registry:{translateString:t}}=e;return T.jsx(UN,{title:t($t.MoveUpButton),...e,icon:T.jsx(LEt,{})})}function eFt(e){const{registry:{translateString:t}}=e;return T.jsx(UN,{title:t($t.RemoveButton),...e,icon:T.jsx(UEt,{})})}const tFt=Wd({list:{marginTop:0,marginBottom:0,paddingLeft:0,listStyleType:"none"},listItem:{paddingLeft:vd.spacingHorizontalL,paddingTop:vd.spacingVerticalXS,paddingBottom:vd.spacingVerticalXS},errorLabel:{color:vd.colorPaletteRedForeground1}});function rFt(e){const{errors:t=[],idSchema:r}=e,n=tFt();if(t.length===0)return null;const o=Vd(r);return T.jsx("ul",{className:n.list,children:t.map((a,i)=>T.jsx("li",{className:n.listItem,children:T.jsx("small",{className:n.errorLabel,id:o,children:a})},i))})}function nFt(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Tp(t);return T.jsx(wRt,{id:n,children:r})}function oFt(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,rawErrors:p=[],errors:h,help:v,description:b,rawDescription:g,schema:y,uiSchema:S,registry:w}=e,$=At(S),C=Ct("WrapIfAdditionalTemplate",w,$);return s?T.jsx("div",{style:{display:"none"},children:r}):T.jsx(C,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,schema:y,uiSchema:S,registry:w,children:T.jsxs(qN,{validationState:p.length?"error":void 0,required:f,children:[r,i&&g?T.jsx(YE,{as:"p",block:!0,style:{marginTop:0,marginBottom:0},children:b}):null,h,v]})})}function aFt(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:u,formData:c,onAddClick:d,registry:f}=e,p=At(s),h=Ct("TitleFieldTemplate",f,p),v=Ct("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:b}}=f.templates;return T.jsxs(T.Fragment,{children:[r&&T.jsx(h,{id:Nu(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&T.jsx(v,{id:pa(l),description:t,schema:u,uiSchema:s,registry:f}),T.jsxs(_c,{fill:!0,column:!0,gap:"gap.medium",children:[n.map((g,y)=>g.hidden?g.content:T.jsx(_c,{column:!0,fill:!0,style:{marginBottom:"10px"},children:g.content},y)),$p(u,s,c)&&T.jsx(_c,{hAlign:"end",children:T.jsx(b,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})})]})]})}const iFt=Wd({buttonRow:{marginTop:vd.spacingVerticalL}});function sFt({uiSchema:e}){const t=iFt(),{submitText:r,norender:n,props:o}=Pp(e);return n?null:T.jsx("div",{className:t.buttonRow,children:T.jsx(WN,{appearance:"primary",type:"submit",...o,children:r})})}const lFt=Wd({root:{marginTop:"8px",marginBottom:"8px"}});function uFt({id:e,title:t}){const r=lFt();return T.jsxs("div",{id:e,className:r.root,children:[T.jsx(YE,{as:"h5",size:600,children:t}),T.jsx(Wye,{})]})}const cFt=Wd({input:{width:"100%"},label:{marginBottom:"4px"}});function dFt(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,required:c,schema:d,uiSchema:f,registry:p}=e,{templates:h,translateString:v}=p,b=cFt(),{RemoveButton:g}=h.ButtonTemplates,y=v($t.KeyLabel,[i]),S=Nl in d,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};if(!S)return T.jsx("div",{className:r,style:n,children:t});const $=({target:C})=>l(C.value);return T.jsxs(_c,{gap:"gap.medium",vAlign:"center",className:r,style:n,children:[T.jsx("div",{children:T.jsx(qN,{label:y,required:c,children:T.jsx(QH,{required:c,defaultValue:i,disabled:o||u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:$,type:"text",input:{className:b.input}})})}),T.jsx("div",{children:t}),T.jsx("div",{children:T.jsx(g,{iconType:"default",style:w,disabled:o||u,onClick:s(i),uiSchema:f,registry:p})})]},`${a}-key`)}function fFt(){return{ArrayFieldItemTemplate:zRt,ArrayFieldTemplate:WRt,BaseInputTemplate:URt,ButtonTemplates:{CopyButton:QRt,AddButton:VRt,MoveDownButton:ZRt,MoveUpButton:JRt,RemoveButton:eFt,SubmitButton:sFt},DescriptionFieldTemplate:GRt,ErrorListTemplate:XRt,FieldErrorTemplate:rFt,FieldHelpTemplate:nFt,FieldTemplate:oFt,ObjectFieldTemplate:aFt,TitleFieldTemplate:uFt,WrapIfAdditionalTemplate:dFt}}function pFt(e){const{schema:t,id:r,value:n,disabled:o,readonly:a,label:i="",hideLabel:s,autofocus:l,onChange:u,onBlur:c,onFocus:d,registry:f,options:p,uiSchema:h}=e,v=Ct("DescriptionFieldTemplate",f,p),b=kd(t),g=({target:{checked:$}})=>u($),y=({target:$})=>c(r,$&&$.value),S=({target:$})=>d(r,$&&$.value),w=p.description??t.description;return T.jsxs(T.Fragment,{children:[!s&&!!w&&T.jsx(v,{id:pa(r),description:w,schema:t,uiSchema:h,registry:f}),T.jsx(GH,{id:r,name:r,label:i,checked:typeof n>"u"?!1:!!n,required:b,disabled:o||a,autoFocus:l,onChange:g,onBlur:y,onFocus:S,"aria-describedby":Ot(r)})]})}function mFt({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:u,onBlur:c,onFocus:d}){const{enumOptions:f,enumDisabled:p,inline:h,emptyValue:v}=o,b=Array.isArray(a)?a:[a],g=w=>({target:{checked:$}})=>{u($?qh(w,b,f):Wh(w,b,f))},y=({target:w})=>c(r,Tt(w&&w.value,f,v)),S=({target:w})=>d(r,Tt(w&&w.value,f,v));return T.jsxs(T.Fragment,{children:[wr(T.jsx(Pu,{required:l,htmlFor:r,children:e||void 0}),t),T.jsx(_c,{column:!h,children:Array.isArray(f)&&f.map((w,$)=>{const C=Fu(w.value,b),x=Array.isArray(p)&&p.indexOf(w.value)!==-1;return T.jsx(GH,{id:Wa(r,$),name:r,label:w.label,checked:C,disabled:n||x||s,autoFocus:i&&$===0,onChange:g($),onBlur:y,onFocus:S,"aria-describedby":Ot(r)},$)})})]})}function hFt({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:u,onFocus:c}){const{enumOptions:d,enumDisabled:f,emptyValue:p}=t,h=(y,S)=>l(Tt(S.value,d,p)),v=({target:y})=>u(e,Tt(y&&y.value,d,p)),b=({target:y})=>c(e,Tt(y&&y.value,d,p)),g=mi(r,d)??void 0;return T.jsxs(T.Fragment,{children:[wr(T.jsx(Pu,{required:n,htmlFor:e,children:i||void 0}),s),T.jsx(qye,{id:e,name:e,value:g,onChange:h,onBlur:v,onFocus:b,"aria-describedby":Ot(e),children:Array.isArray(d)&&d.map((y,S)=>{const w=Array.isArray(f)&&f.indexOf(y.value)!==-1;return T.jsx(Uye,{id:Wa(e,S),label:y.label,value:String(S),disabled:o||w||a},S)})})]})}function vFt(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:u,label:c,hideLabel:d,id:f}=e,p={value:t,label:c,id:f,name:f,..._p(s)},h=(g,y)=>{l(y.value??i.emptyValue)},v=({target:g})=>o(f,g&&g.value),b=({target:g})=>a(f,g&&g.value);return T.jsxs(T.Fragment,{children:[wr(T.jsx(Pu,{required:u,htmlFor:f,children:c||void 0}),d),T.jsx(Kye,{disabled:n||r,onChange:h,onBlur:v,onFocus:b,...p,"aria-describedby":Ot(f)})]})}function gFt(e,t){return t?e.selectedOptions:e.selectedOptions[0]}function bFt({id:e,options:t,label:r,hideLabel:n,value:o,required:a,disabled:i,readonly:s,multiple:l=!1,autofocus:u=!1,rawErrors:c=[],onChange:d,onBlur:f,onFocus:p,schema:h,placeholder:v}){const{enumOptions:b,enumDisabled:g,emptyValue:y}=t,S=mi(o,b,l);let w=[];typeof S=="string"?w=[S]:Array.isArray(S)&&(w=S.map(k=>String(k)));const $=w.map(k=>b?b[Number(k)].label:void 0).join(", "),C=()=>f(e,S),x=()=>p(e,S),E=(k,I)=>{const N=gFt(I,l);return d(Tt(N,b,y))},_=!l&&h.default===void 0;return T.jsx(qN,{label:wr(r,n),validationState:c.length?"error":void 0,required:a,children:T.jsxs(Hye,{id:e,name:e,multiselect:l,className:"form-control",value:$,disabled:i||s,autoFocus:u,onBlur:C,onFocus:x,onOptionSelect:E,selectedOptions:w,"aria-describedby":Ot(e),children:[_&&T.jsx(l6,{value:"",children:v||""}),Array.isArray(b)&&b.map(({value:k,label:I},N)=>{const z=g&&g.indexOf(k)!==-1;return T.jsx(l6,{value:String(N),disabled:z,children:I},N)})]})})}const yFt=Wd({label:{paddingTop:"2px",paddingBottom:"2px",marginBottom:"2px"}});function SFt(e){const{id:t,placeholder:r,required:n,readonly:o,disabled:a,value:i,label:s,hideLabel:l,onChange:u,onChangeOverride:c,onBlur:d,onFocus:f,autofocus:p,options:h,schema:v}=e,b=yFt(),g=({target:{value:$}})=>u($===""?h.emptyValue:$),y=({target:$})=>d(t,$&&$.value),S=({target:$})=>f(t,$&&$.value);let w=5;return(typeof h.rows=="string"||typeof h.rows=="number")&&(w=h.rows),T.jsxs(T.Fragment,{children:[wr(T.jsx(Pu,{htmlFor:t,required:n,disabled:a,className:b.label,children:s}),l),T.jsx(Qye,{id:t,name:t,placeholder:r,autoFocus:p,required:n,disabled:a||o,value:i||i===0?i:"",onChange:c||g,onFocus:S,onBlur:y,"aria-describedby":Ot(t,!!v.examples),rows:w})]})}function wFt(){return{CheckboxWidget:pFt,CheckboxesWidget:mFt,RadioWidget:hFt,RangeWidget:vFt,SelectWidget:bFt,TextareaWidget:SFt}}function Jye(){return{templates:fFt(),widgets:wFt()}}const CFt=Jye();function xFt(){return Fd(Jye())}xFt();const $Ft=e=>{const{children:t,targetDocument:r}=e,n=m.useMemo(()=>xbe(r),[r]);return T.jsx(P$t,{renderer:n,targetDocument:r,children:T.jsx(yye,{targetDocument:r,theme:$kt,children:t})})},EFt=e=>({document:t})=>T.jsx($Ft,{targetDocument:t,children:e.children});var e1e={exports:{}},In={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ua=typeof Symbol=="function"&&Symbol.for,JH=Ua?Symbol.for("react.element"):60103,eW=Ua?Symbol.for("react.portal"):60106,KN=Ua?Symbol.for("react.fragment"):60107,GN=Ua?Symbol.for("react.strict_mode"):60108,YN=Ua?Symbol.for("react.profiler"):60114,XN=Ua?Symbol.for("react.provider"):60109,QN=Ua?Symbol.for("react.context"):60110,tW=Ua?Symbol.for("react.async_mode"):60111,ZN=Ua?Symbol.for("react.concurrent_mode"):60111,JN=Ua?Symbol.for("react.forward_ref"):60112,eD=Ua?Symbol.for("react.suspense"):60113,_Ft=Ua?Symbol.for("react.suspense_list"):60120,tD=Ua?Symbol.for("react.memo"):60115,rD=Ua?Symbol.for("react.lazy"):60116,kFt=Ua?Symbol.for("react.block"):60121,PFt=Ua?Symbol.for("react.fundamental"):60117,TFt=Ua?Symbol.for("react.responder"):60118,IFt=Ua?Symbol.for("react.scope"):60119;function jl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JH:switch(e=e.type,e){case tW:case ZN:case KN:case YN:case GN:case eD:return e;default:switch(e=e&&e.$$typeof,e){case QN:case JN:case rD:case tD:case XN:return e;default:return t}}case eW:return t}}}function t1e(e){return jl(e)===ZN}In.AsyncMode=tW;In.ConcurrentMode=ZN;In.ContextConsumer=QN;In.ContextProvider=XN;In.Element=JH;In.ForwardRef=JN;In.Fragment=KN;In.Lazy=rD;In.Memo=tD;In.Portal=eW;In.Profiler=YN;In.StrictMode=GN;In.Suspense=eD;In.isAsyncMode=function(e){return t1e(e)||jl(e)===tW};In.isConcurrentMode=t1e;In.isContextConsumer=function(e){return jl(e)===QN};In.isContextProvider=function(e){return jl(e)===XN};In.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JH};In.isForwardRef=function(e){return jl(e)===JN};In.isFragment=function(e){return jl(e)===KN};In.isLazy=function(e){return jl(e)===rD};In.isMemo=function(e){return jl(e)===tD};In.isPortal=function(e){return jl(e)===eW};In.isProfiler=function(e){return jl(e)===YN};In.isStrictMode=function(e){return jl(e)===GN};In.isSuspense=function(e){return jl(e)===eD};In.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===KN||e===ZN||e===YN||e===GN||e===eD||e===_Ft||typeof e=="object"&&e!==null&&(e.$$typeof===rD||e.$$typeof===tD||e.$$typeof===XN||e.$$typeof===QN||e.$$typeof===JN||e.$$typeof===PFt||e.$$typeof===TFt||e.$$typeof===IFt||e.$$typeof===kFt)};In.typeOf=jl;e1e.exports=In;var RFt=e1e.exports,gd=function(t,r){if(typeof t=="function"){t(r);return}t!==null&&typeof t=="object"&&(t.current=r)},FFt=function(e){co(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i0?m.cloneElement(a,o):a;return m.createElement(i,{innerRef:n},s)},DFt=Array.isArray;const _a=DFt;var AFt=typeof global=="object"&&global&&global.Object===Object&&global;const r1e=AFt;var MFt=typeof self=="object"&&self&&self.Object===Object&&self,BFt=r1e||MFt||Function("return this")();const Dp=BFt;var jFt=Dp.Symbol;const Bd=jFt;var n1e=Object.prototype,LFt=n1e.hasOwnProperty,zFt=n1e.toString,hw=Bd?Bd.toStringTag:void 0;function VFt(e){var t=LFt.call(e,hw),r=e[hw];try{e[hw]=void 0;var n=!0}catch{}var o=zFt.call(e);return n&&(t?e[hw]=r:delete e[hw]),o}var HFt=Object.prototype,WFt=HFt.toString;function qFt(e){return WFt.call(e)}var UFt="[object Null]",KFt="[object Undefined]",dre=Bd?Bd.toStringTag:void 0;function Ud(e){return e==null?e===void 0?KFt:UFt:dre&&dre in Object(e)?VFt(e):qFt(e)}function Ac(e){return e!=null&&typeof e=="object"}var GFt="[object Symbol]";function nD(e){return typeof e=="symbol"||Ac(e)&&Ud(e)==GFt}var YFt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XFt=/^\w*$/;function rW(e,t){if(_a(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||nD(e)?!0:XFt.test(e)||!YFt.test(e)||t!=null&&e in Object(t)}function Ph(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var QFt="[object AsyncFunction]",ZFt="[object Function]",JFt="[object GeneratorFunction]",eOt="[object Proxy]";function t1(e){if(!Ph(e))return!1;var t=Ud(e);return t==ZFt||t==JFt||t==QFt||t==eOt}var tOt=Dp["__core-js_shared__"];const $B=tOt;var fre=function(){var e=/[^.]+$/.exec($B&&$B.keys&&$B.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rOt(e){return!!fre&&fre in e}var nOt=Function.prototype,oOt=nOt.toString;function g0(e){if(e!=null){try{return oOt.call(e)}catch{}try{return e+""}catch{}}return""}var aOt=/[\\^$.*+?()[\]{}|]/g,iOt=/^\[object .+?Constructor\]$/,sOt=Function.prototype,lOt=Object.prototype,uOt=sOt.toString,cOt=lOt.hasOwnProperty,dOt=RegExp("^"+uOt.call(cOt).replace(aOt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fOt(e){if(!Ph(e)||rOt(e))return!1;var t=t1(e)?dOt:iOt;return t.test(g0(e))}function pOt(e,t){return e==null?void 0:e[t]}function b0(e,t){var r=pOt(e,t);return fOt(r)?r:void 0}var mOt=b0(Object,"create");const u$=mOt;function hOt(){this.__data__=u$?u$(null):{},this.size=0}function vOt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gOt="__lodash_hash_undefined__",bOt=Object.prototype,yOt=bOt.hasOwnProperty;function SOt(e){var t=this.__data__;if(u$){var r=t[e];return r===gOt?void 0:r}return yOt.call(t,e)?t[e]:void 0}var wOt=Object.prototype,COt=wOt.hasOwnProperty;function xOt(e){var t=this.__data__;return u$?t[e]!==void 0:COt.call(t,e)}var $Ot="__lodash_hash_undefined__";function EOt(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=u$&&t===void 0?$Ot:t,this}function Bg(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}function FOt(e,t){var r=this.__data__,n=aD(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ap(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=eNt}var tNt=1/0;function fS(e){if(typeof e=="string"||nD(e))return e;var t=e+"";return t=="0"&&1/e==-tNt?"-0":t}function rNt(e,t,r){t=XE(t,e);for(var n=-1,o=t.length,a=!1;++no?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n0){if(++t>=cNt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mNt=pNt(uNt);const u1e=mNt;function fD(e,t){return u1e(l1e(e,t,dD),e+"")}var hNt=fD(aNt);const Lt=hNt;function iW(e){return e===void 0}var vNt=/\s/;function gNt(e){for(var t=e.length;t--&&vNt.test(e.charAt(t)););return t}var bNt=/^\s+/;function yNt(e){return e&&e.slice(0,gNt(e)+1).replace(bNt,"")}var gre=0/0,SNt=/^[-+]0x[0-9a-f]+$/i,wNt=/^0b[01]+$/i,CNt=/^0o[0-7]+$/i,xNt=parseInt;function c1e(e){if(typeof e=="number")return e;if(nD(e))return gre;if(Ph(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ph(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yNt(e);var r=wNt.test(e);return r||CNt.test(e)?xNt(e.slice(2),r?2:8):SNt.test(e)?gre:+e}var bre=1/0,$Nt=17976931348623157e292;function u6(e){if(!e)return e===0?e:0;if(e=c1e(e),e===bre||e===-bre){var t=e<0?-1:1;return t*$Nt}return e===e?e:0}function sW(e){var t=u6(e),r=t%1;return t===t?r?t-r:t:0}function d1e(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++rs))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=r&TDt?new r1:void 0;for(a.set(e,t),a.set(t,e);++d-1}function k1e(e,t,r){for(var n=-1,o=e==null?0:e.length;++n-1?o[a?t[i]:i]:void 0}}var BAt=Math.max;function p6(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:sW(r);return o<0&&(o=BAt(n+o,0)),$1e(e,y0(t),o)}var jAt=MAt(p6);const P1e=jAt;function LAt(e,t){var r;return pS(e,function(n,o,a){return r=t(n,o,a),!r}),!!r}function T1e(e,t,r){if(!Ph(r))return!1;var n=typeof t;return(n=="number"?Bp(r)&&uD(t,r.length):n=="string"&&t in r)?oD(r[t],e):!1}function FC(e,t,r){var n=_a(e)?g1e:LAt;return r&&T1e(e,t,r)&&(t=void 0),n(e,y0(t))}var zAt=function(t,r){return FC(m.Children.toArray(t),{type:r})},Rr=function(t){return t==null||Array.isArray(t)&&t.length===0},VAt={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function Are(e){var t=typeof e;return t==="string"||t==="number"?VAt[e]||e:""}var Ne=function(t,r){return t&&r},ji=function(t,r){return t&&t!==!0&&t+" "+r},La=function(t,r){return t&&(t===!0?r:t+" "+r)},nR=function(t,r){return!t||t===!0?null:t.replace("large screen","large-screen").replace(/ vertically/g,"-vertically").split(" ").map(function(n){return n.replace("-"," ")+" "+r}).join(" ")},ZE=function(t){return t==="justified"?"justified":ji(t,"aligned")},Jh=function(t){return ji(t,"aligned")},su=function(t,r,n){if(r===void 0&&(r=""),n===void 0&&(n=!1),n&&t==="equal")return"equal width";var o=typeof t;return(o==="string"||o==="number")&&r?Are(t)+" "+r:Are(t)},HAt=200;function I1e(e,t,r,n){var o=-1,a=_1e,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=sD(t,p1e(r))),n?(a=k1e,i=!1):t.length>=HAt&&(a=cW,i=!1,t=new r1(t));e:for(;++o0&&r(s)?t>1?mD(s,t-1,r,n,o):y1e(o,s):n||(o[o.length]=s)}return o}var qAt=fD(function(e,t){return rR(e)?I1e(e,mD(t,1,rR,!0)):[]});const Bre=qAt;var UAt="\\ud800-\\udfff",KAt="\\u0300-\\u036f",GAt="\\ufe20-\\ufe2f",YAt="\\u20d0-\\u20ff",XAt=KAt+GAt+YAt,QAt="\\ufe0e\\ufe0f",ZAt="\\u200d",JAt=RegExp("["+ZAt+UAt+XAt+QAt+"]");function eMt(e){return JAt.test(e)}function tMt(e,t,r){t=="__proto__"&&JI?JI(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var rMt=Object.prototype,nMt=rMt.hasOwnProperty;function oMt(e,t,r){var n=e[t];(!(nMt.call(e,t)&&oD(n,r))||r===void 0&&!(t in e))&&tMt(e,t,r)}function R1e(e,t,r,n){if(!Ph(e))return e;t=XE(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o=0;o-=1)this.handlers[o].called||(this.handlers[o].called=!0,this.handlers[o](t));for(var a=n;a>=0;a-=1)this.handlers[a].called=!1}else(0,this.handlers[n])(t)}},{key:"hasHandlers",value:function(){return this.handlers.length>0}},{key:"removeHandlers",value:function(t){for(var r=[],n=this.handlers.length,o=0;o0;var r=this.handlerSets.get(t);return!!r&&r.hasHandlers()}},{key:"removeHandlers",value:function(t,r){var n=zre(this.handlerSets);if(!n.has(t))return new e(this.poolName,n);var o=n.get(t).removeHandlers(r);return o.hasHandlers()?n.set(t,o):n.delete(t),new e(this.poolName,n)}}]),e}();mu(m6,"createByType",function(e,t,r){var n=new Map;return n.set(t,new B1e(r)),new m6(e,n)});var EMt=function(){function e(t){var r=this;JE(this,e),mu(this,"handlers",new Map),mu(this,"pools",new Map),mu(this,"target",void 0),mu(this,"createEmitter",function(n){return function(o){r.pools.forEach(function(a){a.dispatchEvent(n,o)})}}),this.target=t}return e_(e,[{key:"addHandlers",value:function(t,r,n){if(this.pools.has(t)){var o=this.pools.get(t);this.pools.set(t,o.addHandlers(r,n))}else this.pools.set(t,m6.createByType(t,r,n));this.handlers.has(r)||this.addTargetHandler(r)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(t,r,n){if(this.pools.has(t)){var o=this.pools.get(t).removeHandlers(r,n);o.hasHandlers()?this.pools.set(t,o):this.pools.delete(t);var a=!1;this.pools.forEach(function(i){return a=a||i.hasHandlers(r)}),a||this.removeTargetHandler(r)}}},{key:"addTargetHandler",value:function(t){var r=this.createEmitter(t);this.handlers.set(t,r),this.target.addEventListener(t,r,!0)}},{key:"removeTargetHandler",value:function(t){this.handlers.has(t)&&(this.target.removeEventListener(t,this.handlers.get(t),!0),this.handlers.delete(t))}}]),e}(),_Mt=function(){function e(){var t=this;JE(this,e),mu(this,"targets",new Map),mu(this,"getTarget",function(r){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],o=Hre(r);if(t.targets.has(o))return t.targets.get(o);if(!n)return null;var a=new EMt(o);return t.targets.set(o,a),a}),mu(this,"removeTarget",function(r){t.targets.delete(Hre(r))})}return e_(e,[{key:"sub",value:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(jre.canUseDOM){var o=n.target,a=o===void 0?document:o,i=n.pool,s=i===void 0?"default":i;this.getTarget(a).addHandlers(s,t,Vre(r))}}},{key:"unsub",value:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(jre.canUseDOM){var o=n.target,a=o===void 0?document:o,i=n.pool,s=i===void 0?"default":i,l=this.getTarget(a,!1);l&&(l.removeHandlers(s,t,Vre(r)),l.hasHandlers()||this.removeTarget(a))}}}]),e}(),h6=new _Mt,kB=function(e){function t(){return JE(this,t),xMt(this,A1e(t).apply(this,arguments))}return wMt(t,SMt.PureComponent),e_(t,[{key:"componentDidMount",value:function(){this.subscribe(this.props)}},{key:"componentDidUpdate",value:function(r){this.unsubscribe(r),this.subscribe(this.props)}},{key:"componentWillUnmount",value:function(){this.unsubscribe(this.props)}},{key:"subscribe",value:function(r){var n=r.name,o=r.on,a=r.pool,i=r.target;h6.sub(n,o,{pool:a,target:i})}},{key:"unsubscribe",value:function(r){var n=r.name,o=r.on,a=r.pool,i=r.target;h6.unsub(n,o,{pool:a,target:i})}},{key:"render",value:function(){return null}}]),t}();mu(kB,"defaultProps",{pool:"default",target:"document"}),kB.propTypes={},oR.instance=h6,oR.default=kB;var mW;mW=oR;pW.exports=mW.default;pW.exports.instance=mW.instance;var kMt=pW.exports;const Nm=zt(kMt);function j1e(){}var PMt=1/0,TMt=py&&1/dW(new py([,-0]))[1]==PMt?function(e){return new py(e)}:j1e;const IMt=TMt;var RMt=200;function L1e(e,t,r){var n=-1,o=_1e,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=k1e;else if(a>=RMt){var u=t?null:IMt(e);if(u)return dW(u);i=!1,o=cW,l=new r1}else l=t?[]:s;e:for(;++n-1:!!o&&E1e(e,t,r)>-1}var z1e=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","enterKeyHint","form","id","inputMode","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"],WMt=["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],qMt=[].concat(z1e,WMt),UMt=["alt","height","src","srcSet","width","loading"],vW=function(t,r){r===void 0&&(r={});var n=r,o=n.htmlProps,a=o===void 0?qMt:o,i=n.includeAria,s=i===void 0?!0:i,l={},u={};return NAt(t,function(c,d){var f=s&&(/^aria-.*$/.test(d)||d==="role"),p=t_(a,d)||f?l:u;p[d]=c}),[l,u]},KMt=typeof document=="object"&&document!==null,GMt=typeof window=="object"&&window!==null&&window.self===window,YMt=function e(){return tn(e.override)?KMt&&GMt:e.override};const b6=YMt;var XMt=Math.max,QMt=Math.min;function ZMt(e,t,r){return e>=QMt(t,r)&&e"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"};for(var uk=0;uk<24;uk+=1)aR[112+uk]="F"+(uk+1);for(var PB=0;PB<26;PB+=1){var TB=PB+65;aR[TB]=[String.fromCharCode(TB+32),String.fromCharCode(TB)]}var Et={codes:aR,getCode:function(t){return qre(t)?t.keyCode||t.which||this[t.key]:this[t]},getKey:function(t){var r=qre(t);if(r&&t.key)return t.key;var n=aR[r?t.keyCode||t.which:t];return Array.isArray(n)&&(r?n=n[t.shiftKey?1:0]:n=n[0]),n},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};Et.Spacebar=Et[" "];Et.Digit0=Et[0];Et.Digit1=Et[1];Et.Digit2=Et[2];Et.Digit3=Et[3];Et.Digit4=Et[4];Et.Digit5=Et[5];Et.Digit6=Et[6];Et.Digit7=Et[7];Et.Digit8=Et[8];Et.Digit9=Et[9];Et.Tilde=Et["~"];Et.GraveAccent=Et["`"];Et.ExclamationPoint=Et["!"];Et.AtSign=Et["@"];Et.PoundSign=Et["#"];Et.PercentSign=Et["%"];Et.Caret=Et["^"];Et.Ampersand=Et["&"];Et.PlusSign=Et["+"];Et.MinusSign=Et["-"];Et.EqualsSign=Et["="];Et.DivisionSign=Et["/"];Et.MultiplicationSign=Et["*"];Et.Comma=Et[","];Et.Decimal=Et["."];Et.Colon=Et[":"];Et.Semicolon=Et[";"];Et.Pipe=Et["|"];Et.BackSlash=Et["\\"];Et.QuestionMark=Et["?"];Et.SingleQuote=Et["'"];Et.DoubleQuote=Et['"'];Et.LeftCurlyBrace=Et["{"];Et.RightCurlyBrace=Et["}"];Et.LeftParenthesis=Et["("];Et.RightParenthesis=Et[")"];Et.LeftAngleBracket=Et["<"];Et.RightAngleBracket=Et[">"];Et.LeftSquareBracket=Et["["];Et.RightSquareBracket=Et["]"];var o5t=Et;const Aa=zt(o5t);var gW=function(e){co(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i1?d-1:0),p=1;p1?p-1:0),v=1;v1?d-1:0),p=1;p1?f-1:0),h=1;h1?f-1:0),h=1;h=u}),u>=d.length-1&&(p=f[f.length-1]);else{var v=p6(d,["value",c]);p=t_(f,v)?v:void 0}return(!p||p<0)&&(p=f[0]),p}var Xre=function(t,r){return tn(t)?r:t},Qre=function(t){return t&&t.map(function(r){return cMt(r,["key","value"])})};function J1e(e){var t=e.flag,r=e.image,n=e.text;return t1(n)?n:{content:Y.createElement(Y.Fragment,null,Y1e.create(t),Il.create(r),n)}}var Yi=function(e){co(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i=u||u===1){n.open(s);return}Lt(n.searchRef.current,"focus")},n.handleIconClick=function(s){var l=n.props.clearable,u=n.hasValue();Lt(n.props,"onClick",s,n.props),s.stopPropagation(),l&&u?n.clearValue(s):n.toggle(s)},n.handleItemClick=function(s,l){var u=n.props,c=u.multiple,d=u.search,f=n.state.value,p=l.value;if(s.stopPropagation(),(c||l.disabled)&&s.nativeEvent.stopImmediatePropagation(),!l.disabled){var h=l["data-additional"],v=c?Gre(n.state.value,[p]):p,b=c?!!Bre(v,f).length:v!==f;b&&(n.setState({value:v}),n.handleChange(s,v)),n.clearSearchQuery(),Lt(d?n.searchRef.current:n.ref.current,"focus"),n.closeOnChange(s),h&&Lt(n.props,"onAddItem",s,G({},n.props,{value:p}))}},n.handleFocus=function(s){var l=n.state.focus;l||(Lt(n.props,"onFocus",s,n.props),n.setState({focus:!0}))},n.handleBlur=function(s){var l=bd(s,"currentTarget");if(!(l&&l.contains(document.activeElement))){var u=n.props,c=u.closeOnBlur,d=u.multiple,f=u.selectOnBlur;n.isMouseDown||(Lt(n.props,"onBlur",s,n.props),f&&!d&&(n.makeSelectedItemActive(s,n.state.selectedIndex),c&&n.close()),n.setState({focus:!1}),n.clearSearchQuery())}},n.handleSearchChange=function(s,l){var u=l.value;s.stopPropagation();var c=n.props.minCharacters,d=n.state.open,f=u;if(Lt(n.props,"onSearchChange",s,G({},n.props,{searchQuery:f})),n.setState({searchQuery:f,selectedIndex:0}),!d&&f.length>=c){n.open();return}d&&c!==1&&f.lengthc||f<0)?f=l:f>c?f=0:f<0&&(f=c),u[f].disabled?n.getSelectedIndexAfterMove(s,f):f}},n.handleIconOverrides=function(s){var l=n.props.clearable,u=ft(l&&n.hasValue()&&"clear",s.className);return{className:u,onClick:function(d){Lt(s,"onClick",d,s),n.handleIconClick(d)}}},n.clearValue=function(s){var l=n.props.multiple,u=l?[]:"";n.setState({value:u}),n.handleChange(s,u)},n.computeSearchInputTabIndex=function(){var s=n.props,l=s.disabled,u=s.tabIndex;return tn(u)?l?-1:0:u},n.computeSearchInputWidth=function(){var s=n.state.searchQuery;if(n.sizerRef.current&&s){n.sizerRef.current.style.display="inline",n.sizerRef.current.textContent=s;var l=Math.ceil(n.sizerRef.current.getBoundingClientRect().width);return n.sizerRef.current.style.removeProperty("display"),l}},n.computeTabIndex=function(){var s=n.props,l=s.disabled,u=s.search,c=s.tabIndex;if(!u)return l?-1:tn(c)?0:c},n.handleSearchInputOverrides=function(s){return{onChange:function(u,c){Lt(s,"onChange",u,c),n.handleSearchChange(u,c)}}},n.hasValue=function(){var s=n.props.multiple,l=n.state.value;return s?!lk(l):!tn(l)&&l!==""},n.scrollSelectedItemIntoView=function(){if(n.ref.current){var s=n.ref.current.querySelector(".menu.visible");if(s){var l=s.querySelector(".item.selected");if(l){var u=l.offsetTops.scrollTop+s.clientHeight;u?s.scrollTop=l.offsetTop:c&&(s.scrollTop=l.offsetTop+l.clientHeight-s.clientHeight)}}}},n.setOpenDirection=function(){if(n.ref.current){var s=n.ref.current.querySelector(".menu.visible");if(s){var l=n.ref.current.getBoundingClientRect(),u=s.clientHeight,c=document.documentElement.clientHeight-l.top-l.height-u,d=l.top-u,f=c<0&&d>c;!f!=!n.state.upward&&n.setState({upward:f})}}},n.open=function(s,l){s===void 0&&(s=null),l===void 0&&(l=!0);var u=n.props,c=u.disabled,d=u.search;c||(d&&Lt(n.searchRef.current,"focus"),Lt(n.props,"onOpen",s,n.props),l&&n.setState({open:!0}),n.scrollSelectedItemIntoView())},n.close=function(s,l){l===void 0&&(l=n.handleClose),n.state.open&&(Lt(n.props,"onClose",s,n.props),n.setState({open:!1},l))},n.handleClose=function(){var s=document.activeElement===n.searchRef.current;!s&&n.ref.current&&n.ref.current.blur();var l=document.activeElement===n.ref.current,u=s||l;n.setState({focus:u})},n.toggle=function(s){return n.state.open?n.close(s):n.open(s)},n.renderText=function(){var s=n.props,l=s.multiple,u=s.placeholder,c=s.search,d=s.text,f=n.state,p=f.searchQuery,h=f.selectedIndex,v=f.value,b=f.open,g=n.hasValue(),y=ft(u&&!g&&"default","text",c&&p&&"filtered"),S=u,w;return d?S=d:b&&!l?w=n.getSelectedItem(h):g&&(w=n.getItemByValue(v)),Rh.create(w?J1e(w):S,{defaultProps:{className:y}})},n.renderSearchInput=function(){var s=n.props,l=s.search,u=s.searchInput,c=n.state.searchQuery;return l&&Y.createElement(Md,{innerRef:n.searchRef},Q1e.create(u,{defaultProps:{style:{width:n.computeSearchInputWidth()},tabIndex:n.computeSearchInputTabIndex(),value:c},overrideProps:n.handleSearchInputOverrides}))},n.renderSearchSizer=function(){var s=n.props,l=s.search,u=s.multiple;return l&&u&&Y.createElement("span",{className:"sizer",ref:n.sizerRef})},n.renderLabels=function(){var s=n.props,l=s.multiple,u=s.renderLabel,c=n.state,d=c.selectedLabel,f=c.value;if(!(!l||lk(f))){var p=fg(f,n.getItemByValue);return fg(C5t(p),function(h,v){var b={active:h.value===d,as:"a",key:Xre(h.key,h.value),onClick:n.handleLabelClick,onRemove:n.handleLabelRemove,value:h.value};return Rl.create(u(h,v,b),{defaultProps:b})})}},n.renderOptions=function(){var s=n.props,l=s.lazyLoad,u=s.multiple,c=s.search,d=s.noResultsMessage,f=n.state,p=f.open,h=f.selectedIndex,v=f.value;if(l&&!p)return null;var b=Hb({value:n.state.value,options:n.props.options,searchQuery:n.state.searchQuery,additionLabel:n.props.additionLabel,additionPosition:n.props.additionPosition,allowAdditions:n.props.allowAdditions,deburr:n.props.deburr,multiple:n.props.multiple,search:n.props.search});if(d!==null&&c&&lk(b))return Y.createElement("div",{className:"message"},d);var g=u?function(y){return t_(v,y)}:function(y){return y===v};return fg(b,function(y,S){return X1e.create(G({active:g(y.value),selected:h===S},y,{key:Xre(y.key,y.value),style:G({},y.style,{pointerEvents:"all"})}),{generateKey:!1,overrideProps:function($){return{onClick:function(x,E){$.onClick==null||$.onClick(x,E),n.handleItemClick(x,E)}}}})})},n.renderMenu=function(){var s=n.props,l=s.children,u=s.direction,c=s.header,d=n.state.open,f=n.getDropdownMenuAriaOptions();if(!Rr(l)){var p=m.Children.only(l),h=ft(u,Ne(d,"visible"),p.props.className);return m.cloneElement(p,G({className:h},f))}return Y.createElement(a1,G({},f,{direction:u,open:d}),Ih.create(c,{autoGenerateKey:!1}),n.renderOptions())},n}var r=t.prototype;return r.getInitialAutoControlledState=function(){return{focus:!1,searchQuery:""}},t.getAutoControlledStateFromProps=function(o,a,i){var s={__options:o.options,__value:a.value},l=!IB(i.__value,a.value)||!t5t(Qre(o.options),Qre(i.__options));return l&&(s.selectedIndex=Yre({additionLabel:o.additionLabel,additionPosition:o.additionPosition,allowAdditions:o.allowAdditions,deburr:o.deburr,multiple:o.multiple,search:o.search,selectedIndex:a.selectedIndex,value:a.value,options:o.options,searchQuery:a.searchQuery})),s},r.componentDidMount=function(){var o=this.state.open;o&&this.open(null,!1)},r.shouldComponentUpdate=function(o,a){return!IB(o,this.props)||!IB(a,this.state)},r.componentDidUpdate=function(o,a){var i=this.props,s=i.closeOnBlur,l=i.minCharacters,u=i.openOnFocus,c=i.search;if(!a.focus&&this.state.focus){if(!this.isMouseDown){var d=!c||c&&l===1&&!this.state.open;u&&d&&this.open()}}else a.focus&&!this.state.focus&&!this.isMouseDown&&s&&this.close();!a.open&&this.state.open?(this.setOpenDirection(),this.scrollSelectedItemIntoView()):a.open&&this.state.open,a.selectedIndex!==this.state.selectedIndex&&this.scrollSelectedItemIntoView()},r.getDropdownMenuAriaOptions=function(){var o=this.props,a=o.search,i=o.multiple,s={};return a&&(s["aria-multiselectable"]=i,s.role="listbox"),s},r.render=function(){var o=this.props,a=o.basic,i=o.button,s=o.className,l=o.compact,u=o.disabled,c=o.error,d=o.fluid,f=o.floating,p=o.icon,h=o.inline,v=o.item,b=o.labeled,g=o.loading,y=o.multiple,S=o.pointing,w=o.search,$=o.selection,C=o.scrolling,x=o.simple,E=o.trigger,_=this.state,k=_.focus,I=_.open,N=_.upward,z=ft("ui",Ne(I,"active visible"),Ne(u,"disabled"),Ne(c,"error"),Ne(g,"loading"),Ne(a,"basic"),Ne(i,"button"),Ne(l,"compact"),Ne(d,"fluid"),Ne(f,"floating"),Ne(h,"inline"),Ne(b,"labeled"),Ne(v,"item"),Ne(y,"multiple"),Ne(w,"search"),Ne($,"selection"),Ne(x,"simple"),Ne(C,"scrolling"),Ne(N,"upward"),La(S,"pointing"),"dropdown",s),O=Zt(t,this.props),A=tr(t,this.props),M=this.getDropdownAriaOptions(A,this.props);return Y.createElement(Md,{innerRef:this.ref},Y.createElement(A,G({},O,M,{className:z,onBlur:this.handleBlur,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onFocus:this.handleFocus,onChange:this.handleChange,tabIndex:this.computeTabIndex()}),this.renderLabels(),this.renderSearchInput(),this.renderSearchSizer(),E||this.renderText(),Tl.create(p,{overrideProps:this.handleIconOverrides,autoGenerateKey:!1}),this.renderMenu(),I&&Y.createElement(Nm,{name:"keydown",on:this.closeOnEscape}),I&&Y.createElement(Nm,{name:"click",on:this.closeOnDocumentClick}),k&&Y.createElement(Nm,{name:"keydown",on:this.removeItemOnBackspace})))},t}(fW);Yi.handledProps=["additionLabel","additionPosition","allowAdditions","as","basic","button","children","className","clearable","closeOnBlur","closeOnChange","closeOnEscape","compact","deburr","defaultOpen","defaultSearchQuery","defaultSelectedLabel","defaultUpward","defaultValue","direction","disabled","error","floating","fluid","header","icon","inline","item","labeled","lazyLoad","loading","minCharacters","multiple","noResultsMessage","onAddItem","onBlur","onChange","onClick","onClose","onFocus","onLabelClick","onMouseDown","onOpen","onSearchChange","open","openOnFocus","options","placeholder","pointing","renderLabel","scrolling","search","searchInput","searchQuery","selectOnBlur","selectOnNavigation","selectedLabel","selection","simple","tabIndex","text","trigger","upward","value","wrapSelection"];Yi.propTypes={};Yi.defaultProps={additionLabel:"Add ",additionPosition:"top",closeOnBlur:!0,closeOnEscape:!0,deburr:!1,icon:"dropdown",minCharacters:1,noResultsMessage:"No results found.",openOnFocus:!0,renderLabel:J1e,searchInput:"text",selectOnBlur:!0,selectOnNavigation:!0,wrapSelection:!0};Yi.autoControlledProps=["open","searchQuery","selectedLabel","value","upward"];Yi.Divider=b$;Yi.Header=Ih;Yi.Item=X1e;Yi.Menu=a1;Yi.SearchInput=Q1e;Yi.Text=Rh;function x0(e){return Y.createElement(Yi,G({},e,{selection:!0}))}x0.handledProps=["options"];x0.propTypes={};x0.Divider=Yi.Divider;x0.Header=Yi.Header;x0.Item=Yi.Item;x0.Menu=Yi.Menu;var hD=function(e){co(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i1?u-1:0),d=1;dn.concat(o.trim().split(/\s+/)),[]);return[...new Set(r.filter(n=>!t.includes(n)))].join(" ")}function w6({wrap:e,component:t="div",...r}){return e?T.jsx(t,{...r}):r.children}const oBt=e=>({display:"grid",gridTemplateColumns:`1fr ${e?65:150}px`});function aBt(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,{CopyButton:v,MoveDownButton:b,MoveUpButton:g,RemoveButton:y}=h.templates.ButtonTemplates,S=At(p),{horizontalButtons:w=!0,wrapItem:$=!1}=S.semantic;return T.jsx("div",{className:"array-item",children:T.jsx(w6,{wrap:$,component:Wg,children:T.jsxs(Mi,{style:{...oBt(!w),alignItems:"center"},children:[T.jsx(Mi.Column,{width:16,verticalAlign:"middle",children:t}),n&&T.jsx(Mi.Column,{children:(i||a||s)&&T.jsxs(S0.Group,{size:"mini",vertical:!w,children:[(i||a)&&T.jsx(g,{className:"array-item-move-up",disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&T.jsx(b,{className:"array-item-move-down",disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&T.jsx(v,{className:"array-item-copy",disabled:r||f,onClick:u(l),uiSchema:p,registry:h}),s&&T.jsx(y,{className:"array-item-remove",disabled:r||f,onClick:c(l),uiSchema:p,registry:h})]})})]})})})}function iBt(e){const{uiSchema:t,idSchema:r,canAdd:n,className:o,disabled:a,formContext:i,items:s,onAddClick:l,readonly:u,required:c,schema:d,title:f,registry:p}=e,h=Kd({uiSchema:t,formContext:i,defaultSchemaProps:{horizontalButtons:!0,wrapItem:!1}}),{horizontalButtons:v,wrapItem:b}=h,g={horizontalButtons:v,wrapItem:b},y=At(t),S=Ct("ArrayFieldDescriptionTemplate",p,y),w=Ct("ArrayFieldItemTemplate",p,y),$=Ct("ArrayFieldTitleTemplate",p,y),{ButtonTemplates:{AddButton:C}}=p.templates;return T.jsxs("div",{className:nBt([o,dI(d)?"":"sortable-form-fields"]),children:[T.jsx($,{idSchema:r,title:y.title||f,schema:d,uiSchema:t,required:c,registry:p}),T.jsx(S,{idSchema:r,description:y.description||d.description,schema:d,uiSchema:t,registry:p}),T.jsxs("div",{children:[T.jsx("div",{className:"row array-item-list",children:s&&s.map(({key:x,uiSchema:E={},..._})=>{const k={...E,[If]:{...E[If],semantic:g}};return T.jsx(w,{..._,uiSchema:k},x)})}),n&&T.jsx("div",{style:{marginTop:"1rem",position:"relative",textAlign:"right"},children:T.jsx(C,{onClick:l,disabled:a||u,uiSchema:t,registry:p})})]},`array-item-list-${r.$id}`)]})}function sBt(e){const{id:t,placeholder:r,label:n,hideLabel:o,value:a,required:i,readonly:s,disabled:l,onChange:u,onChangeOverride:c,onBlur:d,onFocus:f,autofocus:p,options:h,schema:v,uiSchema:b,formContext:g,type:y,rawErrors:S=[]}=e,w=kp(v,y,h),$=Kd({uiSchema:b,formContext:g,options:h}),C=({target:{value:_}})=>u(_===""?h.emptyValue:_),x=()=>d&&d(t,a),E=()=>f&&f(t,a);return T.jsxs(T.Fragment,{children:[T.jsx(Iu.Input,{id:t,name:t,placeholder:r,...w,label:wr(n||void 0,o,!1),required:i,autoFocus:p,disabled:l||s,list:v.examples?da(t):void 0,...$,value:a||a===0?a:"",error:S.length>0,onChange:c||C,onBlur:x,onFocus:E,"aria-describedby":Ot(t,!!v.examples)},t),Array.isArray(v.examples)&&T.jsx("datalist",{id:da(t),children:v.examples.concat(v.default&&!v.examples.includes(v.default)?[v.default]:[]).map(_=>T.jsx("option",{value:_},_))})]})}function lBt(e){const{id:t,description:r}=e;return r?T.jsx("p",{id:t,className:"sui-description",children:r}):null}function uBt({errors:e,registry:t}){const{translateString:r}=t;return T.jsxs(wc,{negative:!0,children:[T.jsx(wc.Header,{children:r($t.ErrorsLabel)}),T.jsx(wc.List,{children:e.map((n,o)=>T.jsx(wc.Item,{children:n.stack},`error-${o}`))})]})}function vD(e){const{icon:t,iconType:r,color:n,className:o,uiSchema:a,registry:i,...s}=e;return T.jsx(S0,{icon:t,size:r,color:n,className:o,...s})}function cBt(e){const{registry:{translateString:t}}=e;return T.jsx(vD,{title:t($t.CopyButton),...e,icon:"copy"})}function dBt(e){const{registry:{translateString:t}}=e;return T.jsx(vD,{title:t($t.MoveDownButton),...e,icon:"angle down"})}function fBt(e){const{registry:{translateString:t}}=e;return T.jsx(vD,{title:t($t.MoveUpButton),...e,icon:"angle up"})}function pBt(e){const{registry:{translateString:t}}=e;return T.jsx(vD,{title:t($t.RemoveButton),...e,icon:"trash"})}const mBt={options:{pointing:"above",size:"small"}};function hBt({errors:e,idSchema:t,uiSchema:r,registry:n}){const{formContext:o}=n,a=rBt({formContext:o,uiSchema:r,defaultProps:mBt}),{pointing:i,size:s}=a;if(e&&e.length>0){const l=Vd(t);return T.jsx(Rl,{id:l,color:"red",pointing:i||"above",size:s||"small",basic:!0,children:T.jsx(Zre,{bulleted:!0,children:e.map(u=>T.jsx(Zre.Item,{children:u},pme()))})})}return null}function vBt(e){const{idSchema:t,help:r}=e;if(r){const n=Tp(t);return T.jsx(wc,{size:"mini",info:!0,id:n,content:r})}return null}function gBt(e){const{id:t,children:r,classNames:n,style:o,displayLabel:a,label:i,errors:s,help:l,hidden:u,description:c,rawDescription:d,registry:f,schema:p,uiSchema:h,...v}=e,b=Kd(v),{wrapLabel:g,wrapContent:y}=b,S=At(h),w=Ct("WrapIfAdditionalTemplate",f,S);return u?T.jsx("div",{style:{display:"none"},children:r}):T.jsx(w,{classNames:n,style:o,id:t,label:i,registry:f,schema:p,uiSchema:h,...v,children:T.jsx(Iu.Group,{widths:"equal",grouped:!0,children:T.jsxs(w6,{wrap:y,className:"sui-field-content",children:[r,a&&d&&T.jsx(w6,{wrap:g,className:"sui-field-label",children:c}),l,s]})},t)})}function bBt(e){const{description:t,onAddClick:r,title:n,properties:o,disabled:a,readonly:i,required:s,uiSchema:l,schema:u,formData:c,idSchema:d,registry:f}=e,p=At(l),h=Ct("TitleFieldTemplate",f,p),v=Ct("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:b}}=f.templates;return T.jsxs(T.Fragment,{children:[n&&T.jsx(h,{id:Nu(d),title:n,required:s,schema:u,uiSchema:l,registry:f}),t&&T.jsx(v,{id:pa(d),description:t,schema:u,uiSchema:l,registry:f}),o.map(g=>g.content),$p(u,l,c)&&T.jsx(Mi.Column,{width:16,verticalAlign:"middle",children:T.jsx(Mi.Row,{children:T.jsx("div",{style:{marginTop:"1rem",position:"relative",textAlign:"right"},children:T.jsx(b,{onClick:r(u),disabled:a||i,uiSchema:l,registry:f})})})})]})}function yBt({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=Pp(e);return r?null:T.jsx(S0,{type:"submit",primary:!0,...n,children:t})}const SBt={inverted:!1,dividing:!0};function wBt({id:e,title:t,uiSchema:r}){const n=Kd({uiSchema:r,defaultSchemaProps:SBt});return t?T.jsx(Vg,{id:e,...n,as:"h5",children:t}):null}function CBt(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,required:c,schema:d,uiSchema:f,registry:p}=e,{templates:h,translateString:v}=p,{RemoveButton:b}=h.ButtonTemplates,g=v($t.KeyLabel,[i]),{readonlyAsDisabled:y=!0,wrapperStyle:S}=p.formContext;if(!(Nl in d))return T.jsx("div",{className:r,style:n,children:t});const $=({target:C})=>l(C.value);return T.jsx("div",{className:r,style:n,children:T.jsx(Mi,{columns:"equal",children:T.jsxs(Mi.Row,{children:[T.jsx(Mi.Column,{className:"form-additional",children:T.jsx(Iu.Group,{widths:"equal",grouped:!0,children:T.jsx(Iu.Input,{className:"form-group",hasFeedback:!0,fluid:!0,htmlFor:`${a}`,label:g,required:c,defaultValue:i,disabled:o||y&&u,id:`${a}`,name:`${a}`,onBlur:u?void 0:$,style:S,type:"text"})})}),T.jsx(Mi.Column,{className:"form-additional",verticalAlign:"middle",children:t}),T.jsx(Mi.Column,{children:T.jsx(b,{iconType:"mini",className:"array-item-remove",disabled:o||u,onClick:s(i),uiSchema:f,registry:p})})]})})},`${a}-key`)}function xBt(){return{ArrayFieldItemTemplate:aBt,ArrayFieldTemplate:iBt,BaseInputTemplate:sBt,ButtonTemplates:{AddButton:tBt,CopyButton:cBt,MoveDownButton:dBt,MoveUpButton:fBt,RemoveButton:pBt,SubmitButton:yBt},DescriptionFieldTemplate:lBt,ErrorListTemplate:uBt,FieldErrorTemplate:hBt,FieldHelpTemplate:vBt,FieldTemplate:gBt,ObjectFieldTemplate:bBt,TitleFieldTemplate:wBt,WrapIfAdditionalTemplate:CBt}}function $Bt(e){const{id:t,value:r,disabled:n,readonly:o,label:a="",hideLabel:i,autofocus:s,onChange:l,onBlur:u,options:c,onFocus:d,formContext:f,schema:p,uiSchema:h,rawErrors:v=[],registry:b}=e,g=Kd({options:c,formContext:f,uiSchema:h,defaultSchemaProps:{inverted:"false"}}),y=Ct("DescriptionFieldTemplate",b,c),S=kd(p),w=(_,k)=>l&&l(k.checked),$=()=>u&&u(t,r),C=()=>d&&d(t,r),x=r=="true"||r==!0,E=c.description??p.description;return T.jsxs(T.Fragment,{children:[!i&&!!E&&T.jsx(y,{id:pa(t),description:E,schema:p,uiSchema:h,registry:b}),T.jsx(Iu.Checkbox,{id:t,name:t,disabled:n||o,autoFocus:s,...g,checked:typeof r>"u"?!1:x,error:v.length>0,onChange:w,onBlur:$,onFocus:C,required:S,label:wr(a,i,!1),"aria-describedby":Ot(t)})]})}function EBt(e){const{id:t,disabled:r,options:n,value:o,autofocus:a,readonly:i,label:s,hideLabel:l,onChange:u,onBlur:c,onFocus:d,formContext:f,schema:p,uiSchema:h,rawErrors:v=[],registry:b}=e,g=Ct("TitleFieldTemplate",b,n),{enumOptions:y,enumDisabled:S,inline:w}=n,$=Array.isArray(o)?o:[o],C=Kd({options:n,formContext:f,uiSchema:h,defaultSchemaProps:{inverted:"false"}}),x=I=>({target:{checked:N}})=>{u(N?qh(I,$,y):Wh(I,$,y))},E=()=>c(t,o),_=()=>d(t,o),k=w?{inline:!0}:{grouped:!0};return T.jsxs(T.Fragment,{children:[!l&&!!s&&T.jsx(g,{id:Nu(t),title:s,schema:p,uiSchema:h,registry:b}),T.jsx(Iu.Group,{id:t,name:t,...k,children:Array.isArray(y)&&y.map((I,N)=>{const z=Fu(I.value,$),O=Array.isArray(S)&&S.indexOf(I.value)!==-1;return T.jsx(Iu.Checkbox,{id:Wa(t,N),name:t,label:I.label,...C,checked:z,error:v.length>0,disabled:r||O||i,autoFocus:a&&N===0,onChange:x(N),onBlur:E,onFocus:_,"aria-describedby":Ot(t)},N)})})]})}function _Bt(e){const{id:t,value:r,required:n,disabled:o,readonly:a,onChange:i,onBlur:s,onFocus:l,options:u,formContext:c,uiSchema:d,rawErrors:f=[]}=e,{enumOptions:p,enumDisabled:h,emptyValue:v}=u,b=Kd({formContext:c,options:u,uiSchema:d}),g=($,{value:C})=>i(Tt(C,p,v)),y=()=>s(t,r),S=()=>l(t,r),w=u.inline?{inline:!0}:{grouped:!0};return T.jsx(Iu.Group,{...w,children:Array.isArray(p)&&p.map(($,C)=>{const x=Fu($.value,r),E=Array.isArray(h)&&h.indexOf($.value)!==-1;return m.createElement(Iu.Field,{required:n,control:C0,id:Wa(t,C),name:t,...b,onFocus:S,onBlur:y,onChange:g,label:$.label,value:String(C),error:f.length>0,key:C,checked:x,disabled:o||E||a,"aria-describedby":Ot(t)})})})}function kBt(e){const{id:t,value:r,required:n,readonly:o,disabled:a,onChange:i,onBlur:s,onFocus:l,options:u,schema:c,uiSchema:d,formContext:f,rawErrors:p=[]}=e,h=Kd({formContext:f,options:u,uiSchema:d,defaultSchemaProps:{fluid:!0}}),v=({target:{value:y}})=>i&&i(y===""?u.emptyValue:y),b=()=>s&&s(t,r),g=()=>l&&l(t,r);return T.jsxs(T.Fragment,{children:[T.jsx(eSe,{id:t,name:t,type:"range",required:n,disabled:a||o,..._p(c),...h,value:r||"",error:p.length>0,onChange:v,onBlur:b,onFocus:g,"aria-describedby":Ot(t)},t),T.jsx("span",{children:r})]})}var PBt=zd,TBt=nO,IBt=_pe,RBt=Pa;function FBt(e,t){var r=RBt(e)?PBt:IBt;return r(e,TBt(t))}var OBt=FBt;const NBt=zt(OBt);function DBt(e,t,r,n){const o=t||[],a=NBt(e,({label:i,value:s},l)=>({disabled:o.indexOf(s)!==-1,key:i,text:i,value:String(l)}));return r&&a.unshift({value:"",text:n||""}),a}function ABt(e){const{uiSchema:t,formContext:r,id:n,options:o,label:a,hideLabel:i,required:s,disabled:l,readonly:u,value:c,multiple:d,placeholder:f,autofocus:p,onChange:h,onBlur:v,onFocus:b,rawErrors:g=[],schema:y}=e,S=Kd({uiSchema:t,formContext:r,options:o,defaultSchemaProps:{inverted:"false",selection:!0,fluid:!0,scrolling:!0,upward:!1}}),{enumDisabled:w,enumOptions:$,emptyValue:C}=o,x=d?[]:"",E=!d&&y.default===void 0,_=DBt($,w,E,f),k=(O,{value:A})=>h(Tt(A,$,C)),I=(O,{target:A})=>v(n,Tt(A&&A.value,$,C)),N=(O,{target:A})=>b(n,Tt(A&&A.value,$,C)),z=mi(c,$,d);return T.jsx(Iu.Dropdown,{id:n,name:n,label:wr(a||void 0,i,!1),multiple:typeof d>"u"?!1:d,value:typeof c>"u"?x:z,error:g.length>0,disabled:l,placeholder:f,...S,required:s,autoFocus:p,readOnly:u,options:_,onChange:k,onBlur:I,onFocus:N,"aria-describedby":Ot(n)},n)}function MBt(e){const{id:t,placeholder:r,value:n,required:o,disabled:a,autofocus:i,label:s,hideLabel:l,readonly:u,onBlur:c,onFocus:d,onChange:f,options:p,formContext:h,rawErrors:v=[]}=e,b=Kd({formContext:h,options:p,defaultSchemaProps:{inverted:"false"}}),g=({target:{value:w}})=>f&&f(w===""?p.emptyValue:w),y=()=>c&&c(t,n),S=()=>d&&d(t,n);return T.jsx(Iu.TextArea,{id:t,name:t,label:wr(s||void 0,l,!1),placeholder:r,autoFocus:i,required:o,disabled:a||u,...b,value:n||"",error:v.length>0,rows:p.rows||5,onChange:g,onBlur:y,onFocus:S,"aria-describedby":Ot(t)},t)}function BBt(){return{CheckboxWidget:$Bt,CheckboxesWidget:EBt,RadioWidget:_Bt,RangeWidget:kBt,SelectWidget:ABt,TextareaWidget:MBt}}function rSe(){return{templates:xBt(),widgets:BBt(),_internalFormWrapper:Iu}}const jBt=rSe();function LBt(){return Fd(rSe())}LBt();var nSe={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=[];return Y.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Nh(n)):N7.isFragment(n)&&n.props?r=r.concat(Nh(n.props.children,t)):r.push(n))}),r}var C6={},zBt=function(t){};function VBt(e,t){}function HBt(e,t){}function WBt(){C6={}}function aSe(e,t,r){!t&&!C6[r]&&(e(!1,r),C6[r]=!0)}function fa(e,t){aSe(VBt,e,t)}function iSe(e,t){aSe(HBt,e,t)}fa.preMessage=zBt;fa.resetWarned=WBt;fa.noteOnce=iSe;function Jre(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t0},e.prototype.connect_=function(){!$6||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),QBt?(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(){!$6||!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,o=XBt.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),lSe=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof g1(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new i4t(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 g1(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 s4t(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}(),cSe=typeof WeakMap<"u"?new WeakMap:new sSe,dSe=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=ZBt.getInstance(),n=new l4t(t,r,this);cSe.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){dSe.prototype[e]=function(){var t;return(t=cSe.get(this))[e].apply(t,arguments)}});var u4t=function(){return typeof sR.ResizeObserver<"u"?sR.ResizeObserver:dSe}(),zm=new Map;function c4t(e){e.forEach(function(t){var r,n=t.target;(r=zm.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var fSe=new u4t(c4t);function d4t(e,t){zm.has(e)||(zm.set(e,new Set),fSe.observe(e)),zm.get(e).add(t)}function f4t(e,t){zm.has(e)&&(zm.get(e).delete(t),zm.get(e).size||(fSe.unobserve(e),zm.delete(e)))}function Gd(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&&mI(e,t)}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jd(e)}function r_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r_=function(){return!!e})()}function yD(e,t){if(t&&(or(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yr(e)}function E0(e){var t=r_();return function(){var r,n=jd(e);if(t){var o=jd(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return yD(this,r)}}var p4t=function(e){Gd(r,e);var t=E0(r);function r(){return oa(this,r),t.apply(this,arguments)}return Oo(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function m4t(e,t){var r=e.children,n=e.disabled,o=m.useRef(null),a=m.useRef(null),i=m.useContext(x6),s=typeof r=="function",l=s?r(o):r,u=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&m.isValidElement(l)&&hS(l),d=c?l.ref:null,f=gD(d,o),p=function(){var g;return NC(o.current)||(o.current&&or(o.current)==="object"?NC((g=o.current)===null||g===void 0?void 0:g.nativeElement):null)||NC(a.current)};m.useImperativeHandle(t,function(){return p()});var h=m.useRef(e);h.current=e;var v=m.useCallback(function(b){var g=h.current,y=g.onResize,S=g.data,w=b.getBoundingClientRect(),$=w.width,C=w.height,x=b.offsetWidth,E=b.offsetHeight,_=Math.floor($),k=Math.floor(C);if(u.current.width!==_||u.current.height!==k||u.current.offsetWidth!==x||u.current.offsetHeight!==E){var I={width:_,height:k,offsetWidth:x,offsetHeight:E};u.current=I;var N=x===Math.round($)?$:x,z=E===Math.round(C)?C:E,O=be(be({},I),{},{offsetWidth:N,offsetHeight:z});i==null||i(O,b,S),y&&Promise.resolve().then(function(){y(O,b)})}},[]);return m.useEffect(function(){var b=p();return b&&!n&&d4t(b,v),function(){return f4t(b,v)}},[o.current,n]),m.createElement(p4t,{ref:a},c?m.cloneElement(l,{ref:f}):l)}var h4t=m.forwardRef(m4t),v4t="rc-observer-key";function g4t(e,t){var r=e.children,n=typeof r=="function"?[r]:Nh(r);return n.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(v4t,"-").concat(a);return m.createElement(h4t,G({},e,{key:i,ref:a===0?t:void 0}),o)})}var ev=m.forwardRef(g4t);ev.Collection=qBt;function Lp(e,t){var r=be({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var pSe=function(t){return+setTimeout(t,16)},mSe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(pSe=function(t){return window.requestAnimationFrame(t)},mSe=function(t){return window.cancelAnimationFrame(t)});var tne=0,yW=new Map;function hSe(e){yW.delete(e)}var rn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tne+=1;var n=tne;function o(a){if(a===0)hSe(n),t();else{var i=pSe(function(){o(a-1)});yW.set(n,i)}}return o(r),n};rn.cancel=function(e){var t=yW.get(e);return hSe(e),mSe(t)};function uR(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ws(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function b4t(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 rne="data-rc-order",nne="data-rc-priority",y4t="rc-util-key",E6=new Map;function vSe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):y4t}function SD(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function S4t(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function gSe(e){return Array.from((E6.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function bSe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ws())return null;var r=t.csp,n=t.prepend,o=t.priority,a=o===void 0?0:o,i=S4t(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(rne,i),s&&a&&l.setAttribute(nne,"".concat(a)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=SD(t),c=u.firstChild;if(n){if(s){var d=gSe(u).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(rne)))return!1;var p=Number(f.getAttribute(nne)||0);return a>=p});if(d.length)return u.insertBefore(l,d[d.length-1].nextSibling),l}u.insertBefore(l,c)}else u.appendChild(l);return l}function ySe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=SD(t);return gSe(r).find(function(n){return n.getAttribute(vSe(t))===e})}function _$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ySe(e,t);if(r){var n=SD(t);n.removeChild(r)}}function w4t(e,t){var r=E6.get(e);if(!r||!b4t(document,r)){var n=bSe("",t),o=n.parentNode;E6.set(e,o),e.removeChild(n)}}function Dh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=SD(r);w4t(n,r);var o=ySe(t,r);if(o){var a,i;if((a=r.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=r.csp)===null||i===void 0?void 0:i.nonce)){var s;o.nonce=(s=r.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=bSe(e,r);return l.setAttribute(vSe(r),t),l}function qg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(fa(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(r&&s>1)return!1;n.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,c){var d=Ce(u,2),f=d[1];return o.internalGet(c)[1]0,void 0),one+=1}return Oo(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}(),RB=new SW;function k6(e){var t=Array.isArray(e)?e:[e];return RB.has(t)||RB.set(t,new wSe(t)),RB.get(t)}var k4t=new WeakMap,FB={};function P4t(e,t){for(var r=k4t,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=be(be({},o),{},(n={},le(n,b1,t),le(n,kc,r),n)),s=Object.keys(i).map(function(l){var u=i[l];return u?"".concat(l,'="').concat(u,'"'):null}).filter(function(l){return l}).join(" ");return"")}var xSe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},R4t=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var a=Ce(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},$Se=function(t,r,n){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,u=Ce(i,2),c=u[0],d=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[c])a[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[c])){var f,p=xSe(c,n==null?void 0:n.prefix);o[p]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[c])?"".concat(d,"px"):String(d),a[c]="var(".concat(p,")")}}),[a,R4t(o,r,{scope:n==null?void 0:n.scope})]},sne=ws()?m.useLayoutEffect:m.useEffect,Fn=function(t,r){var n=m.useRef(!0);sne(function(){return t(n.current)},r),sne(function(){return n.current=!1,function(){n.current=!0}},[])},MC=function(t,r){Fn(function(n){if(!n)return t()},r)},F4t=be({},Vi),lne=F4t.useInsertionEffect,O4t=function(t,r,n){m.useMemo(t,n),Fn(function(){return r(!0)},n)},N4t=lne?function(e,t,r){return lne(function(){return e(),t()},r)}:O4t,D4t=be({},Vi),A4t=D4t.useInsertionEffect,M4t=function(t){var r=[],n=!1;function o(a){n||r.push(a)}return m.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},t),o},B4t=function(){return function(t){t()}},j4t=typeof A4t<"u"?M4t:B4t;function wW(e,t,r,n,o){var a=m.useContext(y1),i=a.cache,s=[e].concat(xt(t)),l=_6(s),u=j4t([l]),c=function(h){i.opUpdate(l,function(v){var b=v||[void 0,void 0],g=Ce(b,2),y=g[0],S=y===void 0?0:y,w=g[1],$=w,C=$||r(),x=[S,C];return h?h(x):x})};m.useMemo(function(){c()},[l]);var d=i.opGet(l),f=d[1];return N4t(function(){o==null||o(f)},function(p){return c(function(h){var v=Ce(h,2),b=v[0],g=v[1];return p&&b===0&&(o==null||o(f)),[b+1,g]}),function(){i.opUpdate(l,function(h){var v=h||[],b=Ce(v,2),g=b[0],y=g===void 0?0:g,S=b[1],w=y-1;return w===0?(u(function(){(p||!i.opGet(l))&&(n==null||n(S,!1))}),null):[y-1,S]})}},[l]),f}var L4t={},z4t="css",Ov=new Map;function V4t(e){Ov.set(e,(Ov.get(e)||0)+1)}function H4t(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(b1,'="').concat(e,'"]'));r.forEach(function(n){if(n[Vm]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var W4t=0;function q4t(e,t){Ov.set(e,(Ov.get(e)||0)-1);var r=Array.from(Ov.keys()),n=r.filter(function(o){var a=Ov.get(o)||0;return a<=0});r.length-n.length>W4t&&n.forEach(function(o){H4t(o,t),Ov.delete(o)})}var U4t=function(t,r,n,o){var a=n.getDerivativeToken(t),i=be(be({},a),r);return o&&(i=o(i)),i},ESe="token";function K4t(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=m.useContext(y1),o=n.cache.instanceId,a=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?L4t:l,c=r.formatToken,d=r.getComputedToken,f=r.cssVar,p=P4t(function(){return Object.assign.apply(Object,[{}].concat(xt(t)))},t),h=DC(p),v=DC(u),b=f?DC(f):"",g=wW(ESe,[s,e.id,h,v,b],function(){var y,S=d?d(p,u,e):U4t(p,u,e,c),w=be({},S),$="";if(f){var C=$Se(S,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),x=Ce(C,2);S=x[0],$=x[1]}var E=ine(S,s);S._tokenKey=E,w._tokenKey=ine(w,s);var _=(y=f==null?void 0:f.key)!==null&&y!==void 0?y:E;S._themeKey=_,V4t(_);var k="".concat(z4t,"-").concat(uR(E));return S._hashId=k,[S,k,w,$,(f==null?void 0:f.key)||""]},function(y){q4t(y[0]._themeKey,o)},function(y){var S=Ce(y,4),w=S[0],$=S[3];if(f&&$){var C=Dh($,uR("css-variables-".concat(w._themeKey)),{mark:kc,prepend:"queue",attachTo:a,priority:-999});C[Vm]=o,C.setAttribute(b1,w._themeKey)}});return g}var G4t=function(t,r,n){var o=Ce(t,5),a=o[2],i=o[3],s=o[4],l=n||{},u=l.plain;if(!i)return null;var c=a._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=cR(i,s,c,f,u);return[d,c,p]},Y4t={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},une="data-ant-cssinjs-cache-path",_Se="_FILE_STYLE__",pg,kSe=!0;function X4t(){if(!pg&&(pg={},ws())){var e=document.createElement("div");e.className=une,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Ce(a,2),s=i[0],l=i[1];pg[s]=l});var r=document.querySelector("style[".concat(une,"]"));if(r){var n;kSe=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Q4t(e){return X4t(),!!pg[e]}function Z4t(e){var t=pg[e],r=null;if(t&&ws())if(kSe)r=_Se;else{var n=document.querySelector("style[".concat(kc,'="').concat(pg[e],'"]'));n?r=n.innerHTML:delete pg[e]}return[r,t]}var J4t="_skip_check_",PSe="_multi_value_";function T6(e){var t=$c(JO(e),eN);return t.replace(/\{%%%\:[^;];}/g,";")}function e3t(e){return or(e)==="object"&&e&&(J4t in e||PSe in e)}function t3t(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),u=l[0]||"",c=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(c).concat(o).concat(u.slice(c.length)),[u].concat(xt(l.slice(1))).join(" ")});return a.join(",")}var r3t=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var u=r.hashPriority,c=r.transformers,d=c===void 0?[]:c;r.linters;var f="",p={};function h(S){var w=S.getName(s);if(!p[w]){var $=e(S.style,r,{root:!1,parentSelectors:i}),C=Ce($,1),x=C[0];p[w]="@keyframes ".concat(S.getName(s)).concat(x)}}function v(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function($){Array.isArray($)?v($,w):$&&w.push($)}),w}var b=v(Array.isArray(t)?t:[t]);if(b.forEach(function(S){var w=typeof S=="string"&&!o?{}:S;if(typeof w=="string")f+="".concat(w,` +`);else if(w._keyframe)h(w);else{var $=d.reduce(function(C,x){var E;return(x==null||(E=x.visit)===null||E===void 0?void 0:E.call(x,C))||C},w);Object.keys($).forEach(function(C){var x=$[C];if(or(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!e3t(x)){var E=!1,_=C.trim(),k=!1;(o||a)&&s?_.startsWith("@")?E=!0:_=t3t(C,s,u):o&&!s&&(_==="&"||_==="")&&(_="",k=!0);var I=e(x,r,{root:k,injectHash:E,parentSelectors:[].concat(xt(i),[_])}),N=Ce(I,2),z=N[0],O=N[1];p=be(be({},p),O),f+="".concat(_).concat(z)}else{let j=function(H,B){var F=H.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),V=B;!Y4t[H]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),H==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(h(B),V=B.getName(s)),f+="".concat(F,":").concat(V,";")};var L=j,A,M=(A=x==null?void 0:x.value)!==null&&A!==void 0?A:x;or(x)==="object"&&x!==null&&x!==void 0&&x[PSe]&&Array.isArray(M)?M.forEach(function(H){j(C,H)}):j(C,M)}})}}),!o)f="{".concat(f,"}");else if(l&&I4t()){var g=l.split(","),y=g[g.length-1].trim();f="@layer ".concat(y," {").concat(f,"}"),g.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f))}return[f,p]};function TSe(e,t){return uR("".concat(e.join("%")).concat(t))}function n3t(){return null}var ISe="style";function I6(e,t){var r=e.token,n=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,c=m.useContext(y1),d=c.autoClear;c.mock;var f=c.defaultCache,p=c.hashPriority,h=c.container,v=c.ssrInline,b=c.transformers,g=c.linters,y=c.cache,S=r._tokenKey,w=[S].concat(xt(n)),$=P6,C=wW(ISe,w,function(){var I=w.join("|");if(Q4t(I)){var N=Z4t(I),z=Ce(N,2),O=z[0],A=z[1];if(O)return[O,S,A,{},s,u]}var M=t(),L=r3t(M,{hashId:o,hashPriority:p,layer:a,path:n.join("-"),transformers:b,linters:g}),j=Ce(L,2),H=j[0],B=j[1],F=T6(H),V=TSe(w,F);return[F,S,V,B,s,u]},function(I,N){var z=Ce(I,3),O=z[2];(N||d)&&P6&&_$(O,{mark:kc})},function(I){var N=Ce(I,4),z=N[0];N[1];var O=N[2],A=N[3];if($&&z!==_Se){var M={mark:kc,prepend:"queue",attachTo:h,priority:u},L=typeof i=="function"?i():i;L&&(M.csp={nonce:L});var j=Dh(z,O,M);j[Vm]=y.instanceId,j.setAttribute(b1,S),Object.keys(A).forEach(function(H){Dh(T6(A[H]),"_effect-".concat(H),M)})}}),x=Ce(C,3),E=x[0],_=x[1],k=x[2];return function(I){var N;if(!v||$||!f)N=m.createElement(n3t,null);else{var z;N=m.createElement("style",G({},(z={},le(z,b1,_),le(z,kc,k),z),{dangerouslySetInnerHTML:{__html:E}}))}return m.createElement(m.Fragment,null,N,I)}}var o3t=function(t,r,n){var o=Ce(t,6),a=o[0],i=o[1],s=o[2],l=o[3],u=o[4],c=o[5],d=n||{},f=d.plain;if(u)return null;var p=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return p=cR(a,i,s,h,f),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var b=T6(l[v]);p+=cR(b,i,"_effect-".concat(v),h,f)}}),[c,s,p]},RSe="cssVar",a3t=function(t,r){var n=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,c=m.useContext(y1),d=c.cache.instanceId,f=c.container,p=s._tokenKey,h=[].concat(xt(t.path),[n,u,p]),v=wW(RSe,h,function(){var b=r(),g=$Se(b,n,{prefix:o,unitless:a,ignore:i,scope:u}),y=Ce(g,2),S=y[0],w=y[1],$=TSe(h,w);return[S,w,$,n]},function(b){var g=Ce(b,3),y=g[2];P6&&_$(y,{mark:kc})},function(b){var g=Ce(b,3),y=g[1],S=g[2];if(y){var w=Dh(y,S,{mark:kc,prepend:"queue",attachTo:f,priority:-999});w[Vm]=d,w.setAttribute(b1,n)}});return v},i3t=function(t,r,n){var o=Ce(t,4),a=o[1],i=o[2],s=o[3],l=n||{},u=l.plain;if(!a)return null;var c=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},f=cR(a,s,i,d,u);return[c,i,f]},vw;vw={},le(vw,ISe,o3t),le(vw,ESe,G4t),le(vw,RSe,i3t);var wn=function(){function e(t,r){oa(this,e),le(this,"name",void 0),le(this,"style",void 0),le(this,"_keyframe",!0),this.name=t,this.style=r}return Oo(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function Z0(e){return e.notSplit=!0,e}Z0(["borderTop","borderBottom"]),Z0(["borderTop"]),Z0(["borderBottom"]),Z0(["borderLeft","borderRight"]),Z0(["borderLeft"]),Z0(["borderRight"]);var s3t=m.createContext({});const CW=s3t;function FSe(e){return mhe(e)||Jme(e)||H7(e)||hhe()}function yd(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!yd(e,t.slice(0,-1))?e:OSe(e,t,r,n)}function l3t(e){return or(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function cne(e){return Array.isArray(e)?[]:{}}var u3t=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Wb(){for(var e=arguments.length,t=new Array(e),r=0;r{const e=()=>{};return e.deprecated=c3t,e},NSe=m.createContext(void 0);var DSe={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"},f3t={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"};const p3t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ASe=p3t,m3t={lang:Object.assign({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"]},f3t),timePickerLocale:Object.assign({},ASe)},dR=m3t,nl="${label} is not a valid ${type}",h3t={locale:"en",Pagination:DSe,DatePicker:dR,TimePicker:ASe,Calendar:dR,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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"},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:nl,method:nl,array:nl,object:nl,number:nl,date:nl,boolean:nl,integer:nl,float:nl,regexp:nl,email:nl,url:nl,hex:nl},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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},Ug=h3t;Object.assign({},Ug.Modal);let oT=[];const dne=()=>oT.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ug.Modal);function v3t(e){if(e){const t=Object.assign({},e);return oT.push(t),dne(),()=>{oT=oT.filter(r=>r!==t),dne()}}Object.assign({},Ug.Modal)}const g3t=m.createContext(void 0),$W=g3t,b3t=(e,t)=>{const r=m.useContext($W),n=m.useMemo(()=>{var a;const i=t||Ug[e],s=(a=r==null?void 0:r[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),o=m.useMemo(()=>{const a=r==null?void 0:r.locale;return r!=null&&r.exist&&!a?Ug.locale:a},[r]);return[n,o]},n_=b3t,y3t="internalMark",S3t=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;m.useEffect(()=>v3t(t&&t.Modal),[t]);const o=m.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m.createElement($W.Provider,{value:o},r)},w3t=S3t;function ci(e,t){C3t(e)&&(e="100%");var r=x3t(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 ck(e){return Math.min(1,Math.max(0,e))}function C3t(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function x3t(e){return typeof e=="string"&&e.indexOf("%")!==-1}function MSe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dk(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Qv(e){return e.length===1?"0"+e:String(e)}function $3t(e,t,r){return{r:ci(e,255)*255,g:ci(t,255)*255,b:ci(r,255)*255}}function fne(e,t,r){e=ci(e,255),t=ci(t,255),r=ci(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a=0,i=0,s=(n+o)/2;if(n===o)i=0,a=0;else{var l=n-o;switch(i=s>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t1&&(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 E3t(e,t,r){var n,o,a;if(e=ci(e,360),t=ci(t,100),r=ci(r,100),t===0)o=r,a=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=NB(s,i,e+1/3),o=NB(s,i,e),a=NB(s,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function fR(e,t,r){e=ci(e,255),t=ci(t,255),r=ci(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a=0,i=n,s=n-o,l=n===0?0:s/n;if(n===o)a=0;else{switch(n){case e:a=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var R6={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 hc(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=F3t(e)),typeof e=="object"&&(df(e.r)&&df(e.g)&&df(e.b)?(t=$3t(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):df(e.h)&&df(e.s)&&df(e.v)?(n=dk(e.s),o=dk(e.v),t=_3t(e.h,n,o),i=!0,s="hsv"):df(e.h)&&df(e.s)&&df(e.l)&&(n=dk(e.s),a=dk(e.l),t=E3t(e.h,n,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=MSe(r),{ok:i,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 I3t="[-\\+]?\\d+%?",R3t="[-\\+]?\\d*\\.\\d+%?",Hm="(?:".concat(R3t,")|(?:").concat(I3t,")"),DB="[\\s|\\(]+(".concat(Hm,")[,|\\s]+(").concat(Hm,")[,|\\s]+(").concat(Hm,")\\s*\\)?"),AB="[\\s|\\(]+(".concat(Hm,")[,|\\s]+(").concat(Hm,")[,|\\s]+(").concat(Hm,")[,|\\s]+(").concat(Hm,")\\s*\\)?"),Qu={CSS_UNIT:new RegExp(Hm),rgb:new RegExp("rgb"+DB),rgba:new RegExp("rgba"+AB),hsl:new RegExp("hsl"+DB),hsla:new RegExp("hsla"+AB),hsv:new RegExp("hsv"+DB),hsva:new RegExp("hsva"+AB),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 F3t(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(R6[e])e=R6[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Qu.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Qu.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Qu.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Qu.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Qu.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Qu.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Qu.hex8.exec(e),r?{r:sl(r[1]),g:sl(r[2]),b:sl(r[3]),a:pne(r[4]),format:t?"name":"hex8"}:(r=Qu.hex6.exec(e),r?{r:sl(r[1]),g:sl(r[2]),b:sl(r[3]),format:t?"name":"hex"}:(r=Qu.hex4.exec(e),r?{r:sl(r[1]+r[1]),g:sl(r[2]+r[2]),b:sl(r[3]+r[3]),a:pne(r[4]+r[4]),format:t?"name":"hex8"}:(r=Qu.hex3.exec(e),r?{r:sl(r[1]+r[1]),g:sl(r[2]+r[2]),b:sl(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function df(e){return!!Qu.CSS_UNIT.exec(String(e))}var On=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=T3t(t)),this.originalInput=t;var o=hc(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,o,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=MSe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=fR(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=fR(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=fne(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=fne(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),pR(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),k3t(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(ci(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(ci(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+pR(this.r,this.g,this.b,!1),r=0,n=Object.entries(R6);r=0,a=!r&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ck(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ck(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ck(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ck(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),o=360/r,a=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],a=360/t,i=1;ir.length;)e.count=null,e.seed&&(e.seed+=1),r.push(BSe(e));return e.count=t,r}var n=O3t(e.hue,e.seed),o=N3t(n,e),a=D3t(n,o,e),i={h:n,s:o,v:a};return e.alpha!==void 0&&(i.a=e.alpha),new On(i)}function O3t(e,t){var r=M3t(e),n=mR(r,t);return n<0&&(n=360+n),n}function N3t(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return mR([0,100],t.seed);var r=jSe(e).saturationRange,n=r[0],o=r[1];switch(t.luminosity){case"bright":n=55;break;case"dark":n=o-10;break;case"light":o=55;break}return mR([n,o],t.seed)}function D3t(e,t,r){var n=A3t(e,t),o=100;switch(r.luminosity){case"dark":o=n+20;break;case"light":n=(o+n)/2;break;case"random":n=0,o=100;break}return mR([n,o],r.seed)}function A3t(e,t){for(var r=jSe(e).lowerBounds,n=0;n=o&&t<=i){var l=(s-a)/(i-o),u=a-l*o;return l*t+u}}return 0}function M3t(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var r=zSe.find(function(i){return i.name===e});if(r){var n=LSe(r);if(n.hueRange)return n.hueRange}var o=new On(e);if(o.isValid){var a=o.toHsv().h;return[a,a]}}return[0,360]}function jSe(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=zSe;t=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function mR(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,n=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(n+o*(r-n))}function LSe(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[n,o]}}var zSe=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],fk=2,mne=.16,B3t=.05,j3t=.05,L3t=.15,VSe=5,HSe=4,z3t=[{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 hne(e){var t=e.r,r=e.g,n=e.b,o=fR(t,r,n);return{h:o.h*360,s:o.s,v:o.v}}function pk(e){var t=e.r,r=e.g,n=e.b;return"#".concat(pR(t,r,n,!1))}function V3t(e,t,r){var n=r/100,o={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 o}function vne(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-fk*t:Math.round(e.h)+fk*t:n=r?Math.round(e.h)+fk*t:Math.round(e.h)-fk*t,n<0?n+=360:n>=360&&(n-=360),n}function gne(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-mne*t:t===HSe?n=e.s+mne:n=e.s+B3t*t,n>1&&(n=1),r&&t===VSe&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function bne(e,t,r){var n;return r?n=e.v+j3t*t:n=e.v-L3t*t,n>1&&(n=1),Number(n.toFixed(2))}function Kg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=hc(e),o=VSe;o>0;o-=1){var a=hne(n),i=pk(hc({h:vne(a,o,!0),s:gne(a,o,!0),v:bne(a,o,!0)}));r.push(i)}r.push(pk(n));for(var s=1;s<=HSe;s+=1){var l=hne(n),u=pk(hc({h:vne(l,s),s:gne(l,s),v:bne(l,s)}));r.push(u)}return t.theme==="dark"?z3t.map(function(c){var d=c.index,f=c.opacity,p=pk(V3t(hc(t.backgroundColor||"#141414"),hc(r[d]),f*100));return p}):r}var MB={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},aT={},BB={};Object.keys(MB).forEach(function(e){aT[e]=Kg(MB[e]),aT[e].primary=aT[e][5],BB[e]=Kg(MB[e],{theme:"dark",backgroundColor:"#141414"}),BB[e].primary=BB[e][5]});var H3t=aT.blue;const W3t=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},q3t=W3t;function U3t(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const WSe={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},K3t=Object.assign(Object.assign({},WSe),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),k$=K3t;function G3t(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=e,d=r(l),f=r(o),p=r(a),h=r(i),v=r(s),b=n(u,c),g=e.colorLink||e.colorInfo,y=r(g);return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new On("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Y3t=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},X3t=Y3t;function Q3t(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},X3t(n))}const ff=(e,t)=>new On(e).setAlpha(t).toRgbString(),gw=(e,t)=>new On(e).darken(t).toHexString(),Z3t=e=>{const t=Kg(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},J3t=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:ff(n,.88),colorTextSecondary:ff(n,.65),colorTextTertiary:ff(n,.45),colorTextQuaternary:ff(n,.25),colorFill:ff(n,.15),colorFillSecondary:ff(n,.06),colorFillTertiary:ff(n,.04),colorFillQuaternary:ff(n,.02),colorBgLayout:gw(r,4),colorBgContainer:gw(r,0),colorBgElevated:gw(r,0),colorBgSpotlight:ff(n,.85),colorBgBlur:"transparent",colorBorder:gw(r,15),colorBorderSecondary:gw(r,6)}};function iT(e){return(e+8)/e}function ejt(e){const t=new Array(10).fill(null).map((r,n)=>{const o=n-1,a=e*Math.pow(2.71828,o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:iT(r)}))}const tjt=e=>{const t=ejt(e),r=t.map(c=>c.size),n=t.map(c=>c.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],l=n[0],u=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},rjt=tjt;function njt(e){const t=Object.keys(WSe).map(r=>{const n=Kg(e[r]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),G3t(e,{generateColorPalettes:Z3t,generateNeutralColorPalettes:J3t})),rjt(e.fontSize)),U3t(e)),q3t(e)),Q3t(e))}const qSe=k6(njt),USe={token:k$,override:{override:k$},hashed:!0},KSe=Y.createContext(USe),GSe="anticon",ojt=(e,t)=>t||(e?`ant-${e}`:"ant"),Er=m.createContext({getPrefixCls:ojt,iconPrefixCls:GSe}),ajt=`-ant-${Date.now()}-${Math.random()}`;function ijt(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new On(i),u=Kg(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=u[1],r[`${s}-color-hover`]=u[4],r[`${s}-color-active`]=u[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=u[0],r[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new On(t.primaryColor),s=Kg(i.toRgbString());s.forEach((u,c)=>{r[`primary-${c+1}`]=u}),r["primary-color-deprecated-l-35"]=n(i,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(i,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(i,u=>u.setAlpha(u.getAlpha()*.12));const l=new On(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,u=>u.setAlpha(u.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` + :root { + ${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(` +`)} + } + `.trim()}function sjt(e,t){const r=ijt(e,t);ws()&&Dh(r,`${ajt}-dynamic-theme`)}const F6=m.createContext(!1),YSe=e=>{let{children:t,disabled:r}=e;const n=m.useContext(F6);return m.createElement(F6.Provider,{value:r??n},t)},Mu=F6,O6=m.createContext(void 0),ljt=e=>{let{children:t,size:r}=e;const n=m.useContext(O6);return m.createElement(O6.Provider,{value:r||n},t)},o_=O6;function ujt(){const e=m.useContext(Mu),t=m.useContext(o_);return{componentDisabled:e,componentSize:t}}const hR=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],cjt="5.13.3";function jB(e){return e>=0&&e<=255}function mk(e,t){const{r,g:n,b:o,a}=new On(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new On(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((r-i*(1-u))/u),d=Math.round((n-s*(1-u))/u),f=Math.round((o-l*(1-u))/u);if(jB(c)&&jB(d)&&jB(f))return new On({r:c,g:d,b:f,a:Math.round(u*100)/100}).toRgbString()}return new On({r,g:n,b:o,a:1}).toRgbString()}var djt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{delete n[f]});const o=Object.assign(Object.assign({},r),n),a=480,i=576,s=768,l=992,u=1200,c=1600;if(o.motion===!1){const f="0s";o.motionDurationFast=f,o.motionDurationMid=f,o.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:mk(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:mk(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:mk(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:mk(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new On("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new On("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new On("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var yne=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const n=r.getDerivativeToken(e),{override:o}=t,a=yne(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=XSe(i),a&&Object.entries(a).forEach(s=>{let[l,u]=s;const{theme:c}=u,d=yne(u,["theme"]);let f=d;c&&(f=JSe(Object.assign(Object.assign({},i),d),{override:d},c)),i[l]=f}),i};function Cs(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=Y.useContext(KSe),a=`${cjt}-${t||""}`,i=r||qSe,[s,l,u]=K4t(i,[k$,e],{salt:a,override:n,getComputedToken:JSe,formatToken:XSe,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:QSe,ignore:ZSe,preserve:fjt}});return[i,u,t?l:"",s,o]}function Ds(e){var t=m.useRef();t.current=e;var r=m.useCallback(function(){for(var n,o=arguments.length,a=new Array(o),i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},wD=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),pjt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),mjt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),hjt=(e,t)=>{const{fontFamily:r,fontSize:n}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},S1=e=>({outline:`${Be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ewe=e=>({"&:focus-visible":Object.assign({},S1(e))});let vjt=Oo(function e(){oa(this,e)});const twe=vjt;function gjt(e,t,r){return t=jd(t),yD(e,r_()?Reflect.construct(t,r||[],jd(e).constructor):t.apply(e,r))}let bjt=function(e){Gd(t,e);function t(r){var n;return oa(this,t),n=gjt(this,t),n.result=0,r instanceof t?n.result=r.result:typeof r=="number"&&(n.result=r),n}return Oo(t,[{key:"add",value:function(n){return n instanceof t?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof t?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof t?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof t?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),t}(twe);function yjt(e,t,r){return t=jd(t),yD(e,r_()?Reflect.construct(t,r||[],jd(e).constructor):t.apply(e,r))}const rwe="CALC_UNIT";function zB(e){return typeof e=="number"?`${e}${rwe}`:e}let Sjt=function(e){Gd(t,e);function t(r){var n;return oa(this,t),n=yjt(this,t),n.result="",r instanceof t?n.result=`(${r.result})`:typeof r=="number"?n.result=zB(r):typeof r=="string"&&(n.result=r),n}return Oo(t,[{key:"add",value:function(n){return n instanceof t?this.result=`${this.result} + ${n.getResult()}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} + ${zB(n)}`),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof t?this.result=`${this.result} - ${n.getResult()}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} - ${zB(n)}`),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result=`(${this.result})`),n instanceof t?this.result=`${this.result} * ${n.getResult(!0)}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} * ${n}`),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result=`(${this.result})`),n instanceof t?this.result=`${this.result} / ${n.getResult(!0)}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} / ${n}`),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?`(${this.result})`:this.result}},{key:"equal",value:function(n){const{unit:o=!0}=n||{},a=new RegExp(`${rwe}`,"g");return this.result=this.result.replace(a,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(twe);const wjt=e=>{const t=e==="css"?Sjt:bjt;return r=>new t(r)},Cjt=wjt;function xjt(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,r=new Array(t),n=0;nBe(o)).join(",")})`},min:function(){for(var t=arguments.length,r=new Array(t),n=0;nBe(o)).join(",")})`}}}const nwe=typeof CSSINJS_STATISTIC<"u";let N6=!0;function Dn(){for(var e=arguments.length,t=new Array(e),r=0;r{Object.keys(o).forEach(i=>{Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),N6=!0,n}const Sne={};function $jt(){}const Ejt=e=>{let t,r=e,n=$jt;return nwe&&typeof Proxy<"u"&&(t=new Set,r=new Proxy(e,{get(o,a){return N6&&t.add(a),o[a]}}),n=(o,a)=>{var i;Sne[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Sne[o])===null||i===void 0?void 0:i.component),a)}}),{token:r,keys:t,flush:n}},_jt=Ejt,kjt=(e,t)=>{const[r,n]=Cs();return I6({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},wD()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},owe=kjt,awe=(e,t,r)=>{var n;return typeof r=="function"?r(Dn(t,(n=t[e])!==null&&n!==void 0?n:{})):r??{}},iwe=(e,t,r,n)=>{const o=Object.assign({},t[e]);if(n!=null&&n.deprecatedTokens){const{deprecatedTokens:i}=n;i.forEach(s=>{let[l,u]=s;var c;(o!=null&&o[l]||o!=null&&o[u])&&((c=o[u])!==null&&c!==void 0||(o[u]=o==null?void 0:o[l]))})}const a=Object.assign(Object.assign({},r),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},Pjt=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function EW(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[l,u,c,d,f]=Cs(),{getPrefixCls:p,iconPrefixCls:h,csp:v}=m.useContext(Er),b=p(),g=f?"css":"js",y=Cjt(g),{max:S,min:w}=xjt(g),$={theme:l,token:d,hashId:c,nonce:()=>v==null?void 0:v.nonce,clientOnly:n.clientOnly,order:n.order||-999};return I6(Object.assign(Object.assign({},$),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":mjt(d)}]),owe(h,v),[I6(Object.assign(Object.assign({},$),{path:[i,s,h]}),()=>{if(n.injectStyle===!1)return[];const{token:x,flush:E}=_jt(d),_=awe(a,u,r),k=`.${s}`,I=iwe(a,u,_,{deprecatedTokens:n.deprecatedTokens});f&&Object.keys(_).forEach(O=>{_[O]=`var(${xSe(O,Pjt(a,f.prefix))})`});const N=Dn(x,{componentCls:k,prefixCls:s,iconCls:`.${h}`,antCls:`.${b}`,calc:y,max:S,min:w},f?_:I),z=t(N,{hashId:c,prefixCls:s,rootPrefixCls:b,iconPrefixCls:h});return E(a,I),[n.resetStyle===!1?null:hjt(N,s),z]}),c]}}const _W=(e,t,r,n)=>{const o=EW(e,t,r,Object.assign({resetStyle:!1,order:-998},n));return i=>{let{prefixCls:s}=i;return o(s),null}},Tjt=(e,t,r)=>{function n(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=r??{},i={[n("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{i[n(u)]=o[u]});const s=u=>{let{rootCls:c,cssVar:d}=u;const[,f]=Cs();return a3t({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:Object.assign(Object.assign({},QSe),i),ignore:ZSe,token:f,scope:c},()=>{const p=awe(e,f,t),h=iwe(e,f,p,{deprecatedTokens:r==null?void 0:r.deprecatedTokens});return Object.keys(p).forEach(v=>{h[n(v)]=h[v],delete h[v]}),h}),null};return u=>{const[,,,,c]=Cs();return[d=>a&&c?Y.createElement(Y.Fragment,null,Y.createElement(s,{rootCls:u,cssVar:c,component:e}),d):d,c==null?void 0:c.key]}},Ka=(e,t,r,n)=>{const o=EW(e,t,r,n),a=Tjt(Array.isArray(e)?e[0]:e,r,n);return function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;const[,l]=o(i),[u,c]=a(s);return[u,l,c]}};function Ijt(e,t){return hR.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const Rjt=Object.assign({},Vi),{useId:wne}=Rjt,Fjt=()=>"",Ojt=typeof wne>"u"?Fjt:wne,Njt=Ojt;function Djt(e,t){xW();const r=e||{},n=r.inherit===!1||!t?USe:t,o=Njt();return $0(()=>{var a,i;if(!e)return t;const s=Object.assign({},n.components);Object.keys(e.components||{}).forEach(c=>{s[c]=Object.assign(Object.assign({},s[c]),e.components[c])});const l=`css-var-${o.replace(/:/g,"")}`,u=((a=r.cssVar)!==null&&a!==void 0?a:n.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof n.cssVar=="object"?n.cssVar:{}),typeof r.cssVar=="object"?r.cssVar:{}),{key:typeof r.cssVar=="object"&&((i=r.cssVar)===null||i===void 0?void 0:i.key)||l});return Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:s,cssVar:u})},[r,n],(a,i)=>a.some((s,l)=>{const u=i[l];return!qg(s,u,!0)}))}var Ajt=["children"],swe=m.createContext({});function Mjt(e){var t=e.children,r=St(e,Ajt);return m.createElement(swe.Provider,{value:r},t)}var Bjt=function(e){Gd(r,e);var t=E0(r);function r(){return oa(this,r),t.apply(this,arguments)}return Oo(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component),Pv="none",hk="appear",vk="enter",gk="leave",Cne="none",lc="prepare",qb="start",Ub="active",kW="end",lwe="prepared";function xne(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 jjt(e,t){var r={animationend:xne("Animation","AnimationEnd"),transitionend:xne("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Ljt=jjt(ws(),typeof window<"u"?window:{}),uwe={};if(ws()){var zjt=document.createElement("div");uwe=zjt.style}var bk={};function cwe(e){if(bk[e])return bk[e];var t=Ljt[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var a=rn(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return m.useEffect(function(){return function(){t()}},[]),[r,t]};var Wjt=[lc,qb,Ub,kW],qjt=[lc,lwe],hwe=!1,Ujt=!0;function vwe(e){return e===Ub||e===kW}const Kjt=function(e,t,r){var n=mg(Cne),o=Ce(n,2),a=o[0],i=o[1],s=Hjt(),l=Ce(s,2),u=l[0],c=l[1];function d(){i(lc,!0)}var f=t?qjt:Wjt;return mwe(function(){if(a!==Cne&&a!==kW){var p=f.indexOf(a),h=f[p+1],v=r(a);v===hwe?i(h,!0):h&&u(function(b){function g(){b.isCanceled()||i(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,a]),m.useEffect(function(){return function(){c()}},[]),[d,a]};function Gjt(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,u=l===void 0?!0:l,c=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,p=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,b=n.onEnterStart,g=n.onLeaveStart,y=n.onAppearActive,S=n.onEnterActive,w=n.onLeaveActive,$=n.onAppearEnd,C=n.onEnterEnd,x=n.onLeaveEnd,E=n.onVisibleChanged,_=mg(),k=Ce(_,2),I=k[0],N=k[1],z=mg(Pv),O=Ce(z,2),A=O[0],M=O[1],L=mg(null),j=Ce(L,2),H=j[0],B=j[1],F=m.useRef(!1),V=m.useRef(null);function D(){return r()}var P=m.useRef(!1);function R(){M(Pv,!0),B(null,!0)}function W(se){var pe=D();if(!(se&&!se.deadline&&se.target!==pe)){var ge=P.current,de;A===hk&&ge?de=$==null?void 0:$(pe,se):A===vk&&ge?de=C==null?void 0:C(pe,se):A===gk&&ge&&(de=x==null?void 0:x(pe,se)),A!==Pv&&ge&&de!==!1&&R()}}var U=Vjt(W),q=Ce(U,1),J=q[0],Z=function(pe){var ge,de,ee;switch(pe){case hk:return ge={},le(ge,lc,f),le(ge,qb,v),le(ge,Ub,y),ge;case vk:return de={},le(de,lc,p),le(de,qb,b),le(de,Ub,S),de;case gk:return ee={},le(ee,lc,h),le(ee,qb,g),le(ee,Ub,w),ee;default:return{}}},Q=m.useMemo(function(){return Z(A)},[A]),oe=Kjt(A,!e,function(se){if(se===lc){var pe=Q[lc];return pe?pe(D()):hwe}if(ae in Q){var ge;B(((ge=Q[ae])===null||ge===void 0?void 0:ge.call(Q,D(),null))||null)}return ae===Ub&&(J(D()),c>0&&(clearTimeout(V.current),V.current=setTimeout(function(){W({deadline:!0})},c))),ae===lwe&&R(),Ujt}),ie=Ce(oe,2),te=ie[0],ae=ie[1],fe=vwe(ae);P.current=fe,mwe(function(){N(t);var se=F.current;F.current=!0;var pe;!se&&t&&s&&(pe=hk),se&&t&&a&&(pe=vk),(se&&!t&&u||!se&&d&&!t&&u)&&(pe=gk);var ge=Z(pe);pe&&(e||ge[lc])?(M(pe),te()):M(Pv)},[t]),m.useEffect(function(){(A===hk&&!s||A===vk&&!a||A===gk&&!u)&&M(Pv)},[s,a,u]),m.useEffect(function(){return function(){F.current=!1,clearTimeout(V.current)}},[]);var ve=m.useRef(!1);m.useEffect(function(){I&&(ve.current=!0),I!==void 0&&A===Pv&&((ve.current||I)&&(E==null||E(I)),ve.current=!0)},[I,A]);var Se=H;return Q[lc]&&ae===qb&&(Se=be({transition:"none"},Se)),[A,ae,Se,I??t]}function Yjt(e){var t=e;or(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=m.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,u=l===void 0?!0:l,c=o.forceRender,d=o.children,f=o.motionName,p=o.leavedClassName,h=o.eventProps,v=m.useContext(swe),b=v.motion,g=r(o,b),y=m.useRef(),S=m.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:NC(S.current)}catch{return null}}var $=Gjt(g,s,w,o),C=Ce($,4),x=C[0],E=C[1],_=C[2],k=C[3],I=m.useRef(k);k&&(I.current=!0);var N=m.useCallback(function(B){y.current=B,bW(a,B)},[a]),z,O=be(be({},h),{},{visible:s});if(!d)z=null;else if(x===Pv)k?z=d(be({},O),N):!u&&I.current&&p?z=d(be(be({},O),{},{className:p}),N):c||!u&&!p?z=d(be(be({},O),{},{style:{display:"none"}}),N):z=null;else{var A,M;E===lc?M="prepare":vwe(E)?M="active":E===qb&&(M="start");var L=_ne(f,"".concat(x,"-").concat(M));z=d(be(be({},O),{},{className:Oe(_ne(f,x),(A={},le(A,L,L&&M),le(A,f,typeof f=="string"),A)),style:_}),N)}if(m.isValidElement(z)&&hS(z)){var j=z,H=j.ref;H||(z=m.cloneElement(z,{ref:N}))}return m.createElement(Bjt,{ref:S},z)});return n.displayName="CSSMotion",n}const _0=Yjt(pwe);var D6="add",A6="keep",M6="remove",VB="removed";function Xjt(e){var t;return e&&or(e)==="object"&&"key"in e?t=e:t={key:e},be(be({},t),{},{key:String(t.key)})}function B6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Xjt)}function Qjt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=B6(e),i=B6(t);a.forEach(function(u){for(var c=!1,d=n;d1});return l.forEach(function(u){r=r.filter(function(c){var d=c.key,f=c.status;return d!==u||f!==M6}),r.forEach(function(c){c.key===u&&(c.status=A6)})}),r}var Zjt=["component","children","onVisibleChanged","onAllRemoved"],Jjt=["status"],eLt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tLt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_0,r=function(n){Gd(a,n);var o=E0(a);function a(){var i;oa(this,a);for(var s=arguments.length,l=new Array(s),u=0;unull;var aLt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const cLt=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(gwe=t),n&&uLt(n)&&sjt(lLt(),n)},dLt=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:u,space:c,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:v,parentContext:b,iconPrefixCls:g,theme:y,componentDisabled:S,segmented:w,statistic:$,spin:C,calendar:x,carousel:E,cascader:_,collapse:k,typography:I,checkbox:N,descriptions:z,divider:O,drawer:A,skeleton:M,steps:L,image:j,layout:H,list:B,mentions:F,modal:V,progress:D,result:P,slider:R,breadcrumb:W,menu:U,pagination:q,input:J,empty:Z,badge:Q,radio:oe,rate:ie,switch:te,transfer:ae,avatar:fe,message:ve,tag:Se,table:se,card:pe,tabs:ge,timeline:de,timePicker:ee,upload:me,notification:Re,tree:je,colorPicker:ze,datePicker:Le,rangePicker:$e,flex:Je,wave:Pe,dropdown:st,warning:_e}=e,De=m.useCallback((Ge,ot)=>{const{prefixCls:at}=e;if(ot)return ot;const Ve=at||b.getPrefixCls("");return Ge?`${Ve}-${Ge}`:Ve},[b.getPrefixCls,e.prefixCls]),et=g||b.iconPrefixCls||GSe,Ie=r||b.csp;owe(et,Ie);const Fe=Djt(y,b.theme),vt={csp:Ie,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||v,direction:u,space:c,virtual:d,popupMatchSelectWidth:p??f,popupOverflow:h,getPrefixCls:De,iconPrefixCls:et,theme:Fe,segmented:w,statistic:$,spin:C,calendar:x,carousel:E,cascader:_,collapse:k,typography:I,checkbox:N,descriptions:z,divider:O,drawer:A,skeleton:M,steps:L,image:j,input:J,layout:H,list:B,mentions:F,modal:V,progress:D,result:P,slider:R,breadcrumb:W,menu:U,pagination:q,empty:Z,badge:Q,radio:oe,rate:ie,switch:te,transfer:ae,avatar:fe,message:ve,tag:Se,table:se,card:pe,tabs:ge,timeline:de,timePicker:ee,upload:me,notification:Re,tree:je,colorPicker:ze,datePicker:Le,rangePicker:$e,flex:Je,wave:Pe,dropdown:st,warning:_e},bt=Object.assign({},b);Object.keys(vt).forEach(Ge=>{vt[Ge]!==void 0&&(bt[Ge]=vt[Ge])}),iLt.forEach(Ge=>{const ot=e[Ge];ot&&(bt[Ge]=ot)});const wt=$0(()=>bt,bt,(Ge,ot)=>{const at=Object.keys(Ge),Ve=Object.keys(ot);return at.length!==Ve.length||at.some(Qe=>Ge[Qe]!==ot[Qe])}),mt=m.useMemo(()=>({prefixCls:et,csp:Ie}),[et,Ie]);let xe=m.createElement(m.Fragment,null,m.createElement(oLt,{dropdownMatchSelectWidth:f}),t);const Ae=m.useMemo(()=>{var Ge,ot,at,Ve;return Wb(((Ge=Ug.Form)===null||Ge===void 0?void 0:Ge.defaultValidateMessages)||{},((at=(ot=wt.locale)===null||ot===void 0?void 0:ot.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((Ve=wt.form)===null||Ve===void 0?void 0:Ve.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[wt,i==null?void 0:i.validateMessages]);Object.keys(Ae).length>0&&(xe=m.createElement(NSe.Provider,{value:Ae},xe)),s&&(xe=m.createElement(w3t,{locale:s,_ANT_MARK__:y3t},xe)),(et||Ie)&&(xe=m.createElement(CW.Provider,{value:mt},xe)),l&&(xe=m.createElement(ljt,{size:l},xe)),xe=m.createElement(nLt,null,xe);const He=m.useMemo(()=>{const Ge=Fe||{},{algorithm:ot,token:at,components:Ve,cssVar:Qe}=Ge,he=aLt(Ge,["algorithm","token","components","cssVar"]),ye=ot&&(!Array.isArray(ot)||ot.length>0)?k6(ot):qSe,Ee={};Object.entries(Ve||{}).forEach(re=>{let[X,ne]=re;const we=Object.assign({},ne);"algorithm"in we&&(we.algorithm===!0?we.theme=ye:(Array.isArray(we.algorithm)||typeof we.algorithm=="function")&&(we.theme=k6(we.algorithm)),delete we.algorithm),Ee[X]=we});const rt=Object.assign(Object.assign({},k$),at);return Object.assign(Object.assign({},he),{theme:ye,token:rt,components:Ee,override:Object.assign({override:rt},Ee),cssVar:Qe})},[Fe]);return y&&(xe=m.createElement(KSe.Provider,{value:He},xe)),wt.warning&&(xe=m.createElement(d3t.Provider,{value:wt.warning},xe)),S!==void 0&&(xe=m.createElement(YSe,{disabled:S},xe)),m.createElement(Er.Provider,{value:wt},xe)},Yd=e=>{const t=m.useContext(Er),r=m.useContext($W);return m.createElement(dLt,Object.assign({parentContext:t,legacyLocale:r},e))};Yd.ConfigContext=Er;Yd.SizeContext=o_;Yd.config=cLt;Yd.useConfig=ujt;Object.defineProperty(Yd,"SizeContext",{get:()=>o_});var fLt={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"};const pLt=fLt;function bwe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function mLt(e){return bwe(e)instanceof ShadowRoot}function gR(e){return mLt(e)?bwe(e):null}function hLt(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function vLt(e,t){fa(e,"[@ant-design/icons] ".concat(t))}function kne(e){return or(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(or(e.icon)==="object"||typeof e.icon=="function")}function Pne(){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[hLt(r)]=n}return t},{})}function j6(e,t,r){return r?Y.createElement(e.tag,be(be({key:t},Pne(e.attrs)),r),(e.children||[]).map(function(n,o){return j6(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Y.createElement(e.tag,be({key:t},Pne(e.attrs)),(e.children||[]).map(function(n,o){return j6(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ywe(e){return Kg(e)[0]}function Swe(e){return e?Array.isArray(e)?e:[e]:[]}var gLt=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,bLt=function(t){var r=m.useContext(CW),n=r.csp,o=r.prefixCls,a=gLt;o&&(a=a.replace(/anticon/g,o)),m.useEffect(function(){var i=t.current,s=gR(i);Dh(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},yLt=["icon","className","onClick","style","primaryColor","secondaryColor"],BC={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function SLt(e){var t=e.primaryColor,r=e.secondaryColor;BC.primaryColor=t,BC.secondaryColor=r||ywe(t),BC.calculated=!!r}function wLt(){return be({},BC)}var CD=function(t){var r=t.icon,n=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=St(t,yLt),u=m.useRef(),c=BC;if(i&&(c={primaryColor:i,secondaryColor:s||ywe(i)}),bLt(u),vLt(kne(r),"icon should be icon definiton, but got ".concat(r)),!kne(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=be(be({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),j6(d.icon,"svg-".concat(d.name),be(be({className:n,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};CD.displayName="IconReact";CD.getTwoToneColors=wLt;CD.setTwoToneColors=SLt;const PW=CD;function wwe(e){var t=Swe(e),r=Ce(t,2),n=r[0],o=r[1];return PW.setTwoToneColors({primaryColor:n,secondaryColor:o})}function CLt(){var e=PW.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var xLt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];wwe(H3t.primary);var xD=m.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=St(e,xLt),c=m.useContext(CW),d=c.prefixCls,f=d===void 0?"anticon":d,p=c.rootClassName,h=Oe(p,f,le(le({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!o||n.name==="loading"),r),v=i;v===void 0&&s&&(v=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,g=Swe(l),y=Ce(g,2),S=y[0],w=y[1];return m.createElement("span",G({role:"img","aria-label":n.name},u,{ref:t,tabIndex:v,onClick:s,className:h}),m.createElement(PW,{icon:n,primaryColor:S,secondaryColor:w,style:b}))});xD.displayName="AntdIcon";xD.getTwoToneColor=CLt;xD.setTwoToneColor=wwe;const ha=xD;var $Lt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:pLt}))};const Cwe=m.forwardRef($Lt);var ELt={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"};const _Lt=ELt;var kLt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:_Lt}))};const k0=m.forwardRef(kLt);var PLt={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"};const TLt=PLt;var ILt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:TLt}))};const xwe=m.forwardRef(ILt);var RLt={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"};const FLt=RLt;var OLt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:FLt}))};const $we=m.forwardRef(OLt);var NLt={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"};const DLt=NLt;var ALt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:DLt}))};const MLt=m.forwardRef(ALt);var BLt=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,jLt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,LLt="".concat(BLt," ").concat(jLt).split(/[\s\n]+/),zLt="aria-",VLt="data-";function Tne(e,t){return e.indexOf(t)===0}function pp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=be({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Tne(o,zLt))||r.data&&Tne(o,VLt)||r.attr&&LLt.includes(o))&&(n[o]=e[o])}),n}const{isValidElement:w1}=Vi;function Ewe(e){return e&&w1(e)&&e.type===m.Fragment}function _we(e,t,r){return w1(e)?m.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function mp(e,t){return _we(e,e,t)}const yk=(e,t,r,n,o)=>({background:e,border:`${Be(n.lineWidth)} ${n.lineType} ${t}`,[`${o}-icon`]:{color:r}}),HLt=e=>{const{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:u,withDescriptionIconSize:c,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},wo(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${u}, opacity ${r} ${u}, + padding-top ${r} ${u}, padding-bottom ${r} ${u}, + margin-bottom ${r} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:f,fontSize:i},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},WLt=e=>{const{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:s,colorError:l,colorErrorBorder:u,colorErrorBg:c,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":yk(o,n,r,e,t),"&-info":yk(p,f,d,e,t),"&-warning":yk(s,i,a,e,t),"&-error":Object.assign(Object.assign({},yk(c,u,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},qLt=e=>{const{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:Be(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:i,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${n}`,"&:hover":{color:s}}}}},ULt=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),KLt=Ka("Alert",e=>[HLt(e),WLt(e),qLt(e)],ULt);var GLt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:r,type:n}=e,o=YLt[n]||null;return t?_we(t,m.createElement("span",{className:`${r}-icon`},t),()=>({className:Oe(`${r}-icon`,{[t.props.className]:t.props.className})})):m.createElement(o,{className:`${r}-icon`})},QLt=e=>{const{isClosable:t,prefixCls:r,closeIcon:n,handleClose:o}=e,a=n===!0||n===void 0?m.createElement(xwe,null):n;return t?m.createElement("button",{type:"button",onClick:o,className:`${r}-close-icon`,tabIndex:0},a):null},ZLt=e=>{const{description:t,prefixCls:r,message:n,banner:o,className:a,rootClassName:i,style:s,onMouseEnter:l,onMouseLeave:u,onClick:c,afterClose:d,showIcon:f,closable:p,closeText:h,closeIcon:v,action:b}=e,g=GLt(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[y,S]=m.useState(!1),w=m.useRef(null),{getPrefixCls:$,direction:C,alert:x}=m.useContext(Er),E=$("alert",r),[_,k,I]=KLt(E),N=j=>{var H;S(!0),(H=e.onClose)===null||H===void 0||H.call(e,j)},z=m.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),O=m.useMemo(()=>h?!0:typeof p=="boolean"?p:v!==!1&&v!==null&&v!==void 0,[h,v,p]),A=o&&f===void 0?!0:f,M=Oe(E,`${E}-${z}`,{[`${E}-with-description`]:!!t,[`${E}-no-icon`]:!A,[`${E}-banner`]:!!o,[`${E}-rtl`]:C==="rtl"},x==null?void 0:x.className,a,i,I,k),L=pp(g,{aria:!0,data:!0});return _(m.createElement(_0,{visible:!y,motionName:`${E}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:j=>({maxHeight:j.offsetHeight}),onLeaveEnd:d},j=>{let{className:H,style:B}=j;return m.createElement("div",Object.assign({ref:w,"data-show":!y,className:Oe(M,H),style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.style),s),B),onMouseEnter:l,onMouseLeave:u,onClick:c,role:"alert"},L),A?m.createElement(XLt,{description:t,icon:e.icon,prefixCls:E,type:z}):null,m.createElement("div",{className:`${E}-content`},n?m.createElement("div",{className:`${E}-message`},n):null,t?m.createElement("div",{className:`${E}-description`},t):null),b?m.createElement("div",{className:`${E}-action`},b):null,m.createElement(QLt,{isClosable:O,prefixCls:E,closeIcon:h||v,handleClose:N}))}))},kwe=ZLt;function JLt(e,t,r){return t=jd(t),yD(e,r_()?Reflect.construct(t,r||[],jd(e).constructor):t.apply(e,r))}let e6t=function(e){Gd(t,e);function t(){var r;return oa(this,t),r=JLt(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}return Oo(t,[{key:"componentDidCatch",value:function(n,o){this.setState({error:n,info:o})}},{key:"render",value:function(){const{message:n,description:o,children:a}=this.props,{error:i,info:s}=this.state,l=s&&s.componentStack?s.componentStack:null,u=typeof n>"u"?(i||"").toString():n,c=typeof o>"u"?l:o;return i?m.createElement(kwe,{type:"error",message:u,description:m.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):a}}]),t}(m.Component);const t6t=e6t,Pwe=kwe;Pwe.ErrorBoundary=t6t;const r6t=Pwe,Ine=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Rne=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",HB=(e,t)=>{if(e.clientHeight{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeightat||a>e&&i=t&&s>=r?a-e-n:i>t&&sr?i-t+o:0,n6t=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Fne=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:M=>M!==u;if(!Ine(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Ine(h)&&d(h);){if(h=n6t(h),h===f){p.push(h);break}h!=null&&h===document.body&&HB(h)&&!HB(document.documentElement)||h!=null&&HB(h,c)&&p.push(h)}const v=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,b=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:g,scrollY:y}=window,{height:S,width:w,top:$,right:C,bottom:x,left:E}=e.getBoundingClientRect(),{top:_,right:k,bottom:I,left:N}=(M=>{const L=window.getComputedStyle(M);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let z=s==="start"||s==="nearest"?$-_:s==="end"?x+I:$+S/2-_+I,O=l==="center"?E+w/2-N+k:l==="end"?C+k:E-N;const A=[];for(let M=0;M=0&&E>=0&&x<=b&&C<=v&&$>=B&&x<=V&&E>=D&&C<=F)return A;const P=getComputedStyle(L),R=parseInt(P.borderLeftWidth,10),W=parseInt(P.borderTopWidth,10),U=parseInt(P.borderRightWidth,10),q=parseInt(P.borderBottomWidth,10);let J=0,Z=0;const Q="offsetWidth"in L?L.offsetWidth-L.clientWidth-R-U:0,oe="offsetHeight"in L?L.offsetHeight-L.clientHeight-W-q:0,ie="offsetWidth"in L?L.offsetWidth===0?0:H/L.offsetWidth:0,te="offsetHeight"in L?L.offsetHeight===0?0:j/L.offsetHeight:0;if(f===L)J=s==="start"?z:s==="end"?z-b:s==="nearest"?Sk(y,y+b,b,W,q,y+z,y+z+S,S):z-b/2,Z=l==="start"?O:l==="center"?O-v/2:l==="end"?O-v:Sk(g,g+v,v,R,U,g+O,g+O+w,w),J=Math.max(0,J+y),Z=Math.max(0,Z+g);else{J=s==="start"?z-B-W:s==="end"?z-V+q+oe:s==="nearest"?Sk(B,V,j,W,q+oe,z,z+S,S):z-(B+j/2)+oe/2,Z=l==="start"?O-D-R:l==="center"?O-(D+H/2)+Q/2:l==="end"?O-F+U+Q:Sk(D,F,H,R,U+Q,O,O+w,w);const{scrollLeft:ae,scrollTop:fe}=L;J=te===0?0:Math.max(0,Math.min(fe+J/te,L.scrollHeight-j/te+oe)),Z=ie===0?0:Math.max(0,Math.min(ae+Z/ie,L.scrollWidth-H/ie+Q)),z+=fe-J,O+=ae-Z}A.push({el:L,top:J,left:Z})}return A},o6t=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function a6t(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const r=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Fne(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Fne(e,o6t(t))){const s=a-r.top+r.bottom,l=i-r.left+r.right;o.scroll({top:s,left:l,behavior:n})}}const i6t=e=>{const[,,,,t]=Cs();return t?`${e}-css-var`:""},Vl=i6t;var Xe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Xe.F1&&r<=Xe.F12)return!1;switch(r){case Xe.ALT:case Xe.CAPS_LOCK:case Xe.CONTEXT_MENU:case Xe.CTRL:case Xe.DOWN:case Xe.END:case Xe.ESC:case Xe.HOME:case Xe.INSERT:case Xe.LEFT:case Xe.MAC_FF_META:case Xe.META:case Xe.NUMLOCK:case Xe.NUM_CENTER:case Xe.PAGE_DOWN:case Xe.PAGE_UP:case Xe.PAUSE:case Xe.PRINT_SCREEN:case Xe.RIGHT:case Xe.SHIFT:case Xe.UP:case Xe.WIN_KEY:case Xe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Xe.ZERO&&t<=Xe.NINE||t>=Xe.NUM_ZERO&&t<=Xe.NUM_MULTIPLY||t>=Xe.A&&t<=Xe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Xe.SPACE:case Xe.QUESTION_MARK:case Xe.NUM_PLUS:case Xe.NUM_MINUS:case Xe.NUM_PERIOD:case Xe.NUM_DIVISION:case Xe.SEMICOLON:case Xe.DASH:case Xe.EQUALS:case Xe.COMMA:case Xe.PERIOD:case Xe.SLASH:case Xe.APOSTROPHE:case Xe.SINGLE_QUOTE:case Xe.OPEN_SQUARE_BRACKET:case Xe.BACKSLASH:case Xe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},s6t={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"};const l6t=s6t;var u6t=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:l6t}))};const TW=m.forwardRef(u6t),c6t=Y.createContext(void 0),Twe=c6t,Tv=100,d6t=10,f6t=Tv*d6t,Iwe={Modal:Tv,Drawer:Tv,Popover:Tv,Popconfirm:Tv,Tooltip:Tv,Tour:Tv},p6t={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function m6t(e){return e in Iwe}function $D(e,t){const[,r]=Cs(),n=Y.useContext(Twe),o=m6t(e);if(t!==void 0)return[t,t];let a=n??0;return o?(a+=(n?0:r.zIndexPopupBase)+Iwe[e],a=Math.min(a,r.zIndexPopupBase+f6t)):a+=p6t[e],[n===void 0?t:a,a]}function xs(){xs=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(M,L,j){M[L]=j.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(M,L,j){return Object.defineProperty(M,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),M[L]}try{u({},"")}catch{u=function(j,H,B){return j[H]=B}}function c(M,L,j,H){var B=L&&L.prototype instanceof g?L:g,F=Object.create(B.prototype),V=new O(H||[]);return o(F,"_invoke",{value:k(M,j,V)}),F}function d(M,L,j){try{return{type:"normal",arg:M.call(L,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",v="completed",b={};function g(){}function y(){}function S(){}var w={};u(w,i,function(){return this});var $=Object.getPrototypeOf,C=$&&$($(A([])));C&&C!==r&&n.call(C,i)&&(w=C);var x=S.prototype=g.prototype=Object.create(w);function E(M){["next","throw","return"].forEach(function(L){u(M,L,function(j){return this._invoke(L,j)})})}function _(M,L){function j(B,F,V,D){var P=d(M[B],M,F);if(P.type!=="throw"){var R=P.arg,W=R.value;return W&&or(W)=="object"&&n.call(W,"__await")?L.resolve(W.__await).then(function(U){j("next",U,V,D)},function(U){j("throw",U,V,D)}):L.resolve(W).then(function(U){R.value=U,V(R)},function(U){return j("throw",U,V,D)})}D(P.arg)}var H;o(this,"_invoke",{value:function(F,V){function D(){return new L(function(P,R){j(F,V,P,R)})}return H=H?H.then(D,D):D()}})}function k(M,L,j){var H=f;return function(B,F){if(H===h)throw Error("Generator is already running");if(H===v){if(B==="throw")throw F;return{value:e,done:!0}}for(j.method=B,j.arg=F;;){var V=j.delegate;if(V){var D=I(V,j);if(D){if(D===b)continue;return D}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===f)throw H=v,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=h;var P=d(M,L,j);if(P.type==="normal"){if(H=j.done?v:p,P.arg===b)continue;return{value:P.arg,done:j.done}}P.type==="throw"&&(H=v,j.method="throw",j.arg=P.arg)}}}function I(M,L){var j=L.method,H=M.iterator[j];if(H===e)return L.delegate=null,j==="throw"&&M.iterator.return&&(L.method="return",L.arg=e,I(M,L),L.method==="throw")||j!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+j+"' method")),b;var B=d(H,M.iterator,L.arg);if(B.type==="throw")return L.method="throw",L.arg=B.arg,L.delegate=null,b;var F=B.arg;return F?F.done?(L[M.resultName]=F.value,L.next=M.nextLoc,L.method!=="return"&&(L.method="next",L.arg=e),L.delegate=null,b):F:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,b)}function N(M){var L={tryLoc:M[0]};1 in M&&(L.catchLoc=M[1]),2 in M&&(L.finallyLoc=M[2],L.afterLoc=M[3]),this.tryEntries.push(L)}function z(M){var L=M.completion||{};L.type="normal",delete L.arg,M.completion=L}function O(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(N,this),this.reset(!0)}function A(M){if(M||M===""){var L=M[i];if(L)return L.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var j=-1,H=function B(){for(;++j=0;--B){var F=this.tryEntries[B],V=F.completion;if(F.tryLoc==="root")return H("end");if(F.tryLoc<=this.prev){var D=n.call(F,"catchLoc"),P=n.call(F,"finallyLoc");if(D&&P){if(this.prev=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===L)return this.complete(H.completion,H.afterLoc),z(H),b}},catch:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===L){var B=H.completion;if(B.type==="throw"){var F=B.arg;z(H)}return F}}throw Error("illegal catch attempt")},delegateYield:function(L,j,H){return this.delegate={iterator:A(L),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),b}},t}function One(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,o)}function P0(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){One(a,n,o,i,s,"next",l)}function s(l){One(a,n,o,i,s,"throw",l)}i(void 0)})}}var a_=be({},MFe),h6t=a_.version,v6t=a_.render,g6t=a_.unmountComponentAtNode,ED;try{var b6t=Number((h6t||"").split(".")[0]);b6t>=18&&(ED=a_.createRoot)}catch{}function Nne(e){var t=a_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&or(t)==="object"&&(t.usingClientEntryPoint=e)}var bR="__rc_react_root__";function y6t(e,t){Nne(!0);var r=t[bR]||ED(t);Nne(!1),r.render(e),t[bR]=r}function S6t(e,t){v6t(e,t)}function w6t(e,t){if(ED){y6t(e,t);return}S6t(e,t)}function C6t(e){return L6.apply(this,arguments)}function L6(){return L6=P0(xs().mark(function e(t){return xs().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[bR])===null||o===void 0||o.unmount(),delete t[bR]}));case 1:case"end":return n.stop()}},e)})),L6.apply(this,arguments)}function x6t(e){g6t(e)}function $6t(e){return z6.apply(this,arguments)}function z6(){return z6=P0(xs().mark(function e(t){return xs().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(ED===void 0){n.next=2;break}return n.abrupt("return",C6t(t));case 2:x6t(t);case 3:case"end":return n.stop()}},e)})),z6.apply(this,arguments)}const WB=()=>({height:0,opacity:0}),Dne=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},E6t=e=>({height:e?e.offsetHeight:0}),qB=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",_6t=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:WB,onEnterStart:WB,onAppearActive:Dne,onEnterActive:Dne,onLeaveStart:E6t,onLeaveActive:WB,onAppearEnd:qB,onEnterEnd:qB,onLeaveEnd:qB,motionDeadline:500}},Rwe=(e,t,r)=>r!==void 0?r:`${e}-${t}`,Ane=_6t,_D=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 o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},k6t=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},P6t=EW("Wave",e=>[k6t(e)]);function T6t(e){const 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}function UB(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&T6t(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function I6t(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return UB(t)?t:UB(r)?r:UB(n)?n:null}const kD="ant-wave-target";function KB(e){return Number.isNaN(e)?0:e}const R6t=e=>{const{className:t,target:r,component:n}=e,o=m.useRef(null),[a,i]=m.useState(null),[s,l]=m.useState([]),[u,c]=m.useState(0),[d,f]=m.useState(0),[p,h]=m.useState(0),[v,b]=m.useState(0),[g,y]=m.useState(!1),S={left:u,top:d,width:p,height:v,borderRadius:s.map(C=>`${C}px`).join(" ")};a&&(S["--wave-color"]=a);function w(){const C=getComputedStyle(r);i(I6t(r));const x=C.position==="static",{borderLeftWidth:E,borderTopWidth:_}=C;c(x?r.offsetLeft:KB(-parseFloat(E))),f(x?r.offsetTop:KB(-parseFloat(_))),h(r.offsetWidth),b(r.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:I,borderBottomLeftRadius:N,borderBottomRightRadius:z}=C;l([k,I,z,N].map(O=>KB(parseFloat(O))))}if(m.useEffect(()=>{if(r){const C=rn(()=>{w(),y(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(w),x.observe(r)),()=>{rn.cancel(C),x==null||x.disconnect()}}},[]),!g)return null;const $=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(kD));return m.createElement(_0,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,x)=>{var E;if(x.deadline||x.propertyName==="opacity"){const _=(E=o.current)===null||E===void 0?void 0:E.parentElement;$6t(_).then(()=>{_==null||_.remove()})}return!1}},C=>{let{className:x}=C;return m.createElement("div",{ref:o,className:Oe(t,{"wave-quick":$},x),style:S})})},F6t=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),w6t(m.createElement(R6t,Object.assign({},t,{target:e})),o)},O6t=F6t;function N6t(e,t,r){const{wave:n}=m.useContext(Er),[,o,a]=Cs(),i=Ds(u=>{const c=e.current;if(n!=null&&n.disabled||!c)return;const d=c.querySelector(`.${kD}`)||c,{showEffect:f}=n||{};(f||O6t)(d,{className:t,token:o,component:r,event:u,hashId:a})}),s=m.useRef();return u=>{rn.cancel(s.current),s.current=rn(()=>{i(u)})}}const D6t=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=m.useContext(Er),a=m.useRef(null),i=o("wave"),[,s]=P6t(i),l=N6t(a,Oe(i,s),n);if(Y.useEffect(()=>{const c=a.current;if(!c||c.nodeType!==1||r)return;const d=f=>{!_D(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||l(f)};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0)}},[r]),!Y.isValidElement(t))return t??null;const u=hS(t)?zl(t.ref,a):a;return mp(t,{ref:u})},IW=D6t,A6t=e=>{const t=Y.useContext(o_);return Y.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Hl=A6t,M6t=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},B6t=M6t,j6t=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},L6t=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Fwe=Ka("Space",e=>{const t=Dn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[j6t(t),L6t(t),B6t(t)]},()=>({}),{resetStyle:!1});var Owe=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const r=m.useContext(PD),n=m.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=r,s=o==="vertical"?"-vertical-":"-";return Oe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},Gg=e=>{let{children:t}=e;return m.createElement(PD.Provider,{value:null},t)},z6t=e=>{var{children:t}=e,r=Owe(e,["children"]);return m.createElement(PD.Provider,{value:r},t)},V6t=e=>{const{getPrefixCls:t,direction:r}=m.useContext(Er),{size:n,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:u}=e,c=Owe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Hl(S=>n??S),f=t("space-compact",i),[p,h]=Fwe(f),v=Oe(f,h,{[`${f}-rtl`]:r==="rtl",[`${f}-block`]:a,[`${f}-vertical`]:o==="vertical"},s,l),b=m.useContext(PD),g=Nh(u),y=m.useMemo(()=>g.map((S,w)=>{const $=S&&S.key||`${f}-item-${w}`;return m.createElement(z6t,{key:$,compactSize:d,compactDirection:o,isFirstItem:w===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:w===g.length-1&&(!b||(b==null?void 0:b.isLastItem))},S)}),[n,g,b]);return g.length===0?null:p(m.createElement("div",Object.assign({className:v},c),y))};var H6t=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:r}=m.useContext(Er),{prefixCls:n,size:o,className:a}=e,i=H6t(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Cs();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const c=Oe(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},a,l);return m.createElement(Nwe.Provider,{value:o},m.createElement("div",Object.assign({},i,{className:c})))},q6t=W6t,Mne=/^[\u4e00-\u9fa5]{2}$/,V6=Mne.test.bind(Mne);function Bne(e){return typeof e=="string"}function GB(e){return e==="text"||e==="link"}function U6t(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Bne(e.type)&&V6(e.props.children)?mp(e,{children:e.props.children.split("").join(r)}):Bne(e)?V6(e)?Y.createElement("span",null,e.split("").join(r)):Y.createElement("span",null,e):Ewe(e)?Y.createElement("span",null,e):e}function K6t(e,t){let r=!1;const n=[];return Y.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=i}),Y.Children.map(n,o=>U6t(o,t))}const G6t=m.forwardRef((e,t)=>{const{className:r,style:n,children:o,prefixCls:a}=e,i=Oe(`${a}-icon`,r);return Y.createElement("span",{ref:t,className:i,style:n},o)}),Dwe=G6t,jne=m.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:a}=e;const i=Oe(`${r}-loading-icon`,n);return Y.createElement(Dwe,{prefixCls:r,className:i,style:o,ref:t},Y.createElement(TW,{className:a}))}),YB=()=>({width:0,opacity:0,transform:"scale(0)"}),XB=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Y6t=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:a}=e,i=!!r;return n?Y.createElement(jne,{prefixCls:t,className:o,style:a}):Y.createElement(_0,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:YB,onAppearActive:XB,onEnterStart:YB,onEnterActive:XB,onLeaveStart:XB,onLeaveActive:YB},(s,l)=>{let{className:u,style:c}=s;return Y.createElement(jne,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),c),ref:l,iconClassName:u})})},X6t=Y6t,Lne=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Q6t=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Lne(`${t}-primary`,o),Lne(`${t}-danger`,a)]}},Z6t=Q6t,Awe=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Dn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},Mwe=e=>{var t,r,n,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,c=(o=e.contentLineHeight)!==null&&o!==void 0?o:iT(s),d=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:iT(l),f=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:iT(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:c,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*f)/2-e.lineWidth,0)}},J6t=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Be(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ewe(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},hp=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),ezt=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),tzt=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),rzt=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),P$=(e,t,r,n,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},hp(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),RW=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},rzt(e))}),Bwe=e=>Object.assign({},RW(e)),yR=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),jwe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bwe(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),hp(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),P$(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},hp(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),P$(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),RW(e))}),nzt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bwe(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),hp(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),P$(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},hp(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),P$(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),RW(e))}),ozt=e=>Object.assign(Object.assign({},jwe(e)),{borderStyle:"dashed"}),azt=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},hp(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),yR(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},hp(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),yR(e))}),izt=e=>Object.assign(Object.assign(Object.assign({},hp(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),yR(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yR(e)),hp(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),szt=e=>{const{componentCls:t}=e;return{[`${t}-default`]:jwe(e),[`${t}-primary`]:nzt(e),[`${t}-dashed`]:ozt(e),[`${t}-link`]:azt(e),[`${t}-text`]:izt(e),[`${t}-ghost`]:P$(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},FW=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,c=`${r}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:n,padding:`${Be(u)} ${Be(s)}`,borderRadius:i,[`&${c}`]:{width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:ezt(e)},{[`${r}${r}-round${t}`]:tzt(e)}]},lzt=e=>{const t=Dn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return FW(t,e.componentCls)},uzt=e=>{const t=Dn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return FW(t,`${e.componentCls}-sm`)},czt=e=>{const t=Dn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return FW(t,`${e.componentCls}-lg`)},dzt=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},fzt=Ka("Button",e=>{const t=Awe(e);return[J6t(t),lzt(t),uzt(t),czt(t),dzt(t),szt(t),Z6t(t)]},Mwe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function pzt(e,t,r){const{focusElCls:n,focus:o,borderElCls:a}=r,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function mzt(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},pzt(e,n,t)),mzt(r,n,t))}}function hzt(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function vzt(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function gzt(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},hzt(e,t)),vzt(e.componentCls,t))}}const bzt=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Be(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Be(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},yzt=_W(["Button","compact"],e=>{const t=Awe(e);return[i_(t),gzt(t),bzt(t)]},Mwe);var Szt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:u,styles:c,disabled:d,className:f,rootClassName:p,children:h,icon:v,ghost:b=!1,block:g=!1,htmlType:y="button",classNames:S,style:w={}}=e,$=Szt(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:C,autoInsertSpaceInButton:x,direction:E,button:_}=m.useContext(Er),k=C("btn",a),[I,N,z]=fzt(k),O=m.useContext(Mu),A=d??O,M=m.useContext(Nwe),L=m.useMemo(()=>wzt(o),[o]),[j,H]=m.useState(L.loading),[B,F]=m.useState(!1),D=zl(t,m.createRef()),P=m.Children.count(h)===1&&!v&&!GB(i);m.useEffect(()=>{let ge=null;L.delay>0?ge=setTimeout(()=>{ge=null,H(!0)},L.delay):H(L.loading);function de(){ge&&(clearTimeout(ge),ge=null)}return de},[L]),m.useEffect(()=>{if(!D||!D.current||x===!1)return;const ge=D.current.textContent;P&&V6(ge)?B||F(!0):B&&F(!1)},[D]);const R=ge=>{const{onClick:de}=e;if(j||A){ge.preventDefault();return}de==null||de(ge)},W=x!==!1,{compactSize:U,compactItemClassnames:q}=T0(k,E),J={large:"lg",small:"sm",middle:void 0},Z=Hl(ge=>{var de,ee;return(ee=(de=u??U)!==null&&de!==void 0?de:M)!==null&&ee!==void 0?ee:ge}),Q=Z&&J[Z]||"",oe=j?"loading":v,ie=Lp($,["navigate"]),te=Oe(k,N,z,{[`${k}-${l}`]:l!=="default"&&l,[`${k}-${i}`]:i,[`${k}-${Q}`]:Q,[`${k}-icon-only`]:!h&&h!==0&&!!oe,[`${k}-background-ghost`]:b&&!GB(i),[`${k}-loading`]:j,[`${k}-two-chinese-chars`]:B&&W&&!j,[`${k}-block`]:g,[`${k}-dangerous`]:!!s,[`${k}-rtl`]:E==="rtl"},q,f,p,_==null?void 0:_.className),ae=Object.assign(Object.assign({},_==null?void 0:_.style),w),fe=Oe(S==null?void 0:S.icon,(r=_==null?void 0:_.classNames)===null||r===void 0?void 0:r.icon),ve=Object.assign(Object.assign({},(c==null?void 0:c.icon)||{}),((n=_==null?void 0:_.styles)===null||n===void 0?void 0:n.icon)||{}),Se=v&&!j?Y.createElement(Dwe,{prefixCls:k,className:fe,style:ve},v):Y.createElement(X6t,{existIcon:!!v,prefixCls:k,loading:!!j}),se=h||h===0?K6t(h,P&&W):null;if(ie.href!==void 0)return I(Y.createElement("a",Object.assign({},ie,{className:Oe(te,{[`${k}-disabled`]:A}),href:A?void 0:ie.href,style:ae,onClick:R,ref:D,tabIndex:A?-1:0}),Se,se));let pe=Y.createElement("button",Object.assign({},$,{type:y,className:te,style:ae,onClick:R,disabled:A,ref:D}),Se,se,!!q&&Y.createElement(yzt,{key:"compact",prefixCls:k}));return GB(i)||(pe=Y.createElement(IW,{component:"Button",disabled:!!j},pe)),I(pe)},OW=m.forwardRef(Czt);OW.Group=q6t;OW.__ANT_BUTTON=!0;const Yg=OW;var Lwe=m.createContext(null),zne=[];function xzt(e,t){var r=m.useState(function(){if(!ws())return null;var h=document.createElement("div");return h}),n=Ce(r,1),o=n[0],a=m.useRef(!1),i=m.useContext(Lwe),s=m.useState(zne),l=Ce(s,2),u=l[0],c=l[1],d=i||(a.current?void 0:function(h){c(function(v){var b=[h].concat(xt(v));return b})});function f(){o.parentElement||document.body.appendChild(o),a.current=!0}function p(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return Fn(function(){return e?i?i(f):f():p(),p},[e]),Fn(function(){u.length&&(u.forEach(function(h){return h()}),c(zne))},[u]),[o,d]}var QB;function $zt(e){if(typeof document>"u")return 0;if(e||QB===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),n=r.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var o=t.offsetWidth;r.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=r.clientWidth),document.body.removeChild(r),QB=o-a}return QB}function Vne(e){var t=e.match(/^(.*)px$/),r=Number(t==null?void 0:t[1]);return Number.isNaN(r)?$zt():r}function Ezt(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),r=t.width,n=t.height;return{width:Vne(r),height:Vne(n)}}function _zt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var kzt="rc-util-locker-".concat(Date.now()),Hne=0;function Pzt(e){var t=!!e,r=m.useState(function(){return Hne+=1,"".concat(kzt,"_").concat(Hne)}),n=Ce(r,1),o=n[0];Fn(function(){if(t){var a=Ezt(document.body).width,i=_zt();Dh(` +html body { + overflow-y: hidden; + `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",` +}`),o)}else _$(o);return function(){_$(o)}},[t,o])}var Wne=!1;function Tzt(e){return typeof e=="boolean"&&(Wne=e),Wne}var qne=function(t){return t===!1?!1:!ws()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},zwe=m.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=m.useState(r),u=Ce(l,2),c=u[0],d=u[1],f=c||r;m.useEffect(function(){(i||r)&&d(r)},[r,i]);var p=m.useState(function(){return qne(o)}),h=Ce(p,2),v=h[0],b=h[1];m.useEffect(function(){var I=qne(o);b(I??null)});var g=xzt(f&&!v),y=Ce(g,2),S=y[0],w=y[1],$=v??S;Pzt(n&&r&&ws()&&($===S||$===document.body));var C=null;if(s&&hS(s)&&t){var x=s;C=x.ref}var E=gD(C,t);if(!f||!ws()||v===void 0)return null;var _=$===!1||Tzt(),k=s;return t&&(k=m.cloneElement(s,{ref:E})),m.createElement(Lwe.Provider,{value:w},_?k:uo.createPortal(k,$))});function Izt(){var e=be({},Vi);return e.useId}var Une=0,Kne=Izt();const Rzt=Kne?function(t){var r=Kne();return t||r}:function(t){var r=m.useState("ssr-id"),n=Ce(r,2),o=n[0],a=n[1];return m.useEffect(function(){var i=Une;Une+=1,a("rc_unique_".concat(i))},[]),t||o};var Zv="RC_FORM_INTERNAL_HOOKS",Rn=function(){fa(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Xg=m.createContext({getFieldValue:Rn,getFieldsValue:Rn,getFieldError:Rn,getFieldWarning:Rn,getFieldsError:Rn,isFieldsTouched:Rn,isFieldTouched:Rn,isFieldValidating:Rn,isFieldsValidating:Rn,resetFields:Rn,setFields:Rn,setFieldValue:Rn,setFieldsValue:Rn,validateFields:Rn,submit:Rn,getInternalHooks:function(){return Rn(),{dispatch:Rn,initEntityValue:Rn,registerField:Rn,useSubscribe:Rn,setInitialValues:Rn,destroyForm:Rn,setCallbacks:Rn,registerWatch:Rn,getFields:Rn,setValidateMessages:Rn,setPreserve:Rn,getInitialValue:Rn}}}),T$=m.createContext(null);function H6(e){return e==null?[]:Array.isArray(e)?e:[e]}function Fzt(e){return e&&!!e._init}function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 sT(e,t,r){return Nzt()?sT=Reflect.construct.bind():sT=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),u=new l;return i&&I$(u,i.prototype),u},sT.apply(null,arguments)}function Dzt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function q6(e){var t=typeof Map=="function"?new Map:void 0;return q6=function(n){if(n===null||!Dzt(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,o)}function o(){return sT(n,arguments,W6(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),I$(o,n)},q6(e)}var Azt=/%[sdj%]/g,Mzt=function(){};typeof process<"u"&&process.env;function U6(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 xl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Bzt(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ka(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Bzt(t)&&typeof e=="string"&&!e)}function jzt(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,s||[]),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function Gne(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s()\[\]\\.,;:\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},Xw={integer:function(t){return Xw.number(t)&&parseInt(t,10)===t},float:function(t){return Xw.number(t)&&!Xw.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"&&!Xw.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Zne.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qzt())},hex:function(t){return typeof t=="string"&&!!t.match(Zne.hex)}},Uzt=function(t,r,n,o,a){if(t.required&&r===void 0){Vwe(t,r,n,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Xw[s](r)||o.push(xl(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&o.push(xl(a.messages.types[s],t.fullField,t.type))},Kzt=function(t,r,n,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,d=null,f=typeof r=="number",p=typeof r=="string",h=Array.isArray(r);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(c=r.length),p&&(c=r.replace(u,"_").length),i?c!==t.len&&o.push(xl(a.messages[d].len,t.fullField,t.len)):s&&!l&&ct.max?o.push(xl(a.messages[d].max,t.fullField,t.max)):s&&l&&(ct.max)&&o.push(xl(a.messages[d].range,t.fullField,t.min,t.max))},J0="enum",Gzt=function(t,r,n,o,a){t[J0]=Array.isArray(t[J0])?t[J0]:[],t[J0].indexOf(r)===-1&&o.push(xl(a.messages[J0],t.fullField,t[J0].join(", ")))},Yzt=function(t,r,n,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(xl(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||o.push(xl(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Yr={required:Vwe,whitespace:Wzt,type:Uzt,range:Kzt,enum:Gzt,pattern:Yzt},Xzt=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r,"string")&&!t.required)return n();Yr.required(t,r,o,i,a,"string"),ka(r,"string")||(Yr.type(t,r,o,i,a),Yr.range(t,r,o,i,a),Yr.pattern(t,r,o,i,a),t.whitespace===!0&&Yr.whitespace(t,r,o,i,a))}n(i)},Qzt=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),r!==void 0&&Yr.type(t,r,o,i,a)}n(i)},Zzt=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),r!==void 0&&(Yr.type(t,r,o,i,a),Yr.range(t,r,o,i,a))}n(i)},Jzt=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),r!==void 0&&Yr.type(t,r,o,i,a)}n(i)},e8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),ka(r)||Yr.type(t,r,o,i,a)}n(i)},t8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),r!==void 0&&(Yr.type(t,r,o,i,a),Yr.range(t,r,o,i,a))}n(i)},r8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),r!==void 0&&(Yr.type(t,r,o,i,a),Yr.range(t,r,o,i,a))}n(i)},n8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Yr.required(t,r,o,i,a,"array"),r!=null&&(Yr.type(t,r,o,i,a),Yr.range(t,r,o,i,a))}n(i)},o8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),r!==void 0&&Yr.type(t,r,o,i,a)}n(i)},a8t="enum",i8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a),r!==void 0&&Yr[a8t](t,r,o,i,a)}n(i)},s8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r,"string")&&!t.required)return n();Yr.required(t,r,o,i,a),ka(r,"string")||Yr.pattern(t,r,o,i,a)}n(i)},l8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r,"date")&&!t.required)return n();if(Yr.required(t,r,o,i,a),!ka(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Yr.type(t,l,o,i,a),l&&Yr.range(t,l.getTime(),o,i,a)}}n(i)},u8t=function(t,r,n,o,a){var i=[],s=Array.isArray(r)?"array":typeof r;Yr.required(t,r,o,i,a,s),n(i)},ZB=function(t,r,n,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ka(r,i)&&!t.required)return n();Yr.required(t,r,o,s,a,i),ka(r,i)||Yr.type(t,r,o,s,a)}n(s)},c8t=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ka(r)&&!t.required)return n();Yr.required(t,r,o,i,a)}n(i)},jC={string:Xzt,method:Qzt,number:Zzt,boolean:Jzt,regexp:e8t,integer:t8t,float:r8t,array:n8t,object:o8t,enum:i8t,pattern:s8t,date:l8t,url:ZB,hex:ZB,email:ZB,required:u8t,any:c8t};function K6(){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 G6=K6(),s_=function(){function e(r){this.rules=null,this._messages=G6,this.define(r)}var t=e.prototype;return t.define=function(n){var o=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 i=n[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(n){return n&&(this._messages=Qne(K6(),n)),this._messages},t.validate=function(n,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=n,l=o,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(v){var b=[],g={};function y(w){if(Array.isArray(w)){var $;b=($=b).concat.apply($,w)}else b.push(w)}for(var S=0;S2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Wwe(t,n,r)})}function Wwe(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,o){return e[o]===n})}function h8t(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||or(e)!=="object"||or(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return xt(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function v8t(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&or(t.target)==="object"&&e in t.target?t.target[e]:t}function roe(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],a=t-r;return a>0?[].concat(xt(e.slice(0,r)),[o],xt(e.slice(r,t)),xt(e.slice(t+1,n))):a<0?[].concat(xt(e.slice(0,t)),xt(e.slice(t+1,r+1)),[o],xt(e.slice(r+1,n))):e}var g8t=["name"],Kl=[];function noe(e,t,r,n,o,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==o}var NW=function(e){Gd(r,e);var t=E0(r);function r(n){var o;if(oa(this,r),o=t.call(this,n),le(yr(o),"state",{resetCount:0}),le(yr(o),"cancelRegisterFunc",null),le(yr(o),"mounted",!1),le(yr(o),"touched",!1),le(yr(o),"dirty",!1),le(yr(o),"validatePromise",void 0),le(yr(o),"prevValidating",void 0),le(yr(o),"errors",Kl),le(yr(o),"warnings",Kl),le(yr(o),"cancelRegister",function(){var l=o.props,u=l.preserve,c=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(c,u,Qo(d)),o.cancelRegisterFunc=null}),le(yr(o),"getNamePath",function(){var l=o.props,u=l.name,c=l.fieldContext,d=c.prefixName,f=d===void 0?[]:d;return u!==void 0?[].concat(xt(f),xt(u)):[]}),le(yr(o),"getRules",function(){var l=o.props,u=l.rules,c=u===void 0?[]:u,d=l.fieldContext;return c.map(function(f){return typeof f=="function"?f(d):f})}),le(yr(o),"refresh",function(){o.mounted&&o.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),le(yr(o),"metaCache",null),le(yr(o),"triggerMetaEvent",function(l){var u=o.props.onMetaChange;if(u){var c=be(be({},o.getMeta()),{},{destroy:l});qg(o.metaCache,c)||u(c),o.metaCache=c}else o.metaCache=null}),le(yr(o),"onStoreChange",function(l,u,c){var d=o.props,f=d.shouldUpdate,p=d.dependencies,h=p===void 0?[]:p,v=d.onReset,b=c.store,g=o.getNamePath(),y=o.getValue(l),S=o.getValue(b),w=u&&my(u,g);switch(c.type==="valueUpdate"&&c.source==="external"&&y!==S&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Kl,o.warnings=Kl,o.triggerMetaEvent()),c.type){case"reset":if(!u||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Kl,o.warnings=Kl,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(f){o.reRender();return}break}case"setField":{var $=c.data;if(w){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Kl),"warnings"in $&&(o.warnings=$.warnings||Kl),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&my(u,g,!0)){o.reRender();return}if(f&&!g.length&&noe(f,l,b,y,S,c)){o.reRender();return}break}case"dependenciesUpdate":{var C=h.map(Qo);if(C.some(function(x){return my(c.relatedFields,x)})){o.reRender();return}break}default:if(w||(!h.length||g.length||f)&&noe(f,l,b,y,S,c)){o.reRender();return}break}f===!0&&o.reRender()}),le(yr(o),"validateRules",function(l){var u=o.getNamePath(),c=o.getValue(),d=l||{},f=d.triggerName,p=d.validateOnly,h=p===void 0?!1:p,v=Promise.resolve().then(P0(xs().mark(function b(){var g,y,S,w,$,C,x;return xs().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(o.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(g=o.props,y=g.validateFirst,S=y===void 0?!1:y,w=g.messageVariables,$=g.validateDebounce,C=o.getRules(),f&&(C=C.filter(function(k){return k}).filter(function(k){var I=k.validateTrigger;if(!I)return!0;var N=H6(I);return N.includes(f)})),!($&&f)){_.next=10;break}return _.next=8,new Promise(function(k){setTimeout(k,$)});case 8:if(o.validatePromise===v){_.next=10;break}return _.abrupt("return",[]);case 10:return x=f8t(u,c,C,l,S,w),x.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kl;if(o.validatePromise===v){var I;o.validatePromise=null;var N=[],z=[];(I=k.forEach)===null||I===void 0||I.call(k,function(O){var A=O.rule.warningOnly,M=O.errors,L=M===void 0?Kl:M;A?z.push.apply(z,xt(L)):N.push.apply(N,xt(L))}),o.errors=N,o.warnings=z,o.triggerMetaEvent(),o.reRender()}}),_.abrupt("return",x);case 13:case"end":return _.stop()}},b)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=Kl,o.warnings=Kl,o.triggerMetaEvent(),o.reRender()),v}),le(yr(o),"isFieldValidating",function(){return!!o.validatePromise}),le(yr(o),"isFieldTouched",function(){return o.touched}),le(yr(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,u=l.getInternalHooks(Zv),c=u.getInitialValue;return c(o.getNamePath())!==void 0}),le(yr(o),"getErrors",function(){return o.errors}),le(yr(o),"getWarnings",function(){return o.warnings}),le(yr(o),"isListField",function(){return o.props.isListField}),le(yr(o),"isList",function(){return o.props.isList}),le(yr(o),"isPreserve",function(){return o.props.preserve}),le(yr(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),le(yr(o),"getOnlyChild",function(l){if(typeof l=="function"){var u=o.getMeta();return be(be({},o.getOnlyChild(l(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var c=Nh(l);return c.length!==1||!m.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),le(yr(o),"getValue",function(l){var u=o.props.fieldContext.getFieldsValue,c=o.getNamePath();return yd(l||u(!0),c)}),le(yr(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,c=u.trigger,d=u.validateTrigger,f=u.getValueFromEvent,p=u.normalize,h=u.valuePropName,v=u.getValueProps,b=u.fieldContext,g=d!==void 0?d:b.validateTrigger,y=o.getNamePath(),S=b.getInternalHooks,w=b.getFieldsValue,$=S(Zv),C=$.dispatch,x=o.getValue(),E=v||function(N){return le({},h,N)},_=l[c],k=be(be({},l),E(x));k[c]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,z=arguments.length,O=new Array(z),A=0;A=0&&k<=I.length?(c.keys=[].concat(xt(c.keys.slice(0,k)),[c.id],xt(c.keys.slice(k))),S([].concat(xt(I.slice(0,k)),[_],xt(I.slice(k))))):(c.keys=[].concat(xt(c.keys),[c.id]),S([].concat(xt(I),[_]))),c.id+=1},remove:function(_){var k=$(),I=new Set(Array.isArray(_)?_:[_]);I.size<=0||(c.keys=c.keys.filter(function(N,z){return!I.has(z)}),S(k.filter(function(N,z){return!I.has(z)})))},move:function(_,k){if(_!==k){var I=$();_<0||_>=I.length||k<0||k>=I.length||(c.keys=roe(c.keys,_,k),S(roe(I,_,k)))}}},x=y||[];return Array.isArray(x)||(x=[]),n(x.map(function(E,_){var k=c.keys[_];return k===void 0&&(c.keys[_]=c.id,k=c.keys[_],c.id+=1),{name:_,key:k,isListField:!0}}),C,b)})))}function b8t(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),o(n))})})}):Promise.resolve([])}var Uwe="__@field_split__";function JB(e){return e.map(function(t){return"".concat(or(t),":").concat(t)}).join(Uwe)}var eb=function(){function e(){oa(this,e),le(this,"kvs",new Map)}return Oo(e,[{key:"set",value:function(r,n){this.kvs.set(JB(r),n)}},{key:"get",value:function(r){return this.kvs.get(JB(r))}},{key:"update",value:function(r,n){var o=this.get(r),a=n(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(JB(r))}},{key:"map",value:function(r){return xt(this.kvs.entries()).map(function(n){var o=Ce(n,2),a=o[0],i=o[1],s=a.split(Uwe);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),c=Ce(u,3),d=c[1],f=c[2];return d==="number"?Number(f):f}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,a=n.value;return r[o.join(".")]=a,null}),r}}]),e}(),y8t=["name"],S8t=Oo(function e(t){var r=this;oa(this,e),le(this,"formHooked",!1),le(this,"forceRootUpdate",void 0),le(this,"subscribable",!0),le(this,"store",{}),le(this,"fieldEntities",[]),le(this,"initialValues",{}),le(this,"callbacks",{}),le(this,"validateMessages",null),le(this,"preserve",null),le(this,"lastValidatePromise",null),le(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}}),le(this,"getInternalHooks",function(n){return n===Zv?(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}):(fa(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),le(this,"useSubscribe",function(n){r.subscribable=n}),le(this,"prevWithoutPreserves",null),le(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var a,i=Wb(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=sc(i,l,yd(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),le(this,"destroyForm",function(){var n=new eb;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=n}),le(this,"getInitialValue",function(n){var o=yd(r.initialValues,n);return n.length?Wb(o):o}),le(this,"setCallbacks",function(n){r.callbacks=n}),le(this,"setValidateMessages",function(n){r.validateMessages=n}),le(this,"setPreserve",function(n){r.preserve=n}),le(this,"watchList",[]),le(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),le(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(o,a,n)})}}),le(this,"timeoutId",null),le(this,"warningUnhooked",function(){}),le(this,"updateStore",function(n){r.store=n}),le(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),le(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new eb;return r.getFieldEntities(n).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),le(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(a){var i=Qo(a);return o.get(i)||{INVALIDATE_NAME_PATH:Qo(a)}})}),le(this,"getFieldsValue",function(n,o){r.warningUnhooked();var a,i,s;if(n===!0||Array.isArray(n)?(a=n,i=o):n&&or(n)==="object"&&(s=n.strict,i=n.filter),a===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return l.forEach(function(c){var d,f,p="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var h,v;if((h=(v=c).isList)!==null&&h!==void 0&&h.call(v))return}else if(!a&&(d=(f=c).isListField)!==null&&d!==void 0&&d.call(f))return;if(!i)u.push(p);else{var b="getMeta"in c?c.getMeta():null;i(b)&&u.push(p)}}),toe(r.store,u.map(Qo))}),le(this,"getFieldValue",function(n){r.warningUnhooked();var o=Qo(n);return yd(r.store,o)}),le(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Qo(n[i]),errors:[],warnings:[]}})}),le(this,"getFieldError",function(n){r.warningUnhooked();var o=Qo(n),a=r.getFieldsError([o])[0];return a.errors}),le(this,"getFieldWarning",function(n){r.warningUnhooked();var o=Qo(n),a=r.getFieldsError([o])[0];return a.warnings}),le(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=new eb,a=r.getFieldEntities(!0);a.forEach(function(l){var u=l.props.initialValue,c=l.getNamePath();if(u!==void 0){var d=o.get(c)||new Set;d.add({entity:l,value:u}),o.set(c,d)}});var i=function(u){u.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var f=c.getNamePath(),p=r.getInitialValue(f);if(p!==void 0)fa(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=o.get(f);if(h&&h.size>1)fa(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(f),b=c.isListField();!b&&(!n.skipExist||v===void 0)&&r.updateStore(sc(r.store,f,xt(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=o.get(l);if(u){var c;(c=s).push.apply(c,xt(xt(u).map(function(d){return d.entity})))}})):s=a,i(s)}),le(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Wb(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(Qo);a.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(sc(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),le(this,"setFields",function(n){r.warningUnhooked();var o=r.store,a=[];n.forEach(function(i){var s=i.name,l=St(i,y8t),u=Qo(s);a.push(u),"value"in l&&r.updateStore(sc(r.store,u,l.value)),r.notifyObservers(o,[u],{type:"setField",data:i})}),r.notifyWatch(a)}),le(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=be(be({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),le(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var a=n.getNamePath(),i=yd(r.store,a);i===void 0&&r.updateStore(sc(r.store,a,o))}}),le(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),le(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),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(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==u&&r.fieldEntities.every(function(d){return!Wwe(d.getNamePath(),o)})){var c=r.store;r.updateStore(sc(c,o,u,!0)),r.notifyObservers(c,[o],{type:"remove"}),r.triggerDependenciesUpdate(c,o)}}r.notifyWatch([o])}}),le(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,a=n.value;r.updateValue(o,a);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),le(this,"notifyObservers",function(n,o,a){if(r.subscribable){var i=be(be({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,i)})}else r.forceRootUpdate()}),le(this,"triggerDependenciesUpdate",function(n,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[o].concat(xt(a))}),a}),le(this,"updateValue",function(n,o){var a=Qo(n),i=r.store;r.updateStore(sc(r.store,a,o)),r.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(i,a),l=r.callbacks.onValuesChange;if(l){var u=toe(r.store,[a]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(xt(s)))}),le(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var a=Wb(r.store,n);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),le(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o}])}),le(this,"getDependencyChildrenFields",function(n){var o=new Set,a=[],i=new eb;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(c){var d=Qo(c);i.update(d,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=i.get(u)||new Set;c.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f))}})};return s(n),a}),le(this,"triggerOnFieldsChange",function(n,o){var a=r.callbacks.onFieldsChange;if(a){var i=r.getFields();if(o){var s=new eb;o.forEach(function(u){var c=u.name,d=u.errors;s.set(c,d)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var c=u.name;return my(n,c)});l.length&&a(l,i)}}),le(this,"validateFields",function(n,o){r.warningUnhooked();var a,i;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(a=n,i=o):i=n;var s=!!a,l=s?a.map(Qo):[],u=[],c=String(Date.now()),d=new Set,f=i||{},p=f.recursive,h=f.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var S=y.getNamePath();if(d.add(S.join(c)),!s||my(l,S,p)){var w=y.validateRules(be({validateMessages:be(be({},Hwe),r.validateMessages)},i));u.push(w.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function($){var C,x=[],E=[];return(C=$.forEach)===null||C===void 0||C.call($,function(_){var k=_.rule.warningOnly,I=_.errors;k?E.push.apply(E,xt(I)):x.push.apply(x,xt(I))}),x.length?Promise.reject({name:S,errors:x,warnings:E}):{name:S,errors:x,warnings:E}}))}}});var v=b8t(u);r.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var S=y.map(function(w){var $=w.name;return $});r.notifyObservers(r.store,S,{type:"validateFinish"}),r.triggerOnFieldsChange(S,y)});var b=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:S,outOfDate:r.lastValidatePromise!==v})});b.catch(function(y){return y});var g=l.filter(function(y){return d.has(y.join(c))});return r.triggerOnFieldsChange(g),b}),le(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(a){console.error(a)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function AW(e){var t=m.useRef(),r=m.useState({}),n=Ce(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new S8t(a);t.current=i.getForm()}return[t.current]}var J6=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Kwe=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,a=t.children,i=m.useContext(J6),s=m.useRef({});return m.createElement(J6.Provider,{value:be(be({},i),{},{validateMessages:be(be({},i.validateMessages),r),triggerFormChange:function(u,c){n&&n(u,{changedFields:c,forms:s.current}),i.triggerFormChange(u,c)},triggerFormFinish:function(u,c){o&&o(u,{values:c,forms:s.current}),i.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(s.current=be(be({},s.current),{},le({},u,c))),i.registerForm(u,c)},unregisterForm:function(u){var c=be({},s.current);delete c[u],s.current=c,i.unregisterForm(u)}})},a)},w8t=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],C8t=function(t,r){var n=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,c=u===void 0?"form":u,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,h=t.onValuesChange,v=t.onFieldsChange,b=t.onFinish,g=t.onFinishFailed,y=St(t,w8t),S=m.useContext(J6),w=AW(i),$=Ce(w,1),C=$[0],x=C.getInternalHooks(Zv),E=x.useSubscribe,_=x.setInitialValues,k=x.setCallbacks,I=x.setValidateMessages,N=x.setPreserve,z=x.destroyForm;m.useImperativeHandle(r,function(){return C}),m.useEffect(function(){return S.registerForm(n,C),function(){S.unregisterForm(n)}},[S,C,n]),I(be(be({},S.validateMessages),d)),k({onValuesChange:h,onFieldsChange:function(V){if(S.triggerFormChange(n,V),v){for(var D=arguments.length,P=new Array(D>1?D-1:0),R=1;R{}}),Ywe=m.createContext(null),Xwe=e=>{const t=Lp(e,["prefixCls"]);return m.createElement(Kwe,Object.assign({},t))},MW=m.createContext({prefixCls:""}),qi=m.createContext({}),SR=e=>{let{children:t,status:r,override:n}=e;const o=m.useContext(qi),a=m.useMemo(()=>{const i=Object.assign({},o);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,o]);return m.createElement(qi.Provider,{value:a},t)},Qwe=m.createContext(void 0),$8t=e=>({animationDuration:e,animationFillMode:"both"}),E8t=e=>({animationDuration:e,animationFillMode:"both"}),BW=function(e,t,r,n){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${a}${e}-enter, + ${a}${e}-appear + `]:Object.assign(Object.assign({},$8t(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},E8t(n)),{animationPlayState:"paused"}),[` + ${a}${e}-enter${e}-enter-active, + ${a}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},_8t=new wn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k8t=new wn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),P8t=new wn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T8t=new wn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I8t=new wn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R8t=new wn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F8t=new wn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),O8t=new wn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),N8t={"move-up":{inKeyframes:F8t,outKeyframes:O8t},"move-down":{inKeyframes:_8t,outKeyframes:k8t},"move-left":{inKeyframes:P8t,outKeyframes:T8t},"move-right":{inKeyframes:I8t,outKeyframes:R8t}},wR=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=N8t[t];return[BW(n,o,a,e.motionDurationMid),{[` + ${n}-enter, + ${n}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jW=new wn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),LW=new wn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zW=new wn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),VW=new wn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),D8t=new wn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),A8t=new wn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),M8t=new wn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),B8t=new wn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),j8t={"slide-up":{inKeyframes:jW,outKeyframes:LW},"slide-down":{inKeyframes:zW,outKeyframes:VW},"slide-left":{inKeyframes:D8t,outKeyframes:A8t},"slide-right":{inKeyframes:M8t,outKeyframes:B8t}},CR=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=j8t[t];return[BW(n,o,a,e.motionDurationMid),{[` + ${n}-enter, + ${n}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},HW=new wn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),L8t=new wn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),aoe=new wn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ioe=new wn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),z8t=new wn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),V8t=new wn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),H8t=new wn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),W8t=new wn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),q8t=new wn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),U8t=new wn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K8t=new wn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),G8t=new wn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Y8t={zoom:{inKeyframes:HW,outKeyframes:L8t},"zoom-big":{inKeyframes:aoe,outKeyframes:ioe},"zoom-big-fast":{inKeyframes:aoe,outKeyframes:ioe},"zoom-left":{inKeyframes:H8t,outKeyframes:W8t},"zoom-right":{inKeyframes:q8t,outKeyframes:U8t},"zoom-up":{inKeyframes:z8t,outKeyframes:V8t},"zoom-down":{inKeyframes:K8t,outKeyframes:G8t}},X8t=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=Y8t[t];return[BW(n,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${n}-enter, + ${n}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Q8t=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Z8t=Q8t;function J8t(e){return t=>m.createElement(Yd,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m.createElement(e,Object.assign({},t)))}const e9t=(e,t,r,n)=>J8t(a=>{const{prefixCls:i,style:s}=a,l=m.useRef(null),[u,c]=m.useState(0),[d,f]=m.useState(0),[p,h]=So(!1,{value:a.open}),{getPrefixCls:v}=m.useContext(Er),b=v(t||"select",i);m.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver($=>{const C=$[0].target;c(C.offsetHeight+8),f(C.offsetWidth)}),w=setInterval(()=>{var $;const C=r?`.${r(b)}`:`.${b}-dropdown`,x=($=l.current)===null||$===void 0?void 0:$.querySelector(C);x&&(clearInterval(w),S.observe(x))},10);return()=>{clearInterval(w),S.disconnect()}}},[]);let g=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:p,visible:p,getPopupContainer:()=>l.current});n&&(g=n(g));const y={paddingBottom:u,position:"relative",minWidth:d};return m.createElement("div",{ref:l,style:y},m.createElement(e,Object.assign({},g)))}),WW=e9t,qW=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 TD=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(o):n;return m.createElement("span",{className:r,onMouseDown:function(c){c.preventDefault(),i==null||i(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:m.createElement("span",{className:Oe(r.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},t9t=function(t,r,n,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,u=Y.useMemo(function(){if(or(o)==="object")return o.clearIcon;if(a)return a},[o,a]),c=Y.useMemo(function(){return!!(!i&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,i,n.length,s,l]);return{allowClear:c,clearIcon:Y.createElement(TD,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:u},"×")}},Zwe=m.createContext(null);function r9t(){return m.useContext(Zwe)}function n9t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m.useState(!1),r=Ce(t,2),n=r[0],o=r[1],a=m.useRef(null),i=function(){window.clearTimeout(a.current)};m.useEffect(function(){return i},[]);var s=function(u,c){i(),a.current=window.setTimeout(function(){o(u),c&&c()},e)};return[n,s,i]}function Jwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m.useRef(null),r=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function o9t(e,t,r,n){var o=m.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},m.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(l)&&u!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}var a9t=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],tb=void 0;function i9t(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,c=e.className,d=e.style,f=e.children,p=e.display,h=e.order,v=e.component,b=v===void 0?"div":v,g=St(e,a9t),y=i&&!p;function S(E){l(u,E)}m.useEffect(function(){return function(){S(null)}},[]);var w=a&&o!==tb?a(o):f,$;n||($={opacity:y?0:1,height:y?0:tb,overflowY:y?"hidden":tb,order:i?h:tb,pointerEvents:y?"none":tb,position:y?"absolute":tb});var C={};y&&(C["aria-hidden"]=!0);var x=m.createElement(b,G({className:Oe(!n&&r,c),style:be(be({},$),d)},C,g,{ref:t}),w);return i&&(x=m.createElement(ev,{onResize:function(_){var k=_.offsetWidth;S(k)},disabled:s},x)),x}var LC=m.forwardRef(i9t);LC.displayName="Item";function s9t(e){if(typeof MessageChannel>"u")rn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function l9t(){var e=m.useRef(null),t=function(n){e.current||(e.current=[],s9t(function(){uo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function bw(e,t){var r=m.useState(t),n=Ce(r,2),o=n[0],a=n[1],i=Ds(function(s){e(function(){a(s)})});return[o,i]}var xR=Y.createContext(null),u9t=["component"],c9t=["className"],d9t=["className"],f9t=function(t,r){var n=m.useContext(xR);if(!n){var o=t.component,a=o===void 0?"div":o,i=St(t,u9t);return m.createElement(a,G({},i,{ref:r}))}var s=n.className,l=St(n,c9t),u=t.className,c=St(t,d9t);return m.createElement(xR.Provider,{value:null},m.createElement(LC,G({ref:r,className:Oe(s,u)},l,c)))},eCe=m.forwardRef(f9t);eCe.displayName="RawItem";var p9t=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],tCe="responsive",rCe="invalidate";function m9t(e){return"+ ".concat(e.length," ...")}function h9t(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,c=u===void 0?10:u,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,v=e.renderRest,b=e.renderRawRest,g=e.suffix,y=e.component,S=y===void 0?"div":y,w=e.itemComponent,$=e.onVisibleChange,C=St(e,p9t),x=d==="full",E=l9t(),_=bw(E,null),k=Ce(_,2),I=k[0],N=k[1],z=I||0,O=bw(E,new Map),A=Ce(O,2),M=A[0],L=A[1],j=bw(E,0),H=Ce(j,2),B=H[0],F=H[1],V=bw(E,0),D=Ce(V,2),P=D[0],R=D[1],W=bw(E,0),U=Ce(W,2),q=U[0],J=U[1],Z=m.useState(null),Q=Ce(Z,2),oe=Q[0],ie=Q[1],te=m.useState(null),ae=Ce(te,2),fe=ae[0],ve=ae[1],Se=m.useMemo(function(){return fe===null&&x?Number.MAX_SAFE_INTEGER:fe||0},[fe,I]),se=m.useState(!1),pe=Ce(se,2),ge=pe[0],de=pe[1],ee="".concat(n,"-item"),me=Math.max(B,P),Re=h===tCe,je=a.length&&Re,ze=h===rCe,Le=je||typeof h=="number"&&a.length>h,$e=m.useMemo(function(){var at=a;return je?I===null&&x?at=a:at=a.slice(0,Math.min(a.length,z/c)):typeof h=="number"&&(at=a.slice(0,h)),at},[a,c,I,h,je]),Je=m.useMemo(function(){return je?a.slice(Se+1):a.slice($e.length)},[a,$e,je,Se]),Pe=m.useCallback(function(at,Ve){var Qe;return typeof l=="function"?l(at):(Qe=l&&(at==null?void 0:at[l]))!==null&&Qe!==void 0?Qe:Ve},[l]),st=m.useCallback(i||function(at){return at},[i]);function _e(at,Ve,Qe){fe===at&&(Ve===void 0||Ve===oe)||(ve(at),Qe||(de(atz){_e(he-1,at-ye-q+P);break}}g&&vt(0)+q>z&&ie(null)}},[z,M,P,q,Pe,$e]);var bt=ge&&!!Je.length,wt={};oe!==null&&je&&(wt={position:"absolute",left:oe,top:0});var mt={prefixCls:ee,responsive:je,component:w,invalidate:ze},xe=s?function(at,Ve){var Qe=Pe(at,Ve);return m.createElement(xR.Provider,{key:Qe,value:be(be({},mt),{},{order:Ve,item:at,itemKey:Qe,registerSize:et,display:Ve<=Se})},s(at,Ve))}:function(at,Ve){var Qe=Pe(at,Ve);return m.createElement(LC,G({},mt,{order:Ve,key:Qe,item:at,renderItem:st,itemKey:Qe,registerSize:et,display:Ve<=Se}))},Ae,He={order:bt?Se:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:Ie,display:bt};if(b)b&&(Ae=m.createElement(xR.Provider,{value:be(be({},mt),He)},b(Je)));else{var Ge=v||m9t;Ae=m.createElement(LC,G({},mt,He),typeof Ge=="function"?Ge(Je):Ge)}var ot=m.createElement(S,G({className:Oe(!ze&&n,p),style:f,ref:t},C),$e.map(xe),Le?Ae:null,g&&m.createElement(LC,G({},mt,{responsive:Re,responsiveDisabled:!je,order:Se,className:"".concat(ee,"-suffix"),registerSize:Fe,display:!0,style:wt}),g));return Re&&(ot=m.createElement(ev,{onResize:De,disabled:!je},ot)),ot}var l_=m.forwardRef(h9t);l_.displayName="Overflow";l_.Item=eCe;l_.RESPONSIVE=tCe;l_.INVALIDATE=rCe;var v9t=function(t,r){var n,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,l=t.tabIndex,u=t.autoFocus,c=t.autoComplete,d=t.editable,f=t.activeDescendantId,p=t.value,h=t.maxLength,v=t.onKeyDown,b=t.onMouseDown,g=t.onChange,y=t.onPaste,S=t.onCompositionStart,w=t.onCompositionEnd,$=t.open,C=t.attrs,x=i||m.createElement("input",null),E=x,_=E.ref,k=E.props,I=k.onKeyDown,N=k.onChange,z=k.onMouseDown,O=k.onCompositionStart,A=k.onCompositionEnd,M=k.style;return"maxLength"in x.props,x=m.cloneElement(x,be(be(be({type:"search"},k),{},{id:a,ref:zl(r,_),disabled:s,tabIndex:l,autoComplete:c||"off",autoFocus:u,className:Oe("".concat(o,"-selection-search-input"),(n=x)===null||n===void 0||(n=n.props)===null||n===void 0?void 0:n.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?f:void 0},C),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:be(be({},M),{},{opacity:d?null:0}),onKeyDown:function(j){v(j),I&&I(j)},onMouseDown:function(j){b(j),z&&z(j)},onChange:function(j){g(j),N&&N(j)},onCompositionStart:function(j){S(j),O&&O(j)},onCompositionEnd:function(j){w(j),A&&A(j)},onPaste:y})),x},nCe=m.forwardRef(v9t);function oCe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var g9t=typeof window<"u"&&window.document&&window.document.documentElement,b9t=g9t;function y9t(e){return e!=null}function S9t(e){return!e&&e!==0}function soe(e){return["string","number"].includes(or(e))}function aCe(e){var t=void 0;return e&&(soe(e.title)?t=e.title.toString():soe(e.label)&&(t=e.label.toString())),t}function w9t(e,t){b9t?m.useLayoutEffect(e,t):m.useEffect(e,t)}function C9t(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var loe=function(t){t.preventDefault(),t.stopPropagation()},x9t=function(t){var r=t.id,n=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,u=t.placeholder,c=t.disabled,d=t.mode,f=t.showSearch,p=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,b=t.tabIndex,g=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,w=t.maxTagPlaceholder,$=w===void 0?function(ie){return"+ ".concat(ie.length," ...")}:w,C=t.tagRender,x=t.onToggleOpen,E=t.onRemove,_=t.onInputChange,k=t.onInputPaste,I=t.onInputKeyDown,N=t.onInputMouseDown,z=t.onInputCompositionStart,O=t.onInputCompositionEnd,A=m.useRef(null),M=m.useState(0),L=Ce(M,2),j=L[0],H=L[1],B=m.useState(!1),F=Ce(B,2),V=F[0],D=F[1],P="".concat(n,"-selection"),R=a||d==="multiple"&&s===!1||d==="tags"?i:"",W=d==="tags"||d==="multiple"&&s===!1||f&&(a||V);w9t(function(){H(A.current.scrollWidth)},[R]);var U=function(te,ae,fe,ve,Se){return m.createElement("span",{title:aCe(te),className:Oe("".concat(P,"-item"),le({},"".concat(P,"-item-disabled"),fe))},m.createElement("span",{className:"".concat(P,"-item-content")},ae),ve&&m.createElement(TD,{className:"".concat(P,"-item-remove"),onMouseDown:loe,onClick:Se,customizeIcon:g},"×"))},q=function(te,ae,fe,ve,Se){var se=function(ge){loe(ge),x(!a)};return m.createElement("span",{onMouseDown:se},C({label:ae,value:te,disabled:fe,closable:ve,onClose:Se}))},J=function(te){var ae=te.disabled,fe=te.label,ve=te.value,Se=!c&&!ae,se=fe;if(typeof S=="number"&&(typeof fe=="string"||typeof fe=="number")){var pe=String(se);pe.length>S&&(se="".concat(pe.slice(0,S),"..."))}var ge=function(ee){ee&&ee.stopPropagation(),E(te)};return typeof C=="function"?q(ve,se,ae,Se,ge):U(te,se,ae,Se,ge)},Z=function(te){var ae=typeof $=="function"?$(te):$;return U({title:ae},ae,!1)},Q=m.createElement("div",{className:"".concat(P,"-search"),style:{width:j},onFocus:function(){D(!0)},onBlur:function(){D(!1)}},m.createElement(nCe,{ref:l,open:a,prefixCls:n,id:r,inputElement:null,disabled:c,autoFocus:p,autoComplete:h,editable:W,activeDescendantId:v,value:R,onKeyDown:I,onMouseDown:N,onChange:_,onPaste:k,onCompositionStart:z,onCompositionEnd:O,tabIndex:b,attrs:pp(t,!0)}),m.createElement("span",{ref:A,className:"".concat(P,"-search-mirror"),"aria-hidden":!0},R," ")),oe=m.createElement(l_,{prefixCls:"".concat(P,"-overflow"),data:o,renderItem:J,renderRest:Z,suffix:Q,itemKey:C9t,maxCount:y});return m.createElement(m.Fragment,null,oe,!o.length&&!R&&m.createElement("span",{className:"".concat(P,"-placeholder")},u))},$9t=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,u=t.activeDescendantId,c=t.mode,d=t.open,f=t.values,p=t.placeholder,h=t.tabIndex,v=t.showSearch,b=t.searchValue,g=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,w=t.onInputMouseDown,$=t.onInputChange,C=t.onInputPaste,x=t.onInputCompositionStart,E=t.onInputCompositionEnd,_=t.title,k=m.useState(!1),I=Ce(k,2),N=I[0],z=I[1],O=c==="combobox",A=O||v,M=f[0],L=b||"";O&&g&&!N&&(L=g),m.useEffect(function(){O&&z(!1)},[O,g]);var j=c!=="combobox"&&!d&&!v?!1:!!L,H=_===void 0?aCe(M):_,B=m.useMemo(function(){return M?null:m.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)},[M,j,p,n]);return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(n,"-selection-search")},m.createElement(nCe,{ref:a,prefixCls:n,id:o,open:d,inputElement:r,disabled:i,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:u,value:L,onKeyDown:S,onMouseDown:w,onChange:function(V){z(!0),$(V)},onPaste:C,onCompositionStart:x,onCompositionEnd:E,tabIndex:h,attrs:pp(t,!0),maxLength:O?y:void 0})),!O&&M?m.createElement("span",{className:"".concat(n,"-selection-item"),title:H,style:j?{visibility:"hidden"}:void 0},M.label):null,B)};function E9t(e){return![Xe.ESC,Xe.SHIFT,Xe.BACKSPACE,Xe.TAB,Xe.WIN_KEY,Xe.ALT,Xe.META,Xe.WIN_KEY_RIGHT,Xe.CTRL,Xe.SEMICOLON,Xe.EQUALS,Xe.CAPS_LOCK,Xe.CONTEXT_MENU,Xe.F1,Xe.F2,Xe.F3,Xe.F4,Xe.F5,Xe.F6,Xe.F7,Xe.F8,Xe.F9,Xe.F10,Xe.F11,Xe.F12].includes(e)}var _9t=function(t,r){var n=m.useRef(null),o=m.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,u=t.tokenWithEnter,c=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,p=t.onToggleOpen,h=t.onInputKeyDown,v=t.domRef;m.useImperativeHandle(r,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var b=Jwe(0),g=Ce(b,2),y=g[0],S=g[1],w=function(L){var j=L.which;(j===Xe.UP||j===Xe.DOWN)&&L.preventDefault(),h&&h(L),j===Xe.ENTER&&s==="tags"&&!o.current&&!i&&(f==null||f(L.target.value)),E9t(j)&&p(!0)},$=function(){S(!0)},C=m.useRef(null),x=function(L){d(L,!0,o.current)!==!1&&p(!0)},E=function(){o.current=!0},_=function(L){o.current=!1,s!=="combobox"&&x(L.target.value)},k=function(L){var j=L.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var H=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(H,C.current)}C.current=null,x(j)},I=function(L){var j=L.clipboardData,H=j==null?void 0:j.getData("text");C.current=H||""},N=function(L){var j=L.target;if(j!==n.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){n.current.focus()}):n.current.focus()}},z=function(L){var j=y();L.target!==n.current&&!j&&s!=="combobox"&&L.preventDefault(),(s!=="combobox"&&(!l||!j)||!i)&&(i&&c!==!1&&d("",!0,!1),p())},O={inputRef:n,onInputKeyDown:w,onInputMouseDown:$,onInputChange:k,onInputPaste:I,onInputCompositionStart:E,onInputCompositionEnd:_},A=s==="multiple"||s==="tags"?m.createElement(x9t,G({},t,O)):m.createElement($9t,G({},t,O));return m.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:N,onMouseDown:z},A)},k9t=m.forwardRef(_9t);function P9t(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},i=a.className,s=a.content,l=o.x,u=l===void 0?0:l,c=o.y,d=c===void 0?0:c,f=m.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],b=h[0],g=h[1],y=v[0],S=v[1];b===y||!["t","b"].includes(b)?p.top=d:b==="t"?p.top=0:p.bottom=0,g===S||!["l","r"].includes(g)?p.left=u:g==="l"?p.left=0:p.right=0}return m.createElement("div",{ref:f,className:Oe("".concat(t,"-arrow"),i),style:p},s)}function T9t(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?m.createElement(_0,G({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return m.createElement("div",{style:{zIndex:n},className:Oe("".concat(t,"-mask"),s)})}):null}var I9t=m.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),R9t=m.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,c=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,v=e.align,b=e.motion,g=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,w=e.autoDestroy,$=e.portal,C=e.zIndex,x=e.onMouseEnter,E=e.onMouseLeave,_=e.onPointerEnter,k=e.ready,I=e.offsetX,N=e.offsetY,z=e.offsetR,O=e.offsetB,A=e.onAlign,M=e.onPrepare,L=e.stretch,j=e.targetWidth,H=e.targetHeight,B=typeof r=="function"?r():r,F=l||u,V=(S==null?void 0:S.length)>0,D=m.useState(!S||!V),P=Ce(D,2),R=P[0],W=P[1];if(Fn(function(){!R&&V&&i&&W(!0)},[R,V,i]),!R)return null;var U="auto",q={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(k||!l){var J,Z=v.points,Q=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),oe=Q&&Z[0][1]==="r",ie=Q&&Z[0][0]==="b";oe?(q.right=z,q.left=U):(q.left=I,q.right=U),ie?(q.bottom=O,q.top=U):(q.top=N,q.bottom=U)}var te={};return L&&(L.includes("height")&&H?te.height=H:L.includes("minHeight")&&H&&(te.minHeight=H),L.includes("width")&&j?te.width=j:L.includes("minWidth")&&j&&(te.minWidth=j)),l||(te.pointerEvents="none"),m.createElement($,{open:y||F,getContainer:S&&function(){return S(i)},autoDestroy:w},m.createElement(T9t,{prefixCls:o,open:l,zIndex:C,mask:f,motion:g}),m.createElement(ev,{onResize:A,disabled:!l},function(ae){return m.createElement(_0,G({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:M,onEnterPrepare:M,visible:l,onVisibleChanged:function(ve){var Se;b==null||(Se=b.onVisibleChanged)===null||Se===void 0||Se.call(b,ve),s(ve)}}),function(fe,ve){var Se=fe.className,se=fe.style,pe=Oe(o,Se,n);return m.createElement("div",{ref:zl(ae,t,ve),className:pe,style:be(be(be(be({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),te),se),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:x,onMouseLeave:E,onPointerEnter:_,onClick:d},p&&m.createElement(P9t,{prefixCls:o,arrow:p,arrowPos:h,align:v}),m.createElement(I9t,{cache:!l&&!c},B))})}))}),F9t=m.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=hS(r),a=m.useCallback(function(s){bW(t,n?n(s):s)},[n]),i=gD(a,r.ref);return o?m.cloneElement(r,{ref:i}):r}),uoe=m.createContext(null);function coe(e){return e?Array.isArray(e)?e:[e]:[]}function O9t(e,t,r,n){return m.useMemo(function(){var o=coe(r??t),a=coe(n??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function N9t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function D9t(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function yw(e){return R$(parseFloat(e),0)}function foe(e,t){var r=be({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=u_(n).getComputedStyle(n),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,u=o.borderLeftWidth,c=o.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,p=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,b=yw(s),g=yw(l),y=yw(u),S=yw(c),w=R$(Math.round(d.width/h*1e3)/1e3),$=R$(Math.round(d.height/f*1e3)/1e3),C=(h-v-y-S)*w,x=(f-p-b-g)*$,E=b*$,_=g*$,k=y*w,I=S*w,N=0,z=0;if(a==="clip"){var O=yw(i);N=O*w,z=O*$}var A=d.x+k-N,M=d.y+E-z,L=A+d.width+2*N-k-I-C,j=M+d.height+2*z-E-_-x;r.left=Math.max(r.left,A),r.top=Math.max(r.top,M),r.right=Math.min(r.right,L),r.bottom=Math.min(r.bottom,j)}}),r}function poe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function moe(e,t){var r=t||[],n=Ce(r,2),o=n[0],a=n[1];return[poe(e.width,o),poe(e.height,a)]}function hoe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function rb(e,t){var r=t[0],n=t[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function sm(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function A9t(e,t,r,n,o,a,i){var s=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=Ce(s,2),u=l[0],c=l[1],d=m.useRef(0),f=m.useMemo(function(){return t?ez(t):[]},[t]),p=m.useRef({}),h=function(){p.current={}};e||h();var v=Ds(function(){if(t&&r&&e){let xo=function(Lu,Js){var zu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,zc=B.x+Lu,el=B.y+Js,_s=zc+J,Vc=el+q,rf=Math.max(zc,zu.left),nf=Math.max(el,zu.top),Ft=Math.min(_s,zu.right),er=Math.min(Vc,zu.bottom);return Math.max(0,(Ft-rf)*(er-nf))},tf=function(){ue=B.y+Ge,Ue=ue+q,Ke=B.x+He,ut=Ke+J};var Zi=xo,iv=tf,y,S,w=t,$=w.ownerDocument,C=u_(w),x=C.getComputedStyle(w),E=x.width,_=x.height,k=x.position,I=w.style.left,N=w.style.top,z=w.style.right,O=w.style.bottom,A=w.style.overflow,M=be(be({},o[n]),a),L=$.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(L),L.style.left="".concat(w.offsetLeft,"px"),L.style.top="".concat(w.offsetTop,"px"),L.style.position=k,L.style.height="".concat(w.offsetHeight,"px"),L.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var j;if(Array.isArray(r))j={x:r[0],y:r[1],width:0,height:0};else{var H=r.getBoundingClientRect();j={x:H.x,y:H.y,width:H.width,height:H.height}}var B=w.getBoundingClientRect(),F=$.documentElement,V=F.clientWidth,D=F.clientHeight,P=F.scrollWidth,R=F.scrollHeight,W=F.scrollTop,U=F.scrollLeft,q=B.height,J=B.width,Z=j.height,Q=j.width,oe={left:0,top:0,right:V,bottom:D},ie={left:-U,top:-W,right:P-U,bottom:R-W},te=M.htmlRegion,ae="visible",fe="visibleFirst";te!=="scroll"&&te!==fe&&(te=ae);var ve=te===fe,Se=foe(ie,f),se=foe(oe,f),pe=te===ae?se:Se,ge=ve?se:pe;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var de=w.getBoundingClientRect();w.style.left=I,w.style.top=N,w.style.right=z,w.style.bottom=O,w.style.overflow=A,(S=w.parentElement)===null||S===void 0||S.removeChild(L);var ee=R$(Math.round(J/parseFloat(E)*1e3)/1e3),me=R$(Math.round(q/parseFloat(_)*1e3)/1e3);if(ee===0||me===0||iR(r)&&!_D(r))return;var Re=M.offset,je=M.targetOffset,ze=moe(B,Re),Le=Ce(ze,2),$e=Le[0],Je=Le[1],Pe=moe(j,je),st=Ce(Pe,2),_e=st[0],De=st[1];j.x-=_e,j.y-=De;var et=M.points||[],Ie=Ce(et,2),Fe=Ie[0],vt=Ie[1],bt=hoe(vt),wt=hoe(Fe),mt=rb(j,bt),xe=rb(B,wt),Ae=be({},M),He=mt.x-xe.x+$e,Ge=mt.y-xe.y+Je,ot=xo(He,Ge),at=xo(He,Ge,se),Ve=rb(j,["t","l"]),Qe=rb(B,["t","l"]),he=rb(j,["b","r"]),ye=rb(B,["b","r"]),Ee=M.overflow||{},rt=Ee.adjustX,re=Ee.adjustY,X=Ee.shiftX,ne=Ee.shiftY,we=function(Js){return typeof Js=="boolean"?Js:Js>=0},ue,Ue,Ke,ut;tf();var We=we(re),tt=wt[0]===bt[0];if(We&&wt[0]==="t"&&(Ue>ge.bottom||p.current.bt)){var Me=Ge;tt?Me-=q-Z:Me=Ve.y-ye.y-Je;var qe=xo(He,Me),_t=xo(He,Me,se);qe>ot||qe===ot&&(!ve||_t>=at)?(p.current.bt=!0,Ge=Me,Je=-Je,Ae.points=[sm(wt,0),sm(bt,0)]):p.current.bt=!1}if(We&&wt[0]==="b"&&(ueot||It===ot&&(!ve||Mt>=at)?(p.current.tb=!0,Ge=it,Je=-Je,Ae.points=[sm(wt,0),sm(bt,0)]):p.current.tb=!1}var rr=we(rt),fr=wt[1]===bt[1];if(rr&&wt[1]==="l"&&(ut>ge.right||p.current.rl)){var ar=He;fr?ar-=J-Q:ar=Ve.x-ye.x-$e;var Ir=xo(ar,Ge),An=xo(ar,Ge,se);Ir>ot||Ir===ot&&(!ve||An>=at)?(p.current.rl=!0,He=ar,$e=-$e,Ae.points=[sm(wt,1),sm(bt,1)]):p.current.rl=!1}if(rr&&wt[1]==="r"&&(Keot||ct===ot&&(!ve||jt>=at)?(p.current.lr=!0,He=gt,$e=-$e,Ae.points=[sm(wt,1),sm(bt,1)]):p.current.lr=!1}tf();var br=X===!0?0:X;typeof br=="number"&&(Kese.right&&(He-=ut-se.right-$e,j.x>se.right-br&&(He+=j.x-se.right+br)));var en=ne===!0?0:ne;typeof en=="number"&&(uese.bottom&&(Ge-=Ue-se.bottom-Je,j.y>se.bottom-en&&(Ge+=j.y-se.bottom+en)));var va=B.x+He,gi=va+J,Ra=B.y+Ge,bi=Ra+q,Ko=j.x,sa=Ko+Q,Xi=j.y,sr=Xi+Z,Ht=Math.max(va,Ko),Jn=Math.min(gi,sa),Wn=(Ht+Jn)/2,hn=Wn-va,eo=Math.max(Ra,Xi),No=Math.min(bi,sr),Fa=(eo+No)/2,Ga=Fa-Ra;i==null||i(t,Ae);var Qi=de.right-B.x-(He+B.width),Oa=de.bottom-B.y-(Ge+B.height);c({ready:!0,offsetX:He/ee,offsetY:Ge/me,offsetR:Qi/ee,offsetB:Oa/me,arrowX:hn/ee,arrowY:Ga/me,scaleX:ee,scaleY:me,align:Ae})}}),b=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&v()})},g=function(){c(function(S){return be(be({},S),{},{ready:!1})})};return Fn(g,[n]),Fn(function(){e||g()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,b]}function M9t(e,t,r,n,o){Fn(function(){if(e&&t&&r){let f=function(){n(),o()};var d=f,a=t,i=r,s=ez(a),l=ez(i),u=u_(i),c=new Set([u].concat(xt(s),xt(l)));return c.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){c.forEach(function(p){p.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function B9t(e,t,r,n,o,a,i,s){var l=m.useRef(e),u=m.useRef(!1);l.current!==e&&(u.current=!0,l.current=e),m.useEffect(function(){var c=rn(function(){u.current=!1});return function(){rn.cancel(c)}},[e]),m.useEffect(function(){if(t&&n&&(!o||a)){var c=function(){var C=!1,x=function(k){var I=k.target;C=i(I)},E=function(k){var I=k.target;!u.current&&l.current&&!C&&!i(I)&&s(!1)};return[x,E]},d=c(),f=Ce(d,2),p=f[0],h=f[1],v=c(),b=Ce(v,2),g=b[0],y=b[1],S=u_(n);S.addEventListener("mousedown",p,!0),S.addEventListener("click",h,!0),S.addEventListener("contextmenu",h,!0);var w=gR(r);return w&&(w.addEventListener("mousedown",g,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){S.removeEventListener("mousedown",p,!0),S.removeEventListener("click",h,!0),S.removeEventListener("contextmenu",h,!0),w&&(w.removeEventListener("mousedown",g,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0))}}},[t,r,n,o,a])}var j9t=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function L9t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zwe,t=m.forwardRef(function(r,n){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,c=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,p=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,b=r.mouseLeaveDelay,g=b===void 0?.1:b,y=r.focusDelay,S=r.blurDelay,w=r.mask,$=r.maskClosable,C=$===void 0?!0:$,x=r.getPopupContainer,E=r.forceRender,_=r.autoDestroy,k=r.destroyPopupOnHide,I=r.popup,N=r.popupClassName,z=r.popupStyle,O=r.popupPlacement,A=r.builtinPlacements,M=A===void 0?{}:A,L=r.popupAlign,j=r.zIndex,H=r.stretch,B=r.getPopupClassNameFromAlign,F=r.fresh,V=r.alignPoint,D=r.onPopupClick,P=r.onPopupAlign,R=r.arrow,W=r.popupMotion,U=r.maskMotion,q=r.popupTransitionName,J=r.popupAnimation,Z=r.maskTransitionName,Q=r.maskAnimation,oe=r.className,ie=r.getTriggerDOMNode,te=St(r,j9t),ae=_||k||!1,fe=m.useState(!1),ve=Ce(fe,2),Se=ve[0],se=ve[1];Fn(function(){se(qW())},[]);var pe=m.useRef({}),ge=m.useContext(uoe),de=m.useMemo(function(){return{registerSubPopup:function(er,Cn){pe.current[er]=Cn,ge==null||ge.registerSubPopup(er,Cn)}}},[ge]),ee=Rzt(),me=m.useState(null),Re=Ce(me,2),je=Re[0],ze=Re[1],Le=Ds(function(Ft){iR(Ft)&&je!==Ft&&ze(Ft),ge==null||ge.registerSubPopup(ee,Ft)}),$e=m.useState(null),Je=Ce($e,2),Pe=Je[0],st=Je[1],_e=m.useRef(null),De=Ds(function(Ft){iR(Ft)&&Pe!==Ft&&(st(Ft),_e.current=Ft)}),et=m.Children.only(i),Ie=(et==null?void 0:et.props)||{},Fe={},vt=Ds(function(Ft){var er,Cn,xn=Pe;return(xn==null?void 0:xn.contains(Ft))||((er=gR(xn))===null||er===void 0?void 0:er.host)===Ft||Ft===xn||(je==null?void 0:je.contains(Ft))||((Cn=gR(je))===null||Cn===void 0?void 0:Cn.host)===Ft||Ft===je||Object.values(pe.current).some(function(cn){return(cn==null?void 0:cn.contains(Ft))||Ft===cn})}),bt=doe(a,W,J,q),wt=doe(a,U,Q,Z),mt=m.useState(f||!1),xe=Ce(mt,2),Ae=xe[0],He=xe[1],Ge=d??Ae,ot=Ds(function(Ft){d===void 0&&He(Ft)});Fn(function(){He(d||!1)},[d]);var at=m.useRef(Ge);at.current=Ge;var Ve=m.useRef([]);Ve.current=[];var Qe=Ds(function(Ft){var er;ot(Ft),((er=Ve.current[Ve.current.length-1])!==null&&er!==void 0?er:Ge)!==Ft&&(Ve.current.push(Ft),p==null||p(Ft))}),he=m.useRef(),ye=function(){clearTimeout(he.current)},Ee=function(er){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ye(),Cn===0?Qe(er):he.current=setTimeout(function(){Qe(er)},Cn*1e3)};m.useEffect(function(){return ye},[]);var rt=m.useState(!1),re=Ce(rt,2),X=re[0],ne=re[1];Fn(function(Ft){(!Ft||Ge)&&ne(!0)},[Ge]);var we=m.useState(null),ue=Ce(we,2),Ue=ue[0],Ke=ue[1],ut=m.useState([0,0]),We=Ce(ut,2),tt=We[0],Me=We[1],qe=function(er){Me([er.clientX,er.clientY])},_t=A9t(Ge,je,V?tt:Pe,O,M,L,P),it=Ce(_t,11),It=it[0],Mt=it[1],rr=it[2],fr=it[3],ar=it[4],Ir=it[5],An=it[6],gt=it[7],ct=it[8],jt=it[9],br=it[10],en=O9t(Se,l,u,c),va=Ce(en,2),gi=va[0],Ra=va[1],bi=gi.has("click"),Ko=Ra.has("click")||Ra.has("contextMenu"),sa=Ds(function(){X||br()}),Xi=function(){at.current&&V&&Ko&&Ee(!1)};M9t(Ge,Pe,je,sa,Xi),Fn(function(){sa()},[tt,O]),Fn(function(){Ge&&!(M!=null&&M[O])&&sa()},[JSON.stringify(L)]);var sr=m.useMemo(function(){var Ft=D9t(M,a,jt,V);return Oe(Ft,B==null?void 0:B(jt))},[jt,B,M,a,V]);m.useImperativeHandle(n,function(){return{nativeElement:_e.current,forceAlign:sa}});var Ht=m.useState(0),Jn=Ce(Ht,2),Wn=Jn[0],hn=Jn[1],eo=m.useState(0),No=Ce(eo,2),Fa=No[0],Ga=No[1],Qi=function(){if(H&&Pe){var er=Pe.getBoundingClientRect();hn(er.width),Ga(er.height)}},Oa=function(){Qi(),sa()},Zi=function(er){ne(!1),br(),h==null||h(er)},iv=function(){return new Promise(function(er){Qi(),Ke(function(){return er})})};Fn(function(){Ue&&(br(),Ue(),Ke(null))},[Ue]);function xo(Ft,er,Cn,xn){Fe[Ft]=function(cn){var of;xn==null||xn(cn),Ee(er,Cn);for(var Wp=arguments.length,qp=new Array(Wp>1?Wp-1:0),af=1;af1?Cn-1:0),cn=1;cn1?Cn-1:0),cn=1;cn1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],a=iCe(r,!1),i=a.label,s=a.value,l=a.options,u=a.groupLabel;function c(d,f){Array.isArray(d)&&d.forEach(function(p){if(f||!(l in p)){var h=p[s];o.push({key:voe(p,o.length),groupOption:f,data:p,label:p[i],value:h})}else{var v=p[u];v===void 0&&n&&(v=p.label),o.push({key:voe(p,o.length),group:!0,data:p,label:v}),c(p[l],!0)}})}return c(e,!1),o}function tz(e){var t=be({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return fa(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var U9t=function(t,r,n){if(!r||!r.length)return null;var o=!1,a=function s(l,u){var c=FSe(u),d=c[0],f=c.slice(1);if(!d)return[l];var p=l.split(d);return o=o||p.length>1,p.reduce(function(h,v){return[].concat(xt(h),xt(s(v,f)))},[]).filter(Boolean)},i=a(t,r);return o?typeof n<"u"?i.slice(0,n):i:null},KW=m.createContext(null),K9t=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],G9t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],rz=function(t){return t==="tags"||t==="multiple"},Y9t=m.forwardRef(function(e,t){var r,n,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,l=e.tagRender,u=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,v=h===void 0?"Not Found":h,b=e.onClear,g=e.mode,y=e.disabled,S=e.loading,w=e.getInputElement,$=e.getRawInputElement,C=e.open,x=e.defaultOpen,E=e.onDropdownVisibleChange,_=e.activeValue,k=e.onActiveValueChange,I=e.activeDescendantId,N=e.searchValue,z=e.autoClearSearchValue,O=e.onSearch,A=e.onSearchSplit,M=e.tokenSeparators,L=e.allowClear,j=e.suffixIcon,H=e.clearIcon,B=e.OptionList,F=e.animation,V=e.transitionName,D=e.dropdownStyle,P=e.dropdownClassName,R=e.dropdownMatchSelectWidth,W=e.dropdownRender,U=e.dropdownAlign,q=e.placement,J=e.builtinPlacements,Z=e.getPopupContainer,Q=e.showAction,oe=Q===void 0?[]:Q,ie=e.onFocus,te=e.onBlur,ae=e.onKeyUp,fe=e.onKeyDown,ve=e.onMouseDown,Se=St(e,K9t),se=rz(g),pe=(s!==void 0?s:se)||g==="combobox",ge=be({},Se);G9t.forEach(function(sr){delete ge[sr]}),c==null||c.forEach(function(sr){delete ge[sr]});var de=m.useState(!1),ee=Ce(de,2),me=ee[0],Re=ee[1];m.useEffect(function(){Re(qW())},[]);var je=m.useRef(null),ze=m.useRef(null),Le=m.useRef(null),$e=m.useRef(null),Je=m.useRef(null),Pe=m.useRef(!1),st=n9t(),_e=Ce(st,3),De=_e[0],et=_e[1],Ie=_e[2];m.useImperativeHandle(t,function(){var sr,Ht;return{focus:(sr=$e.current)===null||sr===void 0?void 0:sr.focus,blur:(Ht=$e.current)===null||Ht===void 0?void 0:Ht.blur,scrollTo:function(Wn){var hn;return(hn=Je.current)===null||hn===void 0?void 0:hn.scrollTo(Wn)}}});var Fe=m.useMemo(function(){var sr;if(g!=="combobox")return N;var Ht=(sr=d[0])===null||sr===void 0?void 0:sr.value;return typeof Ht=="string"||typeof Ht=="number"?String(Ht):""},[N,g,d]),vt=g==="combobox"&&typeof w=="function"&&w()||null,bt=typeof $=="function"&&$(),wt=gD(ze,bt==null||(r=bt.props)===null||r===void 0?void 0:r.ref),mt=m.useState(!1),xe=Ce(mt,2),Ae=xe[0],He=xe[1];Fn(function(){He(!0)},[]);var Ge=So(!1,{defaultValue:x,value:C}),ot=Ce(Ge,2),at=ot[0],Ve=ot[1],Qe=Ae?at:!1,he=!v&&p;(y||he&&Qe&&g==="combobox")&&(Qe=!1);var ye=he?!1:Qe,Ee=m.useCallback(function(sr){var Ht=sr!==void 0?sr:!Qe;y||(Ve(Ht),Qe!==Ht&&(E==null||E(Ht)))},[y,Qe,Ve,E]),rt=m.useMemo(function(){return(M||[]).some(function(sr){return[` +`,`\r +`].includes(sr)})},[M]),re=m.useContext(KW)||{},X=re.maxCount,ne=re.rawValues,we=function(Ht,Jn,Wn){if(!((ne==null?void 0:ne.size)>=X)){var hn=!0,eo=Ht;k==null||k(null);var No=U9t(Ht,M,X&&X-ne.size),Fa=Wn?null:No;return g!=="combobox"&&Fa&&(eo="",A==null||A(Fa),Ee(!1),hn=!1),O&&Fe!==eo&&O(eo,{source:Jn?"typing":"effect"}),hn}},ue=function(Ht){!Ht||!Ht.trim()||O(Ht,{source:"submit"})};m.useEffect(function(){!Qe&&!se&&g!=="combobox"&&we("",!1,!1)},[Qe]),m.useEffect(function(){at&&y&&Ve(!1),y&&!Pe.current&&et(!1)},[y]);var Ue=Jwe(),Ke=Ce(Ue,2),ut=Ke[0],We=Ke[1],tt=function(Ht){var Jn=ut(),Wn=Ht.which;if(Wn===Xe.ENTER&&(g!=="combobox"&&Ht.preventDefault(),Qe||Ee(!0)),We(!!Fe),Wn===Xe.BACKSPACE&&!Jn&&se&&!Fe&&d.length){for(var hn=xt(d),eo=null,No=hn.length-1;No>=0;No-=1){var Fa=hn[No];if(!Fa.disabled){hn.splice(No,1),eo=Fa;break}}eo&&f(hn,{type:"remove",values:[eo]})}for(var Ga=arguments.length,Qi=new Array(Ga>1?Ga-1:0),Oa=1;Oa1?Jn-1:0),hn=1;hn1?No-1:0),Ga=1;Ga0&&arguments[0]!==void 0?arguments[0]:!1;c();var h=function(){s.current.forEach(function(b,g){if(b&&b.offsetParent){var y=NC(b),S=y.offsetHeight;l.current.get(g)!==S&&l.current.set(g,y.offsetHeight)}}),i(function(b){return b+1})};p?h():u.current=rn(h)}function f(p,h){var v=e(p),b=s.current.get(v);h?(s.current.set(v,h),d()):s.current.delete(v),!b!=!h&&(h?t==null||t(p):r==null||r(p))}return m.useEffect(function(){return c},[]),[f,d,l.current,a]}var e7t=10;function t7t(e,t,r,n,o,a,i,s){var l=m.useRef(),u=m.useState(null),c=Ce(u,2),d=c[0],f=c[1];return Fn(function(){if(d&&d.times=0;O-=1){var A=o(t[O]),M=r.get(A);if(M===void 0){y=!0;break}if(z-=M,z<=0)break}switch($){case"top":w=x-b;break;case"bottom":w=E-g+b;break;default:{var L=e.current.scrollTop,j=L+g;xj&&(S="bottom")}}w!==null&&i(w),w!==d.lastTop&&(y=!0)}y&&f(be(be({},d),{},{times:d.times+1,targetAlign:S,lastTop:w}))}},[d,e.current]),function(p){if(p==null){s();return}if(rn.cancel(l.current),typeof p=="number")i(p);else if(p&&or(p)==="object"){var h,v=p.align;"index"in p?h=p.index:h=t.findIndex(function(y){return o(y)===p.key});var b=p.offset,g=b===void 0?0:b;f({times:0,index:h,offset:g,originAlign:v})}}}function r7t(e,t,r){var n=e.length,o=t.length,a,i;if(n===0&&o===0)return null;n"u"?"undefined":or(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const lCe=function(e,t){var r=m.useRef(!1),n=m.useRef(null);function o(){clearTimeout(n.current),r.current=!0,n.current=setTimeout(function(){r.current=!1},50)}var a=m.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i<0&&a.current.top||i>0&&a.current.bottom;return s&&l?(clearTimeout(n.current),r.current=!1):(!l||r.current)&&o(),!r.current&&l}};function o7t(e,t,r,n,o){var a=m.useRef(0),i=m.useRef(null),s=m.useRef(null),l=m.useRef(!1),u=lCe(t,r);function c(b,g){rn.cancel(i.current),a.current+=g,s.current=g,!u(g)&&(yoe||b.preventDefault(),i.current=rn(function(){var y=l.current?10:1;o(a.current*y),a.current=0}))}function d(b,g){o(g,!0),yoe||b.preventDefault()}var f=m.useRef(null),p=m.useRef(null);function h(b){if(e){rn.cancel(p.current),p.current=rn(function(){f.current=null},2);var g=b.deltaX,y=b.deltaY,S=b.shiftKey,w=g,$=y;(f.current==="sx"||!f.current&&S&&y&&!g)&&(w=y,$=0,f.current="sx");var C=Math.abs(w),x=Math.abs($);f.current===null&&(f.current=n&&C>x?"x":"y"),f.current==="y"?c(b,$):d(b,w)}}function v(b){e&&(l.current=b.detail===s.current)}return[h,v]}var a7t=14/15;function i7t(e,t,r){var n=m.useRef(!1),o=m.useRef(0),a=m.useRef(null),i=m.useRef(null),s,l=function(f){if(n.current){var p=Math.ceil(f.touches[0].pageY),h=o.current-p;o.current=p,r(h)&&f.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){h*=a7t,(!r(h,!0)||Math.abs(h)<=.1)&&clearInterval(i.current)},16)}},u=function(){n.current=!1,s()},c=function(f){s(),f.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(f.touches[0].pageY),a.current=f.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",u))};s=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",u))},Fn(function(){return e&&t.current.addEventListener("touchstart",c),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",c),s(),clearInterval(i.current)}},[e])}var s7t=20;function Soe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,s7t),Math.floor(r)}function l7t(e,t,r,n){var o=m.useMemo(function(){return[new Map,[]]},[e,r.id,n]),a=Ce(o,2),i=a[0],s=a[1],l=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=i.get(c),p=i.get(d);if(f===void 0||p===void 0)for(var h=e.length,v=s.length;va||!!v),I=h==="rtl",N=Oe(n,le({},"".concat(n,"-rtl"),I),o),z=c||c7t,O=m.useRef(),A=m.useRef(),M=m.useState(0),L=Ce(M,2),j=L[0],H=L[1],B=m.useState(0),F=Ce(B,2),V=F[0],D=F[1],P=m.useState(!1),R=Ce(P,2),W=R[0],U=R[1],q=function(){U(!0)},J=function(){U(!1)},Z=m.useCallback(function(We){return typeof f=="function"?f(We):We==null?void 0:We[f]},[f]),Q={getKey:Z};function oe(We){H(function(tt){var Me;typeof We=="function"?Me=We(tt):Me=We;var qe=wt(Me);return O.current.scrollTop=qe,qe})}var ie=m.useRef({start:0,end:z.length}),te=m.useRef(),ae=n7t(z,Z),fe=Ce(ae,1),ve=fe[0];te.current=ve;var Se=J9t(Z,null,null),se=Ce(Se,4),pe=se[0],ge=se[1],de=se[2],ee=se[3],me=m.useMemo(function(){if(!_)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};if(!k){var We;return{scrollHeight:((We=A.current)===null||We===void 0?void 0:We.offsetHeight)||0,start:0,end:z.length-1,offset:void 0}}for(var tt=0,Me,qe,_t,it=z.length,It=0;It=j&&Me===void 0&&(Me=It,qe=tt),ar>j+a&&_t===void 0&&(_t=It),tt=ar}return Me===void 0&&(Me=0,qe=0,_t=Math.ceil(a/i)),_t===void 0&&(_t=z.length-1),_t=Math.min(_t+1,z.length-1),{scrollHeight:tt,start:Me,end:_t,offset:qe}},[k,_,j,z,ee,a]),Re=me.scrollHeight,je=me.start,ze=me.end,Le=me.offset;ie.current.start=je,ie.current.end=ze;var $e=m.useState({width:0,height:a}),Je=Ce($e,2),Pe=Je[0],st=Je[1],_e=function(tt){st({width:tt.width||tt.offsetWidth,height:tt.height||tt.offsetHeight})},De=m.useRef(),et=m.useRef(),Ie=m.useMemo(function(){return Soe(Pe.width,v)},[Pe.width,v]),Fe=m.useMemo(function(){return Soe(Pe.height,Re)},[Pe.height,Re]),vt=Re-a,bt=m.useRef(vt);bt.current=vt;function wt(We){var tt=We;return Number.isNaN(bt.current)||(tt=Math.min(tt,bt.current)),tt=Math.max(tt,0),tt}var mt=j<=0,xe=j>=vt,Ae=lCe(mt,xe),He=function(){return{x:I?-V:V,y:j}},Ge=m.useRef(He()),ot=Ds(function(){if(S){var We=He();(Ge.current.x!==We.x||Ge.current.y!==We.y)&&(S(We),Ge.current=We)}});function at(We,tt){var Me=We;tt?(uo.flushSync(function(){D(Me)}),ot()):oe(Me)}function Ve(We){var tt=We.currentTarget.scrollTop;tt!==j&&oe(tt),y==null||y(We),ot()}var Qe=function(tt){var Me=tt,qe=v-Pe.width;return Me=Math.max(Me,0),Me=Math.min(Me,qe),Me},he=Ds(function(We,tt){tt?(uo.flushSync(function(){D(function(Me){var qe=Me+(I?-We:We);return Qe(qe)})}),ot()):oe(function(Me){var qe=Me+We;return qe})}),ye=o7t(_,mt,xe,!!v,he),Ee=Ce(ye,2),rt=Ee[0],re=Ee[1];i7t(_,O,function(We,tt){return Ae(We,tt)?!1:(rt({preventDefault:function(){},deltaY:We}),!0)}),Fn(function(){function We(Me){_&&Me.preventDefault()}var tt=O.current;return tt.addEventListener("wheel",rt),tt.addEventListener("DOMMouseScroll",re),tt.addEventListener("MozMousePixelScroll",We),function(){tt.removeEventListener("wheel",rt),tt.removeEventListener("DOMMouseScroll",re),tt.removeEventListener("MozMousePixelScroll",We)}},[_]),Fn(function(){v&&D(function(We){return Qe(We)})},[Pe.width,v]);var X=function(){var tt,Me;(tt=De.current)===null||tt===void 0||tt.delayHidden(),(Me=et.current)===null||Me===void 0||Me.delayHidden()},ne=t7t(O,z,de,i,Z,function(){return ge(!0)},oe,X);m.useImperativeHandle(t,function(){return{getScrollInfo:He,scrollTo:function(tt){function Me(qe){return qe&&or(qe)==="object"&&("left"in qe||"top"in qe)}Me(tt)?(tt.left!==void 0&&D(Qe(tt.left)),ne(tt.top)):ne(tt)}}}),Fn(function(){if(w){var We=z.slice(je,ze+1);w(We,z)}},[je,ze,z]);var we=l7t(z,Z,de,i),ue=C==null?void 0:C({start:je,end:ze,virtual:k,offsetX:V,offsetY:Le,rtl:I,getSize:we}),Ue=Q9t(z,je,ze,v,pe,d,Q),Ke=null;a&&(Ke=be(le({},l?"height":"maxHeight",a),d7t),_&&(Ke.overflowY="hidden",v&&(Ke.overflowX="hidden"),W&&(Ke.pointerEvents="none")));var ut={};return I&&(ut.dir="rtl"),m.createElement("div",G({style:be(be({},u),{},{position:"relative"}),className:N},ut,E),m.createElement(ev,{onResize:_e},m.createElement(g,{className:"".concat(n,"-holder"),style:Ke,ref:O,onScroll:Ve,onMouseEnter:X},m.createElement(sCe,{prefixCls:n,height:Re,offsetX:V,offsetY:Le,scrollWidth:v,onInnerResize:ge,ref:A,innerProps:$,rtl:I,extra:ue},Ue))),k&&Re>a&&m.createElement(boe,{ref:De,prefixCls:n,scrollOffset:j,scrollRange:Re,rtl:I,onScroll:at,onStartMove:q,onStopMove:J,spinSize:Fe,containerSize:Pe.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),k&&v>Pe.width&&m.createElement(boe,{ref:et,prefixCls:n,scrollOffset:V,scrollRange:v,rtl:I,onScroll:at,onStartMove:q,onStopMove:J,spinSize:Ie,containerSize:Pe.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var uCe=m.forwardRef(f7t);uCe.displayName="List";function p7t(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var m7t=["disabled","title","children","style","className"];function woe(e){return typeof e=="string"||typeof e=="number"}var h7t=function(t,r){var n=r9t(),o=n.prefixCls,a=n.id,i=n.open,s=n.multiple,l=n.mode,u=n.searchValue,c=n.toggleOpen,d=n.notFoundContent,f=n.onPopupScroll,p=m.useContext(KW),h=p.maxCount,v=p.flattenOptions,b=p.onActiveValue,g=p.defaultActiveFirstOption,y=p.onSelect,S=p.menuItemSelectedIcon,w=p.rawValues,$=p.fieldNames,C=p.virtual,x=p.direction,E=p.listHeight,_=p.listItemHeight,k=p.optionRender,I="".concat(o,"-item"),N=$0(function(){return v},[i,v],function(Z,Q){return Q[0]&&Z[1]!==Q[1]}),z=m.useRef(null),O=m.useMemo(function(){return s&&typeof h<"u"&&(w==null?void 0:w.size)>=h},[s,h,w==null?void 0:w.size]),A=function(Q){Q.preventDefault()},M=function(Q){var oe;(oe=z.current)===null||oe===void 0||oe.scrollTo(typeof Q=="number"?{index:Q}:Q)},L=function(Q){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=N.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;F(Q);var ie={source:oe?"keyboard":"mouse"},te=N[Q];if(!te){b(null,-1,ie);return}b(te.value,Q,ie)};m.useEffect(function(){V(g!==!1?L(0):-1)},[N.length,u]);var D=m.useCallback(function(Z){return w.has(Z)&&l!=="combobox"},[l,xt(w).toString(),w.size]);m.useEffect(function(){var Z=setTimeout(function(){if(!s&&i&&w.size===1){var oe=Array.from(w)[0],ie=N.findIndex(function(te){var ae=te.data;return ae.value===oe});ie!==-1&&(V(ie),M(ie))}});if(i){var Q;(Q=z.current)===null||Q===void 0||Q.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[i,u]);var P=function(Q){Q!==void 0&&y(Q,{selected:!w.has(Q)}),s||c(!1)};if(m.useImperativeHandle(r,function(){return{onKeyDown:function(Q){var oe=Q.which,ie=Q.ctrlKey;switch(oe){case Xe.N:case Xe.P:case Xe.UP:case Xe.DOWN:{var te=0;if(oe===Xe.UP?te=-1:oe===Xe.DOWN?te=1:p7t()&&ie&&(oe===Xe.N?te=1:oe===Xe.P&&(te=-1)),te!==0){var ae=L(B+te,te);M(ae),V(ae,!0)}break}case Xe.ENTER:{var fe,ve=N[B];ve&&!(ve!=null&&(fe=ve.data)!==null&&fe!==void 0&&fe.disabled)&&!O?P(ve.value):P(void 0),i&&Q.preventDefault();break}case Xe.ESC:c(!1),i&&Q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Q){M(Q)}}}),N.length===0)return m.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(I,"-empty"),onMouseDown:A},d);var R=Object.keys($).map(function(Z){return $[Z]}),W=function(Q){return Q.label};function U(Z,Q){var oe=Z.group;return{role:oe?"presentation":"option",id:"".concat(a,"_list_").concat(Q)}}var q=function(Q){var oe=N[Q];if(!oe)return null;var ie=oe.data||{},te=ie.value,ae=oe.group,fe=pp(ie,!0),ve=W(oe);return oe?m.createElement("div",G({"aria-label":typeof ve=="string"&&!ae?ve:null},fe,{key:Q},U(oe,Q),{"aria-selected":D(te)}),te):null},J={role:"listbox",id:"".concat(a,"_list")};return m.createElement(m.Fragment,null,C&&m.createElement("div",G({},J,{style:{height:0,width:0,overflow:"hidden"}}),q(B-1),q(B),q(B+1)),m.createElement(uCe,{itemKey:"key",ref:z,data:N,height:E,itemHeight:_,fullHeight:!1,onMouseDown:A,onScroll:f,virtual:C,direction:x,innerProps:C?null:J},function(Z,Q){var oe,ie=Z.group,te=Z.groupOption,ae=Z.data,fe=Z.label,ve=Z.value,Se=ae.key;if(ie){var se,pe=(se=ae.title)!==null&&se!==void 0?se:woe(fe)?fe.toString():void 0;return m.createElement("div",{className:Oe(I,"".concat(I,"-group")),title:pe},fe!==void 0?fe:Se)}var ge=ae.disabled,de=ae.title;ae.children;var ee=ae.style,me=ae.className,Re=St(ae,m7t),je=Lp(Re,R),ze=D(ve),Le=ge||!ze&&O,$e="".concat(I,"-option"),Je=Oe(I,$e,me,(oe={},le(oe,"".concat($e,"-grouped"),te),le(oe,"".concat($e,"-active"),B===Q&&!Le),le(oe,"".concat($e,"-disabled"),Le),le(oe,"".concat($e,"-selected"),ze),oe)),Pe=W(Z),st=!S||typeof S=="function"||ze,_e=typeof Pe=="number"?Pe:Pe||ve,De=woe(_e)?_e.toString():void 0;return de!==void 0&&(De=de),m.createElement("div",G({},pp(je),C?{}:U(Z,Q),{"aria-selected":ze,className:Je,title:De,onMouseMove:function(){B===Q||Le||V(Q)},onClick:function(){Le||P(ve)},style:ee}),m.createElement("div",{className:"".concat($e,"-content")},typeof k=="function"?k(Z,{index:Q}):_e),m.isValidElement(S)||ze,st&&m.createElement(TD,{className:"".concat(I,"-option-state"),customizeIcon:S,customizeIconProps:{value:ve,disabled:Le,isSelected:ze}},ze?"✓":null))}))},v7t=m.forwardRef(h7t);const g7t=function(e,t){var r=m.useRef({values:new Map,options:new Map}),n=m.useMemo(function(){var a=r.current,i=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var f;return be(be({},d),{},{label:(f=i.get(d.value))===null||f===void 0?void 0:f.label})}return d}),u=new Map,c=new Map;return l.forEach(function(d){u.set(d.value,d),c.set(d.value,t.get(d.value)||s.get(d.value))}),r.current.values=u,r.current.options=c,l},[e,t]),o=m.useCallback(function(a){return t.get(a)||r.current.options.get(a)},[t]);return[n,o]};function e4(e,t){return oCe(e).join("").toUpperCase().includes(t)}const b7t=function(e,t,r,n,o){return m.useMemo(function(){if(!r||n===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],u=typeof n=="function",c=r.toUpperCase(),d=u?n:function(p,h){return o?e4(h[o],c):h[a]?e4(h[i!=="children"?i:"label"],c):e4(h[s],c)},f=u?function(p){return tz(p)}:function(p){return p};return e.forEach(function(p){if(p[a]){var h=d(r,f(p));if(h)l.push(p);else{var v=p[a].filter(function(b){return d(r,f(b))});v.length&&l.push(be(be({},p),{},le({},a,v)))}return}d(r,f(p))&&l.push(p)}),l},[e,n,o,r,t])};var Coe=0,y7t=ws();function S7t(){var e;return y7t?(e=Coe,Coe+=1):e="TEST_OR_SSR",e}function w7t(e){var t=m.useState(),r=Ce(t,2),n=r[0],o=r[1];return m.useEffect(function(){o("rc_select_".concat(S7t()))},[]),e||n}var C7t=["children","value"],x7t=["children"];function $7t(e){var t=e,r=t.key,n=t.props,o=n.children,a=n.value,i=St(n,C7t);return be({key:r,value:a!==void 0?a:r,children:o},i)}function cCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Nh(e).map(function(r,n){if(!m.isValidElement(r)||!r.type)return null;var o=r,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,u=St(s,x7t);return t||!a?$7t(r):be(be({key:"__RC_SELECT_GRP__".concat(i===null?n:i,"__"),label:i},u),{},{options:cCe(l)})}).filter(function(r){return r})}var E7t=function(t,r,n,o,a){return m.useMemo(function(){var i=t,s=!t;s&&(i=cCe(r));var l=new Map,u=new Map,c=function(p,h,v){v&&typeof v=="string"&&p.set(h[v],h)},d=function f(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v2&&arguments[2]!==void 0?arguments[2]:{},rt=Ee.source,re=rt===void 0?"keyboard":rt;mt(ye),i&&n==="combobox"&&he!==null&&re==="keyboard"&&Fe(String(he))},[i,n]),He=function(ye,Ee,rt){var re=function(){var Me,qe=me(ye);return[j?{label:qe==null?void 0:qe[W.label],value:ye,key:(Me=qe==null?void 0:qe.key)!==null&&Me!==void 0?Me:ye}:ye,tz(qe)]};if(Ee&&p){var X=re(),ne=Ce(X,2),we=ne[0],ue=ne[1];p(we,ue)}else if(!Ee&&h&&rt!=="clear"){var Ue=re(),Ke=Ce(Ue,2),ut=Ke[0],We=Ke[1];h(ut,We)}},Ge=xoe(function(he,ye){var Ee,rt=D?ye.selected:!0;rt?Ee=D?[].concat(xt(ee),[he]):[he]:Ee=ee.filter(function(re){return re.value!==he}),_e(Ee),He(he,rt),n==="combobox"?Fe(""):(!rz||f)&&(Z(""),Fe(""))}),ot=function(ye,Ee){_e(ye);var rt=Ee.type,re=Ee.values;(rt==="remove"||rt==="clear")&&re.forEach(function(X){He(X.value,!1,rt)})},at=function(ye,Ee){if(Z(ye),Fe(null),Ee.source==="submit"){var rt=(ye||"").trim();if(rt){var re=Array.from(new Set([].concat(xt(je),[rt])));_e(re),He(rt,!0),Z("")}return}Ee.source!=="blur"&&(n==="combobox"&&_e(ye),c==null||c(ye))},Ve=function(ye){var Ee=ye;n!=="tags"&&(Ee=ye.map(function(re){var X=ie.get(re);return X==null?void 0:X.value}).filter(function(re){return re!==void 0}));var rt=Array.from(new Set([].concat(xt(je),xt(Ee))));_e(rt),rt.forEach(function(re){He(re,!0)})},Qe=m.useMemo(function(){var he=k!==!1&&b!==!1;return be(be({},Q),{},{flattenOptions:st,onActiveValue:Ae,defaultActiveFirstOption:xe,onSelect:Ge,menuItemSelectedIcon:_,rawValues:je,fieldNames:W,virtual:he,direction:I,listHeight:z,listItemHeight:A,childrenAsData:P,maxCount:B,optionRender:C})},[B,Q,st,Ae,xe,Ge,_,je,W,k,b,I,z,A,P,C]);return m.createElement(KW.Provider,{value:Qe},m.createElement(Y9t,G({},F,{id:V,prefixCls:a,ref:t,omitDomProps:k7t,mode:n,displayValues:Re,onDisplayValuesChange:ot,direction:I,searchValue:J,onSearch:at,autoClearSearchValue:f,onSearchSplit:Ve,dropdownMatchSelectWidth:b,OptionList:v7t,emptyOptions:!st.length,activeValue:Ie,activeDescendantId:"".concat(V,"_list_").concat(wt)})))}),XW=T7t;XW.Option=YW;XW.OptGroup=GW;function Ah(e,t,r){return Oe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const gS=(e,t)=>t||e,I7t=()=>{const[,e]=Cs(),r=new On(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),m.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),m.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),m.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),m.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},R7t=I7t,F7t=()=>{const[,e]=Cs(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=m.useMemo(()=>({borderColor:new On(t).onBackground(o).toHexShortString(),shadowColor:new On(r).onBackground(o).toHexShortString(),contentColor:new On(n).onBackground(o).toHexShortString()}),[t,r,n,o]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:a},m.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),m.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},O7t=F7t,N7t=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},D7t=Ka("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,o=Dn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[N7t(o)]});var A7t=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:r,prefixCls:n,image:o=dCe,description:a,children:i,imageStyle:s,style:l}=e,u=A7t(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:c,direction:d,empty:f}=m.useContext(Er),p=c("empty",n),[h,v,b]=D7t(p),[g]=n_("Empty"),y=typeof a<"u"?a:g==null?void 0:g.description,S=typeof y=="string"?y:"empty";let w=null;return typeof o=="string"?w=m.createElement("img",{alt:S,src:o}):w=o,h(m.createElement("div",Object.assign({className:Oe(v,b,p,f==null?void 0:f.className,{[`${p}-normal`]:o===fCe,[`${p}-rtl`]:d==="rtl"},t,r),style:Object.assign(Object.assign({},f==null?void 0:f.style),l)},u),m.createElement("div",{className:`${p}-image`,style:s},w),y&&m.createElement("div",{className:`${p}-description`},y),i&&m.createElement("div",{className:`${p}-footer`},i)))};QW.PRESENTED_IMAGE_DEFAULT=dCe;QW.PRESENTED_IMAGE_SIMPLE=fCe;const Sw=QW,M7t=e=>{const{componentName:t}=e,{getPrefixCls:r}=m.useContext(Er),n=r("empty");switch(t){case"Table":case"List":return Y.createElement(Sw,{image:Sw.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Y.createElement(Sw,{image:Sw.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});default:return Y.createElement(Sw,null)}},pCe=M7t,B7t=["outlined","borderless","filled"],j7t=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const r=m.useContext(Qwe);let n;typeof e<"u"?n=e:t===!1?n="borderless":n=r??"outlined";const o=B7t.includes(n);return[n,o]},bS=j7t,L7t=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function z7t(e,t){return e||L7t(t)}const $oe=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},V7t=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},wo(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${o}${s}bottomLeft, + ${a}${s}bottomLeft + `]:{animationName:jW},[` + ${o}${s}topLeft, + ${a}${s}topLeft, + ${o}${s}topRight, + ${a}${s}topRight + `]:{animationName:zW},[`${i}${s}bottomLeft`]:{animationName:LW},[` + ${i}${s}topLeft, + ${i}${s}topRight + `]:{animationName:VW},"&-hidden":{display:"none"},[`${n}`]:Object.assign(Object.assign({},$oe(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},vR),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${n}-option-selected:not(${n}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${n}-option-selected:not(${n}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},$oe(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},CR(e,"slide-up"),CR(e,"slide-down"),wR(e,"move-up"),wR(e,"move-down")]},H7t=V7t,nb=2,W7t=e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()};function t4(e,t){const{componentCls:r,iconCls:n}=e,o=`${r}-selection-overflow`,a=e.multipleSelectItemHeight,i=W7t(e),s=t?`${r}-${t}`:"";return{[`${r}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${r}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(nb).mul(2).equal(),paddingBlock:e.calc(i).sub(nb).equal(),borderRadius:e.borderRadius,[`${r}-show-search&`]:{cursor:"text"},[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Be(nb)} 0`,lineHeight:Be(a),visibility:"hidden",content:'"\\a0"'}},[` + &${r}-show-arrow ${r}-selector, + &${r}-allow-clear ${r}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${r}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:nb,marginBottom:nb,lineHeight:Be(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(nb).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${r}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},wD()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${r}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Be(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const q7t=e=>{const{componentCls:t}=e,r=Dn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=Dn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[t4(e),t4(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},t4(n,"lg")]},U7t=q7t;function r4(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${r}-${t}`:"";return{[`${r}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},wo(e,!0)),{display:"flex",borderRadius:o,[`${r}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${r}-selection-item, + ${r}-selection-placeholder + `]:{padding:0,lineHeight:Be(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${r}-show-arrow ${r}-selection-item, + &${r}-show-arrow ${r}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",padding:`0 ${Be(n)}`,[`${r}-selection-search-input`]:{height:a},"&:after":{lineHeight:Be(a)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Be(n)}`,"&:after":{display:"none"}}}}}}}function K7t(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[r4(e),r4(Dn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:r,insetInlineEnd:r},[`${t}-selector`]:{padding:`0 ${Be(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},r4(Dn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const G7t=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:u,colorBgContainer:c,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:v}=e;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:u,optionPadding:`${(n-t*r)/2}px ${o}px`,optionFontSize:t,optionLineHeight:r,optionHeight:n,selectorBg:c,clearBg:c,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:n,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},mCe=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${Be(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Be(o)} ${t.activeShadowColor}`,outline:0}}}},Eoe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mCe(e,t))}),Y7t=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},mCe(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Eoe(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Eoe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),hCe=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${Be(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},_oe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},hCe(e,t))}),X7t=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},hCe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),_oe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_oe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Q7t=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),Z7t=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Y7t(e)),X7t(e)),Q7t(e))}),J7t=Z7t,eVt=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},tVt=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},rVt=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[r]:Object.assign(Object.assign({},wo(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},eVt(e)),tVt(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},vR),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},vR),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},wD()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${r}-clear`]:{opacity:1},[`${r}-arrow:not(:last-child)`]:{opacity:0}}}),[`${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}},nVt=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},rVt(e),K7t(e),U7t(e),H7t(e),{[`${t}-rtl`]:{direction:"rtl"}},i_(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},oVt=Ka("Select",(e,t)=>{let{rootPrefixCls:r}=t;const n=Dn(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[nVt(n),J7t(n)]},G7t,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var aVt={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"};const iVt=aVt;var sVt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:iVt}))};const lVt=m.forwardRef(sVt);var uVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const cVt=uVt;var dVt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:cVt}))};const vCe=m.forwardRef(dVt);var fVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const pVt=fVt;var mVt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:pVt}))};const gCe=m.forwardRef(mVt);function hVt(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:n,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:u,feedbackIcon:c,showArrow:d,componentName:f}=e;const p=r??m.createElement(k0,null),h=y=>t===null&&!s&&!d?null:m.createElement(m.Fragment,null,u!==!1&&y,s&&c);let v=null;if(t!==void 0)v=h(t);else if(a)v=h(m.createElement(TW,{spin:!0}));else{const y=`${l}-suffix`;v=S=>{let{open:w,showSearch:$}=S;return h(w&&$?m.createElement(gCe,{className:y}):m.createElement(vCe,{className:y}))}}let b=null;n!==void 0?b=n:i?b=m.createElement(lVt,null):b=null;let g=null;return o!==void 0?g=o:g=m.createElement(xwe,null),{clearIcon:p,suffixIcon:v,itemIcon:b,removeIcon:g}}function vVt(e,t){return t!==void 0?t:e!==null}var gVt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,bordered:o,className:a,rootClassName:i,getPopupContainer:s,popupClassName:l,dropdownClassName:u,listHeight:c=256,placement:d,listItemHeight:f,size:p,disabled:h,notFoundContent:v,status:b,builtinPlacements:g,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:w,style:$,allowClear:C,variant:x,dropdownStyle:E,transitionName:_,tagRender:k,maxCount:I}=e,N=gVt(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:z,getPrefixCls:O,renderEmpty:A,direction:M,virtual:L,popupMatchSelectWidth:j,popupOverflow:H,select:B}=m.useContext(Er),[,F]=Cs(),V=f??(F==null?void 0:F.controlHeight),D=O("select",n),P=O(),R=w??M,{compactSize:W,compactItemClassnames:U}=T0(D,R),[q,J]=bS(x,o),Z=Vl(D),[Q,oe,ie]=oVt(D,Z),te=m.useMemo(()=>{const{mode:Fe}=e;if(Fe!=="combobox")return Fe===bCe?"combobox":Fe},[e.mode]),ae=te==="multiple"||te==="tags",fe=vVt(e.suffixIcon,e.showArrow),ve=(r=S??y)!==null&&r!==void 0?r:j,{status:Se,hasFeedback:se,isFormItemInput:pe,feedbackIcon:ge}=m.useContext(qi),de=gS(Se,b);let ee;v!==void 0?ee=v:te==="combobox"?ee=null:ee=(A==null?void 0:A("Select"))||m.createElement(pCe,{componentName:"Select"});const{suffixIcon:me,itemIcon:Re,removeIcon:je,clearIcon:ze}=hVt(Object.assign(Object.assign({},N),{multiple:ae,hasFeedback:se,feedbackIcon:ge,showSuffixIcon:fe,prefixCls:D,componentName:"Select"})),Le=C===!0?{clearIcon:ze}:C,$e=Lp(N,["suffixIcon","itemIcon"]),Je=Oe(l||u,{[`${D}-dropdown-${R}`]:R==="rtl"},i,ie,Z,oe),Pe=Hl(Fe=>{var vt;return(vt=p??W)!==null&&vt!==void 0?vt:Fe}),st=m.useContext(Mu),_e=h??st,De=Oe({[`${D}-lg`]:Pe==="large",[`${D}-sm`]:Pe==="small",[`${D}-rtl`]:R==="rtl",[`${D}-${q}`]:J,[`${D}-in-form-item`]:pe},Ah(D,de,se),U,B==null?void 0:B.className,a,i,ie,Z,oe),et=m.useMemo(()=>d!==void 0?d:R==="rtl"?"bottomRight":"bottomLeft",[d,R]),[Ie]=$D("SelectLike",E==null?void 0:E.zIndex);return Q(m.createElement(XW,Object.assign({ref:t,virtual:L,showSearch:B==null?void 0:B.showSearch},$e,{style:Object.assign(Object.assign({},B==null?void 0:B.style),$),dropdownMatchSelectWidth:ve,transitionName:Rwe(P,"slide-up",_),builtinPlacements:z7t(g,H),listHeight:c,listItemHeight:V,mode:te,prefixCls:D,placement:et,direction:R,suffixIcon:me,menuItemSelectedIcon:Re,removeIcon:je,allowClear:Le,notFoundContent:ee,className:De,getPopupContainer:s||z,dropdownClassName:Je,disabled:_e,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Ie}),maxCount:ae?I:void 0,tagRender:ae?k:void 0})))},yS=m.forwardRef(bVt),yVt=WW(yS);yS.SECRET_COMBOBOX_MODE_DO_NOT_USE=bCe;yS.Option=YW;yS.OptGroup=GW;yS._InternalPanelDoNotUseOrYouWillBeFired=yVt;const c_=yS,Qg=["xxl","xl","lg","md","sm","xs"],SVt=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),wVt=e=>{const t=e,r=[].concat(Qg).reverse();return r.forEach((n,o)=>{const a=n.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o{const r=new Map;let n=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,r.forEach(i=>i(o)),r.size>=1},subscribe(a){return r.size||this.register(),n+=1,r.set(n,a),a(o),n},unsubscribe(a){r.delete(a),r.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],s=u=>{let{matches:c}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function CVt(){const[,e]=m.useReducer(t=>t+1,0);return e}function SCe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),r=CVt(),n=yCe();return Fn(()=>{const o=n.subscribe(a=>{t.current=a,e&&r()});return()=>n.unsubscribe(o)},[]),t.current}function wCe(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return m.createElement("div",{className:Oe("".concat(r,"-content"),a),style:i},m.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var ob={shiftX:64,adjustY:1},ab={adjustX:1,shiftY:!0},Gl=[0,0],xVt={left:{points:["cr","cl"],overflow:ab,offset:[-4,0],targetOffset:Gl},right:{points:["cl","cr"],overflow:ab,offset:[4,0],targetOffset:Gl},top:{points:["bc","tc"],overflow:ob,offset:[0,-4],targetOffset:Gl},bottom:{points:["tc","bc"],overflow:ob,offset:[0,4],targetOffset:Gl},topLeft:{points:["bl","tl"],overflow:ob,offset:[0,-4],targetOffset:Gl},leftTop:{points:["tr","tl"],overflow:ab,offset:[-4,0],targetOffset:Gl},topRight:{points:["br","tr"],overflow:ob,offset:[0,-4],targetOffset:Gl},rightTop:{points:["tl","tr"],overflow:ab,offset:[4,0],targetOffset:Gl},bottomRight:{points:["tr","br"],overflow:ob,offset:[0,4],targetOffset:Gl},rightBottom:{points:["bl","br"],overflow:ab,offset:[4,0],targetOffset:Gl},bottomLeft:{points:["tl","bl"],overflow:ob,offset:[0,4],targetOffset:Gl},leftBottom:{points:["br","bl"],overflow:ab,offset:[-4,0],targetOffset:Gl}},$Vt=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],EVt=function(t,r){var n=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,c=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,g=t.animation,y=t.motion,S=t.placement,w=S===void 0?"right":S,$=t.align,C=$===void 0?{}:$,x=t.destroyTooltipOnHide,E=x===void 0?!1:x,_=t.defaultVisible,k=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,z=t.id,O=t.showArrow,A=O===void 0?!0:O,M=St(t,$Vt),L=m.useRef(null);m.useImperativeHandle(r,function(){return L.current});var j=be({},M);"visible"in t&&(j.popupVisible=t.visible);var H=function(){return m.createElement(wCe,{key:"content",prefixCls:f,id:z,overlayInnerStyle:I},N)};return m.createElement(UW,G({popupClassName:n,prefixCls:f,popup:H,action:a,builtinPlacements:xVt,popupPlacement:w,ref:L,popupAlign:C,getPopupContainer:k,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:g,popupMotion:y,defaultPopupVisible:_,autoDestroy:E,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:s,arrow:A},j),p)};const _Vt=m.forwardRef(EVt);function CCe(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=0,i=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),u=o-r*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-u,f=c,p=2*o-s,h=l,v=2*o-a,b=i,g=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${c} A ${r} ${r} 0 0 1 ${d} ${f} L ${p} ${h} A ${n} ${n} 0 0 0 ${v} ${b} Z')`;return{arrowShadowWidth:g,arrowPath:w,arrowPolygon:S}}const xCe=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Be(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},$Ce=8;function ECe(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?$Ce:n}}function Ck(e,t){return e?t:{}}function kVt(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},xCe(e,t,o)),{"&:before":{background:t}})]},Ck(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),Ck(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),Ck(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Ck(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function PVt(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const koe={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},TVt={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},IVt=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function RVt(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(koe).forEach(u=>{const c=n&&TVt[u]||koe[u],d=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[u]=d,IVt.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const f=ECe({contentRadius:a,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal+s;break}d.overflow=PVt(u,f,t,r),i&&(d.htmlRegion="visibleFirst")}),l}const FVt=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wo(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${Be(e.calc(u).div(2).equal())} ${Be(c)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,$Ce)}},[`${t}-content`]:{position:"relative"}}),Ijt(e,(d,f)=>{let{darkColor:p}=f;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},kVt(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},OVt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ECe({contentRadius:e.borderRadius,limitVerticalRadius:!0})),CCe(Dn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),_Ce=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ka("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=n,s=Dn(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[FVt(s),X8t(n,"zoom-big-fast")]},OVt,{resetStyle:!1,injectStyle:t})(e)},NVt=hR.map(e=>`${e}-inverse`);function DVt(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(xt(NVt),xt(hR)).includes(e):hR.includes(e)}function kCe(e,t){const r=DVt(t),n=Oe({[`${e}-${t}`]:t&&r}),o={},a={};return t&&!r&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:a}}const AVt=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=m.useContext(Er),l=s("tooltip",t),[u,c,d]=_Ce(l),f=kCe(l,a),p=f.arrowStyle,h=Object.assign(Object.assign({},i),f.overlayStyle),v=Oe(c,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return u(m.createElement("div",{className:v,style:p},m.createElement("div",{className:`${l}-arrow`}),m.createElement(wCe,Object.assign({},e,{className:c,prefixCls:l,overlayInnerStyle:h}),o)))},MVt=AVt;var BVt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:c,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:v,overlay:b,builtinPlacements:g,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0}=e,w=!!h,[,$]=Cs(),{getPopupContainer:C,getPrefixCls:x,direction:E}=m.useContext(Er),_=xW(),k=m.useRef(null),I=()=>{var ee;(ee=k.current)===null||ee===void 0||ee.forceAlign()};m.useImperativeHandle(t,()=>({forceAlign:I,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),I()}}));const[N,z]=So(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),O=!v&&!b&&v!==0,A=ee=>{var me,Re;z(O?!1:ee),O||((me=e.onOpenChange)===null||me===void 0||me.call(e,ee),(Re=e.onVisibleChange)===null||Re===void 0||Re.call(e,ee))},M=m.useMemo(()=>{var ee,me;let Re=y;return typeof h=="object"&&(Re=(me=(ee=h.pointAtCenter)!==null&&ee!==void 0?ee:h.arrowPointAtCenter)!==null&&me!==void 0?me:y),g||RVt({arrowPointAtCenter:Re,autoAdjustOverflow:S,arrowWidth:w?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[y,h,g,$]),L=m.useMemo(()=>v===0?v:b||v||"",[b,v]),j=m.createElement(Gg,null,typeof L=="function"?L():L),{getPopupContainer:H,placement:B="top",mouseEnterDelay:F=.1,mouseLeaveDelay:V=.1,overlayStyle:D,rootClassName:P}=e,R=BVt(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=x("tooltip",o),U=x(),q=e["data-popover-inject"];let J=N;!("open"in e)&&!("visible"in e)&&O&&(J=!1);const Z=w1(c)&&!Ewe(c)?c:m.createElement("span",null,c),Q=Z.props,oe=!Q.className||typeof Q.className=="string"?Oe(Q.className,a||`${W}-open`):Q.className,[ie,te,ae]=_Ce(W,!q),fe=kCe(W,l),ve=fe.arrowStyle,Se=Object.assign(Object.assign({},u),fe.overlayStyle),se=Oe(s,{[`${W}-rtl`]:E==="rtl"},fe.className,P,te,ae),[pe,ge]=$D("Tooltip",R.zIndex),de=m.createElement(_Vt,Object.assign({},R,{zIndex:pe,showArrow:w,placement:B,mouseEnterDelay:F,mouseLeaveDelay:V,prefixCls:W,overlayClassName:se,overlayStyle:Object.assign(Object.assign({},ve),D),getTooltipContainer:H||i||C,ref:k,builtinPlacements:M,overlay:j,visible:J,onVisibleChange:A,afterVisibleChange:d??f,overlayInnerStyle:Se,arrowContent:m.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:Rwe(U,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),J?mp(Z,{className:oe}):Z);return ie(m.createElement(Twe.Provider,{value:ge},de))});PCe._InternalPanelDoNotUseOrYouWillBeFired=MVt;const TCe=PCe;var jVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const LVt=jVt;var zVt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:LVt}))};const Poe=m.forwardRef(zVt);var VVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const HVt=VVt;var WVt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:HVt}))};const Toe=m.forwardRef(WVt);var ICe={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Bi,function(){var r=1e3,n=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",u="day",c="week",d="month",f="quarter",p="year",h="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var A=["th","st","nd","rd"],M=O%100;return"["+O+(A[(M-20)%10]||A[M]||A[0])+"]"}},S=function(O,A,M){var L=String(O);return!L||L.length>=A?O:""+Array(A+1-L.length).join(M)+O},w={s:S,z:function(O){var A=-O.utcOffset(),M=Math.abs(A),L=Math.floor(M/60),j=M%60;return(A<=0?"+":"-")+S(L,2,"0")+":"+S(j,2,"0")},m:function O(A,M){if(A.date()1)return O(B[0])}else{var F=A.name;C[F]=A,j=F}return!L&&j&&($=j),j||!L&&$},k=function(O,A){if(E(O))return O.clone();var M=typeof A=="object"?A:{};return M.date=O,M.args=arguments,new N(M)},I=w;I.l=_,I.i=E,I.w=function(O,A){return k(O,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=function(){function O(M){this.$L=_(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[x]=!0}var A=O.prototype;return A.parse=function(M){this.$d=function(L){var j=L.date,H=L.utc;if(j===null)return new Date(NaN);if(I.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var B=j.match(b);if(B){var F=B[2]-1||0,V=(B[7]||"0").substring(0,3);return H?new Date(Date.UTC(B[1],F,B[3]||1,B[4]||0,B[5]||0,B[6]||0,V)):new Date(B[1],F,B[3]||1,B[4]||0,B[5]||0,B[6]||0,V)}}return new Date(j)}(M),this.init()},A.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},A.$utils=function(){return I},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(M,L){var j=k(M);return this.startOf(L)<=j&&j<=this.endOf(L)},A.isAfter=function(M,L){return k(M)25){var c=i(this).startOf(n).add(1,n).date(u),d=i(this).endOf(r);if(c.isBefore(d))return 1}var f=i(this).startOf(n).date(u).startOf(r).subtract(1,"millisecond"),p=this.diff(f,r,!0);return p<0?i(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(OCe);var XVt=OCe.exports;const QVt=zt(XVt);var NCe={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Bi,function(){return function(r,n){n.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(NCe);var ZVt=NCe.exports;const JVt=zt(ZVt);var DCe={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Bi,function(){return function(r,n){var o=n.prototype,a=o.format;o.format=function(i){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),c=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return a.bind(this)(c)}}})})(DCe);var eHt=DCe.exports;const tHt=zt(eHt);var ACe={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Bi,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(b){this[v]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var g=b.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],d=function(v){var b=s[v];return b&&(b.indexOf?b:b.s.concat(b.f))},f=function(v,b){var g,y=s.meridiem;if(y){for(var S=1;S<=24;S+=1)if(v.indexOf(y(S,0,b))>-1){g=S>12;break}}else g=v===(b?"pm":"PM");return g},p={A:[i,function(v){this.afternoon=f(v,!1)}],a:[i,function(v){this.afternoon=f(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[i,function(v){var b=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],b)for(var y=1;y<=31;y+=1)b(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,u("month")],MM:[o,u("month")],MMM:[i,function(v){var b=d("months"),g=(d("monthsShort")||b.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var b=d("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function h(v){var b,g;b=v,g=s&&s.formats;for(var y=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,k,I){var N=I&&I.toUpperCase();return k||g[I]||r[I]||g[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,O,A){return O||A.slice(1)})})).match(n),S=y.length,w=0;w-1)return new Date((L==="X"?1e3:1)*M);var H=h(L)(M),B=H.year,F=H.month,V=H.day,D=H.hours,P=H.minutes,R=H.seconds,W=H.milliseconds,U=H.zone,q=new Date,J=V||(B||F?1:q.getDate()),Z=B||q.getFullYear(),Q=0;B&&!F||(Q=F>0?F-1:q.getMonth());var oe=D||0,ie=P||0,te=R||0,ae=W||0;return U?new Date(Date.UTC(Z,Q,J,oe,ie,te,ae+60*U.offset*1e3)):j?new Date(Date.UTC(Z,Q,J,oe,ie,te,ae)):new Date(Z,Q,J,oe,ie,te,ae)}catch{return new Date("")}}($,E,C),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),I&&$!=this.format(E)&&(this.$d=new Date("")),s={}}else if(E instanceof Array)for(var z=E.length,O=1;O<=z;O+=1){x[1]=E[O-1];var A=g.apply(this,x);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}O===z&&(this.$d=new Date(""))}else S.call(this,w)}}})})(ACe);var rHt=ACe.exports;const nHt=zt(rHt);Fi.extend(nHt);Fi.extend(tHt);Fi.extend(KVt);Fi.extend(YVt);Fi.extend(QVt);Fi.extend(JVt);Fi.extend(function(e,t){var r=t.prototype,n=r.format;r.format=function(a){var i=(a||"").replace("Wo","wo");return n.bind(this)(i)}});var oHt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},fv=function(t){var r=oHt[t];return r||t.split("_")[0]},Ioe=function(){iSe(!1,"Not match any format. Please help to fire a issue about this.")},aHt={getNow:function(){return Fi()},getFixedDate:function(t){return Fi(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var r=t.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},addYear:function(t,r){return t.add(r,"year")},addMonth:function(t,r){return t.add(r,"month")},addDate:function(t,r){return t.add(r,"day")},setYear:function(t,r){return t.year(r)},setMonth:function(t,r){return t.month(r)},setDate:function(t,r){return t.date(r)},setHour:function(t,r){return t.hour(r)},setMinute:function(t,r){return t.minute(r)},setSecond:function(t,r){return t.second(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Fi().locale(fv(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){return r.locale(fv(t)).weekday(0)},getWeek:function(t,r){return r.locale(fv(t)).week()},getShortWeekDays:function(t){return Fi().locale(fv(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Fi().locale(fv(t)).localeData().monthsShort()},format:function(t,r,n){return r.locale(fv(t)).format(n)},parse:function(t,r,n){for(var o=fv(t),a=0;a1&&(i=t.addDate(i,-7)),i}function VC(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return r.addYear(e,n*10);case"quarter":case"month":return r.addYear(e,n);default:return r.addMonth(e,n)}}function Li(e,t){var r=t.generateConfig,n=t.locale,o=t.format;return typeof o=="function"?o(e):r.locale.format(n.locale,e,o)}function BCe(e,t){var r=t.generateConfig,n=t.locale,o=t.formatList;return!e||typeof o[0]=="function"?null:r.locale.parse(n.locale,e,o)}function $R(e){var t=e.cellDate,r=e.mode,n=e.disabledDate,o=e.generateConfig;if(!n)return!1;var a=function(h,v,b){for(var g=v;g<=b;){var y=void 0;switch(h){case"date":{if(y=o.setDate(t,g),!n(y))return!1;break}case"month":{if(y=o.setMonth(t,g),!$R({cellDate:y,mode:"month",generateConfig:o,disabledDate:n}))return!1;break}case"year":{if(y=o.setYear(t,g),!$R({cellDate:y,mode:"year",generateConfig:o,disabledDate:n}))return!1;break}}g+=1}return!0};switch(r){case"date":case"week":return n(t);case"month":{var i=1,s=o.getDate(o.getEndDate(t));return a("date",i,s)}case"quarter":{var l=Math.floor(o.getMonth(t)/3)*3,u=l+2;return a("month",l,u)}case"year":return a("month",0,11);case"decade":{var c=o.getYear(t),d=Math.floor(c/vc)*vc,f=d+vc-1;return a("year",d,f)}}}function ER(e,t){var r=t.formatList,n=t.generateConfig,o=t.locale,a=$0(function(){if(!e)return[[""],""];for(var u="",c=[],d=0;d1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(u.current),g){l(b);return}u.current=requestAnimationFrame(function(){l(b)})}var d=ER(s,{formatList:r,generateConfig:n,locale:o}),f=Ce(d,2),p=f[1];function h(b){c(b)}function v(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c(null,b)}return m.useEffect(function(){v(!0)},[e]),m.useEffect(function(){return function(){return cancelAnimationFrame(u.current)}},[]),[p,h,v]}var xk=new Map;function uHt(e,t){var r;function n(){_D(e)?t():r=rn(function(){n()})}return n(),function(){rn.cancel(r)}}function az(e,t,r){if(xk.get(e)&&cancelAnimationFrame(xk.get(e)),r<=0){xk.set(e,requestAnimationFrame(function(){e.scrollTop=t}));return}var n=t-e.scrollTop,o=n/r*10;xk.set(e,requestAnimationFrame(function(){e.scrollTop+=o,e.scrollTop!==t&&az(e,t,r-10)}))}function SS(e,t){var r=t.onLeftRight,n=t.onCtrlLeftRight,o=t.onUpDown,a=t.onPageUpDown,i=t.onEnter,s=e.which,l=e.ctrlKey,u=e.metaKey;switch(s){case Xe.LEFT:if(l||u){if(n)return n(-1),!0}else if(r)return r(-1),!0;break;case Xe.RIGHT:if(l||u){if(n)return n(1),!0}else if(r)return r(1),!0;break;case Xe.UP:if(o)return o(-1),!0;break;case Xe.DOWN:if(o)return o(1),!0;break;case Xe.PAGE_UP:if(a)return a(-1),!0;break;case Xe.PAGE_DOWN:if(a)return a(1),!0;break;case Xe.ENTER:if(i)return i(),!0;break}return!1}function jCe(e,t,r,n){var o=e;if(!o)switch(t){case"time":o=n?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=r?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function LCe(e,t,r){var n=e==="time"?8:10,o=typeof t=="function"?t(r.getNow()).length:t.length;return Math.max(n,o)+2}var ww=null,$k=new Set;function cHt(e){return!ww&&typeof window<"u"&&window.addEventListener&&(ww=function(r){xt($k).forEach(function(n){n(r)})},window.addEventListener("mousedown",ww)),$k.add(e),function(){$k.delete(e),$k.size===0&&(window.removeEventListener("mousedown",ww),ww=null)}}function dHt(e){var t=e.target;if(e.composed&&t.shadowRoot){var r;return((r=e.composedPath)===null||r===void 0?void 0:r.call(e)[0])||t}return t}var fHt=function(t){return t==="month"||t==="date"?"year":t},pHt=function(t){return t==="date"?"month":t},mHt=function(t){return t==="month"||t==="date"?"quarter":t},hHt=function(t){return t==="date"?"week":t},vHt={year:fHt,month:pHt,quarter:mHt,week:hHt,time:null,date:null};function zCe(e,t){return e.some(function(r){return r&&r.contains(t)})}function iz(e){var t=e.open,r=e.value,n=e.isClickOutside,o=e.triggerOpen,a=e.forwardKeyDown,i=e.onKeyDown,s=e.blurToCancel,l=e.changeOnBlur,u=e.onSubmit,c=e.onCancel,d=e.onFocus,f=e.onBlur,p=m.useState(!1),h=Ce(p,2),v=h[0],b=h[1],g=m.useState(!1),y=Ce(g,2),S=y[0],w=y[1],$=m.useRef(!1),C=m.useRef(!1),x=m.useRef(!1),E={onMouseDown:function(){b(!0),o(!0)},onKeyDown:function(k){var I=function(){x.current=!0};if(i(k,I),!x.current){switch(k.which){case Xe.ENTER:{t?u()!==!1&&b(!0):o(!0),k.preventDefault();return}case Xe.TAB:{v&&t&&!k.shiftKey?(b(!1),k.preventDefault()):!v&&t&&!a(k)&&k.shiftKey&&(b(!0),k.preventDefault());return}case Xe.ESC:{b(!0),c();return}}!t&&![Xe.SHIFT].includes(k.which)?o(!0):v||a(k)}},onFocus:function(k){b(!0),w(!0),d&&d(k)},onBlur:function(k){if($.current||!n(document.activeElement)){$.current=!1;return}s?setTimeout(function(){for(var I=document,N=I.activeElement;N&&N.shadowRoot;)N=N.shadowRoot.activeElement;n(N)&&c()},0):t&&(o(!1),C.current&&u()),w(!1),f==null||f(k)}};return m.useEffect(function(){C.current=!1},[t]),m.useEffect(function(){C.current=!0},[r]),m.useEffect(function(){return cHt(function(_){var k=dHt(_),I=n(k);t&&(I?!l&&!s&&(!S||I)&&o(!1):($.current=!0,rn(function(){$.current=!1})))})}),[E,{focused:S,typing:v}]}function VCe(e,t){return m.useMemo(function(){return e||(t?(fa(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(r){var n=Ce(r,2),o=n[0],a=n[1];return{label:o,value:a}})):[])},[e,t])}function sz(e){var t=e.valueTexts,r=e.onTextChange,n=m.useState(""),o=Ce(n,2),a=o[0],i=o[1],s=m.useRef([]);s.current=t;function l(c){i(c),r(c)}function u(){i(s.current[0])}return Fn(function(){t.every(function(c){return c!==a})&&u()},[t.join("||")]),[a,l,u]}var Ys=m.createContext({});function HCe(e){var t=e.cellRender,r=e.monthCellRender,n=e.dateRender,o=Y.useMemo(function(){if(t)return t;if(!(!r&&!n))return function(a,i){var s=a;return n&&i.type==="date"?n(s,i.today):r&&i.type==="month"?r(s,i.locale):i.originNode}},[t,r,n]);return o}function WCe(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length=1?r|0:1,i=e;i<=t;i+=a)o.push({label:WCe(i,2),value:i,disabled:(n||[]).includes(i)});return o}function EHt(e){var t=e.generateConfig,r=e.prefixCls,n=e.operationRef,o=e.activeColumnIndex,a=e.value,i=e.showHour,s=e.showMinute,l=e.showSecond,u=e.use12Hours,c=e.hourStep,d=c===void 0?1:c,f=e.minuteStep,p=f===void 0?1:f,h=e.secondStep,v=h===void 0?1:h,b=e.disabledHours,g=e.disabledMinutes,y=e.disabledSeconds,S=e.disabledTime,w=e.hideDisabledOptions,$=e.onSelect,C=e.cellRender,x=e.locale,E=[],_="".concat(r,"-content"),k="".concat(r,"-time-panel"),I,N=a?t.getHour(a):-1,z=N,O=a?t.getMinute(a):-1,A=a?t.getSecond(a):-1,M=t.getNow(),L=m.useMemo(function(){if(S){var te=S(M);return[te.disabledHours,te.disabledMinutes,te.disabledSeconds]}return[b,g,y]},[b,g,y,S,M]),j=Ce(L,3),H=j[0],B=j[1],F=j[2],V=n4(0,23,d,H&&H()),D=$0(function(){return V},V,$Ht);u&&(I=z>=12,z%=12);var P=m.useMemo(function(){if(!u)return[!1,!1];var te=[!0,!0];return D.forEach(function(ae){var fe=ae.disabled,ve=ae.value;fe||(ve>=12?te[1]=!1:te[0]=!1)}),te},[u,D]),R=Ce(P,2),W=R[0],U=R[1],q=m.useMemo(function(){return u?D.filter(I?function(te){return te.value>=12}:function(te){return te.value<12}).map(function(te){var ae=te.value%12,fe=ae===0?"12":WCe(ae,2);return be(be({},te),{},{label:fe,value:ae})}):D},[u,I,D]),J=n4(0,59,p,B&&B(N)),Z=n4(0,59,v,F&&F(N,O)),Q=xHt({value:a,generateConfig:t,disabledMinutes:B,disabledSeconds:F,minutes:J,seconds:Z,use12Hours:u});n.current={onUpDown:function(ae){var fe=E[o];if(fe)for(var ve=fe.units.findIndex(function(ge){return ge.value===fe.value}),Se=fe.units.length,se=1;se=t)return a}return t};function PHt(e){var t=e.prefixCls,r=e.operationRef,n=e.generateConfig,o=e.value,a=e.defaultValue,i=e.disabledTime,s=e.showTime,l=e.onSelect,u=e.cellRender,c="".concat(t,"-datetime-panel"),d=m.useState(null),f=Ce(d,2),p=f[0],h=f[1],v=m.useRef({}),b=m.useRef({}),g=or(s)==="object"?be({},s):{};function y(C){var x=Foe.indexOf(p)+C,E=Foe[x]||null;return E}var S=function(x){b.current.onBlur&&b.current.onBlur(x),h(null)};r.current={onKeyDown:function(x){if(x.which===Xe.TAB){var E=y(x.shiftKey?-1:1);return h(E),E&&x.preventDefault(),!0}if(p){var _=p==="date"?v:b;return _.current&&_.current.onKeyDown&&_.current.onKeyDown(x),!0}return[Xe.LEFT,Xe.RIGHT,Xe.UP,Xe.DOWN].includes(x.which)?(h("date"),!0):!1},onBlur:S,onClose:S};var w=function(x,E){var _=x;if(E==="date"){var k,I,N,z=(i==null?void 0:i(o||g.defaultValue))||{},O=o4(n.getHour(_),((k=z.disabledHours)===null||k===void 0?void 0:k.call(z))||[-1],23),A=o4(n.getMinute(_),((I=z.disabledMinutes)===null||I===void 0?void 0:I.call(z,O))||[-1],59),M=o4(n.getSecond(_),((N=z.disabledSeconds)===null||N===void 0?void 0:N.call(z,O,A))||[-1],59);_=n.setHour(_,O),_=n.setMinute(_,A),_=n.setSecond(_,M)}else E==="time"&&!o&&a&&(_=n.setYear(_,n.getYear(a)),_=n.setMonth(_,n.getMonth(a)),_=n.setDate(_,n.getDate(a)));l&&l(_,"mouse")},$=i?i(o||null):{};return m.createElement("div",{className:Oe(c,le({},"".concat(c,"-active"),p))},m.createElement(JW,G({},e,{cellRender:u,operationRef:v,active:p==="date",onSelect:function(x){w(KCe(n,x,!o&&or(s)==="object"?s.defaultValue:null),"date")}})),m.createElement(GCe,G({},e,{cellRender:u?function(C,x){return u(C,be(be({},x),{},{type:"time"}))}:void 0,format:void 0},g,$,{disabledTime:null,defaultValue:void 0,operationRef:b,active:p==="time",onSelect:function(x){w(x,"time")}})))}function THt(e){var t=e.prefixCls,r=e.generateConfig,n=e.viewDate,o=e.onPrevDecades,a=e.onNextDecades,i=m.useContext(Ys),s=i.hideHeader;if(s)return null;var l="".concat(t,"-header"),u=r.getYear(n),c=Math.floor(u/Ef)*Ef,d=c+Ef-1;return m.createElement(wS,G({},e,{prefixCls:l,onSuperPrev:o,onSuperNext:a}),c,"-",d)}var lz=3,Ooe=4;function IHt(e){var t=vc-1,r=e.prefixCls,n=e.viewDate,o=e.generateConfig,a=e.cellRender,i=e.locale,s="".concat(r,"-cell"),l=o.getYear(n),u=Math.floor(l/vc)*vc,c=Math.floor(l/Ef)*Ef,d=c+Ef-1,f=o.setYear(n,c-Math.ceil((lz*Ooe*vc-Ef)/2)),p=function(b){var g,y=o.getYear(b),S=y+t;return g={},le(g,"".concat(s,"-in-view"),c<=y&&S<=d),le(g,"".concat(s,"-selected"),y===u),g},h=a?function(v,b){return a(v,{originNode:b,today:o.getNow(),type:"decade",locale:i})}:void 0;return m.createElement(f_,G({},e,{rowNum:Ooe,colNum:lz,baseDate:f,getCellNode:h,getCellText:function(b){var g=o.getYear(b);return"".concat(g,"-").concat(g+t)},getCellClassName:p,getCellDate:function(b,g){return o.addYear(b,g*vc)}}))}function RHt(e){var t=e.prefixCls,r=e.onViewDateChange,n=e.generateConfig,o=e.viewDate,a=e.operationRef,i=e.onSelect,s=e.onPanelChange,l="".concat(t,"-decade-panel");a.current={onKeyDown:function(f){return SS(f,{onLeftRight:function(h){i(n.addYear(o,h*vc),"key")},onCtrlLeftRight:function(h){i(n.addYear(o,h*Ef),"key")},onUpDown:function(h){i(n.addYear(o,h*vc*lz),"key")},onEnter:function(){s("year",o)}})}};var u=function(f){var p=n.addYear(o,f*Ef);r(p),s(null,p)},c=function(f){i(f,"mouse"),s("year",f)};return m.createElement("div",{className:l},m.createElement(THt,G({},e,{prefixCls:t,onPrevDecades:function(){u(-1)},onNextDecades:function(){u(1)}})),m.createElement(IHt,G({},e,{prefixCls:t,onSelect:c})))}function FHt(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,o=e.viewDate,a=e.onNextYear,i=e.onPrevYear,s=e.onYearClick,l=m.useContext(Ys),u=l.hideHeader;if(u)return null;var c="".concat(t,"-header");return m.createElement(wS,G({},e,{prefixCls:c,onSuperPrev:i,onSuperNext:a}),m.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},Li(o,{locale:n,format:n.yearFormat,generateConfig:r})))}var eq=3,OHt=4;function NHt(e){var t=e.prefixCls,r=e.locale,n=e.value,o=e.viewDate,a=e.generateConfig,i=e.cellRender,s=m.useContext(R0),l=s.rangedValue,u=s.hoverRangedValue,c="".concat(t,"-cell"),d=ID({cellPrefixCls:c,value:n,generateConfig:a,rangedValue:l,hoverRangedValue:u,isSameCell:function(b,g){return ZW(a,b,g)},isInView:function(){return!0},offsetCell:function(b,g){return a.addMonth(b,g)}}),f=r.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(r.locale):[]),p=a.setMonth(o,0),h=i?function(v,b){return i(v,{originNode:b,locale:r,today:a.getNow(),type:"month"})}:void 0;return m.createElement(f_,G({},e,{rowNum:OHt,colNum:eq,baseDate:p,getCellNode:h,getCellText:function(b){return r.monthFormat?Li(b,{locale:r,format:r.monthFormat,generateConfig:a}):f[a.getMonth(b)]},getCellClassName:d,getCellDate:a.addMonth,titleCell:function(b){return Li(b,{locale:r,format:"YYYY-MM",generateConfig:a})}}))}function DHt(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,o=e.generateConfig,a=e.value,i=e.viewDate,s=e.onPanelChange,l=e.onSelect,u="".concat(t,"-month-panel");r.current={onKeyDown:function(f){return SS(f,{onLeftRight:function(h){l(o.addMonth(a||i,h),"key")},onCtrlLeftRight:function(h){l(o.addYear(a||i,h),"key")},onUpDown:function(h){l(o.addMonth(a||i,h*eq),"key")},onEnter:function(){s("date",a||i)}})}};var c=function(f){var p=o.addYear(i,f);n(p),s(null,p)};return m.createElement("div",{className:u},m.createElement(FHt,G({},e,{prefixCls:t,onPrevYear:function(){c(-1)},onNextYear:function(){c(1)},onYearClick:function(){s("year",i)}})),m.createElement(NHt,G({},e,{prefixCls:t,onSelect:function(f){l(f,"mouse"),s("date",f)}})))}function AHt(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,o=e.viewDate,a=e.onNextYear,i=e.onPrevYear,s=e.onYearClick,l=m.useContext(Ys),u=l.hideHeader;if(u)return null;var c="".concat(t,"-header");return m.createElement(wS,G({},e,{prefixCls:c,onSuperPrev:i,onSuperNext:a}),m.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},Li(o,{locale:n,format:n.yearFormat,generateConfig:r})))}var MHt=4,BHt=1;function jHt(e){var t=e.prefixCls,r=e.locale,n=e.value,o=e.viewDate,a=e.generateConfig,i=e.cellRender,s=m.useContext(R0),l=s.rangedValue,u=s.hoverRangedValue,c="".concat(t,"-cell"),d=ID({cellPrefixCls:c,value:n,generateConfig:a,rangedValue:l,hoverRangedValue:u,isSameCell:function(v,b){return MCe(a,v,b)},isInView:function(){return!0},offsetCell:function(v,b){return a.addMonth(v,b*3)}}),f=a.setDate(a.setMonth(o,0),1),p=i?function(h,v){return i(h,{originNode:v,locale:r,today:a.getNow(),type:"quarter"})}:void 0;return m.createElement(f_,G({},e,{rowNum:BHt,colNum:MHt,baseDate:f,getCellNode:p,getCellText:function(v){return Li(v,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:a})},getCellClassName:d,getCellDate:function(v,b){return a.addMonth(v,b*3)},titleCell:function(v){return Li(v,{locale:r,format:"YYYY-[Q]Q",generateConfig:a})}}))}function LHt(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,o=e.generateConfig,a=e.value,i=e.viewDate,s=e.onPanelChange,l=e.onSelect,u="".concat(t,"-quarter-panel");r.current={onKeyDown:function(f){return SS(f,{onLeftRight:function(h){l(o.addMonth(a||i,h*3),"key")},onCtrlLeftRight:function(h){l(o.addYear(a||i,h),"key")},onUpDown:function(h){l(o.addYear(a||i,h),"key")}})}};var c=function(f){var p=o.addYear(i,f);n(p),s(null,p)};return m.createElement("div",{className:u},m.createElement(AHt,G({},e,{prefixCls:t,onPrevYear:function(){c(-1)},onNextYear:function(){c(1)},onYearClick:function(){s("year",i)}})),m.createElement(jHt,G({},e,{prefixCls:t,onSelect:function(f){l(f,"mouse")}})))}function zHt(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,o=e.value,a=e.disabledDate,i=e.onSelect,s=m.useContext(R0),l=s.rangedValue,u=s.hoverRangedValue,c=m.useContext(Ys),d=c.onDateMouseEnter,f=c.onDateMouseLeave,p=(u==null?void 0:u[0])||(l==null?void 0:l[0]),h=(u==null?void 0:u[1])||(l==null?void 0:l[1]),v="".concat(t,"-cell"),b=function(w){var $=$R({cellDate:w,mode:"week",disabledDate:a,generateConfig:r});return m.createElement("td",{key:"week",className:Oe(v,"".concat(v,"-week")),onClick:function(){$||i(w,"mouse")},onMouseEnter:function(){!$&&d&&d(w)},onMouseLeave:function(){!$&&f&&f(w)}},m.createElement("div",{className:"".concat(v,"-inner")},r.locale.getWeek(n.locale,w)))},g="".concat(t,"-week-panel-row"),y=function(w){var $,C=lT(r,n.locale,p,w),x=lT(r,n.locale,h,w);return Oe(g,($={},le($,"".concat(g,"-selected"),!l&&lT(r,n.locale,o,w)),le($,"".concat(g,"-range-start"),C),le($,"".concat(g,"-range-end"),x),le($,"".concat(g,"-range-hover"),!C&&!x&&Qw(r,p,h,w)),$))};return m.createElement(JW,G({},e,{panelName:"week",prefixColumn:b,rowClassName:y,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Wm=10;function VHt(e){var t=e.prefixCls,r=e.generateConfig,n=e.viewDate,o=e.onPrevDecade,a=e.onNextDecade,i=e.onDecadeClick,s=m.useContext(Ys),l=s.hideHeader;if(l)return null;var u="".concat(t,"-header"),c=r.getYear(n),d=Math.floor(c/Wm)*Wm,f=d+Wm-1;return m.createElement(wS,G({},e,{prefixCls:u,onSuperPrev:o,onSuperNext:a}),m.createElement("button",{type:"button",onClick:i,className:"".concat(t,"-decade-btn")},d,"-",f))}var uz=3,Noe=4;function HHt(e){var t=e.prefixCls,r=e.value,n=e.viewDate,o=e.locale,a=e.generateConfig,i=e.cellRender,s=m.useContext(R0),l=s.rangedValue,u=s.hoverRangedValue,c="".concat(t,"-cell"),d=a.getYear(n),f=Math.floor(d/Wm)*Wm,p=f+Wm-1,h=a.setYear(n,f-Math.ceil((uz*Noe-Wm)/2)),v=a.getNow(),b=function(w){var $=a.getYear(w);return f<=$&&$<=p},g=ID({cellPrefixCls:c,value:r,generateConfig:a,rangedValue:l,hoverRangedValue:u,isSameCell:function(w,$){return d_(a,w,$)},isInView:b,offsetCell:function(w,$){return a.addYear(w,$)}}),y=i?function(S,w){return i(S,{originNode:w,today:v,type:"year",locale:o})}:void 0;return m.createElement(f_,G({},e,{rowNum:Noe,colNum:uz,baseDate:h,getCellNode:y,getCellText:a.getYear,getCellClassName:g,getCellDate:a.addYear,titleCell:function(w){return Li(w,{locale:o,format:"YYYY",generateConfig:a})}}))}function WHt(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,o=e.generateConfig,a=e.value,i=e.viewDate,s=e.sourceMode,l=e.onSelect,u=e.onPanelChange,c="".concat(t,"-year-panel");r.current={onKeyDown:function(p){return SS(p,{onLeftRight:function(v){l(o.addYear(a||i,v),"key")},onCtrlLeftRight:function(v){l(o.addYear(a||i,v*Wm),"key")},onUpDown:function(v){l(o.addYear(a||i,v*uz),"key")},onEnter:function(){u(s==="date"?"date":"month",a||i)}})}};var d=function(p){var h=o.addYear(i,p*10);n(h),u(null,h)};return m.createElement("div",{className:c},m.createElement(VHt,G({},e,{prefixCls:t,onPrevDecade:function(){d(-1)},onNextDecade:function(){d(1)},onDecadeClick:function(){u("decade",i)}})),m.createElement(HHt,G({},e,{prefixCls:t,onSelect:function(p){u(s==="date"?"date":"month",p),l(p,"mouse")}})))}function YCe(e,t,r){return r?m.createElement("div",{className:"".concat(e,"-footer-extra")},r(t)):null}function XCe(e){var t=e.prefixCls,r=e.components,n=r===void 0?{}:r,o=e.needConfirmButton,a=e.onNow,i=e.onOk,s=e.okDisabled,l=e.showNow,u=e.locale,c,d;if(o){var f=n.button||"button";a&&l!==!1&&(c=m.createElement("li",{className:"".concat(t,"-now")},m.createElement("a",{className:"".concat(t,"-now-btn"),onClick:a},u.now))),d=o&&m.createElement("li",{className:"".concat(t,"-ok")},m.createElement(f,{disabled:s,onClick:i},u.ok))}return!c&&!d?null:m.createElement("ul",{className:"".concat(t,"-ranges")},c,d)}var qHt=["date","month"];function QCe(e){var t,r=e,n=r.prefixCls,o=n===void 0?"rc-picker":n,a=r.className,i=r.style,s=r.locale,l=r.generateConfig,u=r.value,c=r.defaultValue,d=r.pickerValue,f=r.defaultPickerValue,p=r.disabledDate,h=r.mode,v=r.picker,b=v===void 0?"date":v,g=r.tabIndex,y=g===void 0?0:g,S=r.showNow,w=r.showTime,$=r.showToday,C=r.renderExtraFooter,x=r.hideHeader,E=r.onSelect,_=r.onChange,k=r.onPanelChange,I=r.onMouseDown,N=r.onPickerValueChange,z=r.onOk,O=r.components,A=r.direction,M=r.hourStep,L=M===void 0?1:M,j=r.minuteStep,H=j===void 0?1:j,B=r.secondStep,F=B===void 0?1:B,V=r.dateRender,D=r.monthCellRender,P=r.cellRender,R=b==="date"&&!!w||b==="time",W=24%L===0,U=60%H===0,q=60%F===0,J=m.useContext(Ys),Z=J.operationRef,Q=J.onSelect,oe=J.hideRanges,ie=J.defaultOpenValue,te=m.useContext(R0),ae=te.inRange,fe=te.panelPosition,ve=te.rangedValue,Se=te.hoverRangedValue,se=m.useRef({}),pe=m.useRef(!0),ge=So(null,{value:u,defaultValue:c,postState:function(X){return!X&&ie&&b==="time"?ie:X}}),de=Ce(ge,2),ee=de[0],me=de[1],Re=So(null,{value:d,defaultValue:f||ee,postState:function(X){var ne=l.getNow();if(!X)return ne;if(!ee&&w){var we=or(w)==="object"?w.defaultValue:c;return KCe(l,Array.isArray(X)?X[0]:X,we||ne)}return Array.isArray(X)?X[0]:X}}),je=Ce(Re,2),ze=je[0],Le=je[1],$e=function(X){Le(X),N&&N(X)},Je=function(X){var ne=vHt[b];return ne?ne(X):X},Pe=So(function(){return b==="time"?"time":Je("date")},{value:h}),st=Ce(Pe,2),_e=st[0],De=st[1];m.useEffect(function(){De(b)},[b]);var et=m.useState(function(){return _e}),Ie=Ce(et,2),Fe=Ie[0],vt=Ie[1],bt=function(X,ne){var we=Je(X||_e);vt(_e),De(we),k&&(_e!==we||C1(l,ze,ze))&&k(ne,we)},wt=function(X,ne){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(_e===b||we)&&(me(X),E&&E(X),Q&&Q(X,ne),_&&!C1(l,X,ee)&&!(p!=null&&p(X))&&_(X))},mt=function(X){if(qHt.includes(_e)){var ne,we,ue=_e==="date";switch(X===Xe.PAGE_UP||X===Xe.PAGE_DOWN?we=ue?l.addMonth:l.addYear:we=ue?l.addDate:l.addMonth,X){case Xe.LEFT:case Xe.PAGE_UP:ne=we(ze,-1);break;case Xe.RIGHT:case Xe.PAGE_DOWN:ne=we(ze,1);break;case Xe.UP:case Xe.DOWN:ne=we(ze,Number("".concat(X===Xe.UP?"-":"").concat(ue?zC:eq)));break}if(ne)return!(p!=null&&p(ne))}return!0},xe=function(X){if(se.current&&se.current.onKeyDown){var ne=!0,we=X.which;if([Xe.LEFT,Xe.RIGHT,Xe.UP,Xe.DOWN,Xe.PAGE_UP,Xe.PAGE_DOWN,Xe.ENTER].includes(we)&&(X.preventDefault(),we!==Xe.ENTER&&y===0&&(ne=mt(we))),ne)return se.current.onKeyDown(X)}return fa(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Ae=function(X){se.current&&se.current.onBlur&&se.current.onBlur(X)};Z&&fe!=="right"&&(Z.current={onKeyDown:xe,onClose:function(){se.current&&se.current.onClose&&se.current.onClose()}}),m.useEffect(function(){u&&!pe.current&&Le(u)},[u]),m.useEffect(function(){pe.current=!1},[]);var He,Ge=HCe({cellRender:P,monthCellRender:D,dateRender:V}),ot=be(be({},e),{},{cellRender:Ge,operationRef:se,prefixCls:o,viewDate:ze,value:ee,onViewDateChange:$e,sourceMode:Fe,onPanelChange:bt,disabledDate:p});switch(delete ot.onChange,delete ot.onSelect,_e){case"decade":He=m.createElement(RHt,G({},ot,{onSelect:function(X,ne){$e(X),wt(X,ne)}}));break;case"year":He=m.createElement(WHt,G({},ot,{onSelect:function(X,ne){$e(X),wt(X,ne)}}));break;case"month":He=m.createElement(DHt,G({},ot,{onSelect:function(X,ne){$e(X),wt(X,ne)}}));break;case"quarter":He=m.createElement(LHt,G({},ot,{onSelect:function(X,ne){$e(X),wt(X,ne)}}));break;case"week":He=m.createElement(zHt,G({},ot,{onSelect:function(X,ne){$e(X),wt(X,ne)}}));break;case"time":delete ot.showTime,He=m.createElement(GCe,G({},ot,or(w)==="object"?w:null,{onSelect:function(X,ne){$e(X),wt(X,ne)}}));break;default:w?He=m.createElement(PHt,G({},ot,{onSelect:function(X,ne){$e(X),wt(X,ne)}})):He=m.createElement(JW,G({},ot,{onSelect:function(X,ne){$e(X),wt(X,ne)}}))}var at,Ve,Qe=function(){var X=l.getNow(),ne=bHt(l.getHour(X),l.getMinute(X),l.getSecond(X),W?L:1,U?H:1,q?F:1),we=UCe(l,X,ne[0],ne[1],ne[2]);wt(we,"submit")};oe||(at=YCe(o,_e,C),w&&_e!=="date"?Ve=null:Ve=XCe({prefixCls:o,components:O,needConfirmButton:R,okDisabled:!ee||p&&p(ee),locale:s,showNow:S,onNow:R&&Qe,onOk:function(){ee&&(wt(ee,"submit",!0),z&&z(ee))}}));var he;if($&&_e==="date"&&b==="date"&&!w){var ye=l.getNow(),Ee="".concat(o,"-today-btn"),rt=p&&p(ye);he=m.createElement("a",{className:Oe(Ee,rt&&"".concat(Ee,"-disabled")),"aria-disabled":rt,onClick:function(){rt||wt(ye,"mouse",!0)}},s.today)}return m.createElement(Ys.Provider,{value:be(be({},J),{},{mode:_e,hideHeader:"hideHeader"in e?x:J.hideHeader,hidePrevBtn:ae&&fe==="right",hideNextBtn:ae&&fe==="left"})},m.createElement("div",{tabIndex:y,className:Oe("".concat(o,"-panel"),a,(t={},le(t,"".concat(o,"-panel-has-range"),ve&&ve[0]&&ve[1]),le(t,"".concat(o,"-panel-has-range-hover"),Se&&Se[0]&&Se[1]),le(t,"".concat(o,"-panel-rtl"),A==="rtl"),t)),style:i,onKeyDown:xe,onBlur:Ae,onMouseDown:I},He,at||Ve||he?m.createElement("div",{className:"".concat(o,"-footer")},at,Ve,he):null))}var UHt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function ZCe(e){var t,r=e.prefixCls,n=e.popupElement,o=e.popupStyle,a=e.visible,i=e.dropdownClassName,s=e.dropdownAlign,l=e.transitionName,u=e.getPopupContainer,c=e.children,d=e.range,f=e.popupPlacement,p=e.direction,h="".concat(r,"-dropdown"),v=function(){return f!==void 0?f:p==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(UW,{showAction:[],hideAction:[],popupPlacement:v(),builtinPlacements:UHt,prefixCls:h,popupTransitionName:l,popup:n,popupAlign:s,popupVisible:a,popupClassName:Oe(i,(t={},le(t,"".concat(h,"-range"),d),le(t,"".concat(h,"-rtl"),p==="rtl"),t)),popupStyle:o,getPopupContainer:u},c)}function JCe(e){var t=e.prefixCls,r=e.presets,n=e.onClick,o=e.onHover;return r.length?m.createElement("div",{className:"".concat(t,"-presets")},m.createElement("ul",null,r.map(function(a,i){var s=a.label,l=a.value;return m.createElement("li",{key:i,onClick:function(){return n==null?void 0:n(Roe(l))},onMouseEnter:function(){return o==null?void 0:o(Roe(l))},onMouseLeave:function(){return o==null?void 0:o(null)}},s)}))):null}function exe(e,t,r){var n=or(t)==="object"?t.clearIcon:r;return n||Y.createElement("span",{className:"".concat(e,"-clear-btn")})}function KHt(e){var t,r=e,n=r.prefixCls,o=n===void 0?"rc-picker":n,a=r.id,i=r.name,s=r.tabIndex,l=r.style,u=r.className,c=r.dropdownClassName,d=r.dropdownAlign,f=r.popupStyle,p=r.transitionName,h=r.generateConfig,v=r.locale,b=r.inputReadOnly,g=r.allowClear,y=r.autoFocus,S=r.showTime,w=r.picker,$=w===void 0?"date":w,C=r.format,x=r.use12Hours,E=r.value,_=r.defaultValue,k=r.presets,I=r.open,N=r.defaultOpen,z=r.defaultOpenValue,O=r.suffixIcon,A=r.clearIcon,M=r.disabled,L=r.disabledDate,j=r.placeholder,H=r.getPopupContainer,B=r.pickerRef,F=r.panelRender,V=r.onChange,D=r.onOpenChange,P=r.onFocus,R=r.onBlur,W=r.onMouseDown,U=r.onMouseUp,q=r.onMouseEnter,J=r.onMouseLeave,Z=r.onContextMenu,Q=r.onClick,oe=r.onKeyDown,ie=r.onSelect,te=r.direction,ae=r.autoComplete,fe=ae===void 0?"off":ae,ve=r.inputRender,Se=r.changeOnBlur,se=m.useRef(null),pe=$==="date"&&!!S||$==="time",ge=VCe(k),de=qCe(jCe(C,$,S,x)),ee=m.useRef(null),me=m.useRef(null),Re=m.useRef(null),je=So(null,{value:E,defaultValue:_}),ze=Ce(je,2),Le=ze[0],$e=ze[1],Je=m.useState(Le),Pe=Ce(Je,2),st=Pe[0],_e=Pe[1],De=m.useRef(null),et=So(!1,{value:I,defaultValue:N,postState:function(ct){return M?!1:ct},onChange:function(ct){D&&D(ct),!ct&&De.current&&De.current.onClose&&De.current.onClose()}}),Ie=Ce(et,2),Fe=Ie[0],vt=Ie[1],bt=ER(st,{formatList:de,generateConfig:h,locale:v}),wt=Ce(bt,2),mt=wt[0],xe=wt[1],Ae=sz({valueTexts:mt,onTextChange:function(ct){var jt=BCe(ct,{locale:v,formatList:de,generateConfig:h});jt&&(!L||!L(jt))&&_e(jt)}}),He=Ce(Ae,3),Ge=He[0],ot=He[1],at=He[2],Ve=function(ct){_e(ct),$e(ct),V&&!C1(h,Le,ct)&&V(ct,ct?Li(ct,{generateConfig:h,locale:v,format:de[0]}):"")},Qe=function(ct){M&&ct||vt(ct)},he=function(ct){return Fe&&De.current&&De.current.onKeyDown?De.current.onKeyDown(ct):(fa(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ye=function(){for(var ct=arguments.length,jt=new Array(ct),br=0;brf(u);case"month":return d(v)>d(u);case"week":return c(v)>c(u);default:return!_f(s,v,u)&&s.isAfter(v,u)}return!1},[a,i[1],u,t]),h=m.useCallback(function(v){if(i[1]||a&&a(v))return!0;if(i[0]&&l)return!_f(s,v,u)&&s.isAfter(l,v);if(!t&&l)switch(r){case"quarter":return f(v)0&&arguments[0]!==void 0?arguments[0]:!1,Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cr=null;Me&&_s&&_s[0]&&_s[1]&&v.isAfter(_s[1],_s[0])&&(Cr=_s);var _r=x;if(x&&or(x)==="object"&&x.defaultValue){var Bn=x.defaultValue;_r=be(be({},x),{},{defaultValue:Or(Bn,qe)||void 0})}return m.createElement(R0.Provider,{value:{inRange:!0,panelPosition:Vr,rangedValue:Js||X,hoverRangedValue:Cr}},m.createElement(QCe,G({},e,Pt,{cellRender:ZTe,showTime:_r,mode:Ue[qe],generateConfig:v,style:void 0,direction:ze,disabledDate:qe===0?ar:Ir,disabledTime:function(Vu){return L?L(Vu,qe===0?"start":"end"):!1},className:Oe(le({},"".concat(i,"-panel-focused"),qe===0?!Ji:!cY)),value:Or(X,qe),locale:b,tabIndex:-1,onPanelChange:function(Vu,sf){qe===0&&Cn(!0),qe===1&&qp(!0),ut(Zl(Ue,sf,qe),Zl(X,Vu,qe));var Gp=Vu;Vr==="right"&&Ue[qe]===sf&&(Gp=VC(Gp,sf,v,-1)),Ee(Gp,qe)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:qe===0?Or(X,1):Or(X,0)})))}var Kp=0,dY=0;if(qe&&et.current&&Fe.current&&De.current&&wt.current){Kp=et.current.offsetWidth+Fe.current.offsetWidth;var eIe=wt.current.offsetLeft>Kp?wt.current.offsetLeft-Kp:wt.current.offsetLeft,fY=De.current.offsetWidth,pY=wt.current.offsetWidth;fY&&pY&&Kp>fY-pY-(ze==="rtl"?0:eIe)&&(dY=Kp)}var tIe=ze==="rtl"?{right:Kp}:{left:Kp};function rIe(){var Vr,Pt=YCe(i,Ue[qe],Q),Cr=XCe({prefixCls:i,components:Re,needConfirmButton:st,okDisabled:!Or(X,qe)||M&&M(X[qe]),locale:b,onOk:function(){var tl=Or(X,qe);tl&&(en(X,qe),ee==null||ee(X),it(!1,qe,"confirm"))}});if(C!=="time"&&!x){var _r=ye(qe),Bn=VC(_r,C,v),yi=Ue[qe],Vu=yi===C,sf=XA(Vu?"left":!1,{pickerValue:_r,onPickerValueChange:function(tl){Ee(tl,qe)}}),Gp=XA("right",{pickerValue:Bn,onPickerValueChange:function(tl){Ee(VC(tl,C,v,-1),qe)}});ze==="rtl"?Vr=m.createElement(m.Fragment,null,Gp,Vu&&sf):Vr=m.createElement(m.Fragment,null,sf,Vu&&Gp)}else Vr=XA();var LS=m.createElement("div",{className:"".concat(i,"-panel-layout")},m.createElement(JCe,{prefixCls:i,presets:JTe,onClick:function(tl){en(tl,null),it(!1,qe,"preset")},onHover:function(tl){zu(tl)}}),m.createElement("div",null,m.createElement("div",{className:"".concat(i,"-panels")},Vr),(Pt||Cr)&&m.createElement("div",{className:"".concat(i,"-footer")},Pt,Cr)));return F&&(LS=F(LS)),m.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:dY},ref:De,onMouseDown:function(tl){tl.preventDefault()}},LS)}var nIe=m.createElement("div",{className:Oe("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(C,"-range-wrapper")),style:{minWidth:ct}},m.createElement("div",{ref:wt,className:"".concat(i,"-range-arrow"),style:tIe}),rIe()),mY;W&&(mY=m.createElement("span",{className:"".concat(i,"-suffix"),onMouseDown:function(Pt){Pt.preventDefault()}},W));var oIe=exe(i,R,U),aIe=m.createElement("span",{onMouseDown:function(Pt){Pt.preventDefault(),Pt.stopPropagation()},onMouseUp:function(Pt){Pt.preventDefault(),Pt.stopPropagation();var Cr=at;He[0]||(Cr=Zl(Cr,null,0)),He[1]||(Cr=Zl(Cr,null,1)),en(Cr,null),it(!1,qe,"clear")},className:"".concat(i,"-clear"),role:"button"},oIe),iIe=R&&(Or(at,0)&&!He[0]||Or(at,1)&&!He[1]),hY={size:LCe(C,mt[0],v)},QA=0,ZA=0;et.current&&Ie.current&&Fe.current&&(qe===0?ZA=et.current.offsetWidth:(QA=Kp,ZA=Ie.current.offsetWidth));var sIe=ze==="rtl"?{right:QA}:{left:QA},lIe=function(Pt,Cr){var _r=Zl(X,Pt,qe);if(Cr==="submit"||Cr!=="key"&&!st){en(_r,qe),qe===0?Cn():qp();var Bn=qe===0?1:0;He[Bn]?it(!1,!1,"confirm"):it(!1,qe,"confirm")}else ne(_r)};return m.createElement(Ys.Provider,{value:{operationRef:Ae,hideHeader:C==="time",onDateMouseEnter:af,onDateMouseLeave:UA,hideRanges:!0,onSelect:lIe,open:Me}},m.createElement(ZCe,{visible:Me,popupElement:nIe,popupStyle:c,prefixCls:i,dropdownClassName:d,dropdownAlign:p,getPopupContainer:h,transitionName:f,range:!0,direction:ze},m.createElement("div",G({ref:_e,className:Oe(i,"".concat(i,"-range"),u,(t={},le(t,"".concat(i,"-disabled"),He[0]&&He[1]),le(t,"".concat(i,"-focused"),qe===0?Mn:jS),le(t,"".concat(i,"-rtl"),ze==="rtl"),t)),style:l,onClick:GTe,onMouseEnter:pe,onMouseLeave:ge,onMouseDown:YTe,onMouseUp:se},pp(e,{aria:!0,data:!0})),m.createElement("div",{className:Oe("".concat(i,"-input"),(r={},le(r,"".concat(i,"-input-active"),qe===0),le(r,"".concat(i,"-input-placeholder"),!!Ft),r)),ref:et},m.createElement("input",G({id:s,disabled:He[0],readOnly:J||typeof mt[0]=="function"||!Ji,value:Ft||No,onChange:function(Pt){Fa(Pt.target.value)},autoFocus:y,placeholder:Or(g,0)||"",ref:vt},qn,hY,{autoComplete:Je}))),m.createElement("div",{className:"".concat(i,"-range-separator"),ref:Fe},k),m.createElement("div",{className:Oe("".concat(i,"-input"),(n={},le(n,"".concat(i,"-input-active"),qe===1),le(n,"".concat(i,"-input-placeholder"),!!of),n)),ref:Ie},m.createElement("input",G({disabled:He[1],readOnly:J||typeof mt[0]=="function"||!cY,value:of||Zi,onChange:function(Pt){iv(Pt.target.value)},placeholder:Or(g,1)||"",ref:bt},BS,hY,{autoComplete:Je}))),m.createElement("div",{className:"".concat(i,"-active-bar"),style:be(be({},sIe),{},{width:ZA,position:"absolute"})}),mY,iIe&&aIe)))}var tWt=function(e){Gd(r,e);var t=E0(r);function r(){var n;oa(this,r);for(var o=arguments.length,a=new Array(o),i=0;i{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},wo(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},iWt=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:c,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:v,radioColor:b,radioBgColor:g,calc:y}=e,S=`${t}-inner`,w=4,$=y(o).sub(y(w).mul(2)),C=y(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},wo(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Be(c)} ${v} ${n}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},wo(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${S}`]:{borderColor:n},[`${t}-input:focus-visible + ${S}`]:Object.assign({},S1(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:y(1).mul(o).div(-2).equal(),marginInlineStart:y(1).mul(o).div(-2).equal(),backgroundColor:b,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:c,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:n,backgroundColor:g,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:d,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y($).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},sWt=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:c,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:v,borderRadius:b,borderRadiusSM:g,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:w,colorTextDisabled:$,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:E,colorPrimary:_,colorPrimaryHover:k,colorPrimaryActive:I,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:z,buttonSolidCheckedActiveBg:O,calc:A}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:Be(A(r).sub(A(o).mul(2)).equal()),background:d,border:`${Be(o)} ${a} ${i}`,borderBlockStartWidth:A(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:A(o).mul(-1).equal(),insetInlineStart:A(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Be(o)} ${a} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${n}-group-large &`]:{height:p,fontSize:f,lineHeight:Be(A(p).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${n}-group-small &`]:{height:h,paddingInline:A(v).sub(o).equal(),paddingBlock:0,lineHeight:Be(A(h).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:_},"&:has(:focus-visible)":Object.assign({},S1(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:_,background:S,borderColor:_,"&::before":{backgroundColor:_},"&:first-child":{borderColor:_},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:w,background:N,borderColor:N,"&:hover":{color:w,background:z,borderColor:z},"&:active":{color:w,background:O,borderColor:O}},"&-disabled":{color:$,backgroundColor:C,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:C,borderColor:i}},[`&-disabled${n}-button-wrapper-checked`]:{color:E,backgroundColor:x,borderColor:i,boxShadow:"none"}}}},lWt=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:c,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e,v=4,b=a,g=t?b-v*2:b-(v+o)*2;return{radioSize:b,dotSize:g,dotColorDisabled:l,buttonSolidCheckedColor:c,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:r-o,wrapperMarginInlineEnd:n,radioColor:t?d:h,radioBgColor:t?s:d}},oxe=Ka("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${Be(r)} ${t}`,a=Dn(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[aWt(a),iWt(a),sWt(a)]},lWt,{unitless:{radioSize:!0,dotSize:!0}});var uWt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const o=m.useContext(txe),a=m.useContext(rxe),{getPrefixCls:i,direction:s,radio:l}=m.useContext(Er),u=m.useRef(null),c=zl(t,u),{isFormItemInput:d}=m.useContext(qi),f=O=>{var A,M;(A=e.onChange)===null||A===void 0||A.call(e,O),(M=o==null?void 0:o.onChange)===null||M===void 0||M.call(o,O)},{prefixCls:p,className:h,rootClassName:v,children:b,style:g,title:y}=e,S=uWt(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",p),$=((o==null?void 0:o.optionType)||a)==="button",C=$?`${w}-button`:w,x=Vl(w),[E,_,k]=oxe(w,x),I=Object.assign({},S),N=m.useContext(Mu);o&&(I.name=o.name,I.onChange=f,I.checked=e.value===o.value,I.disabled=(r=I.disabled)!==null&&r!==void 0?r:o.disabled),I.disabled=(n=I.disabled)!==null&&n!==void 0?n:N;const z=Oe(`${C}-wrapper`,{[`${C}-wrapper-checked`]:I.checked,[`${C}-wrapper-disabled`]:I.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:d},l==null?void 0:l.className,h,v,_,k,x);return E(m.createElement(IW,{component:"Radio",disabled:I.disabled},m.createElement("label",{className:z,style:Object.assign(Object.assign({},l==null?void 0:l.style),g),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},m.createElement(nxe,Object.assign({},I,{className:Oe(I.className,!$&&kD),type:"radio",prefixCls:C,ref:c})),b!==void 0?m.createElement("span",null,b):null)))},dWt=m.forwardRef(cWt),_R=dWt,fWt=m.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=m.useContext(Er),[o,a]=So(e.defaultValue,{value:e.value}),i=O=>{const A=o,M=O.target.value;"value"in e||a(M);const{onChange:L}=e;L&&M!==A&&L(O)},{prefixCls:s,className:l,rootClassName:u,options:c,buttonStyle:d="outline",disabled:f,children:p,size:h,style:v,id:b,onMouseEnter:g,onMouseLeave:y,onFocus:S,onBlur:w}=e,$=r("radio",s),C=`${$}-group`,x=Vl($),[E,_,k]=oxe($,x);let I=p;c&&c.length>0&&(I=c.map(O=>typeof O=="string"||typeof O=="number"?m.createElement(_R,{key:O.toString(),prefixCls:$,disabled:f,value:O,checked:o===O},O):m.createElement(_R,{key:`radio-group-value-options-${O.value}`,prefixCls:$,disabled:O.disabled||f,value:O.value,checked:o===O.value,title:O.title,style:O.style,id:O.id,required:O.required},O.label)));const N=Hl(h),z=Oe(C,`${C}-${d}`,{[`${C}-${N}`]:N,[`${C}-rtl`]:n==="rtl"},l,u,_,k,x);return E(m.createElement("div",Object.assign({},pp(e,{aria:!0,data:!0}),{className:z,style:v,onMouseEnter:g,onMouseLeave:y,onFocus:S,onBlur:w,id:b,ref:t}),m.createElement(rWt,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),pWt=m.memo(fWt);var mWt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r}=m.useContext(Er),{prefixCls:n}=e,o=mWt(e,["prefixCls"]),a=r("radio",n);return m.createElement(nWt,{value:"button"},m.createElement(_R,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},vWt=m.forwardRef(hWt),RD=_R;RD.Button=vWt;RD.Group=pWt;RD.__ANT_RADIO=!0;const Moe=RD;function FD(e){return Dn(e,{inputAffixPadding:e.paddingXXS})}const OD=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:c,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:v,controlOutline:b,colorErrorOutline:g,colorWarningOutline:y,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-r*n)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:c-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${b}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},gWt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ND=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},gWt(Dn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),tq=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Boe=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tq(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),rq=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tq(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ND(e))}),Boe(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Boe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),joe=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),axe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},joe(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),joe(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ND(e))}})}),nq=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),ixe=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Loe=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ixe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),oq=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ixe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ND(e))}),Loe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Loe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),zoe=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),sxe=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},zoe(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),zoe(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),aq=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),lxe=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Be(t)} ${Be(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},iq=e=>({padding:`${Be(e.paddingBlockSM)} ${Be(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p_=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Be(e.paddingBlock)} ${Be(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},aq(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},lxe(e)),"&-sm":Object.assign({},iq(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),uxe=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},lxe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},iq(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Be(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Be(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Be(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Be(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${Be(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},pjt()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${r}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, + & > ${r}-select-auto-complete ${t}, + & > ${r}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${r}-select:first-child > ${r}-select-selector, + & > ${r}-select-auto-complete:first-child ${t}, + & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${r}-select:last-child > ${r}-select-selector, + & > ${r}-cascader-picker:last-child ${t}, + & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},bWt=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=16,i=o(r).sub(o(n).mul(2)).sub(a).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wo(e)),p_(e)),rq(e)),oq(e)),nq(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},yWt=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Be(e.inputAffixPadding)}`}}}},SWt=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},p_(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),yWt(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},wWt=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},wo(e)),uxe(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},axe(e)),sxe(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},CWt=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},xWt=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},$Wt=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},sq=Ka("Input",e=>{const t=Dn(e,FD(e));return[bWt(t),xWt(t),SWt(t),wWt(t),CWt(t),$Wt(t),i_(t)]},OD),EWt=e=>{const{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(n).div(2)).equal()}},_Wt=e=>({cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new On(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new On(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:e.colorBgContainerDisabled,timeColumnWidth:e.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:e.controlHeightSM*1.5,cellHeight:e.controlHeightSM,textHeight:e.controlHeightLG,withoutTimeCellHeight:e.controlHeightLG*1.65}),kWt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},OD(e)),_Wt(e)),CCe(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),PWt=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},rq(e)),oq(e)),nq(e))}),TWt=PWt,a4=(e,t,r,n)=>{const o=e.calc(r).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${Be(a)} ${Be(n)} ${Be(i)}`}},IWt=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,cellHeight:o,motionDurationSlow:a,borderRadiusSM:i,motionDurationMid:s,cellHoverBg:l,lineWidth:u,lineType:c,colorPrimary:d,cellActiveWithRangeBg:f,colorTextLightSolid:p,controlHeightSM:h,cellRangeBorderColor:v,pickerCellBorderGap:b,cellHoverWithRangeBg:g,cellWidth:y,colorTextDisabled:S,cellBgDisabled:w}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:Be(o),borderRadius:i,transition:`background ${s}, border ${s}`},"&-range-hover-start, &-range-hover-end":{[n]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${r}-in-view), + &:hover:not(${r}-selected):not(${r}-range-start):not(${r}-range-end):not(${r}-range-hover-start):not(${r}-range-hover-end)`]:{[n]:{background:l}},[`&-in-view${r}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Be(u)} ${c} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${r}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${r}-selected ${n}, + &-in-view${r}-range-start ${n}, + &-in-view${r}-range-end ${n}`]:{color:p,background:d},[`&-in-view${r}-range-start:not(${r}-range-start-single), + &-in-view${r}-range-end:not(${r}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${r}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${r}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${r}-range-hover-start:not(${r}-in-range):not(${r}-range-start):not(${r}-range-end), + &-in-view${r}-range-hover-end:not(${r}-in-range):not(${r}-range-start):not(${r}-range-end), + &-in-view${r}-range-hover-start${r}-range-start-single, + &-in-view${r}-range-hover-start${r}-range-start${r}-range-end${r}-range-end-near-hover, + &-in-view${r}-range-hover-end${r}-range-start${r}-range-end${r}-range-start-near-hover, + &-in-view${r}-range-hover-end${r}-range-end-single, + &-in-view${r}-range-hover:not(${r}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:h,borderTop:`${Be(u)} dashed ${v}`,borderBottom:`${Be(u)} dashed ${v}`,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:b},[`&-in-view${r}-in-range${r}-range-hover::before, + &-in-view${r}-in-range${r}-range-hover-start::before, + &-in-view${r}-in-range${r}-range-hover-end::before, + &-in-view${r}-range-start${r}-range-hover::before, + &-in-view${r}-range-end${r}-range-hover::before, + &-in-view${r}-range-start:not(${r}-range-start-single)${r}-range-hover-start::before, + &-in-view${r}-range-end:not(${r}-range-end-single)${r}-range-hover-end::before, + ${t}-panel + > :not(${t}-date-panel) + &-in-view${r}-in-range${r}-range-hover-start::before, + ${t}-panel + > :not(${t}-date-panel) + &-in-view${r}-in-range${r}-range-hover-end::before`]:{background:g},[`&-in-view${r}-range-start:not(${r}-range-start-single):not(${r}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${r}-range-end:not(${r}-range-end-single):not(${r}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},[`&-range-hover${r}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${r}-range-hover:first-child::after, + tr > &-in-view${r}-range-hover-end:first-child::after, + &-in-view${r}-start${r}-range-hover-edge-start${r}-range-hover-edge-start-near-range::after, + &-in-view${r}-range-hover-edge-start:not(${r}-range-hover-edge-start-near-range)::after, + &-in-view${r}-range-hover-start::after`]:{insetInlineStart:e.calc(y).sub(o).div(2).equal(),borderInlineStart:`${Be(u)} dashed ${v}`,borderStartStartRadius:i,borderEndStartRadius:i},[`tr > &-in-view${r}-range-hover:last-child::after, + tr > &-in-view${r}-range-hover-start:last-child::after, + &-in-view${r}-end${r}-range-hover-edge-end${r}-range-hover-edge-end-near-range::after, + &-in-view${r}-range-hover-edge-end:not(${r}-range-hover-edge-end-near-range)::after, + &-in-view${r}-range-hover-end::after`]:{insetInlineEnd:e.calc(y).sub(o).div(2).equal(),borderInlineEnd:`${Be(u)} dashed ${v}`,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:S,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:w}},[`&-disabled${r}-today ${n}::before`]:{borderColor:S}}},RWt=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:s,paddingXS:l,paddingXXS:u,colorBgContainer:c,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:v,colorSplit:b,pickerControlIconBorderWidth:g,colorIcon:y,textHeight:S,motionDurationMid:w,colorIconHover:$,fontWeightStrong:C,cellHeight:x,pickerCellPaddingVertical:E,colorTextDisabled:_,colorText:k,fontSize:I,cellHoverWithRangeBg:N,motionDurationSlow:z,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:A,colorLink:M,colorLinkActive:L,colorLinkHover:j,cellRangeBorderColor:H,borderRadiusSM:B,colorTextLightSolid:F,cellHoverBg:V,timeColumnHeight:D,timeColumnWidth:P,timeCellHeight:R,controlItemBgActive:W,marginXXS:U,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:J}=e,Z=e.calc(i).mul(7).add(e.calc(q).mul(2)).equal(),Q=e.calc(Z).sub(e.calc(l).mul(2)).div(3).sub(e.pickerYearMonthCellWidth).sub(s).equal(),oe=e.calc(Z).sub(e.calc(l).mul(2)).div(4).sub(e.pickerYearMonthCellWidth).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${Be(d)} ${f} ${b}`,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{direction:"rtl",[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Z},"&-header":{display:"flex",padding:`0 ${Be(l)}`,color:v,borderBottom:`${Be(d)} ${f} ${b}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:Be(S),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:$}},"&-view":{flex:"auto",fontWeight:C,lineHeight:Be(S),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:g,borderBlockEndWidth:0,borderInlineStartWidth:g,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:J,insetInlineStart:J,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:g,borderBlockEndWidth:0,borderInlineStartWidth:g,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(E).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Be(E)} 0`,color:_,cursor:"pointer","&-in-view":{color:k}},IWt(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, + &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:N,transition:`all ${z}`,content:'""'}},[`&-date-panel + ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start + ${n}::after`]:{insetInlineEnd:e.calc(i).sub(x).mul(-1).div(2).equal(),insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:e.calc(i).sub(x).mul(-1).div(2).equal()},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[n]:{padding:`0 ${Be(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:oe,borderInlineStart:`${Be(d)} dashed ${H}`,[`${t}-panel-rtl &`]:{insetInlineEnd:oe,borderInlineEnd:`${Be(d)} dashed ${H}`}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:oe,borderInlineEnd:`${Be(d)} dashed ${H}`,[`${t}-panel-rtl &`]:{insetInlineStart:oe,borderInlineStart:`${Be(d)} dashed ${H}`}}},[`&-panel ${t}-footer`]:{borderTop:`${Be(d)} ${f} ${b}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:Be(e.calc(S).sub(e.calc(d).mul(2)).equal()),textAlign:"center","&-extra":{padding:`0 ${Be(s)}`,lineHeight:Be(e.calc(S).sub(e.calc(d).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Be(d)} ${f} ${b}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:M,"&:hover":{color:j},"&:active":{color:L},[`&${t}-today-btn-disabled`]:{color:_,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${Be(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Be(l)}`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{borderStartStartRadius:B,borderEndStartRadius:B,borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:B,borderEndEndRadius:B}},[`${t}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:B,borderEndEndRadius:B,[`${t}-panel-rtl &`]:{borderStartStartRadius:B,borderEndStartRadius:B,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${t}-cell-range-hover-start::after`]:{insetInlineStart:Q,borderInlineStart:`${Be(d)} dashed ${H}`,[`${t}-panel-rtl &`]:{insetInlineEnd:Q,borderInlineEnd:`${Be(d)} dashed ${H}`}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:Q,borderInlineEnd:`${Be(d)} dashed ${H}`,[`${t}-panel-rtl &`]:{insetInlineStart:Q,borderInlineStart:`${Be(d)} dashed ${H}`}}},"&-week-panel":{[`${t}-body`]:{padding:`${Be(l)} ${Be(s)}`},[`${t}-cell`]:{[`&:hover ${n}, + &-selected ${n}, + ${n}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:B,borderEndStartRadius:B},"&:last-child:before":{borderStartEndRadius:B,borderEndEndRadius:B}},"&:hover td":{"&:before":{background:V}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${r}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new On(F).setAlpha(.5).toHexString()},[n]:{color:F}}},"&-range-hover td:before":{background:W}}},"&-date-panel":{[`${t}-body`]:{padding:`${Be(l)} ${Be(q)}`},[`${t}-content`]:{width:e.calc(i).mul(7).equal(),th:{width:i,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Be(d)} ${f} ${b}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${z}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:P,margin:`${Be(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc(D).sub(R).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${Be(d)} ${f} ${b}`},"&-active":{background:new On(W).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:U,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(P).sub(e.calc(U).mul(2)).equal(),height:R,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(P).sub(R).div(2).equal(),color:k,lineHeight:Be(R),borderRadius:B,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:V}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:W}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:_,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:e.calc(D).sub(R).add(e.calc(u).mul(2)).equal()}}}},FWt=e=>{const{componentCls:t,colorError:r,colorWarning:n}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:n}}}}},OWt=e=>{const{componentCls:t,antCls:r,controlHeight:n,paddingInline:o,lineWidth:a,lineType:i,colorBorder:s,borderRadius:l,motionDurationMid:u,colorTextDisabled:c,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:v,paddingXS:b,marginXS:g,colorTextDescription:y,lineWidthBold:S,colorPrimary:w,motionDurationSlow:$,zIndexPopup:C,paddingXXS:x,paddingSM:E,textHeight:_,cellActiveWithRangeBg:k,colorPrimaryBorder:I,sizePopupArrow:N,colorBgElevated:z,borderRadiusLG:O,boxShadowSecondary:A,borderRadiusSM:M,colorSplit:L,cellHoverBg:j,presetsWidth:H,presetsMaxWidth:B,boxShadowPopoverArrow:F,fontHeight:V,fontHeightLG:D,lineHeightLG:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},wo(e)),a4(e,n,V,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},aq(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:c,cursor:"not-allowed"}}),"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},a4(e,f,D,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:P}}),"&-small":Object.assign({},a4(e,h,V,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:c,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:g}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:c,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:c,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:o},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:S,marginInlineStart:o,background:w,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Be(b)}`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v},[`${t}-active-bar`]:{marginInlineStart:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},wo(e)),RWt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topLeft, + &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topRight, + &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topLeft, + &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:zW},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomRight, + &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, + &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:jW},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:VW},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:LW},[`${t}-panel > ${t}-time-panel`]:{paddingTop:x},[`${t}-ranges`]:{marginBottom:0,padding:`${Be(x)} ${Be(E)}`,overflow:"hidden",lineHeight:Be(e.calc(_).sub(e.calc(a).mul(2)).sub(e.calc(b).div(2)).equal()),textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${r}-tag-blue`]:{color:w,background:k,borderColor:I,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:e.calc(o).mul(1.5).equal(),transition:`left ${$} ease-out`},xCe(e,z,F)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:z,borderRadius:O,boxShadow:A,transition:`margin ${$}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:B,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:`${Be(a)} ${i} ${L}`,li:Object.assign(Object.assign({},vR),{borderRadius:M,paddingInline:b,paddingBlock:e.calc(h).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:g},"&:hover":{background:j}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${Be(a)}`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Be(e.calc(N).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},CR(e,"slide-up"),CR(e,"slide-down"),wR(e,"move-up"),wR(e,"move-down")]},cxe=Ka("DatePicker",e=>{const t=Dn(FD(e),EWt(e));return[OWt(t),TWt(t),FWt(t),i_(e,{focusElCls:`${e.componentCls}-focused`})]},kWt);function NWt(e,t,r){var n=r||{},o=n.noTrailing,a=o===void 0?!1:o,i=n.noLeading,s=i===void 0?!1:i,l=n.debounceMode,u=l===void 0?void 0:l,c,d=!1,f=0;function p(){c&&clearTimeout(c)}function h(b){var g=b||{},y=g.upcomingOnly,S=y===void 0?!1:y;p(),d=!S}function v(){for(var b=arguments.length,g=new Array(b),y=0;ye?s?(f=Date.now(),a||(c=setTimeout(u?C:$,e))):$():a!==!0&&(c=setTimeout(u?C:$,u===void 0?e-w:e))}return v.cancel=h,v}function DWt(e,t,r){var n=r||{},o=n.atBegin,a=o===void 0?!1:o;return NWt(e,t,{debounceMode:a!==!1})}const AWt=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},wo(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},wo(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},wo(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},S1(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Be(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + ${r}:not(${r}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` + ${r}-checked:not(${r}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function MWt(e,t){const r=Dn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[AWt(r)]}const dxe=Ka("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[MWt(r,e)]}),BWt=Y.createContext(null),fxe=BWt;var jWt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:l,onMouseEnter:u,onMouseLeave:c,skipGroup:d=!1,disabled:f}=e,p=jWt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:b}=m.useContext(Er),g=m.useContext(fxe),{isFormItemInput:y}=m.useContext(qi),S=m.useContext(Mu),w=(r=(g==null?void 0:g.disabled)||f)!==null&&r!==void 0?r:S,$=m.useRef(p.value);m.useEffect(()=>{g==null||g.registerValue(p.value)},[]),m.useEffect(()=>{if(!d)return p.value!==$.current&&(g==null||g.cancelValue($.current),g==null||g.registerValue(p.value),$.current=p.value),()=>g==null?void 0:g.cancelValue(p.value)},[p.value]);const C=h("checkbox",n),x=Vl(C),[E,_,k]=dxe(C,x),I=Object.assign({},p);g&&!d&&(I.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),g.toggleOption&&g.toggleOption({label:i,value:p.value})},I.name=g.name,I.checked=g.value.includes(p.value));const N=Oe(`${C}-wrapper`,{[`${C}-rtl`]:v==="rtl",[`${C}-wrapper-checked`]:I.checked,[`${C}-wrapper-disabled`]:w,[`${C}-wrapper-in-form-item`]:y},b==null?void 0:b.className,o,a,k,x,_),z=Oe({[`${C}-indeterminate`]:s},kD,_),O=s?"mixed":void 0;return E(m.createElement(IW,{component:"Checkbox",disabled:w},m.createElement("label",{className:N,style:Object.assign(Object.assign({},b==null?void 0:b.style),l),onMouseEnter:u,onMouseLeave:c},m.createElement(nxe,Object.assign({"aria-checked":O},I,{prefixCls:C,className:z,disabled:w,ref:t})),i!==void 0&&m.createElement("span",null,i))))},zWt=m.forwardRef(LWt),pxe=zWt;var VWt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{defaultValue:r,children:n,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:u}=e,c=VWt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m.useContext(Er),[p,h]=m.useState(c.value||r||[]),[v,b]=m.useState([]);m.useEffect(()=>{"value"in c&&h(c.value||[])},[c.value]);const g=m.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),y=A=>{b(M=>M.filter(L=>L!==A))},S=A=>{b(M=>[].concat(xt(M),[A]))},w=A=>{const M=p.indexOf(A.value),L=xt(p);M===-1?L.push(A.value):L.splice(M,1),"value"in c||h(L),u==null||u(L.filter(j=>v.includes(j)).sort((j,H)=>{const B=g.findIndex(V=>V.value===j),F=g.findIndex(V=>V.value===H);return B-F}))},$=d("checkbox",a),C=`${$}-group`,x=Vl($),[E,_,k]=dxe($,x),I=Lp(c,["value","disabled"]),N=o.length?g.map(A=>m.createElement(pxe,{prefixCls:$,key:A.value.toString(),disabled:"disabled"in A?A.disabled:c.disabled,value:A.value,checked:p.includes(A.value),onChange:A.onChange,className:`${C}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):n,z={toggleOption:w,value:p,disabled:c.disabled,name:c.name,registerValue:S,cancelValue:y},O=Oe(C,{[`${C}-rtl`]:f==="rtl"},i,s,k,x,_);return E(m.createElement("div",Object.assign({className:O,style:l},I,{ref:t}),m.createElement(fxe.Provider,{value:z},N)))}),WWt=HWt,lq=pxe;lq.Group=WWt;lq.__ANT_CHECKBOX=!0;const cz=lq,qWt=m.createContext({}),mxe=qWt,UWt=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},KWt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},GWt=(e,t)=>{const{componentCls:r,gridColumns:n}=e,o={};for(let a=n;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o},dz=(e,t)=>GWt(e,t),YWt=(e,t,r)=>({[`@media (min-width: ${Be(t)})`]:Object.assign({},dz(e,r))}),XWt=()=>({}),QWt=()=>({}),ZWt=Ka("Grid",UWt,XWt),JWt=Ka("Grid",e=>{const t=Dn(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[KWt(t),dz(t,""),dz(t,"-xs"),Object.keys(r).map(n=>YWt(t,r[n],n)).reduce((n,o)=>Object.assign(Object.assign({},n),o),{})]},QWt);var eqt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r,direction:n}=m.useContext(Er),{gutter:o,wrap:a}=m.useContext(mxe),{prefixCls:i,span:s,order:l,offset:u,push:c,pull:d,className:f,children:p,flex:h,style:v}=e,b=eqt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=r("col",i),[y,S,w]=JWt(g);let $={};rqt.forEach(E=>{let _={};const k=e[E];typeof k=="number"?_.span=k:typeof k=="object"&&(_=k||{}),delete b[E],$=Object.assign(Object.assign({},$),{[`${g}-${E}-${_.span}`]:_.span!==void 0,[`${g}-${E}-order-${_.order}`]:_.order||_.order===0,[`${g}-${E}-offset-${_.offset}`]:_.offset||_.offset===0,[`${g}-${E}-push-${_.push}`]:_.push||_.push===0,[`${g}-${E}-pull-${_.pull}`]:_.pull||_.pull===0,[`${g}-${E}-flex-${_.flex}`]:_.flex||_.flex==="auto",[`${g}-rtl`]:n==="rtl"})});const C=Oe(g,{[`${g}-${s}`]:s!==void 0,[`${g}-order-${l}`]:l,[`${g}-offset-${u}`]:u,[`${g}-push-${c}`]:c,[`${g}-pull-${d}`]:d},f,$,S,w),x={};if(o&&o[0]>0){const E=o[0]/2;x.paddingLeft=E,x.paddingRight=E}return h&&(x.flex=tqt(h),a===!1&&!x.minWidth&&(x.minWidth=0)),y(m.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},x),v),className:C,ref:t}),p))}),ea=nqt;var oqt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&n(e),typeof e=="object")for(let a=0;a{o()},[JSON.stringify(e),t]),r}const aqt=m.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:o,className:a,style:i,children:s,gutter:l=0,wrap:u}=e,c=oqt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=m.useContext(Er),[p,h]=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=Voe(o,v),y=Voe(n,v),S=m.useRef(l),w=yCe();m.useEffect(()=>{const L=w.subscribe(j=>{b(j);const H=S.current||0;(!Array.isArray(H)&&typeof H=="object"||Array.isArray(H)&&(typeof H[0]=="object"||typeof H[1]=="object"))&&h(j)});return()=>w.unsubscribe(L)},[]);const $=()=>{const L=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((H,B)=>{if(typeof H=="object")for(let F=0;F0?k[0]/-2:void 0;z&&(N.marginLeft=z,N.marginRight=z),[,N.rowGap]=k;const[O,A]=k,M=m.useMemo(()=>({gutter:[O,A],wrap:u}),[O,A,u]);return x(m.createElement(mxe.Provider,{value:M},m.createElement("div",Object.assign({},c,{className:I,style:Object.assign(Object.assign({},N),i),ref:t}),s)))}),gp=aqt;var iqt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const sqt=iqt;var lqt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:sqt}))};const uqt=m.forwardRef(lqt);function fz(){return typeof BigInt=="function"}function hxe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function hg(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(n)}}function uq(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function eg(e){var t=String(e);if(uq(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&cq(t)?t.length-t.indexOf(".")-1:0}function DD(e){var t=String(e);if(uq(e)){if(e>Number.MAX_SAFE_INTEGER)return String(fz()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":hg("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),dqt=function(){function e(t){if(oa(this,e),le(this,"origin",""),le(this,"number",void 0),le(this,"empty",void 0),hxe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Oo(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":DD(this.number):this.origin}}]),e}();function rc(e){return fz()?new cqt(e):new dqt(e)}function uT(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=hg(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),u="".concat(a).concat(i);if(r>=0){var c=Number(s[r]);if(c>=5&&!n){var d=rc(e).add("".concat(a,"0.").concat("0".repeat(r)).concat(10-c));return uT(d.toString(),t,r,n)}return r===0?u:"".concat(u).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?u:"".concat(u).concat(l)}function fqt(e){return!!(e.addonBefore||e.addonAfter)}function pqt(e){return!!(e.prefix||e.suffix||e.allowClear)}function kR(e,t,r,n){if(r){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",r(o);return}if(e.type!=="file"&&n!==void 0){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value=n,r(o);return}r(o)}}function vxe(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var dq=function(t){var r,n,o=t.inputElement,a=t.children,i=t.prefixCls,s=t.prefix,l=t.suffix,u=t.addonBefore,c=t.addonAfter,d=t.className,f=t.style,p=t.disabled,h=t.readOnly,v=t.focused,b=t.triggerFocus,g=t.allowClear,y=t.value,S=t.handleReset,w=t.hidden,$=t.classes,C=t.classNames,x=t.dataAttrs,E=t.styles,_=t.components,k=a??o,I=(_==null?void 0:_.affixWrapper)||"span",N=(_==null?void 0:_.groupWrapper)||"span",z=(_==null?void 0:_.wrapper)||"span",O=(_==null?void 0:_.groupAddon)||"span",A=m.useRef(null),M=function(te){var ae;(ae=A.current)!==null&&ae!==void 0&&ae.contains(te.target)&&(b==null||b())},L=pqt(t),j=m.cloneElement(k,{value:y,className:Oe(k.props.className,!L&&(C==null?void 0:C.variant))||null});if(L){var H,B=null;if(g){var F,V=!p&&!h&&y,D="".concat(i,"-clear-icon"),P=or(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";B=Y.createElement("span",{onClick:S,onMouseDown:function(te){return te.preventDefault()},className:Oe(D,(F={},le(F,"".concat(D,"-hidden"),!V),le(F,"".concat(D,"-has-suffix"),!!l),F)),role:"button",tabIndex:-1},P)}var R="".concat(i,"-affix-wrapper"),W=Oe(R,(H={},le(H,"".concat(i,"-disabled"),p),le(H,"".concat(R,"-disabled"),p),le(H,"".concat(R,"-focused"),v),le(H,"".concat(R,"-readonly"),h),le(H,"".concat(R,"-input-with-clear-btn"),l&&g&&y),H),$==null?void 0:$.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),U=(l||g)&&Y.createElement("span",{className:Oe("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:E==null?void 0:E.suffix},B,l);j=Y.createElement(I,G({className:W,style:E==null?void 0:E.affixWrapper,onClick:M},x==null?void 0:x.affixWrapper,{ref:A}),s&&Y.createElement("span",{className:Oe("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:E==null?void 0:E.prefix},s),j,U)}if(fqt(t)){var q="".concat(i,"-group"),J="".concat(q,"-addon"),Z="".concat(q,"-wrapper"),Q=Oe("".concat(i,"-wrapper"),q,$==null?void 0:$.wrapper,C==null?void 0:C.wrapper),oe=Oe(Z,le({},"".concat(Z,"-disabled"),p),$==null?void 0:$.group,C==null?void 0:C.groupWrapper);j=Y.createElement(N,{className:oe},Y.createElement(z,{className:Q},u&&Y.createElement(O,{className:J},u),j,c&&Y.createElement(O,{className:J},c)))}return Y.cloneElement(j,{className:Oe((r=j.props)===null||r===void 0?void 0:r.className,d)||null,style:be(be({},(n=j.props)===null||n===void 0?void 0:n.style),f),hidden:w})},mqt=["show"];function gxe(e,t){return m.useMemo(function(){var r={};t&&(r.show=or(t)==="object"&&t.formatter?t.formatter:!!t),r=be(be({},r),e);var n=r,o=n.show,a=St(n,mqt);return be(be({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var hqt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],vqt=m.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,u=l===void 0?"rc-input":l,c=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,v=e.showCount,b=e.count,g=e.type,y=g===void 0?"text":g,S=e.classes,w=e.classNames,$=e.styles,C=e.onCompositionStart,x=e.onCompositionEnd,E=St(e,hqt),_=m.useState(!1),k=Ce(_,2),I=k[0],N=k[1],z=m.useRef(!1),O=m.useRef(null),A=function(pe){O.current&&vxe(O.current,pe)},M=So(e.defaultValue,{value:e.value}),L=Ce(M,2),j=L[0],H=L[1],B=j==null?"":String(j),F=m.useState(null),V=Ce(F,2),D=V[0],P=V[1],R=gxe(b,v),W=R.max||p,U=R.strategy(B),q=!!W&&U>W;m.useImperativeHandle(t,function(){return{focus:A,blur:function(){var pe;(pe=O.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,ge,de){var ee;(ee=O.current)===null||ee===void 0||ee.setSelectionRange(pe,ge,de)},select:function(){var pe;(pe=O.current)===null||pe===void 0||pe.select()},input:O.current}}),m.useEffect(function(){N(function(se){return se&&c?!1:se})},[c]);var J=function(pe,ge,de){var ee=ge;if(!z.current&&R.exceedFormatter&&R.max&&R.strategy(ge)>R.max){if(ee=R.exceedFormatter(ge,{max:R.max}),ge!==ee){var me,Re;P([((me=O.current)===null||me===void 0?void 0:me.selectionStart)||0,((Re=O.current)===null||Re===void 0?void 0:Re.selectionEnd)||0])}}else if(de.source==="compositionEnd")return;H(ee),O.current&&kR(O.current,pe,n,ee)};m.useEffect(function(){if(D){var se;(se=O.current)===null||se===void 0||se.setSelectionRange.apply(se,xt(D))}},[D]);var Z=function(pe){J(pe,pe.target.value,{source:"change"})},Q=function(pe){z.current=!1,J(pe,pe.currentTarget.value,{source:"compositionEnd"}),x==null||x(pe)},oe=function(pe){i&&pe.key==="Enter"&&i(pe),s==null||s(pe)},ie=function(pe){N(!0),o==null||o(pe)},te=function(pe){N(!1),a==null||a(pe)},ae=function(pe){H(""),A(),O.current&&kR(O.current,pe,n)},fe=q&&"".concat(u,"-out-of-range"),ve=function(){var pe=Lp(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return Y.createElement("input",G({autoComplete:r},pe,{onChange:Z,onFocus:ie,onBlur:te,onKeyDown:oe,className:Oe(u,le({},"".concat(u,"-disabled"),c),w==null?void 0:w.input),style:$==null?void 0:$.input,ref:O,size:d,type:y,onCompositionStart:function(de){z.current=!0,C==null||C(de)},onCompositionEnd:Q}))},Se=function(){var pe=Number(W)>0;if(h||R.show){var ge=R.showFormatter?R.showFormatter({value:B,count:U,maxLength:W}):"".concat(U).concat(pe?" / ".concat(W):"");return Y.createElement(Y.Fragment,null,R.show&&Y.createElement("span",{className:Oe("".concat(u,"-show-count-suffix"),le({},"".concat(u,"-show-count-has-suffix"),!!h),w==null?void 0:w.count),style:be({},$==null?void 0:$.count)},ge),h)}return null};return Y.createElement(dq,G({},E,{prefixCls:u,className:Oe(f,fe),handleReset:ae,value:B,focused:I,triggerFocus:A,suffix:Se(),disabled:c,classes:S,classNames:w,styles:$}),ve())});function gqt(e,t){var r=m.useRef(null);function n(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),u=s.substring(i);r.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:u}}catch{}}function o(){if(e&&r.current&&t)try{var a=e.value,i=r.current,s=i.beforeTxt,l=i.afterTxt,u=i.start,c=a.length;if(a.endsWith(l))c=a.length-r.current.afterTxt.length;else if(a.startsWith(s))c=s.length;else{var d=s[u-1],f=a.indexOf(d,u-1);f!==-1&&(c=f+1)}e.setSelectionRange(c,c)}catch(p){fa(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[n,o]}var bqt=function(){var t=m.useState(!1),r=Ce(t,2),n=r[0],o=r[1];return Fn(function(){o(qW())},[]),n},yqt=200,Sqt=600;function wqt(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=m.useRef(),l=m.useRef([]),u=m.useRef();u.current=i;var c=function(){clearTimeout(s.current)},d=function(S,w){S.preventDefault(),c(),u.current(w);function $(){u.current(w),s.current=setTimeout($,yqt)}s.current=setTimeout($,Sqt)};m.useEffect(function(){return function(){c(),l.current.forEach(function(y){return rn.cancel(y)})}},[]);var f=bqt();if(f)return null;var p="".concat(t,"-handler"),h=Oe(p,"".concat(p,"-up"),le({},"".concat(p,"-up-disabled"),o)),v=Oe(p,"".concat(p,"-down"),le({},"".concat(p,"-down-disabled"),a)),b=function(){return l.current.push(rn(c))},g={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return m.createElement("div",{className:"".concat(p,"-wrap")},m.createElement("span",G({},g,{onMouseDown:function(S){d(S,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),r||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m.createElement("span",G({},g,{onMouseDown:function(S){d(S,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),n||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Hoe(e){var t=typeof e=="number"?DD(e):hg(e).fullStr,r=t.includes(".");return r?hg(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Cqt=function(){var e=m.useRef(0),t=function(){rn.cancel(e.current)};return m.useEffect(function(){return t},[]),function(r){t(),e.current=rn(function(){r()})}};var xqt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","wheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],$qt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Woe=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},qoe=function(t){var r=rc(t);return r.isInvalidate()?null:r},Eqt=m.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-input-number":n,a=e.className,i=e.style,s=e.min,l=e.max,u=e.step,c=u===void 0?1:u,d=e.defaultValue,f=e.value,p=e.disabled,h=e.readOnly,v=e.upHandler,b=e.downHandler,g=e.keyboard,y=e.wheel,S=e.controls,w=S===void 0?!0:S;e.classNames;var $=e.stringMode,C=e.parser,x=e.formatter,E=e.precision,_=e.decimalSeparator,k=e.onChange,I=e.onInput,N=e.onPressEnter,z=e.onStep,O=e.changeOnBlur,A=O===void 0?!0:O,M=St(e,xqt),L="".concat(o,"-input"),j=m.useRef(null),H=m.useState(!1),B=Ce(H,2),F=B[0],V=B[1],D=m.useRef(!1),P=m.useRef(!1),R=m.useRef(!1),W=m.useState(function(){return rc(f??d)}),U=Ce(W,2),q=U[0],J=U[1];function Z(xe){f===void 0&&J(xe)}var Q=m.useCallback(function(xe,Ae){if(!Ae)return E>=0?E:Math.max(eg(xe),eg(c))},[E,c]),oe=m.useCallback(function(xe){var Ae=String(xe);if(C)return C(Ae);var He=Ae;return _&&(He=He.replace(_,".")),He.replace(/[^\w.-]+/g,"")},[C,_]),ie=m.useRef(""),te=m.useCallback(function(xe,Ae){if(x)return x(xe,{userTyping:Ae,input:String(ie.current)});var He=typeof xe=="number"?DD(xe):xe;if(!Ae){var Ge=Q(He,Ae);if(cq(He)&&(_||Ge>=0)){var ot=_||".";He=uT(He,ot,Ge)}}return He},[x,Q,_]),ae=m.useState(function(){var xe=d??f;return q.isInvalidate()&&["string","number"].includes(or(xe))?Number.isNaN(xe)?"":xe:te(q.toString(),!1)}),fe=Ce(ae,2),ve=fe[0],Se=fe[1];ie.current=ve;function se(xe,Ae){Se(te(xe.isInvalidate()?xe.toString(!1):xe.toString(!Ae),Ae))}var pe=m.useMemo(function(){return qoe(l)},[l,E]),ge=m.useMemo(function(){return qoe(s)},[s,E]),de=m.useMemo(function(){return!pe||!q||q.isInvalidate()?!1:pe.lessEquals(q)},[pe,q]),ee=m.useMemo(function(){return!ge||!q||q.isInvalidate()?!1:q.lessEquals(ge)},[ge,q]),me=gqt(j.current,F),Re=Ce(me,2),je=Re[0],ze=Re[1],Le=function(Ae){return pe&&!Ae.lessEquals(pe)?pe:ge&&!ge.lessEquals(Ae)?ge:null},$e=function(Ae){return!Le(Ae)},Je=function(Ae,He){var Ge=Ae,ot=$e(Ge)||Ge.isEmpty();if(!Ge.isEmpty()&&!He&&(Ge=Le(Ge)||Ge,ot=!0),!h&&!p&&ot){var at=Ge.toString(),Ve=Q(at,He);return Ve>=0&&(Ge=rc(uT(at,".",Ve)),$e(Ge)||(Ge=rc(uT(at,".",Ve,!0)))),Ge.equals(q)||(Z(Ge),k==null||k(Ge.isEmpty()?null:Woe($,Ge)),f===void 0&&se(Ge,He)),Ge}return q},Pe=Cqt(),st=function xe(Ae){if(je(),ie.current=Ae,Se(Ae),!P.current){var He=oe(Ae),Ge=rc(He);Ge.isNaN()||Je(Ge,!0)}I==null||I(Ae),Pe(function(){var ot=Ae;C||(ot=Ae.replace(/。/g,".")),ot!==Ae&&xe(ot)})},_e=function(){P.current=!0},De=function(){P.current=!1,st(j.current.value)},et=function(Ae){st(Ae.target.value)},Ie=function(Ae){var He;if(!(Ae&&de||!Ae&&ee)){D.current=!1;var Ge=rc(R.current?Hoe(c):c);Ae||(Ge=Ge.negate());var ot=(q||rc(0)).add(Ge.toString()),at=Je(ot,!1);z==null||z(Woe($,at),{offset:R.current?Hoe(c):c,type:Ae?"up":"down"}),(He=j.current)===null||He===void 0||He.focus()}},Fe=function(Ae){var He=rc(oe(ve)),Ge=He;He.isNaN()?Ge=Je(q,Ae):Ge=Je(He,Ae),f!==void 0?se(q,!1):Ge.isNaN()||se(Ge,!1)},vt=function(){D.current=!0},bt=function(Ae){var He=Ae.key,Ge=Ae.shiftKey;D.current=!0,R.current=Ge,He==="Enter"&&(P.current||(D.current=!1),Fe(!1),N==null||N(Ae)),g!==!1&&!P.current&&["Up","ArrowUp","Down","ArrowDown"].includes(He)&&(Ie(He==="Up"||He==="ArrowUp"),Ae.preventDefault())},wt=function(){D.current=!1,R.current=!1};m.useEffect(function(){var xe=function(Ge){y!==!1&&(Ie(Ge.deltaY<0),Ge.preventDefault())},Ae=j.current;if(Ae)return Ae.addEventListener("wheel",xe),function(){return Ae.removeEventListener("wheel",xe)}},[Ie]);var mt=function(){A&&Fe(!1),V(!1),D.current=!1};return MC(function(){q.isInvalidate()||se(q,!1)},[E,x]),MC(function(){var xe=rc(f);J(xe);var Ae=rc(oe(ve));(!xe.equals(Ae)||!D.current||x)&&se(xe,D.current)},[f]),MC(function(){x&&ze()},[ve]),m.createElement("div",{className:Oe(o,a,(r={},le(r,"".concat(o,"-focused"),F),le(r,"".concat(o,"-disabled"),p),le(r,"".concat(o,"-readonly"),h),le(r,"".concat(o,"-not-a-number"),q.isNaN()),le(r,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!$e(q)),r)),style:i,onFocus:function(){V(!0)},onBlur:mt,onKeyDown:bt,onKeyUp:wt,onCompositionStart:_e,onCompositionEnd:De,onBeforeInput:vt},w&&m.createElement(wqt,{prefixCls:o,upNode:v,downNode:b,upDisabled:de,downDisabled:ee,onStep:Ie}),m.createElement("div",{className:"".concat(L,"-wrap")},m.createElement("input",G({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:c},M,{ref:zl(j,t),className:L,value:ve,onChange:et,disabled:p,readOnly:h}))))}),bxe=m.forwardRef(function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,l=e.addonBefore,u=e.addonAfter,c=e.className,d=e.classNames,f=St(e,$qt),p=m.useRef(null),h=function(b){p.current&&vxe(p.current,b)};return m.createElement(dq,{className:c,triggerFocus:h,prefixCls:o,value:a,disabled:r,style:n,prefix:i,suffix:s,addonAfter:u,addonBefore:l,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},m.createElement(Eqt,G({prefixCls:o,disabled:r,ref:zl(p,t),className:d==null?void 0:d.input},f)))});bxe.displayName="InputNumber";const _qt=e=>{var t;const r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},OD(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new On(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0})},Uoe=(e,t)=>{let{componentCls:r,borderRadiusSM:n,borderRadiusLG:o}=e;const a=t==="lg"?o:n;return{[`&-${t}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${r}-handler-up`]:{borderStartEndRadius:a},[`${r}-handler-down`]:{borderEndEndRadius:a}}}},kqt=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:s,colorError:l,paddingInlineSM:u,paddingBlockSM:c,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:h,handleHoverColor:v,paddingInline:b,paddingBlock:g,handleBg:y,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:$,borderRadiusLG:C,controlWidth:x,handleOpacity:E,handleBorderColor:_,filledHandleBg:k,lineHeightLG:I,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wo(e)),p_(e)),{display:"inline-block",width:x,margin:0,padding:0,borderRadius:o}),rq(e,{[`${t}-handler-wrap`]:{background:y,[`${t}-handler-down`]:{borderBlockStart:`${Be(r)} ${n} ${_}`}}})),oq(e,{[`${t}-handler-wrap`]:{background:k,[`${t}-handler-down`]:{borderBlockStart:`${Be(r)} ${n} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:y}}})),nq(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:I,borderRadius:C,[`input${t}-input`]:{height:N(i).sub(N(r).mul(2)).equal(),padding:`${Be(d)} ${Be(f)}`}},"&-sm":{padding:0,borderRadius:$,[`input${t}-input`]:{height:N(s).sub(N(r).mul(2)).equal(),padding:`${Be(c)} ${Be(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:l}}},"&-group":Object.assign(Object.assign(Object.assign({},wo(e)),uxe(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}},axe(e)),sxe(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},wo(e)),{width:"100%",padding:`${Be(g)} ${Be(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),aq(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:E,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Be(r)} ${n} ${_}`,transition:`all ${h} linear`,"&:active":{background:S},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},wD()),{color:p,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Uoe(e,"lg")),Uoe(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:w}})}]},Pqt=e=>{const{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:u,paddingBlockLG:c,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Be(r)} 0`}},p_(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Be(c)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${Be(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},Tqt=Ka("InputNumber",e=>{const t=Dn(e,FD(e));return[kqt(t),Pqt(t),i_(t)]},_qt,{unitless:{handleOpacity:!0}});var Iqt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r,direction:n}=m.useContext(Er),o=m.useRef(null);m.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:u,addonBefore:c,addonAfter:d,prefix:f,bordered:p,readOnly:h,status:v,controls:b,variant:g,wheel:y=!1}=e,S=Iqt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant","wheel"]),w=r("input-number",u),$=Vl(w),[C,x,E]=Tqt(w,$),{compactSize:_,compactItemClassnames:k}=T0(w,n);let I=m.createElement(uqt,{className:`${w}-handler-up-inner`}),N=m.createElement(vCe,{className:`${w}-handler-down-inner`});const z=typeof b=="boolean"?b:void 0;typeof b=="object"&&(I=typeof b.upIcon>"u"?I:m.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),N=typeof b.downIcon>"u"?N:m.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:O,status:A,isFormItemInput:M,feedbackIcon:L}=m.useContext(qi),j=gS(A,v),H=Hl(q=>{var J;return(J=s??_)!==null&&J!==void 0?J:q}),B=m.useContext(Mu),F=l??B,[V,D]=bS(g,p),P=O&&m.createElement(m.Fragment,null,L),R=Oe({[`${w}-lg`]:H==="large",[`${w}-sm`]:H==="small",[`${w}-rtl`]:n==="rtl",[`${w}-in-form-item`]:M},x),W=`${w}-group`,U=m.createElement(bxe,Object.assign({ref:o,disabled:F,className:Oe(E,$,a,i,k),upHandler:I,downHandler:N,prefixCls:w,readOnly:h,controls:z,prefix:f,suffix:P,wheel:y,addonAfter:d&&m.createElement(Gg,null,m.createElement(SR,{override:!0,status:!0},d)),addonBefore:c&&m.createElement(Gg,null,m.createElement(SR,{override:!0,status:!0},c)),classNames:{input:R,variant:Oe({[`${w}-${V}`]:D},Ah(w,j,O)),affixWrapper:Oe({[`${w}-affix-wrapper-sm`]:H==="small",[`${w}-affix-wrapper-lg`]:H==="large",[`${w}-affix-wrapper-rtl`]:n==="rtl"},x),wrapper:Oe({[`${W}-rtl`]:n==="rtl"},x),groupWrapper:Oe({[`${w}-group-wrapper-sm`]:H==="small",[`${w}-group-wrapper-lg`]:H==="large",[`${w}-group-wrapper-rtl`]:n==="rtl",[`${w}-group-wrapper-${V}`]:D},Ah(`${w}-group-wrapper`,j,O),x)}},S));return C(U)}),Sxe=yxe,Rqt=e=>m.createElement(Yd,{theme:{components:{InputNumber:{handleVisible:!0}}}},m.createElement(yxe,Object.assign({},e)));Sxe._InternalPanelDoNotUseOrYouWillBeFired=Rqt;const Fqt=Sxe,Oqt=e=>{const{getPrefixCls:t,direction:r}=m.useContext(Er),{prefixCls:n,className:o}=e,a=t("input-group",n),i=t("input"),[s,l]=sq(i),u=Oe(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},l,o),c=m.useContext(qi),d=m.useMemo(()=>Object.assign(Object.assign({},c),{isFormItemInput:!1}),[c]);return s(m.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(qi.Provider,{value:d},e.children)))},Nqt=Oqt;function wxe(e,t){const r=m.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return m.useEffect(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function Dqt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Aqt=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Y.createElement(k0,null)}),t},Mqt=Aqt;var Bqt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:u,suffix:c,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:v,styles:b,rootClassName:g,onChange:y,classNames:S,variant:w}=e,$=Bqt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:x,input:E}=Y.useContext(Er),_=C("input",n),k=m.useRef(null),I=Vl(_),[N,z,O]=sq(_,I),{compactSize:A,compactItemClassnames:M}=T0(_,x),L=Hl(ie=>{var te;return(te=i??A)!==null&&te!==void 0?te:ie}),j=Y.useContext(Mu),H=s??j,{status:B,hasFeedback:F,feedbackIcon:V}=m.useContext(qi),D=gS(B,a),P=Dqt(e)||!!F;m.useRef(P);const R=wxe(k,!0),W=ie=>{R(),l==null||l(ie)},U=ie=>{R(),u==null||u(ie)},q=ie=>{R(),y==null||y(ie)},J=(F||c)&&Y.createElement(Y.Fragment,null,c,F&&V),Z=Mqt(d),[Q,oe]=bS(w,o);return N(Y.createElement(vqt,Object.assign({ref:zl(t,k),prefixCls:_,autoComplete:E==null?void 0:E.autoComplete},$,{disabled:H,onBlur:W,onFocus:U,style:Object.assign(Object.assign({},E==null?void 0:E.style),v),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),b),suffix:J,allowClear:Z,className:Oe(h,g,O,I,M,E==null?void 0:E.className),onChange:q,addonAfter:f&&Y.createElement(Gg,null,Y.createElement(SR,{override:!0,status:!0},f)),addonBefore:p&&Y.createElement(Gg,null,Y.createElement(SR,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},S),E==null?void 0:E.classNames),{input:Oe({[`${_}-sm`]:L==="small",[`${_}-lg`]:L==="large",[`${_}-rtl`]:x==="rtl"},S==null?void 0:S.input,(r=E==null?void 0:E.classNames)===null||r===void 0?void 0:r.input,z),variant:Oe({[`${_}-${Q}`]:oe},Ah(_,D)),affixWrapper:Oe({[`${_}-affix-wrapper-sm`]:L==="small",[`${_}-affix-wrapper-lg`]:L==="large",[`${_}-affix-wrapper-rtl`]:x==="rtl"},z),wrapper:Oe({[`${_}-group-rtl`]:x==="rtl"},z),groupWrapper:Oe({[`${_}-group-wrapper-sm`]:L==="small",[`${_}-group-wrapper-lg`]:L==="large",[`${_}-group-wrapper-rtl`]:x==="rtl",[`${_}-group-wrapper-${Q}`]:oe},Ah(`${_}-group-wrapper`,D,F),z)})})))}),fq=Lqt;var zqt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const Vqt=zqt;var Hqt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:Vqt}))};const Wqt=m.forwardRef(Hqt);var qqt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const Uqt=qqt;var Kqt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:Uqt}))};const Gqt=m.forwardRef(Kqt);var Yqt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);oe?m.createElement(Gqt,null):m.createElement(Wqt,null),Qqt={click:"onClick",hover:"onMouseOver"},Zqt=m.forwardRef((e,t)=>{const{visibilityToggle:r=!0}=e,n=typeof r=="object"&&r.visible!==void 0,[o,a]=m.useState(()=>n?r.visible:!1),i=m.useRef(null);m.useEffect(()=>{n&&a(r.visible)},[n,r]);const s=wxe(i),l=()=>{const{disabled:$}=e;$||(o&&s(),a(C=>{var x;const E=!C;return typeof r=="object"&&((x=r.onVisibleChange)===null||x===void 0||x.call(r,E)),E}))},u=$=>{const{action:C="click",iconRender:x=Xqt}=e,E=Qqt[C]||"",_=x(o),k={[E]:l,className:`${$}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault()},onMouseUp:I=>{I.preventDefault()}};return m.cloneElement(m.isValidElement(_)?_:m.createElement("span",null,_),k)},{className:c,prefixCls:d,inputPrefixCls:f,size:p}=e,h=Yqt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=m.useContext(Er),b=v("input",f),g=v("input-password",d),y=r&&u(g),S=Oe(g,c,{[`${g}-${p}`]:!!p}),w=Object.assign(Object.assign({},Lp(h,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:b,suffix:y});return p&&(w.size=p),m.createElement(fq,Object.assign({ref:zl(t,i)},w))}),Jqt=Zqt;var eUt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,inputPrefixCls:n,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:u,disabled:c,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,v=eUt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:g}=m.useContext(Er),y=m.useRef(!1),S=b("input-search",r),w=b("input",n),{compactSize:$}=T0(S,g),C=Hl(B=>{var F;return(F=a??$)!==null&&F!==void 0?F:B}),x=m.useRef(null),E=B=>{B&&B.target&&B.type==="click"&&d&&d(B.target.value,B,{source:"clear"}),f&&f(B)},_=B=>{var F;document.activeElement===((F=x.current)===null||F===void 0?void 0:F.input)&&B.preventDefault()},k=B=>{var F,V;d&&d((V=(F=x.current)===null||F===void 0?void 0:F.input)===null||V===void 0?void 0:V.value,B,{source:"input"})},I=B=>{y.current||u||k(B)},N=typeof s=="boolean"?m.createElement(gCe,null):null,z=`${S}-button`;let O;const A=s||{},M=A.type&&A.type.__ANT_BUTTON===!0;M||A.type==="button"?O=mp(A,Object.assign({onMouseDown:_,onClick:B=>{var F,V;(V=(F=A==null?void 0:A.props)===null||F===void 0?void 0:F.onClick)===null||V===void 0||V.call(F,B),k(B)},key:"enterButton"},M?{className:z,size:C}:{})):O=m.createElement(Yg,{className:z,type:s?"primary":void 0,size:C,disabled:c,key:"enterButton",onMouseDown:_,onClick:k,loading:u,icon:N},s),l&&(O=[O,mp(l,{key:"addonAfter"})]);const L=Oe(S,{[`${S}-rtl`]:g==="rtl",[`${S}-${C}`]:!!C,[`${S}-with-button`]:!!s},o),j=B=>{y.current=!0,p==null||p(B)},H=B=>{y.current=!1,h==null||h(B)};return m.createElement(fq,Object.assign({ref:zl(x,t),onPressEnter:I},v,{size:C,onCompositionStart:j,onCompositionEnd:H,prefixCls:w,addonAfter:O,suffix:i,onChange:E,className:L,disabled:c}))}),rUt=tUt;var nUt=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,oUt=["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","white-space"],i4={},Yl;function aUt(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&&i4[r])return i4[r];var n=window.getComputedStyle(e),o=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")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=oUt.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(i4[r]=l),l}function iUt(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;Yl||(Yl=document.createElement("textarea"),Yl.setAttribute("tab-index","-1"),Yl.setAttribute("aria-hidden","true"),document.body.appendChild(Yl)),e.getAttribute("wrap")?Yl.setAttribute("wrap",e.getAttribute("wrap")):Yl.removeAttribute("wrap");var o=aUt(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Yl.setAttribute("style","".concat(l,";").concat(nUt)),Yl.value=e.value||e.placeholder||"";var u=void 0,c=void 0,d,f=Yl.scrollHeight;if(s==="border-box"?f+=i:s==="content-box"&&(f-=a),r!==null||n!==null){Yl.value=" ";var p=Yl.scrollHeight-a;r!==null&&(u=p*r,s==="border-box"&&(u=u+a+i),f=Math.max(u,f)),n!==null&&(c=p*n,s==="border-box"&&(c=c+a+i),d=f>c?"":"hidden",f=Math.min(c,f))}var h={height:f,overflowY:d,resize:"none"};return u&&(h.minHeight=u),c&&(h.maxHeight=c),h}var sUt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],s4=0,l4=1,u4=2,lUt=m.forwardRef(function(e,t){var r=e,n=r.prefixCls;r.onPressEnter;var o=r.defaultValue,a=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,c=r.disabled,d=r.onChange;r.onInternalAutoSize;var f=St(r,sUt),p=So(o,{value:a,postState:function(P){return P??""}}),h=Ce(p,2),v=h[0],b=h[1],g=function(P){b(P.target.value),d==null||d(P)},y=m.useRef();m.useImperativeHandle(t,function(){return{textArea:y.current}});var S=m.useMemo(function(){return i&&or(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=Ce(S,2),$=w[0],C=w[1],x=!!i,E=function(){try{if(document.activeElement===y.current){var P=y.current,R=P.selectionStart,W=P.selectionEnd,U=P.scrollTop;y.current.setSelectionRange(R,W),y.current.scrollTop=U}}catch{}},_=m.useState(u4),k=Ce(_,2),I=k[0],N=k[1],z=m.useState(),O=Ce(z,2),A=O[0],M=O[1],L=function(){N(s4)};Fn(function(){x&&L()},[a,$,C,x]),Fn(function(){if(I===s4)N(l4);else if(I===l4){var D=iUt(y.current,!1,$,C);N(u4),M(D)}else E()},[I]);var j=m.useRef(),H=function(){rn.cancel(j.current)},B=function(P){I===u4&&(s==null||s(P),i&&(H(),j.current=rn(function(){L()})))};m.useEffect(function(){return H},[]);var F=x?A:null,V=be(be({},u),F);return(I===s4||I===l4)&&(V.overflowY="hidden",V.overflowX="hidden"),m.createElement(ev,{onResize:B,disabled:!(i||s)},m.createElement("textarea",G({},f,{ref:y,style:V,className:Oe(n,l,le({},"".concat(n,"-disabled"),c)),disabled:c,value:v,onChange:g})))}),uUt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],cUt=Y.forwardRef(function(e,t){var r,n,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,u=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,b=e.showCount,g=e.count,y=e.className,S=e.style,w=e.disabled,$=e.hidden,C=e.classNames,x=e.styles,E=e.onResize,_=St(e,uUt),k=So(o,{value:a,defaultValue:o}),I=Ce(k,2),N=I[0],z=I[1],O=N==null?"":String(N),A=Y.useState(!1),M=Ce(A,2),L=M[0],j=M[1],H=Y.useRef(!1),B=Y.useState(null),F=Ce(B,2),V=F[0],D=F[1],P=m.useRef(null),R=function(){var $e;return($e=P.current)===null||$e===void 0?void 0:$e.textArea},W=function(){R().focus()};m.useImperativeHandle(t,function(){return{resizableTextArea:P.current,focus:W,blur:function(){R().blur()}}}),m.useEffect(function(){j(function(Le){return!w&&Le})},[w]);var U=Y.useState(null),q=Ce(U,2),J=q[0],Z=q[1];Y.useEffect(function(){if(J){var Le;(Le=R()).setSelectionRange.apply(Le,xt(J))}},[J]);var Q=gxe(g,b),oe=(r=Q.max)!==null&&r!==void 0?r:c,ie=Number(oe)>0,te=Q.strategy(O),ae=!!oe&&te>oe,fe=function($e,Je){var Pe=Je;!H.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Je)>Q.max&&(Pe=Q.exceedFormatter(Je,{max:Q.max}),Je!==Pe&&Z([R().selectionStart||0,R().selectionEnd||0])),z(Pe),kR($e.currentTarget,$e,l,Pe)},ve=function($e){H.current=!0,d==null||d($e)},Se=function($e){H.current=!1,fe($e,$e.currentTarget.value),f==null||f($e)},se=function($e){fe($e,$e.target.value)},pe=function($e){var Je=_.onPressEnter,Pe=_.onKeyDown;$e.key==="Enter"&&Je&&Je($e),Pe==null||Pe($e)},ge=function($e){j(!0),i==null||i($e)},de=function($e){j(!1),s==null||s($e)},ee=function($e){z(""),W(),kR(R(),$e,l)},me=p,Re;Q.show&&(Q.showFormatter?Re=Q.showFormatter({value:O,count:te,maxLength:oe}):Re="".concat(te).concat(ie?" / ".concat(oe):""),me=Y.createElement(Y.Fragment,null,me,Y.createElement("span",{className:Oe("".concat(v,"-data-count"),C==null?void 0:C.count),style:x==null?void 0:x.count},Re)));var je=function($e){var Je;E==null||E($e),(Je=R())!==null&&Je!==void 0&&Je.style.height&&D(!0)},ze=!_.autoSize&&!b&&!u;return Y.createElement(dq,{value:O,allowClear:u,handleReset:ee,suffix:me,prefixCls:v,classNames:be(be({},C),{},{affixWrapper:Oe(C==null?void 0:C.affixWrapper,(n={},le(n,"".concat(v,"-show-count"),b),le(n,"".concat(v,"-textarea-allow-clear"),u),n))}),disabled:w,focused:L,className:Oe(y,ae&&"".concat(v,"-out-of-range")),style:be(be({},S),V&&!ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Re=="string"?Re:void 0}},hidden:$},Y.createElement(lUt,G({},_,{maxLength:c,onKeyDown:pe,onChange:se,onFocus:ge,onBlur:de,onCompositionStart:ve,onCompositionEnd:Se,className:Oe(C==null?void 0:C.textarea),style:be(be({},x==null?void 0:x.textarea),{},{resize:S==null?void 0:S.resize}),disabled:w,prefixCls:v,onResize:je,ref:P})))}),dUt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:u,rootClassName:c,className:d,variant:f}=e,p=dUt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:h,direction:v}=m.useContext(Er),b=Hl(a),g=m.useContext(Mu),y=i??g,{status:S,hasFeedback:w,feedbackIcon:$}=m.useContext(qi),C=gS(S,s),x=m.useRef(null);m.useImperativeHandle(t,()=>{var M;return{resizableTextArea:(M=x.current)===null||M===void 0?void 0:M.resizableTextArea,focus:L=>{var j,H;jqt((H=(j=x.current)===null||j===void 0?void 0:j.resizableTextArea)===null||H===void 0?void 0:H.textArea,L)},blur:()=>{var L;return(L=x.current)===null||L===void 0?void 0:L.blur()}}});const E=h("input",n);let _;typeof l=="object"&&(l!=null&&l.clearIcon)?_=l:l&&(_={clearIcon:m.createElement(k0,null)});const k=Vl(E),[I,N,z]=sq(E,k),[O,A]=bS(f,o);return I(m.createElement(cUt,Object.assign({},p,{disabled:y,allowClear:_,className:Oe(z,k,d,c),classNames:Object.assign(Object.assign({},u),{textarea:Oe({[`${E}-sm`]:b==="small",[`${E}-lg`]:b==="large"},N,u==null?void 0:u.textarea),variant:Oe({[`${E}-${O}`]:A},Ah(E,C)),affixWrapper:Oe(`${E}-textarea-affix-wrapper`,{[`${E}-affix-wrapper-rtl`]:v==="rtl",[`${E}-affix-wrapper-sm`]:b==="small",[`${E}-affix-wrapper-lg`]:b==="large",[`${E}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},N)}),prefixCls:E,suffix:w&&m.createElement("span",{className:`${E}-textarea-suffix`},$),ref:x})))}),pUt=fUt,m_=fq;m_.Group=Nqt;m_.Search=rUt;m_.TextArea=pUt;m_.Password=Jqt;const AD=m_;var mUt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const hUt=mUt;var vUt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:hUt}))};const Cxe=m.forwardRef(vUt);var gUt={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const bUt=gUt;var yUt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:bUt}))};const xxe=m.forwardRef(yUt);var SUt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const wUt=SUt;var CUt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:wUt}))};const xUt=m.forwardRef(CUt);function $Ut(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function EUt(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function pq(e,t){const r={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:r};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:r};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:r};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:r};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:r}}}function _Ut(e){return e?Array.isArray(e)?e:[e]:[]}function PR(e){const{format:t,picker:r,showHour:n,showMinute:o,showSecond:a,use12Hours:i}=e,s=_Ut(t)[0],l=Object.assign({},e);return t&&Array.isArray(t)&&(l.format=s),s&&typeof s=="string"&&(!s.includes("s")&&a===void 0&&(l.showSecond=!1),!s.includes("m")&&o===void 0&&(l.showMinute=!1),!s.includes("H")&&!s.includes("h")&&!s.includes("K")&&!s.includes("k")&&n===void 0&&(l.showHour=!1),(s.includes("a")||s.includes("A"))&&i===void 0&&(l.use12Hours=!0)),r==="time"?l:(typeof s=="function"&&delete l.format,{showTime:l})}function $xe(e,t,r){if(e===!1)return!1;const n={clearIcon:t??r};return typeof e=="object"?Object.assign(Object.assign({},n),e):n}function kUt(e){return m.createElement(Yg,Object.assign({size:"small",type:"primary"},e))}const PUt={button:kUt},Exe=PUt;var TUt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,getPopupContainer:i,className:s,style:l,placement:u,size:c,disabled:d,bordered:f=!0,placeholder:p,popupClassName:h,dropdownClassName:v,status:b,clearIcon:g,allowClear:y,rootClassName:S,variant:w}=r,$=TUt(r,["prefixCls","getPopupContainer","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName","variant"]),C=m.useRef(null),{getPrefixCls:x,direction:E,getPopupContainer:_,rangePicker:k}=m.useContext(Er),I=x("picker",a),{compactSize:N,compactItemClassnames:z}=T0(I,E),{format:O,showTime:A,picker:M}=r,L=x(),[j,H]=bS(w,f),B=Vl(I),[F,V,D]=cxe(I,B),P=Object.assign(Object.assign({},A?PR(Object.assign({format:O,picker:M},A)):{}),M==="time"?PR(Object.assign(Object.assign({format:O},r),{picker:M})):{}),R=Hl(fe=>{var ve;return(ve=c??N)!==null&&ve!==void 0?ve:fe}),W=m.useContext(Mu),U=d??W,q=m.useContext(qi),{hasFeedback:J,status:Z,feedbackIcon:Q}=q,oe=m.createElement(m.Fragment,null,M==="time"?m.createElement(xxe,null):m.createElement(Cxe,null),J&&Q);m.useImperativeHandle(n,()=>({focus:()=>{var fe;return(fe=C.current)===null||fe===void 0?void 0:fe.focus()},blur:()=>{var fe;return(fe=C.current)===null||fe===void 0?void 0:fe.blur()}}));const[ie]=n_("Calendar",dR),te=Object.assign(Object.assign({},ie),r.locale),[ae]=$D("DatePicker",(o=r.popupStyle)===null||o===void 0?void 0:o.zIndex);return F(m.createElement(Gg,null,m.createElement(tWt,Object.assign({separator:m.createElement("span",{"aria-label":"to",className:`${I}-separator`},m.createElement(xUt,null)),disabled:U,ref:C,dropdownAlign:pq(E,u),placeholder:EUt(te,M,p),suffixIcon:oe,prevIcon:m.createElement("span",{className:`${I}-prev-icon`}),nextIcon:m.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${L}-slide-up`},$,P,{className:Oe({[`${I}-${R}`]:R,[`${I}-${j}`]:H},Ah(I,gS(Z,b),J),V,z,s,k==null?void 0:k.className,D,B,S),style:Object.assign(Object.assign({},k==null?void 0:k.style),l),locale:te.lang,prefixCls:I,getPopupContainer:i||_,generateConfig:e,components:Exe,direction:E,dropdownClassName:Oe(V,h||v,D,B,S),popupStyle:Object.assign(Object.assign({},r.popupStyle),{zIndex:ae}),allowClear:$xe(y,g,m.createElement(k0,null))}))))})}var RUt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var h;const{prefixCls:v,getPopupContainer:b,style:g,className:y,rootClassName:S,size:w,bordered:$,placement:C,placeholder:x,popupClassName:E,dropdownClassName:_,disabled:k,status:I,clearIcon:N,allowClear:z,variant:O}=f,A=RUt(f,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear","variant"]),{getPrefixCls:M,direction:L,getPopupContainer:j,[c]:H}=m.useContext(Er),B=M("picker",v),{compactSize:F,compactItemClassnames:V}=T0(B,L),D=m.useRef(null),{format:P,showTime:R}=f,[W,U]=bS(O,$),q=Vl(B),[J,Z,Q]=cxe(B,q);m.useImperativeHandle(p,()=>({focus:()=>{var ze;return(ze=D.current)===null||ze===void 0?void 0:ze.focus()},blur:()=>{var ze;return(ze=D.current)===null||ze===void 0?void 0:ze.blur()}}));const oe={showToday:!0};let ie={};l&&(ie.picker=l);const te=l||f.picker;ie=Object.assign(Object.assign(Object.assign({},ie),R?PR(Object.assign({format:P,picker:te},R)):{}),te==="time"?PR(Object.assign(Object.assign({format:P},f),{picker:te})):{});const ae=M(),fe=Hl(ze=>{var Le;return(Le=w??F)!==null&&Le!==void 0?Le:ze}),ve=m.useContext(Mu),Se=k??ve,se=m.useContext(qi),{hasFeedback:pe,status:ge,feedbackIcon:de}=se,ee=m.createElement(m.Fragment,null,te==="time"?m.createElement(xxe,null):m.createElement(Cxe,null),pe&&de),[me]=n_("DatePicker",dR),Re=Object.assign(Object.assign({},me),f.locale),[je]=$D("DatePicker",(h=f.popupStyle)===null||h===void 0?void 0:h.zIndex);return J(m.createElement(Gg,null,m.createElement(GHt,Object.assign({ref:D,placeholder:$Ut(Re,te,x),suffixIcon:ee,dropdownAlign:pq(L,C),prevIcon:m.createElement("span",{className:`${B}-prev-icon`}),nextIcon:m.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${ae}-slide-up`},oe,A,ie,{locale:Re.lang,className:Oe({[`${B}-${fe}`]:fe,[`${B}-${W}`]:U},Ah(B,gS(ge,I),pe),Z,V,H==null?void 0:H.className,y,Q,q,S),style:Object.assign(Object.assign({},H==null?void 0:H.style),g),prefixCls:B,getPopupContainer:b||j,generateConfig:e,components:Exe,direction:L,disabled:Se,dropdownClassName:Oe(Z,Q,q,S,E||_),popupStyle:Object.assign(Object.assign({},f.popupStyle),{zIndex:je}),allowClear:$xe(z,N,m.createElement(k0,null))}))))});return u&&(d.displayName=u),d}const r=t(),n=t("week","WeekPicker"),o=t("month","MonthPicker"),a=t("year","YearPicker"),i=t("time","TimePicker"),s=t("quarter","QuarterPicker");return{DatePicker:r,WeekPicker:n,MonthPicker:o,YearPicker:a,TimePicker:i,QuarterPicker:s}}function _xe(e){const{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:o,TimePicker:a,QuarterPicker:i}=FUt(e),s=IUt(e),l=t;return l.WeekPicker=r,l.MonthPicker=n,l.YearPicker=o,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=i,l}const CS=_xe(aHt);function kxe(e){const t=pq(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const OUt=WW(CS,"picker",null,kxe);CS._InternalPanelDoNotUseOrYouWillBeFired=OUt;const NUt=WW(CS.RangePicker,"picker",null,kxe);CS._InternalRangePanelDoNotUseOrYouWillBeFired=NUt;CS.generatePicker=_xe;const Pxe=CS;function Koe(e){return["small","middle","large"].includes(e)}function Goe(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Txe=Y.createContext({latestIndex:0}),DUt=Txe.Provider,AUt=e=>{let{className:t,index:r,children:n,split:o,style:a}=e;const{latestIndex:i}=m.useContext(Txe);return n==null?null:m.createElement(m.Fragment,null,m.createElement("div",{className:t,style:a},n),r{var r,n;const{getPrefixCls:o,space:a,direction:i}=m.useContext(Er),{size:s=(a==null?void 0:a.size)||"small",align:l,className:u,rootClassName:c,children:d,direction:f="horizontal",prefixCls:p,split:h,style:v,wrap:b=!1,classNames:g,styles:y}=e,S=BUt(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,$]=Array.isArray(s)?s:[s,s],C=Koe($),x=Koe(w),E=Goe($),_=Goe(w),k=Nh(d,{keepEmpty:!0}),I=l===void 0&&f==="horizontal"?"center":l,N=o("space",p),[z,O,A]=Fwe(N),M=Oe(N,a==null?void 0:a.className,O,`${N}-${f}`,{[`${N}-rtl`]:i==="rtl",[`${N}-align-${I}`]:I,[`${N}-gap-row-${$}`]:C,[`${N}-gap-col-${w}`]:x},u,c,A),L=Oe(`${N}-item`,(r=g==null?void 0:g.item)!==null&&r!==void 0?r:(n=a==null?void 0:a.classNames)===null||n===void 0?void 0:n.item);let j=0;const H=k.map((V,D)=>{var P,R;V!=null&&(j=D);const W=V&&V.key||`${L}-${D}`;return m.createElement(MUt,{className:L,key:W,index:D,split:h,style:(P=y==null?void 0:y.item)!==null&&P!==void 0?P:(R=a==null?void 0:a.styles)===null||R===void 0?void 0:R.item},V)}),B=m.useMemo(()=>({latestIndex:j}),[j]);if(k.length===0)return null;const F={};return b&&(F.flexWrap="wrap"),!x&&_&&(F.columnGap=w),!C&&E&&(F.rowGap=$),z(m.createElement("div",Object.assign({ref:t,className:M,style:Object.assign(Object.assign(Object.assign({},F),a==null?void 0:a.style),v)},S),m.createElement(DUt,{value:B},H)))}),Ixe=jUt;Ixe.Compact=V6t;const LUt=Ixe;function TR(e){const[t,r]=m.useState(e);return m.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const zUt=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},VUt=zUt,HUt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Be(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Yoe=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},WUt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},wo(e)),HUt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Yoe(e,e.controlHeightSM)),"&-large":Object.assign({},Yoe(e,e.controlHeightLG))})}},qUt=e=>{const{formItemCls:t,iconCls:r,componentCls:n,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:c,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},wo(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:i,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:c},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:HW,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},UUt=e=>{const{componentCls:t,formItemCls:r}=e;return{[`${t}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}}}}},KUt=e=>{const{componentCls:t,formItemCls:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${r}-label, + > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},gb=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),GUt=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:gb(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},YUt=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${t}-vertical`]:{[r]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${r}-label, + .${n}-col-24${r}-label, + .${n}-col-xl-24${r}-label`]:gb(e),[`@media (max-width: ${Be(e.screenXSMax)})`]:[GUt(e),{[t]:{[`.${n}-col-xs-24${r}-label`]:gb(e)}}],[`@media (max-width: ${Be(e.screenSMMax)})`]:{[t]:{[`.${n}-col-sm-24${r}-label`]:gb(e)}},[`@media (max-width: ${Be(e.screenMDMax)})`]:{[t]:{[`.${n}-col-md-24${r}-label`]:gb(e)}},[`@media (max-width: ${Be(e.screenLGMax)})`]:{[t]:{[`.${n}-col-lg-24${r}-label`]:gb(e)}}}},XUt=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),Rxe=(e,t)=>Dn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),mq=Ka("Form",(e,t)=>{let{rootPrefixCls:r}=t;const n=Rxe(e,r);return[WUt(n),qUt(n),VUt(n),UUt(n),KUt(n),YUt(n),Z8t(n),HW]},XUt,{order:-1e3}),Xoe=[];function c4(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const QUt=e=>{let{help:t,helpStatus:r,errors:n=Xoe,warnings:o=Xoe,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:l}=m.useContext(MW),u=`${l}-item-explain`,c=Vl(l),[d,f,p]=mq(l,c),h=m.useMemo(()=>Ane(l),[l]),v=TR(n),b=TR(o),g=m.useMemo(()=>t!=null?[c4(t,"help",r)]:[].concat(xt(v.map((S,w)=>c4(S,"error","error",w))),xt(b.map((S,w)=>c4(S,"warning","warning",w)))),[t,r,v,b]),y={};return i&&(y.id=`${i}_help`),d(m.createElement(_0,{motionDeadline:h.motionDeadline,motionName:`${l}-show-help`,visible:!!g.length,onVisibleChanged:s},S=>{const{className:w,style:$}=S;return m.createElement("div",Object.assign({},y,{className:Oe(u,w,p,c,a,f),style:$,role:"alert"}),m.createElement(rLt,Object.assign({keys:g},Ane(l),{motionName:`${l}-show-help-item`,component:!1}),C=>{const{key:x,error:E,errorStatus:_,className:k,style:I}=C;return m.createElement("div",{key:x,className:Oe(k,{[`${u}-${_}`]:_}),style:I},E)}))}))},Fxe=QUt,ZUt=["parentNode"],JUt="form_item";function HC(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Oxe(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:ZUt.includes(r)?`${JUt}_${r}`:r}function Nxe(e,t,r,n,o,a){let i=n;return a!==void 0?i=a:r.validating?i="validating":e.length?i="error":t.length?i="warning":(r.touched||o&&r.validated)&&(i="success"),i}function Qoe(e){return HC(e).join("_")}function Dxe(e){const[t]=AW(),r=m.useRef({}),n=m.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Qoe(o);a?r.current[i]=a:delete r.current[i]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=HC(o),s=Oxe(i,n.__INTERNAL__.name),l=s?document.getElementById(s):null;l&&a6t(l,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=Qoe(o);return r.current[a]}}),[e,t]);return[n]}var eKt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const r=m.useContext(Mu),{getPrefixCls:n,direction:o,form:a}=m.useContext(Er),{prefixCls:i,className:s,rootClassName:l,size:u,disabled:c=r,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:v,wrapperCol:b,hideRequiredMark:g,layout:y="horizontal",scrollToFirstError:S,requiredMark:w,onFinishFailed:$,name:C,style:x,feedbackIcons:E,variant:_}=e,k=eKt(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Hl(u),N=m.useContext(NSe),z=m.useMemo(()=>w!==void 0?w:g?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[g,w,a]),O=f??(a==null?void 0:a.colon),A=n("form",i),M=Vl(A),[L,j,H]=mq(A,M),B=Oe(A,`${A}-${y}`,{[`${A}-hide-required-mark`]:z===!1,[`${A}-rtl`]:o==="rtl",[`${A}-${I}`]:I},H,M,j,a==null?void 0:a.className,s,l),[F]=Dxe(d),{__INTERNAL__:V}=F;V.name=C;const D=m.useMemo(()=>({name:C,labelAlign:p,labelCol:v,labelWrap:h,wrapperCol:b,vertical:y==="vertical",colon:O,requiredMark:z,itemRef:V.itemRef,form:F,feedbackIcons:E}),[C,p,v,b,y,O,z,F,E]);m.useImperativeHandle(t,()=>F);const P=(W,U)=>{if(W){let q={block:"nearest"};typeof W=="object"&&(q=W),F.scrollToField(U,q)}},R=W=>{if($==null||$(W),W.errorFields.length){const U=W.errorFields[0].name;if(S!==void 0){P(S,U);return}a&&a.scrollToFirstError!==void 0&&P(a.scrollToFirstError,U)}};return L(m.createElement(Qwe.Provider,{value:_},m.createElement(YSe,{disabled:c},m.createElement(o_.Provider,{value:I},m.createElement(Xwe,{validateMessages:N},m.createElement(vp.Provider,{value:D},m.createElement(vS,Object.assign({id:C},k,{name:C,onFinishFailed:R,form:F,style:Object.assign(Object.assign({},a==null?void 0:a.style),x),className:B}))))))))},rKt=m.forwardRef(tKt),nKt=rKt;function oKt(e){if(typeof e=="function")return e;const t=Nh(e);return t.length<=1?t[0]:t}const Axe=()=>{const{status:e,errors:t=[],warnings:r=[]}=m.useContext(qi);return{status:e,errors:t,warnings:r}};Axe.Context=qi;const aKt=Axe;function iKt(e){const[t,r]=m.useState(e),n=m.useRef(null),o=m.useRef([]),a=m.useRef(!1);m.useEffect(()=>(a.current=!1,()=>{a.current=!0,rn.cancel(n.current),n.current=null}),[]);function i(s){a.current||(n.current===null&&(o.current=[],n.current=rn(()=>{n.current=null,r(l=>{let u=l;return o.current.forEach(c=>{u=c(u)}),u})})),o.current.push(s))}return[t,i]}function sKt(){const{itemRef:e}=m.useContext(vp),t=m.useRef({});function r(n,o){const a=o&&typeof o=="object"&&o.ref,i=n.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=zl(e(n),a)),t.current.ref}return r}const lKt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},uKt=_W(["Form","item-item"],(e,t)=>{let{rootPrefixCls:r}=t;const n=Rxe(e,r);return[lKt(n)]}),cKt=e=>{const{prefixCls:t,status:r,wrapperCol:n,children:o,errors:a,warnings:i,_internalItemRender:s,extra:l,help:u,fieldId:c,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=m.useContext(vp),v=n||h.wrapperCol||{},b=Oe(`${p}-control`,v.className),g=m.useMemo(()=>Object.assign({},h),[h]);delete g.labelCol,delete g.wrapperCol;const y=m.createElement("div",{className:`${p}-control-input`},m.createElement("div",{className:`${p}-control-input-content`},o)),S=m.useMemo(()=>({prefixCls:t,status:r}),[t,r]),w=d!==null||a.length||i.length?m.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},m.createElement(MW.Provider,{value:S},m.createElement(Fxe,{fieldId:c,errors:a,warnings:i,help:u,helpStatus:r,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&m.createElement("div",{style:{width:0,height:d}})):null,$={};c&&($.id=`${c}_extra`);const C=l?m.createElement("div",Object.assign({},$,{className:`${p}-extra`}),l):null,x=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:y,errorList:w,extra:C}):m.createElement(m.Fragment,null,y,w,C);return m.createElement(vp.Provider,{value:g},m.createElement(ea,Object.assign({},v,{className:b}),x),m.createElement(uKt,{prefixCls:t}))},dKt=cKt;var fKt={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const pKt=fKt;var mKt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:pKt}))};const hKt=m.forwardRef(mKt);var vKt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:r,htmlFor:n,labelCol:o,labelAlign:a,colon:i,required:s,requiredMark:l,tooltip:u}=e;var c;const[d]=n_("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:v,colon:b}=m.useContext(vp);if(!r)return null;const g=o||h||{},y=a||p,S=`${t}-item-label`,w=Oe(S,y==="left"&&`${S}-left`,g.className,{[`${S}-wrap`]:!!v});let $=r;const C=i===!0||b!==!1&&i!==!1;C&&!f&&typeof r=="string"&&r.trim()!==""&&($=r.replace(/[:|:]\s*$/,""));const E=gKt(u);if(E){const{icon:N=m.createElement(hKt,null)}=E,z=vKt(E,["icon"]),O=m.createElement(TCe,Object.assign({},z),m.cloneElement(N,{className:`${t}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));$=m.createElement(m.Fragment,null,$,O)}const _=l==="optional",k=typeof l=="function";k?$=l($,{required:!!s}):_&&!s&&($=m.createElement(m.Fragment,null,$,m.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((c=Ug.Form)===null||c===void 0?void 0:c.optional))));const I=Oe({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:_||k,[`${t}-item-no-colon`]:!C});return m.createElement(ea,Object.assign({},g,{className:w}),m.createElement("label",{htmlFor:n,className:I,title:typeof r=="string"?r:""},$))},yKt=bKt,SKt={success:Cwe,warning:$we,error:k0,validating:TW};function Mxe(e){let{children:t,errors:r,warnings:n,hasFeedback:o,validateStatus:a,prefixCls:i,meta:s,noStyle:l}=e;const u=`${i}-item`,{feedbackIcons:c}=m.useContext(vp),d=Nxe(r,n,s,null,!!o,a),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:v}=m.useContext(qi),b=m.useMemo(()=>{var g;let y;if(o){const w=o!==!0&&o.icons||c,$=d&&((g=w==null?void 0:w({status:d,errors:r,warnings:n}))===null||g===void 0?void 0:g[d]),C=d&&SKt[d];y=$!==!1&&C?m.createElement("span",{className:Oe(`${u}-feedback-icon`,`${u}-feedback-icon-${d}`)},$||m.createElement(C,null)):null}const S={status:d||"",errors:r,warnings:n,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return l&&(S.status=(d??p)||"",S.isFormItemInput=f,S.hasFeedback=!!(o??h),S.feedbackIcon=o!==void 0?S.feedbackIcon:v),S},[d,o,l,f,p]);return m.createElement(qi.Provider,{value:b},t)}var wKt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{if(E&&w.current){const M=getComputedStyle(w.current);I(parseInt(M.marginBottom,10))}},[E,_]);const N=M=>{M||I(null)},O=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=M?$:u.errors,j=M?C:u.warnings;return Nxe(L,j,u,"",!!c,l)}(),A=Oe(y,r,n,{[`${y}-with-help`]:x||$.length||C.length,[`${y}-has-feedback`]:O&&c,[`${y}-has-success`]:O==="success",[`${y}-has-warning`]:O==="warning",[`${y}-has-error`]:O==="error",[`${y}-is-validating`]:O==="validating",[`${y}-hidden`]:d});return m.createElement("div",{className:A,style:o,ref:w},m.createElement(gp,Object.assign({className:`${y}-row`},Lp(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),m.createElement(yKt,Object.assign({htmlFor:p},e,{requiredMark:S,required:h??v,prefixCls:t})),m.createElement(dKt,Object.assign({},e,u,{errors:$,warnings:C,prefixCls:t,status:O,help:a,marginBottom:k,onErrorVisibleChanged:N}),m.createElement(Ywe.Provider,{value:b},m.createElement(Mxe,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:c,validateStatus:O},f)))),!!k&&m.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-k}}))}const xKt="__SPLIT__";function $Kt(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const EKt=m.memo(e=>{let{children:t}=e;return t},(e,t)=>$Kt(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function Zoe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _Kt(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:u,label:c,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:v}=e,{getPrefixCls:b}=m.useContext(Er),{name:g}=m.useContext(vp),y=oKt(l),S=typeof y=="function",w=m.useContext(Ywe),{validateTrigger:$}=m.useContext(Xg),C=p!==void 0?p:$,x=t!=null,E=b("form",a),_=Vl(E),[k,I,N]=mq(E,_);xW();const z=m.useContext(T$),O=m.useRef(),[A,M]=iKt({}),[L,j]=mg(()=>Zoe()),H=W=>{const U=z==null?void 0:z.getKey(W.name);if(j(W.destroy?Zoe():W,!0),r&&v!==!1&&w){let q=W.name;if(W.destroy)q=O.current||q;else if(U!==void 0){const[J,Z]=U;q=[J].concat(xt(Z)),O.current=q}w(W,q)}},B=(W,U)=>{M(q=>{const J=Object.assign({},q),Q=[].concat(xt(W.name.slice(0,-1)),xt(U)).join(xKt);return W.destroy?delete J[Q]:J[Q]=W,J})},[F,V]=m.useMemo(()=>{const W=xt(L.errors),U=xt(L.warnings);return Object.values(A).forEach(q=>{W.push.apply(W,xt(q.errors||[])),U.push.apply(U,xt(q.warnings||[]))}),[W,U]},[A,L.errors,L.warnings]),D=sKt();function P(W,U,q){return r&&!h?m.createElement(Mxe,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:L,errors:F,warnings:V,noStyle:!0},W):m.createElement(CKt,Object.assign({key:"row"},e,{className:Oe(n,N,_,I),prefixCls:E,fieldId:U,isRequired:q,errors:F,warnings:V,meta:L,onSubItemMetaChange:B}),W)}if(!x&&!S&&!o)return k(P(y));let R={};return typeof c=="string"?R.label=c:t&&(R.label=String(t)),d&&(R=Object.assign(Object.assign({},R),d)),k(m.createElement(DW,Object.assign({},e,{messageVariables:R,trigger:f,validateTrigger:C,onMetaChange:H}),(W,U,q)=>{const J=HC(t).length&&U?U.name:[],Z=Oxe(J,g),Q=u!==void 0?u:!!(s&&s.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const ae=te(q);return ae&&ae.required&&!ae.warningOnly}return!1})),oe=Object.assign({},W);let ie=null;if(Array.isArray(y)&&x)ie=y;else if(!(S&&(!(i||o)||x))){if(!(o&&!S&&!x))if(w1(y)){const te=Object.assign(Object.assign({},y.props),oe);if(te.id||(te.id=Z),v||F.length>0||V.length>0||e.extra){const ve=[];(v||F.length>0)&&ve.push(`${Z}_help`),e.extra&&ve.push(`${Z}_extra`),te["aria-describedby"]=ve.join(" ")}F.length>0&&(te["aria-invalid"]="true"),Q&&(te["aria-required"]="true"),hS(y)&&(te.ref=D(J,y)),new Set([].concat(xt(HC(f)),xt(HC(C)))).forEach(ve=>{te[ve]=function(){for(var Se,se,pe,ge,de,ee=arguments.length,me=new Array(ee),Re=0;Re{var{prefixCls:t,children:r}=e,n=PKt(e,["prefixCls","children"]);const{getPrefixCls:o}=m.useContext(Er),a=o("form",t),i=m.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return m.createElement(qwe,Object.assign({},n),(s,l,u)=>m.createElement(MW.Provider,{value:i},r(s.map(c=>Object.assign(Object.assign({},c),{fieldKey:c.key})),l,{errors:u.errors,warnings:u.warnings})))},IKt=TKt;function RKt(){const{form:e}=m.useContext(vp);return e}const zp=nKt;zp.Item=kKt;zp.List=IKt;zp.ErrorList=Fxe;zp.useForm=Dxe;zp.useFormInstance=RKt;zp.useWatch=Gwe;zp.Provider=Xwe;zp.create=()=>{};const jxe=zp,FKt=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=r[n];o!==void 0&&(e[n]=o)})}return e},OKt=FKt;var NKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const DKt=NKt;var AKt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:DKt}))};const Joe=m.forwardRef(AKt);var MKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const BKt=MKt;var jKt=function(t,r){return m.createElement(ha,G({},t,{ref:r,icon:BKt}))};const eae=m.forwardRef(jKt);var LKt={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},zKt=["10","20","50","100"],VKt=function(t){var r=t.pageSizeOptions,n=r===void 0?zKt:r,o=t.locale,a=t.changeSize,i=t.pageSize,s=t.goButton,l=t.quickGo,u=t.rootPrefixCls,c=t.selectComponentClass,d=t.selectPrefixCls,f=t.disabled,p=t.buildOptionText,h=Y.useState(""),v=Ce(h,2),b=v[0],g=v[1],y=function(){return!b||Number.isNaN(b)?void 0:Number(b)},S=typeof p=="function"?p:function(O){return"".concat(O," ").concat(o.items_per_page)},w=function(A){a==null||a(Number(A))},$=function(A){g(A.target.value)},C=function(A){s||b===""||(g(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(l==null||l(y())))},x=function(A){b!==""&&(A.keyCode===Xe.ENTER||A.type==="click")&&(g(""),l==null||l(y()))},E=function(){return n.some(function(A){return A.toString()===i.toString()})?n:n.concat([i.toString()]).sort(function(A,M){var L=Number.isNaN(Number(A))?0:Number(A),j=Number.isNaN(Number(M))?0:Number(M);return L-j})},_="".concat(u,"-options");if(!a&&!l)return null;var k=null,I=null,N=null;if(a&&c){var z=E().map(function(O,A){return Y.createElement(c.Option,{key:A,value:O.toString()},S(O))});k=Y.createElement(c,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(_,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||n[0]).toString(),onChange:w,getPopupContainer:function(A){return A.parentNode},"aria-label":o.page_size,defaultOpen:!1},z)}return l&&(s&&(N=typeof s=="boolean"?Y.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:f,className:"".concat(_,"-quick-jumper-button")},o.jump_to_confirm):Y.createElement("span",{onClick:x,onKeyUp:x},s)),I=Y.createElement("div",{className:"".concat(_,"-quick-jumper")},o.jump_to,Y.createElement("input",{disabled:f,type:"text",value:b,onChange:$,onKeyUp:x,onBlur:C,"aria-label":o.page}),o.page,N)),Y.createElement("li",{className:_},k,I)},Cw=function(t){var r,n=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,s=t.showTitle,l=t.onClick,u=t.onKeyPress,c=t.itemRender,d="".concat(n,"-item"),f=Oe(d,"".concat(d,"-").concat(o),(r={},le(r,"".concat(d,"-active"),a),le(r,"".concat(d,"-disabled"),!o),r),i),p=function(){l(o)},h=function(g){u(g,l,o)},v=c(o,"page",Y.createElement("a",{rel:"nofollow"},o));return v?Y.createElement("li",{title:s?String(o):null,className:f,onClick:p,onKeyDown:h,tabIndex:0},v):null},HKt=function(t,r,n){return n};function tae(){}function rae(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function pv(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var WKt=function(t){var r,n=t.prefixCls,o=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,s=t.className,l=t.selectComponentClass,u=t.current,c=t.defaultCurrent,d=c===void 0?1:c,f=t.total,p=f===void 0?0:f,h=t.pageSize,v=t.defaultPageSize,b=v===void 0?10:v,g=t.onChange,y=g===void 0?tae:g,S=t.hideOnSinglePage,w=t.showPrevNextJumpers,$=w===void 0?!0:w,C=t.showQuickJumper,x=t.showLessItems,E=t.showTitle,_=E===void 0?!0:E,k=t.onShowSizeChange,I=k===void 0?tae:k,N=t.locale,z=N===void 0?LKt:N,O=t.style,A=t.totalBoundaryShowSizeChanger,M=A===void 0?50:A,L=t.disabled,j=t.simple,H=t.showTotal,B=t.showSizeChanger,F=t.pageSizeOptions,V=t.itemRender,D=V===void 0?HKt:V,P=t.jumpPrevIcon,R=t.jumpNextIcon,W=t.prevIcon,U=t.nextIcon,q=Y.useRef(null),J=So(10,{value:h,defaultValue:b}),Z=Ce(J,2),Q=Z[0],oe=Z[1],ie=So(1,{value:u,defaultValue:d,postState:function(ct){return Math.max(1,Math.min(ct,pv(void 0,Q,p)))}}),te=Ce(ie,2),ae=te[0],fe=te[1],ve=Y.useState(ae),Se=Ce(ve,2),se=Se[0],pe=Se[1];m.useEffect(function(){pe(ae)},[ae]);var ge=Math.max(1,ae-(x?3:5)),de=Math.min(pv(void 0,Q,p),ae+(x?3:5));function ee(gt,ct){var jt=gt||Y.createElement("button",{type:"button","aria-label":ct,className:"".concat(o,"-item-link")});return typeof gt=="function"&&(jt=Y.createElement(gt,be({},t))),jt}function me(gt){var ct=gt.target.value,jt=pv(void 0,Q,p),br;return ct===""?br=ct:Number.isNaN(Number(ct))?br=se:ct>=jt?br=jt:br=Number(ct),br}function Re(gt){return rae(gt)&>!==ae&&rae(p)&&p>0}var je=p>Q?C:!1;function ze(gt){(gt.keyCode===Xe.UP||gt.keyCode===Xe.DOWN)&>.preventDefault()}function Le(gt){var ct=me(gt);switch(ct!==se&&pe(ct),gt.keyCode){case Xe.ENTER:Pe(ct);break;case Xe.UP:Pe(ct-1);break;case Xe.DOWN:Pe(ct+1);break}}function $e(gt){Pe(me(gt))}function Je(gt){var ct=pv(gt,Q,p),jt=ae>ct&&ct!==0?ct:ae;oe(gt),pe(jt),I==null||I(ae,gt),fe(jt),y==null||y(jt,gt)}function Pe(gt){if(Re(gt)&&!L){var ct=pv(void 0,Q,p),jt=gt;return gt>ct?jt=ct:gt<1&&(jt=1),jt!==se&&pe(jt),fe(jt),y==null||y(jt,Q),jt}return ae}var st=ae>1,_e=aeM;function et(){st&&Pe(ae-1)}function Ie(){_e&&Pe(ae+1)}function Fe(){Pe(ge)}function vt(){Pe(de)}function bt(gt,ct){if(gt.key==="Enter"||gt.charCode===Xe.ENTER||gt.keyCode===Xe.ENTER){for(var jt=arguments.length,br=new Array(jt>2?jt-2:0),en=2;enp?p:ae*Q])),he=null,ye=pv(void 0,Q,p);if(S&&p<=Q)return null;var Ee=[],rt={rootPrefixCls:o,onClick:Pe,onKeyPress:bt,showTitle:_,itemRender:D,page:-1},re=ae-1>0?ae-1:0,X=ae+1=Ue*2&&ae!==1+2&&(Ee[0]=Y.cloneElement(Ee[0],{className:Oe("".concat(o,"-item-after-jump-prev"),Ee[0].props.className)}),Ee.unshift(at)),ye-ae>=Ue*2&&ae!==ye-2){var It=Ee[Ee.length-1];Ee[Ee.length-1]=Y.cloneElement(It,{className:Oe("".concat(o,"-item-before-jump-next"),It.props.className)}),Ee.push(he)}qe!==1&&Ee.unshift(Y.createElement(Cw,G({},rt,{key:1,page:1}))),_t!==ye&&Ee.push(Y.createElement(Cw,G({},rt,{key:ye,page:ye})))}var Mt=He(re);if(Mt){var rr=!st||!ye;Mt=Y.createElement("li",{title:_?z.prev_page:null,onClick:et,tabIndex:rr?null:0,onKeyDown:wt,className:Oe("".concat(o,"-prev"),le({},"".concat(o,"-disabled"),rr)),"aria-disabled":rr},Mt)}var fr=Ge(X);if(fr){var ar,Ir;j?(ar=!_e,Ir=st?0:null):(ar=!_e||!ye,Ir=ar?null:0),fr=Y.createElement("li",{title:_?z.next_page:null,onClick:Ie,tabIndex:Ir,onKeyDown:mt,className:Oe("".concat(o,"-next"),le({},"".concat(o,"-disabled"),ar)),"aria-disabled":ar},fr)}var An=Oe(o,s,(r={},le(r,"".concat(o,"-simple"),j),le(r,"".concat(o,"-disabled"),L),r));return Y.createElement("ul",G({className:An,style:O,ref:q},Ve),Qe,Mt,j?ue:Ee,fr,Y.createElement(VKt,{locale:z,rootPrefixCls:o,disabled:L,selectComponentClass:l,selectPrefixCls:i,changeSize:De?Je:null,pageSize:Q,pageSizeOptions:F,quickGo:je?Pe:null,goButton:we}))};const Lxe=e=>m.createElement(c_,Object.assign({},e,{showSearch:!0,size:"small"})),zxe=e=>m.createElement(c_,Object.assign({},e,{showSearch:!0,size:"middle"}));Lxe.Option=c_.Option;zxe.Option=c_.Option;const qKt=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},UKt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Be(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Be(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Be(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Be(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Be(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Be(e.itemSizeSM),input:Object.assign(Object.assign({},iq(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},KKt=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:Be(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Be(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${Be(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Be(e.inputOutlineOffset)} 0 ${Be(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},GKt=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${Be(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Be(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Be(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},p_(e)),tq(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ND(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},YKt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Be(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Be(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Be(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},XKt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wo(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Be(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),YKt(e)),GKt(e)),KKt(e)),UKt(e)),qKt(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},QKt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ewe(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},S1(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},S1(e))}}}},Vxe=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},OD(e)),Hxe=e=>Dn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},FD(e)),ZKt=Ka("Pagination",e=>{const t=Hxe(e);return[XKt(t),QKt(t)]},Vxe),JKt=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},eGt=_W(["Pagination","bordered"],e=>{const t=Hxe(e);return[JKt(t)]},Vxe);var tGt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:r,className:n,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:u,showSizeChanger:c}=e,d=tGt(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=SCe(u),[,p]=Cs(),{getPrefixCls:h,direction:v,pagination:b={}}=m.useContext(Er),g=h("pagination",t),[y,S,w]=ZKt(g),$=c??b.showSizeChanger,C=m.useMemo(()=>{const O=m.createElement("span",{className:`${g}-item-ellipsis`},"•••"),A=m.createElement("button",{className:`${g}-item-link`,type:"button",tabIndex:-1},v==="rtl"?m.createElement(Poe,null):m.createElement(Toe,null)),M=m.createElement("button",{className:`${g}-item-link`,type:"button",tabIndex:-1},v==="rtl"?m.createElement(Toe,null):m.createElement(Poe,null)),L=m.createElement("a",{className:`${g}-item-link`},m.createElement("div",{className:`${g}-item-container`},v==="rtl"?m.createElement(eae,{className:`${g}-item-link-icon`}):m.createElement(Joe,{className:`${g}-item-link-icon`}),O)),j=m.createElement("a",{className:`${g}-item-link`},m.createElement("div",{className:`${g}-item-container`},v==="rtl"?m.createElement(Joe,{className:`${g}-item-link-icon`}):m.createElement(eae,{className:`${g}-item-link-icon`}),O));return{prevIcon:A,nextIcon:M,jumpPrevIcon:L,jumpNextIcon:j}},[v,g]),[x]=n_("Pagination",DSe),E=Object.assign(Object.assign({},x),s),_=Hl(i),k=_==="small"||!!(f&&!_&&u),I=h("select",r),N=Oe({[`${g}-mini`]:k,[`${g}-rtl`]:v==="rtl",[`${g}-bordered`]:p.wireframe},b==null?void 0:b.className,n,o,S,w),z=Object.assign(Object.assign({},b==null?void 0:b.style),a);return y(m.createElement(m.Fragment,null,p.wireframe&&m.createElement(eGt,{prefixCls:g}),m.createElement(WKt,Object.assign({},C,d,{style:z,prefixCls:g,selectPrefixCls:I,className:N,selectComponentClass:l||(k?Lxe:zxe),locale:E,showSizeChanger:$}))))},nGt=rGt,oGt=new wn("antSpinMove",{to:{opacity:1}}),aGt=new wn("antRotate",{to:{transform:"rotate(405deg)"}}),iGt=e=>{const{componentCls:t,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({},wo(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:r(r(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:oGt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:aGt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},sGt=e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},lGt=Ka("Spin",e=>{const t=Dn(e,{spinDotDefault:e.colorTextDescription});return[iGt(t)]},sGt);var uGt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:r=!0,delay:n=0,className:o,rootClassName:a,size:i="default",tip:s,wrapperClassName:l,style:u,children:c,fullscreen:d=!1}=e,f=uGt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:p}=m.useContext(Er),h=p("spin",t),[v,b,g]=lGt(h),[y,S]=m.useState(()=>r&&!dGt(r,n));m.useEffect(()=>{if(r){const N=DWt(n,()=>{S(!0)});return N(),()=>{var z;(z=N==null?void 0:N.cancel)===null||z===void 0||z.call(N)}}S(!1)},[n,r]);const w=m.useMemo(()=>typeof c<"u"&&!d,[c,d]),{direction:$,spin:C}=m.useContext(Er),x=Oe(h,C==null?void 0:C.className,{[`${h}-sm`]:i==="small",[`${h}-lg`]:i==="large",[`${h}-spinning`]:y,[`${h}-show-text`]:!!s,[`${h}-fullscreen`]:d,[`${h}-fullscreen-show`]:d&&y,[`${h}-rtl`]:$==="rtl"},o,a,b,g),E=Oe(`${h}-container`,{[`${h}-blur`]:y}),_=Lp(f,["indicator"]),k=Object.assign(Object.assign({},C==null?void 0:C.style),u),I=m.createElement("div",Object.assign({},_,{style:k,className:x,"aria-live":"polite","aria-busy":y}),cGt(h,e),s&&(w||d)?m.createElement("div",{className:`${h}-text`},s):null);return v(w?m.createElement("div",Object.assign({},_,{className:Oe(`${h}-nested-loading`,l,b,g)}),y&&m.createElement("div",{key:"loading"},I),m.createElement("div",{className:E,key:"container"},c)):I)};Wxe.setDefaultIndicator=e=>{cT=e};const fGt=Wxe,hq=Y.createContext({});hq.Consumer;var qxe=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:r,avatar:n,title:o,description:a}=e,i=qxe(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=m.useContext(Er),l=s("list",t),u=Oe(`${l}-item-meta`,r),c=Y.createElement("div",{className:`${l}-item-meta-content`},o&&Y.createElement("h4",{className:`${l}-item-meta-title`},o),a&&Y.createElement("div",{className:`${l}-item-meta-description`},a));return Y.createElement("div",Object.assign({},i,{className:u}),n&&Y.createElement("div",{className:`${l}-item-meta-avatar`},n),(o||a)&&c)},mGt=(e,t)=>{var{prefixCls:r,children:n,actions:o,extra:a,className:i,colStyle:s}=e,l=qxe(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:u,itemLayout:c}=m.useContext(hq),{getPrefixCls:d}=m.useContext(Er),f=()=>{let y;return m.Children.forEach(n,S=>{typeof S=="string"&&(y=!0)}),y&&m.Children.count(n)>1},p=()=>c==="vertical"?!!a:!f(),h=d("list",r),v=o&&o.length>0&&Y.createElement("ul",{className:`${h}-item-action`,key:"actions"},o.map((y,S)=>Y.createElement("li",{key:`${h}-item-action-${S}`},y,S!==o.length-1&&Y.createElement("em",{className:`${h}-item-action-split`})))),b=u?"div":"li",g=Y.createElement(b,Object.assign({},l,u?{}:{ref:t},{className:Oe(`${h}-item`,{[`${h}-item-no-flex`]:!p()},i)}),c==="vertical"&&a?[Y.createElement("div",{className:`${h}-item-main`,key:"content"},n,v),Y.createElement("div",{className:`${h}-item-extra`,key:"extra"},a)]:[n,v,mp(a,{key:"extra"})]);return u?Y.createElement(ea,{ref:t,flex:1,style:s},g):g},Uxe=m.forwardRef(mGt);Uxe.Meta=pGt;const hGt=Uxe,vGt=e=>{const{listBorderedCls:t,componentCls:r,paddingLG:n,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:s,borderRadiusLG:l}=e;return{[`${t}`]:{border:`${Be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${r}-header,${r}-footer,${r}-item`]:{paddingInline:n},[`${r}-pagination`]:{margin:`${Be(o)} ${Be(s)}`}},[`${t}${r}-sm`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:a}},[`${t}${r}-lg`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:i}}}},gGt=e=>{const{componentCls:t,screenSM:r,screenMD:n,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${n}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${r}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Be(i)}`}}}}}},bGt=e=>{const{componentCls:t,antCls:r,controlHeight:n,minHeight:o,paddingSM:a,marginLG:i,padding:s,itemPadding:l,colorPrimary:u,itemPaddingSM:c,itemPaddingLG:d,paddingXS:f,margin:p,colorText:h,colorTextDescription:v,motionDurationSlow:b,lineWidth:g,headerBg:y,footerBg:S,emptyTextPadding:w,metaMarginBottom:$,avatarMarginRight:C,titleMarginBottom:x,descriptionFontSize:E}=e,_={};return["start","center","end"].forEach(k=>{_[`&-align-${k}`]={textAlign:k}}),{[`${t}`]:Object.assign(Object.assign({},wo(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:y},[`${t}-footer`]:{background:S},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:i},_),{[`${r}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:C},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${Be(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${b}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:v,fontSize:E,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Be(f)}`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:g,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Be(s)} 0`,color:v,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:w,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${r}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:x,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Be(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${r}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:c},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},yGt=e=>({contentWidth:220,itemPadding:`${Be(e.paddingContentVertical)} 0`,itemPaddingSM:`${Be(e.paddingContentVerticalSM)} ${Be(e.paddingContentHorizontal)}`,itemPaddingLG:`${Be(e.paddingContentVerticalLG)} ${Be(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),SGt=Ka("List",e=>{const t=Dn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[bGt(t),vGt(t),gGt(t)]},yGt);var wGt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);o(de,ee)=>{var me;E(de),k(ee),r&&r[ge]&&((me=r==null?void 0:r[ge])===null||me===void 0||me.call(r,de,ee))},L=M("onChange"),j=M("onShowSizeChange"),H=(ge,de)=>{if(!S)return null;let ee;return typeof y=="function"?ee=y(ge):y?ee=ge[y]:ee=ge.key,ee||(ee=`list-item-${de}`),m.createElement(m.Fragment,{key:ee},S(ge,de))},B=()=>!!(d||r||b),F=I("list",n),[V,D,P]=SGt(F);let R=g;typeof R=="boolean"&&(R={spinning:R});const W=R&&R.spinning,U=Hl(h);let q="";switch(U){case"large":q="lg";break;case"small":q="sm";break}const J=Oe(F,{[`${F}-vertical`]:c==="vertical",[`${F}-${q}`]:q,[`${F}-split`]:a,[`${F}-bordered`]:o,[`${F}-loading`]:W,[`${F}-grid`]:!!f,[`${F}-something-after-last-item`]:B(),[`${F}-rtl`]:z==="rtl"},O==null?void 0:O.className,i,s,D,P),Z=OKt(A,{total:p.length,current:x,pageSize:_},r||{}),Q=Math.ceil(Z.total/Z.pageSize);Z.current>Q&&(Z.current=Q);const oe=r?m.createElement("div",{className:Oe(`${F}-pagination`,`${F}-pagination-align-${(t=Z==null?void 0:Z.align)!==null&&t!==void 0?t:"end"}`)},m.createElement(nGt,Object.assign({},Z,{onChange:L,onShowSizeChange:j}))):null;let ie=xt(p);r&&p.length>(Z.current-1)*Z.pageSize&&(ie=xt(p).splice((Z.current-1)*Z.pageSize,Z.pageSize));const te=Object.keys(f||{}).some(ge=>["xs","sm","md","lg","xl","xxl"].includes(ge)),ae=SCe(te),fe=m.useMemo(()=>{for(let ge=0;ge{if(!f)return;const ge=fe&&f[fe]?f[fe]:f.column;if(ge)return{width:`${100/ge}%`,maxWidth:`${100/ge}%`}},[f==null?void 0:f.column,fe]);let Se=W&&m.createElement("div",{style:{minHeight:53}});if(ie.length>0){const ge=ie.map((de,ee)=>H(de,ee));Se=f?m.createElement(gp,{gutter:f.gutter},m.Children.map(ge,de=>m.createElement("div",{key:de==null?void 0:de.key,style:ve},de))):m.createElement("ul",{className:`${F}-items`},ge)}else!u&&!W&&(Se=m.createElement("div",{className:`${F}-empty-text`},w&&w.emptyText||(N==null?void 0:N("List"))||m.createElement(pCe,{componentName:"List"})));const se=Z.position||"bottom",pe=m.useMemo(()=>({grid:f,itemLayout:c}),[JSON.stringify(f),c]);return V(m.createElement(hq.Provider,{value:pe},m.createElement("div",Object.assign({style:Object.assign(Object.assign({},O==null?void 0:O.style),l),className:J},$),(se==="top"||se==="both")&&oe,v&&m.createElement("div",{className:`${F}-header`},v),m.createElement(fGt,Object.assign({},R),Se,u),b&&m.createElement("div",{className:`${F}-footer`},b),d||(se==="bottom"||se==="both")&&oe)))}pz.Item=hGt;var F0=m.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function mz(e,t,r){return(e-t)/(r-t)}function vq(e,t,r,n){var o=mz(t,r,n),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function Kb(e,t){return Array.isArray(e)?e[t]:e}var CGt=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],xGt=m.forwardRef(function(e,t){var r,n,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,u=e.render,c=e.dragging,d=e.onOffsetChange,f=e.onChangeComplete,p=St(e,CGt),h=m.useContext(F0),v=h.min,b=h.max,g=h.direction,y=h.disabled,S=h.keyboard,w=h.range,$=h.tabIndex,C=h.ariaLabelForHandle,x=h.ariaLabelledByForHandle,E=h.ariaValueTextFormatterForHandle,_=h.styles,k=h.classNames,I="".concat(o,"-handle"),N=function(j){y||s(j,i)},z=function(j){if(!y&&S){var H=null;switch(j.which||j.keyCode){case Xe.LEFT:H=g==="ltr"||g==="btt"?-1:1;break;case Xe.RIGHT:H=g==="ltr"||g==="btt"?1:-1;break;case Xe.UP:H=g!=="ttb"?1:-1;break;case Xe.DOWN:H=g!=="ttb"?-1:1;break;case Xe.HOME:H="min";break;case Xe.END:H="max";break;case Xe.PAGE_UP:H=2;break;case Xe.PAGE_DOWN:H=-2;break}H!==null&&(j.preventDefault(),d(H,i))}},O=function(j){switch(j.which||j.keyCode){case Xe.LEFT:case Xe.RIGHT:case Xe.UP:case Xe.DOWN:case Xe.HOME:case Xe.END:case Xe.PAGE_UP:case Xe.PAGE_DOWN:f==null||f();break}},A=vq(g,a,v,b),M=m.createElement("div",G({ref:t,className:Oe(I,(r={},le(r,"".concat(I,"-").concat(i+1),w),le(r,"".concat(I,"-dragging"),c),r),k.handle),style:be(be(be({},A),l),_.handle),onMouseDown:N,onTouchStart:N,onKeyDown:z,onKeyUp:O,tabIndex:y?null:Kb($,i),role:"slider","aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":a,"aria-disabled":y,"aria-label":Kb(C,i),"aria-labelledby":Kb(x,i),"aria-valuetext":(n=Kb(E,i))===null||n===void 0?void 0:n(a),"aria-orientation":g==="ltr"||g==="rtl"?"horizontal":"vertical"},p));return u&&(M=u(M,{index:i,prefixCls:o,value:a,dragging:c})),M}),$Gt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],EGt=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,u=St(e,$Gt),c=m.useRef({});return m.useImperativeHandle(t,function(){return{focus:function(f){var p;(p=c.current[f])===null||p===void 0||p.focus()}}}),m.createElement(m.Fragment,null,i.map(function(d,f){return m.createElement(xGt,G({ref:function(h){h?c.current[f]=h:delete c.current[f]},dragging:l===f,prefixCls:r,style:Kb(n,f),key:f,value:d,valueIndex:f,onStartMove:o,onOffsetChange:a,render:s},u))}))});function nae(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function _Gt(e,t,r,n,o,a,i,s,l){var u=m.useState(null),c=Ce(u,2),d=c[0],f=c[1],p=m.useState(-1),h=Ce(p,2),v=h[0],b=h[1],g=m.useState(r),y=Ce(g,2),S=y[0],w=y[1],$=m.useState(r),C=Ce($,2),x=C[0],E=C[1],_=m.useRef(null),k=m.useRef(null);m.useEffect(function(){v===-1&&w(r)},[r,v]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",_.current),document.removeEventListener("mouseup",k.current),document.removeEventListener("touchmove",_.current),document.removeEventListener("touchend",k.current)}},[]);var I=function(L,j){S.some(function(H,B){return H!==L[B]})&&(j!==void 0&&f(j),w(L),i(L))},N=function(L,j){if(L===-1){var H=x[0],B=x[x.length-1],F=n-H,V=o-B,D=j*(o-n);D=Math.max(D,F),D=Math.min(D,V);var P=a(H+D);D=P-H;var R=x.map(function(J){return J+D});I(R)}else{var W=(o-n)*j,U=xt(S);U[L]=x[L];var q=l(U,W,L,"dist");I(q.values,q.value)}},z=m.useRef(N);z.current=N;var O=function(L,j,H){L.stopPropagation();var B=H||r,F=B[j];b(j),f(F),E(B);var V=nae(L),D=V.pageX,P=V.pageY,R=function(q){q.preventDefault();var J=nae(q),Z=J.pageX,Q=J.pageY,oe=Z-D,ie=Q-P,te=e.current.getBoundingClientRect(),ae=te.width,fe=te.height,ve;switch(t){case"btt":ve=-ie/fe;break;case"ttb":ve=ie/fe;break;case"rtl":ve=-oe/ae;break;default:ve=oe/ae}z.current(j,ve)},W=function U(q){q.preventDefault(),document.removeEventListener("mouseup",U),document.removeEventListener("mousemove",R),document.removeEventListener("touchend",U),document.removeEventListener("touchmove",R),_.current=null,k.current=null,b(-1),s()};document.addEventListener("mouseup",W),document.addEventListener("mousemove",R),document.addEventListener("touchend",W),document.addEventListener("touchmove",R),_.current=R,k.current=W},A=m.useMemo(function(){var M=xt(r).sort(function(j,H){return j-H}),L=xt(S).sort(function(j,H){return j-H});return M.every(function(j,H){return j===L[H]})?S:r},[r,S]);return[v,d,A,O]}function kGt(e,t,r,n,o,a){var i=m.useCallback(function(p){var h=isFinite(p)?p:e;return h=Math.min(t,p),h=Math.max(e,h),h},[e,t]),s=m.useCallback(function(p){if(r!==null){var h=e+Math.round((i(p)-e)/r)*r,v=function(S){return(String(S).split(".")[1]||"").length},b=Math.max(v(r),v(t),v(e)),g=Number(h.toFixed(b));return e<=g&&g<=t?g:null}return null},[r,e,t,i]),l=m.useCallback(function(p){var h=i(p),v=n.map(function(y){return y.value});r!==null&&v.push(s(p)),v.push(e,t);var b=v[0],g=t-e;return v.forEach(function(y){var S=Math.abs(h-y);S<=g&&(b=y,g=S)}),b},[e,t,n,r,i,s]),u=function p(h,v,b){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,S=h[b],w=S+v,$=[];n.forEach(function(k){$.push(k.value)}),$.push(e,t),$.push(s(S));var C=v>0?1:-1;g==="unit"?$.push(s(S+C*r)):$.push(s(w)),$=$.filter(function(k){return k!==null}).filter(function(k){return v<0?k<=S:k>=S}),g==="unit"&&($=$.filter(function(k){return k!==S}));var x=g==="unit"?S:w;y=$[0];var E=Math.abs(y-x);if($.forEach(function(k){var I=Math.abs(k-x);I1){var _=xt(h);return _[b]=y,p(_,v-C,b,g)}return y}else{if(v==="min")return e;if(v==="max")return t}},c=function(h,v,b){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h[b],S=u(h,v,b,g);return{value:S,changed:S!==y}},d=function(h){return a===null&&h===0||typeof a=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",y=h.map(l),S=y[b],w=u(y,v,b,g);if(y[b]=w,o===!1){var $=a||0;b>0&&y[b-1]!==S&&(y[b]=Math.max(y[b],y[b-1]+$)),b0;_-=1)for(var k=!0;d(y[_]-y[_-1])&&k;){var I=c(y,-1,_-1);y[_-1]=I.value,k=I.changed}for(var N=y.length-1;N>0;N-=1)for(var z=!0;d(y[N]-y[N-1])&&z;){var O=c(y,-1,N-1);y[N-1]=O.value,z=O.changed}for(var A=0;A=0?L:!1},[L,de]),me=m.useMemo(function(){var Ke=Object.keys(J||{});return Ke.map(function(ut){var We=J[ut],tt={value:Number(ut)};return We&&or(We)==="object"&&!m.isValidElement(We)&&("label"in We||"style"in We)?(tt.style=We.style,tt.label=We.label):tt.label=We,tt}).filter(function(ut){var We=ut.label;return We||typeof We=="number"}).sort(function(ut,We){return ut.value-We.value})},[J]),Re=kGt(pe,ge,de,me,A,ee),je=Ce(Re,2),ze=je[0],Le=je[1],$e=So(x,{value:C}),Je=Ce($e,2),Pe=Je[0],st=Je[1],_e=m.useMemo(function(){var Ke=Pe==null?[]:Array.isArray(Pe)?Pe:[Pe],ut=Ce(Ke,1),We=ut[0],tt=We===void 0?pe:We,Me=Pe===null?[]:[tt];if(E){if(Me=xt(Ke),_||Pe===void 0){var qe=_>=0?_+1:2;for(Me=Me.slice(0,qe);Me.length=0&&ve.current.focus(Ke)}Qe(null)},[Ve]);var ye=m.useMemo(function(){return j&&de===null?!1:j},[j,de]),Ee=function(ut,We){Ae(ut,We),I==null||I(et(De.current))},rt=wt!==-1;m.useEffect(function(){if(!rt){var Ke=_e.lastIndexOf(mt);ve.current.focus(Ke)}},[rt]);var re=m.useMemo(function(){return xt(xe).sort(function(Ke,ut){return Ke-ut})},[xe]),X=m.useMemo(function(){return E?[re[0],re[re.length-1]]:[pe,re[0]]},[re,E,pe]),ne=Ce(X,2),we=ne[0],ue=ne[1];m.useImperativeHandle(t,function(){return{focus:function(){ve.current.focus(0)},blur:function(){var ut=document,We=ut.activeElement;Se.current.contains(We)&&(We==null||We.blur())}}}),m.useEffect(function(){p&&ve.current.focus(0)},[]);var Ue=m.useMemo(function(){return{min:pe,max:ge,direction:se,disabled:c,keyboard:f,step:de,included:V,includedStart:we,includedEnd:ue,range:E,tabIndex:ie,ariaLabelForHandle:te,ariaLabelledByForHandle:ae,ariaValueTextFormatterForHandle:fe,styles:l||{},classNames:s||{}}},[pe,ge,se,c,f,de,V,we,ue,E,ie,te,ae,fe,l,s]);return m.createElement(F0.Provider,{value:Ue},m.createElement("div",{ref:Se,className:Oe(o,a,(r={},le(r,"".concat(o,"-disabled"),c),le(r,"".concat(o,"-vertical"),B),le(r,"".concat(o,"-horizontal"),!B),le(r,"".concat(o,"-with-marks"),me.length),r)),style:i,onMouseDown:Ge},m.createElement("div",{className:Oe("".concat(o,"-rail"),s==null?void 0:s.rail),style:be(be({},W),l==null?void 0:l.rail)}),m.createElement(FGt,{prefixCls:o,style:P,values:re,startPoint:D,onStartMove:ye?Ee:null}),m.createElement(RGt,{prefixCls:o,marks:me,dots:Z,style:U,activeStyle:q}),m.createElement(EGt,{ref:ve,prefixCls:o,style:R,values:xe,draggingIndex:wt,onStartMove:Ee,onOffsetChange:he,onFocus:h,onBlur:v,handleRender:Q,onChangeComplete:Fe}),m.createElement(TGt,{prefixCls:o,marks:me,onClick:He})))});const NGt=m.forwardRef((e,t)=>{const{open:r}=e,n=m.useRef(null),o=m.useRef(null);function a(){rn.cancel(o.current),o.current=null}function i(){o.current=rn(()=>{var s;(s=n.current)===null||s===void 0||s.forceAlign(),o.current=null})}return m.useEffect(()=>(r?i():a(),a),[r,e.title]),m.createElement(TCe,Object.assign({ref:zl(n,t)},e))}),DGt=NGt,AGt=e=>{const{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s,handleColorDisabled:l,calc:u}=e;return{[t]:Object.assign(Object.assign({},wo(e)),{position:"relative",height:n,margin:`${Be(i)} ${Be(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Be(a)} ${Be(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Be(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:u(e.handleLineWidth).mul(-1).equal(),insetBlockStart:u(e.handleLineWidth).mul(-1).equal(),width:u(e.handleSize).add(u(e.handleLineWidth).mul(2)).equal(),height:u(e.handleSize).add(u(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Be(e.handleLineWidth)} ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${e.motionDurationMid}, + inset-block-start ${e.motionDurationMid}, + width ${e.motionDurationMid}, + height ${e.motionDurationMid}, + box-shadow ${e.motionDurationMid} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),insetBlockStart:u(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),width:u(e.handleSizeHover).add(u(e.handleLineWidthHover).mul(2)).equal(),height:u(e.handleSizeHover).add(u(e.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Be(e.handleLineWidthHover)} ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal(),insetBlockStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal()}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${Be(e.handleLineWidth)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` + ${t}-dot + `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${Be(e.handleLineWidth)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` + ${t}-mark-text, + ${t}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},Kxe=(e,t)=>{const{componentCls:r,railSize:n,handleSize:o,dotSize:a,marginFull:i,calc:s}=e,l=t?"paddingBlock":"paddingInline",u=t?"width":"height",c=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),v=t?{borderWidth:`${Be(h)} 0`,transform:`translateY(${Be(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${Be(h)}`,transform:`translateX(${Be(e.calc(h).mul(-1).equal())})`};return{[l]:n,[c]:s(n).mul(3).equal(),[`${r}-rail`]:{[u]:"100%",[c]:n},[`${r}-track,${r}-tracks`]:{[c]:n},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[d]:p},[`${r}-mark`]:{insetInlineStart:0,top:0,[f]:s(n).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[f]:n,[u]:"100%",[c]:n},[`${r}-dot`]:{position:"absolute",[d]:s(n).sub(a).div(2).equal()}}},MGt=e=>{const{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Kxe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},BGt=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Kxe(e,!1)),{height:"100%"})}},jGt=e=>{const r=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new On(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},LGt=Ka("Slider",e=>{const t=Dn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[AGt(t),MGt(t),BGt(t)]},jGt);var zGt=globalThis&&globalThis.__rest||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 o=0,n=Object.getOwnPropertySymbols(e);otypeof r=="number"?r.toString():""}const HGt=Y.forwardRef((e,t)=>{const{prefixCls:r,range:n,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:u,tooltipVisible:c,getTooltipPopupContainer:d,tooltipPlacement:f}=e,p=zGt(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:v,getPrefixCls:b,getPopupContainer:g}=Y.useContext(Er),y=Y.useContext(Mu),S=s??y,[w,$]=Y.useState({}),C=(L,j)=>{$(H=>Object.assign(Object.assign({},H),{[L]:j}))},x=(L,j)=>L||(j?h==="rtl"?"left":"right":"top"),E=b("slider",r),[_,k,I]=LGt(E),N=Oe(o,v==null?void 0:v.className,a,{[`${E}-rtl`]:h==="rtl"},k,I);h==="rtl"&&!p.vertical&&(p.reverse=!p.reverse);const[z,O]=Y.useMemo(()=>n?typeof n=="object"?[!0,n.draggableTrack]:[!0,!1]:[!1],[n]),A=(L,j)=>{var H;const{index:B,dragging:F}=j,{tooltip:V={},vertical:D}=e,P=Object.assign({},V),{open:R,placement:W,getPopupContainer:U,prefixCls:q,formatter:J}=P,Z=VGt(J,u),Q=Z?w[B]||F:!1,oe=(H=R??c)!==null&&H!==void 0?H:R===void 0&&Q,ie=Object.assign(Object.assign({},L.props),{onMouseEnter:()=>C(B,!0),onMouseLeave:()=>C(B,!1),onFocus:te=>{var ae;C(B,!0),(ae=p.onFocus)===null||ae===void 0||ae.call(p,te)},onBlur:te=>{var ae;C(B,!1),(ae=p.onBlur)===null||ae===void 0||ae.call(p,te)}});return Y.createElement(DGt,Object.assign({},P,{prefixCls:b("tooltip",q??l),title:Z?Z(j.value):"",open:oe,placement:x(W??f,D),key:B,overlayClassName:`${E}-tooltip`,getPopupContainer:U||d||g}),Y.cloneElement(L,ie))},M=Object.assign(Object.assign({},v==null?void 0:v.style),i);return _(Y.createElement(OGt,Object.assign({},p,{step:p.step,range:z,draggableTrack:O,className:N,style:M,disabled:S,ref:t,prefixCls:E,handleRender:A})))}),WGt=HGt,qGt={width:"100%"},kk={width:"calc(100% / 4)"};function UGt(e){const{children:t,disabled:r,hasCopy:n,hasMoveDown:o,hasMoveUp:a,hasRemove:i,hasToolbar:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,registry:p,uiSchema:h}=e,{CopyButton:v,MoveDownButton:b,MoveUpButton:g,RemoveButton:y}=p.templates.ButtonTemplates,{rowGutter:S=24,toolbarAlign:w="top"}=p.formContext;return T.jsxs(gp,{align:w,gutter:S,children:[T.jsx(ea,{flex:"1",children:t}),s&&T.jsx(ea,{flex:"192px",children:T.jsxs(Yg.Group,{style:qGt,children:[(a||o)&&T.jsx(g,{disabled:r||f||!a,onClick:d(l,l-1),style:kk,uiSchema:h,registry:p}),(a||o)&&T.jsx(b,{disabled:r||f||!o,onClick:d(l,l+1),style:kk,uiSchema:h,registry:p}),n&&T.jsx(v,{disabled:r||f,onClick:u(l),style:kk,uiSchema:h,registry:p}),i&&T.jsx(y,{disabled:r||f,onClick:c(l),style:kk,uiSchema:h,registry:p})]})})]},`array-item-${l}`)}const KGt={paddingBottom:"8px"};function GGt(e){const{canAdd:t,className:r,disabled:n,formContext:o,idSchema:a,items:i,onAddClick:s,readonly:l,registry:u,required:c,schema:d,title:f,uiSchema:p}=e,h=At(p),v=Ct("ArrayFieldDescriptionTemplate",u,h),b=Ct("ArrayFieldItemTemplate",u,h),g=Ct("ArrayFieldTitleTemplate",u,h),{ButtonTemplates:{AddButton:y}}=u.templates,{labelAlign:S="right",rowGutter:w=24}=o,{getPrefixCls:$}=m.useContext(Yd.ConfigContext),x=`${$("form")}-item-label`,E=Oe(x,S==="left"&&`${x}-left`);return T.jsx("fieldset",{className:r,id:a.$id,children:T.jsxs(gp,{gutter:w,children:[(h.title||f)&&T.jsx(ea,{className:E,span:24,children:T.jsx(g,{idSchema:a,required:c,title:h.title||f,schema:d,uiSchema:p,registry:u})}),(h.description||d.description)&&T.jsx(ea,{span:24,style:KGt,children:T.jsx(v,{description:h.description||d.description,idSchema:a,schema:d,uiSchema:p,registry:u})}),T.jsx(ea,{className:"row array-item-list",span:24,children:i&&i.map(({key:_,...k})=>T.jsx(b,{...k},_))}),t&&T.jsx(ea,{span:24,children:T.jsx(gp,{gutter:w,justify:"end",children:T.jsx(ea,{flex:"192px",children:T.jsx(y,{className:"array-item-add",disabled:n||l,onClick:s,uiSchema:p,registry:u})})})})]})})}const aae={width:"100%"};function YGt(e){const{disabled:t,formContext:r,id:n,onBlur:o,onChange:a,onChangeOverride:i,onFocus:s,options:l,placeholder:u,readonly:c,schema:d,value:f,type:p}=e,h=kp(d,p,l,!1),{readonlyAsDisabled:v=!0}=r,b=$=>a($),g=i||(({target:$})=>a($.value===""?l.emptyValue:$.value)),y=({target:$})=>o(n,$&&$.value),S=({target:$})=>s(n,$&&$.value),w=h.type==="number"||h.type==="integer"?T.jsx(Fqt,{disabled:t||v&&c,id:n,name:n,onBlur:c?void 0:y,onChange:c?void 0:b,onFocus:c?void 0:S,placeholder:u,style:aae,list:d.examples?da(n):void 0,...h,value:f,"aria-describedby":Ot(n,!!d.examples)}):T.jsx(AD,{disabled:t||v&&c,id:n,name:n,onBlur:c?void 0:y,onChange:c?void 0:g,onFocus:c?void 0:S,placeholder:u,style:aae,list:d.examples?da(n):void 0,...h,value:f,"aria-describedby":Ot(n,!!d.examples)});return T.jsxs(T.Fragment,{children:[w,Array.isArray(d.examples)&&T.jsx("datalist",{id:da(n),children:d.examples.concat(d.default&&!d.examples.includes(d.default)?[d.default]:[]).map($=>T.jsx("option",{value:$},$))})]})}function XGt(e){const{id:t,description:r}=e;return r?T.jsx("span",{id:t,children:r}):null}var hz={exports:{}},MD={},d4={exports:{}},f4={exports:{}},p4={exports:{}},m4={exports:{}},iae;function QGt(){return iae||(iae=1,function(e){var t=$u.default;function r(n,o){if(t(n)!="object"||!n)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var i=a.call(n,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(m4)),m4.exports}var sae;function ZGt(){return sae||(sae=1,function(e){var t=$u.default,r=QGt();function n(o){var a=r(o,"string");return t(a)=="symbol"?a:a+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(p4)),p4.exports}var lae;function gq(){return lae||(lae=1,function(e){var t=ZGt();function r(n,o,a){return(o=t(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(f4)),f4.exports}var uae;function Xd(){return uae||(uae=1,function(e){var t=gq();function r(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),i.push.apply(i,s)}return i}function n(o){for(var a=1;ar.length)&&(n=r.length);for(var o=0,a=Array(n);o=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Tk*t:Math.round(e.h)+Tk*t:n=r?Math.round(e.h)+Tk*t:Math.round(e.h)-Tk*t,n<0?n+=360:n>=360&&(n-=360),n}function xae(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Sae*t:t===Xxe?n=e.s+Sae:n=e.s+iYt*t,n>1&&(n=1),r&&t===Yxe&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function $ae(e,t,r){var n;return r?n=e.v+sYt*t:n=e.v-lYt*t,n>1&&(n=1),Number(n.toFixed(2))}function vz(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=hc(e),o=Yxe;o>0;o-=1){var a=wae(n),i=Ik(hc({h:Cae(a,o,!0),s:xae(a,o,!0),v:$ae(a,o,!0)}));r.push(i)}r.push(Ik(n));for(var s=1;s<=Xxe;s+=1){var l=wae(n),u=Ik(hc({h:Cae(l,s),s:xae(l,s),v:$ae(l,s)}));r.push(u)}return t.theme==="dark"?uYt.map(function(c){var d=c.index,f=c.opacity,p=Ik(cYt(hc(t.backgroundColor||"#141414"),hc(r[d]),f*100));return p}):r}var dT={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"},di={},fT={};Object.keys(dT).forEach(function(e){di[e]=vz(dT[e]),di[e].primary=di[e][5],fT[e]=vz(dT[e],{theme:"dark",backgroundColor:"#141414"}),fT[e].primary=fT[e][5]});var dYt=di.red,fYt=di.volcano,pYt=di.gold,mYt=di.orange,hYt=di.yellow,vYt=di.lime,gYt=di.green,bYt=di.cyan,yYt=di.blue,SYt=di.geekblue,wYt=di.purple,CYt=di.magenta,xYt=di.grey;const $Yt=Object.freeze(Object.defineProperty({__proto__:null,blue:yYt,cyan:bYt,geekblue:SYt,generate:vz,gold:pYt,green:gYt,grey:xYt,lime:vYt,magenta:CYt,orange:mYt,presetDarkPalettes:fT,presetPalettes:di,presetPrimaryColors:dT,purple:wYt,red:dYt,volcano:fYt,yellow:hYt},Symbol.toStringTag,{value:"Module"})),EYt=$F($Yt);var al={},Eae;function _Yt(){if(Eae)return al;Eae=1,Object.defineProperty(al,"__esModule",{value:!0}),al.call=a,al.default=void 0,al.note=n,al.noteOnce=s,al.preMessage=void 0,al.resetWarned=o,al.warning=r,al.warningOnce=i;var e={},t=al.preMessage=function(u){};function r(l,u){}function n(l,u){}function o(){e={}}function a(l,u,c){!u&&!e[c]&&(l(!1,c),e[c]=!0)}function i(l,u){a(r,l,u)}function s(l,u){a(n,l,u)}return i.preMessage=t,i.resetWarned=o,i.noteOnce=s,al.default=i,al}var mv={},Rk={},_ae;function kYt(){if(_ae)return Rk;_ae=1,Object.defineProperty(Rk,"__esModule",{value:!0}),Rk.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return Rk}var Fk={},kae;function PYt(){if(kae)return Fk;kae=1,Object.defineProperty(Fk,"__esModule",{value:!0}),Fk.default=e;function e(t,r){if(!t)return!1;if(t.contains)return t.contains(r);for(var n=r;n;){if(n===t)return!0;n=n.parentNode}return!1}return Fk}var Pae;function TYt(){if(Pae)return mv;Pae=1;var e=Fo.default;Object.defineProperty(mv,"__esModule",{value:!0}),mv.clearContainerCache=v,mv.injectCSS=d,mv.removeCSS=p,mv.updateCSS=b;var t=e(kYt()),r=e(PYt()),n="data-rc-order",o="data-rc-priority",a="rc-util-key",i=new Map;function s(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=g.mark;return y?y.startsWith("data-")?y:"data-".concat(y):a}function l(g){if(g.attachTo)return g.attachTo;var y=document.querySelector("head");return y||document.body}function u(g){return g==="queue"?"prependQueue":g?"prepend":"append"}function c(g){return Array.from((i.get(g)||g).children).filter(function(y){return y.tagName==="STYLE"})}function d(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,t.default)())return null;var S=y.csp,w=y.prepend,$=y.priority,C=$===void 0?0:$,x=u(w),E=x==="prependQueue",_=document.createElement("style");_.setAttribute(n,x),E&&C&&_.setAttribute(o,"".concat(C)),S!=null&&S.nonce&&(_.nonce=S==null?void 0:S.nonce),_.innerHTML=g;var k=l(y),I=k.firstChild;if(w){if(E){var N=c(k).filter(function(z){if(!["prepend","prependQueue"].includes(z.getAttribute(n)))return!1;var O=Number(z.getAttribute(o)||0);return C>=O});if(N.length)return k.insertBefore(_,N[N.length-1].nextSibling),_}k.insertBefore(_,I)}else k.appendChild(_);return _}function f(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=l(y);return c(S).find(function(w){return w.getAttribute(s(y))===g})}function p(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=f(g,y);if(S){var w=l(y);w.removeChild(S)}}function h(g,y){var S=i.get(g);if(!S||!(0,r.default)(document,S)){var w=d("",y),$=w.parentNode;i.set(g,$),g.removeChild(w)}}function v(){i.clear()}function b(g,y){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=l(S);h(w,S);var $=f(y,S);if($){var C,x;if((C=S.csp)!==null&&C!==void 0&&C.nonce&&$.nonce!==((x=S.csp)===null||x===void 0?void 0:x.nonce)){var E;$.nonce=(E=S.csp)===null||E===void 0?void 0:E.nonce}return $.innerHTML!==g&&($.innerHTML=g),$}var _=d(g,S);return _.setAttribute(s(S),y),_}return mv}var x4,Tae;function IYt(){if(Tae)return x4;Tae=1;var e=Jfe;function t(r,n,o){var a=r.length;return o=o===void 0?a:o,!n&&o>=a?r:e(r,n,o)}return x4=t,x4}var $4,Iae;function Qxe(){if(Iae)return $4;Iae=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function l(u){return s.test(u)}return $4=l,$4}var E4,Rae;function RYt(){if(Rae)return E4;Rae=1;function e(t){return t.split("")}return E4=e,E4}var _4,Fae;function FYt(){if(Fae)return _4;Fae=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",h=u+"?",v="["+a+"]?",b="(?:"+p+"(?:"+[c,d,f].join("|")+")"+v+h+")*",g=v+h+b,y="(?:"+[c+s+"?",s,d,f,i].join("|")+")",S=RegExp(l+"(?="+l+")|"+y+g,"g");function w($){return $.match(S)||[]}return _4=w,_4}var k4,Oae;function OYt(){if(Oae)return k4;Oae=1;var e=RYt(),t=Qxe(),r=FYt();function n(o){return t(o)?r(o):e(o)}return k4=n,k4}var P4,Nae;function NYt(){if(Nae)return P4;Nae=1;var e=IYt(),t=Qxe(),r=OYt(),n=K1;function o(a){return function(i){i=n(i);var s=t(i)?r(i):void 0,l=s?s[0]:i.charAt(0),u=s?e(s,1).join(""):i.slice(1);return l[a]()+u}}return P4=o,P4}var T4,Dae;function DYt(){if(Dae)return T4;Dae=1;var e=NYt(),t=e("toUpperCase");return T4=t,T4}var I4,Aae;function AYt(){if(Aae)return I4;Aae=1;var e=K1,t=DYt();function r(n){return t(e(n).toLowerCase())}return I4=r,I4}var R4,Mae;function MYt(){if(Mae)return R4;Mae=1;function e(t){return function(r){return t==null?void 0:t[r]}}return R4=e,R4}var F4,Bae;function BYt(){if(Bae)return F4;Bae=1;var e=MYt(),t={À:"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"},r=e(t);return F4=r,F4}var O4,jae;function jYt(){if(jae)return O4;jae=1;var e=BYt(),t=K1,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",i=n+o+a,s="["+i+"]",l=RegExp(s,"g");function u(c){return c=t(c),c&&c.replace(r,e).replace(l,"")}return O4=u,O4}var N4,Lae;function LYt(){if(Lae)return N4;Lae=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return N4=t,N4}var D4,zae;function zYt(){if(zae)return D4;zae=1;var 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 t(r){return e.test(r)}return D4=t,D4}var A4,Vae;function VYt(){if(Vae)return A4;Vae=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",s="\\xac\\xb1\\xd7\\xf7",l="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",u="\\u2000-\\u206f",c=" \\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",d="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\ufe0e\\ufe0f",p=s+l+u+c,h="['’]",v="["+p+"]",b="["+o+"]",g="\\d+",y="["+a+"]",S="["+i+"]",w="[^"+e+p+g+a+i+d+"]",$="\\ud83c[\\udffb-\\udfff]",C="(?:"+b+"|"+$+")",x="[^"+e+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",k="["+d+"]",I="\\u200d",N="(?:"+S+"|"+w+")",z="(?:"+k+"|"+w+")",O="(?:"+h+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+h+"(?:D|LL|M|RE|S|T|VE))?",M=C+"?",L="["+f+"]?",j="(?:"+I+"(?:"+[x,E,_].join("|")+")"+L+M+")*",H="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",B="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",F=L+M+j,V="(?:"+[y,E,_].join("|")+")"+F,D=RegExp([k+"?"+S+"+"+O+"(?="+[v,k,"$"].join("|")+")",z+"+"+A+"(?="+[v,k+N,"$"].join("|")+")",k+"?"+N+"+"+O,k+"+"+A,B,H,g,V].join("|"),"g");function P(R){return R.match(D)||[]}return A4=P,A4}var M4,Hae;function HYt(){if(Hae)return M4;Hae=1;var e=LYt(),t=zYt(),r=K1,n=VYt();function o(a,i,s){return a=r(a),i=s?void 0:i,i===void 0?t(a)?n(a):e(a):a.match(i)||[]}return M4=o,M4}var B4,Wae;function WYt(){if(Wae)return B4;Wae=1;var e=upe,t=jYt(),r=HYt(),n="['’]",o=RegExp(n,"g");function a(i){return function(s){return e(r(t(s).replace(o,"")),i,"")}}return B4=a,B4}var j4,qae;function qYt(){if(qae)return j4;qae=1;var e=AYt(),t=WYt(),r=t(function(n,o,a){return o=o.toLowerCase(),n+(a?e(o):o)});return j4=r,j4}var Uae;function Sq(){if(Uae)return ts;Uae=1;var e=Fo,t=$u;Object.defineProperty(ts,"__esModule",{value:!0}),ts.generate=v,ts.getSecondaryColor=b,ts.iconStyles=void 0,ts.isIconDefinition=p,ts.normalizeAttrs=h,ts.normalizeTwoToneColors=g,ts.useInsertStyles=ts.svgBaseProps=void 0,ts.warning=f;var r=e(Xd()),n=e($u),o=EYt,a=d(m),i=e(_Yt()),s=TYt(),l=e(Gxe()),u=e(qYt());function c($){if(typeof WeakMap!="function")return null;var C=new WeakMap,x=new WeakMap;return(c=function(_){return _?x:C})($)}function d($,C){if(!C&&$&&$.__esModule)return $;if($===null||t($)!=="object"&&typeof $!="function")return{default:$};var x=c(C);if(x&&x.has($))return x.get($);var E={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in $)if(k!=="default"&&Object.prototype.hasOwnProperty.call($,k)){var I=_?Object.getOwnPropertyDescriptor($,k):null;I&&(I.get||I.set)?Object.defineProperty(E,k,I):E[k]=$[k]}return E.default=$,x&&x.set($,E),E}function f($,C){(0,i.default)($,"[@ant-design/icons] ".concat(C))}function p($){return(0,n.default)($)==="object"&&typeof $.name=="string"&&typeof $.theme=="string"&&((0,n.default)($.icon)==="object"||typeof $.icon=="function")}function h(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys($).reduce(function(C,x){var E=$[x];switch(x){case"class":C.className=E,delete C.class;break;default:delete C[x],C[(0,u.default)(x)]=E}return C},{})}function v($,C,x){return x?a.default.createElement($.tag,(0,r.default)((0,r.default)({key:C},h($.attrs)),x),($.children||[]).map(function(E,_){return v(E,"".concat(C,"-").concat($.tag,"-").concat(_))})):a.default.createElement($.tag,(0,r.default)({key:C},h($.attrs)),($.children||[]).map(function(E,_){return v(E,"".concat(C,"-").concat($.tag,"-").concat(_))}))}function b($){return(0,o.generate)($)[0]}function g($){return $?Array.isArray($)?$:[$]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};ts.svgBaseProps=y;var S=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`;ts.iconStyles=S;var w=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,x=(0,a.useContext)(l.default),E=x.csp;(0,a.useEffect)(function(){(0,s.updateCSS)(C,"@ant-design-icons",{prepend:!0,csp:E})},[])};return ts.useInsertStyles=w,ts}var Kae;function Zxe(){if(Kae)return Ew;Kae=1;var e=Fo;Object.defineProperty(Ew,"__esModule",{value:!0}),Ew.default=void 0;var t=e(yq()),r=e(Xd()),n=Sq(),o=["icon","className","onClick","style","primaryColor","secondaryColor"],a={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function i(c){var d=c.primaryColor,f=c.secondaryColor;a.primaryColor=d,a.secondaryColor=f||(0,n.getSecondaryColor)(d),a.calculated=!!f}function s(){return(0,r.default)({},a)}var l=function(d){var f=d.icon,p=d.className,h=d.onClick,v=d.style,b=d.primaryColor,g=d.secondaryColor,y=(0,t.default)(d,o),S=a;if(b&&(S={primaryColor:b,secondaryColor:g||(0,n.getSecondaryColor)(b)}),(0,n.useInsertStyles)(),(0,n.warning)((0,n.isIconDefinition)(f),"icon should be icon definiton, but got ".concat(f)),!(0,n.isIconDefinition)(f))return null;var w=f;return w&&typeof w.icon=="function"&&(w=(0,r.default)((0,r.default)({},w),{},{icon:w.icon(S.primaryColor,S.secondaryColor)})),(0,n.generate)(w.icon,"svg-".concat(w.name),(0,r.default)({className:p,onClick:h,style:v,"data-icon":w.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},y))};l.displayName="IconReact",l.getTwoToneColors=s,l.setTwoToneColors=i;var u=l;return Ew.default=u,Ew}var _w={},Gae;function UYt(){if(Gae)return _w;Gae=1;var e=Fo;Object.defineProperty(_w,"__esModule",{value:!0}),_w.getTwoToneColor=a,_w.setTwoToneColor=o;var t=e(bq()),r=e(Zxe()),n=Sq();function o(i){var s=(0,n.normalizeTwoToneColors)(i),l=(0,t.default)(s,2),u=l[0],c=l[1];return r.default.setTwoToneColors({primaryColor:u,secondaryColor:c})}function a(){var i=r.default.getTwoToneColors();return i.calculated?[i.primaryColor,i.secondaryColor]:i.primaryColor}return _w}var Yae;function xS(){if(Yae)return xw;Yae=1;var e=Fo,t=$u;Object.defineProperty(xw,"__esModule",{value:!0}),xw.default=void 0;var r=e(Xd()),n=e(bq()),o=e(gq()),a=e(yq()),i=h(m),s=e(oSe),l=e(Gxe()),u=e(Zxe()),c=UYt(),d=Sq(),f=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function p(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,S=new WeakMap;return(p=function($){return $?S:y})(g)}function h(g,y){if(!y&&g&&g.__esModule)return g;if(g===null||t(g)!=="object"&&typeof g!="function")return{default:g};var S=p(y);if(S&&S.has(g))return S.get(g);var w={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in g)if(C!=="default"&&Object.prototype.hasOwnProperty.call(g,C)){var x=$?Object.getOwnPropertyDescriptor(g,C):null;x&&(x.get||x.set)?Object.defineProperty(w,C,x):w[C]=g[C]}return w.default=g,S&&S.set(g,w),w}(0,c.setTwoToneColor)("#1890ff");var v=i.forwardRef(function(g,y){var S,w=g.className,$=g.icon,C=g.spin,x=g.rotate,E=g.tabIndex,_=g.onClick,k=g.twoToneColor,I=(0,a.default)(g,f),N=i.useContext(l.default),z=N.prefixCls,O=z===void 0?"anticon":z,A=N.rootClassName,M=(0,s.default)(A,O,(S={},(0,o.default)(S,"".concat(O,"-").concat($.name),!!$.name),(0,o.default)(S,"".concat(O,"-spin"),!!C||$.name==="loading"),S),w),L=E;L===void 0&&_&&(L=-1);var j=x?{msTransform:"rotate(".concat(x,"deg)"),transform:"rotate(".concat(x,"deg)")}:void 0,H=(0,d.normalizeTwoToneColors)(k),B=(0,n.default)(H,2),F=B[0],V=B[1];return i.createElement("span",(0,r.default)((0,r.default)({role:"img","aria-label":$.name},I),{},{ref:y,tabIndex:L,onClick:_,className:M}),i.createElement(u.default,{icon:$,primaryColor:F,secondaryColor:V,style:j}))});v.displayName="AntdIcon",v.getTwoToneColor=c.getTwoToneColor,v.setTwoToneColor=c.setTwoToneColor;var b=v;return xw.default=b,xw}var wq=Fo,KYt=$u;Object.defineProperty(MD,"__esModule",{value:!0});MD.default=void 0;var Xae=wq(Xd()),Jxe=XYt(m),GYt=wq(JGt()),YYt=wq(xS());function e$e(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(e$e=function(o){return o?r:t})(e)}function XYt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||KYt(e)!=="object"&&typeof e!="function")return{default:e};var r=e$e(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var t$e=function(t,r){return Jxe.createElement(YYt.default,(0,Xae.default)((0,Xae.default)({},t),{},{ref:r,icon:GYt.default}))};t$e.displayName="ExclamationCircleOutlined";var QYt=Jxe.forwardRef(t$e);MD.default=QYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(MD);function n(a){return a&&a.__esModule?a:{default:a}}var o=r;t.default=o,e.exports=o})(hz,hz.exports);var ZYt=hz.exports;const JYt=zt(ZYt);function eXt({errors:e,registry:t}){const{translateString:r}=t,n=()=>T.jsx(pz,{className:"list-group",size:"small",children:e.map((o,a)=>T.jsx(pz.Item,{children:T.jsxs(LUt,{children:[T.jsx(JYt,{}),o.stack]})},a))});return T.jsx(r6t,{className:"panel panel-danger errors",description:n(),message:r($t.ErrorsLabel),type:"error"})}var gz={exports:{}},BD={},Ok={},Qae;function tXt(){if(Qae)return Ok;Qae=1,Object.defineProperty(Ok,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};return Ok.default=e,Ok}var Cq=Fo,rXt=$u;Object.defineProperty(BD,"__esModule",{value:!0});BD.default=void 0;var Zae=Cq(Xd()),r$e=aXt(m),nXt=Cq(tXt()),oXt=Cq(xS());function n$e(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(n$e=function(o){return o?r:t})(e)}function aXt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||rXt(e)!=="object"&&typeof e!="function")return{default:e};var r=n$e(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var o$e=function(t,r){return r$e.createElement(oXt.default,(0,Zae.default)((0,Zae.default)({},t),{},{ref:r,icon:nXt.default}))};o$e.displayName="ArrowDownOutlined";var iXt=r$e.forwardRef(o$e);BD.default=iXt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(BD);function n(a){return a&&a.__esModule?a:{default:a}}var o=r;t.default=o,e.exports=o})(gz,gz.exports);var sXt=gz.exports;const lXt=zt(sXt);var bz={exports:{}},jD={},Nk={},Jae;function uXt(){if(Jae)return Nk;Jae=1,Object.defineProperty(Nk,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};return Nk.default=e,Nk}var xq=Fo,cXt=$u;Object.defineProperty(jD,"__esModule",{value:!0});jD.default=void 0;var eie=xq(Xd()),a$e=pXt(m),dXt=xq(uXt()),fXt=xq(xS());function i$e(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(i$e=function(o){return o?r:t})(e)}function pXt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||cXt(e)!=="object"&&typeof e!="function")return{default:e};var r=i$e(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var s$e=function(t,r){return a$e.createElement(fXt.default,(0,eie.default)((0,eie.default)({},t),{},{ref:r,icon:dXt.default}))};s$e.displayName="ArrowUpOutlined";var mXt=a$e.forwardRef(s$e);jD.default=mXt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(jD);function n(a){return a&&a.__esModule?a:{default:a}}var o=r;t.default=o,e.exports=o})(bz,bz.exports);var hXt=bz.exports;const vXt=zt(hXt);var yz={exports:{}},LD={},Dk={},tie;function gXt(){if(tie)return Dk;tie=1,Object.defineProperty(Dk,"__esModule",{value:!0});var e={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"};return Dk.default=e,Dk}var $q=Fo,bXt=$u;Object.defineProperty(LD,"__esModule",{value:!0});LD.default=void 0;var rie=$q(Xd()),l$e=wXt(m),yXt=$q(gXt()),SXt=$q(xS());function u$e(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(u$e=function(o){return o?r:t})(e)}function wXt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||bXt(e)!=="object"&&typeof e!="function")return{default:e};var r=u$e(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var c$e=function(t,r){return l$e.createElement(SXt.default,(0,rie.default)((0,rie.default)({},t),{},{ref:r,icon:yXt.default}))};c$e.displayName="CopyOutlined";var CXt=l$e.forwardRef(c$e);LD.default=CXt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(LD);function n(a){return a&&a.__esModule?a:{default:a}}var o=r;t.default=o,e.exports=o})(yz,yz.exports);var xXt=yz.exports;const $Xt=zt(xXt);var Sz={exports:{}},zD={},Ak={},nie;function EXt(){if(nie)return Ak;nie=1,Object.defineProperty(Ak,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};return Ak.default=e,Ak}var Eq=Fo,_Xt=$u;Object.defineProperty(zD,"__esModule",{value:!0});zD.default=void 0;var oie=Eq(Xd()),d$e=TXt(m),kXt=Eq(EXt()),PXt=Eq(xS());function f$e(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(f$e=function(o){return o?r:t})(e)}function TXt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||_Xt(e)!=="object"&&typeof e!="function")return{default:e};var r=f$e(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var p$e=function(t,r){return d$e.createElement(PXt.default,(0,oie.default)((0,oie.default)({},t),{},{ref:r,icon:kXt.default}))};p$e.displayName="DeleteOutlined";var IXt=d$e.forwardRef(p$e);zD.default=IXt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(zD);function n(a){return a&&a.__esModule?a:{default:a}}var o=r;t.default=o,e.exports=o})(Sz,Sz.exports);var RXt=Sz.exports;const FXt=zt(RXt);var wz={exports:{}},VD={},Mk={},aie;function OXt(){if(aie)return Mk;aie=1,Object.defineProperty(Mk,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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:"plus-circle",theme:"outlined"};return Mk.default=e,Mk}var _q=Fo,NXt=$u;Object.defineProperty(VD,"__esModule",{value:!0});VD.default=void 0;var iie=_q(Xd()),m$e=MXt(m),DXt=_q(OXt()),AXt=_q(xS());function h$e(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(h$e=function(o){return o?r:t})(e)}function MXt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||NXt(e)!=="object"&&typeof e!="function")return{default:e};var r=h$e(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var v$e=function(t,r){return m$e.createElement(AXt.default,(0,iie.default)((0,iie.default)({},t),{},{ref:r,icon:DXt.default}))};v$e.displayName="PlusCircleOutlined";var BXt=m$e.forwardRef(v$e);VD.default=BXt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(VD);function n(a){return a&&a.__esModule?a:{default:a}}var o=r;t.default=o,e.exports=o})(wz,wz.exports);var jXt=wz.exports;const LXt=zt(jXt);function h_(e){const{iconType:t="default",icon:r,onClick:n,uiSchema:o,registry:a,...i}=e;return T.jsx(Yg,{onClick:n,type:t,icon:r,...i})}function zXt(e){const{registry:{translateString:t}}=e;return T.jsx(h_,{title:t($t.AddItemButton),...e,block:!0,iconType:"primary",icon:T.jsx(LXt,{})})}function VXt(e){const{registry:{translateString:t}}=e;return T.jsx(h_,{title:t($t.CopyButton),...e,icon:T.jsx($Xt,{})})}function HXt(e){const{registry:{translateString:t}}=e;return T.jsx(h_,{title:t($t.MoveDownButton),...e,icon:T.jsx(lXt,{})})}function WXt(e){const{registry:{translateString:t}}=e;return T.jsx(h_,{title:t($t.MoveUpButton),...e,icon:T.jsx(vXt,{})})}function qXt(e){const t=At(e.uiSchema),{registry:{translateString:r}}=e;return T.jsx(h_,{title:r($t.RemoveButton),...e,danger:!0,block:!!t.block,iconType:"primary",icon:T.jsx(FXt,{})})}function UXt(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=Vd(r);return T.jsx("div",{id:n,children:t.map(o=>T.jsx("div",{children:o},`field-${n}-error-${o}`))})}const KXt={span:24},GXt={span:24};function YXt(e){const{children:t,classNames:r,style:n,description:o,disabled:a,displayLabel:i,errors:s,formContext:l,help:u,hidden:c,id:d,label:f,onDropPropertyClick:p,onKeyChange:h,rawErrors:v,rawDescription:b,rawHelp:g,readonly:y,registry:S,required:w,schema:$,uiSchema:C}=e,{colon:x,labelCol:E=KXt,wrapperCol:_=GXt,wrapperStyle:k,descriptionLocation:I="below"}=l,N=At(C),z=Ct("WrapIfAdditionalTemplate",S,N);if(c)return T.jsx("div",{className:"field-hidden",children:t});const O=b?o:void 0,A={};switch(I){case"tooltip":A.tooltip=O;break;case"below":default:A.extra=O;break}return T.jsx(z,{classNames:r,style:n,disabled:a,id:d,label:f,onDropPropertyClick:p,onKeyChange:h,readonly:y,required:w,schema:$,uiSchema:C,registry:S,children:T.jsx(jxe.Item,{colon:x,hasFeedback:$.type!=="array"&&$.type!=="object",help:!!g&&u||(v!=null&&v.length?s:void 0),htmlFor:d,label:i&&f,labelCol:E,required:w,style:k,validateStatus:v!=null&&v.length?"error":void 0,wrapperCol:_,...A,children:t})})}const XXt={paddingBottom:"8px"};function QXt(e){const{description:t,disabled:r,formContext:n,formData:o,idSchema:a,onAddClick:i,properties:s,readonly:l,required:u,registry:c,schema:d,title:f,uiSchema:p}=e,h=At(p),v=Ct("TitleFieldTemplate",c,h),b=Ct("DescriptionFieldTemplate",c,h),{ButtonTemplates:{AddButton:g}}=c.templates,{colSpan:y=24,labelAlign:S="right",rowGutter:w=24}=n,$=A=>A.content.props.schema,C=A=>$(A).type,x=A=>A.content.props.uiSchema,E=A=>At(x(A)).field,_=A=>At(x(A)).widget,k=A=>{const M=C(A),L=E(A),j=_(A),H=s.length<2||M==="object"||M==="array"||j==="textarea"?24:12;if(vl(y)){const B=y;if(ag(j))return B[j];if(ag(L))return B[L];if(ag(M))return B[M]}return u7(y)?y:H},{getPrefixCls:I}=m.useContext(Yd.ConfigContext),z=`${I("form")}-item-label`,O=Oe(z,S==="left"&&`${z}-left`);return T.jsxs("fieldset",{id:a.$id,children:[T.jsxs(gp,{gutter:w,children:[f&&T.jsx(ea,{className:O,span:24,children:T.jsx(v,{id:Nu(a),title:f,required:u,schema:d,uiSchema:p,registry:c})}),t&&T.jsx(ea,{span:24,style:XXt,children:T.jsx(b,{id:pa(a),description:t,schema:d,uiSchema:p,registry:c})}),s.filter(A=>!A.hidden).map(A=>T.jsx(ea,{span:k(A),children:A.content},A.name))]}),$p(d,p,o)&&T.jsx(ea,{span:24,children:T.jsx(gp,{gutter:w,justify:"end",children:T.jsx(ea,{flex:"192px",children:T.jsx(g,{className:"object-property-expand",disabled:r||l,onClick:i(d),uiSchema:p,registry:c})})})})]})}function ZXt({uiSchema:e}){const{submitText:t,norender:r,props:n}=Pp(e);return r?null:T.jsx(Yg,{type:"submit",...n,htmlType:"submit",children:t})}function JXt({id:e,required:t,registry:r,title:n}){const{formContext:o}=r,{colon:a=!0}=o;let i=n;a&&typeof n=="string"&&n.trim()!==""&&(i=n.replace(/[::]\s*$/,""));const s=()=>{if(!e)return;const d=document.querySelector(`[id="${e}"]`);d&&d.focus&&d.focus()},{getPrefixCls:l}=m.useContext(Yd.ConfigContext),u=l("form"),c=Oe({[`${u}-item-required`]:t,[`${u}-item-no-colon`]:!a});return n?T.jsx("label",{className:c,htmlFor:e,onClick:s,title:typeof n=="string"?n:"",children:i}):null}const eQt={span:24},tQt={span:24},rQt={width:"100%"};function nQt(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,required:c,registry:d,schema:f,uiSchema:p}=e,{colon:h,labelCol:v=eQt,readonlyAsDisabled:b=!0,rowGutter:g=24,toolbarAlign:y="top",wrapperCol:S=tQt,wrapperStyle:w}=d.formContext,{templates:$,translateString:C}=d,{RemoveButton:x}=$.ButtonTemplates,E=C($t.KeyLabel,[i]);if(!(Nl in f))return T.jsx("div",{className:r,style:n,children:t});const k=({target:z})=>l(z&&z.value),I=p?p[If]:{},N={...p,[If]:{...I,block:!0}};return T.jsx("div",{className:r,style:n,children:T.jsxs(gp,{align:y,gutter:g,children:[T.jsx(ea,{className:"form-additional",flex:"1",children:T.jsx("div",{className:"form-group",children:T.jsx(jxe.Item,{colon:h,className:"form-group",hasFeedback:!0,htmlFor:`${a}-key`,label:E,labelCol:v,required:c,style:w,wrapperCol:S,children:T.jsx(AD,{className:"form-control",defaultValue:i,disabled:o||b&&u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:k,style:rQt,type:"text"})})})}),T.jsx(ea,{className:"form-additional",flex:"1",children:t}),T.jsx(ea,{flex:"192px",children:T.jsx(x,{className:"array-item-remove",disabled:o||u,onClick:s(i),uiSchema:N,registry:d})})]})})}function oQt(){return{ArrayFieldItemTemplate:UGt,ArrayFieldTemplate:GGt,BaseInputTemplate:YGt,ButtonTemplates:{AddButton:zXt,CopyButton:VXt,MoveDownButton:HXt,MoveUpButton:WXt,RemoveButton:qXt,SubmitButton:ZXt},DescriptionFieldTemplate:XGt,ErrorListTemplate:eXt,FieldErrorTemplate:UXt,FieldTemplate:YXt,ObjectFieldTemplate:QXt,TitleFieldTemplate:JXt,WrapIfAdditionalTemplate:nQt}}const aQt=e=>Object.values(e).every(t=>t!==-1);function kq(e){const{autofocus:t,disabled:r,formContext:n,id:o,onBlur:a,onChange:i,onFocus:s,options:l,readonly:u,registry:c,showTime:d,value:f}=e,{translateString:p,widgets:h}=c,{SelectWidget:v}=h,{rowGutter:b=24}=n,[g,y]=m.useState(Ff(f,d));m.useEffect(()=>{y(Ff(f,d))},[d,f]);const S=(x,E)=>{const _={...g,[x]:typeof E>"u"?-1:E};aQt(_)?i(Ny(_,d)):y(_)},w=x=>{if(x.preventDefault(),r||u)return;const E=Ff(new Date().toJSON(),d);i(Ny(E,d))},$=x=>{x.preventDefault(),!(r||u)&&i(void 0)},C=x=>T.jsx(v,{autofocus:x.autofocus,className:"form-control",disabled:x.disabled,id:x.id,name:x.name,onBlur:x.onBlur,onChange:E=>x.select(x.type,E),onFocus:x.onFocus,options:{enumOptions:sO(x.range[0],x.range[1])},placeholder:x.type,readonly:x.readonly,schema:{type:"integer"},value:x.value,registry:c,label:"","aria-describedby":Ot(o)});return T.jsxs(gp,{gutter:[Math.floor(b/2),Math.floor(b/2)],children:[R7(g,d,l.yearsRange,l.format).map((x,E)=>{const _=o+"_"+x.type;return T.jsx(ea,{flex:"88px",children:C({...x,autofocus:t&&E===0,disabled:r,id:_,name:o,onBlur:a,onFocus:s,readonly:u,registry:c,select:S,value:x.value||-1<0?void 0:x.value})},_)}),!l.hideNowButton&&T.jsx(ea,{flex:"88px",children:T.jsx(Yg,{block:!0,className:"btn-now",onClick:w,type:"primary",children:p($t.NowLabel)})}),!l.hideClearButton&&T.jsx(ea,{flex:"88px",children:T.jsx(Yg,{block:!0,className:"btn-clear",danger:!0,onClick:$,type:"primary",children:p($t.ClearLabel)})})]})}kq.defaultProps={autofocus:!1,disabled:!1,options:{yearsRange:[1900,new Date().getFullYear()+2]},readonly:!1,showTime:!1};function g$e(e){const{AltDateWidget:t}=e.registry.widgets;return T.jsx(t,{showTime:!0,...e})}g$e.defaultProps={...kq.defaultProps,showTime:!0};function iQt({autofocus:e,disabled:t,formContext:r,id:n,onBlur:o,onChange:a,onFocus:i,options:s,readonly:l,value:u}){const{readonlyAsDisabled:c=!0}=r,{enumOptions:d,enumDisabled:f,inline:p,emptyValue:h}=s,v=w=>a(Tt(w,d,h)),y={id:n,onBlur:l?void 0:({target:w})=>o(n,Tt(w.value,d,h)),onFocus:l?void 0:({target:w})=>i(n,Tt(w.value,d,h))},S=mi(u,d,!0);return Array.isArray(d)&&d.length>0?T.jsx(T.Fragment,{children:T.jsx(cz.Group,{disabled:t||c&&l,name:n,onChange:l?void 0:v,value:S,...y,"aria-describedby":Ot(n),children:Array.isArray(d)&&d.map((w,$)=>T.jsxs("span",{children:[T.jsx(cz,{id:Wa(n,$),name:n,autoFocus:$===0?e:!1,disabled:Array.isArray(f)&&f.indexOf(w.value)!==-1,value:String($),children:w.label}),!p&&T.jsx("br",{})]},$))})}):null}function sQt(e){const{autofocus:t,disabled:r,formContext:n,id:o,label:a,hideLabel:i,onBlur:s,onChange:l,onFocus:u,readonly:c,value:d}=e,{readonlyAsDisabled:f=!0}=n,p=({target:g})=>l(g.checked),b={onBlur:c?void 0:({target:g})=>s(o,g&&g.checked),onFocus:c?void 0:({target:g})=>u(o,g&&g.checked)};return T.jsx(cz,{autoFocus:t,checked:typeof d>"u"?!1:d,disabled:r||f&&c,id:o,name:o,onChange:c?void 0:p,...b,"aria-describedby":Ot(o),children:wr(a,i,"")})}const lQt={width:"100%"};function uQt(e){const{disabled:t,formContext:r,id:n,onBlur:o,onChange:a,onFocus:i,placeholder:s,readonly:l,value:u}=e,{readonlyAsDisabled:c=!0}=r,d=v=>a(v&&v.toISOString()),f=()=>o(n,u),p=()=>i(n,u),h=v=>v.parentNode;return T.jsx(Pxe,{disabled:t||c&&l,getPopupContainer:h,id:n,name:n,onBlur:l?void 0:f,onChange:l?void 0:d,onFocus:l?void 0:p,placeholder:s,showTime:!0,style:lQt,value:u&&Fi(u),"aria-describedby":Ot(n)})}const cQt={width:"100%"};function dQt(e){const{disabled:t,formContext:r,id:n,onBlur:o,onChange:a,onFocus:i,placeholder:s,readonly:l,value:u}=e,{readonlyAsDisabled:c=!0}=r,d=v=>a(v&&v.format("YYYY-MM-DD")),f=()=>o(n,u),p=()=>i(n,u),h=v=>v.parentNode;return T.jsx(Pxe,{disabled:t||c&&l,getPopupContainer:h,id:n,name:n,onBlur:l?void 0:f,onChange:l?void 0:d,onFocus:l?void 0:p,placeholder:s,showTime:!1,style:cQt,value:u&&Fi(u),"aria-describedby":Ot(n)})}function fQt(e){const{disabled:t,formContext:r,id:n,onBlur:o,onChange:a,onFocus:i,options:s,placeholder:l,readonly:u,value:c}=e,{readonlyAsDisabled:d=!0}=r,f=s.emptyValue||"",p=({target:b})=>a(b.value===""?f:b.value),h=({target:b})=>o(n,b.value),v=({target:b})=>i(n,b.value);return T.jsx(AD.Password,{disabled:t||d&&u,id:n,name:n,onBlur:u?void 0:h,onChange:u?void 0:p,onFocus:u?void 0:v,placeholder:l,value:c||"","aria-describedby":Ot(n)})}function pQt({autofocus:e,disabled:t,formContext:r,id:n,onBlur:o,onChange:a,onFocus:i,options:s,readonly:l,value:u}){const{readonlyAsDisabled:c=!0}=r,{enumOptions:d,enumDisabled:f,emptyValue:p}=s,h=({target:{value:y}})=>a(Tt(y,d,p)),v=({target:y})=>o(n,Tt(y&&y.value,d,p)),b=({target:y})=>i(n,Tt(y&&y.value,d,p)),g=mi(u,d);return T.jsx(Moe.Group,{disabled:t||c&&l,id:n,name:n,onChange:l?void 0:h,onBlur:l?void 0:v,onFocus:l?void 0:b,value:g,"aria-describedby":Ot(n),children:Array.isArray(d)&&d.map((y,S)=>T.jsx(Moe,{id:Wa(n,S),name:n,autoFocus:S===0?e:!1,disabled:Array.isArray(f)&&f.indexOf(y.value)!==-1,value:String(S),children:y.label},S))})}function mQt(e){const{autofocus:t,disabled:r,formContext:n,id:o,onBlur:a,onChange:i,onFocus:s,options:l,placeholder:u,readonly:c,schema:d,value:f}=e,{readonlyAsDisabled:p=!0}=n,{min:h,max:v,step:b}=_p(d),g=l.emptyValue||"",y=C=>i(C===""?g:C),$={placeholder:u,onBlur:c?void 0:()=>a(o,f),onFocus:c?void 0:()=>s(o,f)};return T.jsx(WGt,{autoFocus:t,disabled:r||p&&c,id:o,max:v,min:h,onChange:c?void 0:y,range:!1,step:b,value:f,...$,"aria-describedby":Ot(o)})}const hQt={width:"100%"};function vQt({autofocus:e,disabled:t,formContext:r={},id:n,multiple:o,onBlur:a,onChange:i,onFocus:s,options:l,placeholder:u,readonly:c,value:d,schema:f}){const{readonlyAsDisabled:p=!0}=r,{enumOptions:h,enumDisabled:v,emptyValue:b}=l,g=k=>i(Tt(k,h,b)),y=()=>a(n,Tt(d,h,b)),S=()=>s(n,Tt(d,h,b)),w=(k,I)=>I&&ag(I.label)?I.label.toLowerCase().indexOf(k.toLowerCase())>=0:!1,$=k=>k.parentNode,C=mi(d,h,o),x={name:n},E=!o&&f.default===void 0,_=m.useMemo(()=>{if(Array.isArray(h)){const k=h.map(({value:I,label:N},z)=>({disabled:Array.isArray(v)&&v.indexOf(I)!==-1,key:String(z),value:String(z),label:N}));return E&&k.unshift({value:"",label:u||""}),k}},[v,h,u,E]);return T.jsx(c_,{autoFocus:e,disabled:t||p&&c,getPopupContainer:$,id:n,mode:o?"multiple":void 0,onBlur:c?void 0:y,onChange:c?void 0:g,onFocus:c?void 0:S,placeholder:u,style:hQt,value:C,...x,filterOption:w,"aria-describedby":Ot(n),options:_})}const gQt={width:"100%"};function bQt({disabled:e,formContext:t,id:r,onBlur:n,onChange:o,onFocus:a,options:i,placeholder:s,readonly:l,value:u}){const{readonlyAsDisabled:c=!0}=t,d=({target:v})=>o(v.value===""?i.emptyValue:v.value),f=({target:v})=>n(r,v&&v.value),p=({target:v})=>a(r,v&&v.value),h={type:"textarea"};return T.jsx(AD.TextArea,{disabled:e||c&&l,id:r,name:r,onBlur:l?void 0:f,onChange:l?void 0:d,onFocus:l?void 0:p,placeholder:s,rows:i.rows||4,style:gQt,value:u,...h,"aria-describedby":Ot(r)})}function yQt(){return{AltDateTimeWidget:g$e,AltDateWidget:kq,CheckboxesWidget:iQt,CheckboxWidget:sQt,DateTimeWidget:uQt,DateWidget:dQt,PasswordWidget:fQt,RadioWidget:pQt,RangeWidget:mQt,SelectWidget:vQt,TextareaWidget:bQt}}function b$e(){return{templates:oQt(),widgets:yQt()}}const SQt=b$e();function wQt(){return Fd(b$e())}wQt();var Pq=Y.createContext({});Pq.Consumer;Pq.Provider;function ia(e,t){var r=m.useContext(Pq);return e||r[t]||t}function CQt(){for(var e=arguments.length,t=new Array(e),r=0;rT.jsx(h,{...y},g)),t&&T.jsx(xz,{className:"",children:T.jsxs(x1,{className:"mt-2",children:[T.jsx(Pc,{xs:9}),T.jsx(Pc,{xs:3,className:"py-4 col-lg-3 col-3",children:T.jsx(b,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})]})})]},`array-item-list-${n.$id}`)]})})})}var lie={exports:{}},$z={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){function o(i,s,l,u,c,d){var f=u||"<>",p=d||l;if(s[l]==null)return i?new Error("Required "+c+" `"+p+"` was not specified "+("in `"+f+"`.")):null;for(var h=arguments.length,v=Array(h>6?h-6:0),b=6;bs($===""?f.emptyValue:$),S=({target:$})=>u(e,$&&$.value),w=({target:$})=>c(e,$&&$.value);return T.jsxs(T.Fragment,{children:[T.jsx(vs.Control,{id:e,name:e,placeholder:t,autoFocus:d,required:r,disabled:o,readOnly:n,className:h.length>0?"is-invalid":"",list:p.examples?da(e):void 0,...g,value:i||i===0?i:"",onChange:l||y,onBlur:S,onFocus:w,"aria-describedby":Ot(e,!!p.examples)}),v,Array.isArray(p.examples)?T.jsx("datalist",{id:da(e),children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map($=>T.jsx("option",{value:$},$))}):null]})}function gZt({id:e,description:t}){return t?T.jsx("div",{children:T.jsx("div",{id:e,className:"mb-3",children:t})}):null}const N$e=function(e){return Y.forwardRef(function(t,r){return Y.createElement("div",G({},t,{ref:r,className:Oe(t.className,e)}))})};var D$e=Y.createContext(null);D$e.displayName="CardContext";const bZt=D$e;var yZt=["bsPrefix","className","variant","as"],SZt={variant:null},Mq=Y.forwardRef(function(e,t){var r=e.bsPrefix,n=e.className,o=e.variant,a=e.as,i=a===void 0?"img":a,s=mn(e,yZt),l=ia(r,"card-img");return Y.createElement(i,G({ref:t,className:Oe(o?l+"-"+o:l,n)},s))});Mq.displayName="CardImg";Mq.defaultProps=SZt;const wZt=Mq;var CZt=["bsPrefix","className","bg","text","border","body","children","as"],xZt=N$e("h5"),$Zt=N$e("h6"),A$e=Bu("card-body"),EZt=Bu("card-title",{Component:xZt}),_Zt=Bu("card-subtitle",{Component:$Zt}),kZt=Bu("card-link",{Component:"a"}),PZt=Bu("card-text",{Component:"p"}),TZt=Bu("card-header"),IZt=Bu("card-footer"),RZt=Bu("card-img-overlay"),FZt={body:!1},ju=Y.forwardRef(function(e,t){var r=e.bsPrefix,n=e.className,o=e.bg,a=e.text,i=e.border,s=e.body,l=e.children,u=e.as,c=u===void 0?"div":u,d=mn(e,CZt),f=ia(r,"card"),p=m.useMemo(function(){return{cardHeaderBsPrefix:f+"-header"}},[f]);return Y.createElement(bZt.Provider,{value:p},Y.createElement(c,G({ref:t},d,{className:Oe(n,f,o&&"bg-"+o,a&&"text-"+a,i&&"border-"+i)}),s?Y.createElement(A$e,null,l):l))});ju.displayName="Card";ju.defaultProps=FZt;ju.Img=wZt;ju.Title=EZt;ju.Subtitle=_Zt;ju.Body=A$e;ju.Link=kZt;ju.Text=PZt;ju.Header=TZt;ju.Footer=IZt;ju.ImgOverlay=RZt;const L4=ju;function uie(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function OZt(e){var t=NZt(e,"string");return typeof t=="symbol"?t:String(t)}function NZt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DZt(e,t,r){var n=m.useRef(e!==void 0),o=m.useState(t),a=o[0],i=o[1],s=e!==void 0,l=n.current;return n.current=s,!s&&l&&a!==t&&i(t),[s?e:a,m.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f!t,!1);return e}const cie=e=>!e||typeof e=="function"?e:t=>{e.current=t};function LZt(e,t){const r=cie(e),n=cie(t);return o=>{r&&r(o),n&&n(o)}}function zZt(e,t){return m.useMemo(()=>LZt(e,t),[e,t])}var M$e=Y.createContext(null);M$e.displayName="NavContext";const B$e=M$e;var VZt=Y.createContext(null),j$e=function(t,r){return r===void 0&&(r=null),t!=null?String(t):r||null};const _z=VZt;var HZt=Y.createContext(null);const WZt=HZt;var qZt=["as","onSelect","activeKey","role","onKeyDown"],die=function(){},UZt=Y.forwardRef(function(e,t){var r=e.as,n=r===void 0?"ul":r,o=e.onSelect,a=e.activeKey,i=e.role,s=e.onKeyDown,l=mn(e,qZt),u=jZt(),c=m.useRef(!1),d=m.useContext(_z),f=m.useContext(WZt),p,h;f&&(i=i||"tablist",a=f.activeKey,p=f.getControlledId,h=f.getControllerId);var v=m.useRef(null),b=function($){var C=v.current;if(!C)return null;var x=BZt(C,"[data-rb-event-key]:not(.disabled)"),E=C.querySelector(".active");if(!E)return null;var _=x.indexOf(E);if(_===-1)return null;var k=_+$;return k>=x.length&&(k=0),k<0&&(k=x.length-1),x[k]},g=function($,C){$!=null&&(o&&o($,C),d&&d($,C))},y=function($){s&&s($);var C;switch($.key){case"ArrowLeft":case"ArrowUp":C=b(-1);break;case"ArrowRight":case"ArrowDown":C=b(1);break;default:return}C&&($.preventDefault(),g(C.dataset.rbEventKey,$),c.current=!0,u())};m.useEffect(function(){if(v.current&&c.current){var w=v.current.querySelector("[data-rb-event-key].active");w&&w.focus()}c.current=!1});var S=zZt(t,v);return Y.createElement(_z.Provider,{value:g},Y.createElement(B$e.Provider,{value:{role:i,activeKey:j$e(a),getControlledId:p||die,getControllerId:h||die}},Y.createElement(n,G({},l,{onKeyDown:y,ref:S,role:i}))))});const KZt=UZt;function GZt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function YZt(e){const t=GZt(e);return m.useCallback(function(...r){return t.current&&t.current(...r)},[t])}var XZt=["active","className","eventKey","onSelect","onClick","as"],QZt={disabled:!1},L$e=Y.forwardRef(function(e,t){var r=e.active,n=e.className,o=e.eventKey,a=e.onSelect,i=e.onClick,s=e.as,l=mn(e,XZt),u=j$e(o,l.href),c=m.useContext(_z),d=m.useContext(B$e),f=r;if(d){!l.role&&d.role==="tablist"&&(l.role="tab");var p=d.getControllerId(u),h=d.getControlledId(u);l["data-rb-event-key"]=u,l.id=p||l.id,l["aria-controls"]=h||l["aria-controls"],f=r==null&&u!=null?d.activeKey===u:r}l.role==="tab"&&(l.disabled&&(l.tabIndex=-1,l["aria-disabled"]=!0),l["aria-selected"]=f);var v=YZt(function(b){i&&i(b),u!=null&&(a&&a(u,b),c&&c(u,b))});return Y.createElement(s,G({},l,{ref:t,onClick:v,className:Oe(n,f&&"active")}))});L$e.defaultProps=QZt;const ZZt=L$e;var JZt=["bsPrefix","active","disabled","className","variant","action","as","onClick"],eJt={variant:void 0,active:!1,disabled:!1},Bq=Y.forwardRef(function(e,t){var r=e.bsPrefix,n=e.active,o=e.disabled,a=e.className,i=e.variant,s=e.action,l=e.as,u=e.onClick,c=mn(e,JZt);r=ia(r,"list-group-item");var d=m.useCallback(function(f){if(o){f.preventDefault(),f.stopPropagation();return}u&&u(f)},[o,u]);return o&&c.tabIndex===void 0&&(c.tabIndex=-1,c["aria-disabled"]=!0),Y.createElement(ZZt,G({ref:t},c,{as:l||(s?c.href?"a":"button":"div"),onClick:d,className:Oe(a,r,n&&"active",o&&"disabled",i&&r+"-"+i,s&&r+"-action")}))});Bq.defaultProps=eJt;Bq.displayName="ListGroupItem";const tJt=Bq;var rJt=["className","bsPrefix","variant","horizontal","as"],nJt={variant:void 0,horizontal:void 0},KD=Y.forwardRef(function(e,t){var r=AZt(e,{activeKey:"onSelect"}),n=r.className,o=r.bsPrefix,a=r.variant,i=r.horizontal,s=r.as,l=s===void 0?"div":s,u=mn(r,rJt),c=ia(o,"list-group"),d;return i?d=i===!0?"horizontal":"horizontal-"+i:d=null,Y.createElement(KZt,G({ref:t},u,{as:l,className:Oe(n,c,a&&c+"-"+a,d&&c+"-"+d)}))});KD.defaultProps=nJt;KD.displayName="ListGroup";KD.Item=tJt;const IR=KD;function oJt({errors:e,registry:t}){const{translateString:r}=t;return T.jsxs(L4,{border:"danger",className:"mb-4",children:[T.jsx(L4.Header,{className:"alert-danger",children:r($t.ErrorsLabel)}),T.jsx(L4.Body,{className:"p-0",children:T.jsx(IR,{children:e.map((n,o)=>T.jsx(IR.Item,{className:"border-0",children:T.jsx("span",{children:n.stack})},o))})})]})}var aJt=v_.GenIcon,iJt=function(t){return aJt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"}},{tag:"path",attr:{d:"M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"}},{tag:"path",attr:{d:"M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"}}]})(t)},sJt=v_.GenIcon,lJt=function(t){return sJt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"}}]})(t)},uJt=v_.GenIcon,cJt=function(t){return uJt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]})(t)},dJt=v_.GenIcon,fJt=function(t){return dJt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]})(t)};function GD(e){const{icon:t,iconType:r,className:n,uiSchema:o,registry:a,...i}=e;return T.jsx(Iq,{block:r==="block",...i,variant:e.variant||"light",size:"sm",children:t})}function pJt(e){const{registry:{translateString:t}}=e;return T.jsx(GD,{title:t($t.CopyButton),...e,icon:T.jsx(iJt,{})})}function mJt(e){const{registry:{translateString:t}}=e;return T.jsx(GD,{title:t($t.MoveDownButton),...e,icon:T.jsx(fJt,{})})}function hJt(e){const{registry:{translateString:t}}=e;return T.jsx(GD,{title:t($t.MoveUpButton),...e,icon:T.jsx(cJt,{})})}function vJt(e){const{registry:{translateString:t}}=e;return T.jsx(GD,{title:t($t.RemoveButton),...e,variant:"danger",icon:T.jsx(lJt,{})})}function gJt(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=Vd(r);return T.jsx(IR,{as:"ul",id:n,children:t.map((o,a)=>T.jsx(IR.Item,{as:"li",className:"border-0 m-0 p-0",children:T.jsx("small",{className:"m-0 text-danger",children:o})},a))})}function bJt(e){const{idSchema:t,help:r,hasErrors:n}=e;if(!r)return null;const o=Tp(t);return T.jsx(vs.Text,{className:n?"text-danger":"text-muted",id:o,children:r})}function yJt({id:e,children:t,displayLabel:r,rawErrors:n=[],errors:o,help:a,description:i,rawDescription:s,classNames:l,style:u,disabled:c,label:d,hidden:f,onDropPropertyClick:p,onKeyChange:h,readonly:v,required:b,schema:g,uiSchema:y,registry:S}){const w=At(y),$=Ct("WrapIfAdditionalTemplate",S,w);return f?T.jsx("div",{className:"hidden",children:t}):T.jsx($,{classNames:l,style:u,disabled:c,id:e,label:d,onDropPropertyClick:p,onKeyChange:h,readonly:v,required:b,schema:g,uiSchema:y,registry:S,children:T.jsxs(vs.Group,{children:[r&&T.jsxs(vs.Label,{htmlFor:e,className:n.length>0?"text-danger":"",children:[d,b?"*":null]}),t,r&&s&&T.jsx(vs.Text,{className:n.length>0?"text-danger":"text-muted",children:i}),o,a]})})}function SJt({description:e,title:t,properties:r,required:n,uiSchema:o,idSchema:a,schema:i,formData:s,onAddClick:l,disabled:u,readonly:c,registry:d}){const f=At(o),p=Ct("TitleFieldTemplate",d,f),h=Ct("DescriptionFieldTemplate",d,f),{ButtonTemplates:{AddButton:v}}=d.templates;return T.jsxs(T.Fragment,{children:[t&&T.jsx(p,{id:Nu(a),title:t,required:n,schema:i,uiSchema:o,registry:d}),e&&T.jsx(h,{id:pa(a),description:e,schema:i,uiSchema:o,registry:d}),T.jsxs(xz,{fluid:!0,className:"p-0",children:[r.map((b,g)=>T.jsx(x1,{style:{marginBottom:"10px"},className:b.hidden?"d-none":void 0,children:T.jsxs(Pc,{xs:12,children:[" ",b.content]})},g)),$p(i,o,s)?T.jsx(x1,{children:T.jsx(Pc,{xs:{offset:9,span:3},className:"py-4",children:T.jsx(v,{onClick:l(i),disabled:u||c,className:"object-property-expand",uiSchema:o,registry:d})})}):null]})]})}function wJt(e){const{submitText:t,norender:r,props:n}=Pp(e.uiSchema);return r?null:T.jsx("div",{children:T.jsx(Iq,{variant:"primary",type:"submit",...n,children:t})})}function CJt({id:e,title:t,uiSchema:r}){const n=At(r);return T.jsxs("div",{id:e,className:"my-1",children:[T.jsx("h5",{children:n.title||t}),T.jsx("hr",{className:"border-0 bg-secondary",style:{height:"1px"}})]})}function xJt({classNames:e,style:t,children:r,disabled:n,id:o,label:a,onDropPropertyClick:i,onKeyChange:s,readonly:l,required:u,schema:c,uiSchema:d,registry:f}){const{templates:p,translateString:h}=f,{RemoveButton:v}=p.ButtonTemplates,b=h($t.KeyLabel,[a]);if(!(Nl in c))return T.jsx("div",{className:e,style:t,children:r});const y=({target:w})=>s(w.value),S=`${o}-key`;return T.jsxs(x1,{className:e,style:t,children:[T.jsx(Pc,{xs:5,children:T.jsxs(vs.Group,{children:[T.jsx(vs.Label,{htmlFor:S,children:b}),T.jsx(vs.Control,{required:u,defaultValue:a,disabled:n||l,id:S,name:S,onBlur:l?void 0:y,type:"text"})]})}),T.jsx(Pc,{xs:5,children:r}),T.jsx(Pc,{xs:2,className:"py-4",children:T.jsx(v,{iconType:"block",className:"w-100",disabled:n||l,onClick:i(a),uiSchema:d,registry:f})})]},S)}function $Jt(){return{ArrayFieldItemTemplate:jQt,ArrayFieldTemplate:VQt,BaseInputTemplate:vZt,ButtonTemplates:{AddButton:OQt,CopyButton:pJt,MoveDownButton:mJt,MoveUpButton:hJt,RemoveButton:vJt,SubmitButton:wJt},DescriptionFieldTemplate:gZt,ErrorListTemplate:oJt,FieldErrorTemplate:gJt,FieldHelpTemplate:bJt,FieldTemplate:yJt,ObjectFieldTemplate:SJt,TitleFieldTemplate:CJt,WrapIfAdditionalTemplate:xJt}}function EJt(e){const{id:t,value:r,disabled:n,readonly:o,label:a,hideLabel:i,schema:s,autofocus:l,options:u,onChange:c,onBlur:d,onFocus:f,registry:p,uiSchema:h}=e,v=kd(s),b=Ct("DescriptionFieldTemplate",p,u),g=({target:{checked:$}})=>c($),y=({target:$})=>d(t,$&&$.checked),S=({target:$})=>f(t,$&&$.checked),w=u.description||s.description;return T.jsxs(vs.Group,{className:`checkbox ${n||o?"disabled":""}`,"aria-describedby":Ot(t),children:[!i&&!!w&&T.jsx(b,{id:pa(t),description:w,schema:s,uiSchema:h,registry:p}),T.jsx(vs.Check,{id:t,name:t,label:wr(a,i||!a),checked:typeof r>"u"?!1:r,required:v,disabled:n||o,autoFocus:l,onChange:g,type:"checkbox",onBlur:y,onFocus:S})]})}function _Jt({id:e,disabled:t,options:r,value:n,autofocus:o,readonly:a,required:i,onChange:s,onBlur:l,onFocus:u}){const{enumOptions:c,enumDisabled:d,inline:f,emptyValue:p}=r,h=Array.isArray(n)?n:[n],v=y=>({target:{checked:S}})=>{s(S?qh(y,h,c):Wh(y,h,c))},b=({target:y})=>l(e,Tt(y&&y.value,c,p)),g=({target:y})=>u(e,Tt(y&&y.value,c,p));return T.jsx(vs.Group,{children:Array.isArray(c)&&c.map((y,S)=>{const w=Fu(y.value,h),$=Array.isArray(d)&&d.indexOf(y.value)!==-1;return T.jsx(vs.Check,{inline:f,custom:!0,required:i,checked:w,className:"bg-transparent border-0",type:"checkbox",id:Wa(e,S),name:e,label:y.label,autoFocus:o&&S===0,onChange:v(S),onBlur:b,onFocus:g,disabled:t||$||a,"aria-describedby":Ot(e)},y.value)})})}function kJt({id:e,options:t,value:r,required:n,disabled:o,readonly:a,onChange:i,onBlur:s,onFocus:l}){const{enumOptions:u,enumDisabled:c,emptyValue:d}=t,f=({target:{value:b}})=>i(Tt(b,u,d)),p=({target:b})=>s(e,Tt(b&&b.value,u,d)),h=({target:b})=>l(e,Tt(b&&b.value,u,d)),v=!!(t&&t.inline);return T.jsx(vs.Group,{className:"mb-0",children:Array.isArray(u)&&u.map((b,g)=>{const y=Array.isArray(c)&&c.indexOf(b.value)!==-1,S=Fu(b.value,r);return T.jsx(vs.Check,{inline:v,label:b.label,id:Wa(e,g),name:e,type:"radio",disabled:o||y||a,checked:S,required:n,value:String(g),onChange:f,onBlur:p,onFocus:h,"aria-describedby":Ot(e)},g)})})}function PJt(e){const{value:t,label:r,hideLabel:n,options:o,registry:a}=e,i=Ct("BaseInputTemplate",a,o);return T.jsx(i,{...e,extraProps:{label:wr(r||void 0,n)},children:T.jsx("span",{className:"range-view",children:t})})}function TJt({schema:e,id:t,options:r,required:n,disabled:o,readonly:a,value:i,multiple:s,autofocus:l,onChange:u,onBlur:c,onFocus:d,placeholder:f,rawErrors:p=[]}){const{enumOptions:h,enumDisabled:v,emptyValue:b}=r,g=s?[]:"";function y($,C){return C?[].slice.call($.target.options).filter(x=>x.selected).map(x=>x.value):$.target.value}const S=mi(i,h,s),w=!s&&e.default===void 0;return T.jsxs(vs.Control,{as:"select",bsPrefix:"custom-select",id:t,name:t,value:typeof S>"u"?g:S,required:n,multiple:s,disabled:o||a,autoFocus:l,className:p.length>0?"is-invalid":"",onBlur:c&&($=>{const C=y($,s);c(t,Tt(C,h,b))}),onFocus:d&&($=>{const C=y($,s);d(t,Tt(C,h,b))}),onChange:$=>{const C=y($,s);u(Tt(C,h,b))},"aria-describedby":Ot(t),children:[w&&T.jsx("option",{value:"",children:f}),h.map(({value:$,label:C},x)=>{const E=Array.isArray(v)&&v.indexOf($)!=-1;return T.jsx("option",{id:C,value:String(x),disabled:E,children:C},x)})]})}var IJt=["bsPrefix","size","hasValidation","className","as"],RJt=Bu("input-group-append"),FJt=Bu("input-group-prepend"),jq=Bu("input-group-text",{Component:"span"}),OJt=function(t){return Y.createElement(jq,null,Y.createElement("input",G({type:"checkbox"},t)))},NJt=function(t){return Y.createElement(jq,null,Y.createElement("input",G({type:"radio"},t)))},O0=Y.forwardRef(function(e,t){var r=e.bsPrefix,n=e.size,o=e.hasValidation,a=e.className,i=e.as,s=i===void 0?"div":i,l=mn(e,IJt);return r=ia(r,"input-group"),Y.createElement(s,G({ref:t},l,{className:Oe(a,r,n&&r+"-"+n,o&&"has-validation")}))});O0.displayName="InputGroup";O0.Text=jq;O0.Radio=NJt;O0.Checkbox=OJt;O0.Append=RJt;O0.Prepend=FJt;const DJt=O0;function AJt({id:e,placeholder:t,value:r,required:n,disabled:o,autofocus:a,readonly:i,onBlur:s,onFocus:l,onChange:u,options:c}){const d=({target:{value:h}})=>u(h===""?c.emptyValue:h),f=({target:h})=>s(e,h&&h.value),p=({target:h})=>l(e,h&&h.value);return T.jsx(DJt,{children:T.jsx(R$e,{id:e,name:e,as:"textarea",placeholder:t,disabled:o,readOnly:i,value:r,required:n,autoFocus:a,rows:c.rows||5,onChange:d,onBlur:f,onFocus:p,"aria-describedby":Ot(e)})})}function MJt(){return{CheckboxWidget:EJt,CheckboxesWidget:_Jt,RadioWidget:kJt,RangeWidget:PJt,SelectWidget:TJt,TextareaWidget:AJt}}function z$e(){return{templates:$Jt(),widgets:MJt()}}const BJt=z$e();function jJt(){return Fd(z$e())}jJt();var LJt=function(){return m.createElement(DE,{styles:` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + font-feature-settings: 'kern'; + } + + *, + *::before, + *::after { + border-width: 0; + border-style: solid; + box-sizing: border-box; + } + + main { + display: block; + } + + hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + pre, + code, + kbd, + samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + b, + strong { + font-weight: bold; + } + + small { + font-size: 80%; + } + + sub, + sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + sub { + bottom: -0.25em; + } + + sup { + top: -0.5em; + } + + img { + border-style: none; + } + + button, + input, + optgroup, + select, + textarea { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + button, + input { + overflow: visible; + } + + button, + select { + text-transform: none; + } + + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; + } + + fieldset { + padding: 0.35em 0.75em 0.625em; + } + + legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + progress { + vertical-align: baseline; + } + + textarea { + overflow: auto; + } + + [type="checkbox"], + [type="radio"] { + box-sizing: border-box; + padding: 0; + } + + [type="number"]::-webkit-inner-spin-button, + [type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + input[type="number"] { + -moz-appearance: textfield; + } + + [type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + [type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + details { + display: block; + } + + summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + body, + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre { + margin: 0; + } + + button { + background: transparent; + padding: 0; + } + + fieldset { + margin: 0; + padding: 0; + } + + ol, + ul { + margin: 0; + padding: 0; + } + + textarea { + resize: vertical; + } + + button, + [role="button"] { + cursor: pointer; + } + + button::-moz-focus-inner { + border: 0 !important; + } + + table { + border-collapse: collapse; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + font-size: inherit; + font-weight: inherit; + } + + button, + input, + optgroup, + select, + textarea { + padding: 0; + line-height: inherit; + color: inherit; + } + + img, + svg, + video, + canvas, + audio, + iframe, + embed, + object { + display: block; + } + + img, + video { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] :focus:not([data-focus-visible-added]) { + outline: none; + box-shadow: none; + } + + select::-ms-expand { + display: none; + } + `})},zJt=LJt,VJt=!0,z4="Invariant failed";function HJt(e,t){if(!e){if(VJt)throw new Error(z4);var r=typeof t=="function"?t():t,n=r?"".concat(z4,": ").concat(r):z4;throw new Error(n)}}var Bk=function(t){var r=t.top,n=t.right,o=t.bottom,a=t.left,i=n-a,s=o-r,l={top:r,right:n,bottom:o,left:a,width:i,height:s,x:a,y:r,center:{x:(n+a)/2,y:(o+r)/2}};return l},WJt=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},fie=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},V4={top:0,right:0,bottom:0,left:0},qJt=function(t){var r=t.borderBox,n=t.margin,o=n===void 0?V4:n,a=t.border,i=a===void 0?V4:a,s=t.padding,l=s===void 0?V4:s,u=Bk(WJt(r,o)),c=Bk(fie(r,i)),d=Bk(fie(c,l));return{marginBox:u,borderBox:Bk(r),paddingBox:c,contentBox:d,margin:o,border:i,padding:l}},Xl=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var o=Number(r);return isNaN(o)&&HJt(!1),o},UJt=function(t,r){var n={top:Xl(r.marginTop),right:Xl(r.marginRight),bottom:Xl(r.marginBottom),left:Xl(r.marginLeft)},o={top:Xl(r.paddingTop),right:Xl(r.paddingRight),bottom:Xl(r.paddingBottom),left:Xl(r.paddingLeft)},a={top:Xl(r.borderTopWidth),right:Xl(r.borderRightWidth),bottom:Xl(r.borderBottomWidth),left:Xl(r.borderLeftWidth)};return qJt({borderBox:t,margin:n,padding:o,border:a})},V$e=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return UJt(r,n)},RR={exports:{}};RR.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,a=16,i=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",h="[object GeneratorFunction]",v="[object Map]",b="[object Number]",g="[object Null]",y="[object Object]",S="[object Proxy]",w="[object RegExp]",$="[object Set]",C="[object String]",x="[object Undefined]",E="[object WeakMap]",_="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",N="[object Float64Array]",z="[object Int8Array]",O="[object Int16Array]",A="[object Int32Array]",M="[object Uint8Array]",L="[object Uint8ClampedArray]",j="[object Uint16Array]",H="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,D={};D[I]=D[N]=D[z]=D[O]=D[A]=D[M]=D[L]=D[j]=D[H]=!0,D[s]=D[l]=D[_]=D[c]=D[k]=D[d]=D[f]=D[p]=D[v]=D[b]=D[y]=D[w]=D[$]=D[C]=D[E]=!1;var P=typeof Bi=="object"&&Bi&&Bi.Object===Object&&Bi,R=typeof self=="object"&&self&&self.Object===Object&&self,W=P||R||Function("return this")(),U=t&&!t.nodeType&&t,q=U&&!0&&e&&!e.nodeType&&e,J=q&&q.exports===U,Z=J&&P.process,Q=function(){try{var ce=q&&q.require&&q.require("util").types;return ce||Z&&Z.binding&&Z.binding("util")}catch{}}(),oe=Q&&Q.isTypedArray;function ie(ce,ke,Ye){switch(Ye.length){case 0:return ce.call(ke);case 1:return ce.call(ke,Ye[0]);case 2:return ce.call(ke,Ye[0],Ye[1]);case 3:return ce.call(ke,Ye[0],Ye[1],Ye[2])}return ce.apply(ke,Ye)}function te(ce,ke){for(var Ye=-1,Rt=Array(ce);++Ye-1}function X(ce,ke){var Ye=this.__data__,Rt=fr(Ye,ce);return Rt<0?(++this.size,Ye.push([ce,ke])):Ye[Rt][1]=ke,this}he.prototype.clear=ye,he.prototype.delete=Ee,he.prototype.get=rt,he.prototype.has=re,he.prototype.set=X;function ne(ce){var ke=-1,Ye=ce==null?0:ce.length;for(this.clear();++ke1?Ye[Kr-1]:void 0,qn=Kr>2?Ye[2]:void 0;for(vn=ce.length>3&&typeof vn=="function"?(Kr--,vn):void 0,qn&&Ga(Ye[0],Ye[1],qn)&&(vn=Kr<3?void 0:vn,Kr=1),ke=Object(ke);++Rt-1&&ce%1==0&&ce0){if(++ke>=o)return arguments[0]}else ke=0;return ce.apply(void 0,arguments)}}function zc(ce){if(ce!=null){try{return de.call(ce)}catch{}try{return ce+""}catch{}}return""}function el(ce,ke){return ce===ke||ce!==ce&&ke!==ke}var _s=gt(function(){return arguments}())?gt:function(ce){return cn(ce)&&ee.call(ce,"callee")&&!De.call(ce,"callee")},Vc=Array.isArray;function rf(ce){return ce!=null&&Cn(ce.length)&&!er(ce)}function nf(ce){return cn(ce)&&rf(ce)}var Ft=vt||GA;function er(ce){if(!xn(ce))return!1;var ke=An(ce);return ke==p||ke==h||ke==u||ke==S}function Cn(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=i}function xn(ce){var ke=typeof ce;return ce!=null&&(ke=="object"||ke=="function")}function cn(ce){return ce!=null&&typeof ce=="object"}function of(ce){if(!cn(ce)||An(ce)!=y)return!1;var ke=st(ce);if(ke===null)return!0;var Ye=ee.call(ke,"constructor")&&ke.constructor;return typeof Ye=="function"&&Ye instanceof Ye&&de.call(Ye)==je}var Wp=oe?ae(oe):jt;function qp(ce){return sr(ce,af(ce))}function af(ce){return rf(ce)?It(ce,!0):br(ce)}var UA=Ht(function(ce,ke,Ye,Rt){en(ce,ke,Ye,Rt)});function KA(ce){return function(){return ce}}function MS(ce){return ce}function GA(){return!1}e.exports=UA})(RR,RR.exports);var KJt=RR.exports;const Sd=zt(KJt);var H$e=1/60*1e3,GJt=typeof performance<"u"?function(){return performance.now()}:function(){return Date.now()},W$e=typeof window<"u"?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(GJt())},H$e)};function YJt(e){var t=[],r=[],n=0,o=!1,a=new WeakSet,i={schedule:function(s,l,u){l===void 0&&(l=!1),u===void 0&&(u=!1);var c=u&&o,d=c?t:r;return l&&a.add(s),d.indexOf(s)===-1&&(d.push(s),c&&o&&(n=t.length)),s},cancel:function(s){var l=r.indexOf(s);l!==-1&&r.splice(l,1),a.delete(s)},process:function(s){var l;if(o=!0,l=[r,t],t=l[0],r=l[1],r.length=0,n=t.length,n)for(var u=0;u"u")return t(a,i,s);r.has(a)||r.set(a,new Map);var u=r.get(a);if(u.has(i))return u.get(i);var c=t(a,i,s,l);return u.set(i,c),c};return n},QD=cer(uer);function G$e(e,t){var r={};return Object.keys(e).forEach(function(n){var o=e[n],a=t(o,n,e);a&&(r[n]=o)}),r}var ZD=function(t){return G$e(t,function(r){return r!=null})},JD=function(t){return Object.keys(t)},FR=function(t){return t.reduce(function(r,n){var o=n[0],a=n[1];return r[o]=a,r},{})};function der(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Iz(e){if(e==null)return e;var t=der(e),r=t.unitless;return r||vg(e)?e+"px":e}var Y$e=function(t,r){return parseInt(t[1],10)>parseInt(r[1],10)?1:-1},Hq=function(t){return FR(Object.entries(t).sort(Y$e))};function mie(e){var t=Hq(e);return Object.assign(Object.values(t),t)}function fer(e){var t=Object.keys(Hq(e));return new Set(t)}function per(e){var t;if(!e)return e;e=(t=Iz(e))!=null?t:e;var r=e.endsWith("px")?-1:-.0635;return vg(e)?""+(e+r):e.replace(/([0-9]+\.?[0-9]*)/,function(n){return""+(parseFloat(n)+r)})}function jk(e,t){var r=["@media screen"];return e&&r.push("and","(min-width: "+Iz(e)+")"),t&&r.push("and","(max-width: "+Iz(t)+")"),r.join(" ")}function mer(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";var r=mie(e),n=Object.entries(e).sort(Y$e).map(function(i,s,l){var u,c=i[0],d=i[1],f=(u=l[s+1])!=null?u:[],p=f[1];return p=parseFloat(p)>0?per(p):void 0,{breakpoint:c,minW:d,maxW:p,maxWQuery:jk(null,p),minWQuery:jk(d),minMaxQuery:jk(d,p)}}),o=fer(e),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive:function(s){var l=Object.keys(s);return l.length>0&&l.every(function(u){return o.has(u)})},asObject:Hq(e),asArray:mie(e),details:n,media:[null].concat(r.map(function(i){return jk(i)}).slice(1)),toArrayValue:function(s){if(!gs(s))throw new Error("toArrayValue: value must be an object");for(var l=a.map(function(u){var c;return(c=s[u])!=null?c:null});ter(l)===null;)l.pop();return l},toObjectValue:function(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce(function(l,u,c){var d=a[c];return d!=null&&u!=null&&(l[d]=u),l},{})}}}function Wq(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function qq(e){var t;if(!Wq(e))return!1;var r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function her(e){var t,r;return Wq(e)&&(t=(r=eA(e))==null?void 0:r.defaultView)!=null?t:window}function eA(e){var t;return Wq(e)&&(t=e.ownerDocument)!=null?t:document}function Uq(e){var t;return(t=e.view)!=null?t:window}function ver(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var tv=ver(),ur=function(t){return t?"":void 0},bs=function(t){return t?!0:void 0},nn=function(){for(var t=arguments.length,r=new Array(t),n=0;n=37&&r<=40&&t.indexOf("Arrow")!==0,o=n?"Arrow"+t:t;return o}function hie(e){return e.button!==0}function ber(e){return qq(e)&&e.tagName.toLowerCase()==="input"&&"select"in e}function Rz(e){var t=qq(e)?eA(e):document;return t.activeElement===e}function vie(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $l(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1}var jer=function(){function e(r,n,o){var a=this;if(this.history=[],this.startEvent=null,this.lastEvent=null,this.lastEventInfo=null,this.handlers={},this.removeListeners=Zg,this.threshold=3,this.win=void 0,this.updatePoint=function(){if(a.lastEvent&&a.lastEventInfo){var c=q4(a.lastEventInfo,a.history),d=a.startEvent!==null,f=xer(c.offset,{x:0,y:0})>=a.threshold;if(!(!d&&!f)){var p=pie(),h=p.timestamp;a.history.push(NR({},c.point,{timestamp:h}));var v=a.handlers,b=v.onStart,g=v.onMove;d||(b==null||b(a.lastEvent,c),a.startEvent=a.lastEvent),g==null||g(a.lastEvent,c)}}},this.onPointerMove=function(c,d){if(a.lastEvent=c,a.lastEventInfo=d,Per(c)&&c.buttons===0){a.onPointerUp(c,d);return}QJt.update(a.updatePoint,!0)},this.onPointerUp=function(c,d){var f=q4(d,a.history),p=a.handlers,h=p.onEnd,v=p.onSessionEnd;v==null||v(c,f),a.end(),!(!h||!a.startEvent)&&(h==null||h(c,f))},this.win=Uq(r),!Ber(r)){this.handlers=n,o&&(this.threshold=o),r.stopPropagation(),r.preventDefault();var i=tEe(r),s=pie(),l=s.timestamp;this.history=[NR({},i.point,{timestamp:l})];var u=n.onSessionStart;u==null||u(r,q4(i,this.history)),this.removeListeners=Cer(W4(this.win,"pointermove",this.onPointerMove),W4(this.win,"pointerup",this.onPointerUp),W4(this.win,"pointercancel",this.onPointerUp))}}var t=e.prototype;return t.updateHandlers=function(n){this.handlers=n},t.end=function(){var n;(n=this.removeListeners)==null||n.call(this),ZJt.update(this.updatePoint)},e}();function bie(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ler(e){return e[0]}function zer(e){return e[e.length-1]}function q4(e,t){return{point:e.point,delta:bie(e.point,zer(t)),offset:bie(e.point,Ler(t)),velocity:Wer(t,.1)}}function Ver(e){return e[e.length-1]}var Her=function(t){return t*1e3};function Wer(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,o=Ver(e);r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Her(t)));)r--;if(!n)return{x:0,y:0};var a=(o.timestamp-n.timestamp)/1e3;if(a===0)return{x:0,y:0};var i={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Yq(e,t){return zq(e)?e.map(function(r){return r===null?null:t(r)}):gs(e)?JD(e).reduce(function(r,n){return r[n]=t(e[n]),r},{}):e!=null?t(e):null}function qer(e,t){if(e!=null){if(U$e(e)){e(t);return}try{e.current=t}catch{throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}}function zi(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout>"u"||clearTimeout(t)},setTimeout:function(){return 0},clearTimeout:ib,setInterval:function(){return 0},clearInterval:ib},itr=atr,str={window:itr,document:cEe},dEe=tv?{window,document}:str,fEe=m.createContext(dEe);function ltr(){return m.useContext(fEe)}function utr(e){var t=e.children,r=e.environment,n=m.useState(null),o=n[0],a=n[1],i=m.useMemo(function(){var l,u=o==null?void 0:o.ownerDocument,c=o==null?void 0:o.ownerDocument.defaultView,d=u?{document:u,window:c}:void 0,f=(l=r??d)!=null?l:dEe;return f},[o,r]),s=!o&&!r;return Y.createElement(fEe.Provider,{value:i},t,s&&Y.createElement("span",{ref:function(u){u&&a(u)}}))}var zk={light:"chakra-ui-light",dark:"chakra-ui-dark"},ctr={classList:{add:Zg,remove:Zg}},dtr=function(t){return tv?t.body:ctr};function ftr(e,t){var r=dtr(t);r.classList.add(e?zk.dark:zk.light),r.classList.remove(e?zk.light:zk.dark)}function ptr(e){var t=window.matchMedia==null?void 0:window.matchMedia(e);if(t)return!!t.media===t.matches}var pEe={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"};function mtr(e){var t,r=(t=ptr(pEe.dark))!=null?t:e==="dark";return r?"dark":"light"}function htr(e){if(!("matchMedia"in window))return Zg;var t=window.matchMedia(pEe.dark),r=function(){e(t.matches?"dark":"light",!0)};return t.addEventListener("change",r),function(){t.removeEventListener("change",r)}}var yie={get:function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")||document.documentElement.dataset.theme},set:function(t){tv&&(document.documentElement.style.setProperty("--chakra-ui-color-mode",t),document.documentElement.setAttribute("data-theme",t))}},Sie=function(){return typeof Storage<"u"},wie="chakra-ui-color-mode",vtr={get:function(t){if(!Sie())return t;try{var r=localStorage.getItem(wie);return r??t}catch{return t}},set:function(t){if(Sie())try{localStorage.setItem(wie,t)}catch{}},type:"localStorage"},mEe=m.createContext({}),Qq=function(){var t=m.useContext(mEe);if(t===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return t};function gtr(e){var t=e.value,r=e.children,n=e.options,o=n.useSystemColorMode,a=n.initialColorMode,i=e.colorModeManager,s=i===void 0?vtr:i,l=a==="dark"?"dark":"light",u=m.useState(s.type==="cookie"?s.get(l):l),c=u[0],d=u[1],f=ltr(),p=f.document;m.useEffect(function(){if(tv&&s.type==="localStorage"){var g=mtr(l);if(o)return d(g);var y=yie.get(),S=s.get();return d(y||S||(a==="system"?g:l))}},[s,o,l,a]),m.useEffect(function(){var g=c==="dark";ftr(g,p),yie.set(g?"dark":"light")},[c,p]);var h=m.useCallback(function(g,y){if(y===void 0&&(y=!1),!y)s.set(g);else if(s.get()&&!o)return;d(g)},[s,o]),v=m.useCallback(function(){h(c==="light"?"dark":"light")},[c,h]);m.useEffect(function(){var g=o||a==="system",y;return g&&(y=htr(h)),function(){y&&g&&y()}},[h,o,a]);var b=m.useMemo(function(){return{colorMode:t??c,toggleColorMode:t?Zg:v,setColorMode:t?Zg:h}},[c,h,v,t]);return m.createElement(mEe.Provider,{value:b},r)}function Dz(e,t){var r=Qq(),n=r.colorMode;return n==="dark"?t:e}function N$(){return N$=Object.assign||function(e){for(var t=1;t :not(style) ~ :not(style)",ktr=(U4={},U4[vEe]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},U4),Ptr=(K4={},K4[vEe]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},K4);function DR(e,t){return DR=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},DR(e,t)}function Ttr(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}}),t&&DR(e,t)}function Az(){Az=function(o,a){return new r(o,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function r(o,a,i){var s=new RegExp(o,a);return t.set(s,i||t.get(o)),DR(s,r.prototype)}Ttr(r,RegExp),r.prototype.exec=function(o){var a=e.exec.call(this,o);return a&&(a.groups=n(a,this)),a},r.prototype[Symbol.replace]=function(o,a){if(typeof a=="string"){var i=t.get(this);return e[Symbol.replace].call(this,o,a.replace(/\$<([^>]+)>/g,function(l,u){return"$"+i[u]}))}else if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,o,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l),l.push(n(l,s))),a.apply(this,l)})}else return e[Symbol.replace].call(this,o,a)};function n(o,a){var i=t.get(a);return Object.keys(i).reduce(function(s,l){return s[l]=o[i[l]],s},Object.create(null))}return Az.apply(this,arguments)}var Mz={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Itr=new Set(Object.values(Mz)),gEe=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Rtr=function(t){return t.trim()};function Ftr(e,t){var r,n;if(e==null||gEe.has(e))return e;var o=Az(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),a=(r=(n=o.exec(e))==null?void 0:n.groups)!=null?r:{},i=a.type,s=a.values;if(!i||!s)return e;var l=i.includes("-gradient")?i:i+"-gradient",u=s.split(",").map(Rtr).filter(Boolean),c=u[0],d=u.slice(1);if((d==null?void 0:d.length)===0)return e;var f=c in Mz?Mz[c]:c;d.unshift(f);var p=d.map(function(h){if(Itr.has(h))return h;var v=h.indexOf(" "),b=v!==-1?[h.substr(0,v),h.substr(v+1)]:[h],g=b[0],y=b[1],S=bEe(y)?y:y&&y.split(" "),w="colors."+g,$=w in t.__cssMap?t.__cssMap[w].varRef:g;return S?[$].concat(Array.isArray(S)?S:[S]).join(" "):$});return l+"("+p.join(", ")+")"}var bEe=function(t){return Vq(t)&&t.includes("(")&&t.includes(")")},Otr=function(t,r){return Ftr(t,r??{})},Ntr=function(t){var r=parseFloat(t.toString()),n=t.toString().replace(String(r),"");return{unitless:!n,value:r,unit:n}},Kc=function(t){return function(r){return t+"("+r+")"}},_n={filter:function(t){return t!=="auto"?t:xtr},backdropFilter:function(t){return t!=="auto"?t:$tr},ring:function(t){return Etr(_n.px(t))},bgClip:function(t){return t==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:t}},transform:function(t){return t==="auto"?wtr():t==="auto-gpu"?Ctr():t},px:function(t){if(t==null)return t;var r=Ntr(t),n=r.unitless;return n||vg(t)?t+"px":t},fraction:function(t){return!vg(t)||t>1?t:t*100+"%"},float:function(t,r){var n={left:"right",right:"left"};return r.direction==="rtl"?n[t]:t},degree:function(t){if(K$e(t)||t==null)return t;var r=Vq(t)&&!t.endsWith("deg");return vg(t)||r?t+"deg":t},gradient:Otr,blur:Kc("blur"),opacity:Kc("opacity"),brightness:Kc("brightness"),contrast:Kc("contrast"),dropShadow:Kc("drop-shadow"),grayscale:Kc("grayscale"),hueRotate:Kc("hue-rotate"),invert:Kc("invert"),saturate:Kc("saturate"),sepia:Kc("sepia"),bgImage:function(t){if(t==null)return t;var r=bEe(t)||gEe.has(t);return r?t:"url("+t+")"},outline:function(t){var r=String(t)==="0"||String(t)==="none";return t!==null&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:t}},flexDirection:function(t){var r,n=(r=_tr[t])!=null?r:{},o=n.space,a=n.divide,i={flexDirection:t};return o&&(i[o]=1),a&&(i[a]=1),i}},Te={borderWidths:Uu("borderWidths"),borderStyles:Uu("borderStyles"),colors:Uu("colors"),borders:Uu("borders"),radii:Uu("radii",_n.px),space:Uu("space",_n.px),spaceT:Uu("space",_n.px),degreeT:function(t){return{property:t,transform:_n.degree}},prop:function(t,r,n){return N$({property:t,scale:r},r&&{transform:D$({scale:r,transform:n})})},propT:function(t,r){return{property:t,transform:r}},sizes:Uu("sizes",_n.px),sizesT:Uu("sizes",_n.fraction),shadows:Uu("shadows"),logical:Str,blur:Uu("blur",_n.blur)},pT={background:Te.colors("background"),backgroundColor:Te.colors("backgroundColor"),backgroundImage:Te.propT("backgroundImage",_n.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_n.bgClip},bgSize:Te.prop("backgroundSize"),bgPosition:Te.prop("backgroundPosition"),bg:Te.colors("background"),bgColor:Te.colors("backgroundColor"),bgPos:Te.prop("backgroundPosition"),bgRepeat:Te.prop("backgroundRepeat"),bgAttachment:Te.prop("backgroundAttachment"),bgGradient:Te.propT("backgroundImage",_n.gradient),bgClip:{transform:_n.bgClip}};Object.assign(pT,{bgImage:pT.backgroundImage,bgImg:pT.backgroundImage});var dn={border:Te.borders("border"),borderWidth:Te.borderWidths("borderWidth"),borderStyle:Te.borderStyles("borderStyle"),borderColor:Te.colors("borderColor"),borderRadius:Te.radii("borderRadius"),borderTop:Te.borders("borderTop"),borderBlockStart:Te.borders("borderBlockStart"),borderTopLeftRadius:Te.radii("borderTopLeftRadius"),borderStartStartRadius:Te.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Te.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Te.radii("borderTopRightRadius"),borderStartEndRadius:Te.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Te.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Te.borders("borderRight"),borderInlineEnd:Te.borders("borderInlineEnd"),borderBottom:Te.borders("borderBottom"),borderBlockEnd:Te.borders("borderBlockEnd"),borderBottomLeftRadius:Te.radii("borderBottomLeftRadius"),borderBottomRightRadius:Te.radii("borderBottomRightRadius"),borderLeft:Te.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Te.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Te.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Te.borders(["borderLeft","borderRight"]),borderInline:Te.borders("borderInline"),borderY:Te.borders(["borderTop","borderBottom"]),borderBlock:Te.borders("borderBlock"),borderTopWidth:Te.borderWidths("borderTopWidth"),borderBlockStartWidth:Te.borderWidths("borderBlockStartWidth"),borderTopColor:Te.colors("borderTopColor"),borderBlockStartColor:Te.colors("borderBlockStartColor"),borderTopStyle:Te.borderStyles("borderTopStyle"),borderBlockStartStyle:Te.borderStyles("borderBlockStartStyle"),borderBottomWidth:Te.borderWidths("borderBottomWidth"),borderBlockEndWidth:Te.borderWidths("borderBlockEndWidth"),borderBottomColor:Te.colors("borderBottomColor"),borderBlockEndColor:Te.colors("borderBlockEndColor"),borderBottomStyle:Te.borderStyles("borderBottomStyle"),borderBlockEndStyle:Te.borderStyles("borderBlockEndStyle"),borderLeftWidth:Te.borderWidths("borderLeftWidth"),borderInlineStartWidth:Te.borderWidths("borderInlineStartWidth"),borderLeftColor:Te.colors("borderLeftColor"),borderInlineStartColor:Te.colors("borderInlineStartColor"),borderLeftStyle:Te.borderStyles("borderLeftStyle"),borderInlineStartStyle:Te.borderStyles("borderInlineStartStyle"),borderRightWidth:Te.borderWidths("borderRightWidth"),borderInlineEndWidth:Te.borderWidths("borderInlineEndWidth"),borderRightColor:Te.colors("borderRightColor"),borderInlineEndColor:Te.colors("borderInlineEndColor"),borderRightStyle:Te.borderStyles("borderRightStyle"),borderInlineEndStyle:Te.borderStyles("borderInlineEndStyle"),borderTopRadius:Te.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Te.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Te.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Te.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(dn,{rounded:dn.borderRadius,roundedTop:dn.borderTopRadius,roundedTopLeft:dn.borderTopLeftRadius,roundedTopRight:dn.borderTopRightRadius,roundedTopStart:dn.borderStartStartRadius,roundedTopEnd:dn.borderStartEndRadius,roundedBottom:dn.borderBottomRadius,roundedBottomLeft:dn.borderBottomLeftRadius,roundedBottomRight:dn.borderBottomRightRadius,roundedBottomStart:dn.borderEndStartRadius,roundedBottomEnd:dn.borderEndEndRadius,roundedLeft:dn.borderLeftRadius,roundedRight:dn.borderRightRadius,roundedStart:dn.borderInlineStartRadius,roundedEnd:dn.borderInlineEndRadius,borderStart:dn.borderInlineStart,borderEnd:dn.borderInlineEnd,borderTopStartRadius:dn.borderStartStartRadius,borderTopEndRadius:dn.borderStartEndRadius,borderBottomStartRadius:dn.borderEndStartRadius,borderBottomEndRadius:dn.borderEndEndRadius,borderStartRadius:dn.borderInlineStartRadius,borderEndRadius:dn.borderInlineEndRadius,borderStartWidth:dn.borderInlineStartWidth,borderEndWidth:dn.borderInlineEndWidth,borderStartColor:dn.borderInlineStartColor,borderEndColor:dn.borderInlineEndColor,borderStartStyle:dn.borderInlineStartStyle,borderEndStyle:dn.borderInlineEndStyle});var Dtr={color:Te.colors("color"),textColor:Te.colors("color"),fill:Te.colors("fill"),stroke:Te.colors("stroke")},Bz={boxShadow:Te.shadows("boxShadow"),mixBlendMode:!0,blendMode:Te.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Te.prop("backgroundBlendMode"),opacity:!0};Object.assign(Bz,{shadow:Bz.boxShadow});var Atr={filter:{transform:_n.filter},blur:Te.blur("--chakra-blur"),brightness:Te.propT("--chakra-brightness",_n.brightness),contrast:Te.propT("--chakra-contrast",_n.contrast),hueRotate:Te.degreeT("--chakra-hue-rotate"),invert:Te.propT("--chakra-invert",_n.invert),saturate:Te.propT("--chakra-saturate",_n.saturate),dropShadow:Te.propT("--chakra-drop-shadow",_n.dropShadow),backdropFilter:{transform:_n.backdropFilter},backdropBlur:Te.blur("--chakra-backdrop-blur"),backdropBrightness:Te.propT("--chakra-backdrop-brightness",_n.brightness),backdropContrast:Te.propT("--chakra-backdrop-contrast",_n.contrast),backdropHueRotate:Te.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Te.propT("--chakra-backdrop-invert",_n.invert),backdropSaturate:Te.propT("--chakra-backdrop-saturate",_n.saturate)},AR={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_n.flexDirection},experimental_spaceX:{static:ktr,transform:D$({scale:"space",transform:function(t){return t!==null?{"--chakra-space-x":t}:null}})},experimental_spaceY:{static:Ptr,transform:D$({scale:"space",transform:function(t){return t!=null?{"--chakra-space-y":t}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Te.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Te.space("gap"),rowGap:Te.space("rowGap"),columnGap:Te.space("columnGap")};Object.assign(AR,{flexDir:AR.flexDirection});var yEe={gridGap:Te.space("gridGap"),gridColumnGap:Te.space("gridColumnGap"),gridRowGap:Te.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Mtr={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_n.outline},outlineOffset:!0,outlineColor:Te.colors("outlineColor")},Ql={width:Te.sizesT("width"),inlineSize:Te.sizesT("inlineSize"),height:Te.sizes("height"),blockSize:Te.sizes("blockSize"),boxSize:Te.sizes(["width","height"]),minWidth:Te.sizes("minWidth"),minInlineSize:Te.sizes("minInlineSize"),minHeight:Te.sizes("minHeight"),minBlockSize:Te.sizes("minBlockSize"),maxWidth:Te.sizes("maxWidth"),maxInlineSize:Te.sizes("maxInlineSize"),maxHeight:Te.sizes("maxHeight"),maxBlockSize:Te.sizes("maxBlockSize"),d:Te.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Te.propT("float",_n.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ql,{w:Ql.width,h:Ql.height,minW:Ql.minWidth,maxW:Ql.maxWidth,minH:Ql.minHeight,maxH:Ql.maxHeight,overscroll:Ql.overscrollBehavior,overscrollX:Ql.overscrollBehaviorX,overscrollY:Ql.overscrollBehaviorY});var Btr={listStyleType:!0,listStylePosition:!0,listStylePos:Te.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Te.prop("listStyleImage")},jtr={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Ltr={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},G4=function(t,r,n){var o={},a=QD(t,r,{});for(var i in a){var s=i in n&&n[i]!=null;s||(o[i]=a[i])}return o},ztr={srOnly:{transform:function(t){return t===!0?jtr:t==="focusable"?Ltr:{}}},layerStyle:{processResult:!0,transform:function(t,r,n){return G4(r,"layerStyles."+t,n)}},textStyle:{processResult:!0,transform:function(t,r,n){return G4(r,"textStyles."+t,n)}},apply:{processResult:!0,transform:function(t,r,n){return G4(r,t,n)}}},qC={position:!0,pos:Te.prop("position"),zIndex:Te.prop("zIndex","zIndices"),inset:Te.spaceT("inset"),insetX:Te.spaceT(["left","right"]),insetInline:Te.spaceT("insetInline"),insetY:Te.spaceT(["top","bottom"]),insetBlock:Te.spaceT("insetBlock"),top:Te.spaceT("top"),insetBlockStart:Te.spaceT("insetBlockStart"),bottom:Te.spaceT("bottom"),insetBlockEnd:Te.spaceT("insetBlockEnd"),left:Te.spaceT("left"),insetInlineStart:Te.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Te.spaceT("right"),insetInlineEnd:Te.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(qC,{insetStart:qC.insetInlineStart,insetEnd:qC.insetInlineEnd});var Vtr={ring:{transform:_n.ring},ringColor:Te.colors("--chakra-ring-color"),ringOffset:Te.prop("--chakra-ring-offset-width"),ringOffsetColor:Te.colors("--chakra-ring-offset-color"),ringInset:Te.prop("--chakra-ring-inset")},ro={margin:Te.spaceT("margin"),marginTop:Te.spaceT("marginTop"),marginBlockStart:Te.spaceT("marginBlockStart"),marginRight:Te.spaceT("marginRight"),marginInlineEnd:Te.spaceT("marginInlineEnd"),marginBottom:Te.spaceT("marginBottom"),marginBlockEnd:Te.spaceT("marginBlockEnd"),marginLeft:Te.spaceT("marginLeft"),marginInlineStart:Te.spaceT("marginInlineStart"),marginX:Te.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Te.spaceT("marginInline"),marginY:Te.spaceT(["marginTop","marginBottom"]),marginBlock:Te.spaceT("marginBlock"),padding:Te.space("padding"),paddingTop:Te.space("paddingTop"),paddingBlockStart:Te.space("paddingBlockStart"),paddingRight:Te.space("paddingRight"),paddingBottom:Te.space("paddingBottom"),paddingBlockEnd:Te.space("paddingBlockEnd"),paddingLeft:Te.space("paddingLeft"),paddingInlineStart:Te.space("paddingInlineStart"),paddingInlineEnd:Te.space("paddingInlineEnd"),paddingX:Te.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Te.space("paddingInline"),paddingY:Te.space(["paddingTop","paddingBottom"]),paddingBlock:Te.space("paddingBlock")};Object.assign(ro,{m:ro.margin,mt:ro.marginTop,mr:ro.marginRight,me:ro.marginInlineEnd,marginEnd:ro.marginInlineEnd,mb:ro.marginBottom,ml:ro.marginLeft,ms:ro.marginInlineStart,marginStart:ro.marginInlineStart,mx:ro.marginX,my:ro.marginY,p:ro.padding,pt:ro.paddingTop,py:ro.paddingY,px:ro.paddingX,pb:ro.paddingBottom,pl:ro.paddingLeft,ps:ro.paddingInlineStart,paddingStart:ro.paddingInlineStart,pr:ro.paddingRight,pe:ro.paddingInlineEnd,paddingEnd:ro.paddingInlineEnd});var Htr={textDecorationColor:Te.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Te.shadows("textShadow")},Wtr={clipPath:!0,transform:Te.propT("transform",_n.transform),transformOrigin:!0,translateX:Te.spaceT("--chakra-translate-x"),translateY:Te.spaceT("--chakra-translate-y"),skewX:Te.degreeT("--chakra-skew-x"),skewY:Te.degreeT("--chakra-skew-y"),scaleX:Te.prop("--chakra-scale-x"),scaleY:Te.prop("--chakra-scale-y"),scale:Te.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Te.degreeT("--chakra-rotate")},qtr={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Te.prop("transitionDuration","transition.duration"),transitionProperty:Te.prop("transitionProperty","transition.property"),transitionTimingFunction:Te.prop("transitionTimingFunction","transition.easing")},Utr={fontFamily:Te.prop("fontFamily","fonts"),fontSize:Te.prop("fontSize","fontSizes",_n.px),fontWeight:Te.prop("fontWeight","fontWeights"),lineHeight:Te.prop("lineHeight","lineHeights"),letterSpacing:Te.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(t){if(t===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},Ktr={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Te.spaceT("scrollMargin"),scrollMarginTop:Te.spaceT("scrollMarginTop"),scrollMarginBottom:Te.spaceT("scrollMarginBottom"),scrollMarginLeft:Te.spaceT("scrollMarginLeft"),scrollMarginRight:Te.spaceT("scrollMarginRight"),scrollMarginX:Te.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Te.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Te.spaceT("scrollPadding"),scrollPaddingTop:Te.spaceT("scrollPaddingTop"),scrollPaddingBottom:Te.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Te.spaceT("scrollPaddingLeft"),scrollPaddingRight:Te.spaceT("scrollPaddingRight"),scrollPaddingX:Te.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Te.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Cie(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Xa={hover:function(t,r){return t+":hover "+r+", "+t+"[data-hover] "+r},focus:function(t,r){return t+":focus "+r+", "+t+"[data-focus] "+r},focusVisible:function(t,r){return t+":focus-visible "+r},focusWithin:function(t,r){return t+":focus-within "+r},active:function(t,r){return t+":active "+r+", "+t+"[data-active] "+r},disabled:function(t,r){return t+":disabled "+r+", "+t+"[data-disabled] "+r},invalid:function(t,r){return t+":invalid "+r+", "+t+"[data-invalid] "+r},checked:function(t,r){return t+":checked "+r+", "+t+"[data-checked] "+r},indeterminate:function(t,r){return t+":indeterminate "+r+", "+t+"[aria-checked=mixed] "+r+", "+t+"[data-indeterminate] "+r},readOnly:function(t,r){return t+":read-only "+r+", "+t+"[readonly] "+r+", "+t+"[data-read-only] "+r},expanded:function(t,r){return t+":read-only "+r+", "+t+"[aria-expanded=true] "+r+", "+t+"[data-expanded] "+r},placeholderShown:function(t,r){return t+":placeholder-shown "+r}},lm=function(t){return SEe(function(r){return t(r,"&")},"[role=group]","[data-group]",".group")},pf=function(t){return SEe(function(r){return t(r,"~ &")},"[data-peer]",".peer")},SEe=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o=0)&&(r[o]=e[o]);return r}var prr=["__cssMap","__cssVars","__breakpoints"],mrr=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function hrr(e){var t=mrr;return ser(e,t)}function vrr(e){return e.semanticTokens}function grr(e){e.__cssMap,e.__cssVars,e.__breakpoints;var t=frr(e,prr);return t}function brr(e){var t,r,n=e.tokens,o=e.semanticTokens,a=Object.entries((t=Fz(n))!=null?t:{}).map(function(s){var l=s[0],u=s[1],c={isSemantic:!1,value:u};return[l,c]}),i=Object.entries((r=Fz(o,1))!=null?r:{}).map(function(s){var l=s[0],u=s[1],c={isSemantic:!0,value:u};return[l,c]});return FR([].concat(a,i))}function yrr(e){var t,r=grr(e),n=hrr(r),o=vrr(r),a=brr({tokens:n,semanticTokens:o}),i=(t=r.config)==null?void 0:t.cssVarPrefix,s=drr(a,{cssVarPrefix:i}),l=s.cssMap,u=s.cssVars,c={"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"};return Object.assign(r,{__cssVars:N$({},c,u),__cssMap:l,__breakpoints:mer(r.breakpoints)}),r}function Lz(){return Lz=Object.assign||function(e){for(var t=1;t` or ``");return e}var $Ee=Zs({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),rv=$Ee[0],hi=$Ee[1],Crr=function(){var t=Qq(),r=t.colorMode;return m.createElement(DE,{styles:function(o){var a=QD(o,"styles.global"),i=$l(a,{theme:o,colorMode:r});if(i){var s=wEe(i)(o);return s}}})};function vi(e){return XD(e,["styleConfig","size","variant","colorScheme"])}function xrr(){var e=Qq(),t=y_();return Lz({},e,{theme:t})}function Jq(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var $rr=new Set([].concat(Jtr,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),Err=new Set(["htmlWidth","htmlHeight","htmlSize"]),EEe=function(t){return Err.has(t)||!$rr.has(t)},_rr=["theme","css","__css","sx"],krr=["baseStyle"],Prr=function(t){var r=t.baseStyle;return function(n){n.theme;var o=n.css,a=n.__css,i=n.sx,s=Jq(n,_rr),l=G$e(s,function(f,p){return trr(p)}),u=$l(r,n),c=Object.assign({},a,u,ZD(l),i),d=wEe(c)(n.theme);return o?[d,o]:d}};function Y4(e,t){var r=t??{},n=r.baseStyle,o=Jq(r,krr);o.shouldForwardProp||(o.shouldForwardProp=EEe);var a=Prr({baseStyle:n});return EI(e,o)(a)}function vr(e){return m.forwardRef(e)}var Trr=["styleConfig"];function Vp(e,t,r){var n;t===void 0&&(t={}),r===void 0&&(r={});var o=t,a=o.styleConfig,i=Jq(o,Trr),s=xrr(),l=s.theme,u=s.colorMode,c=QD(l,"components."+e),d=a||c,f=Sd({theme:l,colorMode:u},(n=d==null?void 0:d.defaultProps)!=null?n:{},ZD(XD(i,["children"]))),p=m.useRef({});if(d){var h,v,b,g,y,S,w=$l((h=d.baseStyle)!=null?h:{},f),$=$l((v=(b=d.variants)==null?void 0:b[f.variant])!=null?v:{},f),C=$l((g=(y=d.sizes)==null?void 0:y[f.size])!=null?g:{},f),x=Sd({},w,C,$);(S=r)!=null&&S.isMultiPart&&d.parts&&d.parts.forEach(function(_){var k;x[_]=(k=x[_])!=null?k:{}});var E=eBt(p.current,x);E||(p.current=x)}return p.current}function Wl(e,t){return Vp(e,t,{isMultiPart:!0})}function Irr(){var e=new Map;return new Proxy(Y4,{apply:function(r,n,o){return Y4.apply(void 0,o)},get:function(r,n){return e.has(n)||e.set(n,Y4(n)),e.get(n)}})}var Jt=Irr(),Rrr=function(t){var r=t.children,n=t.colorModeManager,o=t.portalZIndex,a=t.resetCSS,i=a===void 0?!0:a,s=t.theme,l=s===void 0?{}:s,u=t.environment,c=t.cssVarsRoot,d=m.createElement(utr,{environment:u},r);return m.createElement(Ger,null,m.createElement(Srr,{theme:l,cssVarsRoot:c},m.createElement(gtr,{colorModeManager:n,options:l.config},i&&m.createElement(zJt,null),m.createElement(Crr,null),o?m.createElement(ntr,{zIndex:o},d):d)))},_Ee={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"};function na(){return na=Object.assign||function(e){for(var t=1;t>o*8&255;n+=("00"+a.toString(16)).substr(-2)}return n}function Brr(e,t){var r=0;if(e.length===0)return t[0];for(var n=0;n1?r-1:0),o=1;o option, > optgroup":{bg:dt("white","gray.700")(t)}})},Eir={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},_ir=function(t){return{field:$ir(t),icon:Eir}},Kk={paddingInlineEnd:"2rem"},kir=Sd({},yo.sizes,{lg:{field:Kk},md:{field:Kk},sm:{field:Kk},xs:{field:Kk,icon:{insetEnd:"0.25rem"}}}),Pir={parts:fnr.keys,baseStyle:_ir,sizes:kir,variants:yo.variants,defaultProps:yo.defaultProps},Tir=function(t,r){return nS({from:{borderColor:t,background:t},to:{borderColor:r,background:r}})},Iir=function(t){var r=dt("gray.100","gray.800")(t),n=dt("gray.400","gray.600")(t),o=t.startColor,a=o===void 0?r:o,i=t.endColor,s=i===void 0?n:i,l=t.speed,u=t.theme,c=xa(u,a),d=xa(u,s);return{opacity:.7,borderRadius:"2px",borderColor:c,background:d,animation:l+"s linear infinite alternate "+Tir(c,d)}},Rir={baseStyle:Iir},Fir=function(t){return{borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:dt("white","gray.700")(t)}}},Oir={baseStyle:Fir};function Nir(e){return S_({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}var Dir=function(t){var r=t.orientation;return na({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},S_({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}}))},Air=function(t){return{overflow:"hidden",borderRadius:"sm",bg:dt("gray.200","whiteAlpha.200")(t),_disabled:{bg:dt("gray.300","whiteAlpha.300")(t)}}},Mir=function(t){return na({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},Nir(t))},Bir=function(t){var r=t.colorScheme;return{width:"inherit",height:"inherit",bg:dt(r+".500",r+".200")(t)}},jir=function(t){return{container:Dir(t),track:Air(t),thumb:Mir(t),filledTrack:Bir(t)}},Lir=function(t){return{thumb:{w:"16px",h:"16px"},track:S_({orientation:t.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},zir=function(t){return{thumb:{w:"14px",h:"14px"},track:S_({orientation:t.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},Vir=function(t){return{thumb:{w:"10px",h:"10px"},track:S_({orientation:t.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}},Hir={lg:Lir,md:zir,sm:Vir},Wir={size:"md",colorScheme:"blue"},qir={parts:pnr.keys,sizes:Hir,baseStyle:jir,defaultProps:Wir},Q4,Z4,J4,e3,t3,Dv=ql("spinner-size"),Uir={width:[Dv.reference],height:[Dv.reference]},Kir={xs:(Q4={},Q4[Dv.variable]="0.75rem",Q4),sm:(Z4={},Z4[Dv.variable]="1rem",Z4),md:(J4={},J4[Dv.variable]="1.5rem",J4),lg:(e3={},e3[Dv.variable]="2rem",e3),xl:(t3={},t3[Dv.variable]="3rem",t3)},Gir={size:"md"},Yir={baseStyle:Uir,sizes:Kir,defaultProps:Gir},Xir={fontWeight:"medium"},Qir={opacity:.8,marginBottom:2},Zir={verticalAlign:"baseline",fontWeight:"semibold"},Jir={marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"},esr={container:{},label:Xir,helpText:Qir,number:Zir,icon:Jir},tsr={md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},rsr={size:"md"},nsr={parts:mnr.keys,baseStyle:esr,sizes:tsr,defaultProps:rsr},Gk,Yk,Xk,KC=ql("switch-track-width"),gg=ql("switch-track-height"),r3=ql("switch-track-diff"),osr=wf.subtract(KC,gg),Hz=ql("switch-thumb-x"),asr=function(t){var r=t.colorScheme;return{borderRadius:"full",p:"2px",width:[KC.reference],height:[gg.reference],transitionProperty:"common",transitionDuration:"fast",bg:dt("gray.300","whiteAlpha.400")(t),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:dt(r+".500",r+".200")(t)}}},isr={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[gg.reference],height:[gg.reference],_checked:{transform:"translateX("+Hz.reference+")"}},ssr=function(t){var r,n;return{container:(n={},n[r3.variable]=osr,n[Hz.variable]=r3.reference,n._rtl=(r={},r[Hz.variable]=wf(r3).negate().toString(),r),n),track:asr(t),thumb:isr}},lsr={sm:{container:(Gk={},Gk[KC.variable]="1.375rem",Gk[gg.variable]="0.75rem",Gk)},md:{container:(Yk={},Yk[KC.variable]="1.875rem",Yk[gg.variable]="1rem",Yk)},lg:{container:(Xk={},Xk[KC.variable]="2.875rem",Xk[gg.variable]="1.5rem",Xk)}},usr={size:"md",colorScheme:"blue"},csr={parts:hnr.keys,baseStyle:ssr,sizes:lsr,defaultProps:usr},dsr={table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},BR={"&[data-is-numeric=true]":{textAlign:"end"}},fsr=function(t){var r=t.colorScheme;return{th:na({color:dt("gray.600","gray.400")(t),borderBottom:"1px",borderColor:dt(r+".100",r+".700")(t)},BR),td:na({borderBottom:"1px",borderColor:dt(r+".100",r+".700")(t)},BR),caption:{color:dt("gray.600","gray.100")(t)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},psr=function(t){var r=t.colorScheme;return{th:na({color:dt("gray.600","gray.400")(t),borderBottom:"1px",borderColor:dt(r+".100",r+".700")(t)},BR),td:na({borderBottom:"1px",borderColor:dt(r+".100",r+".700")(t)},BR),caption:{color:dt("gray.600","gray.100")(t)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:dt(r+".100",r+".700")(t)},td:{background:dt(r+".100",r+".700")(t)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},msr={simple:fsr,striped:psr,unstyled:{}},hsr={sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},vsr={variant:"simple",size:"md",colorScheme:"gray"},gsr={parts:vnr.keys,baseStyle:dsr,variants:msr,sizes:hsr,defaultProps:vsr},bsr=function(t){var r=t.orientation;return{display:r==="vertical"?"flex":"block"}},ysr=function(t){var r=t.isFitted;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}},Ssr=function(t){var r=t.align,n=r===void 0?"start":r,o=t.orientation,a={end:"flex-end",center:"center",start:"flex-start"};return{justifyContent:a[n],flexDirection:o==="vertical"?"column":"row"}},wsr={p:4},Csr=function(t){return{root:bsr(t),tab:ysr(t),tablist:Ssr(t),tabpanel:wsr}},xsr={sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},$sr=function(t){var r,n,o=t.colorScheme,a=t.orientation,i=a==="vertical",s=a==="vertical"?"borderStart":"borderBottom",l=i?"marginStart":"marginBottom";return{tablist:(r={},r[s]="2px solid",r.borderColor="inherit",r),tab:(n={},n[s]="2px solid",n.borderColor="transparent",n[l]="-2px",n._selected={color:dt(o+".600",o+".300")(t),borderColor:"currentColor"},n._active={bg:dt("gray.200","whiteAlpha.300")(t)},n._disabled={opacity:.4,cursor:"not-allowed"},n)}},Esr=function(t){var r=t.colorScheme;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:dt(r+".600",r+".300")(t),borderColor:"inherit",borderBottomColor:dt("white","gray.800")(t)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},_sr=function(t){var r=t.colorScheme;return{tab:{border:"1px solid",borderColor:"inherit",bg:dt("gray.50","whiteAlpha.50")(t),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:dt("#fff","gray.800")(t),color:dt(r+".600",r+".300")(t),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},ksr=function(t){var r=t.colorScheme,n=t.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:xa(n,r+".700"),bg:xa(n,r+".100")}}}},Psr=function(t){var r=t.colorScheme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:dt("gray.600","inherit")(t),_selected:{color:dt("#fff","gray.800")(t),bg:dt(r+".600",r+".300")(t)}}}},Tsr={},Isr={line:$sr,enclosed:Esr,"enclosed-colored":_sr,"soft-rounded":ksr,"solid-rounded":Psr,unstyled:Tsr},Rsr={size:"md",variant:"line",colorScheme:"blue"},Fsr={parts:gnr.keys,baseStyle:Csr,sizes:xsr,variants:Isr,defaultProps:Rsr},Osr={fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},Nsr={lineHeight:1.2,overflow:"visible"},Dsr={fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},Asr={container:Osr,label:Nsr,closeButton:Dsr},Msr={sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},Bsr={subtle:function(t){return{container:vy.variants.subtle(t)}},solid:function(t){return{container:vy.variants.solid(t)}},outline:function(t){return{container:vy.variants.outline(t)}}},jsr={size:"md",variant:"subtle",colorScheme:"gray"},Lsr={parts:bnr.keys,variants:Bsr,baseStyle:Asr,sizes:Msr,defaultProps:jsr},Mie,Bie,jie,Lie,zie,zsr=na({},yo.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Vsr={outline:function(t){var r;return(r=yo.variants.outline(t).field)!=null?r:{}},flushed:function(t){var r;return(r=yo.variants.flushed(t).field)!=null?r:{}},filled:function(t){var r;return(r=yo.variants.filled(t).field)!=null?r:{}},unstyled:(Mie=yo.variants.unstyled.field)!=null?Mie:{}},Hsr={xs:(Bie=yo.sizes.xs.field)!=null?Bie:{},sm:(jie=yo.sizes.sm.field)!=null?jie:{},md:(Lie=yo.sizes.md.field)!=null?Lie:{},lg:(zie=yo.sizes.lg.field)!=null?zie:{}},Wsr={size:"md",variant:"outline"},qsr={baseStyle:zsr,sizes:Hsr,variants:Vsr,defaultProps:Wsr},n3=ql("tooltip-bg"),Usr=ql("popper-arrow-bg"),Ksr=function(t){var r,n=dt("gray.700","gray.300")(t);return r={},r[n3.variable]="colors."+n,r.px="8px",r.py="2px",r.bg=[n3.reference],r[Usr.variable]=[n3.reference],r.color=dt("whiteAlpha.900","gray.900")(t),r.borderRadius="sm",r.fontWeight="medium",r.fontSize="sm",r.boxShadow="md",r.maxW="320px",r.zIndex="tooltip",r},Gsr={baseStyle:Ksr},Ysr=Object.freeze({__proto__:null,Accordion:$nr,Alert:Fnr,Avatar:jnr,Badge:vy,Breadcrumb:Gnr,Button:oor,Checkbox:MR,CloseButton:vor,Code:Sor,Container:Cor,Divider:Por,Drawer:jor,Editable:Wor,Form:Gor,FormError:Zor,FormLabel:ear,Heading:oar,Input:yo,Kbd:mar,Link:gar,List:Sar,Menu:Par,Modal:jar,NumberInput:Yar,PinInput:eir,Popover:cir,Progress:bir,Radio:xir,Select:Pir,Skeleton:Rir,SkipLink:Oir,Slider:qir,Spinner:Yir,Stat:nsr,Switch:csr,Table:gsr,Tabs:Fsr,Tag:Lsr,Textarea:qsr,Tooltip:Gsr}),Xsr={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Qsr=Lrr({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),Zsr={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Jsr={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},elr={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},tlr={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},rlr={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},nlr={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},olr={property:tlr,easing:rlr,duration:nlr},alr={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},ilr={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},slr=na({breakpoints:Qsr,zIndices:alr,radii:Jsr,blur:ilr,colors:Zsr},IEe,{sizes:kEe,shadows:elr,space:_Ee,borders:Xsr,transition:olr}),llr={global:function(t){return{body:{fontFamily:"body",color:dt("gray.800","whiteAlpha.900")(t),bg:dt("white","gray.800")(t),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:dt("gray.400","whiteAlpha.400")(t)},"*, *::before, &::after":{borderColor:dt("gray.200","whiteAlpha.300")(t),wordWrap:"break-word"}}}},ulr=llr,clr="ltr",dlr={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},flr=na({direction:clr},slr,{components:Ysr,styles:ulr,config:dlr});function gy(){return gy=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var mlr=["as","viewBox","color","focusable","children","className","__css"],Vie={path:m.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},m.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),m.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),m.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Qd=vr(function(e,t){var r=e.as,n=e.viewBox,o=e.color,a=o===void 0?"currentColor":o,i=e.focusable,s=i===void 0?!1:i,l=e.children,u=e.className,c=e.__css,d=plr(e,mlr),f=nn("chakra-icon",u),p=gy({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},c),h={ref:t,focusable:s,className:f,__css:p},v=n??Vie.viewBox;if(r&&typeof r!="string")return m.createElement(Jt.svg,gy({as:r},h,d));var b=l??Vie.path;return m.createElement(Jt.svg,gy({verticalAlign:"middle",viewBox:v},h,d),b)});function Yt(e){var t=e.viewBox,r=t===void 0?"0 0 24 24":t,n=e.d;e.displayName;var o=e.defaultProps,a=o===void 0?{}:o,i=m.Children.toArray(e.path),s=vr(function(l,u){return m.createElement(Qd,gy({ref:u,viewBox:r},a,l),i.length?i:m.createElement("path",{fill:"currentColor",d:n}))});return s}var mf=function(e){return{isEnabled:function(t){return e.some(function(r){return!!t[r]})}}},M$={measureLayout:mf(["layout","layoutId","drag"]),animation:mf(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:mf(["exit"]),drag:mf(["drag","dragControls"]),focus:mf(["whileFocus"]),hover:mf(["whileHover","onHoverStart","onHoverEnd"]),tap:mf(["whileTap","onTap","onTapStart","onTapCancel"]),pan:mf(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:mf(["whileInView","onViewportEnter","onViewportLeave"])};function hlr(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?M$.projectionNodeConstructor=e[t]:M$[t].Component=e[t])}var vlr=function(){},jR=function(){},OEe=m.createContext({strict:!1}),NEe=Object.keys(M$),glr=NEe.length;function blr(e,t,r){var n=[];if(m.useContext(OEe),!t)return null;for(var o=0;operformance.now():()=>Date.now(),LEe=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(_lr()),jEe);function klr(e){let t=[],r=[],n=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&i.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(n=t.length)),l},cancel:l=>{const u=r.indexOf(l);u!==-1&&r.splice(u,1),i.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let u=0;u(e[t]=klr(()=>B$=!0),e),{}),Id=x_.reduce((e,t)=>{const r=sA[t];return e[t]=(n,o=!1,a=!1)=>(B$||Ilr(),r.schedule(n,o,a)),e},{}),j$=x_.reduce((e,t)=>(e[t]=sA[t].cancel,e),{}),o3=x_.reduce((e,t)=>(e[t]=()=>sA[t].process(by),e),{}),Tlr=e=>sA[e].process(by),zEe=e=>{B$=!1,by.delta=Wz?jEe:Math.max(Math.min(e-by.timestamp,Plr),1),by.timestamp=e,qz=!0,x_.forEach(Tlr),qz=!1,B$&&(Wz=!1,LEe(zEe))},Ilr=()=>{B$=!0,Wz=!0,qz||LEe(zEe)},Uz=()=>by,LR=(e,t,r)=>Math.min(Math.max(r,e),t),a3=.001,Rlr=.01,qie=10,Flr=.05,Olr=1;function Nlr({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;vlr(e<=qie*1e3);let i=1-t;i=LR(Flr,Olr,i),e=LR(Rlr,qie,e/1e3),i<1?(o=u=>{const c=u*i,d=c*e,f=c-r,p=Kz(u,i),h=Math.exp(-d);return a3-f/p*h},a=u=>{const d=u*i*e,f=d*r+r,p=Math.pow(i,2)*Math.pow(u,2)*e,h=Math.exp(-d),v=Kz(Math.pow(u,2),i);return(-o(u)+a3>0?-1:1)*((f-p)*h)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-a3+c*d},a=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=Alr(o,a,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:i*2*Math.sqrt(n*u),duration:e}}}const Dlr=12;function Alr(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function jlr(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Uie(e,Blr)&&Uie(e,Mlr)){const r=Nlr(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function nU(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,a=Ro(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=jlr(a),p=Kie,h=Kie;function v(){const b=c?-(c/1e3):0,g=r-t,y=l/(2*Math.sqrt(s*u)),S=Math.sqrt(s/u)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),y<1){const w=Kz(S,y);p=$=>{const C=Math.exp(-y*S*$);return r-C*((b+y*S*g)/w*Math.sin(w*$)+g*Math.cos(w*$))},h=$=>{const C=Math.exp(-y*S*$);return y*S*C*(Math.sin(w*$)*(b+y*S*g)/w+g*Math.cos(w*$))-C*(Math.cos(w*$)*(b+y*S*g)-w*g*Math.sin(w*$))}}else if(y===1)p=w=>r-Math.exp(-S*w)*(g+(b+S*g)*w);else{const w=S*Math.sqrt(y*y-1);p=$=>{const C=Math.exp(-y*S*$),x=Math.min(w*$,300);return r-C*((b+y*S*g)*Math.sinh(x)+w*g*Math.cosh(x))/w}}}return v(),{next:b=>{const g=p(b);if(f)i.done=b>=d;else{const y=h(b)*1e3,S=Math.abs(y)<=n,w=Math.abs(r-g)<=o;i.done=S&&w}return i.value=i.done?r:g,i},flipTarget:()=>{c=-c,[t,r]=[r,t],v()}}}nU.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Kie=e=>0,L$=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},zo=(e,t,r)=>-r*e+r*t+e,VEe=(e,t)=>r=>Math.max(Math.min(r,t),e),GC=e=>e%1?Number(e.toFixed(5)):e,z$=/(-)?([\d]*\.?[\d])+/g,Gz=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Llr=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function $_(e){return typeof e=="string"}const N0={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},YC=Object.assign(Object.assign({},N0),{transform:VEe(0,1)}),Qk=Object.assign(Object.assign({},N0),{default:1}),E_=e=>({test:t=>$_(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bm=E_("deg"),Rd=E_("%"),ir=E_("px"),zlr=E_("vh"),Vlr=E_("vw"),Gie=Object.assign(Object.assign({},Rd),{parse:e=>Rd.parse(e)/100,transform:e=>Rd.transform(e*100)}),oU=(e,t)=>r=>!!($_(r)&&Llr.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),HEe=(e,t,r)=>n=>{if(!$_(n))return n;const[o,a,i,s]=n.match(z$);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},tg={test:oU("hsl","hue"),parse:HEe("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Rd.transform(GC(t))+", "+Rd.transform(GC(r))+", "+GC(YC.transform(n))+")"},Hlr=VEe(0,255),i3=Object.assign(Object.assign({},N0),{transform:e=>Math.round(Hlr(e))}),qm={test:oU("rgb","red"),parse:HEe("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+i3.transform(e)+", "+i3.transform(t)+", "+i3.transform(r)+", "+GC(YC.transform(n))+")"};function Wlr(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Yz={test:oU("#"),parse:Wlr,transform:qm.transform},ns={test:e=>qm.test(e)||Yz.test(e)||tg.test(e),parse:e=>qm.test(e)?qm.parse(e):tg.test(e)?tg.parse(e):Yz.parse(e),transform:e=>$_(e)?e:e.hasOwnProperty("red")?qm.transform(e):tg.transform(e)},WEe="${c}",qEe="${n}";function qlr(e){var t,r,n,o;return isNaN(e)&&$_(e)&&((r=(t=e.match(z$))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(Gz))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function UEe(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Gz);n&&(r=n.length,e=e.replace(Gz,WEe),t.push(...n.map(ns.parse)));const o=e.match(z$);return o&&(e=e.replace(z$,qEe),t.push(...o.map(N0.parse))),{values:t,numColors:r,tokenised:e}}function KEe(e){return UEe(e).values}function GEe(e){const{values:t,numColors:r,tokenised:n}=UEe(e),o=t.length;return a=>{let i=n;for(let s=0;stypeof e=="number"?0:e;function Klr(e){const t=KEe(e);return GEe(e)(t.map(Ulr))}const bp={test:qlr,parse:KEe,createTransformer:GEe,getAnimatableNone:Klr},Glr=new Set(["brightness","contrast","saturate","opacity"]);function Ylr(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(z$)||[];if(!n)return e;const o=r.replace(n,"");let a=Glr.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const Xlr=/([a-z-]*)\(.*?\)/g,Xz=Object.assign(Object.assign({},bp),{getAnimatableNone:e=>{const t=e.match(Xlr);return t?t.map(Ylr).join(" "):e}});function s3(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 Yie({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,i=0;if(!t)o=a=i=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=s3(l,s,e+1/3),a=s3(l,s,e),i=s3(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:n}}const Qlr=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},Zlr=[Yz,qm,tg],Xie=e=>Zlr.find(t=>t.test(e)),YEe=(e,t)=>{let r=Xie(e),n=Xie(t),o=r.parse(e),a=n.parse(t);r===tg&&(o=Yie(o),r=qm),n===tg&&(a=Yie(a),n=qm);const i=Object.assign({},o);return s=>{for(const l in i)l!=="alpha"&&(i[l]=Qlr(o[l],a[l],s));return i.alpha=zo(o.alpha,a.alpha,s),r.transform(i)}},Qz=e=>typeof e=="number",Jlr=(e,t)=>r=>t(e(r)),lA=(...e)=>e.reduce(Jlr);function XEe(e,t){return Qz(e)?r=>zo(e,t,r):ns.test(e)?YEe(e,t):ZEe(e,t)}const QEe=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,i)=>XEe(a,t[i]));return a=>{for(let i=0;i{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=XEe(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}};function Qie(e){const t=bp.parse(e),r=t.length;let n=0,o=0,a=0;for(let i=0;i{const r=bp.createTransformer(t),n=Qie(e),o=Qie(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?lA(QEe(n.parsed,o.parsed),r):i=>`${i>0?t:e}`},tur=(e,t)=>r=>zo(e,t,r);function rur(e){if(typeof e=="number")return tur;if(typeof e=="string")return ns.test(e)?YEe:ZEe;if(Array.isArray(e))return QEe;if(typeof e=="object")return eur}function nur(e,t,r){const n=[],o=r||rur(e[0]),a=e.length-1;for(let i=0;ir(L$(e,t,n))}function aur(e,t){const r=e.length,n=r-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[n]&&(a=n-1,i=!0),!i){let l=1;for(;lo||l===n);l++);a=l-1}const s=L$(e[a],e[a+1],o);return t[a](s)}}function JEe(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;jR(a===t.length),jR(!n||!Array.isArray(n)||n.length===a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=nur(t,n,o),s=a===2?our(e,i):aur(e,i);return r?l=>s(LR(e[0],e[a-1],l)):s}const uA=e=>t=>1-e(1-t),aU=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iur=e=>t=>Math.pow(t,e),e_e=e=>t=>t*t*((e+1)*t-e),sur=e=>{const t=e_e(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},t_e=1.525,lur=4/11,uur=8/11,cur=9/10,iU=e=>e,sU=iur(2),dur=uA(sU),r_e=aU(sU),n_e=e=>1-Math.sin(Math.acos(e)),lU=uA(n_e),fur=aU(lU),uU=e_e(t_e),pur=uA(uU),mur=aU(uU),hur=sur(t_e),vur=4356/361,gur=35442/1805,bur=16061/1805,zR=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-zR(1-e*2)):.5*zR(e*2-1)+.5;function wur(e,t){return e.map(()=>t||r_e).splice(0,e.length-1)}function Cur(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function xur(e,t){return e.map(r=>r*t)}function mT({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=xur(n&&n.length===i.length?n:Cur(i),o);function l(){return JEe(s,i,{ease:Array.isArray(r)?r:wur(i,r)})}let u=l();return{next:c=>(a.value=u(c),a.done=c>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}function $ur({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=r*e;const l=t+s,u=a===void 0?l:a(l);return u!==l&&(s=u-t),{next:c=>{const d=-s*Math.exp(-c/n);return i.done=!(d>o||d<-o),i.value=i.done?u:u+d,i},flipTarget:()=>{}}}const Zie={keyframes:mT,spring:nU,decay:$ur};function Eur(e){if(Array.isArray(e.to))return mT;if(Zie[e.type])return Zie[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?mT:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?nU:mT}const o_e=1/60*1e3,_ur=typeof performance<"u"?()=>performance.now():()=>Date.now(),a_e=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(_ur()),o_e);function kur(e){let t=[],r=[],n=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&i.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(n=t.length)),l},cancel:l=>{const u=r.indexOf(l);u!==-1&&r.splice(u,1),i.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let u=0;u(e[t]=kur(()=>V$=!0),e),{}),Tur=__.reduce((e,t)=>{const r=cA[t];return e[t]=(n,o=!1,a=!1)=>(V$||Fur(),r.schedule(n,o,a)),e},{}),Iur=__.reduce((e,t)=>(e[t]=cA[t].cancel,e),{});__.reduce((e,t)=>(e[t]=()=>cA[t].process(yy),e),{});const Rur=e=>cA[e].process(yy),i_e=e=>{V$=!1,yy.delta=Zz?o_e:Math.max(Math.min(e-yy.timestamp,Pur),1),yy.timestamp=e,Jz=!0,__.forEach(Rur),Jz=!1,V$&&(Zz=!1,a_e(i_e))},Fur=()=>{V$=!0,Zz=!0,Jz||a_e(i_e)},Our=()=>yy;function s_e(e,t,r=0){return e-t-r}function Nur(e,t,r=0,n=!0){return n?s_e(t+-e,t,r):t-(e-t)+r}function Dur(e,t,r,n){return n?e>=t+r:e<=-r}const Aur=e=>{const t=({delta:r})=>e(r);return{start:()=>Tur.update(t,!0),stop:()=>Iur.update(t)}};function l_e(e){var t,r,{from:n,autoplay:o=!0,driver:a=Aur,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,v=Ro(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=v,g,y=0,S=v.duration,w,$=!1,C=!0,x;const E=Eur(v);!((r=(t=E).needsInterpolation)===null||r===void 0)&&r.call(t,n,b)&&(x=JEe([0,100],[n,b],{clamp:!1}),n=0,b=100);const _=E(Object.assign(Object.assign({},v),{from:n,to:b}));function k(){y++,l==="reverse"?(C=y%2===0,i=Nur(i,S,u,C)):(i=s_e(i,S,u),l==="mirror"&&_.flipTarget()),$=!1,p&&p()}function I(){g.stop(),f&&f()}function N(O){if(C||(O=-O),i+=O,!$){const A=_.next(Math.max(0,i));w=A.value,x&&(w=x(w)),$=C?A.done:i<=0}h==null||h(w),$&&(y===0&&(S??(S=i)),y{d==null||d(),g.stop()}}}function u_e(e,t){return t?e*(1e3/t):0}function Mur({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function v(S){return r!==void 0&&Sn}function b(S){return r===void 0?n:n===void 0||Math.abs(r-S){var $;d==null||d(w),($=S.onUpdate)===null||$===void 0||$.call(S,w)},onComplete:f,onStop:p}))}function y(S){g(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},S))}if(v(e))y({from:e,velocity:t,to:b(e)});else{let S=o*t+e;typeof u<"u"&&(S=u(S));const w=b(S),$=w===r?-1:1;let C,x;const E=_=>{C=x,x=_,t=u_e(_-C,Our().delta),($===1&&_>w||$===-1&&_h==null?void 0:h.stop()}}const e8=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Jie=e=>e8(e)&&e.hasOwnProperty("z"),Zk=(e,t)=>Math.abs(e-t);function c_e(e,t){if(Qz(e)&&Qz(t))return Zk(e,t);if(e8(e)&&e8(t)){const r=Zk(e.x,t.x),n=Zk(e.y,t.y),o=Jie(e)&&Jie(t)?Zk(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const d_e=(e,t)=>1-3*t+3*e,f_e=(e,t)=>3*t-6*e,p_e=e=>3*e,VR=(e,t,r)=>((d_e(t,r)*e+f_e(t,r))*e+p_e(t))*e,m_e=(e,t,r)=>3*d_e(t,r)*e*e+2*f_e(t,r)*e+p_e(t),Bur=1e-7,jur=10;function Lur(e,t,r,n,o){let a,i,s=0;do i=t+(r-t)/2,a=VR(i,n,o)-e,a>0?r=i:t=i;while(Math.abs(a)>Bur&&++s=Vur?Hur(i,d,e,r):f===0?d:Lur(i,s,s+Jk,e,r)}return i=>i===0||i===1?i:VR(a(i),t,n)}function cU(e,t){e.indexOf(t)===-1&&e.push(t)}function dU(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var XC=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var r=this;return cU(this.subscriptions,t),function(){return dU(r.subscriptions,t)}},e.prototype.notify=function(t,r,n){var o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(var a=0;at?1:r(L$(e,t,n))}}function use(e,t){e.min=t.min,e.max=t.max}function Gc(e,t){use(e.x,t.x),use(e.y,t.y)}function u3(e){return e===void 0||e===1}function y_e(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!u3(t)||!u3(r)||!u3(n)}function ym(e){return y_e(e)||cse(e.x)||cse(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function cse(e){return e&&e!=="0%"}function WR(e,t,r){var n=e-r,o=t*n;return r+o}function dse(e,t,r,n,o){return o!==void 0&&(e=WR(e,o,n)),WR(e,r,n)+t}function t8(e,t,r,n,o){t===void 0&&(t=0),r===void 0&&(r=1),e.min=dse(e.min,t,r,n,o),e.max=dse(e.max,t,r,n,o)}function S_e(e,t){var r=t.x,n=t.y;t8(e.x,r.translate,r.scale,r.originPoint),t8(e.y,n.translate,n.scale,n.originPoint)}function ccr(e,t,r,n){var o,a;n===void 0&&(n=!1);var i=r.length;if(i){t.x=t.y=1;for(var s,l,u=0;u=0;o--){var a=this.members[o];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1},e.prototype.promote=function(t,r){var n,o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);var a=t.options.crossfade;a===!1&&o.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var r,n,o,a,i;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(i=(o=t.resumingFrom)===null||o===void 0?void 0:(a=o.options).onExitComplete)===null||i===void 0||i.call(a)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),qR={};function bcr(e){Object.assign(qR,e)}var ycr="translate3d(0px, 0px, 0) scale(1, 1)";function xse(e,t,r){var n=e.x.translate/t.x,o=e.y.translate/t.y,a="translate3d(".concat(n,"px, ").concat(o,"px, 0) ");if(r){var i=r.rotate,s=r.rotateX,l=r.rotateY;i&&(a+="rotate(".concat(i,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}return a+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"),a===ycr?"none":a}function Jc(e){return[e("x"),e("y")]}var r8=["","X","Y","Z"],Scr=["translate","scale","rotate","skew"],W$=["transformPerspective","x","y","z"];Scr.forEach(function(e){return r8.forEach(function(t){return W$.push(e+t)})});function wcr(e,t){return W$.indexOf(e)-W$.indexOf(t)}var Ccr=new Set(W$);function dA(e){return Ccr.has(e)}var xcr=new Set(["originX","originY","originZ"]);function x_e(e){return xcr.has(e)}var $cr=function(e,t){return e.depth-t.depth},Ecr=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){cU(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){dU(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort($cr),this.isDirty=!1,this.children.forEach(t)},e}();function vT(e){var t=yp(e)?e.get():e;return Zur(t)?t.toValue():t}var $se=1e3,ex={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $_e(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,o=e.resetTransform;return function(){function a(i,s,l){var u=this;s===void 0&&(s={}),l===void 0&&(l=r==null?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){u.isUpdating&&(u.isUpdating=!1,u.clearAllSnapshots())},this.updateProjection=function(){u.nodes.forEach(Rcr),u.nodes.forEach(Fcr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=i,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?gr(gr([],ra(l.path),!1),[l],!1):[],this.parent=l,this.depth=l?l.depth+1:0,i&&this.root.registerPotentialNode(i,this);for(var c=0;c=0;n--)if(e.path[n].instance){r=e.path[n];break}var o=r&&r!==e.root?r.instance:document,a=o.querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function Pse(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Tse(e){Pse(e.x),Pse(e.y)}var jcr=1;function Lcr(){return _1(function(){if(ex.hasEverUpdated)return jcr++})}var vU=m.createContext({}),E_e=m.createContext({});function zcr(e,t,r,n){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=m.useContext(E_e);!n||!r||r!=null&&r.projection||(r.projection=new n(e,r.getLatestValues(),(o=r.parent)===null||o===void 0?void 0:o.projection),r.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||l&&Gb(l),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:typeof i=="string"?i:"both",initialPromotionConfig:c,layoutScroll:u}))}var Vcr=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var r=this.props,n=r.visualElement,o=r.props;n&&n.setProps(o)},t.prototype.render=function(){return this.props.children},t}(Y.Component);function Hcr(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;t&&hlr(t);function s(l,u){var c=Wcr(l);l=K(K({},l),{layoutId:c});var d=m.useContext(DEe),f=null,p=Elr(l),h=d.isStatic?void 0:Lcr(),v=a(l,d.isStatic);return!d.isStatic&&C_&&(p.visualElement=Slr(i,v,K(K({},d),l),r),zcr(h,l,p.visualElement,n||M$.projectionNodeConstructor),f=blr(l,p.visualElement)),m.createElement(Vcr,{visualElement:p.visualElement,props:K(K({},d),l)},f,m.createElement(oA.Provider,{value:p},o(i,l,h,wlr(v,p.visualElement,u),v,d.isStatic,p.visualElement)))}return m.forwardRef(s)}function Wcr(e){var t,r=e.layoutId,n=(t=m.useContext(vU))===null||t===void 0?void 0:t.id;return n&&r!==void 0?n+"-"+r:r}function qcr(e){function t(n,o){return o===void 0&&(o={}),Hcr(e(n,o))}if(typeof Proxy>"u")return t;var r=new Map;return new Proxy(t,{get:function(n,o){return r.has(o)||r.set(o,t(o)),r.get(o)}})}var Ucr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function gU(e){return typeof e!="string"||e.includes("-")?!1:!!(Ucr.indexOf(e)>-1||/[A-Z]/.test(e))}function __e(e,t){var r=t.layout,n=t.layoutId;return dA(e)||x_e(e)||(r||n!==void 0)&&(!!qR[e]||e==="opacity")}var Kcr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Gcr(e,t,r,n){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=i===void 0?!0:i,l=t.allowTransformNone,u=l===void 0?!0:l,c="";a.sort(wcr);for(var d=!1,f=a.length,p=0;p"u"?Ndr:Odr;u(l,s.current,t,i)}var Fdr={some:0,all:1};function Odr(e,t,r,n){var o=n.root,a=n.margin,i=n.amount,s=i===void 0?"some":i,l=n.once;m.useEffect(function(){if(e){var u={root:o==null?void 0:o.current,rootMargin:a,threshold:typeof s=="number"?s:Fdr[s]},c=function(d){var f,p=d.isIntersecting;if(t.isInView!==p&&(t.isInView=p,!(l&&!p&&t.hasEnteredView))){p&&(t.hasEnteredView=!0),(f=r.animationState)===null||f===void 0||f.setActive(Yn.InView,p);var h=r.getProps(),v=p?h.onViewportEnter:h.onViewportLeave;v==null||v(d)}};return Idr(r.getInstance(),u,c)}},[e,o,a,s])}function Ndr(e,t,r){m.useEffect(function(){e&&requestAnimationFrame(function(){var n;t.hasEnteredView=!0;var o=r.getProps().onViewportEnter;o==null||o(null),(n=r.animationState)===null||n===void 0||n.setActive(Yn.InView,!0)})},[e])}var Um=function(e){return function(t){return e(t),null}},Ddr={inView:Um(Rdr),tap:Um(_dr),focus:Um(hdr),hover:Um(Edr)};function q_e(){var e=m.useContext(w_);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,o=Bdr();m.useEffect(function(){return n(o)},[]);var a=function(){return r==null?void 0:r(o)};return!t&&r?[!1,a]:[!0]}var Adr=0,Mdr=function(){return Adr++},Bdr=function(){return _1(Mdr)};function U_e(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;ny&&I,M=Array.isArray(k)?k:[k],L=M.reduce(a,{});N===!1&&(L={});var j=_.prevResolvedValues,H=j===void 0?{}:j,B=K(K({},H),L),F=function(R){A=!0,b.delete(R),_.needsAnimating[R]=!0};for(var V in B){var D=L[V],P=H[V];g.hasOwnProperty(V)||(D!==P?H$(D)&&H$(P)?!U_e(D,P)||O?F(V):_.protectedKeys[V]=!0:D!==void 0?F(V):b.add(V):D!==void 0&&b.has(V)?F(V):_.protectedKeys[V]=!0)}_.prevProp=k,_.prevResolvedValues=L,_.isActive&&(g=K(K({},g),L)),o&&e.blockInitialAnimation&&(A=!1),A&&!z&&v.push.apply(v,gr([],ra(M.map(function(R){return{animation:R,options:K({type:E},c)}})),!1))},w=0;w=3;if(!(!p&&!h)){var v=f.point,b=Uz().timestamp;o.history.push(K(K({},v),{timestamp:b}));var g=o.handlers,y=g.onStart,S=g.onMove;p||(y&&y(o.lastMoveEvent,f),o.startEvent=o.lastMoveEvent),S&&S(o.lastMoveEvent,f)}}},this.handlePointerMove=function(f,p){if(o.lastMoveEvent=f,o.lastMoveEventInfo=d3(p,o.transformPagePoint),M_e(f)&&f.buttons===0){o.handlePointerUp(f,p);return}Id.update(o.updatePoint,!0)},this.handlePointerUp=function(f,p){o.end();var h=o.handlers,v=h.onEnd,b=h.onSessionEnd,g=f3(d3(p,o.transformPagePoint),o.history);o.startEvent&&v&&v(f,g),b&&b(f,g)},!(B_e(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=i;var s=$U(t),l=d3(s,this.transformPagePoint),u=l.point,c=Uz().timestamp;this.history=[K(K({},u),{timestamp:c})];var d=r.onSessionStart;d&&d(t,f3(l,this.history)),this.removeListeners=lA(Sy(window,"pointermove",this.handlePointerMove),Sy(window,"pointerup",this.handlePointerUp),Sy(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),j$.update(this.updatePoint)},e}();function d3(e,t){return t?{point:t(e.point)}:e}function Dse(e,t){return{x:e.x-t.x,y:e.y-t.y}}function f3(e,t){var r=e.point;return{point:r,delta:Dse(r,Q_e(t)),offset:Dse(r,ifr(t)),velocity:sfr(t,.1)}}function ifr(e){return e[0]}function Q_e(e){return e[e.length-1]}function sfr(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,o=Q_e(e);r>=0&&(n=e[r],!(o.timestamp-n.timestamp>HR(t)));)r--;if(!n)return{x:0,y:0};var a=(o.timestamp-n.timestamp)/1e3;if(a===0)return{x:0,y:0};var i={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function lfr(e,t,r){var n=t.min,o=t.max;return n!==void 0&&eo&&(e=r?zo(o,e,r.max):Math.min(e,o)),e}function Ase(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function ufr(e,t){var r=t.top,n=t.left,o=t.bottom,a=t.right;return{x:Ase(e.x,n,a),y:Ase(e.y,r,o)}}function Mse(e,t){var r,n=t.min-e.min,o=t.max-e.max;return t.max-t.minn?r=L$(t.min,t.max-n,e.min):n>o&&(r=L$(e.min,e.max-o,t.min)),LR(0,1,r)}function ffr(e,t){var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var i8=.35;function pfr(e){return e===void 0&&(e=i8),e===!1?e=0:e===!0&&(e=i8),{x:Bse(e,"left","right"),y:Bse(e,"top","bottom")}}function Bse(e,t,r){return{min:jse(e,t),max:jse(e,r)}}function jse(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}function Z_e(e){var t=e.top,r=e.left,n=e.right,o=e.bottom;return{x:{min:r,max:n},y:{min:t,max:o}}}function mfr(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function hfr(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function J_e(e,t){return Z_e(hfr(e.getBoundingClientRect(),t))}function vfr(e,t,r){var n=J_e(e,r),o=t.scroll;return o&&(Yb(n.x,o.x),Yb(n.y,o.y)),n}var gfr=new WeakMap,bfr=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ki(),this.visualElement=t}return e.prototype.start=function(t,r){var n=this,o=r===void 0?{}:r,a=o.snapToCursor,i=a===void 0?!1:a;if(this.visualElement.isPresent!==!1){var s=function(d){n.stopAnimation(),i&&n.snapToCursor($U(d,"page").point)},l=function(d,f){var p,h=n.getProps(),v=h.drag,b=h.dragPropagation,g=h.onDragStart;v&&!b&&(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=V_e(v),!n.openGlobalLock)||(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Jc(function(y){var S,w,$=n.getAxisMotionValue(y).get()||0;if(Rd.test($)){var C=(w=(S=n.visualElement.projection)===null||S===void 0?void 0:S.layout)===null||w===void 0?void 0:w.actual[y];if(C){var x=Sp(C);$=x*(parseFloat($)/100)}}n.originPoint[y]=$}),g==null||g(d,f),(p=n.visualElement.animationState)===null||p===void 0||p.setActive(Yn.Drag,!0))},u=function(d,f){var p=n.getProps(),h=p.dragPropagation,v=p.dragDirectionLock,b=p.onDirectionLock,g=p.onDrag;if(!(!h&&!n.openGlobalLock)){var y=f.offset;if(v&&n.currentDirection===null){n.currentDirection=yfr(y),n.currentDirection!==null&&(b==null||b(n.currentDirection));return}n.updateAxis("x",f.point,y),n.updateAxis("y",f.point,y),n.visualElement.syncRender(),g==null||g(d,f)}},c=function(d,f){return n.stop(d,f)};this.panSession=new X_e(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:c},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,r){var n=this.isDragging;if(this.cancel(),!!n){var o=r.velocity;this.startAnimation(o);var a=this.getProps().onDragEnd;a==null||a(t,r)}},e.prototype.cancel=function(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var n=this.getProps().dragPropagation;!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(Yn.Drag,!1)},e.prototype.updateAxis=function(t,r,n){var o=this.getProps().drag;if(!(!n||!tP(t,o,this.currentDirection))){var a=this.getAxisMotionValue(t),i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=lfr(i,this.constraints[t],this.elastic[t])),a.set(i)}},e.prototype.resolveConstraints=function(){var t=this,r=this.getProps(),n=r.dragConstraints,o=r.dragElastic,a=(this.visualElement.projection||{}).layout,i=this.constraints;n&&Gb(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=ufr(a.actual,n):this.constraints=!1,this.elastic=pfr(o),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Jc(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=ffr(a.actual[s],t.constraints[s]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),r=t.dragConstraints,n=t.onMeasureDragConstraints;if(!r||!Gb(r))return!1;var o=r.current,a=this.visualElement.projection;if(!a||!a.layout)return!1;var i=vfr(o,a.root,this.visualElement.getTransformPagePoint()),s=cfr(a.layout.actual,i);if(n){var l=n(mfr(s));this.hasMutatedConstraints=!!l,l&&(s=Z_e(l))}return s},e.prototype.startAnimation=function(t){var r=this,n=this.getProps(),o=n.drag,a=n.dragMomentum,i=n.dragElastic,s=n.dragTransition,l=n.dragSnapToOrigin,u=n.onDragTransitionEnd,c=this.constraints||{},d=Jc(function(f){var p;if(tP(f,o,r.currentDirection)){var h=(p=c==null?void 0:c[f])!==null&&p!==void 0?p:{};l&&(h={min:0,max:0});var v=i?200:1e6,b=i?40:1e7,g=K(K({type:"inertia",velocity:a?t[f]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10},s),h);return r.startAxisValueAnimation(f,g)}});return Promise.all(d).then(u)},e.prototype.startAxisValueAnimation=function(t,r){var n=this.getAxisMotionValue(t);return hU(t,n,0,r)},e.prototype.stopAnimation=function(){var t=this;Jc(function(r){return t.getAxisMotionValue(r).stop()})},e.prototype.getAxisMotionValue=function(t){var r,n,o="_drag"+t.toUpperCase(),a=this.visualElement.getProps()[o];return a||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)},e.prototype.snapToCursor=function(t){var r=this;Jc(function(n){var o=r.getProps().drag;if(tP(n,o,r.currentDirection)){var a=r.visualElement.projection,i=r.getAxisMotionValue(n);if(a&&a.layout){var s=a.layout.actual[n],l=s.min,u=s.max;i.set(t[n]-zo(l,u,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,r,n=this.getProps(),o=n.drag,a=n.dragConstraints,i=this.visualElement.projection;if(!(!Gb(a)||!i||!this.constraints)){this.stopAnimation();var s={x:0,y:0};Jc(function(u){var c=t.getAxisMotionValue(u);if(c){var d=c.get();s[u]=dfr({min:d,max:d},t.constraints[u])}});var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",(r=i.root)===null||r===void 0||r.updateScroll(),i.updateLayout(),this.resolveConstraints(),Jc(function(u){if(tP(u,o,null)){var c=t.getAxisMotionValue(u),d=t.constraints[u],f=d.min,p=d.max;c.set(zo(f,p,s[u]))}})}},e.prototype.addListeners=function(){var t=this,r;gfr.set(this.visualElement,this);var n=this.visualElement.getInstance(),o=Sy(n,"pointerdown",function(u){var c=t.getProps(),d=c.drag,f=c.dragListener,p=f===void 0?!0:f;d&&p&&t.start(u)}),a=function(){var u=t.getProps().dragConstraints;Gb(u)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,s=i.addEventListener("measure",a);i&&!i.layout&&((r=i.root)===null||r===void 0||r.updateScroll(),i.updateLayout()),a();var l=xU(window,"resize",function(){t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(u){var c=u.delta,d=u.hasLayoutChanged;t.isDragging&&d&&(Jc(function(f){var p=t.getAxisMotionValue(f);p&&(t.originPoint[f]+=c[f].translate,p.set(p.get()+c[f].translate))}),t.visualElement.syncRender())}),function(){l(),o(),s()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),r=t.drag,n=r===void 0?!1:r,o=t.dragDirectionLock,a=o===void 0?!1:o,i=t.dragPropagation,s=i===void 0?!1:i,l=t.dragConstraints,u=l===void 0?!1:l,c=t.dragElastic,d=c===void 0?i8:c,f=t.dragMomentum,p=f===void 0?!0:f;return K(K({},t),{drag:n,dragDirectionLock:a,dragPropagation:s,dragConstraints:u,dragElastic:d,dragMomentum:p})},e}();function tP(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function yfr(e,t){t===void 0&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function Sfr(e){var t=e.dragControls,r=e.visualElement,n=_1(function(){return new bfr(r)});m.useEffect(function(){return t&&t.subscribe(n)},[n,t]),m.useEffect(function(){return n.addListeners()},[n])}function wfr(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||r||n||o,s=m.useRef(null),l=m.useContext(DEe).transformPagePoint,u={onSessionStart:o,onStart:r,onMove:t,onEnd:function(d,f){s.current=null,n&&n(d,f)}};m.useEffect(function(){s.current!==null&&s.current.updateHandlers(u)});function c(d){s.current=new X_e(d,u,{transformPagePoint:l})}KR(a,"pointerdown",i&&c),EU(function(){return s.current&&s.current.end()})}var Cfr={pan:Um(wfr),drag:Um(Sfr)},rP=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function xfr(){var e=rP.map(function(){return new XC}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){rP.forEach(function(o){var a,i="on"+o,s=n[i];(a=t[o])===null||a===void 0||a.call(t),s&&(t[o]=r[i](s))})}};return e.forEach(function(n,o){r["on"+rP[o]]=function(a){return n.add(a)},r["notify"+rP[o]]=function(){for(var a=[],i=0;i5)return o;var l=bp.createTransformer(e),u=typeof s[0]!="number"?1:0,c=n.x.scale*r.x,d=n.y.scale*r.y;s[0+u]/=c,s[1+u]/=d;var f=zo(c,d,.5);typeof s[2+u]=="number"&&(s[2+u]/=f),typeof s[3+u]=="number"&&(s[3+u]/=f);var p=l(s);if(a){var h=0;p=p.replace(Use,function(){var v=i[h];return h++,v})}return p}},Vfr=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this,n=this.props,o=n.visualElement,a=n.layoutGroup,i=n.switchLayoutGroup,s=n.layoutId,l=o.projection;bcr(Wfr),l&&(a!=null&&a.group&&a.group.add(l),i!=null&&i.register&&s&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){r.safeToRemove()}),l.setOptions(K(K({},l.options),{onExitComplete:function(){return r.safeToRemove()}}))),ex.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(r){var n=this,o=this.props,a=o.layoutDependency,i=o.visualElement,s=o.drag,l=o.isPresent,u=i.projection;return u&&(u.isPresent=l,s||r.layoutDependency!==a||a===void 0?u.willUpdate():this.safeToRemove(),r.isPresent!==l&&(l?u.promote():u.relegate()||Id.postRender(function(){var c;!((c=u.getStack())===null||c===void 0)&&c.members.length||n.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var r=this.props,n=r.visualElement,o=r.layoutGroup,a=r.switchLayoutGroup,i=n.projection;i&&(i.scheduleCheckAfterUnmount(),o!=null&&o.group&&o.group.remove(i),a!=null&&a.deregister&&a.deregister(i))},t.prototype.safeToRemove=function(){var r=this.props.safeToRemove;r==null||r()},t.prototype.render=function(){return null},t}(Y.Component);function Hfr(e){var t=ra(q_e(),2),r=t[0],n=t[1],o=m.useContext(vU);return Y.createElement(Vfr,K({},e,{layoutGroup:o,switchLayoutGroup:m.useContext(E_e),isPresent:r,safeToRemove:n}))}var Wfr={borderRadius:K(K({},Pw),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pw,borderTopRightRadius:Pw,borderBottomLeftRadius:Pw,borderBottomRightRadius:Pw,boxShadow:zfr},qfr={measureLayout:Hfr},Ufr=$_e({attachResizeListener:function(e,t){return e.addEventListener("resize",t,{passive:!0}),function(){return e.removeEventListener("resize",t)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),p3={current:void 0},Kfr=$_e({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!p3.current){var e=new Ufr(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),p3.current=e}return p3.current},resetTransform:function(e,t){e.style.transform=t??"none"}}),Gfr=K(K(K(K({},afr),Ddr),Cfr),qfr),kU=qcr(function(e,t){return mdr(e,t,Gfr,Lfr,Kfr)});function Yfr(){var e=m.useRef(!1),t=ra(m.useState(0),2),r=t[0],n=t[1];EU(function(){return e.current=!0});var o=m.useCallback(function(){!e.current&&n(r+1)},[r]),a=m.useCallback(function(){return Id.postRender(o)},[o]);return[a,r]}var Kse=0;function Xfr(){var e=Kse;return Kse++,e}var m3=function(e){var t=e.children,r=e.initial,n=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=_1(Qfr),l=_1(Xfr),u=m.useMemo(function(){return{id:l,initial:r,isPresent:n,custom:a,onExitComplete:function(c){var d,f;s.set(c,!0);try{for(var p=Lpt(s.values()),h=p.next();!h.done;h=p.next()){var v=h.value;if(!v)return}}catch(b){d={error:b}}finally{try{h&&!h.done&&(f=p.return)&&f.call(p)}finally{if(d)throw d.error}}o==null||o()},register:function(c){return s.set(c,!1),function(){return s.delete(c)}}}},i?void 0:[n]);return m.useMemo(function(){s.forEach(function(c,d){return s.set(d,!1)})},[n]),m.useEffect(function(){!n&&!s.size&&(o==null||o())},[n]),m.createElement(w_.Provider,{value:u},t)};function Qfr(){return new Map}function bb(e){return e.key||""}function Zfr(e,t){e.forEach(function(r){var n=bb(r);t.set(n,r)})}function Jfr(e){var t=[];return m.Children.forEach(e,function(r){m.isValidElement(r)&&t.push(r)}),t}var epr=function(e){var t=e.children,r=e.custom,n=e.initial,o=n===void 0?!0:n,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=s===void 0?!0:s,u=ra(Yfr(),1),c=u[0],d=m.useContext(vU).forceRender;d&&(c=d);var f=m.useRef(!0),p=m.useRef(!0);m.useEffect(function(){return function(){p.current=!1}},[]);var h=Jfr(t),v=m.useRef(h),b=m.useRef(new Map).current,g=m.useRef(new Set).current;if(Zfr(h,b),f.current)return f.current=!1,m.createElement(m.Fragment,null,h.map(function(E){return m.createElement(m3,{key:bb(E),isPresent:!0,initial:o?void 0:!1,presenceAffectsLayout:l},E)}));for(var y=gr([],ra(h),!1),S=v.current.map(bb),w=h.map(bb),$=S.length,C=0;C<$;C++){var x=S[C];w.indexOf(x)===-1?g.add(x):g.delete(x)}return i&&g.size&&(y=[]),g.forEach(function(E){if(w.indexOf(E)===-1){var _=b.get(E);if(_){var k=S.indexOf(E),I=function(){b.delete(E),g.delete(E);var N=v.current.findIndex(function(z){return z.key===E});if(v.current.splice(N,1),!g.size){if(v.current=h,p.current===!1)return;c(),a&&a()}};y.splice(k,0,m.createElement(m3,{key:bb(_),isPresent:!1,onExitComplete:I,custom:r,presenceAffectsLayout:l},_))}}}),y=y.map(function(E){var _=E.key;return g.has(_)?E:m.createElement(m3,{key:bb(E),isPresent:!0,presenceAffectsLayout:l},E)}),v.current=y,m.createElement(m.Fragment,null,g.size?y:y.map(function(E){return m.cloneElement(E)}))};function u8(){return u8=Object.assign||function(e){for(var t=1;t=t&&(n=0),n}function Xse(e,t,r){var n=e-1;return r&&n<0&&(n=t),n}var c8=typeof window<"u"?m.useLayoutEffect:m.useEffect,GR=function(t){return t},rpr=function(){var t=this;this.descendants=new Map,this.register=function(r){if(r!=null)return tpr(r)?t.registerNode(r):function(n){t.registerNode(n,r)}},this.unregister=function(r){t.descendants.delete(r);var n=Gse(Array.from(t.descendants.keys()));t.assignIndex(n)},this.destroy=function(){t.descendants.clear()},this.assignIndex=function(r){t.descendants.forEach(function(n){var o=r.indexOf(n.node);n.index=o,n.node.dataset.index=n.index.toString()})},this.count=function(){return t.descendants.size},this.enabledCount=function(){return t.enabledValues().length},this.values=function(){var r=Array.from(t.descendants.values());return r.sort(function(n,o){return n.index-o.index})},this.enabledValues=function(){return t.values().filter(function(r){return!r.disabled})},this.item=function(r){if(t.count()!==0)return t.values()[r]},this.enabledItem=function(r){if(t.enabledCount()!==0)return t.enabledValues()[r]},this.first=function(){return t.item(0)},this.firstEnabled=function(){return t.enabledItem(0)},this.last=function(){return t.item(t.descendants.size-1)},this.lastEnabled=function(){var r=t.enabledValues().length-1;return t.enabledItem(r)},this.indexOf=function(r){var n,o;return r&&(n=(o=t.descendants.get(r))==null?void 0:o.index)!=null?n:-1},this.enabledIndexOf=function(r){return r==null?-1:t.enabledValues().findIndex(function(n){return n.node.isSameNode(r)})},this.next=function(r,n){n===void 0&&(n=!0);var o=Yse(r,t.count(),n);return t.item(o)},this.nextEnabled=function(r,n){n===void 0&&(n=!0);var o=t.item(r);if(o){var a=t.enabledIndexOf(o.node),i=Yse(a,t.enabledCount(),n);return t.enabledItem(i)}},this.prev=function(r,n){n===void 0&&(n=!0);var o=Xse(r,t.count()-1,n);return t.item(o)},this.prevEnabled=function(r,n){n===void 0&&(n=!0);var o=t.item(r);if(o){var a=t.enabledIndexOf(o.node),i=Xse(a,t.enabledCount()-1,n);return t.enabledItem(i)}},this.registerNode=function(r,n){if(!(!r||t.descendants.has(r))){var o=Array.from(t.descendants.keys()).concat(r),a=Gse(o);n!=null&&n.disabled&&(n.disabled=!!n.disabled);var i=u8({node:r,index:-1},n);t.descendants.set(r,i),t.assignIndex(a)}}};function npr(){var e=m.useRef(new rpr);return c8(function(){return function(){return e.current.destroy()}}),e.current}var i2e=Zs({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),opr=i2e[0],s2e=i2e[1];function apr(e){var t=s2e(),r=m.useState(-1),n=r[0],o=r[1],a=m.useRef(null);c8(function(){return function(){a.current&&t.unregister(a.current)}},[]),c8(function(){if(a.current){var s=Number(a.current.dataset.index);n!=s&&!Number.isNaN(s)&&o(s)}});var i=GR(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(a.current),register:zi(i,a)}}function ipr(){var e=GR(opr),t=function(){return GR(s2e())},r=function(a){return apr(a)},n=function(){return npr()};return[e,t,n,r]}function Vf(){return Vf=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var lpr=function(t){return m.createElement(Qd,Vf({viewBox:"0 0 24 24"},t),m.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}))},upr=function(t){return m.createElement(Qd,Vf({viewBox:"0 0 24 24"},t),m.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}))},Qse=function(t){return m.createElement(Qd,Vf({viewBox:"0 0 24 24"},t),m.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))},cpr=["status"],dpr={info:{icon:upr,colorScheme:"blue"},warning:{icon:Qse,colorScheme:"orange"},success:{icon:lpr,colorScheme:"green"},error:{icon:Qse,colorScheme:"red"}},fpr=Zs({name:"AlertContext",errorMessage:"useAlertContext: `context` is undefined. Seems you forgot to wrap alert components in ``"}),ppr=fpr[0],mpr=vr(function(e,t){var r,n=vi(e),o=n.status,a=o===void 0?"info":o,i=spr(n,cpr),s=(r=e.colorScheme)!=null?r:dpr[a].colorScheme,l=Wl("Alert",Vf({},e,{colorScheme:s})),u=Vf({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},l.container);return m.createElement(ppr,{value:{status:a}},m.createElement(rv,{value:l},m.createElement(Jt.div,Vf({role:"alert",ref:t},i,{className:nn("chakra-alert",e.className),__css:u}))))}),hpr=vr(function(e,t){var r=hi();return m.createElement(Jt.div,Vf({ref:t},e,{className:nn("chakra-alert__title",e.className),__css:r.title}))}),fA={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},vpr=Jt("span",{baseStyle:fA});Jt("input",{baseStyle:fA});function YR(){return YR=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var bpr=["label","thickness","speed","emptyColor","className"],ypr=nS({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),l2e=vr(function(e,t){var r=Vp("Spinner",e),n=vi(e),o=n.label,a=o===void 0?"Loading...":o,i=n.thickness,s=i===void 0?"2px":i,l=n.speed,u=l===void 0?"0.45s":l,c=n.emptyColor,d=c===void 0?"transparent":c,f=n.className,p=gpr(n,bpr),h=nn("chakra-spinner",f),v=YR({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:d,borderLeftColor:d,animation:ypr+" "+u+" linear infinite"},r);return m.createElement(Jt.div,YR({ref:t,__css:v,className:h},p),a&&m.createElement(vpr,null,a))});function k_(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Su(){return Su=Object.assign||function(e){for(var t=1;t *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}):p=Su({},p,{"& > *:not(style) ~ *:not(style)":{marginStart:s}}),m.createElement(wpr,{value:f},m.createElement(Jt.div,Su({ref:t,role:"group",__css:p,className:d},c)))}),$pr=["label","placement","spacing","children","className","__css"],Zse=function(t){var r=t.label,n=t.placement,o=t.spacing,a=o===void 0?"0.5rem":o,i=t.children,s=i===void 0?m.createElement(l2e,{color:"currentColor",width:"1em",height:"1em"}):i,l=t.className,u=t.__css,c=k_(t,$pr),d=nn("chakra-button__spinner",l),f=n==="start"?"marginEnd":"marginStart",p=m.useMemo(function(){var h;return Su((h={display:"flex",alignItems:"center",position:r?"relative":"absolute"},h[f]=r?a:0,h.fontSize="1em",h.lineHeight="normal",h),u)},[u,r,f,a]);return m.createElement(Jt.div,Su({className:d},c,{__css:p}),s)},Epr=["children","className"],Jse=function(t){var r=t.children,n=t.className,o=k_(t,Epr),a=m.isValidElement(r)?m.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,i=nn("chakra-button__icon",n);return m.createElement(Jt.span,Su({display:"inline-flex",alignSelf:"center",flexShrink:0},o,{className:i}),a)};function _pr(e){var t=m.useState(!e),r=t[0],n=t[1],o=m.useCallback(function(i){i&&n(i.tagName==="BUTTON")},[]),a=r?"button":void 0;return{ref:o,type:a}}var kpr=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],q$=vr(function(e,t){var r=Cpr(),n=Vp("Button",Su({},r,e)),o=vi(e),a=o.isDisabled,i=a===void 0?r==null?void 0:r.isDisabled:a,s=o.isLoading,l=o.isActive,u=o.isFullWidth,c=o.children,d=o.leftIcon,f=o.rightIcon,p=o.loadingText,h=o.iconSpacing,v=h===void 0?"0.5rem":h,b=o.type,g=o.spinner,y=o.spinnerPlacement,S=y===void 0?"start":y,w=o.className,$=o.as,C=k_(o,kpr),x=m.useMemo(function(){var N,z=Sd({},(N=n==null?void 0:n._focus)!=null?N:{},{zIndex:1});return Su({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:u?"100%":"auto"},n,!!r&&{_focus:z})},[n,r,u]),E=_pr($),_=E.ref,k=E.type,I={rightIcon:f,leftIcon:d,iconSpacing:v,children:c};return m.createElement(Jt.button,Su({disabled:i||s,ref:etr(t,_),as:$,type:b??k,"data-active":ur(l),"data-loading":ur(s),__css:x,className:nn("chakra-button",w)},C),s&&S==="start"&&m.createElement(Zse,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:v},g),s?p||m.createElement(Jt.span,{opacity:0},m.createElement(ele,I)):m.createElement(ele,I),s&&S==="end"&&m.createElement(Zse,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:v},g))});function ele(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,o=e.iconSpacing;return m.createElement(m.Fragment,null,t&&m.createElement(Jse,{marginEnd:o},t),n,r&&m.createElement(Jse,{marginStart:o},r))}var Ppr=["icon","children","isRound","aria-label"],Tpr=vr(function(e,t){var r=e.icon,n=e.children,o=e.isRound,a=e["aria-label"],i=k_(e,Ppr),s=r||n,l=m.isValidElement(s)?m.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return m.createElement(q$,Su({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a},i),l)});function si(){return si=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Ipr=["id","isRequired","isInvalid","isDisabled","isReadOnly"],Rpr=["getRootProps","htmlProps"],c2e=Zs({strict:!1,name:"FormControlContext"}),Fpr=c2e[0],ES=c2e[1];function Opr(e){var t=e.id,r=e.isRequired,n=e.isInvalid,o=e.isDisabled,a=e.isReadOnly,i=P_(e,Ipr),s=$S(),l=t||"field-"+s,u=l+"-label",c=l+"-feedback",d=l+"-helptext",f=m.useState(!1),p=f[0],h=f[1],v=m.useState(!1),b=v[0],g=v[1],y=yu(),S=y[0],w=y[1],$=m.useCallback(function(k,I){return k===void 0&&(k={}),I===void 0&&(I=null),si({id:d},k,{ref:zi(I,function(N){N&&g(!0)})})},[d]),C=m.useCallback(function(k,I){var N,z;return k===void 0&&(k={}),I===void 0&&(I=null),si({},k,{ref:I,"data-focus":ur(S),"data-disabled":ur(o),"data-invalid":ur(n),"data-readonly":ur(a),id:(N=k.id)!=null?N:u,htmlFor:(z=k.htmlFor)!=null?z:l})},[l,o,S,n,a,u]),x=m.useCallback(function(k,I){return k===void 0&&(k={}),I===void 0&&(I=null),si({id:c},k,{ref:zi(I,function(N){N&&h(!0)}),"aria-live":"polite"})},[c]),E=m.useCallback(function(k,I){return k===void 0&&(k={}),I===void 0&&(I=null),si({},k,i,{ref:I,role:"group"})},[i]),_=m.useCallback(function(k,I){return k===void 0&&(k={}),I===void 0&&(I=null),si({},k,{ref:I,role:"presentation","aria-hidden":!0,children:k.children||"*"})},[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!S,onFocus:w.on,onBlur:w.off,hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:b,setHasHelpText:g,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:i,getHelpTextProps:$,getErrorMessageProps:x,getRootProps:E,getLabelProps:C,getRequiredIndicatorProps:_}}var Zd=vr(function(e,t){var r=Wl("Form",e),n=vi(e),o=Opr(n),a=o.getRootProps;o.htmlProps;var i=P_(o,Rpr),s=nn("chakra-form-control",e.className);return m.createElement(Fpr,{value:i},m.createElement(rv,{value:r},m.createElement(Jt.div,si({},a({},t),{className:s,__css:r.container}))))}),Npr=vr(function(e,t){var r=ES(),n=hi(),o=nn("chakra-form__helper-text",e.className);return m.createElement(Jt.div,si({},r==null?void 0:r.getHelpTextProps(e,t),{__css:n.helperText,className:o}))}),Dpr=["isDisabled","isInvalid","isReadOnly","isRequired"],Apr=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function PU(e){var t=TU(e),r=t.isDisabled,n=t.isInvalid,o=t.isReadOnly,a=t.isRequired,i=P_(t,Dpr);return si({},i,{disabled:r,readOnly:o,required:a,"aria-invalid":bs(n),"aria-required":bs(a),"aria-readonly":bs(o)})}function TU(e){var t,r,n,o=ES(),a=e.id,i=e.disabled,s=e.readOnly,l=e.required,u=e.isRequired,c=e.isInvalid,d=e.isReadOnly,f=e.isDisabled,p=e.onFocus,h=e.onBlur,v=P_(e,Apr),b=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&o!=null&&o.isInvalid&&b.push(o.feedbackId),o!=null&&o.hasHelpText&&b.push(o.helpTextId),si({},v,{"aria-describedby":b.join(" ")||void 0,id:a??(o==null?void 0:o.id),isDisabled:(t=i??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Pr(o==null?void 0:o.onFocus,p),onBlur:Pr(o==null?void 0:o.onBlur,h)})}var Mpr=vr(function(e,t){var r=Wl("FormError",e),n=vi(e),o=ES();return o!=null&&o.isInvalid?m.createElement(rv,{value:r},m.createElement(Jt.div,si({},o==null?void 0:o.getErrorMessageProps(n,t),{className:nn("chakra-form__error-message",e.className),__css:si({display:"flex",alignItems:"center"},r.text)}))):null}),Bpr=["className","children","requiredIndicator","optionalIndicator"],nv=vr(function(e,t){var r,n=Vp("FormLabel",e),o=vi(e);o.className;var a=o.children,i=o.requiredIndicator,s=i===void 0?m.createElement(jpr,null):i,l=o.optionalIndicator,u=l===void 0?null:l,c=P_(o,Bpr),d=ES(),f=(r=d==null?void 0:d.getLabelProps(c,t))!=null?r:si({ref:t},c);return m.createElement(Jt.label,si({},f,{className:nn("chakra-form__label",o.className),__css:si({display:"block",textAlign:"start"},n)}),a,d!=null&&d.isRequired?s:u)}),jpr=vr(function(e,t){var r=ES(),n=hi();if(!(r!=null&&r.isRequired))return null;var o=nn("chakra-form__required-indicator",e.className);return m.createElement(Jt.span,si({},r==null?void 0:r.getRequiredIndicatorProps(e,t),{__css:n.requiredIndicator,className:o}))});function ri(){return ri=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Wpr=["isIndeterminate","isChecked"];function qpr(e){var t=kU;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var f2e=qpr(Jt.svg),Upr=function(t){return m.createElement(f2e,ri({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},t),m.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},Kpr=function(t){return m.createElement(f2e,ri({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},t),m.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},Gpr=function(t){var r=t.open,n=t.children;return m.createElement(epr,{initial:!1},r&&m.createElement(kU.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},n))},Ypr=function(t){var r=t.isIndeterminate,n=t.isChecked,o=IU(t,Wpr),a=r?Kpr:Upr;return m.createElement(Gpr,{open:n||r},m.createElement(a,o))},Xpr=["defaultIsChecked","defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function Qpr(e){e===void 0&&(e={});var t=TU(e),r=t.isDisabled,n=t.isReadOnly,o=t.isRequired,a=t.isInvalid,i=t.id,s=t.onBlur,l=t.onFocus,u=t["aria-describedby"],c=e,d=c.defaultIsChecked,f=c.defaultChecked,p=f===void 0?d:f,h=c.isChecked,v=c.isFocusable,b=c.onChange,g=c.isIndeterminate,y=c.name,S=c.value,w=c.tabIndex,$=w===void 0?void 0:w,C=c["aria-label"],x=c["aria-labelledby"],E=c["aria-invalid"],_=IU(c,Xpr),k=XD(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),I=ca(b),N=ca(s),z=ca(l),O=yu(),A=O[0],M=O[1],L=yu(),j=L[0],H=L[1],B=yu(),F=B[0],V=B[1],D=m.useRef(null),P=m.useState(!0),R=P[0],W=P[1],U=m.useState(!!p),q=U[0],J=U[1],Z=tA(h,q),Q=Z[0],oe=Z[1];g_({condition:!!d,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var ie=m.useCallback(function(de){if(n||r){de.preventDefault();return}Q||J(oe?de.target.checked:g?!0:de.target.checked),I==null||I(de)},[n,r,oe,Q,g,I]);O$(function(){D.current&&(D.current.indeterminate=!!g)},[g]),b_(function(){r&&M.off()},[r,M]);var te=r&&!v,ae=m.useCallback(function(de){de.key===" "&&V.on()},[V]),fe=m.useCallback(function(de){de.key===" "&&V.off()},[V]);O$(function(){if(D.current){var de=D.current.checked!==oe;de&&J(D.current.checked)}},[D.current]);var ve=m.useCallback(function(de,ee){de===void 0&&(de={}),ee===void 0&&(ee=null);var me=function(je){je.preventDefault(),V.on()};return ri({},de,{ref:ee,"data-active":ur(F),"data-hover":ur(j),"data-checked":ur(oe),"data-focus":ur(A),"data-indeterminate":ur(g),"data-disabled":ur(r),"data-invalid":ur(a),"data-readonly":ur(n),"aria-hidden":!0,onMouseDown:Pr(de.onMouseDown,me),onMouseUp:Pr(de.onMouseUp,V.off),onMouseEnter:Pr(de.onMouseEnter,H.on),onMouseLeave:Pr(de.onMouseLeave,H.off)})},[F,oe,r,A,j,g,a,n,V,H.off,H.on]),Se=m.useCallback(function(de,ee){return de===void 0&&(de={}),ee===void 0&&(ee=null),ri({},k,de,{ref:zi(ee,function(me){me&&W(me.tagName==="LABEL")}),onClick:Pr(de.onClick,function(){if(!R){var me;(me=D.current)==null||me.click(),$1(D.current,{nextTick:!0})}}),"data-disabled":ur(r),"data-checked":ur(oe),"data-invalid":ur(a)})},[k,r,oe,a,R]),se=m.useCallback(function(de,ee){return de===void 0&&(de={}),ee===void 0&&(ee=null),ri({},de,{ref:zi(D,ee),type:"checkbox",name:y,value:S,id:i,tabIndex:$,onChange:Pr(de.onChange,ie),onBlur:Pr(de.onBlur,N,M.off),onFocus:Pr(de.onFocus,z,M.on),onKeyDown:Pr(de.onKeyDown,ae),onKeyUp:Pr(de.onKeyUp,fe),required:o,checked:oe,disabled:te,readOnly:n,"aria-label":C,"aria-labelledby":x,"aria-invalid":E?!!E:a,"aria-describedby":u,"aria-disabled":r,style:fA})},[y,S,i,ie,M.off,M.on,N,z,ae,fe,o,oe,te,n,C,x,E,a,u,r,$]),pe=m.useCallback(function(de,ee){return de===void 0&&(de={}),ee===void 0&&(ee=null),ri({},de,{ref:ee,onMouseDown:Pr(de.onMouseDown,tle),onTouchStart:Pr(de.onTouchStart,tle),"data-disabled":ur(r),"data-checked":ur(oe),"data-invalid":ur(a)})},[oe,r,a]),ge={isInvalid:a,isFocused:A,isChecked:oe,isActive:F,isHovered:j,isIndeterminate:g,isDisabled:r,isReadOnly:n,isRequired:o};return{state:ge,getRootProps:Se,getCheckboxProps:ve,getInputProps:se,getLabelProps:pe,htmlProps:k}}function tle(e){e.preventDefault(),e.stopPropagation()}var Zpr=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],Jpr=Jt("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),emr=Jt("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),p2e=vr(function(e,t){var r=Vpr(),n=ri({},r,e),o=Wl("Checkbox",n),a=vi(e),i=a.spacing,s=i===void 0?"0.5rem":i,l=a.className,u=a.children,c=a.iconColor,d=a.iconSize,f=a.icon,p=f===void 0?m.createElement(Ypr,null):f,h=a.isChecked,v=a.isDisabled,b=v===void 0?r==null?void 0:r.isDisabled:v,g=a.onChange,y=a.inputProps,S=IU(a,Zpr),w=h;r!=null&&r.value&&a.value&&(w=r.value.includes(a.value));var $=g;r!=null&&r.onChange&&a.value&&($=X$e(r.onChange,g));var C=Qpr(ri({},S,{isDisabled:b,isChecked:w,onChange:$})),x=C.state,E=C.getInputProps,_=C.getCheckboxProps,k=C.getLabelProps,I=C.getRootProps,N=m.useMemo(function(){return ri({opacity:x.isChecked||x.isIndeterminate?1:0,transform:x.isChecked||x.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:d,color:c},o.icon)},[c,d,x.isChecked,x.isIndeterminate,o.icon]),z=m.cloneElement(p,{__css:N,isIndeterminate:x.isIndeterminate,isChecked:x.isChecked});return m.createElement(emr,ri({__css:o.container,className:nn("chakra-checkbox",l)},I()),m.createElement("input",ri({className:"chakra-checkbox__input"},E(y,t))),m.createElement(Jpr,ri({__css:o.control,className:"chakra-checkbox__control"},_()),z),u&&m.createElement(Jt.span,ri({className:"chakra-checkbox__label"},k(),{__css:ri({marginStart:s},o.label)}),u))});function tmr(e){e===void 0&&(e={});var t=e,r=t.onChange,n=t.precision,o=t.defaultValue,a=t.value,i=t.step,s=i===void 0?1:i,l=t.min,u=l===void 0?Q$e:l,c=t.max,d=c===void 0?Z$e:c,f=t.keepWithinRange,p=f===void 0?!0:f,h=ca(r),v=m.useState(function(){var L;return o==null?"":(L=h3(o,s,n))!=null?L:""}),b=v[0],g=v[1],y=tA(a,b),S=y[0],w=y[1],$=m2e(Sm(w),s),C=n??$,x=m.useCallback(function(L){L!==w&&(S||g(L.toString()),h==null||h(L.toString(),Sm(L)))},[h,S,w]),E=m.useCallback(function(L){var j=L;return p&&(j=hy(j,u,d)),Gq(j,C)},[C,p,d,u]),_=m.useCallback(function(L){L===void 0&&(L=s);var j;w===""?j=Sm(L):j=Sm(w)+L,j=E(j),x(j)},[E,s,x,w]),k=m.useCallback(function(L){L===void 0&&(L=s);var j;w===""?j=Sm(-L):j=Sm(w)-L,j=E(j),x(j)},[E,s,x,w]),I=m.useCallback(function(){var L;if(o==null)L="";else{var j;L=(j=h3(o,s,n))!=null?j:u}x(L)},[o,n,s,x,u]),N=m.useCallback(function(L){var j,H=(j=h3(L,s,C))!=null?j:u;x(H)},[C,s,x,u]),z=Sm(w),O=z>d||z=0)&&(r[o]=e[o]);return r}var rmr=["htmlSize"],RU=vr(function(e,t){var r=e.htmlSize,n=T_(e,rmr),o=Wl("Input",n),a=vi(n),i=PU(a),s=nn("chakra-input",e.className);return m.createElement(Jt.input,Bc({size:r},i,{__css:o.field,ref:t,className:s}))});RU.id="Input";var nmr=["placement"],omr={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},amr=Jt("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),h2e=vr(function(e,t){var r,n=e.placement,o=n===void 0?"left":n,a=T_(e,nmr),i=(r=omr[o])!=null?r:{},s=hi();return m.createElement(amr,Bc({ref:t},a,{__css:Bc({},s.addon,i)}))}),imr=vr(function(e,t){return m.createElement(h2e,Bc({ref:t,placement:"left"},e,{className:nn("chakra-input__left-addon",e.className)}))});imr.id="InputLeftAddon";var smr=vr(function(e,t){return m.createElement(h2e,Bc({ref:t,placement:"right"},e,{className:nn("chakra-input__right-addon",e.className)}))});smr.id="InputRightAddon";var lmr=["placement"],umr=["className"],cmr=["className"],dmr=Jt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),FU=vr(function(e,t){var r,n,o,a=e.placement,i=a===void 0?"left":a,s=T_(e,lmr),l=hi(),u=l.field,c=i==="left"?"insetStart":"insetEnd",d=Bc((o={},o[c]="0",o.width=(r=u==null?void 0:u.height)!=null?r:u==null?void 0:u.h,o.height=(n=u==null?void 0:u.height)!=null?n:u==null?void 0:u.h,o.fontSize=u==null?void 0:u.fontSize,o),l.element);return m.createElement(dmr,Bc({ref:t,__css:d},s))});FU.id="InputElement";var fmr=vr(function(e,t){var r=e.className,n=T_(e,umr),o=nn("chakra-input__left-element",r);return m.createElement(FU,Bc({ref:t,placement:"left",className:o},n))});fmr.id="InputLeftElement";var pmr=vr(function(e,t){var r=e.className,n=T_(e,cmr),o=nn("chakra-input__right-element",r);return m.createElement(FU,Bc({ref:t,placement:"right",className:o},n))});pmr.id="InputRightElement";function Ui(){return Ui=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Nn=Jt("div");Jt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});var mmr=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],hmr=["className","orientation","__css"],v2e=vr(function(e,t){var r=Vp("Divider",e),n=r.borderLeftWidth,o=r.borderBottomWidth,a=r.borderTopWidth,i=r.borderRightWidth,s=r.borderWidth,l=r.borderStyle,u=r.borderColor,c=Mh(r,mmr),d=vi(e),f=d.className,p=d.orientation,h=p===void 0?"horizontal":p,v=d.__css,b=Mh(d,hmr),g={vertical:{borderLeftWidth:n||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}};return m.createElement(Jt.hr,Ui({ref:t,"aria-orientation":h},b,{__css:Ui({},c,{border:"0",borderColor:u,borderStyle:l},g[h],v),className:nn("chakra-divider",f)}))}),vmr=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],gmr=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],OU=vr(function(e,t){var r=e.area,n=e.templateAreas,o=e.gap,a=e.rowGap,i=e.columnGap,s=e.column,l=e.row,u=e.autoFlow,c=e.autoRows,d=e.templateRows,f=e.autoColumns,p=e.templateColumns,h=Mh(e,vmr),v={display:"grid",gridArea:r,gridTemplateAreas:n,gridGap:o,gridRowGap:a,gridColumnGap:i,gridAutoColumns:f,gridColumn:s,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return m.createElement(Jt.div,Ui({ref:t,__css:v},h))});function rle(e){return Yq(e,function(t){return t==="auto"?"auto":"span "+t+"/span "+t})}var bg=vr(function(e,t){var r=e.area,n=e.colSpan,o=e.colStart,a=e.colEnd,i=e.rowEnd,s=e.rowSpan,l=e.rowStart,u=Mh(e,gmr),c=ZD({gridArea:r,gridColumn:rle(n),gridRow:rle(s),gridColumnStart:o,gridColumnEnd:a,gridRowStart:l,gridRowEnd:i});return m.createElement(Jt.div,Ui({ref:t,__css:c},u))}),bmr=["className"],ymr=vr(function(e,t){var r=Vp("Heading",e),n=vi(e);n.className;var o=Mh(n,bmr);return m.createElement(Jt.h2,Ui({ref:t,className:nn("chakra-heading",e.className)},o,{__css:r}))}),Smr=["children","styleType","stylePosition","spacing"],g2e=Zs({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),wmr=g2e[0],b2e=g2e[1],y2e=vr(function(e,t){var r,n=Wl("List",e),o=vi(e),a=o.children,i=o.styleType,s=i===void 0?"none":i,l=o.stylePosition,u=o.spacing,c=Mh(o,Smr),d=oEe(a),f="& > *:not(style) ~ *:not(style)",p=u?(r={},r[f]={mt:u},r):{};return m.createElement(wmr,{value:n},m.createElement(Jt.ul,Ui({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:Ui({},n.container,p)},c),d))}),S2e=vr(function(e,t){var r=b2e();return m.createElement(Jt.li,Ui({ref:t},e,{__css:r.item}))}),Cmr=vr(function(e,t){var r=b2e();return m.createElement(Qd,Ui({ref:t,role:"presentation"},e,{__css:r.icon}))});Jt("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});var d8="& > *:not(style) ~ *:not(style)";function xmr(e){var t,r=e.spacing,n=e.direction,o={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return t={flexDirection:n},t[d8]=Yq(n,function(a){return o[a]}),t}function $mr(e){var t=e.spacing,r=e.direction,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Yq(r,function(o){return n[o]})}}var Emr=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],_mr=function(t){return m.createElement(Jt.div,Ui({className:"chakra-stack__item"},t,{__css:Ui({display:"inline-block",flex:"0 0 auto",minWidth:0},t.__css)}))},NU=vr(function(e,t){var r,n=e.isInline,o=e.direction,a=e.align,i=e.justify,s=e.spacing,l=s===void 0?"0.5rem":s,u=e.wrap,c=e.children,d=e.divider,f=e.className,p=e.shouldWrapChildren,h=Mh(e,Emr),v=n?"row":o??"column",b=m.useMemo(function(){return xmr({direction:v,spacing:l})},[v,l]),g=m.useMemo(function(){return $mr({spacing:l,direction:v})},[l,v]),y=!!d,S=!p&&!y,w=oEe(c),$=S?w:w.map(function(x,E){var _=typeof x.key<"u"?x.key:E,k=E+1===w.length,I=m.createElement(_mr,{key:_},x),N=p?I:x;if(!y)return N;var z=m.cloneElement(d,{__css:g}),O=k?null:z;return m.createElement(m.Fragment,{key:_},N,O)}),C=nn("chakra-stack",f);return m.createElement(Jt.div,Ui({ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:b.flexDirection,flexWrap:u,className:C,__css:y?{}:(r={},r[d8]=b[d8],r)},h),$)}),kmr=vr(function(e,t){return m.createElement(NU,Ui({align:"center"},e,{direction:"row",ref:t}))}),Pmr=["className","align","decoration","casing"],pA=vr(function(e,t){var r=Vp("Text",e),n=vi(e);n.className,n.align,n.decoration,n.casing;var o=Mh(n,Pmr),a=ZD({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return m.createElement(Jt.p,Ui({ref:t,className:nn("chakra-text",e.className)},a,o,{__css:r}))});function XR(){return XR=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Imr(){var e=m.useRef(new Map),t=e.current,r=m.useCallback(function(o,a,i,s){e.current.set(i,{type:a,el:o,options:s}),o.addEventListener(a,i,s)},[]),n=m.useCallback(function(o,a,i,s){o.removeEventListener(a,i,s),e.current.delete(i)},[]);return m.useEffect(function(){return function(){t.forEach(function(o,a){n(o.el,o.type,a,o.options)})}},[n,t]),{add:r,remove:n}}var Rmr=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function v3(e){var t=e.target,r=t.tagName,n=t.isContentEditable;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function Fmr(e){e===void 0&&(e={});var t=e,r=t.ref,n=t.isDisabled,o=t.isFocusable,a=t.clickOnEnter,i=a===void 0?!0:a,s=t.clickOnSpace,l=s===void 0?!0:s,u=t.onMouseDown,c=t.onMouseUp,d=t.onClick,f=t.onKeyDown,p=t.onKeyUp,h=t.tabIndex,v=t.onMouseOver,b=t.onMouseLeave,g=Tmr(t,Rmr),y=m.useState(!0),S=y[0],w=y[1],$=m.useState(!1),C=$[0],x=$[1],E=Imr(),_=function(D){D&&D.tagName!=="BUTTON"&&w(!1)},k=S?h:h||0,I=n&&!o,N=m.useCallback(function(V){if(n){V.stopPropagation(),V.preventDefault();return}var D=V.currentTarget;D.focus(),d==null||d(V)},[n,d]),z=m.useCallback(function(V){C&&v3(V)&&(V.preventDefault(),V.stopPropagation(),x(!1),E.remove(document,"keyup",z,!1))},[C,E]),O=m.useCallback(function(V){if(f==null||f(V),!(n||V.defaultPrevented||V.metaKey)&&!(!v3(V.nativeEvent)||S)){var D=i&&V.key==="Enter",P=l&&V.key===" ";if(P&&(V.preventDefault(),x(!0)),D){V.preventDefault();var R=V.currentTarget;R.click()}E.add(document,"keyup",z,!1)}},[n,S,f,i,l,E,z]),A=m.useCallback(function(V){if(p==null||p(V),!(n||V.defaultPrevented||V.metaKey)&&!(!v3(V.nativeEvent)||S)){var D=l&&V.key===" ";if(D){V.preventDefault(),x(!1);var P=V.currentTarget;P.click()}}},[l,S,n,p]),M=m.useCallback(function(V){V.button===0&&(x(!1),E.remove(document,"mouseup",M,!1))},[E]),L=m.useCallback(function(V){if(!hie(V)){if(n){V.stopPropagation(),V.preventDefault();return}S||x(!0);var D=V.currentTarget;D.focus({preventScroll:!0}),E.add(document,"mouseup",M,!1),u==null||u(V)}},[n,S,u,E,M]),j=m.useCallback(function(V){hie(V)||(S||x(!1),c==null||c(V))},[c,S]),H=m.useCallback(function(V){if(n){V.preventDefault();return}v==null||v(V)},[n,v]),B=m.useCallback(function(V){C&&(V.preventDefault(),x(!1)),b==null||b(V)},[C,b]),F=zi(r,_);return S?XR({},g,{ref:F,type:"button","aria-disabled":I?void 0:n,disabled:I,onClick:N,onMouseDown:u,onMouseUp:c,onKeyUp:p,onKeyDown:f,onMouseOver:v,onMouseLeave:b}):XR({},g,{ref:F,role:"button","data-active":ur(C),"aria-disabled":n?"true":void 0,tabIndex:I?void 0:k,onClick:N,onMouseDown:L,onMouseUp:j,onKeyUp:A,onKeyDown:O,onMouseOver:H,onMouseLeave:B})}function wp(){return wp=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Omr=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],Nmr=["type","isChecked"],Dmr=ipr(),Amr=Dmr[3],Mmr=Zs({strict:!1,name:"MenuContext"}),Bmr=Mmr[1];function jmr(e){var t;return qq(e)&&!!((t=e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function Lmr(e,t){e===void 0&&(e={}),t===void 0&&(t=null);var r=e,n=r.onMouseEnter,o=r.onMouseMove,a=r.onMouseLeave,i=r.onClick,s=r.isDisabled,l=r.isFocusable,u=r.closeOnSelect,c=r.type,d=I_(r,Omr),f=Bmr(),p=f.setFocusedIndex,h=f.focusedIndex,v=f.closeOnSelect,b=f.onClose,g=f.menuRef,y=f.isOpen,S=f.menuId,w=m.useRef(null),$=S+"-menuitem-"+$S(),C=Amr({disabled:s&&!l}),x=C.index,E=C.register,_=m.useCallback(function(M){n==null||n(M),!s&&p(x)},[p,x,s,n]),k=m.useCallback(function(M){o==null||o(M),w.current&&!Rz(w.current)&&_(M)},[_,o]),I=m.useCallback(function(M){a==null||a(M),!s&&p(-1)},[p,s,a]),N=m.useCallback(function(M){i==null||i(M),jmr(M.currentTarget)&&(u??v)&&b()},[b,i,v,u]),z=x===h,O=s&&!l;b_(function(){y&&(z&&!O&&w.current?$1(w.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):g.current&&!Rz(g.current)&&$1(g.current,{preventScroll:!1}))},[z,O,g,y]);var A=Fmr({onClick:N,onMouseEnter:_,onMouseMove:k,onMouseLeave:I,ref:zi(E,w,t),isDisabled:s,isFocusable:l});return wp({},d,A,{type:c??A.type,id:$,role:"menuitem",tabIndex:z?0:-1})}function zmr(e,t){e===void 0&&(e={}),t===void 0&&(t=null);var r=e,n=r.type,o=n===void 0?"radio":n,a=r.isChecked,i=I_(r,Nmr),s=Lmr(i,t);return wp({},s,{role:"menuitem"+o,"aria-checked":a})}var Vmr=["type"],Hmr=["icon","iconSpacing"],Wmr=["className","children"];function qmr(e){var t=kU;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}qmr(Jt.div);var Umr=vr(function(e,t){var r=e.type,n=I_(e,Vmr),o=hi(),a=n.as||r?r??void 0:"button",i=m.useMemo(function(){return wp({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item)},[o.item]);return m.createElement(Jt.button,wp({ref:t,type:a},n,{__css:i}))}),Kmr=function(t){return m.createElement("svg",wp({viewBox:"0 0 14 14",width:"1em",height:"1em"},t),m.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},Gmr=vr(function(e,t){var r=e.icon,n=e.iconSpacing,o=n===void 0?"0.75rem":n,a=I_(e,Hmr),i=zmr(a,t);return m.createElement(Umr,wp({},i,{className:nn("chakra-menu__menuitem-option",a.className)}),r!==null&&m.createElement(w2e,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},r||m.createElement(Kmr,null)),m.createElement("span",{style:{flex:1}},i.children))});Gmr.id="MenuItemOption";var w2e=function(t){var r=t.className,n=t.children,o=I_(t,Wmr),a=m.Children.only(n),i=m.isValidElement(a)?m.cloneElement(a,{focusable:"false","aria-hidden":!0,className:nn("chakra-menu__icon",a.props.className)}):null,s=nn("chakra-menu__icon-wrapper",r);return m.createElement(Jt.span,wp({className:s},o,{__css:{flexShrink:0}}),i)};function ys(){return ys=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Ymr=function(t){return m.createElement(Qd,ys({viewBox:"0 0 24 24"},t),m.createElement("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"}))},Xmr=function(t){return m.createElement(Qd,ys({viewBox:"0 0 24 24"},t),m.createElement("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"}))};function nle(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ole(e,t,r,n){m.useEffect(function(){if(!(!e.current||!n)){var o=her(e.current),a=Array.isArray(t)?t:[t],i=new o.MutationObserver(function(s){for(var l=Zmr(s),u;!(u=l()).done;){var c=u.value;c.type==="attributes"&&c.attributeName&&a.includes(c.attributeName)&&r(c)}});return i.observe(e.current,{attributes:!0,attributeFilter:a}),function(){return i.disconnect()}}})}var Jmr=50,ale=300;function ehr(e,t){var r=m.useState(!1),n=r[0],o=r[1],a=m.useState(null),i=a[0],s=a[1],l=m.useState(!0),u=l[0],c=l[1],d=m.useRef(null),f=function(){return clearTimeout(d.current)};Zer(function(){i==="increment"&&e(),i==="decrement"&&t()},n?Jmr:null);var p=m.useCallback(function(){u&&e(),d.current=setTimeout(function(){c(!1),o(!0),s("increment")},ale)},[e,u]),h=m.useCallback(function(){u&&t(),d.current=setTimeout(function(){c(!1),o(!0),s("decrement")},ale)},[t,u]),v=m.useCallback(function(){c(!0),o(!1),f()},[]);return sEe(f),{up:p,down:h,stop:v,isSpinning:n}}var thr=["focusInputOnChange","clampValueOnBlur","keepWithinRange","min","max","step","isReadOnly","isDisabled","isRequired","isInvalid","pattern","inputMode","allowMouseWheel","id","onChange","precision","name","aria-describedby","aria-label","aria-labelledby","onFocus","onBlur","onInvalid","getAriaValueText","isValidCharacter","format","parse"],rhr=/^[Ee0-9+\-.]$/;function nhr(e){return rhr.test(e)}function ohr(e,t){if(e.key==null)return!0;var r=e.ctrlKey||e.altKey||e.metaKey,n=e.key.length===1;return!n||r?!0:t(e.key)}function ahr(e){e===void 0&&(e={});var t=e,r=t.focusInputOnChange,n=r===void 0?!0:r,o=t.clampValueOnBlur,a=o===void 0?!0:o,i=t.keepWithinRange,s=i===void 0?!0:i,l=t.min,u=l===void 0?Q$e:l,c=t.max,d=c===void 0?Z$e:c,f=t.step,p=f===void 0?1:f,h=t.isReadOnly,v=t.isDisabled,b=t.isRequired,g=t.isInvalid,y=t.pattern,S=y===void 0?"[0-9]*(.[0-9]+)?":y,w=t.inputMode,$=w===void 0?"decimal":w,C=t.allowMouseWheel,x=t.id;t.onChange,t.precision;var E=t.name,_=t["aria-describedby"],k=t["aria-label"],I=t["aria-labelledby"],N=t.onFocus,z=t.onBlur,O=t.onInvalid,A=t.getAriaValueText,M=t.isValidCharacter,L=t.format,j=t.parse,H=C2e(t,thr),B=ca(N),F=ca(z),V=ca(O),D=ca(M??nhr),P=ca(A),R=tmr(e),W=R.update,U=R.increment,q=R.decrement,J=yu(),Z=J[0],Q=J[1],oe=!(h||v),ie=m.useRef(null),te=m.useRef(null),ae=m.useRef(null),fe=m.useRef(null),ve=m.useCallback(function(Ie){return Ie.split("").filter(D).join("")},[D]),Se=m.useCallback(function(Ie){var Fe;return(Fe=j==null?void 0:j(Ie))!=null?Fe:Ie},[j]),se=m.useCallback(function(Ie){var Fe;return((Fe=L==null?void 0:L(Ie))!=null?Fe:Ie).toString()},[L]);b_(function(){(R.valueAsNumber>d||R.valueAsNumberd&&(Ie=d),R.cast(Ie))},[R,d,u]),$e=m.useCallback(function(){Q.off(),a&&Le()},[a,Q,Le]),Je=m.useCallback(function(){n&&$1(ie.current,{nextTick:!0})},[n]),Pe=m.useCallback(function(Ie){Ie.preventDefault(),de.up(),Je()},[Je,de]),st=m.useCallback(function(Ie){Ie.preventDefault(),de.down(),Je()},[Je,de]);aEe("wheel",function(Ie){var Fe=eA(ie.current),vt=Fe.activeElement===ie.current;if(!(!C||!vt)){Ie.preventDefault();var bt=je(Ie)*p,wt=Math.sign(Ie.deltaY);wt===-1?pe(bt):wt===1&&ge(bt)}},ie.current,{passive:!1});var _e=m.useCallback(function(Ie,Fe){Ie===void 0&&(Ie={}),Fe===void 0&&(Fe=null);var vt=v||s&&R.isAtMax;return ys({},Ie,{ref:zi(Fe,ae),role:"button",tabIndex:-1,onPointerDown:Pr(Ie.onPointerDown,function(bt){vt||Pe(bt)}),onPointerLeave:Pr(Ie.onPointerLeave,de.stop),onPointerUp:Pr(Ie.onPointerUp,de.stop),disabled:vt,"aria-disabled":bs(vt)})},[R.isAtMax,s,Pe,de.stop,v]),De=m.useCallback(function(Ie,Fe){Ie===void 0&&(Ie={}),Fe===void 0&&(Fe=null);var vt=v||s&&R.isAtMin;return ys({},Ie,{ref:zi(Fe,fe),role:"button",tabIndex:-1,onPointerDown:Pr(Ie.onPointerDown,function(bt){vt||st(bt)}),onPointerLeave:Pr(Ie.onPointerLeave,de.stop),onPointerUp:Pr(Ie.onPointerUp,de.stop),disabled:vt,"aria-disabled":bs(vt)})},[R.isAtMin,s,st,de.stop,v]),et=m.useCallback(function(Ie,Fe){var vt,bt,wt,mt;return Ie===void 0&&(Ie={}),Fe===void 0&&(Fe=null),ys({name:E,inputMode:$,type:"text",pattern:S,"aria-labelledby":I,"aria-label":k,"aria-describedby":_,id:x,disabled:v},Ie,{readOnly:(vt=Ie.readOnly)!=null?vt:h,"aria-readonly":(bt=Ie.readOnly)!=null?bt:h,"aria-required":(wt=Ie.required)!=null?wt:b,required:(mt=Ie.required)!=null?mt:b,ref:zi(ie,Fe),value:se(R.value),role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":Number.isNaN(R.valueAsNumber)?void 0:R.valueAsNumber,"aria-invalid":bs(g??R.isOutOfRange),"aria-valuetext":ze,autoComplete:"off",autoCorrect:"off",onChange:Pr(Ie.onChange,ee),onKeyDown:Pr(Ie.onKeyDown,Re),onFocus:Pr(Ie.onFocus,me,Q.on),onBlur:Pr(Ie.onBlur,F,$e)})},[E,$,S,I,k,se,_,x,v,b,h,g,R.value,R.valueAsNumber,R.isOutOfRange,u,d,ze,ee,Re,me,Q.on,F,$e]);return{value:se(R.value),valueAsNumber:R.valueAsNumber,isFocused:Z,isDisabled:v,isReadOnly:h,getIncrementButtonProps:_e,getDecrementButtonProps:De,getInputProps:et,htmlProps:H}}var ihr=["htmlProps"],x2e=Zs({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),shr=x2e[0],DU=x2e[1],lhr=vr(function(e,t){var r=Wl("NumberInput",e),n=vi(e),o=TU(n),a=ahr(o),i=a.htmlProps,s=C2e(a,ihr),l=m.useMemo(function(){return s},[s]);return m.createElement(shr,{value:l},m.createElement(rv,{value:r},m.createElement(Jt.div,ys({},i,{ref:t,className:nn("chakra-numberinput",e.className),__css:ys({position:"relative",zIndex:0},r.root)}))))}),uhr=vr(function(e,t){var r=hi();return m.createElement(Jt.div,ys({"aria-hidden":!0,ref:t},e,{__css:ys({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},r.stepperGroup)}))}),chr=vr(function(e,t){var r=DU(),n=r.getInputProps,o=n(e,t),a=hi();return m.createElement(Jt.input,ys({},o,{className:nn("chakra-numberinput__field",e.className),__css:ys({width:"100%"},a.field)}))}),$2e=Jt("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),dhr=vr(function(e,t){var r,n=hi(),o=DU(),a=o.getDecrementButtonProps,i=a(e,t);return m.createElement($2e,ys({},i,{__css:n.stepper}),(r=e.children)!=null?r:m.createElement(Ymr,null))}),fhr=vr(function(e,t){var r,n=DU(),o=n.getIncrementButtonProps,a=o(e,t),i=hi();return m.createElement($2e,ys({},a,{__css:i.stepper}),(r=e.children)!=null?r:m.createElement(Xmr,null))});function mA(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Ma(){return Ma=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Chr(e){return{root:"slider-root-"+e,getThumb:function(r){return"slider-thumb-"+e+"-"+r},getInput:function(r){return"slider-input-"+e+"-"+r},track:"slider-track-"+e,innerTrack:"slider-filled-track-"+e,getMarker:function(r){return"slider-marker-"+e+"-"+r},output:"slider-output-"+e}}function Zw(e){var t=e.orientation,r=e.vertical,n=e.horizontal;return t==="vertical"?r:n}var sle={width:0,height:0};function k2e(e){var t=e.orientation,r=e.thumbPercents,n=e.thumbRects,o=e.isReversed,a=function(b){return Hr({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none"},Zw({orientation:t,vertical:{bottom:"calc("+r[b]+"% - "+n[b].height/2+"px)"},horizontal:{left:"calc("+r[b]+"% - "+n[b].width/2+"px)"}}))},i=t==="vertical"?n.reduce(function(v,b){return v.height>b.height?v:b},sle):n.reduce(function(v,b){return v.width>b.width?v:b},sle),s=Hr({position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},Zw({orientation:t,vertical:{paddingLeft:i.width/2,paddingRight:i.width/2},horizontal:{paddingTop:i.height/2,paddingBottom:i.height/2}})),l=Hr({position:"absolute"},Zw({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})),u=r.length===1,c=[0,o?100-r[0]:r[0]],d=u?c:r,f=d[0];!u&&o&&(f=100-f);var p=Math.abs(d[d.length-1]-d[0]),h=Hr({},l,Zw({orientation:t,vertical:o?{height:p+"%",top:f+"%"}:{height:p+"%",bottom:f+"%"},horizontal:o?{width:p+"%",right:f+"%"}:{width:p+"%",left:f+"%"}}));return{trackStyle:l,innerTrackStyle:h,rootStyle:s,getThumbStyle:a}}function P2e(e){var t=e.isReversed,r=e.direction,n=e.orientation;return r==="ltr"||n==="vertical"?t:!t}var xhr=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange","minStepsBetweenThumbs"],$hr=["index"],Ehr=["value"],_hr=["index"];function khr(e){var t=e.min,r=t===void 0?0:t,n=e.max,o=n===void 0?100:n,a=e.onChange,i=e.value,s=e.defaultValue,l=e.isReversed,u=e.direction,c=u===void 0?"ltr":u,d=e.orientation,f=d===void 0?"horizontal":d,p=e.id,h=e.isDisabled,v=e.isReadOnly,b=e.onChangeStart,g=e.onChangeEnd,y=e.step,S=y===void 0?1:y,w=e.getAriaValueText,$=e["aria-valuetext"],C=e["aria-label"],x=e["aria-labelledby"],E=e.name,_=e.focusThumbOnChange,k=_===void 0?!0:_,I=e.minStepsBetweenThumbs,N=I===void 0?0:I,z=rg(e,xhr),O=ca(b),A=ca(g),M=ca(w),L=P2e({isReversed:l,direction:c,orientation:f}),j=Xq({value:i,defaultValue:s??[25,75],onChange:a}),H=j[0],B=j[1];if(!Array.isArray(H))throw new TypeError("[range-slider] You passed an invalid value for `value` or `defaultValue`, expected `Array` but got `"+typeof H+"`");var F=yu(),V=F[0],D=F[1],P=yu(),R=P[0],W=P[1],U=m.useState(-1),q=U[0],J=U[1],Z=m.useRef(null),Q=!(h||v),oe=m.useRef(H),ie=H.map(function(Ve){return hy(Ve,r,o)}),te=lEe(ie),ae=N*S,fe=Phr(ie,r,o,ae),ve=ie.map(function(Ve){return o-Ve+r}),Se=L?ve:ie,se=Se.map(function(Ve){return OR(Ve,r,o)}),pe=f==="vertical",ge=m.useState(Array.from({length:ie.length}).map(function(){return{width:0,height:0}})),de=ge[0],ee=ge[1];m.useEffect(function(){var Ve;if(Re.current){var Qe=Array.from((Ve=Re.current)==null?void 0:Ve.querySelectorAll("[role=slider]")),he=Qe.map(function(ye){return{width:ye.offsetWidth,height:ye.offsetHeight}});he.length&&ee(he)}},[]);var me=m.useRef(null),Re=m.useRef(null),je=$S(p),ze=Chr(je),Le=m.useCallback(function(Ve){var Qe,he;if(me.current){Z.current="pointer";var ye=me.current.getBoundingClientRect(),Ee=(Qe=(he=Ve.touches)==null?void 0:he[0])!=null?Qe:Ve,rt=Ee.clientX,re=Ee.clientY,X=pe?ye.bottom-re:rt-ye.left,ne=pe?ye.height:ye.width,we=X/ne;return L&&(we=1-we),J$e(we,r,o)}},[pe,L,o,r]),$e=(o-r)/10,Je=S||(o-r)/100,Pe=m.useMemo(function(){return{setValueAtIndex:function(Qe,he){if(Q){var ye=fe[Qe];he=parseFloat(Nz(he,ye.min,Je)),he=hy(he,ye.min,ye.max);var Ee=[].concat(ie);Ee[Qe]=he,B(Ee)}},setActiveIndex:J,stepUp:function(Qe,he){he===void 0&&(he=Je);var ye=ie[Qe],Ee=L?ye-he:ye+he;Pe.setValueAtIndex(Qe,Ee)},stepDown:function(Qe,he){he===void 0&&(he=Je);var ye=ie[Qe],Ee=L?ye+he:ye-he;Pe.setValueAtIndex(Qe,Ee)},reset:function(){return B(oe.current)}}},[Je,ie,L,B,Q,fe]),st=m.useCallback(function(Ve){var Qe=Kq(Ve),he={ArrowRight:function(){return Pe.stepUp(q)},ArrowUp:function(){return Pe.stepUp(q)},ArrowLeft:function(){return Pe.stepDown(q)},ArrowDown:function(){return Pe.stepDown(q)},PageUp:function(){return Pe.stepUp(q,$e)},PageDown:function(){return Pe.stepDown(q,$e)},Home:function(){var rt=fe[q].min;Pe.setValueAtIndex(q,rt)},End:function(){var rt=fe[q].max;Pe.setValueAtIndex(q,rt)}},ye=he[Qe];ye&&(Ve.preventDefault(),Ve.stopPropagation(),ye(Ve),Z.current="keyboard")},[Pe,q,$e,fe]),_e=m.useMemo(function(){return k2e({isReversed:L,orientation:f,thumbRects:de,thumbPercents:se})},[L,f,se,de]),De=_e.getThumbStyle,et=_e.rootStyle,Ie=_e.trackStyle,Fe=_e.innerTrackStyle,vt=m.useCallback(function(Ve){var Qe=Ve??q;if(Qe!==-1&&k){var he,ye=ze.getThumb(Qe),Ee=(he=Re.current)==null?void 0:he.ownerDocument.getElementById(ye);Ee&&setTimeout(function(){return $1(Ee)})}},[k,q,ze]);b_(function(){Z.current==="keyboard"&&(A==null||A(te.current))},[ie,A]);var bt=function(Qe){var he=Le(Qe)||0,ye=ie.map(function(ne){return Math.abs(ne-he)}),Ee=Math.min.apply(Math,ye),rt=ye.indexOf(Ee),re=ye.filter(function(ne){return ne===Ee}),X=re.length>1;X&&he>ie[rt]&&(rt=rt+re.length-1),J(rt),Pe.setValueAtIndex(rt,he),vt(rt)},wt=function(Qe){if(q!=-1){var he=Le(Qe)||0;J(q),Pe.setValueAtIndex(q,he),vt(q)}};uEe(Re,{onPanSessionStart:function(Qe){Q&&(D.on(),bt(Qe),O==null||O(te.current))},onPanSessionEnd:function(){Q&&(D.off(),A==null||A(te.current))},onPan:function(Qe){Q&&wt(Qe)}});var mt=m.useCallback(function(Ve,Qe){return Ve===void 0&&(Ve={}),Qe===void 0&&(Qe=null),Hr({},Ve,z,{id:ze.root,ref:zi(Qe,Re),tabIndex:-1,"aria-disabled":bs(h),"data-focused":ur(R),style:Hr({},Ve.style,et)})},[z,h,R,et,ze]),xe=m.useCallback(function(Ve,Qe){return Ve===void 0&&(Ve={}),Qe===void 0&&(Qe=null),Hr({},Ve,{ref:zi(Qe,me),id:ze.track,"data-disabled":ur(h),style:Hr({},Ve.style,Ie)})},[h,Ie,ze]),Ae=m.useCallback(function(Ve,Qe){return Ve===void 0&&(Ve={}),Qe===void 0&&(Qe=null),Hr({},Ve,{ref:Qe,id:ze.innerTrack,style:Hr({},Ve.style,Fe)})},[Fe,ze]),He=m.useCallback(function(Ve,Qe){var he;Qe===void 0&&(Qe=null);var ye=Ve.index,Ee=rg(Ve,$hr),rt=ie[ye];if(rt==null)throw new TypeError("[range-slider > thumb] Cannot find value at index `"+ye+"`. The `value` or `defaultValue` length is : "+ie.length);var re=fe[ye];return Hr({},Ee,{ref:Qe,role:"slider",tabIndex:Q?0:void 0,id:ze.getThumb(ye),"data-active":ur(V&&q===ye),"aria-valuetext":(he=M==null?void 0:M(rt))!=null?he:$==null?void 0:$[ye],"aria-valuemin":re.min,"aria-valuemax":re.max,"aria-valuenow":rt,"aria-orientation":f,"aria-disabled":bs(h),"aria-readonly":bs(v),"aria-label":C==null?void 0:C[ye],"aria-labelledby":C!=null&&C[ye]||x==null?void 0:x[ye],style:Hr({},Ve.style,De(ye)),onKeyDown:Pr(Ve.onKeyDown,st),onFocus:Pr(Ve.onFocus,function(){W.on(),J(ye)}),onBlur:Pr(Ve.onBlur,function(){W.off(),J(-1)})})},[ze,ie,fe,Q,V,q,M,$,f,h,v,C,x,De,st,W]),Ge=m.useCallback(function(Ve,Qe){return Ve===void 0&&(Ve={}),Qe===void 0&&(Qe=null),Hr({},Ve,{ref:Qe,id:ze.output,htmlFor:ie.map(function(he,ye){return ze.getThumb(ye)}).join(" "),"aria-live":"off"})},[ze,ie]),ot=m.useCallback(function(Ve,Qe){Ve===void 0&&(Ve={}),Qe===void 0&&(Qe=null);var he=Ve,ye=he.value,Ee=rg(he,Ehr),rt=!(yeo),re=ye>=ie[0]&&ye<=ie[ie.length-1],X=OR(ye,r,o);X=L?100-X:X;var ne=Hr({position:"absolute",pointerEvents:"none"},Zw({orientation:f,vertical:{bottom:X+"%"},horizontal:{left:X+"%"}}));return Hr({},Ee,{ref:Qe,id:ze.getMarker(Ve.value),role:"presentation","aria-hidden":!0,"data-disabled":ur(h),"data-invalid":ur(!rt),"data-highlighted":ur(re),style:Hr({},Ve.style,ne)})},[h,L,o,r,f,ie,ze]),at=m.useCallback(function(Ve,Qe){Qe===void 0&&(Qe=null);var he=Ve.index,ye=rg(Ve,_hr);return Hr({},ye,{ref:Qe,id:ze.getInput(he),type:"hidden",value:ie[he],name:Array.isArray(E)?E[he]:E+"-"+he})},[E,ie,ze]);return{state:{value:ie,isFocused:R,isDragging:V,getThumbPercent:function(Qe){return se[Qe]},getThumbMinValue:function(Qe){return fe[Qe].min},getThumbMaxValue:function(Qe){return fe[Qe].max}},actions:Pe,getRootProps:mt,getTrackProps:xe,getInnerTrackProps:Ae,getThumbProps:He,getMarkerProps:ot,getInputProps:at,getOutputProps:Ge}}var Phr=function(t,r,n,o){return t.map(function(a,i){var s=i===0?r:t[i-1]+o,l=i===t.length-1?n:t[i+1]-o;return{min:s,max:l}})},Thr=["getRootProps"],Ihr=Zs({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within "}),Rhr=Ihr[0],Fhr=vr(function(e,t){var r=Wl("Slider",e),n=vi(e),o=y_(),a=o.direction;n.direction=a;var i=khr(n),s=i.getRootProps,l=rg(i,Thr),u=m.useMemo(function(){return Hr({},l,{name:e.name})},[l,e.name]);return m.createElement(Rhr,{value:u},m.createElement(rv,{value:r},m.createElement(Jt.div,Hr({},s({},t),{className:"chakra-slider",__css:r.container}),e.children)))});Fhr.defaultProps={orientation:"horizontal"};var Ohr=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"];function Nhr(e){var t,r=e.min,n=r===void 0?0:r,o=e.max,a=o===void 0?100:o,i=e.onChange,s=e.value,l=e.defaultValue,u=e.isReversed,c=e.direction,d=c===void 0?"ltr":c,f=e.orientation,p=f===void 0?"horizontal":f,h=e.id,v=e.isDisabled,b=e.isReadOnly,g=e.onChangeStart,y=e.onChangeEnd,S=e.step,w=S===void 0?1:S,$=e.getAriaValueText,C=e["aria-valuetext"],x=e["aria-label"],E=e["aria-labelledby"],_=e.name,k=e.focusThumbOnChange,I=k===void 0?!0:k,N=rg(e,Ohr),z=ca(g),O=ca(y),A=ca($),M=P2e({isReversed:u,direction:d,orientation:p}),L=Xq({value:s,defaultValue:l??Ahr(n,a),onChange:i}),j=L[0],H=L[1],B=yu(),F=B[0],V=B[1],D=yu(),P=D[0],R=D[1],W=m.useRef(null),U=!(v||b),q=hy(j,n,a),J=lEe(q),Z=m.useRef(J.current),Q=a-q+n,oe=M?Q:q,ie=OR(oe,n,a),te=p==="vertical",ae=m.useRef(null),fe=m.useRef(null),ve=m.useRef(null),Se=Xer(h,"slider-thumb","slider-track"),se=Se[0],pe=Se[1],ge=m.useCallback(function(xe){var Ae,He;if(ae.current){W.current="pointer";var Ge=V$e(ae.current).borderBox,ot=(Ae=(He=xe.touches)==null?void 0:He[0])!=null?Ae:xe,at=ot.clientX,Ve=ot.clientY,Qe=te?Ge.bottom-Ve:at-Ge.left,he=te?Ge.height:Ge.width,ye=Qe/he;M&&(ye=1-ye);var Ee=J$e(ye,n,a);return w&&(Ee=parseFloat(Nz(Ee,n,w))),Ee=hy(Ee,n,a),Ee}},[te,M,a,n,w]),de=(a-n)/10,ee=w||(a-n)/100,me=m.useCallback(function(xe){U&&(xe=parseFloat(Nz(xe,n,ee)),xe=hy(xe,n,a),H(xe))},[ee,a,n,H,U]),Re=m.useMemo(function(){return{stepUp:function(Ae){Ae===void 0&&(Ae=ee);var He=M?q-Ae:q+Ae;me(He)},stepDown:function(Ae){Ae===void 0&&(Ae=ee);var He=M?q+Ae:q-Ae;me(He)},reset:function(){return me(l||0)},stepTo:function(Ae){return me(Ae)}}},[me,M,q,ee,l]),je=m.useCallback(function(xe){var Ae=Kq(xe),He={ArrowRight:function(){return Re.stepUp()},ArrowUp:function(){return Re.stepUp()},ArrowLeft:function(){return Re.stepDown()},ArrowDown:function(){return Re.stepDown()},PageUp:function(){return Re.stepUp(de)},PageDown:function(){return Re.stepDown(de)},Home:function(){return me(n)},End:function(){return me(a)}},Ge=He[Ae];Ge&&(xe.preventDefault(),xe.stopPropagation(),Ge(xe),W.current="keyboard")},[Re,me,a,n,de]),ze=(t=A==null?void 0:A(q))!=null?t:C,Le=Uer(fe),$e=m.useMemo(function(){var xe,Ae=(xe=Le==null?void 0:Le.borderBox)!=null?xe:{width:0,height:0};return k2e({isReversed:M,orientation:p,thumbRects:[Ae],thumbPercents:[ie]})},[M,p,Le==null?void 0:Le.borderBox,ie]),Je=$e.getThumbStyle,Pe=$e.rootStyle,st=$e.trackStyle,_e=$e.innerTrackStyle,De=m.useCallback(function(){fe.current&&I&&setTimeout(function(){return $1(fe.current)})},[I]);b_(function(){De(),W.current==="keyboard"&&(O==null||O(J.current))},[q,O]);var et=function(Ae){var He=ge(Ae);He!=null&&He!==J.current&&H(He)};uEe(ve,{onPanSessionStart:function(Ae){U&&(V.on(),De(),et(Ae),z==null||z(J.current))},onPanSessionEnd:function(){U&&(V.off(),O==null||O(J.current),Z.current=J.current)},onPan:function(Ae){U&&et(Ae)}});var Ie=m.useCallback(function(xe,Ae){return xe===void 0&&(xe={}),Ae===void 0&&(Ae=null),Hr({},xe,N,{ref:zi(Ae,ve),tabIndex:-1,"aria-disabled":bs(v),"data-focused":ur(P),style:Hr({},xe.style,Pe)})},[N,v,P,Pe]),Fe=m.useCallback(function(xe,Ae){return xe===void 0&&(xe={}),Ae===void 0&&(Ae=null),Hr({},xe,{ref:zi(Ae,ae),id:pe,"data-disabled":ur(v),style:Hr({},xe.style,st)})},[v,pe,st]),vt=m.useCallback(function(xe,Ae){return xe===void 0&&(xe={}),Ae===void 0&&(Ae=null),Hr({},xe,{ref:Ae,style:Hr({},xe.style,_e)})},[_e]),bt=m.useCallback(function(xe,Ae){return xe===void 0&&(xe={}),Ae===void 0&&(Ae=null),Hr({},xe,{ref:zi(Ae,fe),role:"slider",tabIndex:U?0:void 0,id:se,"data-active":ur(F),"aria-valuetext":ze,"aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":q,"aria-orientation":p,"aria-disabled":bs(v),"aria-readonly":bs(b),"aria-label":x,"aria-labelledby":x?void 0:E,style:Hr({},xe.style,Je(0)),onKeyDown:Pr(xe.onKeyDown,je),onFocus:Pr(xe.onFocus,R.on),onBlur:Pr(xe.onBlur,R.off)})},[U,se,F,ze,n,a,q,p,v,b,x,E,Je,je,R.on,R.off]),wt=m.useCallback(function(xe,Ae){xe===void 0&&(xe={}),Ae===void 0&&(Ae=null);var He=!(xe.valuea),Ge=q>=xe.value,ot=OR(xe.value,n,a),at=Hr({position:"absolute",pointerEvents:"none"},Dhr({orientation:p,vertical:{bottom:M?100-ot+"%":ot+"%"},horizontal:{left:M?100-ot+"%":ot+"%"}}));return Hr({},xe,{ref:Ae,role:"presentation","aria-hidden":!0,"data-disabled":ur(v),"data-invalid":ur(!He),"data-highlighted":ur(Ge),style:Hr({},xe.style,at)})},[v,M,a,n,p,q]),mt=m.useCallback(function(xe,Ae){return xe===void 0&&(xe={}),Ae===void 0&&(Ae=null),Hr({},xe,{ref:Ae,type:"hidden",value:q,name:_})},[_,q]);return{state:{value:q,isFocused:P,isDragging:F},actions:Re,getRootProps:Ie,getTrackProps:Fe,getInnerTrackProps:vt,getThumbProps:bt,getMarkerProps:wt,getInputProps:mt}}function Dhr(e){var t=e.orientation,r=e.vertical,n=e.horizontal;return t==="vertical"?r:n}function Ahr(e,t){return t"}),Bhr=T2e[0],AU=T2e[1],I2e=vr(function(e,t){var r=Wl("Slider",e),n=vi(e),o=y_(),a=o.direction;n.direction=a;var i=Nhr(n),s=i.getInputProps,l=i.getRootProps,u=rg(i,Mhr),c=l(),d=s({},t);return m.createElement(Bhr,{value:u},m.createElement(rv,{value:r},m.createElement(Jt.div,Hr({},c,{className:nn("chakra-slider",e.className),__css:r.container}),e.children,m.createElement("input",d))))});I2e.defaultProps={orientation:"horizontal"};var jhr=vr(function(e,t){var r=AU(),n=r.getThumbProps,o=hi(),a=n(e,t);return m.createElement(Jt.div,Hr({},a,{className:nn("chakra-slider__thumb",e.className),__css:o.thumb}))}),Lhr=vr(function(e,t){var r=AU(),n=r.getTrackProps,o=hi(),a=n(e,t);return m.createElement(Jt.div,Hr({},a,{className:nn("chakra-slider__track",e.className),__css:o.track}))}),zhr=vr(function(e,t){var r=AU(),n=r.getInnerTrackProps,o=hi(),a=n(e,t);return m.createElement(Jt.div,Hr({},a,{className:nn("chakra-slider__filled-track",e.className),__css:o.filledTrack}))});function f8(){return f8=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Hhr=["className","rows"],Whr=vr(function(e,t){var r=Vp("Textarea",e),n=vi(e),o=n.className,a=n.rows,i=Vhr(n,Hhr),s=PU(i),l=["h","minH","height","minHeight"],u=a?XD(r,l):r;return m.createElement(Jt.textarea,f8({ref:t,rows:a},s,{className:nn("chakra-textarea",o),__css:u}))}),R2e=Rrr;R2e.defaultProps={theme:flr};var qhr=Yt({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Yt({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Yt({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Yt({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Yt({displayName:"SunIcon",path:m.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},m.createElement("circle",{cx:"12",cy:"12",r:"5"}),m.createElement("path",{d:"M12 1v2"}),m.createElement("path",{d:"M12 21v2"}),m.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),m.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),m.createElement("path",{d:"M1 12h2"}),m.createElement("path",{d:"M21 12h2"}),m.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),m.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Uhr=Yt({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Yt({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:m.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});Yt({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Yt({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Yt({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Yt({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Yt({displayName:"ViewIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),m.createElement("circle",{cx:"12",cy:"12",r:"2"}))});Yt({displayName:"ViewOffIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),m.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});Yt({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});var Khr=Yt({displayName:"DeleteIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))});Yt({displayName:"RepeatIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),m.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))});Yt({displayName:"RepeatClockIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),m.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))});Yt({displayName:"EditIcon",path:m.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},m.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),m.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))});Yt({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Yt({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Yt({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Yt({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Yt({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Yt({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});var Ghr=Yt({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Yt({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});var Yhr=Yt({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});Yt({displayName:"ExternalLinkIcon",path:m.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},m.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),m.createElement("path",{d:"M15 3h6v6"}),m.createElement("path",{d:"M10 14L21 3"}))});Yt({displayName:"LinkIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),m.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))});Yt({displayName:"PlusSquareIcon",path:m.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},m.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),m.createElement("path",{d:"M12 8v8"}),m.createElement("path",{d:"M8 12h8"}))});Yt({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Yt({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Yt({displayName:"TimeIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),m.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))});Yt({displayName:"ArrowRightIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),m.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))});Yt({displayName:"ArrowLeftIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),m.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))});Yt({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Yt({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Yt({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Yt({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Yt({displayName:"EmailIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),m.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))});Yt({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Yt({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Yt({displayName:"SpinnerIcon",path:m.createElement(m.Fragment,null,m.createElement("defs",null,m.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},m.createElement("stop",{stopColor:"currentColor",offset:"0%"}),m.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),m.createElement("g",{transform:"translate(2)",fill:"none"},m.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),m.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),m.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))});Yt({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Yt({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:m.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});Yt({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Yt({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Yt({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Yt({displayName:"InfoOutlineIcon",path:m.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},m.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),m.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),m.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))});Yt({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Yt({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});Yt({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Yt({displayName:"QuestionOutlineIcon",path:m.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},m.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),m.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),m.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))});var Xhr=Yt({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});Yt({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Yt({viewBox:"0 0 14 14",path:m.createElement("g",{fill:"currentColor"},m.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))});Yt({displayName:"MinusIcon",path:m.createElement("g",{fill:"currentColor"},m.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});Yt({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});function Qhr({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return T.jsx(q$,{leftIcon:T.jsx(Uhr,{}),...r,children:n($t.AddItemButton)})}function Zhr(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,{CopyButton:v,MoveDownButton:b,MoveUpButton:g,RemoveButton:y}=h.templates.ButtonTemplates,S=m.useMemo(()=>u(l),[l,u]),w=m.useMemo(()=>c(l),[l,c]),$=m.useMemo(()=>d(l,l-1),[l,d]),C=m.useMemo(()=>d(l,l+1),[l,d]);return T.jsxs(kmr,{alignItems:"flex-end",py:1,children:[T.jsx(Nn,{w:"100%",children:t}),n&&T.jsx(Nn,{children:T.jsxs(xpr,{isAttached:!0,mb:1,children:[(i||a)&&T.jsx(g,{disabled:r||f||!i,onClick:$,uiSchema:p,registry:h}),(i||a)&&T.jsx(b,{disabled:r||f||!a,onClick:C,uiSchema:p,registry:h}),o&&T.jsx(v,{disabled:r||f,onClick:S,uiSchema:p,registry:h}),s&&T.jsx(y,{disabled:r||f,onClick:w,uiSchema:p,registry:h})]})})]})}function Jhr(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:u,schema:c,title:d}=e,f=At(o),p=Ct("ArrayFieldDescriptionTemplate",l,f),h=Ct("ArrayFieldItemTemplate",l,f),v=Ct("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:b}}=l.templates;return T.jsxs(Nn,{children:[T.jsx(v,{idSchema:n,title:f.title||d,schema:c,uiSchema:o,required:u,registry:l}),T.jsx(p,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:o,registry:l}),T.jsxs(OU,{children:[T.jsx(bg,{children:a.length>0&&a.map(({key:g,...y})=>T.jsx(h,{...y},g))}),t&&T.jsx(bg,{justifySelf:"flex-end",children:T.jsx(Nn,{mt:2,children:T.jsx(b,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})]},`array-item-list-${n.$id}`)]})}function ov({uiSchema:e={}}){const t=e["ui:options"]&&e["ui:options"].chakra||{};return Object.keys(t).forEach(r=>{EEe(r)&&delete t[r]}),t}function evr(e){const{id:t,type:r,value:n,label:o,hideLabel:a,schema:i,uiSchema:s,onChange:l,onChangeOverride:u,onBlur:c,onFocus:d,options:f,required:p,readonly:h,rawErrors:v,autofocus:b,placeholder:g,disabled:y}=e,S=kp(i,r,f),w=ov({uiSchema:s}),$=({target:{value:E}})=>l(E===""?f.emptyValue:E),C=({target:E})=>c(t,E&&E.value),x=({target:E})=>d(t,E&&E.value);return T.jsxs(Zd,{mb:1,...w,isDisabled:y||h,isRequired:p,isReadOnly:h,isInvalid:v&&v.length>0,children:[wr(T.jsx(nv,{htmlFor:t,id:`${t}-label`,children:o}),a||!o),T.jsx(RU,{id:t,name:t,value:n||n===0?n:"",onChange:u||$,onBlur:C,onFocus:x,autoFocus:b,placeholder:g,...S,list:i.examples?da(t):void 0,"aria-describedby":Ot(t,!!i.examples)}),Array.isArray(i.examples)?T.jsx("datalist",{id:da(t),children:i.examples.concat(i.default&&!i.examples.includes(i.default)?[i.default]:[]).map(E=>T.jsx("option",{value:E},E))}):null]})}function tvr({description:e,id:t}){return e?typeof e=="string"?T.jsx(pA,{as:"sup",fontSize:"md",id:t,children:e}):T.jsx(T.Fragment,{children:e}):null}function rvr({errors:e,registry:t}){const{translateString:r}=t;return T.jsxs(mpr,{flexDirection:"column",alignItems:"flex-start",gap:3,status:"error",children:[T.jsx(hpr,{children:r($t.ErrorsLabel)}),T.jsx(y2e,{children:e.map((n,o)=>T.jsxs(S2e,{children:[T.jsx(Cmr,{as:Xhr,color:"red.500"}),n.stack]},o))})]})}function F2e(e){const{icon:t,iconType:r,uiSchema:n,registry:o,...a}=e;return T.jsx(Tpr,{"aria-label":e.title,...a,icon:t})}F2e.displayName="ChakraIconButton";const hA=m.memo(F2e);function nvr(e){const{registry:{translateString:t}}=e;return T.jsx(hA,{title:t($t.CopyButton),...e,icon:T.jsx(qhr,{})})}function ovr(e){const{registry:{translateString:t}}=e;return T.jsx(hA,{title:t($t.MoveDownButton),...e,icon:T.jsx(Yhr,{})})}function avr(e){const{registry:{translateString:t}}=e;return T.jsx(hA,{title:t($t.MoveUpButton),...e,icon:T.jsx(Ghr,{})})}function ivr(e){const{registry:{translateString:t}}=e;return T.jsx(hA,{title:t($t.RemoveButton),...e,icon:T.jsx(Khr,{})})}function svr(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=Vd(r);return T.jsx(y2e,{children:t.map((o,a)=>T.jsx(S2e,{children:T.jsx(Mpr,{id:n,children:o})},a))})}function lvr(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Tp(t);return T.jsx(Npr,{id:n,children:r})}function uvr(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,registry:f,required:p,rawErrors:h=[],errors:v,help:b,description:g,rawDescription:y,schema:S,uiSchema:w}=e,$=At(w),C=Ct("WrapIfAdditionalTemplate",f,$);return s?T.jsx("div",{style:{display:"none"},children:r}):T.jsx(C,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:p,schema:S,uiSchema:w,registry:f,children:T.jsxs(Zd,{isRequired:p,isInvalid:h&&h.length>0,children:[r,i&&y?T.jsx(pA,{mt:2,children:g}):null,v,b]})})}function cvr(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:u,formData:c,onAddClick:d,registry:f}=e,p=At(s),h=Ct("TitleFieldTemplate",f,p),v=Ct("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:b}}=f.templates;return T.jsxs(T.Fragment,{children:[r&&T.jsx(h,{id:Nu(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&T.jsx(v,{id:pa(l),description:t,schema:u,uiSchema:s,registry:f}),T.jsxs(OU,{gap:t?2:6,mb:4,children:[n.map((g,y)=>g.hidden?g.content:T.jsx(bg,{children:g.content},`${l.$id}-${g.name}-${y}`)),$p(u,s,c)&&T.jsx(bg,{justifySelf:"flex-end",children:T.jsx(b,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})})]})]})}function dvr({uiSchema:e}){const{submitText:t,norender:r,props:n}=Pp(e);return r?null:T.jsx(Nn,{marginTop:3,children:T.jsx(q$,{type:"submit",variant:"solid",...n,children:t})})}function fvr({id:e,title:t}){return T.jsxs(Nn,{id:e,mt:1,mb:4,children:[T.jsx(ymr,{as:"h5",children:t}),T.jsx(v2e,{})]})}function pvr(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,registry:c,required:d,schema:f,uiSchema:p}=e,{templates:h,translateString:v}=c,{RemoveButton:b}=h.ButtonTemplates,g=v($t.KeyLabel,[i]);if(!(Nl in f))return T.jsx("div",{className:r,style:n,children:t});const S=({target:w})=>l(w.value);return T.jsxs(OU,{className:r,style:n,alignItems:"center",gap:2,children:[T.jsx(bg,{children:T.jsxs(Zd,{isRequired:d,children:[T.jsx(nv,{htmlFor:`${a}-key`,id:`${a}-key-label`,children:g}),T.jsx(RU,{defaultValue:i,disabled:o||u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:S,type:"text",mb:1})]})}),T.jsx(bg,{children:t}),T.jsx(bg,{children:T.jsx(b,{disabled:o||u,onClick:s(i),uiSchema:p,registry:c})})]},`${a}-key`)}function mvr(){return{ArrayFieldItemTemplate:Zhr,ArrayFieldTemplate:Jhr,BaseInputTemplate:evr,ButtonTemplates:{CopyButton:nvr,AddButton:Qhr,MoveDownButton:ovr,MoveUpButton:avr,RemoveButton:ivr,SubmitButton:dvr},DescriptionFieldTemplate:tvr,ErrorListTemplate:rvr,FieldErrorTemplate:svr,FieldHelpTemplate:lvr,FieldTemplate:uvr,ObjectFieldTemplate:cvr,TitleFieldTemplate:fvr,WrapIfAdditionalTemplate:pvr}}function hvr(e){const{SelectWidget:t}=e.registry.widgets,r=e.value?e.value:void 0;return T.jsx(t,{...e,label:"",className:"form-control",onChange:n=>e.select(e.type,n),options:{enumOptions:sO(e.range[0],e.range[1])},placeholder:e.type,schema:{type:"integer"},value:r,"aria-describedby":Ot(e.name)})}const vvr=e=>Object.keys(e).every(t=>typeof e[t]<"u"&&e[t]!==-1);function MU(e){const{autofocus:t,disabled:r,id:n,onBlur:o,onChange:a,onFocus:i,options:s,readonly:l,registry:u,showTime:c,value:d}=e,{translateString:f}=u,[p,h]=m.useState(Ff(d,c));m.useEffect(()=>{h(Ff(d,c))},[c,d]);const v=(y,S)=>{const w={...p,[y]:typeof S>"u"?-1:S};vvr(w)?a(Ny(w,c)):h(w)},b=y=>{if(y.preventDefault(),r||l)return;const S=Ff(new Date().toJSON(),c);a(Ny(S,c))},g=y=>{y.preventDefault(),!(r||l)&&a(void 0)};return T.jsxs(Nn,{children:[T.jsx(Nn,{display:"flex",flexWrap:"wrap",alignItems:"center",children:R7(p,c,s.yearsRange,s.format).map((y,S)=>{const w=n+"_"+y.type;return T.jsx(Nn,{mr:"2",mb:"2",children:T.jsx(hvr,{...e,...y,autofocus:t&&S===0,disabled:r,id:w,name:n,onBlur:o,onFocus:i,readonly:l,registry:u,select:v,value:y.value<0?"":y.value})},w)})}),T.jsxs(Nn,{display:"flex",children:[!s.hideNowButton&&T.jsx(q$,{onClick:y=>b(y),mr:"2",children:f($t.NowLabel)}),!s.hideClearButton&&T.jsx(q$,{onClick:y=>g(y),children:f($t.ClearLabel)})]})]})}MU.defaultProps={autofocus:!1,disabled:!1,readonly:!1,showTime:!1,options:{yearsRange:[1900,new Date().getFullYear()+2]}};function O2e(e){const{AltDateWidget:t}=e.registry.widgets;return T.jsx(t,{...e,showTime:!0})}O2e.defaultProps={...MU.defaultProps,showTime:!0};function gvr(e){const{id:t,value:r,disabled:n,readonly:o,onChange:a,onBlur:i,onFocus:s,label:l,hideLabel:u,registry:c,options:d,uiSchema:f,schema:p}=e,h=ov({uiSchema:f}),v=kd(p),b=Ct("DescriptionFieldTemplate",c,d),g=d.description||p.description,y=({target:{checked:$}})=>a($),S=({target:$})=>i(t,$&&$.value),w=({target:$})=>s(t,$&&$.value);return T.jsxs(Zd,{mb:1,...h,isRequired:v,children:[!u&&!!g&&T.jsx(b,{id:pa(t),description:g,schema:p,uiSchema:f,registry:c}),T.jsx(p2e,{id:t,name:t,isChecked:typeof r>"u"?!1:r,isDisabled:n||o,onChange:y,onBlur:S,onFocus:w,"aria-describedby":Ot(t),children:wr(T.jsx(pA,{children:l}),u||!l)})]})}function bvr(e){const{id:t,disabled:r,options:n,value:o,readonly:a,onChange:i,onBlur:s,onFocus:l,required:u,label:c,hideLabel:d,uiSchema:f,rawErrors:p=[]}=e,{enumOptions:h,enumDisabled:v,emptyValue:b}=n,g=ov({uiSchema:f}),y=Array.isArray(o)?o:[o],S=({target:x})=>s(t,Tt(x&&x.value,h,b)),w=({target:x})=>l(t,Tt(x&&x.value,h,b)),$=n?n.inline:!1,C=mi(o,h,!0);return T.jsxs(Zd,{mb:1,...g,isDisabled:r||a,isRequired:u,isReadOnly:a,isInvalid:p&&p.length>0,children:[wr(T.jsx(nv,{htmlFor:t,id:`${t}-label`,children:c}),d||!c),T.jsx(Hpr,{onChange:x=>i(Tt(x,h,b)),defaultValue:C,"aria-describedby":Ot(t),children:T.jsx(NU,{direction:$?"row":"column",children:Array.isArray(h)&&h.map((x,E)=>{const _=Fu(x.value,y),k=Array.isArray(v)&&v.indexOf(x.value)!==-1;return T.jsx(p2e,{id:Wa(t,E),name:t,value:String(E),isChecked:_,isDisabled:r||k||a,onBlur:S,onFocus:w,children:x.label&&T.jsx(pA,{children:x.label})},E)})})})]})}function yvr({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:u,onFocus:c,uiSchema:d}){const{enumOptions:f,enumDisabled:p,emptyValue:h}=t,v=ov({uiSchema:d}),b=$=>l(Tt($,f,h)),g=({target:{value:$}})=>u(e,Tt($,f,h)),y=({target:{value:$}})=>c(e,Tt($,f,h)),S=t?t.inline:!1,w=mi(r,f)??null;return T.jsxs(Zd,{mb:1,...v,isDisabled:o||a,isRequired:n,isReadOnly:a,children:[wr(T.jsx(nv,{htmlFor:e,id:`${e}-label`,children:i}),s||!i),T.jsx(ghr,{onChange:b,onBlur:g,onFocus:y,value:w,name:e,"aria-describedby":Ot(e),children:T.jsx(NU,{direction:S?"row":"column",children:Array.isArray(f)&&f.map(($,C)=>{const x=Array.isArray(p)&&p.indexOf($.value)!==-1;return T.jsx(whr,{value:String(C),id:Wa(e,C),disabled:o||x||a,children:$.label},C)})})})]})}function Svr({value:e,readonly:t,disabled:r,onBlur:n,onFocus:o,options:a,schema:i,uiSchema:s,onChange:l,label:u,hideLabel:c,id:d}){const f=ov({uiSchema:s}),p={value:e,label:u,id:d,..._p(i)},h=g=>l(g===void 0?a.emptyValue:g),v=({target:g})=>n(d,g&&g.value),b=({target:g})=>o(d,g&&g.value);return T.jsxs(Zd,{mb:1,...f,children:[wr(T.jsx(nv,{htmlFor:d,children:u}),c||!u),T.jsxs(I2e,{...p,id:d,name:d,isDisabled:r||t,onChange:h,onBlur:v,onFocus:b,"aria-describedby":Ot(d),children:[T.jsx(Lhr,{children:T.jsx(zhr,{})}),T.jsx(jhr,{})]})]})}var wvr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Cvr(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,o=n===void 0?!1:n,a=e.defaultValue,i=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=St(e,wvr),v=m.useState(s!==void 0?s:r),b=Ce(v,2),g=b[0],y=b[1],S=m.useState(l!==void 0?l:o),w=Ce(S,2),$=w[0],C=w[1],x=m.useState(p!==void 0?p:i),E=Ce(x,2),_=E[0],k=E[1],I=m.useCallback(function(j,H){typeof u=="function"&&u(j,H),k(j)},[u]),N=m.useCallback(function(j,H){var B;typeof c=="function"&&(B=c(j,H)),y(B!==void 0?B:j)},[c]),z=m.useCallback(function(){typeof f=="function"&&f(),C(!0)},[f]),O=m.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),A=s!==void 0?s:g,M=l!==void 0?l:$,L=p!==void 0?p:_;return be(be({},h),{},{inputValue:A,menuIsOpen:M,onChange:I,onInputChange:N,onMenuClose:O,onMenuOpen:z,value:L})}function xvr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var p8=m.useLayoutEffect,$vr=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],QR=function(){};function Evr(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function _vr(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function kvr(e){return vA(e)?window.innerHeight:e.clientHeight}function D2e(e){return vA(e)?window.pageYOffset:e.scrollTop}function ZR(e,t){if(vA(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Pvr(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Tvr(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function nP(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:QR,o=D2e(e),a=t-o,i=10,s=0;function l(){s+=i;var u=Tvr(s,o,a,r);ZR(e,u),sr.bottom?ZR(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!i)return a&&nP(l,k,N),{placement:"bottom",maxHeight:t};if(!i&&_>=n||i&&x>=n){a&&nP(l,k,N);var z=i?x-w:_-w;return{placement:"bottom",maxHeight:z}}if(o==="auto"||i){var O=t,A=i?C:E;return A>=n&&(O=Math.min(A-w-s,t)),{placement:"top",maxHeight:O}}if(o==="bottom")return a&&ZR(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(C>=h)return{placement:"top",maxHeight:t};if(E>=h&&!i)return a&&nP(l,I,N),{placement:"top",maxHeight:t};if(!i&&E>=n||i&&C>=n){var M=t;return(!i&&E>=n||i&&C>=n)&&(M=i?C-$:E-$),a&&nP(l,I,N),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function Bvr(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var M2e=function(t){return t==="auto"?"bottom":t},jvr=function(t,r){var n,o=t.placement,a=t.theme,i=a.borderRadius,s=a.spacing,l=a.colors;return be((n={label:"menu"},le(n,Bvr(o),"100%"),le(n,"position","absolute"),le(n,"width","100%"),le(n,"zIndex",1),n),r?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},B2e=m.createContext(null),Lvr=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=m.useContext(B2e)||{},c=u.setPortalPlacement,d=m.useRef(null),f=m.useState(o),p=Ce(f,2),h=p[0],v=p[1],b=m.useState(null),g=Ce(b,2),y=g[0],S=g[1],w=l.spacing.controlHeight;return p8(function(){var $=d.current;if($){var C=i==="fixed",x=s&&!C,E=Mvr({maxHeight:o,menuEl:$,minHeight:n,placement:a,shouldScroll:x,isFixedPosition:C,controlHeight:w});v(E.maxHeight),S(E.placement),c==null||c(E.placement)}},[o,a,i,s,n,c,w]),r({ref:d,placerProps:be(be({},t),{},{placement:y||M2e(a),maxHeight:h})})},zvr=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return nr("div",G({},Vo(t,"menu",{menu:!0}),{ref:n},o),r)},Vvr=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return be({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},Hvr=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,a=t.isMulti;return nr("div",G({},Vo(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},n),r)},j2e=function(t,r){var n=t.theme,o=n.spacing.baseUnit,a=n.colors;return be({textAlign:"center"},r?{}:{color:a.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Wvr=j2e,qvr=j2e,L2e=function(t){var r=t.children,n=t.innerProps;return nr("div",G({},Vo(t,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)};L2e.defaultProps={children:"No options"};var z2e=function(t){var r=t.children,n=t.innerProps;return nr("div",G({},Vo(t,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)};z2e.defaultProps={children:"Loading..."};var Uvr=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},Kvr=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,a=t.innerProps,i=t.menuPlacement,s=t.menuPosition,l=m.useRef(null),u=m.useRef(null),c=m.useState(M2e(i)),d=Ce(c,2),f=d[0],p=d[1],h=m.useMemo(function(){return{setPortalPlacement:p}},[]),v=m.useState(null),b=Ce(v,2),g=b[0],y=b[1],S=m.useCallback(function(){if(o){var x=Ivr(o),E=s==="fixed"?0:window.pageYOffset,_=x[f]+E;(_!==(g==null?void 0:g.offset)||x.left!==(g==null?void 0:g.rect.left)||x.width!==(g==null?void 0:g.rect.width))&&y({offset:_,rect:x})}},[o,s,f,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);p8(function(){S()},[S]);var w=m.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=_Pt(o,l.current,S,{elementResize:"ResizeObserver"in window}))},[o,S]);p8(function(){w()},[w]);var $=m.useCallback(function(x){l.current=x,w()},[w]);if(!r&&s!=="fixed"||!g)return null;var C=nr("div",G({ref:$},Vo(be(be({},t),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),n);return nr(B2e.Provider,{value:h},r?uo.createPortal(C,r):C)},Gvr=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},Yvr=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,a=t.isRtl;return nr("div",G({},Vo(t,"container",{"--is-disabled":o,"--is-rtl":a}),n),r)},Xvr=function(t,r){var n=t.theme.spacing,o=t.isMulti,a=t.hasValue,i=t.selectProps.controlShouldRenderValue;return be({alignItems:"center",display:o&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},Qvr=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,a=t.hasValue;return nr("div",G({},Vo(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),n),r)},Zvr=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Jvr=function(t){var r=t.children,n=t.innerProps;return nr("div",G({},Vo(t,"indicatorsContainer",{indicators:!0}),n),r)},dle,egr=["size"],tgr={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},V2e=function(t){var r=t.size,n=St(t,egr);return nr("svg",G({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:tgr},n))},BU=function(t){return nr(V2e,G({size:20},t),nr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},H2e=function(t){return nr(V2e,G({size:20},t),nr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},W2e=function(t,r){var n=t.isFocused,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return be({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?i.neutral60:i.neutral20,padding:a*2,":hover":{color:n?i.neutral80:i.neutral40}})},rgr=W2e,ngr=function(t){var r=t.children,n=t.innerProps;return nr("div",G({},Vo(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||nr(H2e,null))},ogr=W2e,agr=function(t){var r=t.children,n=t.innerProps;return nr("div",G({},Vo(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||nr(BU,null))},igr=function(t,r){var n=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return be({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:a*2,marginTop:a*2})},sgr=function(t){var r=t.innerProps;return nr("span",G({},r,Vo(t,"indicatorSeparator",{"indicator-separator":!0})))},lgr=nS(dle||(dle=xvr([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),ugr=function(t,r){var n=t.isFocused,o=t.size,a=t.theme,i=a.colors,s=a.spacing.baseUnit;return be({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?i.neutral60:i.neutral20,padding:s*2})},g3=function(t){var r=t.delay,n=t.offset;return nr("span",{css:WV({animation:"".concat(lgr," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},q2e=function(t){var r=t.innerProps,n=t.isRtl;return nr("div",G({},Vo(t,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),nr(g3,{delay:0,offset:n}),nr(g3,{delay:160,offset:!0}),nr(g3,{delay:320,offset:!n}))};q2e.defaultProps={size:4};var cgr=function(t,r){var n=t.isDisabled,o=t.isFocused,a=t.theme,i=a.colors,s=a.borderRadius,l=a.spacing;return be({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dgr=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,a=t.innerRef,i=t.innerProps,s=t.menuIsOpen;return nr("div",G({ref:a},Vo(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),i),r)},fgr=["data"],pgr=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},mgr=function(t){var r=t.children,n=t.cx,o=t.getStyles,a=t.getClassNames,i=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return nr("div",G({},Vo(t,"group",{group:!0}),l),nr(i,G({},s,{selectProps:d,theme:c,getStyles:o,getClassNames:a,cx:n}),u),nr("div",null,r))},hgr=function(t,r){var n=t.theme,o=n.colors,a=n.spacing;return be({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},vgr=function(t){var r=N2e(t);r.data;var n=St(r,fgr);return nr("div",G({},Vo(t,"groupHeading",{"group-heading":!0}),n))},ggr=["innerRef","isDisabled","isHidden","inputClassName"],bgr=function(t,r){var n=t.isDisabled,o=t.value,a=t.theme,i=a.spacing,s=a.colors;return be(be({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ygr),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},U2e={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ygr={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":be({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},U2e)},Sgr=function(t){return be({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},U2e)},wgr=function(t){var r=t.cx,n=t.value,o=N2e(t),a=o.innerRef,i=o.isDisabled,s=o.isHidden,l=o.inputClassName,u=St(o,ggr);return nr("div",G({},Vo(t,"input",{"input-container":!0}),{"data-value":n||""}),nr("input",G({className:r({input:!0},l),ref:a,style:Sgr(s),disabled:i},u)))},Cgr=function(t,r){var n=t.theme,o=n.spacing,a=n.borderRadius,i=n.colors;return be({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},xgr=function(t,r){var n=t.theme,o=n.borderRadius,a=n.colors,i=t.cropWithEllipsis;return be({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},$gr=function(t,r){var n=t.theme,o=n.spacing,a=n.borderRadius,i=n.colors,s=t.isFocused;return be({alignItems:"center",display:"flex"},r?{}:{borderRadius:a/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},K2e=function(t){var r=t.children,n=t.innerProps;return nr("div",n,r)},Egr=K2e,_gr=K2e;function kgr(e){var t=e.children,r=e.innerProps;return nr("div",G({role:"button"},r),t||nr(BU,{size:14}))}var Pgr=function(t){var r=t.children,n=t.components,o=t.data,a=t.innerProps,i=t.isDisabled,s=t.removeProps,l=t.selectProps,u=n.Container,c=n.Label,d=n.Remove;return nr(u,{data:o,innerProps:be(be({},Vo(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:l},nr(c,{data:o,innerProps:be({},Vo(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),nr(d,{data:o,innerProps:be(be({},Vo(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:l}))},Tgr=function(t,r){var n=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.theme,s=i.spacing,l=i.colors;return be({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:a?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:a?l.primary:l.primary50}})},Igr=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.innerRef,s=t.innerProps;return nr("div",G({},Vo(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":a}),{ref:i,"aria-disabled":n},s),r)},Rgr=function(t,r){var n=t.theme,o=n.spacing,a=n.colors;return be({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Fgr=function(t){var r=t.children,n=t.innerProps;return nr("div",G({},Vo(t,"placeholder",{placeholder:!0}),n),r)},Ogr=function(t,r){var n=t.isDisabled,o=t.theme,a=o.spacing,i=o.colors;return be({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Ngr=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return nr("div",G({},Vo(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Dgr={ClearIndicator:agr,Control:dgr,DropdownIndicator:ngr,DownChevron:H2e,CrossIcon:BU,Group:mgr,GroupHeading:vgr,IndicatorsContainer:Jvr,IndicatorSeparator:sgr,Input:wgr,LoadingIndicator:q2e,Menu:zvr,MenuList:Hvr,MenuPortal:Kvr,LoadingMessage:z2e,NoOptionsMessage:L2e,MultiValue:Pgr,MultiValueContainer:Egr,MultiValueLabel:_gr,MultiValueRemove:kgr,Option:Igr,Placeholder:Fgr,SelectContainer:Yvr,SingleValue:Ngr,ValueContainer:Qvr},Agr=function(t){return be(be({},Dgr),t.components)},fle=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Mgr(e,t){return!!(e===t||fle(e)&&fle(t))}function Bgr(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,a=t.label,i=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=function(h,v){return h&&h.length?"".concat(h.indexOf(v)+1," of ").concat(h.length):""};if(r==="value"&&s)return"value ".concat(i," focused, ").concat(c(s,n),".");if(r==="menu"){var d=l?" disabled":"",f="".concat(u?"selected":"focused").concat(d);return"option ".concat(i," ").concat(f,", ").concat(c(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},Vgr=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,i=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=l.ariaLiveMessages,d=l.getOptionLabel,f=l.inputValue,p=l.isMulti,h=l.isOptionDisabled,v=l.isSearchable,b=l.menuIsOpen,g=l.options,y=l.screenReaderStatus,S=l.tabSelectsValue,w=l["aria-label"],$=l["aria-live"],C=m.useMemo(function(){return be(be({},zgr),c||{})},[c]),x=m.useMemo(function(){var O="";if(r&&C.onChange){var A=r.option,M=r.options,L=r.removedValue,j=r.removedValues,H=r.value,B=function(U){return Array.isArray(U)?null:U},F=L||A||B(H),V=F?d(F):"",D=M||j||void 0,P=D?D.map(d):[],R=be({isDisabled:F&&h(F,s),label:V,labels:P},r);O=C.onChange(R)}return O},[r,C,h,s,d]),E=m.useMemo(function(){var O="",A=n||o,M=!!(n&&s&&s.includes(n));if(A&&C.onFocus){var L={focused:A,label:d(A),isDisabled:h(A,s),isSelected:M,options:a,context:A===n?"menu":"value",selectValue:s};O=C.onFocus(L)}return O},[n,o,d,h,C,a,s]),_=m.useMemo(function(){var O="";if(b&&g.length&&C.onFilter){var A=y({count:a.length});O=C.onFilter({inputValue:f,resultsMessage:A})}return O},[a,f,b,C,g,y]),k=m.useMemo(function(){var O="";if(C.guidance){var A=o?"value":b?"menu":"input";O=C.guidance({"aria-label":w,context:A,isDisabled:n&&h(n,s),isMulti:p,isSearchable:v,tabSelectsValue:S})}return O},[w,n,o,p,h,v,b,C,s,S]),I="".concat(E," ").concat(_," ").concat(k),N=nr(m.Fragment,null,nr("span",{id:"aria-selection"},x),nr("span",{id:"aria-context"},I)),z=(r==null?void 0:r.action)==="initial-input-focus";return nr(m.Fragment,null,nr(ple,{id:u},z&&N),nr(ple,{"aria-live":$,"aria-atomic":"false","aria-relevant":"additions text"},i&&!z&&N))},m8=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Hgr=new RegExp("["+m8.map(function(e){return e.letters}).join("")+"]","g"),G2e={};for(var b3=0;b3-1}},Kgr=["innerRef"];function Ggr(e){var t=e.innerRef,r=St(e,Kgr),n=Avr(r,"onExited","in","enter","exit","appear");return nr("input",G({ref:t},n,{css:WV({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ygr=function(t){t.preventDefault(),t.stopPropagation()};function Xgr(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=m.useRef(!1),s=m.useRef(!1),l=m.useRef(0),u=m.useRef(null),c=m.useCallback(function(b,g){if(u.current!==null){var y=u.current,S=y.scrollTop,w=y.scrollHeight,$=y.clientHeight,C=u.current,x=g>0,E=w-$-S,_=!1;E>g&&i.current&&(n&&n(b),i.current=!1),x&&s.current&&(a&&a(b),s.current=!1),x&&g>E?(r&&!i.current&&r(b),C.scrollTop=w,_=!0,i.current=!0):!x&&-g>S&&(o&&!s.current&&o(b),C.scrollTop=0,_=!0,s.current=!0),_&&Ygr(b)}},[r,n,o,a]),d=m.useCallback(function(b){c(b,b.deltaY)},[c]),f=m.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),p=m.useCallback(function(b){var g=l.current-b.changedTouches[0].clientY;c(b,g)},[c]),h=m.useCallback(function(b){if(b){var g=Ovr?{passive:!1}:!1;b.addEventListener("wheel",d,g),b.addEventListener("touchstart",f,g),b.addEventListener("touchmove",p,g)}},[p,f,d]),v=m.useCallback(function(b){b&&(b.removeEventListener("wheel",d,!1),b.removeEventListener("touchstart",f,!1),b.removeEventListener("touchmove",p,!1))},[p,f,d]);return m.useEffect(function(){if(t){var b=u.current;return h(b),function(){v(b)}}},[t,h,v]),function(b){u.current=b}}var hle=["boxSizing","height","overflow","paddingRight","position"],vle={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function gle(e){e.preventDefault()}function ble(e){e.stopPropagation()}function yle(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Sle(){return"ontouchstart"in window||navigator.maxTouchPoints}var wle=!!(typeof window<"u"&&window.document&&window.document.createElement),Tw=0,lb={capture:!1,passive:!1};function Qgr(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=m.useRef({}),a=m.useRef(null),i=m.useCallback(function(l){if(wle){var u=document.body,c=u&&u.style;if(n&&hle.forEach(function(h){var v=c&&c[h];o.current[h]=v}),n&&Tw<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(vle).forEach(function(h){var v=vle[h];c&&(c[h]=v)}),c&&(c.paddingRight="".concat(p,"px"))}u&&Sle()&&(u.addEventListener("touchmove",gle,lb),l&&(l.addEventListener("touchstart",yle,lb),l.addEventListener("touchmove",ble,lb))),Tw+=1}},[n]),s=m.useCallback(function(l){if(wle){var u=document.body,c=u&&u.style;Tw=Math.max(Tw-1,0),n&&Tw<1&&hle.forEach(function(d){var f=o.current[d];c&&(c[d]=f)}),u&&Sle()&&(u.removeEventListener("touchmove",gle,lb),l&&(l.removeEventListener("touchstart",yle,lb),l.removeEventListener("touchmove",ble,lb)))}},[n]);return m.useEffect(function(){if(t){var l=a.current;return i(l),function(){s(l)}}},[t,i,s]),function(l){a.current=l}}var Zgr=function(){return document.activeElement&&document.activeElement.blur()},Jgr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e0r(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,a=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=Xgr({isEnabled:o,onBottomArrive:a,onBottomLeave:i,onTopArrive:s,onTopLeave:l}),c=Qgr({isEnabled:r}),d=function(p){u(p),c(p)};return nr(m.Fragment,null,r&&nr("div",{onClick:Zgr,css:Jgr}),t(d))}var t0r={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},r0r=function(t){var r=t.name,n=t.onFocus;return nr("input",{required:!0,name:r,tabIndex:-1,onFocus:n,css:t0r,value:"",onChange:function(){}})},n0r=function(t){return t.label},o0r=function(t){return t.label},a0r=function(t){return t.value},i0r=function(t){return!!t.isDisabled},s0r={clearIndicator:ogr,container:Gvr,control:cgr,dropdownIndicator:rgr,group:pgr,groupHeading:hgr,indicatorsContainer:Zvr,indicatorSeparator:igr,input:bgr,loadingIndicator:ugr,loadingMessage:qvr,menu:jvr,menuList:Vvr,menuPortal:Uvr,multiValue:Cgr,multiValueLabel:xgr,multiValueRemove:$gr,noOptionsMessage:Wvr,option:Tgr,placeholder:Rgr,singleValue:Ogr,valueContainer:Xvr},l0r={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},u0r=4,X2e=4,c0r=38,d0r=X2e*2,f0r={baseUnit:X2e,controlHeight:c0r,menuGutter:d0r},w3={borderRadius:u0r,colors:l0r,spacing:f0r},p0r={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:cle(),captureMenuScroll:!cle(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Ugr(),formatGroupLabel:n0r,getOptionLabel:o0r,getOptionValue:a0r,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:i0r,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Rvr(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Cle(e,t,r,n){var o=eke(e,t,r),a=tke(e,t,r),i=J2e(e,t),s=JR(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:i,value:s,index:n}}function Q2e(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(i,s){return Cle(e,i,t,s)}).filter(function(i){return xle(e,i)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var a=Cle(e,r,t,n);return xle(e,a)?a:void 0}).filter(Nvr)}function Z2e(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,xt(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function m0r(e,t){return Z2e(Q2e(e,t))}function xle(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!nke(e)||!a)&&rke(e,{label:i,value:s,data:o},n)}function h0r(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var a=t.indexOf(r);if(a>-1)return r;if(o-1?r:t[0]}var J2e=function(t,r){return t.getOptionLabel(r)},JR=function(t,r){return t.getOptionValue(r)};function eke(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function tke(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=JR(e,t);return r.some(function(o){return JR(e,o)===n})}function rke(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var nke=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},g0r=1,oke=function(e){Gd(r,e);var t=E0(r);function r(n){var o;if(oa(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,l){var u=o.props,c=u.onChange,d=u.name;l.name=d,o.ariaOnChange(s,l),c(s,l)},o.setValue=function(s,l,u){var c=o.props,d=c.closeMenuOnSelect,f=c.isMulti,p=c.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:p}),d&&(o.setState({inputIsHiddenAfterUpdate:!f}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:l,option:u})},o.selectOption=function(s){var l=o.props,u=l.blurInputOnSelect,c=l.isMulti,d=l.name,f=o.state.selectValue,p=c&&o.isOptionSelected(s,f),h=o.isOptionDisabled(s,f);if(p){var v=o.getOptionValue(s);o.setValue(f.filter(function(b){return o.getOptionValue(b)!==v}),"deselect-option",s)}else if(!h)c?o.setValue([].concat(xt(f),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:d});return}u&&o.blurInput()},o.removeValue=function(s){var l=o.props.isMulti,u=o.state.selectValue,c=o.getOptionValue(s),d=u.filter(function(p){return o.getOptionValue(p)!==c}),f=aP(l,d,d[0]||null);o.onChange(f,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(aP(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,l=o.state.selectValue,u=l[l.length-1],c=l.slice(0,l.length-1),d=aP(s,c,c[0]||null);o.onChange(d,{action:"pop-value",removedValue:u})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,l=new Array(s),u=0;uf||d>f}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var l=o.props.inputValue,u=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:l}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var l=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:l}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){o.blockOptionHover||o.state.focusedOption===s||o.setState({focusedOption:s})},o.shouldHideSelectedOptions=function(){return nke(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var l=o.props,u=l.isMulti,c=l.backspaceRemovesValue,d=l.escapeClearsValue,f=l.inputValue,p=l.isClearable,h=l.isDisabled,v=l.menuIsOpen,b=l.onKeyDown,g=l.tabSelectsValue,y=l.openMenuOnFocus,S=o.state,w=S.focusedOption,$=S.focusedValue,C=S.selectValue;if(!h&&!(typeof b=="function"&&(b(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!u||f)return;o.focusValue("previous");break;case"ArrowRight":if(!u||f)return;o.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if($)o.removeValue($);else{if(!c)return;u?o.popValue():p&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!v||!g||!w||y&&o.isOptionSelected(w,C))return;o.selectOption(w);break;case"Enter":if(s.keyCode===229)break;if(v){if(!w||o.isComposing)return;o.selectOption(w);break}return;case"Escape":v?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:f}),o.onMenuClose()):p&&d&&o.clearValue();break;case" ":if(f)return;if(!v){o.openMenu("first");break}if(!w)return;o.selectOption(w);break;case"ArrowUp":v?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":v?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!v)return;o.focusOption("pageup");break;case"PageDown":if(!v)return;o.focusOption("pagedown");break;case"Home":if(!v)return;o.focusOption("first");break;case"End":if(!v)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++g0r),o.state.selectValue=lle(n.value),n.menuIsOpen&&o.state.selectValue.length){var a=o.buildFocusableOptions(),i=a.indexOf(o.state.selectValue[0]);o.state.focusedOption=a[i]}return o}return Oo(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ule(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var a=this.props,i=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!i&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ule(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,i=this.state,s=i.selectValue,l=i.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c]},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,i=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=i.indexOf(s);s||(l=-1);var u=i.length-1,c=-1;if(i.length){switch(o){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,i=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(i);i||(u=-1),o==="up"?l=u>0?u-1:s.length-1:o==="down"?l=(u+1)%s.length:o==="pageup"?(l=u-a,l<0&&(l=0)):o==="pagedown"?(l=u+a,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(w3):be(be({},w3),this.props.theme):w3}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,i=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,h=d.options,v=this.hasValue();return{clearValue:o,cx:a,getStyles:i,getClassNames:s,getValue:l,hasValue:v,isMulti:f,isRtl:p,options:h,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,a=o.isClearable,i=o.isMulti;return a===void 0?i:a}},{key:"isOptionDisabled",value:function(o,a){return eke(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return tke(this.props,o,a)}},{key:"filterOption",value:function(o,a){return rke(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:i,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,a=o.isDisabled,i=o.isSearchable,s=o.inputId,l=o.inputValue,u=o.tabIndex,c=o.form,d=o.menuIsOpen,f=o.required,p=this.getComponents(),h=p.Input,v=this.state,b=v.inputIsHidden,g=v.ariaSelection,y=this.commonProps,S=s||this.getElementId("input"),w=be(be(be({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox"},d&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?m.createElement(h,G({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:S,innerRef:this.getInputRef,isDisabled:a,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},w)):m.createElement(Ggr,G({id:S,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:QR,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),i=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,f=this.commonProps,p=this.props,h=p.controlShouldRenderValue,v=p.isDisabled,b=p.isMulti,g=p.inputValue,y=p.placeholder,S=this.state,w=S.selectValue,$=S.focusedValue,C=S.isFocused;if(!this.hasValue()||!h)return g?null:m.createElement(d,G({},f,{key:"placeholder",isDisabled:v,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),y);if(b)return w.map(function(E,_){var k=E===$,I="".concat(o.getOptionLabel(E),"-").concat(o.getOptionValue(E));return m.createElement(i,G({},f,{components:{Container:s,Label:l,Remove:u},isFocused:k,isDisabled:v,key:I,index:_,removeProps:{onClick:function(){return o.removeValue(E)},onTouchEnd:function(){return o.removeValue(E)},onMouseDown:function(z){z.preventDefault()}},data:E}),o.formatOptionLabel(E,"value"))});if(g)return null;var x=w[0];return m.createElement(c,G({},f,{data:x,isDisabled:v}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,i=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(a,G({},i,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,i=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return m.createElement(a,G({},i,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,i=o.IndicatorSeparator;if(!a||!i)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return m.createElement(i,G({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var i=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(a,G({},i,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),i=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,f=a.NoOptionsMessage,p=a.Option,h=this.commonProps,v=this.state.focusedOption,b=this.props,g=b.captureMenuScroll,y=b.inputValue,S=b.isLoading,w=b.loadingMessage,$=b.minMenuHeight,C=b.maxMenuHeight,x=b.menuIsOpen,E=b.menuPlacement,_=b.menuPosition,k=b.menuPortalTarget,I=b.menuShouldBlockScroll,N=b.menuShouldScrollIntoView,z=b.noOptionsMessage,O=b.onMenuScrollToTop,A=b.onMenuScrollToBottom;if(!x)return null;var M=function(D,P){var R=D.type,W=D.data,U=D.isDisabled,q=D.isSelected,J=D.label,Z=D.value,Q=v===W,oe=U?void 0:function(){return o.onOptionHover(W)},ie=U?void 0:function(){return o.selectOption(W)},te="".concat(o.getElementId("option"),"-").concat(P),ae={id:te,onClick:ie,onMouseMove:oe,onMouseOver:oe,tabIndex:-1};return m.createElement(p,G({},h,{innerProps:ae,data:W,isDisabled:U,isSelected:q,key:te,label:J,type:R,value:Z,isFocused:Q,innerRef:Q?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(D.data,"menu"))},L;if(this.hasOptions())L=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var D=V.data,P=V.options,R=V.index,W="".concat(o.getElementId("group"),"-").concat(R),U="".concat(W,"-heading");return m.createElement(i,G({},h,{key:W,data:D,options:P,Heading:s,headingProps:{id:U,data:V.data},label:o.formatGroupLabel(V.data)}),V.options.map(function(q){return M(q,"".concat(R,"-").concat(q.index))}))}else if(V.type==="option")return M(V,"".concat(V.index))});else if(S){var j=w({inputValue:y});if(j===null)return null;L=m.createElement(d,h,j)}else{var H=z({inputValue:y});if(H===null)return null;L=m.createElement(f,h,H)}var B={minMenuHeight:$,maxMenuHeight:C,menuPlacement:E,menuPosition:_,menuShouldScrollIntoView:N},F=m.createElement(Lvr,G({},h,B),function(V){var D=V.ref,P=V.placerProps,R=P.placement,W=P.maxHeight;return m.createElement(l,G({},h,B,{innerRef:D,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove,id:o.getElementId("listbox")},isLoading:S,placement:R}),m.createElement(e0r,{captureEnabled:g,onTopArrive:O,onBottomArrive:A,lockEnabled:I},function(U){return m.createElement(u,G({},h,{innerRef:function(J){o.getMenuListRef(J),U(J)},isLoading:S,maxHeight:W,focusedOption:v}),L)}))});return k||_==="fixed"?m.createElement(c,G({},h,{appendTo:k,controlElement:this.controlRef,menuPlacement:E,menuPosition:_}),F):F}},{key:"renderFormField",value:function(){var o=this,a=this.props,i=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(!(!u||s)){if(c&&!this.hasValue())return m.createElement(r0r,{name:u,onFocus:this.onValueInputFocus});if(l)if(i){var f=d.map(function(v){return o.getOptionValue(v)}).join(i);return m.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(v,b){return m.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:o.getOptionValue(v)})}):m.createElement("input",{name:u,type:"hidden",value:""});return m.createElement("div",null,p)}else{var h=d[0]?this.getOptionValue(d[0]):"";return m.createElement("input",{name:u,type:"hidden",value:h})}}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,i=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return m.createElement(Vgr,G({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,i=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,h=this.state.isFocused,v=this.commonProps=this.getCommonProps();return m.createElement(s,G({},v,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),m.createElement(a,G({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:p}),m.createElement(l,G({},v,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),m.createElement(i,G({},v,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,f=o.options,p=o.value,h=o.menuIsOpen,v=o.inputValue,b=o.isMulti,g=lle(p),y={};if(i&&(p!==i.value||f!==i.options||h!==i.menuIsOpen||v!==i.inputValue)){var S=h?m0r(o,g):[],w=s?h0r(a,g):null,$=v0r(a,S);y={selectValue:g,focusedOption:$,focusedValue:w,clearFocusValueOnUpdate:!1}}var C=l!=null&&o!==i?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},x=u,E=c&&d;return c&&!E&&(x={value:aP(b,g,g[0]||null),options:g,action:"initial-input-focus"},E=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(x=null),be(be(be({},y),C),{},{prevProps:o,ariaSelection:x,prevWasFocused:E})}}]),r}(m.Component);oke.defaultProps=p0r;Xd();bq();yq();gq();var b0r=m.forwardRef(function(e,t){var r=Cvr(e);return m.createElement(oke,G({ref:t},r))});const y0r=b0r;function U$(){return U$=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var A0r=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=D0r(t,N0r);return h8({},r)},M0r=["innerRef","isDisabled","isHidden","inputClassName"];function tx(){return tx=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var j0r=function(t){var r=t.className,n=t.cx,o=t.value,a=t.selectProps,i=a.chakraStyles,s=a.isReadOnly,l=a.isRequired,u=A0r(t),c=u.innerRef,d=u.isDisabled,f=u.isHidden,p=u.inputClassName,h=B0r(u,M0r),v={gridArea:"1 / 2",font:"inherit",minW:"2px",border:0,margin:0,outline:0},b={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",_after:tx({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},v)},g=i!=null&&i.inputContainer?i.inputContainer(b,t):b,y=tx({label:"input",color:"inherit",bg:0,opacity:f?0:1,width:"100%",py:"0.125rem"},v),S=i!=null&&i.input?i.input(y,t):y;return Y.createElement(Nn,{className:n({"input-container":!0},r),"data-value":o||"",sx:g},Y.createElement(Jt.input,tx({className:n({input:!0},p),ref:c,sx:S,disabled:d,readOnly:s,"aria-readonly":s?!0:void 0,"aria-required":l?!0:void 0},h)))};const L0r=j0r;function jh(){return jh=Object.assign||function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var ubr=function(t){var r,n=t.components,o=n===void 0?{}:n;t.theme;var a=t.size,i=a===void 0?"md":a,s=t.colorScheme,l=s===void 0?"gray":s,u=t.isDisabled,c=t.isInvalid,d=t.isReadOnly,f=t.isRequired,p=t.inputId,h=t.tagVariant,v=t.hasStickyGroupHeaders,b=v===void 0?!1:v,g=t.selectedOptionStyle,y=g===void 0?"color":g,S=t.selectedOptionColor,w=S===void 0?"blue":S,$=t.focusBorderColor,C=t.errorBorderColor,x=t.chakraStyles,E=x===void 0?{}:x,_=t.onFocus,k=t.onBlur,I=lbr(t,sbr),N=PU({id:p,isDisabled:u,isInvalid:c,isRequired:f,isReadOnly:d,onFocus:_,onBlur:k}),z=Dz("gray.400","whiteAlpha.400"),O=i,A=["sm","md","lg"];A.includes(i)||(O="md");var M=h,L=["subtle","solid","outline"];h!==void 0&&(L.includes(h)||(M="subtle"));var j=y,H=["color","check"];H.includes(y)||(j="color");var B=w;typeof w!="string"&&(B="blue");var F=tF({components:tF({},ibr,o),colorScheme:l,size:O,tagVariant:M,selectedOptionStyle:j,selectedOptionColor:B,hasStickyGroupHeaders:b,placeholderColor:z,chakraStyles:E,focusBorderColor:$,errorBorderColor:C,onFocus:N.onFocus,onBlur:N.onBlur,isDisabled:N.disabled,isInvalid:!!N["aria-invalid"],inputId:N.id},I,{"aria-invalid":((r=I["aria-invalid"])!=null?r:N["aria-invalid"])?!0:void 0});return F};const cbr=ubr;function b8(){return b8=Object.assign||function(e){for(var t=1;tf(Tt(M.map(L=>L.value),y,w)),x=M=>f(Tt(M.value,y,w)),E=({target:M})=>p(t,Tt(M&&M.value,y,w)),_=({target:M})=>h(t,Tt(M&&M.value,y,w)),k=!i&&g.default===void 0,{valueLabelMap:I,displayEnumOptions:N}=m.useMemo(()=>{const M={};let L=[];return Array.isArray(y)&&(L=y.map((j,H)=>{const{value:B,label:F}=j;return M[H]=F||String(B),{label:F,value:String(H),isDisabled:Array.isArray(S)&&S.indexOf(B)!==-1}}),k&&L.unshift({value:"",label:a||""})),{valueLabelMap:M,displayEnumOptions:L}},[S,y,a,k]),z=typeof i<"u"&&i!==!1&&!!y,O=mi(c,y,z),A=z?(O||[]).map(M=>({label:I[M],value:M})):{label:I[O]||"",selectedIndex:O};return T.jsxs(Zd,{mb:1,...$,isDisabled:l||u,isRequired:s,isReadOnly:u,isInvalid:v&&v.length>0,children:[wr(T.jsx(nv,{htmlFor:t,id:`${t}-label`,children:n}),o||!n),T.jsx(fbr,{inputId:t,name:t,isMulti:z,options:N,placeholder:a,closeMenuOnSelect:!z,onBlur:E,onChange:z?C:x,onFocus:_,autoFocus:d,value:A,"aria-describedby":Ot(t)})]})}function mbr({id:e,placeholder:t,value:r,label:n,hideLabel:o,disabled:a,autofocus:i,readonly:s,onBlur:l,onFocus:u,onChange:c,options:d,uiSchema:f,required:p,rawErrors:h}){const v=ov({uiSchema:f}),b=({target:{value:S}})=>c(S===""?d.emptyValue:S),g=({target:S})=>l(e,S&&S.value),y=({target:S})=>u(e,S&&S.value);return T.jsxs(Zd,{mb:1,...v,isDisabled:a||s,isRequired:p,isReadOnly:s,isInvalid:h&&h.length>0,children:[wr(T.jsx(nv,{htmlFor:e,children:n}),o||!n),T.jsx(Whr,{id:e,name:e,value:r??"",placeholder:t,autoFocus:i,onChange:b,onBlur:g,onFocus:y,rows:d.rows,"aria-describedby":Ot(e)})]})}function hbr(e){const{id:t,uiSchema:r,readonly:n,disabled:o,label:a,hideLabel:i,value:s,onChange:l,onBlur:u,onFocus:c,rawErrors:d,required:f}=e,p=ov({uiSchema:r}),h=g=>l(g),v=({target:g})=>u(t,g&&g.value),b=({target:g})=>c(t,g&&g.value);return T.jsxs(Zd,{mb:1,...p,isDisabled:o||n,isRequired:f,isReadOnly:n,isInvalid:d&&d.length>0,children:[wr(T.jsx(nv,{htmlFor:t,children:a}),i||!a),T.jsxs(lhr,{value:s??"",onChange:h,onBlur:v,onFocus:b,"aria-describedby":Ot(t),children:[T.jsx(chr,{id:t,name:t}),T.jsxs(uhr,{children:[T.jsx(fhr,{}),T.jsx(dhr,{})]})]})]})}function vbr(){return{AltDateTimeWidget:O2e,AltDateWidget:MU,CheckboxWidget:gvr,CheckboxesWidget:bvr,RadioWidget:yvr,RangeWidget:Svr,SelectWidget:pbr,TextareaWidget:mbr,UpDownWidget:hbr}}function ake(){return{templates:mvr(),widgets:vbr()}}const gbr=ake();function bbr(){return Fd(ake())}bbr();const ybr=()=>T.jsx(DE,{styles:` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + body { + position: relative; + min-height: 100%; + font-feature-settings: 'kern'; + } + *, + *::before, + *::after { + border-width: 0; + border-style: solid; + box-sizing: border-box; + } + main { + display: block; + } + hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + pre, + code, + kbd, + samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + b, + strong { + font-weight: bold; + } + small { + font-size: 80%; + } + sub, + sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + sub { + bottom: -0.25em; + } + sup { + top: -0.5em; + } + img { + border-style: none; + } + button, + input, + optgroup, + select, + textarea { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + button, + input { + overflow: visible; + } + button, + select { + text-transform: none; + } + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; + } + fieldset { + padding: 0.35em 0.75em 0.625em; + } + legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + progress { + vertical-align: baseline; + } + textarea { + overflow: auto; + } + [type="checkbox"], + [type="radio"] { + box-sizing: border-box; + padding: 0; + } + [type="number"]::-webkit-inner-spin-button, + [type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + input[type="number"] { + -moz-appearance: textfield; + } + [type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + [type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + details { + display: block; + } + summary { + display: list-item; + } + template { + display: none; + } + [hidden] { + display: none !important; + } + body, + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre { + margin: 0; + } + button { + background: transparent; + padding: 0; + } + fieldset { + margin: 0; + padding: 0; + } + ol, + ul { + margin: 0; + padding: 0; + } + textarea { + resize: vertical; + } + button, + [role="button"] { + cursor: pointer; + } + button::-moz-focus-inner { + border: 0 !important; + } + table { + border-collapse: collapse; + } + h1, + h2, + h3, + h4, + h5, + h6 { + font-size: inherit; + font-weight: inherit; + } + button, + input, + optgroup, + select, + textarea { + padding: 0; + line-height: inherit; + color: inherit; + } + img, + svg, + video, + canvas, + audio, + iframe, + embed, + object { + display: block; + } + img, + video { + max-width: 100%; + height: auto; + } + [data-js-focus-visible] :focus:not([data-focus-visible-added]) { + outline: none; + box-shadow: none; + } + select::-ms-expand { + display: none; + } + input { + border-width: revert; + border-color: revert; + border-style: revert; + } + .array-item > hr { + margin-top: 16px; + margin-bottom: 16px; + } + `}),Sbr=vL(e=>$I({container:e,key:"rjsf"})),wbr=e=>({document:t})=>T.jsx("div",{style:{margin:2},children:T.jsx(Pve,{value:Sbr(t.head),children:T.jsxs(R2e,{resetCSS:!1,children:[T.jsx(ybr,{}),e.children]})})});var y8={exports:{}},ike={},Tc={},P1={},R_={},zr={},Y$={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((S,w)=>`${S}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((S,w)=>(w instanceof r&&(S[w.str]=(S[w.str]||0)+1),S),{})}}e._Code=n,e.nil=new n("");function o(g,...y){const S=[g[0]];let w=0;for(;w{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${u}${d.scopePath}`})}scopeCode(u=this._values,c,d){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},c,d)}_reduceValues(u,c,d={},f){let p=t.nil;for(const h in u){const v=u[h];if(!v)continue;const b=d[h]=d[h]||new Map;v.forEach(g=>{if(b.has(g))return;b.set(g,n.Started);let y=c(g);if(y){const S=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${S} ${g} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(g))p=(0,t._)`${p}${y}${this.opts._n}`;else throw new r(g);b.set(g,n.Completed)})}return p}}e.ValueScope=s})(S8);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Y$,r=S8;var n=Y$;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=S8;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(P,R){return this}}class i extends a{constructor(P,R,W){super(),this.varKind=P,this.name=R,this.rhs=W}render({es5:P,_n:R}){const W=P?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${W} ${this.name}${U};`+R}optimizeNames(P,R){if(P[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,P,R)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(P,R,W){super(),this.lhs=P,this.rhs=R,this.sideEffects=W}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,R){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,P,R),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(P,this.rhs)}}class l extends s{constructor(P,R,W,U){super(P,W,U),this.op=R}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class u extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class c extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends a{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends a{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,R){return this.code=O(this.code,P,R),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((R,W)=>R+W.render(P),"")}optimizeNodes(){const{nodes:P}=this;let R=P.length;for(;R--;){const W=P[R].optimizeNodes();Array.isArray(W)?P.splice(R,1,...W):W?P[R]=W:P.splice(R,1)}return P.length>0?this:void 0}optimizeNames(P,R){const{nodes:W}=this;let U=W.length;for(;U--;){const q=W[U];q.optimizeNames(P,R)||(A(P,q.names),W.splice(U,1))}return W.length>0?this:void 0}get names(){return this.nodes.reduce((P,R)=>N(P,R.names),{})}}class h extends p{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class v extends p{}class b extends h{}b.kind="else";class g extends h{constructor(P,R){super(R),this.condition=P}render(P){let R=`if(${this.condition})`+super.render(P);return this.else&&(R+="else "+this.else.render(P)),R}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let R=this.else;if(R){const W=R.optimizeNodes();R=this.else=Array.isArray(W)?new b(W):W}if(R)return P===!1?R instanceof g?R:R.nodes:this.nodes.length?this:new g(M(P),R instanceof g?[R]:R.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,R){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(P,R),!!(super.optimizeNames(P,R)||this.else))return this.condition=O(this.condition,P,R),this}get names(){const P=super.names;return z(P,this.condition),this.else&&N(P,this.else.names),P}}g.kind="if";class y extends h{}y.kind="for";class S extends y{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,R){if(super.optimizeNames(P,R))return this.iteration=O(this.iteration,P,R),this}get names(){return N(super.names,this.iteration.names)}}class w extends y{constructor(P,R,W,U){super(),this.varKind=P,this.name=R,this.from=W,this.to=U}render(P){const R=P.es5?r.varKinds.var:this.varKind,{name:W,from:U,to:q}=this;return`for(${R} ${W}=${U}; ${W}<${q}; ${W}++)`+super.render(P)}get names(){const P=z(super.names,this.from);return z(P,this.to)}}class $ extends y{constructor(P,R,W,U){super(),this.loop=P,this.varKind=R,this.name=W,this.iterable=U}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,R){if(super.optimizeNames(P,R))return this.iterable=O(this.iterable,P,R),this}get names(){return N(super.names,this.iterable.names)}}class C extends h{constructor(P,R,W){super(),this.name=P,this.args=R,this.async=W}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}C.kind="func";class x extends p{render(P){return"return "+super.render(P)}}x.kind="return";class E extends h{render(P){let R="try"+super.render(P);return this.catch&&(R+=this.catch.render(P)),this.finally&&(R+=this.finally.render(P)),R}optimizeNodes(){var P,R;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(R=this.finally)===null||R===void 0||R.optimizeNodes(),this}optimizeNames(P,R){var W,U;return super.optimizeNames(P,R),(W=this.catch)===null||W===void 0||W.optimizeNames(P,R),(U=this.finally)===null||U===void 0||U.optimizeNames(P,R),this}get names(){const P=super.names;return this.catch&&N(P,this.catch.names),this.finally&&N(P,this.finally.names),P}}class _ extends h{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}_.kind="catch";class k extends h{render(P){return"finally"+super.render(P)}}k.kind="finally";class I{constructor(P,R={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...R,_n:R.lines?` +`:""},this._extScope=P,this._scope=new r.Scope({parent:P}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,R){const W=this._extScope.value(P,R);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}getScopeValue(P,R){return this._extScope.getValue(P,R)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,R,W,U){const q=this._scope.toName(R);return W!==void 0&&U&&(this._constants[q.str]=W),this._leafNode(new i(P,q,W)),q}const(P,R,W){return this._def(r.varKinds.const,P,R,W)}let(P,R,W){return this._def(r.varKinds.let,P,R,W)}var(P,R,W){return this._def(r.varKinds.var,P,R,W)}assign(P,R,W){return this._leafNode(new s(P,R,W))}add(P,R){return this._leafNode(new l(P,e.operators.ADD,R))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new f(P)),this}object(...P){const R=["{"];for(const[W,U]of P)R.length>1&&R.push(","),R.push(W),(W!==U||this.opts.es5)&&(R.push(":"),(0,t.addCodeArg)(R,U));return R.push("}"),new t._Code(R)}if(P,R,W){if(this._blockNode(new g(P)),R&&W)this.code(R).else().code(W).endIf();else if(R)this.code(R).endIf();else if(W)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new g(P))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(g,b)}_for(P,R){return this._blockNode(P),R&&this.code(R).endFor(),this}for(P,R){return this._for(new S(P),R)}forRange(P,R,W,U,q=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(P);return this._for(new w(q,J,R,W),()=>U(J))}forOf(P,R,W,U=r.varKinds.const){const q=this._scope.toName(P);if(this.opts.es5){const J=R instanceof t.Name?R:this.var("_arr",R);return this.forRange("_i",0,(0,t._)`${J}.length`,Z=>{this.var(q,(0,t._)`${J}[${Z}]`),W(q)})}return this._for(new $("of",U,q,R),()=>W(q))}forIn(P,R,W,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${R})`,W);const q=this._scope.toName(P);return this._for(new $("in",U,q,R),()=>W(q))}endFor(){return this._endBlockNode(y)}label(P){return this._leafNode(new u(P))}break(P){return this._leafNode(new c(P))}return(P){const R=new x;if(this._blockNode(R),this.code(P),R.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(P,R,W){if(!R&&!W)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new E;if(this._blockNode(U),this.code(P),R){const q=this.name("e");this._currNode=U.catch=new _(q),R(q)}return W&&(this._currNode=U.finally=new k,this.code(W)),this._endBlockNode(_,k)}throw(P){return this._leafNode(new d(P))}block(P,R){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(R),this}endBlock(P){const R=this._blockStarts.pop();if(R===void 0)throw new Error("CodeGen: not in self-balancing block");const W=this._nodes.length-R;if(W<0||P!==void 0&&W!==P)throw new Error(`CodeGen: wrong number of nodes: ${W} vs ${P} expected`);return this._nodes.length=R,this}func(P,R=t.nil,W,U){return this._blockNode(new C(P,R,W)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,R){const W=this._currNode;if(W instanceof P||R&&W instanceof R)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${R?`${P.kind}/${R.kind}`:P.kind}"`)}_elseNode(P){const R=this._currNode;if(!(R instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=R.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const R=this._nodes;R[R.length-1]=P}}e.CodeGen=I;function N(D,P){for(const R in P)D[R]=(D[R]||0)+(P[R]||0);return D}function z(D,P){return P instanceof t._CodeOrName?N(D,P.names):D}function O(D,P,R){if(D instanceof t.Name)return W(D);if(!U(D))return D;return new t._Code(D._items.reduce((q,J)=>(J instanceof t.Name&&(J=W(J)),J instanceof t._Code?q.push(...J._items):q.push(J),q),[]));function W(q){const J=R[q.str];return J===void 0||P[q.str]!==1?q:(delete P[q.str],J)}function U(q){return q instanceof t._Code&&q._items.some(J=>J instanceof t.Name&&P[J.str]===1&&R[J.str]!==void 0)}}function A(D,P){for(const R in P)D[R]=(D[R]||0)-(P[R]||0)}function M(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${V(D)}`}e.not=M;const L=F(e.operators.AND);function j(...D){return D.reduce(L)}e.and=j;const H=F(e.operators.OR);function B(...D){return D.reduce(H)}e.or=B;function F(D){return(P,R)=>P===t.nil?R:R===t.nil?P:(0,t._)`${V(P)} ${D} ${V(R)}`}function V(D){return D instanceof t.Name?D:(0,t._)`(${D})`}})(zr);var ln={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=zr,r=Y$;function n(C){const x={};for(const E of C)x[E]=!0;return x}e.toHash=n;function o(C,x){return typeof x=="boolean"?x:Object.keys(x).length===0?!0:(a(C,x),!i(x,C.self.RULES.all))}e.alwaysValidSchema=o;function a(C,x=C.schema){const{opts:E,self:_}=C;if(!E.strictSchema||typeof x=="boolean")return;const k=_.RULES.keywords;for(const I in x)k[I]||$(C,`unknown keyword: "${I}"`)}e.checkUnknownRules=a;function i(C,x){if(typeof C=="boolean")return!C;for(const E in C)if(x[E])return!0;return!1}e.schemaHasRules=i;function s(C,x){if(typeof C=="boolean")return!C;for(const E in C)if(E!=="$ref"&&x.all[E])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:C,schemaPath:x},E,_,k){if(!k){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,t._)`${E}`}return(0,t._)`${C}${x}${(0,t.getProperty)(_)}`}e.schemaRefOrVal=l;function u(C){return f(decodeURIComponent(C))}e.unescapeFragment=u;function c(C){return encodeURIComponent(d(C))}e.escapeFragment=c;function d(C){return typeof C=="number"?`${C}`:C.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(C){return C.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function p(C,x){if(Array.isArray(C))for(const E of C)x(E);else x(C)}e.eachItem=p;function h({mergeNames:C,mergeToName:x,mergeValues:E,resultToName:_}){return(k,I,N,z)=>{const O=N===void 0?I:N instanceof t.Name?(I instanceof t.Name?C(k,I,N):x(k,I,N),N):I instanceof t.Name?(x(k,N,I),I):E(I,N);return z===t.Name&&!(O instanceof t.Name)?_(k,O):O}}e.mergeEvaluated={props:h({mergeNames:(C,x,E)=>C.if((0,t._)`${E} !== true && ${x} !== undefined`,()=>{C.if((0,t._)`${x} === true`,()=>C.assign(E,!0),()=>C.assign(E,(0,t._)`${E} || {}`).code((0,t._)`Object.assign(${E}, ${x})`))}),mergeToName:(C,x,E)=>C.if((0,t._)`${E} !== true`,()=>{x===!0?C.assign(E,!0):(C.assign(E,(0,t._)`${E} || {}`),b(C,E,x))}),mergeValues:(C,x)=>C===!0?!0:{...C,...x},resultToName:v}),items:h({mergeNames:(C,x,E)=>C.if((0,t._)`${E} !== true && ${x} !== undefined`,()=>C.assign(E,(0,t._)`${x} === true ? true : ${E} > ${x} ? ${E} : ${x}`)),mergeToName:(C,x,E)=>C.if((0,t._)`${E} !== true`,()=>C.assign(E,x===!0?!0:(0,t._)`${E} > ${x} ? ${E} : ${x}`)),mergeValues:(C,x)=>C===!0?!0:Math.max(C,x),resultToName:(C,x)=>C.var("items",x)})};function v(C,x){if(x===!0)return C.var("props",!0);const E=C.var("props",(0,t._)`{}`);return x!==void 0&&b(C,E,x),E}e.evaluatedPropsToName=v;function b(C,x,E){Object.keys(E).forEach(_=>C.assign((0,t._)`${x}${(0,t.getProperty)(_)}`,!0))}e.setEvaluated=b;const g={};function y(C,x){return C.scopeValue("func",{ref:x,code:g[x.code]||(g[x.code]=new r._Code(x.code))})}e.useFunc=y;var S;(function(C){C[C.Num=0]="Num",C[C.Str=1]="Str"})(S=e.Type||(e.Type={}));function w(C,x,E){if(C instanceof t.Name){const _=x===S.Num;return E?_?(0,t._)`"[" + ${C} + "]"`:(0,t._)`"['" + ${C} + "']"`:_?(0,t._)`"/" + ${C}`:(0,t._)`"/" + ${C}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,t.getProperty)(C).toString():"/"+d(C)}e.getErrorPath=w;function $(C,x,E=C.opts.strictSchema){if(E){if(x=`strict mode: ${x}`,E===!0)throw new Error(x);C.self.logger.warn(x)}}e.checkStrictMode=$})(ln);var Jd={};Object.defineProperty(Jd,"__esModule",{value:!0});const xi=zr,Cbr={data:new xi.Name("data"),valCxt:new xi.Name("valCxt"),instancePath:new xi.Name("instancePath"),parentData:new xi.Name("parentData"),parentDataProperty:new xi.Name("parentDataProperty"),rootData:new xi.Name("rootData"),dynamicAnchors:new xi.Name("dynamicAnchors"),vErrors:new xi.Name("vErrors"),errors:new xi.Name("errors"),this:new xi.Name("this"),self:new xi.Name("self"),scope:new xi.Name("scope"),json:new xi.Name("json"),jsonPos:new xi.Name("jsonPos"),jsonLen:new xi.Name("jsonLen"),jsonPart:new xi.Name("jsonPart")};Jd.default=Cbr;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=zr,r=ln,n=Jd;e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:g})=>g?(0,t.str)`"${b}" keyword must be ${g} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,g=e.keywordError,y,S){const{it:w}=b,{gen:$,compositeRule:C,allErrors:x}=w,E=d(b,g,y);S??(C||x)?l($,E):u(w,(0,t._)`[${E}]`)}e.reportError=o;function a(b,g=e.keywordError,y){const{it:S}=b,{gen:w,compositeRule:$,allErrors:C}=S,x=d(b,g,y);l(w,x),$||C||u(S,n.default.vErrors)}e.reportExtraError=a;function i(b,g){b.assign(n.default.errors,g),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(g,()=>b.assign((0,t._)`${n.default.vErrors}.length`,g),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:b,keyword:g,schemaValue:y,data:S,errsCount:w,it:$}){if(w===void 0)throw new Error("ajv implementation error");const C=b.name("err");b.forRange("i",w,n.default.errors,x=>{b.const(C,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${C}.instancePath === undefined`,()=>b.assign((0,t._)`${C}.instancePath`,(0,t.strConcat)(n.default.instancePath,$.errorPath))),b.assign((0,t._)`${C}.schemaPath`,(0,t.str)`${$.errSchemaPath}/${g}`),$.opts.verbose&&(b.assign((0,t._)`${C}.schema`,y),b.assign((0,t._)`${C}.data`,S))})}e.extendErrors=s;function l(b,g){const y=b.const("err",g);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),b.code((0,t._)`${n.default.errors}++`)}function u(b,g){const{gen:y,validateName:S,schemaEnv:w}=b;w.$async?y.throw((0,t._)`new ${b.ValidationError}(${g})`):(y.assign((0,t._)`${S}.errors`,g),y.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(b,g,y){const{createErrors:S}=b.it;return S===!1?(0,t._)`{}`:f(b,g,y)}function f(b,g,y={}){const{gen:S,it:w}=b,$=[p(w,y),h(b,y)];return v(b,g,$),S.object(...$)}function p({errorPath:b},{instancePath:g}){const y=g?(0,t.str)`${b}${(0,r.getErrorPath)(g,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function h({keyword:b,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:S}){let w=S?g:(0,t.str)`${g}/${b}`;return y&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(y,r.Type.Str)}`),[c.schemaPath,w]}function v(b,{params:g,message:y},S){const{keyword:w,data:$,schemaValue:C,it:x}=b,{opts:E,propertyName:_,topSchemaRef:k,schemaPath:I}=x;S.push([c.keyword,w],[c.params,typeof g=="function"?g(b):g||(0,t._)`{}`]),E.messages&&S.push([c.message,typeof y=="function"?y(b):y]),E.verbose&&S.push([c.schema,C],[c.parentSchema,(0,t._)`${k}${I}`],[n.default.data,$]),_&&S.push([c.propertyName,_])}})(R_);Object.defineProperty(P1,"__esModule",{value:!0});P1.boolOrEmptySchema=P1.topBoolOrEmptySchema=void 0;const xbr=R_,$br=zr,Ebr=Jd,_br={message:"boolean schema is false"};function kbr(e){const{gen:t,schema:r,validateName:n}=e;r===!1?ske(e,!1):typeof r=="object"&&r.$async===!0?t.return(Ebr.default.data):(t.assign((0,$br._)`${n}.errors`,null),t.return(!0))}P1.topBoolOrEmptySchema=kbr;function Pbr(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),ske(e)):r.var(t,!0)}P1.boolOrEmptySchema=Pbr;function ske(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,xbr.reportError)(o,_br,void 0,t)}var F_={},Jg={};Object.defineProperty(Jg,"__esModule",{value:!0});Jg.getRules=Jg.isJSONType=void 0;const Tbr=["string","number","integer","boolean","null","object","array"],Ibr=new Set(Tbr);function Rbr(e){return typeof e=="string"&&Ibr.has(e)}Jg.isJSONType=Rbr;function Fbr(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Jg.getRules=Fbr;var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});Hf.shouldUseRule=Hf.shouldUseGroup=Hf.schemaHasRulesForType=void 0;function Obr({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&lke(e,n)}Hf.schemaHasRulesForType=Obr;function lke(e,t){return t.rules.some(r=>uke(e,r))}Hf.shouldUseGroup=lke;function uke(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Hf.shouldUseRule=uke;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Jg,r=Hf,n=R_,o=zr,a=ln;var i;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(S){const w=l(S.type);if(w.includes("null")){if(S.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&S.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');S.nullable===!0&&w.push("null")}return w}e.getSchemaTypes=s;function l(S){const w=Array.isArray(S)?S:S?[S]:[];if(w.every(t.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}e.getJSONTypes=l;function u(S,w){const{gen:$,data:C,opts:x}=S,E=d(w,x.coerceTypes),_=w.length>0&&!(E.length===0&&w.length===1&&(0,r.schemaHasRulesForType)(S,w[0]));if(_){const k=v(w,C,x.strictNumbers,i.Wrong);$.if(k,()=>{E.length?f(S,w,E):g(S)})}return _}e.coerceAndCheckDataType=u;const c=new Set(["string","number","integer","boolean","null"]);function d(S,w){return w?S.filter($=>c.has($)||w==="array"&&$==="array"):[]}function f(S,w,$){const{gen:C,data:x,opts:E}=S,_=C.let("dataType",(0,o._)`typeof ${x}`),k=C.let("coerced",(0,o._)`undefined`);E.coerceTypes==="array"&&C.if((0,o._)`${_} == 'object' && Array.isArray(${x}) && ${x}.length == 1`,()=>C.assign(x,(0,o._)`${x}[0]`).assign(_,(0,o._)`typeof ${x}`).if(v(w,x,E.strictNumbers),()=>C.assign(k,x))),C.if((0,o._)`${k} !== undefined`);for(const N of $)(c.has(N)||N==="array"&&E.coerceTypes==="array")&&I(N);C.else(),g(S),C.endIf(),C.if((0,o._)`${k} !== undefined`,()=>{C.assign(x,k),p(S,k)});function I(N){switch(N){case"string":C.elseIf((0,o._)`${_} == "number" || ${_} == "boolean"`).assign(k,(0,o._)`"" + ${x}`).elseIf((0,o._)`${x} === null`).assign(k,(0,o._)`""`);return;case"number":C.elseIf((0,o._)`${_} == "boolean" || ${x} === null + || (${_} == "string" && ${x} && ${x} == +${x})`).assign(k,(0,o._)`+${x}`);return;case"integer":C.elseIf((0,o._)`${_} === "boolean" || ${x} === null + || (${_} === "string" && ${x} && ${x} == +${x} && !(${x} % 1))`).assign(k,(0,o._)`+${x}`);return;case"boolean":C.elseIf((0,o._)`${x} === "false" || ${x} === 0 || ${x} === null`).assign(k,!1).elseIf((0,o._)`${x} === "true" || ${x} === 1`).assign(k,!0);return;case"null":C.elseIf((0,o._)`${x} === "" || ${x} === 0 || ${x} === false`),C.assign(k,null);return;case"array":C.elseIf((0,o._)`${_} === "string" || ${_} === "number" + || ${_} === "boolean" || ${x} === null`).assign(k,(0,o._)`[${x}]`)}}}function p({gen:S,parentData:w,parentDataProperty:$},C){S.if((0,o._)`${w} !== undefined`,()=>S.assign((0,o._)`${w}[${$}]`,C))}function h(S,w,$,C=i.Correct){const x=C===i.Correct?o.operators.EQ:o.operators.NEQ;let E;switch(S){case"null":return(0,o._)`${w} ${x} null`;case"array":E=(0,o._)`Array.isArray(${w})`;break;case"object":E=(0,o._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":E=_((0,o._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":E=_();break;default:return(0,o._)`typeof ${w} ${x} ${S}`}return C===i.Correct?E:(0,o.not)(E);function _(k=o.nil){return(0,o.and)((0,o._)`typeof ${w} == "number"`,k,$?(0,o._)`isFinite(${w})`:o.nil)}}e.checkDataType=h;function v(S,w,$,C){if(S.length===1)return h(S[0],w,$,C);let x;const E=(0,a.toHash)(S);if(E.array&&E.object){const _=(0,o._)`typeof ${w} != "object"`;x=E.null?_:(0,o._)`!${w} || ${_}`,delete E.null,delete E.array,delete E.object}else x=o.nil;E.number&&delete E.integer;for(const _ in E)x=(0,o.and)(x,h(_,w,$,C));return x}e.checkDataTypes=v;const b={message:({schema:S})=>`must be ${S}`,params:({schema:S,schemaValue:w})=>typeof S=="string"?(0,o._)`{type: ${S}}`:(0,o._)`{type: ${w}}`};function g(S){const w=y(S);(0,n.reportError)(w,b)}e.reportTypeError=g;function y(S){const{gen:w,data:$,schema:C}=S,x=(0,a.schemaRefOrVal)(S,C,"type");return{gen:w,keyword:"type",data:$,schema:C.type,schemaCode:x,schemaValue:x,parentSchema:C,params:{},it:S}}})(F_);var gA={};Object.defineProperty(gA,"__esModule",{value:!0});gA.assignDefaults=void 0;const ub=zr,Nbr=ln;function Dbr(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const o in r)$le(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,a)=>$le(e,a,o.default))}gA.assignDefaults=Dbr;function $le(e,t,r){const{gen:n,compositeRule:o,data:a,opts:i}=e;if(r===void 0)return;const s=(0,ub._)`${a}${(0,ub.getProperty)(t)}`;if(o){(0,Nbr.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,ub._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,ub._)`${l} || ${s} === null || ${s} === ""`),n.if(l,(0,ub._)`${s} = ${(0,ub.stringify)(r)}`)}var Cd={},Br={};Object.defineProperty(Br,"__esModule",{value:!0});Br.validateUnion=Br.validateArray=Br.usePattern=Br.callValidateCode=Br.schemaProperties=Br.allSchemaProperties=Br.noPropertyInData=Br.propertyInData=Br.isOwnProperty=Br.hasPropFunc=Br.reportMissingProp=Br.checkMissingProp=Br.checkReportMissingProp=void 0;const ao=zr,jU=ln,dm=Jd,Abr=ln;function Mbr(e,t){const{gen:r,data:n,it:o}=e;r.if(zU(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ao._)`${t}`},!0),e.error()})}Br.checkReportMissingProp=Mbr;function Bbr({gen:e,data:t,it:{opts:r}},n,o){return(0,ao.or)(...n.map(a=>(0,ao.and)(zU(e,t,a,r.ownProperties),(0,ao._)`${o} = ${a}`)))}Br.checkMissingProp=Bbr;function jbr(e,t){e.setParams({missingProperty:t},!0),e.error()}Br.reportMissingProp=jbr;function cke(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ao._)`Object.prototype.hasOwnProperty`})}Br.hasPropFunc=cke;function LU(e,t,r){return(0,ao._)`${cke(e)}.call(${t}, ${r})`}Br.isOwnProperty=LU;function Lbr(e,t,r,n){const o=(0,ao._)`${t}${(0,ao.getProperty)(r)} !== undefined`;return n?(0,ao._)`${o} && ${LU(e,t,r)}`:o}Br.propertyInData=Lbr;function zU(e,t,r,n){const o=(0,ao._)`${t}${(0,ao.getProperty)(r)} === undefined`;return n?(0,ao.or)(o,(0,ao.not)(LU(e,t,r))):o}Br.noPropertyInData=zU;function dke(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Br.allSchemaProperties=dke;function zbr(e,t){return dke(t).filter(r=>!(0,jU.alwaysValidSchema)(e,t[r]))}Br.schemaProperties=zbr;function Vbr({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:a},it:i},s,l,u){const c=u?(0,ao._)`${e}, ${t}, ${n}${o}`:t,d=[[dm.default.instancePath,(0,ao.strConcat)(dm.default.instancePath,a)],[dm.default.parentData,i.parentData],[dm.default.parentDataProperty,i.parentDataProperty],[dm.default.rootData,dm.default.rootData]];i.opts.dynamicRef&&d.push([dm.default.dynamicAnchors,dm.default.dynamicAnchors]);const f=(0,ao._)`${c}, ${r.object(...d)}`;return l!==ao.nil?(0,ao._)`${s}.call(${l}, ${f})`:(0,ao._)`${s}(${f})`}Br.callValidateCode=Vbr;const Hbr=(0,ao._)`new RegExp`;function Wbr({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,ao._)`${o.code==="new RegExp"?Hbr:(0,Abr.useFunc)(e,o)}(${r}, ${n})`})}Br.usePattern=Wbr;function qbr(e){const{gen:t,data:r,keyword:n,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,ao._)`${r}.length`);t.forRange("i",0,l,u=>{e.subschema({keyword:n,dataProp:u,dataPropType:jU.Type.Num},a),t.if((0,ao.not)(a),s)})}}Br.validateArray=qbr;function Ubr(e){const{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,jU.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((l,u)=>{const c=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},s);t.assign(i,(0,ao._)`${i} || ${s}`),e.mergeValidEvaluated(c,s)||t.if((0,ao.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Br.validateUnion=Ubr;Object.defineProperty(Cd,"__esModule",{value:!0});Cd.validateKeywordUsage=Cd.validSchemaType=Cd.funcKeywordCode=Cd.macroKeywordCode=void 0;const is=zr,Av=Jd,Kbr=Br,Gbr=R_;function Ybr(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=fke(r,n,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const u=r.name("valid");e.subschema({schema:s,schemaPath:is.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}Cd.macroKeywordCode=Ybr;function Xbr(e,t){var r;const{gen:n,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;Zbr(l,t);const u=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,c=fke(n,o,u),d=n.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)v(),t.modifying&&Ele(e),b(()=>e.error());else{const g=t.async?p():h();t.modifying&&Ele(e),b(()=>Qbr(e,g))}}function p(){const g=n.let("ruleErrs",null);return n.try(()=>v((0,is._)`await `),y=>n.assign(d,!1).if((0,is._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(g,(0,is._)`${y}.errors`),()=>n.throw(y))),g}function h(){const g=(0,is._)`${c}.errors`;return n.assign(g,null),v(is.nil),g}function v(g=t.async?(0,is._)`await `:is.nil){const y=l.opts.passContext?Av.default.this:Av.default.self,S=!("compile"in t&&!s||t.schema===!1);n.assign(d,(0,is._)`${g}${(0,Kbr.callValidateCode)(e,c,y,S)}`,t.modifying)}function b(g){var y;n.if((0,is.not)((y=t.valid)!==null&&y!==void 0?y:d),g)}}Cd.funcKeywordCode=Xbr;function Ele(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,is._)`${n.parentData}[${n.parentDataProperty}]`))}function Qbr(e,t){const{gen:r}=e;r.if((0,is._)`Array.isArray(${t})`,()=>{r.assign(Av.default.vErrors,(0,is._)`${Av.default.vErrors} === null ? ${t} : ${Av.default.vErrors}.concat(${t})`).assign(Av.default.errors,(0,is._)`${Av.default.vErrors}.length`),(0,Gbr.extendErrors)(e)},()=>e.error())}function Zbr({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function fke(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,is.stringify)(r)})}function Jbr(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Cd.validSchemaType=Jbr;function eyr({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}Cd.validateKeywordUsage=eyr;var dh={};Object.defineProperty(dh,"__esModule",{value:!0});dh.extendSubschemaMode=dh.extendSubschemaData=dh.getSubschema=void 0;const sd=zr,pke=ln;function tyr(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,sd._)`${e.schemaPath}${(0,sd.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,sd._)`${e.schemaPath}${(0,sd.getProperty)(t)}${(0,sd.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,pke.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}dh.getSubschema=tyr;function ryr(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:u,dataPathArr:c,opts:d}=t,f=s.let("data",(0,sd._)`${t.data}${(0,sd.getProperty)(r)}`,!0);l(f),e.errorPath=(0,sd.str)`${u}${(0,pke.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,sd._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(o!==void 0){const u=o instanceof sd.Name?o:s.let("data",o,!0);l(u),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}dh.extendSubschemaData=ryr;function nyr(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}dh.extendSubschemaMode=nyr;var ni={},Hp=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r},mke={exports:{}},Km=mke.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};gT(t,n,o,e,"",e)};Km.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Km.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Km.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Km.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function gT(e,t,r,n,o,a,i,s,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,a,i,s,l,u);for(var c in n){var d=n[c];if(Array.isArray(d)){if(c in Km.arrayKeywords)for(var f=0;ft+=hke(n)),t===1/0))return 1/0}return t}function vke(e,t="",r){r!==!1&&(t=wy(t));const n=e.parse(t);return gke(e,n)}ni.getFullPath=vke;function gke(e,t){return e.serialize(t).split("#")[0]+"#"}ni._getFullPath=gke;const fyr=/#\/?$/;function wy(e){return e?e.replace(fyr,""):""}ni.normalizeId=wy;function pyr(e,t,r){return r=wy(r),e.resolve(t,r)}ni.resolveUrl=pyr;const myr=/^[a-z_][-a-z0-9._]*$/i;function hyr(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,o=wy(e[r]||t),a={"":o},i=vke(n,o,!1),s={},l=new Set;return lyr(e,{allKeys:!0},(d,f,p,h)=>{if(h===void 0)return;const v=i+f;let b=a[h];typeof d[r]=="string"&&(b=g.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),a[f]=b;function g(S){const w=this.opts.uriResolver.resolve;if(S=wy(b?w(b,S):S),l.has(S))throw c(S);l.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?u(d,$.schema,S):S!==wy(v)&&(S[0]==="#"?(u(d,s[S],S),s[S]=d):this.refs[S]=v),S}function y(S){if(typeof S=="string"){if(!myr.test(S))throw new Error(`invalid anchor "${S}"`);g.call(this,`#${S}`)}}}),s;function u(d,f,p){if(f!==void 0&&!syr(d,f))throw c(p)}function c(d){return new Error(`reference "${d}" resolves to more than one schema`)}}ni.getSchemaRefs=hyr;Object.defineProperty(Tc,"__esModule",{value:!0});Tc.getData=Tc.KeywordCxt=Tc.validateFunctionCode=void 0;const bke=P1,_le=F_,VU=Hf,rF=F_,vyr=gA,rx=Cd,C3=dh,qt=zr,pr=Jd,gyr=ni,Wf=ln,Iw=R_;function byr(e){if(wke(e)&&(Cke(e),Ske(e))){wyr(e);return}yke(e,()=>(0,bke.topBoolOrEmptySchema)(e))}Tc.validateFunctionCode=byr;function yke({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,(0,qt._)`${pr.default.data}, ${pr.default.valCxt}`,n.$async,()=>{e.code((0,qt._)`"use strict"; ${kle(r,o)}`),Syr(e,o),e.code(a)}):e.func(t,(0,qt._)`${pr.default.data}, ${yyr(o)}`,n.$async,()=>e.code(kle(r,o)).code(a))}function yyr(e){return(0,qt._)`{${pr.default.instancePath}="", ${pr.default.parentData}, ${pr.default.parentDataProperty}, ${pr.default.rootData}=${pr.default.data}${e.dynamicRef?(0,qt._)`, ${pr.default.dynamicAnchors}={}`:qt.nil}}={}`}function Syr(e,t){e.if(pr.default.valCxt,()=>{e.var(pr.default.instancePath,(0,qt._)`${pr.default.valCxt}.${pr.default.instancePath}`),e.var(pr.default.parentData,(0,qt._)`${pr.default.valCxt}.${pr.default.parentData}`),e.var(pr.default.parentDataProperty,(0,qt._)`${pr.default.valCxt}.${pr.default.parentDataProperty}`),e.var(pr.default.rootData,(0,qt._)`${pr.default.valCxt}.${pr.default.rootData}`),t.dynamicRef&&e.var(pr.default.dynamicAnchors,(0,qt._)`${pr.default.valCxt}.${pr.default.dynamicAnchors}`)},()=>{e.var(pr.default.instancePath,(0,qt._)`""`),e.var(pr.default.parentData,(0,qt._)`undefined`),e.var(pr.default.parentDataProperty,(0,qt._)`undefined`),e.var(pr.default.rootData,pr.default.data),t.dynamicRef&&e.var(pr.default.dynamicAnchors,(0,qt._)`{}`)})}function wyr(e){const{schema:t,opts:r,gen:n}=e;yke(e,()=>{r.$comment&&t.$comment&&$ke(e),_yr(e),n.let(pr.default.vErrors,null),n.let(pr.default.errors,0),r.unevaluated&&Cyr(e),xke(e),Tyr(e)})}function Cyr(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,qt._)`${r}.evaluated`),t.if((0,qt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,qt._)`${e.evaluated}.props`,(0,qt._)`undefined`)),t.if((0,qt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,qt._)`${e.evaluated}.items`,(0,qt._)`undefined`))}function kle(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,qt._)`/*# sourceURL=${r} */`:qt.nil}function xyr(e,t){if(wke(e)&&(Cke(e),Ske(e))){$yr(e,t);return}(0,bke.boolOrEmptySchema)(e,t)}function Ske({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function wke(e){return typeof e.schema!="boolean"}function $yr(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&$ke(e),kyr(e),Pyr(e);const a=n.const("_errs",pr.default.errors);xke(e,a),n.var(t,(0,qt._)`${a} === ${pr.default.errors}`)}function Cke(e){(0,Wf.checkUnknownRules)(e),Eyr(e)}function xke(e,t){if(e.opts.jtd)return Ple(e,[],!1,t);const r=(0,_le.getSchemaTypes)(e.schema),n=(0,_le.coerceAndCheckDataType)(e,r);Ple(e,r,!n,t)}function Eyr(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Wf.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function _yr(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Wf.checkStrictMode)(e,"default is ignored in the schema root")}function kyr(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,gyr.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Pyr(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function $ke({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(o.$comment===!0)e.code((0,qt._)`${pr.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,qt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,qt._)`${pr.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Tyr(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if((0,qt._)`${pr.default.errors} === 0`,()=>t.return(pr.default.data),()=>t.throw((0,qt._)`new ${o}(${pr.default.vErrors})`)):(t.assign((0,qt._)`${n}.errors`,pr.default.vErrors),a.unevaluated&&Iyr(e),t.return((0,qt._)`${pr.default.errors} === 0`))}function Iyr({gen:e,evaluated:t,props:r,items:n}){r instanceof qt.Name&&e.assign((0,qt._)`${t}.props`,r),n instanceof qt.Name&&e.assign((0,qt._)`${t}.items`,n)}function Ple(e,t,r,n){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:u}=e,{RULES:c}=u;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Wf.schemaHasRulesButRef)(a,c))){o.block(()=>kke(e,"$ref",c.all.$ref.definition));return}l.jtd||Ryr(e,t),o.block(()=>{for(const f of c.rules)d(f);d(c.post)});function d(f){(0,VU.shouldUseGroup)(a,f)&&(f.type?(o.if((0,rF.checkDataType)(f.type,i,l.strictNumbers)),Tle(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,rF.reportTypeError)(e)),o.endIf()):Tle(e,f),s||o.if((0,qt._)`${pr.default.errors} === ${n||0}`))}}function Tle(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,vyr.assignDefaults)(e,t.type),r.block(()=>{for(const a of t.rules)(0,VU.shouldUseRule)(n,a)&&kke(e,a.keyword,a.definition,t.type)})}function Ryr(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Fyr(e,t),e.opts.allowUnionTypes||Oyr(e,t),Nyr(e,e.dataTypes))}function Fyr(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Eke(e.dataTypes,r)||HU(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Ayr(e,t)}}function Oyr(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&HU(e,"use allowUnionTypes to allow union type keyword")}function Nyr(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if(typeof o=="object"&&(0,VU.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Dyr(t,i))&&HU(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function Dyr(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Eke(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Ayr(e,t){const r=[];for(const n of e.dataTypes)Eke(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function HU(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Wf.checkStrictMode)(e,t,e.opts.strictTypes)}let _ke=class{constructor(t,r,n){if((0,rx.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Wf.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Pke(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,rx.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",pr.default.errors))}result(t,r,n){this.failResult((0,qt.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,qt.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,qt._)`${r} !== undefined && (${(0,qt.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Iw.reportExtraError:Iw.reportError)(this,this.def.error,r)}$dataError(){(0,Iw.reportError)(this,this.def.$dataError||Iw.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Iw.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=qt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=qt.nil,r=qt.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:a,def:i}=this;n.if((0,qt.or)((0,qt._)`${o} === undefined`,r)),t!==qt.nil&&n.assign(t,!0),(a.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==qt.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:o,it:a}=this;return(0,qt.or)(i(),s());function i(){if(n.length){if(!(r instanceof qt.Name))throw new Error("ajv implementation error");const l=Array.isArray(n)?n:[n];return(0,qt._)`${(0,rF.checkDataTypes)(l,r,a.opts.strictNumbers,rF.DataType.Wrong)}`}return qt.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,qt._)`!${l}(${r})`}return qt.nil}}subschema(t,r){const n=(0,C3.getSubschema)(this.it,t);(0,C3.extendSubschemaData)(n,this.it,t),(0,C3.extendSubschemaMode)(n,t);const o={...this.it,...n,items:void 0,props:void 0};return xyr(o,r),o}mergeEvaluated(t,r){const{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Wf.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Wf.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,qt.Name)),!0}};Tc.KeywordCxt=_ke;function kke(e,t,r,n){const o=new _ke(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,rx.funcKeywordCode)(o,r):"macro"in r?(0,rx.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,rx.funcKeywordCode)(o,r)}const Myr=/^\/(?:[^~]|~0|~1)*$/,Byr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Pke(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(e==="")return pr.default.rootData;if(e[0]==="/"){if(!Myr.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=pr.default.rootData}else{const u=Byr.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);const c=+u[1];if(o=u[2],o==="#"){if(c>=t)throw new Error(l("property/index",c));return n[t-c]}if(c>t)throw new Error(l("data",c));if(a=r[t-c],!o)return a}let i=a;const s=o.split("/");for(const u of s)u&&(a=(0,qt._)`${a}${(0,qt.getProperty)((0,Wf.unescapeJsonPointer)(u))}`,i=(0,qt._)`${i} && ${a}`);return i;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${t}`}}Tc.getData=Pke;var O_={};Object.defineProperty(O_,"__esModule",{value:!0});let jyr=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};O_.default=jyr;var N_={};Object.defineProperty(N_,"__esModule",{value:!0});const x3=ni;let Lyr=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,x3.resolveUrl)(t,r,n),this.missingSchema=(0,x3.normalizeId)((0,x3.getFullPath)(t,this.missingRef))}};N_.default=Lyr;var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.resolveSchema=Bs.getCompilingSchema=Bs.resolveRef=Bs.compileSchema=Bs.SchemaEnv=void 0;const Gu=zr,zyr=O_,gv=Jd,gc=ni,Ile=ln,Vyr=Tc;let bA=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,gc.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Bs.SchemaEnv=bA;function WU(e){const t=Tke.call(this,e);if(t)return t;const r=(0,gc.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Gu.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:zyr.default,code:(0,Gu._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:gv.default.data,parentData:gv.default.parentData,parentDataProperty:gv.default.parentDataProperty,dataNames:[gv.default.data],dataPathArr:[Gu.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Gu.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Gu.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Gu._)`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,Vyr.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const d=i.toString();c=`${i.scopeRefs(gv.default.scope)}return ${d}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const p=new Function(`${gv.default.self}`,`${gv.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:l,validateCode:d,scopeValues:i._values}),this.opts.unevaluated){const{props:h,items:v}=u;p.evaluated={props:h instanceof Gu.Name?void 0:h,items:v instanceof Gu.Name?void 0:v,dynamicProps:h instanceof Gu.Name,dynamicItems:v instanceof Gu.Name},p.source&&(p.source.evaluated=(0,Gu.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),d}finally{this._compilations.delete(e)}}Bs.compileSchema=WU;function Hyr(e,t,r){var n;r=(0,gc.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=Uyr.call(this,e,r);if(a===void 0){const i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;i&&(a=new bA({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[r]=Wyr.call(this,a)}Bs.resolveRef=Hyr;function Wyr(e){return(0,gc.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:WU.call(this,e)}function Tke(e){for(const t of this._compilations)if(qyr(t,e))return t}Bs.getCompilingSchema=Tke;function qyr(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Uyr(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||yA.call(this,e,t)}function yA(e,t){const r=this.opts.uriResolver.parse(t),n=(0,gc._getFullPath)(this.opts.uriResolver,r);let o=(0,gc.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return $3.call(this,r,e);const a=(0,gc.normalizeId)(n),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=yA.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:$3.call(this,r,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||WU.call(this,i),a===(0,gc.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,u=s[l];return u&&(o=(0,gc.resolveUrl)(this.opts.uriResolver,o,u)),new bA({schema:s,schemaId:l,root:e,baseId:o})}return $3.call(this,r,i)}}Bs.resolveSchema=yA;const Kyr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $3(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const l=r[(0,Ile.unescapeFragment)(s)];if(l===void 0)return;r=l;const u=typeof r=="object"&&r[this.opts.schemaId];!Kyr.has(s)&&u&&(t=(0,gc.resolveUrl)(this.opts.uriResolver,t,u))}let a;if(typeof r!="boolean"&&r.$ref&&!(0,Ile.schemaHasRulesButRef)(r,this.RULES)){const s=(0,gc.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=yA.call(this,n,s)}const{schemaId:i}=this.opts;if(a=a||new bA({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema)return a}const Gyr="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Yyr="Meta-schema for $data reference (JSON AnySchema extension proposal)",Xyr="object",Qyr=["$data"],Zyr={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Jyr=!1,e1r={$id:Gyr,description:Yyr,type:Xyr,required:Qyr,properties:Zyr,additionalProperties:Jyr};var qU={},C8={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(Bi,function(r){function n(){for(var re=arguments.length,X=Array(re),ne=0;ne1){X[0]=X[0].slice(0,-1);for(var we=X.length-1,ue=1;ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=v-b,N=Math.floor,z=String.fromCharCode;function O(re){throw new RangeError(k[re])}function A(re,X){for(var ne=[],we=re.length;we--;)ne[we]=X(re[we]);return ne}function M(re,X){var ne=re.split("@"),we="";ne.length>1&&(we=ne[0]+"@",re=ne[1]),re=re.replace(_,".");var ue=re.split("."),Ue=A(ue,X).join(".");return we+Ue}function L(re){for(var X=[],ne=0,we=re.length;ne=55296&&ue<=56319&&ne>1,X+=N(X/ne);X>I*g>>1;ue+=v)X=N(X/I);return N(ue+(I+1)*X/(X+y))},V=function(X){var ne=[],we=X.length,ue=0,Ue=$,Ke=w,ut=X.lastIndexOf(C);ut<0&&(ut=0);for(var We=0;We=128&&O("not-basic"),ne.push(X.charCodeAt(We));for(var tt=ut>0?ut+1:0;tt=we&&O("invalid-input");var it=H(X.charCodeAt(tt++));(it>=v||it>N((h-ue)/qe))&&O("overflow"),ue+=it*qe;var It=_t<=Ke?b:_t>=Ke+g?g:_t-Ke;if(itN(h/Mt)&&O("overflow"),qe*=Mt}var rr=ne.length+1;Ke=F(ue-Me,rr,Me==0),N(ue/rr)>h-Ue&&O("overflow"),Ue+=N(ue/rr),ue%=rr,ne.splice(ue++,0,Ue)}return String.fromCodePoint.apply(String,ne)},D=function(X){var ne=[];X=L(X);var we=X.length,ue=$,Ue=0,Ke=w,ut=!0,We=!1,tt=void 0;try{for(var Me=X[Symbol.iterator](),qe;!(ut=(qe=Me.next()).done);ut=!0){var _t=qe.value;_t<128&&ne.push(z(_t))}}catch(Ht){We=!0,tt=Ht}finally{try{!ut&&Me.return&&Me.return()}finally{if(We)throw tt}}var it=ne.length,It=it;for(it&&ne.push(C);It=ue&>N((h-Ue)/ct)&&O("overflow"),Ue+=(Mt-ue)*ct,ue=Mt;var jt=!0,br=!1,en=void 0;try{for(var va=X[Symbol.iterator](),gi;!(jt=(gi=va.next()).done);jt=!0){var Ra=gi.value;if(Rah&&O("overflow"),Ra==ue){for(var bi=Ue,Ko=v;;Ko+=v){var sa=Ko<=Ke?b:Ko>=Ke+g?g:Ko-Ke;if(bi>6|192).toString(16).toUpperCase()+"%"+(X&63|128).toString(16).toUpperCase():ne="%"+(X>>12|224).toString(16).toUpperCase()+"%"+(X>>6&63|128).toString(16).toUpperCase()+"%"+(X&63|128).toString(16).toUpperCase(),ne}function J(re){for(var X="",ne=0,we=re.length;ne=194&&ue<224){if(we-ne>=6){var Ue=parseInt(re.substr(ne+4,2),16);X+=String.fromCharCode((ue&31)<<6|Ue&63)}else X+=re.substr(ne,6);ne+=6}else if(ue>=224){if(we-ne>=9){var Ke=parseInt(re.substr(ne+4,2),16),ut=parseInt(re.substr(ne+7,2),16);X+=String.fromCharCode((ue&15)<<12|(Ke&63)<<6|ut&63)}else X+=re.substr(ne,9);ne+=9}else X+=re.substr(ne,3),ne+=3}return X}function Z(re,X){function ne(we){var ue=J(we);return ue.match(X.UNRESERVED)?ue:we}return re.scheme&&(re.scheme=String(re.scheme).replace(X.PCT_ENCODED,ne).toLowerCase().replace(X.NOT_SCHEME,"")),re.userinfo!==void 0&&(re.userinfo=String(re.userinfo).replace(X.PCT_ENCODED,ne).replace(X.NOT_USERINFO,q).replace(X.PCT_ENCODED,i)),re.host!==void 0&&(re.host=String(re.host).replace(X.PCT_ENCODED,ne).toLowerCase().replace(X.NOT_HOST,q).replace(X.PCT_ENCODED,i)),re.path!==void 0&&(re.path=String(re.path).replace(X.PCT_ENCODED,ne).replace(re.scheme?X.NOT_PATH:X.NOT_PATH_NOSCHEME,q).replace(X.PCT_ENCODED,i)),re.query!==void 0&&(re.query=String(re.query).replace(X.PCT_ENCODED,ne).replace(X.NOT_QUERY,q).replace(X.PCT_ENCODED,i)),re.fragment!==void 0&&(re.fragment=String(re.fragment).replace(X.PCT_ENCODED,ne).replace(X.NOT_FRAGMENT,q).replace(X.PCT_ENCODED,i)),re}function Q(re){return re.replace(/^0*(.*)/,"$1")||"0"}function oe(re,X){var ne=re.match(X.IPV4ADDRESS)||[],we=f(ne,2),ue=we[1];return ue?ue.split(".").map(Q).join("."):re}function ie(re,X){var ne=re.match(X.IPV6ADDRESS)||[],we=f(ne,3),ue=we[1],Ue=we[2];if(ue){for(var Ke=ue.toLowerCase().split("::").reverse(),ut=f(Ke,2),We=ut[0],tt=ut[1],Me=tt?tt.split(":").map(Q):[],qe=We.split(":").map(Q),_t=X.IPV4ADDRESS.test(qe[qe.length-1]),it=_t?7:8,It=qe.length-it,Mt=Array(it),rr=0;rr1){var An=Mt.slice(0,ar.index),gt=Mt.slice(ar.index+ar.length);Ir=An.join(":")+"::"+gt.join(":")}else Ir=Mt.join(":");return Ue&&(Ir+="%"+Ue),Ir}else return re}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ae="".match(/(){0}/)[1]===void 0;function fe(re){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne={},we=X.iri!==!1?d:c;X.reference==="suffix"&&(re=(X.scheme?X.scheme+":":"")+"//"+re);var ue=re.match(te);if(ue){ae?(ne.scheme=ue[1],ne.userinfo=ue[3],ne.host=ue[4],ne.port=parseInt(ue[5],10),ne.path=ue[6]||"",ne.query=ue[7],ne.fragment=ue[8],isNaN(ne.port)&&(ne.port=ue[5])):(ne.scheme=ue[1]||void 0,ne.userinfo=re.indexOf("@")!==-1?ue[3]:void 0,ne.host=re.indexOf("//")!==-1?ue[4]:void 0,ne.port=parseInt(ue[5],10),ne.path=ue[6]||"",ne.query=re.indexOf("?")!==-1?ue[7]:void 0,ne.fragment=re.indexOf("#")!==-1?ue[8]:void 0,isNaN(ne.port)&&(ne.port=re.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ue[4]:void 0)),ne.host&&(ne.host=ie(oe(ne.host,we),we)),ne.scheme===void 0&&ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0&&!ne.path&&ne.query===void 0?ne.reference="same-document":ne.scheme===void 0?ne.reference="relative":ne.fragment===void 0?ne.reference="absolute":ne.reference="uri",X.reference&&X.reference!=="suffix"&&X.reference!==ne.reference&&(ne.error=ne.error||"URI is not a "+X.reference+" reference.");var Ue=U[(X.scheme||ne.scheme||"").toLowerCase()];if(!X.unicodeSupport&&(!Ue||!Ue.unicodeSupport)){if(ne.host&&(X.domainHost||Ue&&Ue.domainHost))try{ne.host=W.toASCII(ne.host.replace(we.PCT_ENCODED,J).toLowerCase())}catch(Ke){ne.error=ne.error||"Host's domain name can not be converted to ASCII via punycode: "+Ke}Z(ne,c)}else Z(ne,we);Ue&&Ue.parse&&Ue.parse(ne,X)}else ne.error=ne.error||"URI can not be parsed.";return ne}function ve(re,X){var ne=X.iri!==!1?d:c,we=[];return re.userinfo!==void 0&&(we.push(re.userinfo),we.push("@")),re.host!==void 0&&we.push(ie(oe(String(re.host),ne),ne).replace(ne.IPV6ADDRESS,function(ue,Ue,Ke){return"["+Ue+(Ke?"%25"+Ke:"")+"]"})),(typeof re.port=="number"||typeof re.port=="string")&&(we.push(":"),we.push(String(re.port))),we.length?we.join(""):void 0}var Se=/^\.\.?\//,se=/^\/\.(\/|$)/,pe=/^\/\.\.(\/|$)/,ge=/^\/?(?:.|\n)*?(?=\/|$)/;function de(re){for(var X=[];re.length;)if(re.match(Se))re=re.replace(Se,"");else if(re.match(se))re=re.replace(se,"/");else if(re.match(pe))re=re.replace(pe,"/"),X.pop();else if(re==="."||re==="..")re="";else{var ne=re.match(ge);if(ne){var we=ne[0];re=re.slice(we.length),X.push(we)}else throw new Error("Unexpected dot segment condition")}return X.join("")}function ee(re){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=X.iri?d:c,we=[],ue=U[(X.scheme||re.scheme||"").toLowerCase()];if(ue&&ue.serialize&&ue.serialize(re,X),re.host&&!ne.IPV6ADDRESS.test(re.host)){if(X.domainHost||ue&&ue.domainHost)try{re.host=X.iri?W.toUnicode(re.host):W.toASCII(re.host.replace(ne.PCT_ENCODED,J).toLowerCase())}catch(ut){re.error=re.error||"Host's domain name can not be converted to "+(X.iri?"Unicode":"ASCII")+" via punycode: "+ut}}Z(re,ne),X.reference!=="suffix"&&re.scheme&&(we.push(re.scheme),we.push(":"));var Ue=ve(re,X);if(Ue!==void 0&&(X.reference!=="suffix"&&we.push("//"),we.push(Ue),re.path&&re.path.charAt(0)!=="/"&&we.push("/")),re.path!==void 0){var Ke=re.path;!X.absolutePath&&(!ue||!ue.absolutePath)&&(Ke=de(Ke)),Ue===void 0&&(Ke=Ke.replace(/^\/\//,"/%2F")),we.push(Ke)}return re.query!==void 0&&(we.push("?"),we.push(re.query)),re.fragment!==void 0&&(we.push("#"),we.push(re.fragment)),we.join("")}function me(re,X){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},we=arguments[3],ue={};return we||(re=fe(ee(re,ne),ne),X=fe(ee(X,ne),ne)),ne=ne||{},!ne.tolerant&&X.scheme?(ue.scheme=X.scheme,ue.userinfo=X.userinfo,ue.host=X.host,ue.port=X.port,ue.path=de(X.path||""),ue.query=X.query):(X.userinfo!==void 0||X.host!==void 0||X.port!==void 0?(ue.userinfo=X.userinfo,ue.host=X.host,ue.port=X.port,ue.path=de(X.path||""),ue.query=X.query):(X.path?(X.path.charAt(0)==="/"?ue.path=de(X.path):((re.userinfo!==void 0||re.host!==void 0||re.port!==void 0)&&!re.path?ue.path="/"+X.path:re.path?ue.path=re.path.slice(0,re.path.lastIndexOf("/")+1)+X.path:ue.path=X.path,ue.path=de(ue.path)),ue.query=X.query):(ue.path=re.path,X.query!==void 0?ue.query=X.query:ue.query=re.query),ue.userinfo=re.userinfo,ue.host=re.host,ue.port=re.port),ue.scheme=re.scheme),ue.fragment=X.fragment,ue}function Re(re,X,ne){var we=l({scheme:"null"},ne);return ee(me(fe(re,we),fe(X,we),we,!0),we)}function je(re,X){return typeof re=="string"?re=ee(fe(re,X),X):a(re)==="object"&&(re=fe(ee(re,X),X)),re}function ze(re,X,ne){return typeof re=="string"?re=ee(fe(re,ne),ne):a(re)==="object"&&(re=ee(re,ne)),typeof X=="string"?X=ee(fe(X,ne),ne):a(X)==="object"&&(X=ee(X,ne)),re===X}function Le(re,X){return re&&re.toString().replace(!X||!X.iri?c.ESCAPE:d.ESCAPE,q)}function $e(re,X){return re&&re.toString().replace(!X||!X.iri?c.PCT_ENCODED:d.PCT_ENCODED,J)}var Je={scheme:"http",domainHost:!0,parse:function(X,ne){return X.host||(X.error=X.error||"HTTP URIs must have a host."),X},serialize:function(X,ne){var we=String(X.scheme).toLowerCase()==="https";return(X.port===(we?443:80)||X.port==="")&&(X.port=void 0),X.path||(X.path="/"),X}},Pe={scheme:"https",domainHost:Je.domainHost,parse:Je.parse,serialize:Je.serialize};function st(re){return typeof re.secure=="boolean"?re.secure:String(re.scheme).toLowerCase()==="wss"}var _e={scheme:"ws",domainHost:!0,parse:function(X,ne){var we=X;return we.secure=st(we),we.resourceName=(we.path||"/")+(we.query?"?"+we.query:""),we.path=void 0,we.query=void 0,we},serialize:function(X,ne){if((X.port===(st(X)?443:80)||X.port==="")&&(X.port=void 0),typeof X.secure=="boolean"&&(X.scheme=X.secure?"wss":"ws",X.secure=void 0),X.resourceName){var we=X.resourceName.split("?"),ue=f(we,2),Ue=ue[0],Ke=ue[1];X.path=Ue&&Ue!=="/"?Ue:void 0,X.query=Ke,X.resourceName=void 0}return X.fragment=void 0,X}},De={scheme:"wss",domainHost:_e.domainHost,parse:_e.parse,serialize:_e.serialize},et={},Ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Fe="[0-9A-Fa-f]",vt=o(o("%[EFef]"+Fe+"%"+Fe+Fe+"%"+Fe+Fe)+"|"+o("%[89A-Fa-f]"+Fe+"%"+Fe+Fe)+"|"+o("%"+Fe+Fe)),bt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",wt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",mt=n(wt,'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ae=new RegExp(Ie,"g"),He=new RegExp(vt,"g"),Ge=new RegExp(n("[^]",bt,"[\\.]",'[\\"]',mt),"g"),ot=new RegExp(n("[^]",Ie,xe),"g"),at=ot;function Ve(re){var X=J(re);return X.match(Ae)?X:re}var Qe={scheme:"mailto",parse:function(X,ne){var we=X,ue=we.to=we.path?we.path.split(","):[];if(we.path=void 0,we.query){for(var Ue=!1,Ke={},ut=we.query.split("&"),We=0,tt=ut.length;Wenew RegExp(B,F);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function S(B){var F,V,D,P,R,W,U,q,J,Z,Q,oe,ie,te,ae,fe,ve,Se,se,pe,ge,de,ee,me,Re;const je=B.strict,ze=(F=B.code)===null||F===void 0?void 0:F.optimize,Le=ze===!0||ze===void 0?1:ze||0,$e=(D=(V=B.code)===null||V===void 0?void 0:V.regExp)!==null&&D!==void 0?D:p,Je=(P=B.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(W=(R=B.strictSchema)!==null&&R!==void 0?R:je)!==null&&W!==void 0?W:!0,strictNumbers:(q=(U=B.strictNumbers)!==null&&U!==void 0?U:je)!==null&&q!==void 0?q:!0,strictTypes:(Z=(J=B.strictTypes)!==null&&J!==void 0?J:je)!==null&&Z!==void 0?Z:"log",strictTuples:(oe=(Q=B.strictTuples)!==null&&Q!==void 0?Q:je)!==null&&oe!==void 0?oe:"log",strictRequired:(te=(ie=B.strictRequired)!==null&&ie!==void 0?ie:je)!==null&&te!==void 0?te:!1,code:B.code?{...B.code,optimize:Le,regExp:$e}:{optimize:Le,regExp:$e},loopRequired:(ae=B.loopRequired)!==null&&ae!==void 0?ae:y,loopEnum:(fe=B.loopEnum)!==null&&fe!==void 0?fe:y,meta:(ve=B.meta)!==null&&ve!==void 0?ve:!0,messages:(Se=B.messages)!==null&&Se!==void 0?Se:!0,inlineRefs:(se=B.inlineRefs)!==null&&se!==void 0?se:!0,schemaId:(pe=B.schemaId)!==null&&pe!==void 0?pe:"$id",addUsedSchema:(ge=B.addUsedSchema)!==null&&ge!==void 0?ge:!0,validateSchema:(de=B.validateSchema)!==null&&de!==void 0?de:!0,validateFormats:(ee=B.validateFormats)!==null&&ee!==void 0?ee:!0,unicodeRegExp:(me=B.unicodeRegExp)!==null&&me!==void 0?me:!0,int32range:(Re=B.int32range)!==null&&Re!==void 0?Re:!0,uriResolver:Je}}class w{constructor(F={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts={...F,...S(F)};const{es5:V,lines:D}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:V,lines:D}),this.logger=N(F.logger);const P=F.validateFormats;F.validateFormats=!1,this.RULES=(0,a.getRules)(),$.call(this,b,F,"NOT SUPPORTED"),$.call(this,g,F,"DEPRECATED","warn"),this._metaOpts=k.call(this),F.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&_.call(this,F.keywords),typeof F.meta=="object"&&this.addMetaSchema(F.meta),x.call(this),F.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:F,meta:V,schemaId:D}=this.opts;let P=d;D==="id"&&(P={...d},P.id=P.$id,delete P.$id),V&&F&&this.addMetaSchema(P,P[D],!1)}defaultMeta(){const{meta:F,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof F=="object"?F[V]||F:void 0}validate(F,V){let D;if(typeof F=="string"){if(D=this.getSchema(F),!D)throw new Error(`no schema with key or ref "${F}"`)}else D=this.compile(F);const P=D(V);return"$async"in D||(this.errors=D.errors),P}compile(F,V){const D=this._addSchema(F,V);return D.validate||this._compileSchemaEnv(D)}compileAsync(F,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return P.call(this,F,V);async function P(Z,Q){await R.call(this,Z.$schema);const oe=this._addSchema(Z,Q);return oe.validate||W.call(this,oe)}async function R(Z){Z&&!this.getSchema(Z)&&await P.call(this,{$ref:Z},!0)}async function W(Z){try{return this._compileSchemaEnv(Z)}catch(Q){if(!(Q instanceof o.default))throw Q;return U.call(this,Q),await q.call(this,Q.missingSchema),W.call(this,Z)}}function U({missingSchema:Z,missingRef:Q}){if(this.refs[Z])throw new Error(`AnySchema ${Z} is loaded but ${Q} cannot be resolved`)}async function q(Z){const Q=await J.call(this,Z);this.refs[Z]||await R.call(this,Q.$schema),this.refs[Z]||this.addSchema(Q,Z,V)}async function J(Z){const Q=this._loading[Z];if(Q)return Q;try{return await(this._loading[Z]=D(Z))}finally{delete this._loading[Z]}}}addSchema(F,V,D,P=this.opts.validateSchema){if(Array.isArray(F)){for(const W of F)this.addSchema(W,void 0,D,P);return this}let R;if(typeof F=="object"){const{schemaId:W}=this.opts;if(R=F[W],R!==void 0&&typeof R!="string")throw new Error(`schema ${W} must be string`)}return V=(0,l.normalizeId)(V||R),this._checkUnique(V),this.schemas[V]=this._addSchema(F,D,V,P,!0),this}addMetaSchema(F,V,D=this.opts.validateSchema){return this.addSchema(F,V,!0,D),this}validateSchema(F,V){if(typeof F=="boolean")return!0;let D;if(D=F.$schema,D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this.opts.defaultMeta||this.defaultMeta(),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(D,F);if(!P&&V){const R="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(R);else throw new Error(R)}return P}getSchema(F){let V;for(;typeof(V=C.call(this,F))=="string";)F=V;if(V===void 0){const{schemaId:D}=this.opts,P=new i.SchemaEnv({schema:{},schemaId:D});if(V=i.resolveSchema.call(this,P,F),!V)return;this.refs[F]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(typeof F){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=C.call(this,F);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[F],delete this.refs[F],this}case"object":{const V=F;this._cache.delete(V);let D=F[this.opts.schemaId];return D&&(D=(0,l.normalizeId)(D),delete this.schemas[D],delete this.refs[D]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(F){for(const V of F)this.addKeyword(V);return this}addKeyword(F,V){let D;if(typeof F=="string")D=F,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=D);else if(typeof F=="object"&&V===void 0){if(V=F,D=V.keyword,Array.isArray(D)&&!D.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,D,V),!V)return(0,c.eachItem)(D,R=>A.call(this,R)),this;L.call(this,V);const P={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,c.eachItem)(D,P.type.length===0?R=>A.call(this,R,P):R=>P.type.forEach(W=>A.call(this,R,P,W))),this}getKeyword(F){const V=this.RULES.all[F];return typeof V=="object"?V.definition:!!V}removeKeyword(F){const{RULES:V}=this;delete V.keywords[F],delete V.all[F];for(const D of V.rules){const P=D.rules.findIndex(R=>R.keyword===F);P>=0&&D.rules.splice(P,1)}return this}addFormat(F,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[F]=V,this}errorsText(F=this.errors,{separator:V=", ",dataVar:D="data"}={}){return!F||F.length===0?"No errors":F.map(P=>`${D}${P.instancePath} ${P.message}`).reduce((P,R)=>P+V+R)}$dataMetaSchema(F,V){const D=this.RULES.all;F=JSON.parse(JSON.stringify(F));for(const P of V){const R=P.split("/").slice(1);let W=F;for(const U of R)W=W[U];for(const U in D){const q=D[U];if(typeof q!="object")continue;const{$data:J}=q.definition,Z=W[U];J&&Z&&(W[U]=H(Z))}}return F}_removeAllSchemas(F,V){for(const D in F){const P=F[D];(!V||V.test(D))&&(typeof P=="string"?delete F[D]:P&&!P.meta&&(this._cache.delete(P.schema),delete F[D]))}}_addSchema(F,V,D,P=this.opts.validateSchema,R=this.opts.addUsedSchema){let W;const{schemaId:U}=this.opts;if(typeof F=="object")W=F[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof F!="boolean")throw new Error("schema must be object or boolean")}let q=this._cache.get(F);if(q!==void 0)return q;D=(0,l.normalizeId)(W||D);const J=l.getSchemaRefs.call(this,F,D);return q=new i.SchemaEnv({schema:F,schemaId:U,meta:V,baseId:D,localRefs:J}),this._cache.set(q.schema,q),R&&!D.startsWith("#")&&(D&&this._checkUnique(D),this.refs[D]=q),P&&this.validateSchema(F,!0),q}_checkUnique(F){if(this.schemas[F]||this.refs[F])throw new Error(`schema with key or id "${F}" already exists`)}_compileSchemaEnv(F){if(F.meta?this._compileMetaSchema(F):i.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}_compileMetaSchema(F){const V=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,F)}finally{this.opts=V}}}e.default=w,w.ValidationError=n.default,w.MissingRefError=o.default;function $(B,F,V,D="error"){for(const P in B){const R=P;R in F&&this.logger[D](`${V}: option ${P}. ${B[R]}`)}}function C(B){return B=(0,l.normalizeId)(B),this.schemas[B]||this.refs[B]}function x(){const B=this.opts.schemas;if(B)if(Array.isArray(B))this.addSchema(B);else for(const F in B)this.addSchema(B[F],F)}function E(){for(const B in this.opts.formats){const F=this.opts.formats[B];F&&this.addFormat(B,F)}}function _(B){if(Array.isArray(B)){this.addVocabulary(B);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const F in B){const V=B[F];V.keyword||(V.keyword=F),this.addKeyword(V)}}function k(){const B={...this.opts};for(const F of h)delete B[F];return B}const I={log(){},warn(){},error(){}};function N(B){if(B===!1)return I;if(B===void 0)return console;if(B.log&&B.warn&&B.error)return B;throw new Error("logger must implement log, warn and error methods")}const z=/^[a-z_$][a-z0-9_$:-]*$/i;function O(B,F){const{RULES:V}=this;if((0,c.eachItem)(B,D=>{if(V.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!z.test(D))throw new Error(`Keyword ${D} has invalid name`)}),!!F&&F.$data&&!("code"in F||"validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function A(B,F,V){var D;const P=F==null?void 0:F.post;if(V&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:R}=this;let W=P?R.post:R.rules.find(({type:q})=>q===V);if(W||(W={type:V,rules:[]},R.rules.push(W)),R.keywords[B]=!0,!F)return;const U={keyword:B,definition:{...F,type:(0,u.getJSONTypes)(F.type),schemaType:(0,u.getJSONTypes)(F.schemaType)}};F.before?M.call(this,W,U,F.before):W.rules.push(U),R.all[B]=U,(D=F.implements)===null||D===void 0||D.forEach(q=>this.addKeyword(q))}function M(B,F,V){const D=B.rules.findIndex(P=>P.keyword===V);D>=0?B.rules.splice(D,0,F):(B.rules.push(F),this.logger.warn(`rule ${V} is not defined`))}function L(B){let{metaSchema:F}=B;F!==void 0&&(B.$data&&this.opts.$data&&(F=H(F)),B.validateSchema=this.compile(F,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function H(B){return{anyOf:[B,j]}}})(ike);var UU={},KU={},GU={};Object.defineProperty(GU,"__esModule",{value:!0});const t1r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};GU.default=t1r;var e0={};Object.defineProperty(e0,"__esModule",{value:!0});e0.callRef=e0.getValidate=void 0;const r1r=N_,Rle=Br,Ps=zr,cb=Jd,Fle=Bs,iP=ln,n1r={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:u}=a;if((r==="#"||r==="#/")&&o===u.baseId)return d();const c=Fle.resolveRef.call(l,u,o,r);if(c===void 0)throw new r1r.default(n.opts.uriResolver,o,r);if(c instanceof Fle.SchemaEnv)return f(c);return p(c);function d(){if(a===u)return bT(e,i,a,a.$async);const h=t.scopeValue("root",{ref:u});return bT(e,(0,Ps._)`${h}.validate`,u,u.$async)}function f(h){const v=Rke(e,h);bT(e,v,h,h.$async)}function p(h){const v=t.scopeValue("schema",s.code.source===!0?{ref:h,code:(0,Ps.stringify)(h)}:{ref:h}),b=t.name("valid"),g=e.subschema({schema:h,dataTypes:[],schemaPath:Ps.nil,topSchemaRef:v,errSchemaPath:r},b);e.mergeEvaluated(g),e.ok(b)}}};function Rke(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ps._)`${r.scopeValue("wrapper",{ref:t})}.validate`}e0.getValidate=Rke;function bT(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?cb.default.this:Ps.nil;n?c():d();function c(){if(!s.$async)throw new Error("async schema referenced by sync schema");const h=o.let("valid");o.try(()=>{o.code((0,Ps._)`await ${(0,Rle.callValidateCode)(e,t,u)}`),p(t),i||o.assign(h,!0)},v=>{o.if((0,Ps._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),f(v),i||o.assign(h,!1)}),e.ok(h)}function d(){e.result((0,Rle.callValidateCode)(e,t,u),()=>p(t),()=>f(t))}function f(h){const v=(0,Ps._)`${h}.errors`;o.assign(cb.default.vErrors,(0,Ps._)`${cb.default.vErrors} === null ? ${v} : ${cb.default.vErrors}.concat(${v})`),o.assign(cb.default.errors,(0,Ps._)`${cb.default.vErrors}.length`)}function p(h){var v;if(!a.opts.unevaluated)return;const b=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(a.props=iP.mergeEvaluated.props(o,b.props,a.props));else{const g=o.var("props",(0,Ps._)`${h}.evaluated.props`);a.props=iP.mergeEvaluated.props(o,g,a.props,Ps.Name)}if(a.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(a.items=iP.mergeEvaluated.items(o,b.items,a.items));else{const g=o.var("items",(0,Ps._)`${h}.evaluated.items`);a.items=iP.mergeEvaluated.items(o,g,a.items,Ps.Name)}}}e0.callRef=bT;e0.default=n1r;Object.defineProperty(KU,"__esModule",{value:!0});const o1r=GU,a1r=e0,i1r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",o1r.default,a1r.default];KU.default=i1r;var YU={},XU={};Object.defineProperty(XU,"__esModule",{value:!0});const nF=zr,fm=nF.operators,oF={maximum:{okStr:"<=",ok:fm.LTE,fail:fm.GT},minimum:{okStr:">=",ok:fm.GTE,fail:fm.LT},exclusiveMaximum:{okStr:"<",ok:fm.LT,fail:fm.GTE},exclusiveMinimum:{okStr:">",ok:fm.GT,fail:fm.LTE}},s1r={message:({keyword:e,schemaCode:t})=>(0,nF.str)`must be ${oF[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,nF._)`{comparison: ${oF[e].okStr}, limit: ${t}}`},l1r={keyword:Object.keys(oF),type:"number",schemaType:"number",$data:!0,error:s1r,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,nF._)`${r} ${oF[t].fail} ${n} || isNaN(${r})`)}};XU.default=l1r;var QU={};Object.defineProperty(QU,"__esModule",{value:!0});const nx=zr,u1r={message:({schemaCode:e})=>(0,nx.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,nx._)`{multipleOf: ${e}}`},c1r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:u1r,code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,nx._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,nx._)`${i} !== parseInt(${i})`;e.fail$data((0,nx._)`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};QU.default=c1r;var ZU={},JU={};Object.defineProperty(JU,"__esModule",{value:!0});function Fke(e){const t=e.length;let r=0,n=0,o;for(;n=55296&&o<=56319&&n(0,Mv._)`{limit: ${e}}`},m1r={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:p1r,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a=t==="maxLength"?Mv.operators.GT:Mv.operators.LT,i=o.opts.unicode===!1?(0,Mv._)`${r}.length`:(0,Mv._)`${(0,d1r.useFunc)(e.gen,f1r.default)}(${r})`;e.fail$data((0,Mv._)`${i} ${a} ${n}`)}};ZU.default=m1r;var eK={};Object.defineProperty(eK,"__esModule",{value:!0});const h1r=Br,aF=zr,v1r={message:({schemaCode:e})=>(0,aF.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,aF._)`{pattern: ${e}}`},g1r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:v1r,code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?(0,aF._)`(new RegExp(${o}, ${i}))`:(0,h1r.usePattern)(e,n);e.fail$data((0,aF._)`!${s}.test(${t})`)}};eK.default=g1r;var tK={};Object.defineProperty(tK,"__esModule",{value:!0});const ox=zr,b1r={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,ox.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ox._)`{limit: ${e}}`},y1r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:b1r,code(e){const{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ox.operators.GT:ox.operators.LT;e.fail$data((0,ox._)`Object.keys(${r}).length ${o} ${n}`)}};tK.default=y1r;var rK={};Object.defineProperty(rK,"__esModule",{value:!0});const Rw=Br,ax=zr,S1r=ln,w1r={message:({params:{missingProperty:e}})=>(0,ax.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ax._)`{missingProperty: ${e}}`},C1r={keyword:"required",type:"object",schemaType:"array",$data:!0,error:w1r,code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&r.length===0)return;const l=r.length>=s.loopRequired;if(i.allErrors?u():c(),s.strictRequired){const p=e.parentSchema.properties,{definedProperties:h}=e.it;for(const v of r)if((p==null?void 0:p[v])===void 0&&!h.has(v)){const b=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${b}" (strictRequired)`;(0,S1r.checkStrictMode)(i,g,i.opts.strictRequired)}}function u(){if(l||a)e.block$data(ax.nil,d);else for(const p of r)(0,Rw.checkReportMissingProp)(e,p)}function c(){const p=t.let("missing");if(l||a){const h=t.let("valid",!0);e.block$data(h,()=>f(p,h)),e.ok(h)}else t.if((0,Rw.checkMissingProp)(e,r,p)),(0,Rw.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",n,p=>{e.setParams({missingProperty:p}),t.if((0,Rw.noPropertyInData)(t,o,p,s.ownProperties),()=>e.error())})}function f(p,h){e.setParams({missingProperty:p}),t.forOf(p,n,()=>{t.assign(h,(0,Rw.propertyInData)(t,o,p,s.ownProperties)),t.if((0,ax.not)(h),()=>{e.error(),t.break()})},ax.nil)}}};rK.default=C1r;var nK={};Object.defineProperty(nK,"__esModule",{value:!0});const ix=zr,x1r={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,ix.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ix._)`{limit: ${e}}`},$1r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:x1r,code(e){const{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?ix.operators.GT:ix.operators.LT;e.fail$data((0,ix._)`${r}.length ${o} ${n}`)}};nK.default=$1r;var oK={},D_={};Object.defineProperty(D_,"__esModule",{value:!0});const Oke=Hp;Oke.code='require("ajv/dist/runtime/equal").default';D_.default=Oke;Object.defineProperty(oK,"__esModule",{value:!0});const E3=F_,Qa=zr,E1r=ln,_1r=D_,k1r={message:({params:{i:e,j:t}})=>(0,Qa.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Qa._)`{i: ${e}, j: ${t}}`},P1r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:k1r,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),u=a.items?(0,E3.getSchemaTypes)(a.items):[];e.block$data(l,c,(0,Qa._)`${i} === false`),e.ok(l);function c(){const h=t.let("i",(0,Qa._)`${r}.length`),v=t.let("j");e.setParams({i:h,j:v}),t.assign(l,!0),t.if((0,Qa._)`${h} > 1`,()=>(d()?f:p)(h,v))}function d(){return u.length>0&&!u.some(h=>h==="object"||h==="array")}function f(h,v){const b=t.name("item"),g=(0,E3.checkDataTypes)(u,b,s.opts.strictNumbers,E3.DataType.Wrong),y=t.const("indices",(0,Qa._)`{}`);t.for((0,Qa._)`;${h}--;`,()=>{t.let(b,(0,Qa._)`${r}[${h}]`),t.if(g,(0,Qa._)`continue`),u.length>1&&t.if((0,Qa._)`typeof ${b} == "string"`,(0,Qa._)`${b} += "_"`),t.if((0,Qa._)`typeof ${y}[${b}] == "number"`,()=>{t.assign(v,(0,Qa._)`${y}[${b}]`),e.error(),t.assign(l,!1).break()}).code((0,Qa._)`${y}[${b}] = ${h}`)})}function p(h,v){const b=(0,E1r.useFunc)(t,_1r.default),g=t.name("outer");t.label(g).for((0,Qa._)`;${h}--;`,()=>t.for((0,Qa._)`${v} = ${h}; ${v}--;`,()=>t.if((0,Qa._)`${b}(${r}[${h}], ${r}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};oK.default=P1r;var aK={};Object.defineProperty(aK,"__esModule",{value:!0});const x8=zr,T1r=ln,I1r=D_,R1r={message:"must be equal to constant",params:({schemaCode:e})=>(0,x8._)`{allowedValue: ${e}}`},F1r={keyword:"const",$data:!0,error:R1r,code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&typeof a=="object"?e.fail$data((0,x8._)`!${(0,T1r.useFunc)(t,I1r.default)}(${r}, ${o})`):e.fail((0,x8._)`${a} !== ${r}`)}};aK.default=F1r;var iK={};Object.defineProperty(iK,"__esModule",{value:!0});const Jw=zr,O1r=ln,N1r=D_,D1r={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Jw._)`{allowedValues: ${e}}`},A1r={keyword:"enum",schemaType:"array",$data:!0,error:D1r,code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>l??(l=(0,O1r.useFunc)(t,N1r.default));let c;if(s||n)c=t.let("valid"),e.block$data(c,d);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const p=t.const("vSchema",a);c=(0,Jw.or)(...o.map((h,v)=>f(p,v)))}e.pass(c);function d(){t.assign(c,!1),t.forOf("v",a,p=>t.if((0,Jw._)`${u()}(${r}, ${p})`,()=>t.assign(c,!0).break()))}function f(p,h){const v=o[h];return typeof v=="object"&&v!==null?(0,Jw._)`${u()}(${r}, ${p}[${h}])`:(0,Jw._)`${r} === ${v}`}}};iK.default=A1r;Object.defineProperty(YU,"__esModule",{value:!0});const M1r=XU,B1r=QU,j1r=ZU,L1r=eK,z1r=tK,V1r=rK,H1r=nK,W1r=oK,q1r=aK,U1r=iK,K1r=[M1r.default,B1r.default,j1r.default,L1r.default,z1r.default,V1r.default,H1r.default,W1r.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},q1r.default,U1r.default];YU.default=K1r;var sK={},_S={};Object.defineProperty(_S,"__esModule",{value:!0});_S.validateAdditionalItems=void 0;const Bv=zr,$8=ln,G1r={message:({params:{len:e}})=>(0,Bv.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Bv._)`{limit: ${e}}`},Y1r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:G1r,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,$8.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Nke(e,n)}};function Nke(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",(0,Bv._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Bv._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,$8.alwaysValidSchema)(i,n)){const u=r.var("valid",(0,Bv._)`${s} <= ${t.length}`);r.if((0,Bv.not)(u),()=>l(u)),e.ok(u)}function l(u){r.forRange("i",t.length,s,c=>{e.subschema({keyword:a,dataProp:c,dataPropType:$8.Type.Num},u),i.allErrors||r.if((0,Bv.not)(u),()=>r.break())})}}_S.validateAdditionalItems=Nke;_S.default=Y1r;var lK={},kS={};Object.defineProperty(kS,"__esModule",{value:!0});kS.validateTuple=void 0;const Ole=zr,yT=ln,X1r=Br,Q1r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Dke(e,"additionalItems",t);r.items=!0,!(0,yT.alwaysValidSchema)(r,t)&&e.ok((0,X1r.validateArray)(e))}};function Dke(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;c(o),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=yT.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",(0,Ole._)`${a}.length`);r.forEach((d,f)=>{(0,yT.alwaysValidSchema)(s,d)||(n.if((0,Ole._)`${u} > ${f}`,()=>e.subschema({keyword:i,schemaProp:f,dataProp:f},l)),e.ok(l))});function c(d){const{opts:f,errSchemaPath:p}=s,h=r.length,v=h===d.minItems&&(h===d.maxItems||d[t]===!1);if(f.strictTuples&&!v){const b=`"${i}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,yT.checkStrictMode)(s,b,f.strictTuples)}}}kS.validateTuple=Dke;kS.default=Q1r;Object.defineProperty(lK,"__esModule",{value:!0});const Z1r=kS,J1r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Z1r.validateTuple)(e,"items")};lK.default=J1r;var uK={};Object.defineProperty(uK,"__esModule",{value:!0});const Nle=zr,eSr=ln,tSr=Br,rSr=_S,nSr={message:({params:{len:e}})=>(0,Nle.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Nle._)`{limit: ${e}}`},oSr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:nSr,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,eSr.alwaysValidSchema)(n,t)&&(o?(0,rSr.validateAdditionalItems)(e,o):e.ok((0,tSr.validateArray)(e)))}};uK.default=oSr;var cK={};Object.defineProperty(cK,"__esModule",{value:!0});const eu=zr,sP=ln,aSr={message:({params:{min:e,max:t}})=>t===void 0?(0,eu.str)`must contain at least ${e} valid item(s)`:(0,eu.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,eu._)`{minContains: ${e}}`:(0,eu._)`{minContains: ${e}, maxContains: ${t}}`},iSr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:aSr,code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=n;a.opts.next?(i=l===void 0?1:l,s=u):i=1;const c=t.const("len",(0,eu._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,sP.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,sP.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,sP.alwaysValidSchema)(a,r)){let v=(0,eu._)`${c} >= ${i}`;s!==void 0&&(v=(0,eu._)`${v} && ${c} <= ${s}`),e.pass(v);return}a.items=!0;const d=t.name("valid");s===void 0&&i===1?p(d,()=>t.if(d,()=>t.break())):i===0?(t.let(d,!0),s!==void 0&&t.if((0,eu._)`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const v=t.name("_valid"),b=t.let("count",0);p(v,()=>t.if(v,()=>h(b)))}function p(v,b){t.forRange("i",0,c,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:sP.Type.Num,compositeRule:!0},v),b()})}function h(v){t.code((0,eu._)`${v}++`),s===void 0?t.if((0,eu._)`${v} >= ${i}`,()=>t.assign(d,!0).break()):(t.if((0,eu._)`${v} > ${s}`,()=>t.assign(d,!1).break()),i===1?t.assign(d,!0):t.if((0,eu._)`${v} >= ${i}`,()=>t.assign(d,!0)))}}};cK.default=iSr;var Ake={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=zr,r=ln,n=Br;e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const d=u===1?"property":"properties";return(0,t.str)`must have ${d} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:d}})=>(0,t._)`{property: ${l}, + missingProperty: ${d}, + depsCount: ${u}, + deps: ${c}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=a(l);i(l,u),s(l,c)}};function a({schema:l}){const u={},c={};for(const d in l){if(d==="__proto__")continue;const f=Array.isArray(l[d])?u:c;f[d]=l[d]}return[u,c]}function i(l,u=l.schema){const{gen:c,data:d,it:f}=l;if(Object.keys(u).length===0)return;const p=c.let("missing");for(const h in u){const v=u[h];if(v.length===0)continue;const b=(0,n.propertyInData)(c,d,h,f.opts.ownProperties);l.setParams({property:h,depsCount:v.length,deps:v.join(", ")}),f.allErrors?c.if(b,()=>{for(const g of v)(0,n.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${b} && (${(0,n.checkMissingProp)(l,v,p)})`),(0,n.reportMissingProp)(l,p),c.else())}}e.validatePropertyDeps=i;function s(l,u=l.schema){const{gen:c,data:d,keyword:f,it:p}=l,h=c.name("valid");for(const v in u)(0,r.alwaysValidSchema)(p,u[v])||(c.if((0,n.propertyInData)(c,d,v,p.opts.ownProperties),()=>{const b=l.subschema({keyword:f,schemaProp:v},h);l.mergeValidEvaluated(b,h)},()=>c.var(h,!0)),l.ok(h))}e.validateSchemaDeps=s,e.default=o})(Ake);var dK={};Object.defineProperty(dK,"__esModule",{value:!0});const Mke=zr,sSr=ln,lSr={message:"property name must be valid",params:({params:e})=>(0,Mke._)`{propertyName: ${e.propertyName}}`},uSr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:lSr,code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,sSr.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,Mke.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};dK.default=uSr;var wA={};Object.defineProperty(wA,"__esModule",{value:!0});const lP=Br,Zu=zr,cSr=Jd,uP=ln,dSr={message:"must NOT have additional properties",params:({params:e})=>(0,Zu._)`{additionalProperty: ${e.additionalProperty}}`},fSr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:dSr,code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,uP.alwaysValidSchema)(i,r))return;const u=(0,lP.allSchemaProperties)(n.properties),c=(0,lP.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Zu._)`${a} === ${cSr.default.errors}`);function d(){t.forIn("key",o,b=>{!u.length&&!c.length?h(b):t.if(f(b),()=>h(b))})}function f(b){let g;if(u.length>8){const y=(0,uP.schemaRefOrVal)(i,n.properties,"properties");g=(0,lP.isOwnProperty)(t,y,b)}else u.length?g=(0,Zu.or)(...u.map(y=>(0,Zu._)`${b} === ${y}`)):g=Zu.nil;return c.length&&(g=(0,Zu.or)(g,...c.map(y=>(0,Zu._)`${(0,lP.usePattern)(e,y)}.test(${b})`))),(0,Zu.not)(g)}function p(b){t.code((0,Zu._)`delete ${o}[${b}]`)}function h(b){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){p(b);return}if(r===!1){e.setParams({additionalProperty:b}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,uP.alwaysValidSchema)(i,r)){const g=t.name("valid");l.removeAdditional==="failing"?(v(b,g,!1),t.if((0,Zu.not)(g),()=>{e.reset(),p(b)})):(v(b,g),s||t.if((0,Zu.not)(g),()=>t.break()))}}function v(b,g,y){const S={keyword:"additionalProperties",dataProp:b,dataPropType:uP.Type.Str};y===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,g)}}};wA.default=fSr;var fK={};Object.defineProperty(fK,"__esModule",{value:!0});const pSr=Tc,Dle=Br,_3=ln,Ale=wA,mSr={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;a.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Ale.default.code(new pSr.KeywordCxt(a,Ale.default,"additionalProperties"));const i=(0,Dle.allSchemaProperties)(r);for(const d of i)a.definedProperties.add(d);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=_3.mergeEvaluated.props(t,(0,_3.toHash)(i),a.props));const s=i.filter(d=>!(0,_3.alwaysValidSchema)(a,r[d]));if(s.length===0)return;const l=t.name("valid");for(const d of s)u(d)?c(d):(t.if((0,Dle.propertyInData)(t,o,d,a.opts.ownProperties)),c(d),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(l);function u(d){return a.opts.useDefaults&&!a.compositeRule&&r[d].default!==void 0}function c(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};fK.default=mSr;var pK={};Object.defineProperty(pK,"__esModule",{value:!0});const Mle=Br,cP=zr,Ble=ln,jle=ln,hSr={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,Mle.allSchemaProperties)(r),l=s.filter(v=>(0,Ble.alwaysValidSchema)(a,r[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");a.props!==!0&&!(a.props instanceof cP.Name)&&(a.props=(0,jle.evaluatedPropsToName)(t,a.props));const{props:d}=a;f();function f(){for(const v of s)u&&p(v),a.allErrors?h(v):(t.var(c,!0),h(v),t.if(c))}function p(v){for(const b in u)new RegExp(v).test(b)&&(0,Ble.checkStrictMode)(a,`property ${b} matches pattern ${v} (use allowMatchingProperties)`)}function h(v){t.forIn("key",n,b=>{t.if((0,cP._)`${(0,Mle.usePattern)(e,v)}.test(${b})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:b,dataPropType:jle.Type.Str},c),a.opts.unevaluated&&d!==!0?t.assign((0,cP._)`${d}[${b}]`,!0):!g&&!a.allErrors&&t.if((0,cP.not)(c),()=>t.break())})})}}};pK.default=hSr;var mK={};Object.defineProperty(mK,"__esModule",{value:!0});const vSr=ln,gSr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,vSr.alwaysValidSchema)(n,r)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};mK.default=gSr;var hK={};Object.defineProperty(hK,"__esModule",{value:!0});const bSr=Br,ySr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:bSr.validateUnion,error:{message:"must match a schema in anyOf"}};hK.default=ySr;var vK={};Object.defineProperty(vK,"__esModule",{value:!0});const ST=zr,SSr=ln,wSr={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ST._)`{passingSchemas: ${e.passing}}`},CSr={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:wSr,code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(u),e.result(i,()=>e.reset(),()=>e.error(!0));function u(){a.forEach((c,d)=>{let f;(0,SSr.alwaysValidSchema)(o,c)?t.var(l,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&t.if((0,ST._)`${l} && ${i}`).assign(i,!1).assign(s,(0,ST._)`[${s}, ${d}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,d),f&&e.mergeEvaluated(f,ST.Name)})})}}};vK.default=CSr;var gK={};Object.defineProperty(gK,"__esModule",{value:!0});const xSr=ln,$Sr={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach((a,i)=>{if((0,xSr.alwaysValidSchema)(n,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};gK.default=$Sr;var bK={};Object.defineProperty(bK,"__esModule",{value:!0});const iF=zr,Bke=ln,ESr={message:({params:e})=>(0,iF.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,iF._)`{failingKeyword: ${e.ifClause}}`},_Sr={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ESr,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Bke.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=Lle(n,"then"),a=Lle(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const c=t.let("ifClause");e.setParams({ifClause:c}),t.if(s,u("then",c),u("else",c))}else o?t.if(s,u("then")):t.if((0,iF.not)(s),u("else"));e.pass(i,()=>e.error(!0));function l(){const c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(c)}function u(c,d){return()=>{const f=e.subschema({keyword:c},s);t.assign(i,s),e.mergeValidEvaluated(f,i),d?t.assign(d,(0,iF._)`${c}`):e.setParams({ifClause:c})}}}};function Lle(e,t){const r=e.schema[t];return r!==void 0&&!(0,Bke.alwaysValidSchema)(e,r)}bK.default=_Sr;var yK={};Object.defineProperty(yK,"__esModule",{value:!0});const kSr=ln,PSr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,kSr.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};yK.default=PSr;Object.defineProperty(sK,"__esModule",{value:!0});const TSr=_S,ISr=lK,RSr=kS,FSr=uK,OSr=cK,NSr=Ake,DSr=dK,ASr=wA,MSr=fK,BSr=pK,jSr=mK,LSr=hK,zSr=vK,VSr=gK,HSr=bK,WSr=yK;function qSr(e=!1){const t=[jSr.default,LSr.default,zSr.default,VSr.default,HSr.default,WSr.default,DSr.default,ASr.default,NSr.default,MSr.default,BSr.default];return e?t.push(ISr.default,FSr.default):t.push(TSr.default,RSr.default),t.push(OSr.default),t}sK.default=qSr;var SK={},wK={};Object.defineProperty(wK,"__esModule",{value:!0});const Go=zr,USr={message:({schemaCode:e})=>(0,Go.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Go._)`{format: ${e}}`},KSr={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:USr,code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:d}=s;if(!l.validateFormats)return;o?f():p();function f(){const h=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),v=r.const("fDef",(0,Go._)`${h}[${i}]`),b=r.let("fType"),g=r.let("format");r.if((0,Go._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(b,(0,Go._)`${v}.type || "string"`).assign(g,(0,Go._)`${v}.validate`),()=>r.assign(b,(0,Go._)`"string"`).assign(g,v)),e.fail$data((0,Go.or)(y(),S()));function y(){return l.strictSchema===!1?Go.nil:(0,Go._)`${i} && !${g}`}function S(){const w=c.$async?(0,Go._)`(${v}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Go._)`${g}(${n})`,$=(0,Go._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${n}))`;return(0,Go._)`${g} && ${g} !== true && ${b} === ${t} && !${$}`}}function p(){const h=d.formats[a];if(!h){y();return}if(h===!0)return;const[v,b,g]=S(h);v===t&&e.pass(w());function y(){if(l.strictSchema===!1){d.logger.warn($());return}throw new Error($());function $(){return`unknown format "${a}" ignored in schema at path "${u}"`}}function S($){const C=$ instanceof RegExp?(0,Go.regexpCode)($):l.code.formats?(0,Go._)`${l.code.formats}${(0,Go.getProperty)(a)}`:void 0,x=r.scopeValue("formats",{key:a,ref:$,code:C});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Go._)`${x}.validate`]:["string",$,x]}function w(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Go._)`await ${g}(${n})`}return typeof b=="function"?(0,Go._)`${g}(${n})`:(0,Go._)`${g}.test(${n})`}}}};wK.default=KSr;Object.defineProperty(SK,"__esModule",{value:!0});const GSr=wK,YSr=[GSr.default];SK.default=YSr;var T1={};Object.defineProperty(T1,"__esModule",{value:!0});T1.contentVocabulary=T1.metadataVocabulary=void 0;T1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];T1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(UU,"__esModule",{value:!0});const XSr=KU,QSr=YU,ZSr=sK,JSr=SK,zle=T1,ewr=[XSr.default,QSr.default,(0,ZSr.default)(),JSr.default,zle.metadataVocabulary,zle.contentVocabulary];UU.default=ewr;var CK={},jke={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(jke);Object.defineProperty(CK,"__esModule",{value:!0});const yb=zr,E8=jke,Vle=Bs,twr=ln,rwr={message:({params:{discrError:e,tagName:t}})=>e===E8.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,yb._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},nwr={keyword:"discriminator",type:"object",schemaType:"object",error:rwr,code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),u=t.const("tag",(0,yb._)`${r}${(0,yb.getProperty)(s)}`);t.if((0,yb._)`typeof ${u} == "string"`,()=>c(),()=>e.error(!1,{discrError:E8.DiscrError.Tag,tag:u,tagName:s})),e.ok(l);function c(){const p=f();t.if(!1);for(const h in p)t.elseIf((0,yb._)`${u} === ${h}`),t.assign(l,d(p[h]));t.else(),e.error(!1,{discrError:E8.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}function d(p){const h=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:p},h);return e.mergeEvaluated(v,yb.Name),h}function f(){var p;const h={},v=g(o);let b=!0;for(let w=0;wthis.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(h,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=Tc;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=zr;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var d=O_;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=N_;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(y8,y8.exports);var dwr=y8.exports;const fwr=zt(dwr);var _8={exports:{}},Lke={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,k){return{validate:_,compare:k}}e.fullFormats={date:t(a,i),time:t(l,u),"date-time":t(d,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:E,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:w},int64:{type:"number",validate:$},float:{type:"number",validate:C},double:{type:"number",validate:C},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(_){return _%4===0&&(_%100!==0||_%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(_){const k=n.exec(_);if(!k)return!1;const I=+k[1],N=+k[2],z=+k[3];return N>=1&&N<=12&&z>=1&&z<=(N===2&&r(I)?29:o[N])}function i(_,k){if(_&&k)return _>k?1:_k?1:_=y}function $(_){return Number.isInteger(_)}function C(){return!0}const x=/[^\\]\\Z/;function E(_){if(x.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(Lke);var zke={},k8={exports:{}},Vke={},Ic={},I1={},A_={},Fr={},X$={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((S,w)=>`${S}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((S,w)=>(w instanceof r&&(S[w.str]=(S[w.str]||0)+1),S),{})}}e._Code=n,e.nil=new n("");function o(g,...y){const S=[g[0]];let w=0;for(;w{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${u}${d.scopePath}`})}scopeCode(u=this._values,c,d){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},c,d)}_reduceValues(u,c,d={},f){let p=t.nil;for(const h in u){const v=u[h];if(!v)continue;const b=d[h]=d[h]||new Map;v.forEach(g=>{if(b.has(g))return;b.set(g,n.Started);let y=c(g);if(y){const S=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${S} ${g} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(g))p=(0,t._)`${p}${y}${this.opts._n}`;else throw new r(g);b.set(g,n.Completed)})}return p}}e.ValueScope=s})(P8);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=X$,r=P8;var n=X$;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=P8;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(P,R){return this}}class i extends a{constructor(P,R,W){super(),this.varKind=P,this.name=R,this.rhs=W}render({es5:P,_n:R}){const W=P?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${W} ${this.name}${U};`+R}optimizeNames(P,R){if(P[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,P,R)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(P,R,W){super(),this.lhs=P,this.rhs=R,this.sideEffects=W}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,R){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,P,R),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(P,this.rhs)}}class l extends s{constructor(P,R,W,U){super(P,W,U),this.op=R}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class u extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class c extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends a{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends a{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,R){return this.code=O(this.code,P,R),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((R,W)=>R+W.render(P),"")}optimizeNodes(){const{nodes:P}=this;let R=P.length;for(;R--;){const W=P[R].optimizeNodes();Array.isArray(W)?P.splice(R,1,...W):W?P[R]=W:P.splice(R,1)}return P.length>0?this:void 0}optimizeNames(P,R){const{nodes:W}=this;let U=W.length;for(;U--;){const q=W[U];q.optimizeNames(P,R)||(A(P,q.names),W.splice(U,1))}return W.length>0?this:void 0}get names(){return this.nodes.reduce((P,R)=>N(P,R.names),{})}}class h extends p{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class v extends p{}class b extends h{}b.kind="else";class g extends h{constructor(P,R){super(R),this.condition=P}render(P){let R=`if(${this.condition})`+super.render(P);return this.else&&(R+="else "+this.else.render(P)),R}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let R=this.else;if(R){const W=R.optimizeNodes();R=this.else=Array.isArray(W)?new b(W):W}if(R)return P===!1?R instanceof g?R:R.nodes:this.nodes.length?this:new g(M(P),R instanceof g?[R]:R.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,R){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(P,R),!!(super.optimizeNames(P,R)||this.else))return this.condition=O(this.condition,P,R),this}get names(){const P=super.names;return z(P,this.condition),this.else&&N(P,this.else.names),P}}g.kind="if";class y extends h{}y.kind="for";class S extends y{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,R){if(super.optimizeNames(P,R))return this.iteration=O(this.iteration,P,R),this}get names(){return N(super.names,this.iteration.names)}}class w extends y{constructor(P,R,W,U){super(),this.varKind=P,this.name=R,this.from=W,this.to=U}render(P){const R=P.es5?r.varKinds.var:this.varKind,{name:W,from:U,to:q}=this;return`for(${R} ${W}=${U}; ${W}<${q}; ${W}++)`+super.render(P)}get names(){const P=z(super.names,this.from);return z(P,this.to)}}class $ extends y{constructor(P,R,W,U){super(),this.loop=P,this.varKind=R,this.name=W,this.iterable=U}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,R){if(super.optimizeNames(P,R))return this.iterable=O(this.iterable,P,R),this}get names(){return N(super.names,this.iterable.names)}}class C extends h{constructor(P,R,W){super(),this.name=P,this.args=R,this.async=W}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}C.kind="func";class x extends p{render(P){return"return "+super.render(P)}}x.kind="return";class E extends h{render(P){let R="try"+super.render(P);return this.catch&&(R+=this.catch.render(P)),this.finally&&(R+=this.finally.render(P)),R}optimizeNodes(){var P,R;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(R=this.finally)===null||R===void 0||R.optimizeNodes(),this}optimizeNames(P,R){var W,U;return super.optimizeNames(P,R),(W=this.catch)===null||W===void 0||W.optimizeNames(P,R),(U=this.finally)===null||U===void 0||U.optimizeNames(P,R),this}get names(){const P=super.names;return this.catch&&N(P,this.catch.names),this.finally&&N(P,this.finally.names),P}}class _ extends h{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}_.kind="catch";class k extends h{render(P){return"finally"+super.render(P)}}k.kind="finally";class I{constructor(P,R={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...R,_n:R.lines?` +`:""},this._extScope=P,this._scope=new r.Scope({parent:P}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,R){const W=this._extScope.value(P,R);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}getScopeValue(P,R){return this._extScope.getValue(P,R)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,R,W,U){const q=this._scope.toName(R);return W!==void 0&&U&&(this._constants[q.str]=W),this._leafNode(new i(P,q,W)),q}const(P,R,W){return this._def(r.varKinds.const,P,R,W)}let(P,R,W){return this._def(r.varKinds.let,P,R,W)}var(P,R,W){return this._def(r.varKinds.var,P,R,W)}assign(P,R,W){return this._leafNode(new s(P,R,W))}add(P,R){return this._leafNode(new l(P,e.operators.ADD,R))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new f(P)),this}object(...P){const R=["{"];for(const[W,U]of P)R.length>1&&R.push(","),R.push(W),(W!==U||this.opts.es5)&&(R.push(":"),(0,t.addCodeArg)(R,U));return R.push("}"),new t._Code(R)}if(P,R,W){if(this._blockNode(new g(P)),R&&W)this.code(R).else().code(W).endIf();else if(R)this.code(R).endIf();else if(W)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new g(P))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(g,b)}_for(P,R){return this._blockNode(P),R&&this.code(R).endFor(),this}for(P,R){return this._for(new S(P),R)}forRange(P,R,W,U,q=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(P);return this._for(new w(q,J,R,W),()=>U(J))}forOf(P,R,W,U=r.varKinds.const){const q=this._scope.toName(P);if(this.opts.es5){const J=R instanceof t.Name?R:this.var("_arr",R);return this.forRange("_i",0,(0,t._)`${J}.length`,Z=>{this.var(q,(0,t._)`${J}[${Z}]`),W(q)})}return this._for(new $("of",U,q,R),()=>W(q))}forIn(P,R,W,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${R})`,W);const q=this._scope.toName(P);return this._for(new $("in",U,q,R),()=>W(q))}endFor(){return this._endBlockNode(y)}label(P){return this._leafNode(new u(P))}break(P){return this._leafNode(new c(P))}return(P){const R=new x;if(this._blockNode(R),this.code(P),R.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(P,R,W){if(!R&&!W)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new E;if(this._blockNode(U),this.code(P),R){const q=this.name("e");this._currNode=U.catch=new _(q),R(q)}return W&&(this._currNode=U.finally=new k,this.code(W)),this._endBlockNode(_,k)}throw(P){return this._leafNode(new d(P))}block(P,R){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(R),this}endBlock(P){const R=this._blockStarts.pop();if(R===void 0)throw new Error("CodeGen: not in self-balancing block");const W=this._nodes.length-R;if(W<0||P!==void 0&&W!==P)throw new Error(`CodeGen: wrong number of nodes: ${W} vs ${P} expected`);return this._nodes.length=R,this}func(P,R=t.nil,W,U){return this._blockNode(new C(P,R,W)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,R){const W=this._currNode;if(W instanceof P||R&&W instanceof R)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${R?`${P.kind}/${R.kind}`:P.kind}"`)}_elseNode(P){const R=this._currNode;if(!(R instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=R.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const R=this._nodes;R[R.length-1]=P}}e.CodeGen=I;function N(D,P){for(const R in P)D[R]=(D[R]||0)+(P[R]||0);return D}function z(D,P){return P instanceof t._CodeOrName?N(D,P.names):D}function O(D,P,R){if(D instanceof t.Name)return W(D);if(!U(D))return D;return new t._Code(D._items.reduce((q,J)=>(J instanceof t.Name&&(J=W(J)),J instanceof t._Code?q.push(...J._items):q.push(J),q),[]));function W(q){const J=R[q.str];return J===void 0||P[q.str]!==1?q:(delete P[q.str],J)}function U(q){return q instanceof t._Code&&q._items.some(J=>J instanceof t.Name&&P[J.str]===1&&R[J.str]!==void 0)}}function A(D,P){for(const R in P)D[R]=(D[R]||0)-(P[R]||0)}function M(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${V(D)}`}e.not=M;const L=F(e.operators.AND);function j(...D){return D.reduce(L)}e.and=j;const H=F(e.operators.OR);function B(...D){return D.reduce(H)}e.or=B;function F(D){return(P,R)=>P===t.nil?R:R===t.nil?P:(0,t._)`${V(P)} ${D} ${V(R)}`}function V(D){return D instanceof t.Name?D:(0,t._)`(${D})`}})(Fr);var un={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Fr,r=X$;function n(C){const x={};for(const E of C)x[E]=!0;return x}e.toHash=n;function o(C,x){return typeof x=="boolean"?x:Object.keys(x).length===0?!0:(a(C,x),!i(x,C.self.RULES.all))}e.alwaysValidSchema=o;function a(C,x=C.schema){const{opts:E,self:_}=C;if(!E.strictSchema||typeof x=="boolean")return;const k=_.RULES.keywords;for(const I in x)k[I]||$(C,`unknown keyword: "${I}"`)}e.checkUnknownRules=a;function i(C,x){if(typeof C=="boolean")return!C;for(const E in C)if(x[E])return!0;return!1}e.schemaHasRules=i;function s(C,x){if(typeof C=="boolean")return!C;for(const E in C)if(E!=="$ref"&&x.all[E])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:C,schemaPath:x},E,_,k){if(!k){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,t._)`${E}`}return(0,t._)`${C}${x}${(0,t.getProperty)(_)}`}e.schemaRefOrVal=l;function u(C){return f(decodeURIComponent(C))}e.unescapeFragment=u;function c(C){return encodeURIComponent(d(C))}e.escapeFragment=c;function d(C){return typeof C=="number"?`${C}`:C.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(C){return C.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function p(C,x){if(Array.isArray(C))for(const E of C)x(E);else x(C)}e.eachItem=p;function h({mergeNames:C,mergeToName:x,mergeValues:E,resultToName:_}){return(k,I,N,z)=>{const O=N===void 0?I:N instanceof t.Name?(I instanceof t.Name?C(k,I,N):x(k,I,N),N):I instanceof t.Name?(x(k,N,I),I):E(I,N);return z===t.Name&&!(O instanceof t.Name)?_(k,O):O}}e.mergeEvaluated={props:h({mergeNames:(C,x,E)=>C.if((0,t._)`${E} !== true && ${x} !== undefined`,()=>{C.if((0,t._)`${x} === true`,()=>C.assign(E,!0),()=>C.assign(E,(0,t._)`${E} || {}`).code((0,t._)`Object.assign(${E}, ${x})`))}),mergeToName:(C,x,E)=>C.if((0,t._)`${E} !== true`,()=>{x===!0?C.assign(E,!0):(C.assign(E,(0,t._)`${E} || {}`),b(C,E,x))}),mergeValues:(C,x)=>C===!0?!0:{...C,...x},resultToName:v}),items:h({mergeNames:(C,x,E)=>C.if((0,t._)`${E} !== true && ${x} !== undefined`,()=>C.assign(E,(0,t._)`${x} === true ? true : ${E} > ${x} ? ${E} : ${x}`)),mergeToName:(C,x,E)=>C.if((0,t._)`${E} !== true`,()=>C.assign(E,x===!0?!0:(0,t._)`${E} > ${x} ? ${E} : ${x}`)),mergeValues:(C,x)=>C===!0?!0:Math.max(C,x),resultToName:(C,x)=>C.var("items",x)})};function v(C,x){if(x===!0)return C.var("props",!0);const E=C.var("props",(0,t._)`{}`);return x!==void 0&&b(C,E,x),E}e.evaluatedPropsToName=v;function b(C,x,E){Object.keys(E).forEach(_=>C.assign((0,t._)`${x}${(0,t.getProperty)(_)}`,!0))}e.setEvaluated=b;const g={};function y(C,x){return C.scopeValue("func",{ref:x,code:g[x.code]||(g[x.code]=new r._Code(x.code))})}e.useFunc=y;var S;(function(C){C[C.Num=0]="Num",C[C.Str=1]="Str"})(S=e.Type||(e.Type={}));function w(C,x,E){if(C instanceof t.Name){const _=x===S.Num;return E?_?(0,t._)`"[" + ${C} + "]"`:(0,t._)`"['" + ${C} + "']"`:_?(0,t._)`"/" + ${C}`:(0,t._)`"/" + ${C}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,t.getProperty)(C).toString():"/"+d(C)}e.getErrorPath=w;function $(C,x,E=C.opts.strictSchema){if(E){if(x=`strict mode: ${x}`,E===!0)throw new Error(x);C.self.logger.warn(x)}}e.checkStrictMode=$})(un);var ef={};Object.defineProperty(ef,"__esModule",{value:!0});const $i=Fr,pwr={data:new $i.Name("data"),valCxt:new $i.Name("valCxt"),instancePath:new $i.Name("instancePath"),parentData:new $i.Name("parentData"),parentDataProperty:new $i.Name("parentDataProperty"),rootData:new $i.Name("rootData"),dynamicAnchors:new $i.Name("dynamicAnchors"),vErrors:new $i.Name("vErrors"),errors:new $i.Name("errors"),this:new $i.Name("this"),self:new $i.Name("self"),scope:new $i.Name("scope"),json:new $i.Name("json"),jsonPos:new $i.Name("jsonPos"),jsonLen:new $i.Name("jsonLen"),jsonPart:new $i.Name("jsonPart")};ef.default=pwr;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Fr,r=un,n=ef;e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:g})=>g?(0,t.str)`"${b}" keyword must be ${g} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,g=e.keywordError,y,S){const{it:w}=b,{gen:$,compositeRule:C,allErrors:x}=w,E=d(b,g,y);S??(C||x)?l($,E):u(w,(0,t._)`[${E}]`)}e.reportError=o;function a(b,g=e.keywordError,y){const{it:S}=b,{gen:w,compositeRule:$,allErrors:C}=S,x=d(b,g,y);l(w,x),$||C||u(S,n.default.vErrors)}e.reportExtraError=a;function i(b,g){b.assign(n.default.errors,g),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(g,()=>b.assign((0,t._)`${n.default.vErrors}.length`,g),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:b,keyword:g,schemaValue:y,data:S,errsCount:w,it:$}){if(w===void 0)throw new Error("ajv implementation error");const C=b.name("err");b.forRange("i",w,n.default.errors,x=>{b.const(C,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${C}.instancePath === undefined`,()=>b.assign((0,t._)`${C}.instancePath`,(0,t.strConcat)(n.default.instancePath,$.errorPath))),b.assign((0,t._)`${C}.schemaPath`,(0,t.str)`${$.errSchemaPath}/${g}`),$.opts.verbose&&(b.assign((0,t._)`${C}.schema`,y),b.assign((0,t._)`${C}.data`,S))})}e.extendErrors=s;function l(b,g){const y=b.const("err",g);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),b.code((0,t._)`${n.default.errors}++`)}function u(b,g){const{gen:y,validateName:S,schemaEnv:w}=b;w.$async?y.throw((0,t._)`new ${b.ValidationError}(${g})`):(y.assign((0,t._)`${S}.errors`,g),y.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(b,g,y){const{createErrors:S}=b.it;return S===!1?(0,t._)`{}`:f(b,g,y)}function f(b,g,y={}){const{gen:S,it:w}=b,$=[p(w,y),h(b,y)];return v(b,g,$),S.object(...$)}function p({errorPath:b},{instancePath:g}){const y=g?(0,t.str)`${b}${(0,r.getErrorPath)(g,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function h({keyword:b,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:S}){let w=S?g:(0,t.str)`${g}/${b}`;return y&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(y,r.Type.Str)}`),[c.schemaPath,w]}function v(b,{params:g,message:y},S){const{keyword:w,data:$,schemaValue:C,it:x}=b,{opts:E,propertyName:_,topSchemaRef:k,schemaPath:I}=x;S.push([c.keyword,w],[c.params,typeof g=="function"?g(b):g||(0,t._)`{}`]),E.messages&&S.push([c.message,typeof y=="function"?y(b):y]),E.verbose&&S.push([c.schema,C],[c.parentSchema,(0,t._)`${k}${I}`],[n.default.data,$]),_&&S.push([c.propertyName,_])}})(A_);Object.defineProperty(I1,"__esModule",{value:!0});I1.boolOrEmptySchema=I1.topBoolOrEmptySchema=void 0;const mwr=A_,hwr=Fr,vwr=ef,gwr={message:"boolean schema is false"};function bwr(e){const{gen:t,schema:r,validateName:n}=e;r===!1?Hke(e,!1):typeof r=="object"&&r.$async===!0?t.return(vwr.default.data):(t.assign((0,hwr._)`${n}.errors`,null),t.return(!0))}I1.topBoolOrEmptySchema=bwr;function ywr(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Hke(e)):r.var(t,!0)}I1.boolOrEmptySchema=ywr;function Hke(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,mwr.reportError)(o,gwr,void 0,t)}var M_={},t0={};Object.defineProperty(t0,"__esModule",{value:!0});t0.getRules=t0.isJSONType=void 0;const Swr=["string","number","integer","boolean","null","object","array"],wwr=new Set(Swr);function Cwr(e){return typeof e=="string"&&wwr.has(e)}t0.isJSONType=Cwr;function xwr(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}t0.getRules=xwr;var qf={};Object.defineProperty(qf,"__esModule",{value:!0});qf.shouldUseRule=qf.shouldUseGroup=qf.schemaHasRulesForType=void 0;function $wr({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&Wke(e,n)}qf.schemaHasRulesForType=$wr;function Wke(e,t){return t.rules.some(r=>qke(e,r))}qf.shouldUseGroup=Wke;function qke(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}qf.shouldUseRule=qke;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=t0,r=qf,n=A_,o=Fr,a=un;var i;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(S){const w=l(S.type);if(w.includes("null")){if(S.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&S.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');S.nullable===!0&&w.push("null")}return w}e.getSchemaTypes=s;function l(S){const w=Array.isArray(S)?S:S?[S]:[];if(w.every(t.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}e.getJSONTypes=l;function u(S,w){const{gen:$,data:C,opts:x}=S,E=d(w,x.coerceTypes),_=w.length>0&&!(E.length===0&&w.length===1&&(0,r.schemaHasRulesForType)(S,w[0]));if(_){const k=v(w,C,x.strictNumbers,i.Wrong);$.if(k,()=>{E.length?f(S,w,E):g(S)})}return _}e.coerceAndCheckDataType=u;const c=new Set(["string","number","integer","boolean","null"]);function d(S,w){return w?S.filter($=>c.has($)||w==="array"&&$==="array"):[]}function f(S,w,$){const{gen:C,data:x,opts:E}=S,_=C.let("dataType",(0,o._)`typeof ${x}`),k=C.let("coerced",(0,o._)`undefined`);E.coerceTypes==="array"&&C.if((0,o._)`${_} == 'object' && Array.isArray(${x}) && ${x}.length == 1`,()=>C.assign(x,(0,o._)`${x}[0]`).assign(_,(0,o._)`typeof ${x}`).if(v(w,x,E.strictNumbers),()=>C.assign(k,x))),C.if((0,o._)`${k} !== undefined`);for(const N of $)(c.has(N)||N==="array"&&E.coerceTypes==="array")&&I(N);C.else(),g(S),C.endIf(),C.if((0,o._)`${k} !== undefined`,()=>{C.assign(x,k),p(S,k)});function I(N){switch(N){case"string":C.elseIf((0,o._)`${_} == "number" || ${_} == "boolean"`).assign(k,(0,o._)`"" + ${x}`).elseIf((0,o._)`${x} === null`).assign(k,(0,o._)`""`);return;case"number":C.elseIf((0,o._)`${_} == "boolean" || ${x} === null + || (${_} == "string" && ${x} && ${x} == +${x})`).assign(k,(0,o._)`+${x}`);return;case"integer":C.elseIf((0,o._)`${_} === "boolean" || ${x} === null + || (${_} === "string" && ${x} && ${x} == +${x} && !(${x} % 1))`).assign(k,(0,o._)`+${x}`);return;case"boolean":C.elseIf((0,o._)`${x} === "false" || ${x} === 0 || ${x} === null`).assign(k,!1).elseIf((0,o._)`${x} === "true" || ${x} === 1`).assign(k,!0);return;case"null":C.elseIf((0,o._)`${x} === "" || ${x} === 0 || ${x} === false`),C.assign(k,null);return;case"array":C.elseIf((0,o._)`${_} === "string" || ${_} === "number" + || ${_} === "boolean" || ${x} === null`).assign(k,(0,o._)`[${x}]`)}}}function p({gen:S,parentData:w,parentDataProperty:$},C){S.if((0,o._)`${w} !== undefined`,()=>S.assign((0,o._)`${w}[${$}]`,C))}function h(S,w,$,C=i.Correct){const x=C===i.Correct?o.operators.EQ:o.operators.NEQ;let E;switch(S){case"null":return(0,o._)`${w} ${x} null`;case"array":E=(0,o._)`Array.isArray(${w})`;break;case"object":E=(0,o._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":E=_((0,o._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":E=_();break;default:return(0,o._)`typeof ${w} ${x} ${S}`}return C===i.Correct?E:(0,o.not)(E);function _(k=o.nil){return(0,o.and)((0,o._)`typeof ${w} == "number"`,k,$?(0,o._)`isFinite(${w})`:o.nil)}}e.checkDataType=h;function v(S,w,$,C){if(S.length===1)return h(S[0],w,$,C);let x;const E=(0,a.toHash)(S);if(E.array&&E.object){const _=(0,o._)`typeof ${w} != "object"`;x=E.null?_:(0,o._)`!${w} || ${_}`,delete E.null,delete E.array,delete E.object}else x=o.nil;E.number&&delete E.integer;for(const _ in E)x=(0,o.and)(x,h(_,w,$,C));return x}e.checkDataTypes=v;const b={message:({schema:S})=>`must be ${S}`,params:({schema:S,schemaValue:w})=>typeof S=="string"?(0,o._)`{type: ${S}}`:(0,o._)`{type: ${w}}`};function g(S){const w=y(S);(0,n.reportError)(w,b)}e.reportTypeError=g;function y(S){const{gen:w,data:$,schema:C}=S,x=(0,a.schemaRefOrVal)(S,C,"type");return{gen:w,keyword:"type",data:$,schema:C.type,schemaCode:x,schemaValue:x,parentSchema:C,params:{},it:S}}})(M_);var CA={};Object.defineProperty(CA,"__esModule",{value:!0});CA.assignDefaults=void 0;const db=Fr,Ewr=un;function _wr(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const o in r)Hle(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,a)=>Hle(e,a,o.default))}CA.assignDefaults=_wr;function Hle(e,t,r){const{gen:n,compositeRule:o,data:a,opts:i}=e;if(r===void 0)return;const s=(0,db._)`${a}${(0,db.getProperty)(t)}`;if(o){(0,Ewr.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,db._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,db._)`${l} || ${s} === null || ${s} === ""`),n.if(l,(0,db._)`${s} = ${(0,db.stringify)(r)}`)}var xd={},jr={};Object.defineProperty(jr,"__esModule",{value:!0});jr.validateUnion=jr.validateArray=jr.usePattern=jr.callValidateCode=jr.schemaProperties=jr.allSchemaProperties=jr.noPropertyInData=jr.propertyInData=jr.isOwnProperty=jr.hasPropFunc=jr.reportMissingProp=jr.checkMissingProp=jr.checkReportMissingProp=void 0;const io=Fr,xK=un,pm=ef,kwr=un;function Pwr(e,t){const{gen:r,data:n,it:o}=e;r.if(EK(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,io._)`${t}`},!0),e.error()})}jr.checkReportMissingProp=Pwr;function Twr({gen:e,data:t,it:{opts:r}},n,o){return(0,io.or)(...n.map(a=>(0,io.and)(EK(e,t,a,r.ownProperties),(0,io._)`${o} = ${a}`)))}jr.checkMissingProp=Twr;function Iwr(e,t){e.setParams({missingProperty:t},!0),e.error()}jr.reportMissingProp=Iwr;function Uke(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,io._)`Object.prototype.hasOwnProperty`})}jr.hasPropFunc=Uke;function $K(e,t,r){return(0,io._)`${Uke(e)}.call(${t}, ${r})`}jr.isOwnProperty=$K;function Rwr(e,t,r,n){const o=(0,io._)`${t}${(0,io.getProperty)(r)} !== undefined`;return n?(0,io._)`${o} && ${$K(e,t,r)}`:o}jr.propertyInData=Rwr;function EK(e,t,r,n){const o=(0,io._)`${t}${(0,io.getProperty)(r)} === undefined`;return n?(0,io.or)(o,(0,io.not)($K(e,t,r))):o}jr.noPropertyInData=EK;function Kke(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}jr.allSchemaProperties=Kke;function Fwr(e,t){return Kke(t).filter(r=>!(0,xK.alwaysValidSchema)(e,t[r]))}jr.schemaProperties=Fwr;function Owr({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:a},it:i},s,l,u){const c=u?(0,io._)`${e}, ${t}, ${n}${o}`:t,d=[[pm.default.instancePath,(0,io.strConcat)(pm.default.instancePath,a)],[pm.default.parentData,i.parentData],[pm.default.parentDataProperty,i.parentDataProperty],[pm.default.rootData,pm.default.rootData]];i.opts.dynamicRef&&d.push([pm.default.dynamicAnchors,pm.default.dynamicAnchors]);const f=(0,io._)`${c}, ${r.object(...d)}`;return l!==io.nil?(0,io._)`${s}.call(${l}, ${f})`:(0,io._)`${s}(${f})`}jr.callValidateCode=Owr;const Nwr=(0,io._)`new RegExp`;function Dwr({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,io._)`${o.code==="new RegExp"?Nwr:(0,kwr.useFunc)(e,o)}(${r}, ${n})`})}jr.usePattern=Dwr;function Awr(e){const{gen:t,data:r,keyword:n,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,io._)`${r}.length`);t.forRange("i",0,l,u=>{e.subschema({keyword:n,dataProp:u,dataPropType:xK.Type.Num},a),t.if((0,io.not)(a),s)})}}jr.validateArray=Awr;function Mwr(e){const{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,xK.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((l,u)=>{const c=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},s);t.assign(i,(0,io._)`${i} || ${s}`),e.mergeValidEvaluated(c,s)||t.if((0,io.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}jr.validateUnion=Mwr;Object.defineProperty(xd,"__esModule",{value:!0});xd.validateKeywordUsage=xd.validSchemaType=xd.funcKeywordCode=xd.macroKeywordCode=void 0;const ss=Fr,jv=ef,Bwr=jr,jwr=A_;function Lwr(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=Gke(r,n,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const u=r.name("valid");e.subschema({schema:s,schemaPath:ss.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}xd.macroKeywordCode=Lwr;function zwr(e,t){var r;const{gen:n,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;Hwr(l,t);const u=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,c=Gke(n,o,u),d=n.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)v(),t.modifying&&Wle(e),b(()=>e.error());else{const g=t.async?p():h();t.modifying&&Wle(e),b(()=>Vwr(e,g))}}function p(){const g=n.let("ruleErrs",null);return n.try(()=>v((0,ss._)`await `),y=>n.assign(d,!1).if((0,ss._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(g,(0,ss._)`${y}.errors`),()=>n.throw(y))),g}function h(){const g=(0,ss._)`${c}.errors`;return n.assign(g,null),v(ss.nil),g}function v(g=t.async?(0,ss._)`await `:ss.nil){const y=l.opts.passContext?jv.default.this:jv.default.self,S=!("compile"in t&&!s||t.schema===!1);n.assign(d,(0,ss._)`${g}${(0,Bwr.callValidateCode)(e,c,y,S)}`,t.modifying)}function b(g){var y;n.if((0,ss.not)((y=t.valid)!==null&&y!==void 0?y:d),g)}}xd.funcKeywordCode=zwr;function Wle(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ss._)`${n.parentData}[${n.parentDataProperty}]`))}function Vwr(e,t){const{gen:r}=e;r.if((0,ss._)`Array.isArray(${t})`,()=>{r.assign(jv.default.vErrors,(0,ss._)`${jv.default.vErrors} === null ? ${t} : ${jv.default.vErrors}.concat(${t})`).assign(jv.default.errors,(0,ss._)`${jv.default.vErrors}.length`),(0,jwr.extendErrors)(e)},()=>e.error())}function Hwr({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Gke(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,ss.stringify)(r)})}function Wwr(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}xd.validSchemaType=Wwr;function qwr({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}xd.validateKeywordUsage=qwr;var fh={};Object.defineProperty(fh,"__esModule",{value:!0});fh.extendSubschemaMode=fh.extendSubschemaData=fh.getSubschema=void 0;const ld=Fr,Yke=un;function Uwr(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,ld._)`${e.schemaPath}${(0,ld.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,ld._)`${e.schemaPath}${(0,ld.getProperty)(t)}${(0,ld.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Yke.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}fh.getSubschema=Uwr;function Kwr(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:u,dataPathArr:c,opts:d}=t,f=s.let("data",(0,ld._)`${t.data}${(0,ld.getProperty)(r)}`,!0);l(f),e.errorPath=(0,ld.str)`${u}${(0,Yke.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,ld._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(o!==void 0){const u=o instanceof ld.Name?o:s.let("data",o,!0);l(u),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}fh.extendSubschemaData=Kwr;function Gwr(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}fh.extendSubschemaMode=Gwr;var oi={},Xke={exports:{}},Gm=Xke.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};wT(t,n,o,e,"",e)};Gm.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Gm.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Gm.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Gm.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function wT(e,t,r,n,o,a,i,s,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,a,i,s,l,u);for(var c in n){var d=n[c];if(Array.isArray(d)){if(c in Gm.arrayKeywords)for(var f=0;ft+=Qke(n)),t===1/0))return 1/0}return t}function Zke(e,t="",r){r!==!1&&(t=Cy(t));const n=e.parse(t);return Jke(e,n)}oi.getFullPath=Zke;function Jke(e,t){return e.serialize(t).split("#")[0]+"#"}oi._getFullPath=Jke;const nCr=/#\/?$/;function Cy(e){return e?e.replace(nCr,""):""}oi.normalizeId=Cy;function oCr(e,t,r){return r=Cy(r),e.resolve(t,r)}oi.resolveUrl=oCr;const aCr=/^[a-z_][-a-z0-9._]*$/i;function iCr(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,o=Cy(e[r]||t),a={"":o},i=Zke(n,o,!1),s={},l=new Set;return Jwr(e,{allKeys:!0},(d,f,p,h)=>{if(h===void 0)return;const v=i+f;let b=a[h];typeof d[r]=="string"&&(b=g.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),a[f]=b;function g(S){const w=this.opts.uriResolver.resolve;if(S=Cy(b?w(b,S):S),l.has(S))throw c(S);l.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?u(d,$.schema,S):S!==Cy(v)&&(S[0]==="#"?(u(d,s[S],S),s[S]=d):this.refs[S]=v),S}function y(S){if(typeof S=="string"){if(!aCr.test(S))throw new Error(`invalid anchor "${S}"`);g.call(this,`#${S}`)}}}),s;function u(d,f,p){if(f!==void 0&&!Zwr(d,f))throw c(p)}function c(d){return new Error(`reference "${d}" resolves to more than one schema`)}}oi.getSchemaRefs=iCr;Object.defineProperty(Ic,"__esModule",{value:!0});Ic.getData=Ic.KeywordCxt=Ic.validateFunctionCode=void 0;const ePe=I1,qle=M_,_K=qf,sF=M_,sCr=CA,sx=xd,k3=fh,Ut=Fr,mr=ef,lCr=oi,Uf=un,Fw=A_;function uCr(e){if(nPe(e)&&(oPe(e),rPe(e))){fCr(e);return}tPe(e,()=>(0,ePe.topBoolOrEmptySchema)(e))}Ic.validateFunctionCode=uCr;function tPe({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,(0,Ut._)`${mr.default.data}, ${mr.default.valCxt}`,n.$async,()=>{e.code((0,Ut._)`"use strict"; ${Ule(r,o)}`),dCr(e,o),e.code(a)}):e.func(t,(0,Ut._)`${mr.default.data}, ${cCr(o)}`,n.$async,()=>e.code(Ule(r,o)).code(a))}function cCr(e){return(0,Ut._)`{${mr.default.instancePath}="", ${mr.default.parentData}, ${mr.default.parentDataProperty}, ${mr.default.rootData}=${mr.default.data}${e.dynamicRef?(0,Ut._)`, ${mr.default.dynamicAnchors}={}`:Ut.nil}}={}`}function dCr(e,t){e.if(mr.default.valCxt,()=>{e.var(mr.default.instancePath,(0,Ut._)`${mr.default.valCxt}.${mr.default.instancePath}`),e.var(mr.default.parentData,(0,Ut._)`${mr.default.valCxt}.${mr.default.parentData}`),e.var(mr.default.parentDataProperty,(0,Ut._)`${mr.default.valCxt}.${mr.default.parentDataProperty}`),e.var(mr.default.rootData,(0,Ut._)`${mr.default.valCxt}.${mr.default.rootData}`),t.dynamicRef&&e.var(mr.default.dynamicAnchors,(0,Ut._)`${mr.default.valCxt}.${mr.default.dynamicAnchors}`)},()=>{e.var(mr.default.instancePath,(0,Ut._)`""`),e.var(mr.default.parentData,(0,Ut._)`undefined`),e.var(mr.default.parentDataProperty,(0,Ut._)`undefined`),e.var(mr.default.rootData,mr.default.data),t.dynamicRef&&e.var(mr.default.dynamicAnchors,(0,Ut._)`{}`)})}function fCr(e){const{schema:t,opts:r,gen:n}=e;tPe(e,()=>{r.$comment&&t.$comment&&iPe(e),gCr(e),n.let(mr.default.vErrors,null),n.let(mr.default.errors,0),r.unevaluated&&pCr(e),aPe(e),SCr(e)})}function pCr(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Ut._)`${r}.evaluated`),t.if((0,Ut._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Ut._)`${e.evaluated}.props`,(0,Ut._)`undefined`)),t.if((0,Ut._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Ut._)`${e.evaluated}.items`,(0,Ut._)`undefined`))}function Ule(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Ut._)`/*# sourceURL=${r} */`:Ut.nil}function mCr(e,t){if(nPe(e)&&(oPe(e),rPe(e))){hCr(e,t);return}(0,ePe.boolOrEmptySchema)(e,t)}function rPe({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function nPe(e){return typeof e.schema!="boolean"}function hCr(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&iPe(e),bCr(e),yCr(e);const a=n.const("_errs",mr.default.errors);aPe(e,a),n.var(t,(0,Ut._)`${a} === ${mr.default.errors}`)}function oPe(e){(0,Uf.checkUnknownRules)(e),vCr(e)}function aPe(e,t){if(e.opts.jtd)return Kle(e,[],!1,t);const r=(0,qle.getSchemaTypes)(e.schema),n=(0,qle.coerceAndCheckDataType)(e,r);Kle(e,r,!n,t)}function vCr(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Uf.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function gCr(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Uf.checkStrictMode)(e,"default is ignored in the schema root")}function bCr(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,lCr.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function yCr(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function iPe({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(o.$comment===!0)e.code((0,Ut._)`${mr.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,Ut.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Ut._)`${mr.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function SCr(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if((0,Ut._)`${mr.default.errors} === 0`,()=>t.return(mr.default.data),()=>t.throw((0,Ut._)`new ${o}(${mr.default.vErrors})`)):(t.assign((0,Ut._)`${n}.errors`,mr.default.vErrors),a.unevaluated&&wCr(e),t.return((0,Ut._)`${mr.default.errors} === 0`))}function wCr({gen:e,evaluated:t,props:r,items:n}){r instanceof Ut.Name&&e.assign((0,Ut._)`${t}.props`,r),n instanceof Ut.Name&&e.assign((0,Ut._)`${t}.items`,n)}function Kle(e,t,r,n){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:u}=e,{RULES:c}=u;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Uf.schemaHasRulesButRef)(a,c))){o.block(()=>uPe(e,"$ref",c.all.$ref.definition));return}l.jtd||CCr(e,t),o.block(()=>{for(const f of c.rules)d(f);d(c.post)});function d(f){(0,_K.shouldUseGroup)(a,f)&&(f.type?(o.if((0,sF.checkDataType)(f.type,i,l.strictNumbers)),Gle(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,sF.reportTypeError)(e)),o.endIf()):Gle(e,f),s||o.if((0,Ut._)`${mr.default.errors} === ${n||0}`))}}function Gle(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,sCr.assignDefaults)(e,t.type),r.block(()=>{for(const a of t.rules)(0,_K.shouldUseRule)(n,a)&&uPe(e,a.keyword,a.definition,t.type)})}function CCr(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(xCr(e,t),e.opts.allowUnionTypes||$Cr(e,t),ECr(e,e.dataTypes))}function xCr(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{sPe(e.dataTypes,r)||kK(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),kCr(e,t)}}function $Cr(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&kK(e,"use allowUnionTypes to allow union type keyword")}function ECr(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if(typeof o=="object"&&(0,_K.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>_Cr(t,i))&&kK(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function _Cr(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function sPe(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function kCr(e,t){const r=[];for(const n of e.dataTypes)sPe(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function kK(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Uf.checkStrictMode)(e,t,e.opts.strictTypes)}let lPe=class{constructor(t,r,n){if((0,sx.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Uf.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",cPe(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,sx.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",mr.default.errors))}result(t,r,n){this.failResult((0,Ut.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Ut.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,Ut._)`${r} !== undefined && (${(0,Ut.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Fw.reportExtraError:Fw.reportError)(this,this.def.error,r)}$dataError(){(0,Fw.reportError)(this,this.def.$dataError||Fw.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Fw.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Ut.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Ut.nil,r=Ut.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:a,def:i}=this;n.if((0,Ut.or)((0,Ut._)`${o} === undefined`,r)),t!==Ut.nil&&n.assign(t,!0),(a.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Ut.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:o,it:a}=this;return(0,Ut.or)(i(),s());function i(){if(n.length){if(!(r instanceof Ut.Name))throw new Error("ajv implementation error");const l=Array.isArray(n)?n:[n];return(0,Ut._)`${(0,sF.checkDataTypes)(l,r,a.opts.strictNumbers,sF.DataType.Wrong)}`}return Ut.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Ut._)`!${l}(${r})`}return Ut.nil}}subschema(t,r){const n=(0,k3.getSubschema)(this.it,t);(0,k3.extendSubschemaData)(n,this.it,t),(0,k3.extendSubschemaMode)(n,t);const o={...this.it,...n,items:void 0,props:void 0};return mCr(o,r),o}mergeEvaluated(t,r){const{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Uf.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Uf.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,Ut.Name)),!0}};Ic.KeywordCxt=lPe;function uPe(e,t,r,n){const o=new lPe(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,sx.funcKeywordCode)(o,r):"macro"in r?(0,sx.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,sx.funcKeywordCode)(o,r)}const PCr=/^\/(?:[^~]|~0|~1)*$/,TCr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function cPe(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(e==="")return mr.default.rootData;if(e[0]==="/"){if(!PCr.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=mr.default.rootData}else{const u=TCr.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);const c=+u[1];if(o=u[2],o==="#"){if(c>=t)throw new Error(l("property/index",c));return n[t-c]}if(c>t)throw new Error(l("data",c));if(a=r[t-c],!o)return a}let i=a;const s=o.split("/");for(const u of s)u&&(a=(0,Ut._)`${a}${(0,Ut.getProperty)((0,Uf.unescapeJsonPointer)(u))}`,i=(0,Ut._)`${i} && ${a}`);return i;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${t}`}}Ic.getData=cPe;var B_={};Object.defineProperty(B_,"__esModule",{value:!0});let ICr=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};B_.default=ICr;var j_={};Object.defineProperty(j_,"__esModule",{value:!0});const P3=oi;let RCr=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,P3.resolveUrl)(t,r,n),this.missingSchema=(0,P3.normalizeId)((0,P3.getFullPath)(t,this.missingRef))}};j_.default=RCr;var js={};Object.defineProperty(js,"__esModule",{value:!0});js.resolveSchema=js.getCompilingSchema=js.resolveRef=js.compileSchema=js.SchemaEnv=void 0;const Yu=Fr,FCr=B_,bv=ef,bc=oi,Yle=un,OCr=Ic;let xA=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,bc.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};js.SchemaEnv=xA;function PK(e){const t=dPe.call(this,e);if(t)return t;const r=(0,bc.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Yu.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:FCr.default,code:(0,Yu._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:bv.default.data,parentData:bv.default.parentData,parentDataProperty:bv.default.parentDataProperty,dataNames:[bv.default.data],dataPathArr:[Yu.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Yu.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Yu.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Yu._)`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,OCr.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const d=i.toString();c=`${i.scopeRefs(bv.default.scope)}return ${d}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const p=new Function(`${bv.default.self}`,`${bv.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:l,validateCode:d,scopeValues:i._values}),this.opts.unevaluated){const{props:h,items:v}=u;p.evaluated={props:h instanceof Yu.Name?void 0:h,items:v instanceof Yu.Name?void 0:v,dynamicProps:h instanceof Yu.Name,dynamicItems:v instanceof Yu.Name},p.source&&(p.source.evaluated=(0,Yu.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),d}finally{this._compilations.delete(e)}}js.compileSchema=PK;function NCr(e,t,r){var n;r=(0,bc.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=MCr.call(this,e,r);if(a===void 0){const i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;i&&(a=new xA({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[r]=DCr.call(this,a)}js.resolveRef=NCr;function DCr(e){return(0,bc.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:PK.call(this,e)}function dPe(e){for(const t of this._compilations)if(ACr(t,e))return t}js.getCompilingSchema=dPe;function ACr(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function MCr(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||$A.call(this,e,t)}function $A(e,t){const r=this.opts.uriResolver.parse(t),n=(0,bc._getFullPath)(this.opts.uriResolver,r);let o=(0,bc.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return T3.call(this,r,e);const a=(0,bc.normalizeId)(n),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=$A.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:T3.call(this,r,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||PK.call(this,i),a===(0,bc.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,u=s[l];return u&&(o=(0,bc.resolveUrl)(this.opts.uriResolver,o,u)),new xA({schema:s,schemaId:l,root:e,baseId:o})}return T3.call(this,r,i)}}js.resolveSchema=$A;const BCr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function T3(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const l=r[(0,Yle.unescapeFragment)(s)];if(l===void 0)return;r=l;const u=typeof r=="object"&&r[this.opts.schemaId];!BCr.has(s)&&u&&(t=(0,bc.resolveUrl)(this.opts.uriResolver,t,u))}let a;if(typeof r!="boolean"&&r.$ref&&!(0,Yle.schemaHasRulesButRef)(r,this.RULES)){const s=(0,bc.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=$A.call(this,n,s)}const{schemaId:i}=this.opts;if(a=a||new xA({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema)return a}const jCr="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",LCr="Meta-schema for $data reference (JSON AnySchema extension proposal)",zCr="object",VCr=["$data"],HCr={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},WCr=!1,qCr={$id:jCr,description:LCr,type:zCr,required:VCr,properties:HCr,additionalProperties:WCr};var TK={};Object.defineProperty(TK,"__esModule",{value:!0});const fPe=SA;fPe.code='require("ajv/dist/runtime/uri").default';TK.default=fPe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Ic;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Fr;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=B_,o=j_,a=t0,i=js,s=Fr,l=oi,u=M_,c=un,d=qCr,f=TK,p=(B,F)=>new RegExp(B,F);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function S(B){var F,V,D,P,R,W,U,q,J,Z,Q,oe,ie,te,ae,fe,ve,Se,se,pe,ge,de,ee,me,Re;const je=B.strict,ze=(F=B.code)===null||F===void 0?void 0:F.optimize,Le=ze===!0||ze===void 0?1:ze||0,$e=(D=(V=B.code)===null||V===void 0?void 0:V.regExp)!==null&&D!==void 0?D:p,Je=(P=B.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(W=(R=B.strictSchema)!==null&&R!==void 0?R:je)!==null&&W!==void 0?W:!0,strictNumbers:(q=(U=B.strictNumbers)!==null&&U!==void 0?U:je)!==null&&q!==void 0?q:!0,strictTypes:(Z=(J=B.strictTypes)!==null&&J!==void 0?J:je)!==null&&Z!==void 0?Z:"log",strictTuples:(oe=(Q=B.strictTuples)!==null&&Q!==void 0?Q:je)!==null&&oe!==void 0?oe:"log",strictRequired:(te=(ie=B.strictRequired)!==null&&ie!==void 0?ie:je)!==null&&te!==void 0?te:!1,code:B.code?{...B.code,optimize:Le,regExp:$e}:{optimize:Le,regExp:$e},loopRequired:(ae=B.loopRequired)!==null&&ae!==void 0?ae:y,loopEnum:(fe=B.loopEnum)!==null&&fe!==void 0?fe:y,meta:(ve=B.meta)!==null&&ve!==void 0?ve:!0,messages:(Se=B.messages)!==null&&Se!==void 0?Se:!0,inlineRefs:(se=B.inlineRefs)!==null&&se!==void 0?se:!0,schemaId:(pe=B.schemaId)!==null&&pe!==void 0?pe:"$id",addUsedSchema:(ge=B.addUsedSchema)!==null&&ge!==void 0?ge:!0,validateSchema:(de=B.validateSchema)!==null&&de!==void 0?de:!0,validateFormats:(ee=B.validateFormats)!==null&&ee!==void 0?ee:!0,unicodeRegExp:(me=B.unicodeRegExp)!==null&&me!==void 0?me:!0,int32range:(Re=B.int32range)!==null&&Re!==void 0?Re:!0,uriResolver:Je}}class w{constructor(F={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts={...F,...S(F)};const{es5:V,lines:D}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:V,lines:D}),this.logger=N(F.logger);const P=F.validateFormats;F.validateFormats=!1,this.RULES=(0,a.getRules)(),$.call(this,b,F,"NOT SUPPORTED"),$.call(this,g,F,"DEPRECATED","warn"),this._metaOpts=k.call(this),F.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&_.call(this,F.keywords),typeof F.meta=="object"&&this.addMetaSchema(F.meta),x.call(this),F.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:F,meta:V,schemaId:D}=this.opts;let P=d;D==="id"&&(P={...d},P.id=P.$id,delete P.$id),V&&F&&this.addMetaSchema(P,P[D],!1)}defaultMeta(){const{meta:F,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof F=="object"?F[V]||F:void 0}validate(F,V){let D;if(typeof F=="string"){if(D=this.getSchema(F),!D)throw new Error(`no schema with key or ref "${F}"`)}else D=this.compile(F);const P=D(V);return"$async"in D||(this.errors=D.errors),P}compile(F,V){const D=this._addSchema(F,V);return D.validate||this._compileSchemaEnv(D)}compileAsync(F,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return P.call(this,F,V);async function P(Z,Q){await R.call(this,Z.$schema);const oe=this._addSchema(Z,Q);return oe.validate||W.call(this,oe)}async function R(Z){Z&&!this.getSchema(Z)&&await P.call(this,{$ref:Z},!0)}async function W(Z){try{return this._compileSchemaEnv(Z)}catch(Q){if(!(Q instanceof o.default))throw Q;return U.call(this,Q),await q.call(this,Q.missingSchema),W.call(this,Z)}}function U({missingSchema:Z,missingRef:Q}){if(this.refs[Z])throw new Error(`AnySchema ${Z} is loaded but ${Q} cannot be resolved`)}async function q(Z){const Q=await J.call(this,Z);this.refs[Z]||await R.call(this,Q.$schema),this.refs[Z]||this.addSchema(Q,Z,V)}async function J(Z){const Q=this._loading[Z];if(Q)return Q;try{return await(this._loading[Z]=D(Z))}finally{delete this._loading[Z]}}}addSchema(F,V,D,P=this.opts.validateSchema){if(Array.isArray(F)){for(const W of F)this.addSchema(W,void 0,D,P);return this}let R;if(typeof F=="object"){const{schemaId:W}=this.opts;if(R=F[W],R!==void 0&&typeof R!="string")throw new Error(`schema ${W} must be string`)}return V=(0,l.normalizeId)(V||R),this._checkUnique(V),this.schemas[V]=this._addSchema(F,D,V,P,!0),this}addMetaSchema(F,V,D=this.opts.validateSchema){return this.addSchema(F,V,!0,D),this}validateSchema(F,V){if(typeof F=="boolean")return!0;let D;if(D=F.$schema,D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this.opts.defaultMeta||this.defaultMeta(),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(D,F);if(!P&&V){const R="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(R);else throw new Error(R)}return P}getSchema(F){let V;for(;typeof(V=C.call(this,F))=="string";)F=V;if(V===void 0){const{schemaId:D}=this.opts,P=new i.SchemaEnv({schema:{},schemaId:D});if(V=i.resolveSchema.call(this,P,F),!V)return;this.refs[F]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(typeof F){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=C.call(this,F);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[F],delete this.refs[F],this}case"object":{const V=F;this._cache.delete(V);let D=F[this.opts.schemaId];return D&&(D=(0,l.normalizeId)(D),delete this.schemas[D],delete this.refs[D]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(F){for(const V of F)this.addKeyword(V);return this}addKeyword(F,V){let D;if(typeof F=="string")D=F,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=D);else if(typeof F=="object"&&V===void 0){if(V=F,D=V.keyword,Array.isArray(D)&&!D.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,D,V),!V)return(0,c.eachItem)(D,R=>A.call(this,R)),this;L.call(this,V);const P={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,c.eachItem)(D,P.type.length===0?R=>A.call(this,R,P):R=>P.type.forEach(W=>A.call(this,R,P,W))),this}getKeyword(F){const V=this.RULES.all[F];return typeof V=="object"?V.definition:!!V}removeKeyword(F){const{RULES:V}=this;delete V.keywords[F],delete V.all[F];for(const D of V.rules){const P=D.rules.findIndex(R=>R.keyword===F);P>=0&&D.rules.splice(P,1)}return this}addFormat(F,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[F]=V,this}errorsText(F=this.errors,{separator:V=", ",dataVar:D="data"}={}){return!F||F.length===0?"No errors":F.map(P=>`${D}${P.instancePath} ${P.message}`).reduce((P,R)=>P+V+R)}$dataMetaSchema(F,V){const D=this.RULES.all;F=JSON.parse(JSON.stringify(F));for(const P of V){const R=P.split("/").slice(1);let W=F;for(const U of R)W=W[U];for(const U in D){const q=D[U];if(typeof q!="object")continue;const{$data:J}=q.definition,Z=W[U];J&&Z&&(W[U]=H(Z))}}return F}_removeAllSchemas(F,V){for(const D in F){const P=F[D];(!V||V.test(D))&&(typeof P=="string"?delete F[D]:P&&!P.meta&&(this._cache.delete(P.schema),delete F[D]))}}_addSchema(F,V,D,P=this.opts.validateSchema,R=this.opts.addUsedSchema){let W;const{schemaId:U}=this.opts;if(typeof F=="object")W=F[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof F!="boolean")throw new Error("schema must be object or boolean")}let q=this._cache.get(F);if(q!==void 0)return q;D=(0,l.normalizeId)(W||D);const J=l.getSchemaRefs.call(this,F,D);return q=new i.SchemaEnv({schema:F,schemaId:U,meta:V,baseId:D,localRefs:J}),this._cache.set(q.schema,q),R&&!D.startsWith("#")&&(D&&this._checkUnique(D),this.refs[D]=q),P&&this.validateSchema(F,!0),q}_checkUnique(F){if(this.schemas[F]||this.refs[F])throw new Error(`schema with key or id "${F}" already exists`)}_compileSchemaEnv(F){if(F.meta?this._compileMetaSchema(F):i.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}_compileMetaSchema(F){const V=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,F)}finally{this.opts=V}}}e.default=w,w.ValidationError=n.default,w.MissingRefError=o.default;function $(B,F,V,D="error"){for(const P in B){const R=P;R in F&&this.logger[D](`${V}: option ${P}. ${B[R]}`)}}function C(B){return B=(0,l.normalizeId)(B),this.schemas[B]||this.refs[B]}function x(){const B=this.opts.schemas;if(B)if(Array.isArray(B))this.addSchema(B);else for(const F in B)this.addSchema(B[F],F)}function E(){for(const B in this.opts.formats){const F=this.opts.formats[B];F&&this.addFormat(B,F)}}function _(B){if(Array.isArray(B)){this.addVocabulary(B);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const F in B){const V=B[F];V.keyword||(V.keyword=F),this.addKeyword(V)}}function k(){const B={...this.opts};for(const F of h)delete B[F];return B}const I={log(){},warn(){},error(){}};function N(B){if(B===!1)return I;if(B===void 0)return console;if(B.log&&B.warn&&B.error)return B;throw new Error("logger must implement log, warn and error methods")}const z=/^[a-z_$][a-z0-9_$:-]*$/i;function O(B,F){const{RULES:V}=this;if((0,c.eachItem)(B,D=>{if(V.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!z.test(D))throw new Error(`Keyword ${D} has invalid name`)}),!!F&&F.$data&&!("code"in F||"validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function A(B,F,V){var D;const P=F==null?void 0:F.post;if(V&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:R}=this;let W=P?R.post:R.rules.find(({type:q})=>q===V);if(W||(W={type:V,rules:[]},R.rules.push(W)),R.keywords[B]=!0,!F)return;const U={keyword:B,definition:{...F,type:(0,u.getJSONTypes)(F.type),schemaType:(0,u.getJSONTypes)(F.schemaType)}};F.before?M.call(this,W,U,F.before):W.rules.push(U),R.all[B]=U,(D=F.implements)===null||D===void 0||D.forEach(q=>this.addKeyword(q))}function M(B,F,V){const D=B.rules.findIndex(P=>P.keyword===V);D>=0?B.rules.splice(D,0,F):(B.rules.push(F),this.logger.warn(`rule ${V} is not defined`))}function L(B){let{metaSchema:F}=B;F!==void 0&&(B.$data&&this.opts.$data&&(F=H(F)),B.validateSchema=this.compile(F,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function H(B){return{anyOf:[B,j]}}})(Vke);var IK={},RK={},FK={};Object.defineProperty(FK,"__esModule",{value:!0});const UCr={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};FK.default=UCr;var r0={};Object.defineProperty(r0,"__esModule",{value:!0});r0.callRef=r0.getValidate=void 0;const KCr=j_,Xle=jr,Ts=Fr,fb=ef,Qle=js,dP=un,GCr={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:u}=a;if((r==="#"||r==="#/")&&o===u.baseId)return d();const c=Qle.resolveRef.call(l,u,o,r);if(c===void 0)throw new KCr.default(n.opts.uriResolver,o,r);if(c instanceof Qle.SchemaEnv)return f(c);return p(c);function d(){if(a===u)return CT(e,i,a,a.$async);const h=t.scopeValue("root",{ref:u});return CT(e,(0,Ts._)`${h}.validate`,u,u.$async)}function f(h){const v=pPe(e,h);CT(e,v,h,h.$async)}function p(h){const v=t.scopeValue("schema",s.code.source===!0?{ref:h,code:(0,Ts.stringify)(h)}:{ref:h}),b=t.name("valid"),g=e.subschema({schema:h,dataTypes:[],schemaPath:Ts.nil,topSchemaRef:v,errSchemaPath:r},b);e.mergeEvaluated(g),e.ok(b)}}};function pPe(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ts._)`${r.scopeValue("wrapper",{ref:t})}.validate`}r0.getValidate=pPe;function CT(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?fb.default.this:Ts.nil;n?c():d();function c(){if(!s.$async)throw new Error("async schema referenced by sync schema");const h=o.let("valid");o.try(()=>{o.code((0,Ts._)`await ${(0,Xle.callValidateCode)(e,t,u)}`),p(t),i||o.assign(h,!0)},v=>{o.if((0,Ts._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),f(v),i||o.assign(h,!1)}),e.ok(h)}function d(){e.result((0,Xle.callValidateCode)(e,t,u),()=>p(t),()=>f(t))}function f(h){const v=(0,Ts._)`${h}.errors`;o.assign(fb.default.vErrors,(0,Ts._)`${fb.default.vErrors} === null ? ${v} : ${fb.default.vErrors}.concat(${v})`),o.assign(fb.default.errors,(0,Ts._)`${fb.default.vErrors}.length`)}function p(h){var v;if(!a.opts.unevaluated)return;const b=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(a.props=dP.mergeEvaluated.props(o,b.props,a.props));else{const g=o.var("props",(0,Ts._)`${h}.evaluated.props`);a.props=dP.mergeEvaluated.props(o,g,a.props,Ts.Name)}if(a.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(a.items=dP.mergeEvaluated.items(o,b.items,a.items));else{const g=o.var("items",(0,Ts._)`${h}.evaluated.items`);a.items=dP.mergeEvaluated.items(o,g,a.items,Ts.Name)}}}r0.callRef=CT;r0.default=GCr;Object.defineProperty(RK,"__esModule",{value:!0});const YCr=FK,XCr=r0,QCr=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",YCr.default,XCr.default];RK.default=QCr;var OK={},NK={};Object.defineProperty(NK,"__esModule",{value:!0});const lF=Fr,mm=lF.operators,uF={maximum:{okStr:"<=",ok:mm.LTE,fail:mm.GT},minimum:{okStr:">=",ok:mm.GTE,fail:mm.LT},exclusiveMaximum:{okStr:"<",ok:mm.LT,fail:mm.GTE},exclusiveMinimum:{okStr:">",ok:mm.GT,fail:mm.LTE}},ZCr={message:({keyword:e,schemaCode:t})=>(0,lF.str)`must be ${uF[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,lF._)`{comparison: ${uF[e].okStr}, limit: ${t}}`},JCr={keyword:Object.keys(uF),type:"number",schemaType:"number",$data:!0,error:ZCr,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,lF._)`${r} ${uF[t].fail} ${n} || isNaN(${r})`)}};NK.default=JCr;var DK={};Object.defineProperty(DK,"__esModule",{value:!0});const lx=Fr,exr={message:({schemaCode:e})=>(0,lx.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,lx._)`{multipleOf: ${e}}`},txr={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:exr,code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,lx._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,lx._)`${i} !== parseInt(${i})`;e.fail$data((0,lx._)`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};DK.default=txr;var AK={},MK={};Object.defineProperty(MK,"__esModule",{value:!0});function mPe(e){const t=e.length;let r=0,n=0,o;for(;n=55296&&o<=56319&&n(0,Lv._)`{limit: ${e}}`},axr={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:oxr,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a=t==="maxLength"?Lv.operators.GT:Lv.operators.LT,i=o.opts.unicode===!1?(0,Lv._)`${r}.length`:(0,Lv._)`${(0,rxr.useFunc)(e.gen,nxr.default)}(${r})`;e.fail$data((0,Lv._)`${i} ${a} ${n}`)}};AK.default=axr;var BK={};Object.defineProperty(BK,"__esModule",{value:!0});const ixr=jr,cF=Fr,sxr={message:({schemaCode:e})=>(0,cF.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,cF._)`{pattern: ${e}}`},lxr={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:sxr,code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?(0,cF._)`(new RegExp(${o}, ${i}))`:(0,ixr.usePattern)(e,n);e.fail$data((0,cF._)`!${s}.test(${t})`)}};BK.default=lxr;var jK={};Object.defineProperty(jK,"__esModule",{value:!0});const ux=Fr,uxr={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,ux.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ux._)`{limit: ${e}}`},cxr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:uxr,code(e){const{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ux.operators.GT:ux.operators.LT;e.fail$data((0,ux._)`Object.keys(${r}).length ${o} ${n}`)}};jK.default=cxr;var LK={};Object.defineProperty(LK,"__esModule",{value:!0});const Ow=jr,cx=Fr,dxr=un,fxr={message:({params:{missingProperty:e}})=>(0,cx.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,cx._)`{missingProperty: ${e}}`},pxr={keyword:"required",type:"object",schemaType:"array",$data:!0,error:fxr,code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&r.length===0)return;const l=r.length>=s.loopRequired;if(i.allErrors?u():c(),s.strictRequired){const p=e.parentSchema.properties,{definedProperties:h}=e.it;for(const v of r)if((p==null?void 0:p[v])===void 0&&!h.has(v)){const b=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${b}" (strictRequired)`;(0,dxr.checkStrictMode)(i,g,i.opts.strictRequired)}}function u(){if(l||a)e.block$data(cx.nil,d);else for(const p of r)(0,Ow.checkReportMissingProp)(e,p)}function c(){const p=t.let("missing");if(l||a){const h=t.let("valid",!0);e.block$data(h,()=>f(p,h)),e.ok(h)}else t.if((0,Ow.checkMissingProp)(e,r,p)),(0,Ow.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",n,p=>{e.setParams({missingProperty:p}),t.if((0,Ow.noPropertyInData)(t,o,p,s.ownProperties),()=>e.error())})}function f(p,h){e.setParams({missingProperty:p}),t.forOf(p,n,()=>{t.assign(h,(0,Ow.propertyInData)(t,o,p,s.ownProperties)),t.if((0,cx.not)(h),()=>{e.error(),t.break()})},cx.nil)}}};LK.default=pxr;var zK={};Object.defineProperty(zK,"__esModule",{value:!0});const dx=Fr,mxr={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,dx.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,dx._)`{limit: ${e}}`},hxr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:mxr,code(e){const{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?dx.operators.GT:dx.operators.LT;e.fail$data((0,dx._)`${r}.length ${o} ${n}`)}};zK.default=hxr;var VK={},L_={};Object.defineProperty(L_,"__esModule",{value:!0});const hPe=Hp;hPe.code='require("ajv/dist/runtime/equal").default';L_.default=hPe;Object.defineProperty(VK,"__esModule",{value:!0});const I3=M_,Za=Fr,vxr=un,gxr=L_,bxr={message:({params:{i:e,j:t}})=>(0,Za.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Za._)`{i: ${e}, j: ${t}}`},yxr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:bxr,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),u=a.items?(0,I3.getSchemaTypes)(a.items):[];e.block$data(l,c,(0,Za._)`${i} === false`),e.ok(l);function c(){const h=t.let("i",(0,Za._)`${r}.length`),v=t.let("j");e.setParams({i:h,j:v}),t.assign(l,!0),t.if((0,Za._)`${h} > 1`,()=>(d()?f:p)(h,v))}function d(){return u.length>0&&!u.some(h=>h==="object"||h==="array")}function f(h,v){const b=t.name("item"),g=(0,I3.checkDataTypes)(u,b,s.opts.strictNumbers,I3.DataType.Wrong),y=t.const("indices",(0,Za._)`{}`);t.for((0,Za._)`;${h}--;`,()=>{t.let(b,(0,Za._)`${r}[${h}]`),t.if(g,(0,Za._)`continue`),u.length>1&&t.if((0,Za._)`typeof ${b} == "string"`,(0,Za._)`${b} += "_"`),t.if((0,Za._)`typeof ${y}[${b}] == "number"`,()=>{t.assign(v,(0,Za._)`${y}[${b}]`),e.error(),t.assign(l,!1).break()}).code((0,Za._)`${y}[${b}] = ${h}`)})}function p(h,v){const b=(0,vxr.useFunc)(t,gxr.default),g=t.name("outer");t.label(g).for((0,Za._)`;${h}--;`,()=>t.for((0,Za._)`${v} = ${h}; ${v}--;`,()=>t.if((0,Za._)`${b}(${r}[${h}], ${r}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};VK.default=yxr;var HK={};Object.defineProperty(HK,"__esModule",{value:!0});const I8=Fr,Sxr=un,wxr=L_,Cxr={message:"must be equal to constant",params:({schemaCode:e})=>(0,I8._)`{allowedValue: ${e}}`},xxr={keyword:"const",$data:!0,error:Cxr,code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&typeof a=="object"?e.fail$data((0,I8._)`!${(0,Sxr.useFunc)(t,wxr.default)}(${r}, ${o})`):e.fail((0,I8._)`${a} !== ${r}`)}};HK.default=xxr;var WK={};Object.defineProperty(WK,"__esModule",{value:!0});const eC=Fr,$xr=un,Exr=L_,_xr={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,eC._)`{allowedValues: ${e}}`},kxr={keyword:"enum",schemaType:"array",$data:!0,error:_xr,code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>l??(l=(0,$xr.useFunc)(t,Exr.default));let c;if(s||n)c=t.let("valid"),e.block$data(c,d);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const p=t.const("vSchema",a);c=(0,eC.or)(...o.map((h,v)=>f(p,v)))}e.pass(c);function d(){t.assign(c,!1),t.forOf("v",a,p=>t.if((0,eC._)`${u()}(${r}, ${p})`,()=>t.assign(c,!0).break()))}function f(p,h){const v=o[h];return typeof v=="object"&&v!==null?(0,eC._)`${u()}(${r}, ${p}[${h}])`:(0,eC._)`${r} === ${v}`}}};WK.default=kxr;Object.defineProperty(OK,"__esModule",{value:!0});const Pxr=NK,Txr=DK,Ixr=AK,Rxr=BK,Fxr=jK,Oxr=LK,Nxr=zK,Dxr=VK,Axr=HK,Mxr=WK,Bxr=[Pxr.default,Txr.default,Ixr.default,Rxr.default,Fxr.default,Oxr.default,Nxr.default,Dxr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Axr.default,Mxr.default];OK.default=Bxr;var qK={},PS={};Object.defineProperty(PS,"__esModule",{value:!0});PS.validateAdditionalItems=void 0;const zv=Fr,R8=un,jxr={message:({params:{len:e}})=>(0,zv.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,zv._)`{limit: ${e}}`},Lxr={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:jxr,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,R8.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}vPe(e,n)}};function vPe(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",(0,zv._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,zv._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,R8.alwaysValidSchema)(i,n)){const u=r.var("valid",(0,zv._)`${s} <= ${t.length}`);r.if((0,zv.not)(u),()=>l(u)),e.ok(u)}function l(u){r.forRange("i",t.length,s,c=>{e.subschema({keyword:a,dataProp:c,dataPropType:R8.Type.Num},u),i.allErrors||r.if((0,zv.not)(u),()=>r.break())})}}PS.validateAdditionalItems=vPe;PS.default=Lxr;var UK={},TS={};Object.defineProperty(TS,"__esModule",{value:!0});TS.validateTuple=void 0;const Zle=Fr,xT=un,zxr=jr,Vxr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return gPe(e,"additionalItems",t);r.items=!0,!(0,xT.alwaysValidSchema)(r,t)&&e.ok((0,zxr.validateArray)(e))}};function gPe(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;c(o),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=xT.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",(0,Zle._)`${a}.length`);r.forEach((d,f)=>{(0,xT.alwaysValidSchema)(s,d)||(n.if((0,Zle._)`${u} > ${f}`,()=>e.subschema({keyword:i,schemaProp:f,dataProp:f},l)),e.ok(l))});function c(d){const{opts:f,errSchemaPath:p}=s,h=r.length,v=h===d.minItems&&(h===d.maxItems||d[t]===!1);if(f.strictTuples&&!v){const b=`"${i}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,xT.checkStrictMode)(s,b,f.strictTuples)}}}TS.validateTuple=gPe;TS.default=Vxr;Object.defineProperty(UK,"__esModule",{value:!0});const Hxr=TS,Wxr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Hxr.validateTuple)(e,"items")};UK.default=Wxr;var KK={};Object.defineProperty(KK,"__esModule",{value:!0});const Jle=Fr,qxr=un,Uxr=jr,Kxr=PS,Gxr={message:({params:{len:e}})=>(0,Jle.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Jle._)`{limit: ${e}}`},Yxr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Gxr,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,qxr.alwaysValidSchema)(n,t)&&(o?(0,Kxr.validateAdditionalItems)(e,o):e.ok((0,Uxr.validateArray)(e)))}};KK.default=Yxr;var GK={};Object.defineProperty(GK,"__esModule",{value:!0});const tu=Fr,fP=un,Xxr={message:({params:{min:e,max:t}})=>t===void 0?(0,tu.str)`must contain at least ${e} valid item(s)`:(0,tu.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,tu._)`{minContains: ${e}}`:(0,tu._)`{minContains: ${e}, maxContains: ${t}}`},Qxr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Xxr,code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=n;a.opts.next?(i=l===void 0?1:l,s=u):i=1;const c=t.const("len",(0,tu._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,fP.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,fP.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,fP.alwaysValidSchema)(a,r)){let v=(0,tu._)`${c} >= ${i}`;s!==void 0&&(v=(0,tu._)`${v} && ${c} <= ${s}`),e.pass(v);return}a.items=!0;const d=t.name("valid");s===void 0&&i===1?p(d,()=>t.if(d,()=>t.break())):i===0?(t.let(d,!0),s!==void 0&&t.if((0,tu._)`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const v=t.name("_valid"),b=t.let("count",0);p(v,()=>t.if(v,()=>h(b)))}function p(v,b){t.forRange("i",0,c,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:fP.Type.Num,compositeRule:!0},v),b()})}function h(v){t.code((0,tu._)`${v}++`),s===void 0?t.if((0,tu._)`${v} >= ${i}`,()=>t.assign(d,!0).break()):(t.if((0,tu._)`${v} > ${s}`,()=>t.assign(d,!1).break()),i===1?t.assign(d,!0):t.if((0,tu._)`${v} >= ${i}`,()=>t.assign(d,!0)))}}};GK.default=Qxr;var bPe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Fr,r=un,n=jr;e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const d=u===1?"property":"properties";return(0,t.str)`must have ${d} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:d}})=>(0,t._)`{property: ${l}, + missingProperty: ${d}, + depsCount: ${u}, + deps: ${c}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=a(l);i(l,u),s(l,c)}};function a({schema:l}){const u={},c={};for(const d in l){if(d==="__proto__")continue;const f=Array.isArray(l[d])?u:c;f[d]=l[d]}return[u,c]}function i(l,u=l.schema){const{gen:c,data:d,it:f}=l;if(Object.keys(u).length===0)return;const p=c.let("missing");for(const h in u){const v=u[h];if(v.length===0)continue;const b=(0,n.propertyInData)(c,d,h,f.opts.ownProperties);l.setParams({property:h,depsCount:v.length,deps:v.join(", ")}),f.allErrors?c.if(b,()=>{for(const g of v)(0,n.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${b} && (${(0,n.checkMissingProp)(l,v,p)})`),(0,n.reportMissingProp)(l,p),c.else())}}e.validatePropertyDeps=i;function s(l,u=l.schema){const{gen:c,data:d,keyword:f,it:p}=l,h=c.name("valid");for(const v in u)(0,r.alwaysValidSchema)(p,u[v])||(c.if((0,n.propertyInData)(c,d,v,p.opts.ownProperties),()=>{const b=l.subschema({keyword:f,schemaProp:v},h);l.mergeValidEvaluated(b,h)},()=>c.var(h,!0)),l.ok(h))}e.validateSchemaDeps=s,e.default=o})(bPe);var YK={};Object.defineProperty(YK,"__esModule",{value:!0});const yPe=Fr,Zxr=un,Jxr={message:"property name must be valid",params:({params:e})=>(0,yPe._)`{propertyName: ${e.propertyName}}`},e$r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Jxr,code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,Zxr.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,yPe.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};YK.default=e$r;var EA={};Object.defineProperty(EA,"__esModule",{value:!0});const pP=jr,Ju=Fr,t$r=ef,mP=un,r$r={message:"must NOT have additional properties",params:({params:e})=>(0,Ju._)`{additionalProperty: ${e.additionalProperty}}`},n$r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:r$r,code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,mP.alwaysValidSchema)(i,r))return;const u=(0,pP.allSchemaProperties)(n.properties),c=(0,pP.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Ju._)`${a} === ${t$r.default.errors}`);function d(){t.forIn("key",o,b=>{!u.length&&!c.length?h(b):t.if(f(b),()=>h(b))})}function f(b){let g;if(u.length>8){const y=(0,mP.schemaRefOrVal)(i,n.properties,"properties");g=(0,pP.isOwnProperty)(t,y,b)}else u.length?g=(0,Ju.or)(...u.map(y=>(0,Ju._)`${b} === ${y}`)):g=Ju.nil;return c.length&&(g=(0,Ju.or)(g,...c.map(y=>(0,Ju._)`${(0,pP.usePattern)(e,y)}.test(${b})`))),(0,Ju.not)(g)}function p(b){t.code((0,Ju._)`delete ${o}[${b}]`)}function h(b){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){p(b);return}if(r===!1){e.setParams({additionalProperty:b}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,mP.alwaysValidSchema)(i,r)){const g=t.name("valid");l.removeAdditional==="failing"?(v(b,g,!1),t.if((0,Ju.not)(g),()=>{e.reset(),p(b)})):(v(b,g),s||t.if((0,Ju.not)(g),()=>t.break()))}}function v(b,g,y){const S={keyword:"additionalProperties",dataProp:b,dataPropType:mP.Type.Str};y===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,g)}}};EA.default=n$r;var XK={};Object.defineProperty(XK,"__esModule",{value:!0});const o$r=Ic,eue=jr,R3=un,tue=EA,a$r={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;a.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&tue.default.code(new o$r.KeywordCxt(a,tue.default,"additionalProperties"));const i=(0,eue.allSchemaProperties)(r);for(const d of i)a.definedProperties.add(d);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=R3.mergeEvaluated.props(t,(0,R3.toHash)(i),a.props));const s=i.filter(d=>!(0,R3.alwaysValidSchema)(a,r[d]));if(s.length===0)return;const l=t.name("valid");for(const d of s)u(d)?c(d):(t.if((0,eue.propertyInData)(t,o,d,a.opts.ownProperties)),c(d),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(l);function u(d){return a.opts.useDefaults&&!a.compositeRule&&r[d].default!==void 0}function c(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};XK.default=a$r;var QK={};Object.defineProperty(QK,"__esModule",{value:!0});const rue=jr,hP=Fr,nue=un,oue=un,i$r={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,rue.allSchemaProperties)(r),l=s.filter(v=>(0,nue.alwaysValidSchema)(a,r[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");a.props!==!0&&!(a.props instanceof hP.Name)&&(a.props=(0,oue.evaluatedPropsToName)(t,a.props));const{props:d}=a;f();function f(){for(const v of s)u&&p(v),a.allErrors?h(v):(t.var(c,!0),h(v),t.if(c))}function p(v){for(const b in u)new RegExp(v).test(b)&&(0,nue.checkStrictMode)(a,`property ${b} matches pattern ${v} (use allowMatchingProperties)`)}function h(v){t.forIn("key",n,b=>{t.if((0,hP._)`${(0,rue.usePattern)(e,v)}.test(${b})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:b,dataPropType:oue.Type.Str},c),a.opts.unevaluated&&d!==!0?t.assign((0,hP._)`${d}[${b}]`,!0):!g&&!a.allErrors&&t.if((0,hP.not)(c),()=>t.break())})})}}};QK.default=i$r;var ZK={};Object.defineProperty(ZK,"__esModule",{value:!0});const s$r=un,l$r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,s$r.alwaysValidSchema)(n,r)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ZK.default=l$r;var JK={};Object.defineProperty(JK,"__esModule",{value:!0});const u$r=jr,c$r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:u$r.validateUnion,error:{message:"must match a schema in anyOf"}};JK.default=c$r;var eG={};Object.defineProperty(eG,"__esModule",{value:!0});const $T=Fr,d$r=un,f$r={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,$T._)`{passingSchemas: ${e.passing}}`},p$r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:f$r,code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(u),e.result(i,()=>e.reset(),()=>e.error(!0));function u(){a.forEach((c,d)=>{let f;(0,d$r.alwaysValidSchema)(o,c)?t.var(l,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&t.if((0,$T._)`${l} && ${i}`).assign(i,!1).assign(s,(0,$T._)`[${s}, ${d}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,d),f&&e.mergeEvaluated(f,$T.Name)})})}}};eG.default=p$r;var tG={};Object.defineProperty(tG,"__esModule",{value:!0});const m$r=un,h$r={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach((a,i)=>{if((0,m$r.alwaysValidSchema)(n,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};tG.default=h$r;var rG={};Object.defineProperty(rG,"__esModule",{value:!0});const dF=Fr,SPe=un,v$r={message:({params:e})=>(0,dF.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,dF._)`{failingKeyword: ${e.ifClause}}`},g$r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:v$r,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,SPe.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=aue(n,"then"),a=aue(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const c=t.let("ifClause");e.setParams({ifClause:c}),t.if(s,u("then",c),u("else",c))}else o?t.if(s,u("then")):t.if((0,dF.not)(s),u("else"));e.pass(i,()=>e.error(!0));function l(){const c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(c)}function u(c,d){return()=>{const f=e.subschema({keyword:c},s);t.assign(i,s),e.mergeValidEvaluated(f,i),d?t.assign(d,(0,dF._)`${c}`):e.setParams({ifClause:c})}}}};function aue(e,t){const r=e.schema[t];return r!==void 0&&!(0,SPe.alwaysValidSchema)(e,r)}rG.default=g$r;var nG={};Object.defineProperty(nG,"__esModule",{value:!0});const b$r=un,y$r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,b$r.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};nG.default=y$r;Object.defineProperty(qK,"__esModule",{value:!0});const S$r=PS,w$r=UK,C$r=TS,x$r=KK,$$r=GK,E$r=bPe,_$r=YK,k$r=EA,P$r=XK,T$r=QK,I$r=ZK,R$r=JK,F$r=eG,O$r=tG,N$r=rG,D$r=nG;function A$r(e=!1){const t=[I$r.default,R$r.default,F$r.default,O$r.default,N$r.default,D$r.default,_$r.default,k$r.default,E$r.default,P$r.default,T$r.default];return e?t.push(w$r.default,x$r.default):t.push(S$r.default,C$r.default),t.push($$r.default),t}qK.default=A$r;var oG={},aG={};Object.defineProperty(aG,"__esModule",{value:!0});const Yo=Fr,M$r={message:({schemaCode:e})=>(0,Yo.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Yo._)`{format: ${e}}`},B$r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:M$r,code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:d}=s;if(!l.validateFormats)return;o?f():p();function f(){const h=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),v=r.const("fDef",(0,Yo._)`${h}[${i}]`),b=r.let("fType"),g=r.let("format");r.if((0,Yo._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(b,(0,Yo._)`${v}.type || "string"`).assign(g,(0,Yo._)`${v}.validate`),()=>r.assign(b,(0,Yo._)`"string"`).assign(g,v)),e.fail$data((0,Yo.or)(y(),S()));function y(){return l.strictSchema===!1?Yo.nil:(0,Yo._)`${i} && !${g}`}function S(){const w=c.$async?(0,Yo._)`(${v}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Yo._)`${g}(${n})`,$=(0,Yo._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${n}))`;return(0,Yo._)`${g} && ${g} !== true && ${b} === ${t} && !${$}`}}function p(){const h=d.formats[a];if(!h){y();return}if(h===!0)return;const[v,b,g]=S(h);v===t&&e.pass(w());function y(){if(l.strictSchema===!1){d.logger.warn($());return}throw new Error($());function $(){return`unknown format "${a}" ignored in schema at path "${u}"`}}function S($){const C=$ instanceof RegExp?(0,Yo.regexpCode)($):l.code.formats?(0,Yo._)`${l.code.formats}${(0,Yo.getProperty)(a)}`:void 0,x=r.scopeValue("formats",{key:a,ref:$,code:C});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Yo._)`${x}.validate`]:["string",$,x]}function w(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Yo._)`await ${g}(${n})`}return typeof b=="function"?(0,Yo._)`${g}(${n})`:(0,Yo._)`${g}.test(${n})`}}}};aG.default=B$r;Object.defineProperty(oG,"__esModule",{value:!0});const j$r=aG,L$r=[j$r.default];oG.default=L$r;var R1={};Object.defineProperty(R1,"__esModule",{value:!0});R1.contentVocabulary=R1.metadataVocabulary=void 0;R1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];R1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(IK,"__esModule",{value:!0});const z$r=RK,V$r=OK,H$r=qK,W$r=oG,iue=R1,q$r=[z$r.default,V$r.default,(0,H$r.default)(),W$r.default,iue.metadataVocabulary,iue.contentVocabulary];IK.default=q$r;var iG={},wPe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(wPe);Object.defineProperty(iG,"__esModule",{value:!0});const Sb=Fr,F8=wPe,sue=js,U$r=un,K$r={message:({params:{discrError:e,tagName:t}})=>e===F8.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Sb._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},G$r={keyword:"discriminator",type:"object",schemaType:"object",error:K$r,code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),u=t.const("tag",(0,Sb._)`${r}${(0,Sb.getProperty)(s)}`);t.if((0,Sb._)`typeof ${u} == "string"`,()=>c(),()=>e.error(!1,{discrError:F8.DiscrError.Tag,tag:u,tagName:s})),e.ok(l);function c(){const p=f();t.if(!1);for(const h in p)t.elseIf((0,Sb._)`${u} === ${h}`),t.assign(l,d(p[h]));t.else(),e.error(!1,{discrError:F8.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}function d(p){const h=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:p},h);return e.mergeEvaluated(v,Sb.Name),h}function f(){var p;const h={},v=g(o);let b=!0;for(let w=0;wthis.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(h,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=Ic;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Fr;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var d=B_;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=j_;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(k8,k8.exports);var rEr=k8.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=rEr,r=Fr,n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:s,schemaCode:l})=>r.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>r._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:u,schemaCode:c,keyword:d,it:f}=s,{opts:p,self:h}=f;if(!p.validateFormats)return;const v=new t.KeywordCxt(f,h.RULES.all.format.definition,"format");v.$data?b():g();function b(){const S=l.scopeValue("formats",{ref:h.formats,code:p.code.formats}),w=l.const("fmt",r._`${S}[${v.schemaCode}]`);s.fail$data(r.or(r._`typeof ${w} != "object"`,r._`${w} instanceof RegExp`,r._`typeof ${w}.compare != "function"`,y(w)))}function g(){const S=v.schema,w=h.formats[S];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${d}": format "${S}" does not define "compare" function`);const $=l.scopeValue("formats",{key:S,ref:w,code:p.code.formats?r._`${p.code.formats}${r.getProperty(S)}`:void 0});s.fail$data(y($))}function y(S){return r._`${S}.compare(${u}, ${c}) ${o[d].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(zke);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Lke,n=zke,o=Fr,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,a),u;const[d,f]=c.mode==="fast"?[r.fastFormats,i]:[r.fullFormats,a],p=c.formats||r.formatNames;return l(u,p,d,f),c.keywords&&n.default(u),u};s.get=(u,c="full")=>{const f=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function l(u,c,d,f){var p,h;(p=(h=u.opts.code).formats)!==null&&p!==void 0||(h.formats=o._`require("ajv-formats/dist/formats").${f}`);for(const v of c)u.addFormat(v,d[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(_8,_8.exports);var nEr=_8.exports;const lue=zt(nEr),oEr={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},aEr=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,iEr=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function sEr(e,t,r={},n,o=fwr){const a=new o({...oEr,...r});return n?lue(a,n):n!==!1&&lue(a),a.addFormat("data-url",iEr),a.addFormat("color",aEr),a.addKeyword(Nl),a.addKeyword(W9),Array.isArray(e)&&a.addMetaSchema(e),vl(t)&&Object.keys(t).forEach(i=>{a.addFormat(i,t[i])}),a}function lEr(e=[],t){return e.map(r=>{const{instancePath:n,keyword:o,params:a,schemaPath:i,parentSchema:s,...l}=r;let{message:u=""}=l,c=n.replace(/\//g,"."),d=`${c} ${u}`.trim();if("missingProperty"in a){c=c?`${c}.${a.missingProperty}`:a.missingProperty;const f=a.missingProperty,p=At(Wt(t,`${c.replace(/^\./,"")}`)).title;if(p)u=u.replace(f,p);else{const h=Wt(s,[Lo,f,"title"]);h&&(u=u.replace(f,h))}d=u}else{const f=At(Wt(t,`${c.replace(/^\./,"")}`)).title;if(f)d=`'${f}' ${u}`.trim();else{const p=s==null?void 0:s.title;p&&(d=`'${p}' ${u}`.trim())}}return{name:o,property:c,message:u,params:a,stack:d,schemaPath:i}})}function uEr(e,t,r,n,o,a,i){const{validationError:s}=t;let l=lEr(t.errors,i);s&&(l=[...l,{stack:s.message}]),typeof a=="function"&&(l=a(l,i));let u=dme(l);if(s&&(u={...u,$schema:{__errors:[s.message]}}),typeof o!="function")return{errors:l,errorSchema:u};const c=I7(e,n,r,n,!0),d=o(c,rI(c),i),f=D7(d);return fC({errors:l,errorSchema:u},f)}class cEr{constructor(t,r){const{additionalMetaSchemas:n,customFormats:o,ajvOptionsOverrides:a,ajvFormatOptions:i,AjvClass:s}=t;this.ajv=sEr(n,o,a,i,s),this.localizer=r}reset(){this.ajv.removeSchema()}toErrorList(t,r=[]){return Dy(t,r)}rawValidation(t,r){let n,o;t[Mm]&&(o=this.ajv.getSchema(t[Mm]));try{o===void 0&&(o=this.ajv.compile(t)),o(r)}catch(i){n=i}let a;return o&&(typeof this.localizer=="function"&&this.localizer(o.errors),a=o.errors||void 0,o.errors=null),{errors:a,validationError:n}}validateFormData(t,r,n,o,a){const i=this.rawValidation(r,t);return uEr(this,i,t,r,n,o,a)}handleSchemaUpdate(t){var n;const r=t[Mm]??Db;this.ajv.getSchema(r)===void 0?this.ajv.addSchema(t,r):Ii(t,(n=this.ajv.getSchema(r))==null?void 0:n.schema)||(this.ajv.removeSchema(r),this.ajv.addSchema(t,r))}isValid(t,r,n){try{this.handleSchemaUpdate(n);const o=bO(t),a=o[Mm]??Gqe(o);let i;return i=this.ajv.getSchema(a),i===void 0&&(i=this.ajv.addSchema(o,a).getSchema(a)||this.ajv.compile(o)),i(r)}catch(o){return console.warn("Error encountered compiling schema:",o),!1}}}function z_(e={},t){return new cEr(e,t)}const F1=z_();var dEr=function(t){for(var r=0,n=t.length,o=0,a;o=55296&&a<=56319&&o=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(a="data"+(t-n||""),!o)return a}for(var s=a,l=o.split("/"),u=0;u=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function UEr(e,t,r){var n=IPe.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function IPe(e,t,r){for(var n=0;n%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,NPe=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,DPe=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,APe=/^(?:\/(?:[^~/]|~0|~1)*)*$/,MPe=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,BPe=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,o_r=TA;function TA(e){return e=e=="full"?"full":"fast",ZEr.copy(TA[e])}TA.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":OPe,url:NPe,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:FPe,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:zPe,uuid:DPe,"json-pointer":APe,"json-pointer-uri-fragment":MPe,"relative-json-pointer":BPe};TA.full={date:jPe,time:LPe,"date-time":s_r,uri:u_r,"uri-reference":n_r,"uri-template":OPe,url:NPe,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:FPe,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:zPe,uuid:DPe,"json-pointer":APe,"json-pointer-uri-fragment":MPe,"relative-json-pointer":BPe};function a_r(e){return e%4===0&&(e%100!==0||e%400===0)}function jPe(e){var t=e.match(JEr);if(!t)return!1;var r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n==2&&a_r(r)?29:e_r[n])}function LPe(e,t){var r=e.match(t_r);if(!r)return!1;var n=r[1],o=r[2],a=r[3],i=r[5];return(n<=23&&o<=59&&a<=59||n==23&&o==59&&a==60)&&(!t||i)}var i_r=/t|\s/i;function s_r(e){var t=e.split(i_r);return t.length==2&&jPe(t[0])&&LPe(t[1],!0)}var l_r=/\/|:/;function u_r(e){return l_r.test(e)&&r_r.test(e)}var c_r=/[^\\]\\Z/;function zPe(e){if(c_r.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}var d_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.errSchemaPath+"/"+r,u=!t.opts.allErrors,c="data"+(i||""),d="valid"+a,f,p;if(s=="#"||s=="#/")t.isRoot?(f=t.async,p="validate"):(f=t.root.schema.$async===!0,p="root.refVal[0]");else{var h=t.resolveRef(t.baseId,s,t.isRoot);if(h===void 0){var v=t.MissingRefError.message(t.baseId,s);if(t.opts.missingRefs=="fail"){t.logger.error(v);var b=b||[];b.push(o),o="",t.createErrors!==!1?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { ref: '"+t.util.escapeQuotes(s)+"' } ",t.opts.messages!==!1&&(o+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(s)+"' "),t.opts.verbose&&(o+=" , schema: "+t.util.toQuotedString(s)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),o+=" } "):o+=" {} ";var g=o;o=b.pop(),!t.compositeRule&&u?t.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(o+=" if (false) { ")}else if(t.opts.missingRefs=="ignore")t.logger.warn(v),u&&(o+=" if (true) { ");else throw new t.MissingRefError(t.baseId,s,v)}else if(h.inline){var y=t.util.copy(t);y.level++;var S="valid"+y.level;y.schema=h.schema,y.schemaPath="",y.errSchemaPath=s;var w=t.validate(y).replace(/validate\.schema/g,h.code);o+=" "+w+" ",u&&(o+=" if ("+S+") { ")}else f=h.$async===!0||t.async&&h.$async!==!1,p=h.code}if(p){var b=b||[];b.push(o),o="",t.opts.passContext?o+=" "+p+".call(this, ":o+=" "+p+"( ",o+=" "+c+", (dataPath || '')",t.errorPath!='""'&&(o+=" + "+t.errorPath);var $=i?"data"+(i-1||""):"parentData",C=i?t.dataPathArr[i]:"parentDataProperty";o+=" , "+$+" , "+C+", rootData) ";var x=o;if(o=b.pop(),f){if(!t.async)throw new Error("async schema referenced by sync schema");u&&(o+=" var "+d+"; "),o+=" try { await "+x+"; ",u&&(o+=" "+d+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(o+=" "+d+" = false; "),o+=" } ",u&&(o+=" if ("+d+") { ")}else o+=" if (!"+x+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",u&&(o+=" else { ")}return o},f_r=function(t,r,n){var o=" ",a=t.schema[r],i=t.schemaPath+t.util.getProperty(r),s=t.errSchemaPath+"/"+r,l=!t.opts.allErrors,u=t.util.copy(t),c="";u.level++;var d="valid"+u.level,f=u.baseId,p=!0,h=a;if(h)for(var v,b=-1,g=h.length-1;b0||v===!1:t.util.schemaHasRules(v,t.RULES.all))&&(p=!1,u.schema=v,u.schemaPath=i+"["+b+"]",u.errSchemaPath=s+"/"+b,o+=" "+t.validate(u)+" ",u.baseId=f,l&&(o+=" if ("+d+") { ",c+="}"));return l&&(p?o+=" if (true) { ":o+=" "+c.slice(0,-1)+" "),o},p_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="valid"+a,p="errs__"+a,h=t.util.copy(t),v="";h.level++;var b="valid"+h.level,g=s.every(function(E){return t.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:t.util.schemaHasRules(E,t.RULES.all)});if(g){var y=h.baseId;o+=" var "+p+" = errors; var "+f+" = false; ";var S=t.compositeRule;t.compositeRule=h.compositeRule=!0;var w=s;if(w)for(var $,C=-1,x=w.length-1;C0||s===!1:t.util.schemaHasRules(s,t.RULES.all);if(o+="var "+p+" = errors;var "+f+";",$){var C=t.compositeRule;t.compositeRule=h.compositeRule=!0,h.schema=s,h.schemaPath=l,h.errSchemaPath=u,o+=" var "+b+" = false; for (var "+g+" = 0; "+g+" < "+d+".length; "+g+"++) { ",h.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0);var x=d+"["+g+"]";h.dataPathArr[y]=g;var E=t.validate(h);h.baseId=w,t.util.varOccurences(E,S)<2?o+=" "+t.util.varReplace(E,S,x)+" ":o+=" var "+S+" = "+x+"; "+E+" ",o+=" if ("+b+") break; } ",t.compositeRule=h.compositeRule=C,o+=" "+v+" if (!"+b+") {"}else o+=" if ("+d+".length == 0) {";var _=_||[];_.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(o+=" , message: 'should contain a valid item' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var k=o;return o=_.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+k+"]); ":o+=" validate.errors = ["+k+"]; return false; ":o+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { ",$&&(o+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),t.opts.allErrors&&(o+=" } "),o},g_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="errs__"+a,p=t.util.copy(t),h="";p.level++;var v="valid"+p.level,b={},g={},y=t.opts.ownProperties;for(C in s)if(C!="__proto__"){var S=s[C],w=Array.isArray(S)?g:b;w[C]=S}o+="var "+f+" = errors;";var $=t.errorPath;o+="var missing"+a+";";for(var C in g)if(w=g[C],w.length){if(o+=" if ( "+d+t.util.getProperty(C)+" !== undefined ",y&&(o+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(C)+"') "),c){o+=" && ( ";var x=w;if(x)for(var E,_=-1,k=x.length-1;_0||S===!1:t.util.schemaHasRules(S,t.RULES.all))&&(o+=" "+v+" = true; if ( "+d+t.util.getProperty(C)+" !== undefined ",y&&(o+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(C)+"') "),o+=") { ",p.schema=S,p.schemaPath=l+t.util.getProperty(C),p.errSchemaPath=u+"/"+t.util.escapeFragment(C),o+=" "+t.validate(p)+" ",p.baseId=B,o+=" } ",c&&(o+=" if ("+v+") { ",h+="}"))}return c&&(o+=" "+h+" if ("+f+" == errors) {"),o},b_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="valid"+a,p=t.opts.$data&&s&&s.$data;p&&(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ");var h="i"+a,v="schema"+a;p||(o+=" var "+v+" = validate.schema"+l+";"),o+="var "+f+";",p&&(o+=" if (schema"+a+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+a+")) "+f+" = false; else {"),o+=""+f+" = false;for (var "+h+"=0; "+h+"<"+v+".length; "+h+"++) if (equal("+d+", "+v+"["+h+"])) { "+f+" = true; break; }",p&&(o+=" } "),o+=" if (!"+f+") { ";var b=b||[];b.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValues: schema"+a+" } ",t.opts.messages!==!1&&(o+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var g=o;return o=b.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" }",c&&(o+=" else { "),o},y_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||"");if(t.opts.format===!1)return c&&(o+=" if (true) { "),o;var f=t.opts.$data&&s&&s.$data,p;f?(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ",p="schema"+a):p=s;var h=t.opts.unknownFormats,v=Array.isArray(h);if(f){var b="format"+a,g="isObject"+a,y="formatType"+a;o+=" var "+b+" = formats["+p+"]; var "+g+" = typeof "+b+" == 'object' && !("+b+" instanceof RegExp) && "+b+".validate; var "+y+" = "+g+" && "+b+".type || 'string'; if ("+g+") { ",t.async&&(o+=" var async"+a+" = "+b+".async; "),o+=" "+b+" = "+b+".validate; } if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),o+=" (",h!="ignore"&&(o+=" ("+p+" && !"+b+" ",v&&(o+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),o+=") || "),o+=" ("+b+" && "+y+" == '"+n+"' && !(typeof "+b+" == 'function' ? ",t.async?o+=" (async"+a+" ? await "+b+"("+d+") : "+b+"("+d+")) ":o+=" "+b+"("+d+") ",o+=" : "+b+".test("+d+"))))) {"}else{var b=t.formats[s];if(!b){if(h=="ignore")return t.logger.warn('unknown format "'+s+'" ignored in schema at path "'+t.errSchemaPath+'"'),c&&(o+=" if (true) { "),o;if(v&&h.indexOf(s)>=0)return c&&(o+=" if (true) { "),o;throw new Error('unknown format "'+s+'" is used in schema at path "'+t.errSchemaPath+'"')}var g=typeof b=="object"&&!(b instanceof RegExp)&&b.validate,y=g&&b.type||"string";if(g){var S=b.async===!0;b=b.validate}if(y!=n)return c&&(o+=" if (true) { "),o;if(S){if(!t.async)throw new Error("async format in sync schema");var w="formats"+t.util.getProperty(s)+".validate";o+=" if (!(await "+w+"("+d+"))) { "}else{o+=" if (! ";var w="formats"+t.util.getProperty(s);g&&(w+=".validate"),typeof b=="function"?o+=" "+w+"("+d+") ":o+=" "+w+".test("+d+") ",o+=") { "}}var $=$||[];$.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { format: ",f?o+=""+p:o+=""+t.util.toQuotedString(s),o+=" } ",t.opts.messages!==!1&&(o+=` , message: 'should match format "`,f?o+="' + "+p+" + '":o+=""+t.util.escapeQuotes(s),o+=`"' `),t.opts.verbose&&(o+=" , schema: ",f?o+="validate.schema"+l:o+=""+t.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var C=o;return o=$.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+C+"]); ":o+=" validate.errors = ["+C+"]; return false; ":o+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",c&&(o+=" else { "),o},S_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="valid"+a,p="errs__"+a,h=t.util.copy(t);h.level++;var v="valid"+h.level,b=t.schema.then,g=t.schema.else,y=b!==void 0&&(t.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:t.util.schemaHasRules(b,t.RULES.all)),S=g!==void 0&&(t.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:t.util.schemaHasRules(g,t.RULES.all)),w=h.baseId;if(y||S){var $;h.createErrors=!1,h.schema=s,h.schemaPath=l,h.errSchemaPath=u,o+=" var "+p+" = errors; var "+f+" = true; ";var C=t.compositeRule;t.compositeRule=h.compositeRule=!0,o+=" "+t.validate(h)+" ",h.baseId=w,h.createErrors=!0,o+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",t.compositeRule=h.compositeRule=C,y?(o+=" if ("+v+") { ",h.schema=t.schema.then,h.schemaPath=t.schemaPath+".then",h.errSchemaPath=t.errSchemaPath+"/then",o+=" "+t.validate(h)+" ",h.baseId=w,o+=" "+f+" = "+v+"; ",y&&S?($="ifClause"+a,o+=" var "+$+" = 'then'; "):$="'then'",o+=" } ",S&&(o+=" else { ")):o+=" if (!"+v+") { ",S&&(h.schema=t.schema.else,h.schemaPath=t.schemaPath+".else",h.errSchemaPath=t.errSchemaPath+"/else",o+=" "+t.validate(h)+" ",h.baseId=w,o+=" "+f+" = "+v+"; ",y&&S?($="ifClause"+a,o+=" var "+$+" = 'else'; "):$="'else'",o+=" } "),o+=" if (!"+f+") { var err = ",t.createErrors!==!1?(o+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { failingKeyword: "+$+" } ",t.opts.messages!==!1&&(o+=` , message: 'should match "' + `+$+` + '" schema' `),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; "),o+=" } ",c&&(o+=" else { ")}else c&&(o+=" if (true) { ");return o},w_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="valid"+a,p="errs__"+a,h=t.util.copy(t),v="";h.level++;var b="valid"+h.level,g="i"+a,y=h.dataLevel=t.dataLevel+1,S="data"+y,w=t.baseId;if(o+="var "+p+" = errors;var "+f+";",Array.isArray(s)){var $=t.schema.additionalItems;if($===!1){o+=" "+f+" = "+d+".length <= "+s.length+"; ";var C=u;u=t.errSchemaPath+"/additionalItems",o+=" if (!"+f+") { ";var x=x||[];x.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+s.length+" } ",t.opts.messages!==!1&&(o+=" , message: 'should NOT have more than "+s.length+" items' "),t.opts.verbose&&(o+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var E=o;o=x.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+E+"]); ":o+=" validate.errors = ["+E+"]; return false; ":o+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",u=C,c&&(v+="}",o+=" else { ")}var _=s;if(_){for(var k,I=-1,N=_.length-1;I0||k===!1:t.util.schemaHasRules(k,t.RULES.all)){o+=" "+b+" = true; if ("+d+".length > "+I+") { ";var z=d+"["+I+"]";h.schema=k,h.schemaPath=l+"["+I+"]",h.errSchemaPath=u+"/"+I,h.errorPath=t.util.getPathExpr(t.errorPath,I,t.opts.jsonPointers,!0),h.dataPathArr[y]=I;var O=t.validate(h);h.baseId=w,t.util.varOccurences(O,S)<2?o+=" "+t.util.varReplace(O,S,z)+" ":o+=" var "+S+" = "+z+"; "+O+" ",o+=" } ",c&&(o+=" if ("+b+") { ",v+="}")}}if(typeof $=="object"&&(t.opts.strictKeywords?typeof $=="object"&&Object.keys($).length>0||$===!1:t.util.schemaHasRules($,t.RULES.all))){h.schema=$,h.schemaPath=t.schemaPath+".additionalItems",h.errSchemaPath=t.errSchemaPath+"/additionalItems",o+=" "+b+" = true; if ("+d+".length > "+s.length+") { for (var "+g+" = "+s.length+"; "+g+" < "+d+".length; "+g+"++) { ",h.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0);var z=d+"["+g+"]";h.dataPathArr[y]=g;var O=t.validate(h);h.baseId=w,t.util.varOccurences(O,S)<2?o+=" "+t.util.varReplace(O,S,z)+" ":o+=" var "+S+" = "+z+"; "+O+" ",c&&(o+=" if (!"+b+") break; "),o+=" } } ",c&&(o+=" if ("+b+") { ",v+="}")}}else if(t.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===!1:t.util.schemaHasRules(s,t.RULES.all)){h.schema=s,h.schemaPath=l,h.errSchemaPath=u,o+=" for (var "+g+" = 0; "+g+" < "+d+".length; "+g+"++) { ",h.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0);var z=d+"["+g+"]";h.dataPathArr[y]=g;var O=t.validate(h);h.baseId=w,t.util.varOccurences(O,S)<2?o+=" "+t.util.varReplace(O,S,z)+" ":o+=" var "+S+" = "+z+"; "+O+" ",c&&(o+=" if (!"+b+") break; "),o+=" }"}return c&&(o+=" "+v+" if ("+p+" == errors) {"),o},pue=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,w,d="data"+(i||""),f=t.opts.$data&&s&&s.$data,p;f?(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ",p="schema"+a):p=s;var h=r=="maximum",v=h?"exclusiveMaximum":"exclusiveMinimum",b=t.schema[v],g=t.opts.$data&&b&&b.$data,y=h?"<":">",S=h?">":"<",w=void 0;if(!(f||typeof s=="number"||s===void 0))throw new Error(r+" must be number");if(!(g||b===void 0||typeof b=="number"||typeof b=="boolean"))throw new Error(v+" must be number or boolean");if(g){var $=t.util.getData(b.$data,i,t.dataPathArr),C="exclusive"+a,x="exclType"+a,E="exclIsNumber"+a,_="op"+a,k="' + "+_+" + '";o+=" var schemaExcl"+a+" = "+$+"; ",$="schemaExcl"+a,o+=" var "+C+"; var "+x+" = typeof "+$+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var w=v,I=I||[];I.push(o),o="",t.createErrors!==!1?(o+=" { keyword: '"+(w||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(o+=" , message: '"+v+" should be boolean' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var N=o;o=I.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),o+=" "+x+" == 'number' ? ( ("+C+" = "+p+" === undefined || "+$+" "+y+"= "+p+") ? "+d+" "+S+"= "+$+" : "+d+" "+S+" "+p+" ) : ( ("+C+" = "+$+" === true) ? "+d+" "+S+"= "+p+" : "+d+" "+S+" "+p+" ) || "+d+" !== "+d+") { var op"+a+" = "+C+" ? '"+y+"' : '"+y+"='; ",s===void 0&&(w=v,u=t.errSchemaPath+"/"+v,p=$,f=g)}else{var E=typeof b=="number",k=y;if(E&&f){var _="'"+k+"'";o+=" if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),o+=" ( "+p+" === undefined || "+b+" "+y+"= "+p+" ? "+d+" "+S+"= "+b+" : "+d+" "+S+" "+p+" ) || "+d+" !== "+d+") { "}else{E&&s===void 0?(C=!0,w=v,u=t.errSchemaPath+"/"+v,p=b,S+="="):(E&&(p=Math[h?"min":"max"](b,s)),b===(E?p:!0)?(C=!0,w=v,u=t.errSchemaPath+"/"+v,S+="="):(C=!1,k+="="));var _="'"+k+"'";o+=" if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),o+=" "+d+" "+S+" "+p+" || "+d+" !== "+d+") { "}}w=w||r;var I=I||[];I.push(o),o="",t.createErrors!==!1?(o+=" { keyword: '"+(w||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { comparison: "+_+", limit: "+p+", exclusive: "+C+" } ",t.opts.messages!==!1&&(o+=" , message: 'should be "+k+" ",f?o+="' + "+p:o+=""+p+"'"),t.opts.verbose&&(o+=" , schema: ",f?o+="validate.schema"+l:o+=""+s,o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var N=o;return o=I.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",c&&(o+=" else { "),o},mue=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,v,d="data"+(i||""),f=t.opts.$data&&s&&s.$data,p;if(f?(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ",p="schema"+a):p=s,!(f||typeof s=="number"))throw new Error(r+" must be number");var h=r=="maxItems"?">":"<";o+="if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),o+=" "+d+".length "+h+" "+p+") { ";var v=r,b=b||[];b.push(o),o="",t.createErrors!==!1?(o+=" { keyword: '"+(v||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(o+=" , message: 'should NOT have ",r=="maxItems"?o+="more":o+="fewer",o+=" than ",f?o+="' + "+p+" + '":o+=""+s,o+=" items' "),t.opts.verbose&&(o+=" , schema: ",f?o+="validate.schema"+l:o+=""+s,o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var g=o;return o=b.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",c&&(o+=" else { "),o},hue=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,v,d="data"+(i||""),f=t.opts.$data&&s&&s.$data,p;if(f?(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ",p="schema"+a):p=s,!(f||typeof s=="number"))throw new Error(r+" must be number");var h=r=="maxLength"?">":"<";o+="if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t.opts.unicode===!1?o+=" "+d+".length ":o+=" ucs2length("+d+") ",o+=" "+h+" "+p+") { ";var v=r,b=b||[];b.push(o),o="",t.createErrors!==!1?(o+=" { keyword: '"+(v||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(o+=" , message: 'should NOT be ",r=="maxLength"?o+="longer":o+="shorter",o+=" than ",f?o+="' + "+p+" + '":o+=""+s,o+=" characters' "),t.opts.verbose&&(o+=" , schema: ",f?o+="validate.schema"+l:o+=""+s,o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var g=o;return o=b.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",c&&(o+=" else { "),o},vue=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,v,d="data"+(i||""),f=t.opts.$data&&s&&s.$data,p;if(f?(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ",p="schema"+a):p=s,!(f||typeof s=="number"))throw new Error(r+" must be number");var h=r=="maxProperties"?">":"<";o+="if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),o+=" Object.keys("+d+").length "+h+" "+p+") { ";var v=r,b=b||[];b.push(o),o="",t.createErrors!==!1?(o+=" { keyword: '"+(v||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(o+=" , message: 'should NOT have ",r=="maxProperties"?o+="more":o+="fewer",o+=" than ",f?o+="' + "+p+" + '":o+=""+s,o+=" properties' "),t.opts.verbose&&(o+=" , schema: ",f?o+="validate.schema"+l:o+=""+s,o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var g=o;return o=b.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",c&&(o+=" else { "),o},C_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f=t.opts.$data&&s&&s.$data,p;if(f?(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ",p="schema"+a):p=s,!(f||typeof s=="number"))throw new Error(r+" must be number");o+="var division"+a+";if (",f&&(o+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),o+=" (division"+a+" = "+d+" / "+p+", ",t.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+t.opts.multipleOfPrecision+" ":o+=" division"+a+" !== parseInt(division"+a+") ",o+=" ) ",f&&(o+=" ) "),o+=" ) { ";var h=h||[];h.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { multipleOf: "+p+" } ",t.opts.messages!==!1&&(o+=" , message: 'should be multiple of ",f?o+="' + "+p:o+=""+p+"'"),t.opts.verbose&&(o+=" , schema: ",f?o+="validate.schema"+l:o+=""+s,o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var v=o;return o=h.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",c&&(o+=" else { "),o},x_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="errs__"+a,p=t.util.copy(t);p.level++;var h="valid"+p.level;if(t.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===!1:t.util.schemaHasRules(s,t.RULES.all)){p.schema=s,p.schemaPath=l,p.errSchemaPath=u,o+=" var "+f+" = errors; ";var v=t.compositeRule;t.compositeRule=p.compositeRule=!0,p.createErrors=!1;var b;p.opts.allErrors&&(b=p.opts.allErrors,p.opts.allErrors=!1),o+=" "+t.validate(p)+" ",p.createErrors=!0,b&&(p.opts.allErrors=b),t.compositeRule=p.compositeRule=v,o+=" if ("+h+") { ";var g=g||[];g.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(o+=" , message: 'should NOT be valid' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var y=o;o=g.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+y+"]); ":o+=" validate.errors = ["+y+"]; return false; ":o+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",t.opts.allErrors&&(o+=" } ")}else o+=" var err = ",t.createErrors!==!1?(o+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(o+=" , message: 'should NOT be valid' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(o+=" if (false) { ");return o},$_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="valid"+a,p="errs__"+a,h=t.util.copy(t),v="";h.level++;var b="valid"+h.level,g=h.baseId,y="prevValid"+a,S="passingSchemas"+a;o+="var "+p+" = errors , "+y+" = false , "+f+" = false , "+S+" = null; ";var w=t.compositeRule;t.compositeRule=h.compositeRule=!0;var $=s;if($)for(var C,x=-1,E=$.length-1;x0||C===!1:t.util.schemaHasRules(C,t.RULES.all))?(h.schema=C,h.schemaPath=l+"["+x+"]",h.errSchemaPath=u+"/"+x,o+=" "+t.validate(h)+" ",h.baseId=g):o+=" var "+b+" = true; ",x&&(o+=" if ("+b+" && "+y+") { "+f+" = false; "+S+" = ["+S+", "+x+"]; } else { ",v+="}"),o+=" if ("+b+") { "+f+" = "+y+" = true; "+S+" = "+x+"; }";return t.compositeRule=h.compositeRule=w,o+=""+v+"if (!"+f+") { var err = ",t.createErrors!==!1?(o+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { passingSchemas: "+S+" } ",t.opts.messages!==!1&&(o+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; "),o+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",t.opts.allErrors&&(o+=" } "),o},E_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f=t.opts.$data&&s&&s.$data,p;f?(o+=" var schema"+a+" = "+t.util.getData(s.$data,i,t.dataPathArr)+"; ",p="schema"+a):p=s;var h=f?"(new RegExp("+p+"))":t.usePattern(s);o+="if ( ",f&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),o+=" !"+h+".test("+d+") ) { ";var v=v||[];v.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { pattern: ",f?o+=""+p:o+=""+t.util.toQuotedString(s),o+=" } ",t.opts.messages!==!1&&(o+=` , message: 'should match pattern "`,f?o+="' + "+p+" + '":o+=""+t.util.escapeQuotes(s),o+=`"' `),t.opts.verbose&&(o+=" , schema: ",f?o+="validate.schema"+l:o+=""+t.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var b=o;return o=v.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+b+"]); ":o+=" validate.errors = ["+b+"]; return false; ":o+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",c&&(o+=" else { "),o},__r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="errs__"+a,p=t.util.copy(t),h="";p.level++;var v="valid"+p.level,b="key"+a,g="idx"+a,y=p.dataLevel=t.dataLevel+1,S="data"+y,w="dataProperties"+a,$=Object.keys(s||{}).filter(j),C=t.schema.patternProperties||{},x=Object.keys(C).filter(j),E=t.schema.additionalProperties,_=$.length||x.length,k=E===!1,I=typeof E=="object"&&Object.keys(E).length,N=t.opts.removeAdditional,z=k||I||N,O=t.opts.ownProperties,A=t.baseId,M=t.schema.required;if(M&&!(t.opts.$data&&M.$data)&&M.length8)o+=" || validate.schema"+l+".hasOwnProperty("+b+") ";else{var H=$;if(H)for(var B,F=-1,V=H.length-1;F0||se===!1:t.util.schemaHasRules(se,t.RULES.all)){var pe=t.util.getProperty(B),ie=d+pe,ge=ae&&se.default!==void 0;p.schema=se,p.schemaPath=l+pe,p.errSchemaPath=u+"/"+t.util.escapeFragment(B),p.errorPath=t.util.getPath(t.errorPath,B,t.opts.jsonPointers),p.dataPathArr[y]=t.util.toQuotedString(B);var te=t.validate(p);if(p.baseId=A,t.util.varOccurences(te,S)<2){te=t.util.varReplace(te,S,ie);var de=ie}else{var de=S;o+=" var "+S+" = "+ie+"; "}if(ge)o+=" "+te+" ";else{if(L&&L[B]){o+=" if ( "+de+" === undefined ",O&&(o+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(B)+"') "),o+=") { "+v+" = false; ";var U=t.errorPath,J=u,ee=t.util.escapeQuotes(B);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(U,B,t.opts.jsonPointers)),u=t.errSchemaPath+"/required";var Z=Z||[];Z.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+ee+"' } ",t.opts.messages!==!1&&(o+=" , message: '",t.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+ee+"\\'",o+="' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var Q=o;o=Z.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+Q+"]); ":o+=" validate.errors = ["+Q+"]; return false; ":o+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=J,t.errorPath=U,o+=" } else { "}else c?(o+=" if ( "+de+" === undefined ",O&&(o+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(B)+"') "),o+=") { "+v+" = true; } else { "):(o+=" if ("+de+" !== undefined ",O&&(o+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(B)+"') "),o+=" ) { ");o+=" "+te+" } "}}c&&(o+=" if ("+v+") { ",h+="}")}}if(x.length){var me=x;if(me)for(var P,Re=-1,je=me.length-1;Re0||se===!1:t.util.schemaHasRules(se,t.RULES.all)){p.schema=se,p.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(P),p.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(P),O?o+=" "+w+" = "+w+" || Object.keys("+d+"); for (var "+g+"=0; "+g+"<"+w+".length; "+g+"++) { var "+b+" = "+w+"["+g+"]; ":o+=" for (var "+b+" in "+d+") { ",o+=" if ("+t.usePattern(P)+".test("+b+")) { ",p.errorPath=t.util.getPathExpr(t.errorPath,b,t.opts.jsonPointers);var ie=d+"["+b+"]";p.dataPathArr[y]=b;var te=t.validate(p);p.baseId=A,t.util.varOccurences(te,S)<2?o+=" "+t.util.varReplace(te,S,ie)+" ":o+=" var "+S+" = "+ie+"; "+te+" ",c&&(o+=" if (!"+v+") break; "),o+=" } ",c&&(o+=" else "+v+" = true; "),o+=" } ",c&&(o+=" if ("+v+") { ",h+="}")}}}return c&&(o+=" "+h+" if ("+f+" == errors) {"),o},k_r=function(t,r,n){var o=" ",a=t.level,i=t.dataLevel,s=t.schema[r],l=t.schemaPath+t.util.getProperty(r),u=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,d="data"+(i||""),f="errs__"+a,p=t.util.copy(t),h="";p.level++;var v="valid"+p.level;if(o+="var "+f+" = errors;",t.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===!1:t.util.schemaHasRules(s,t.RULES.all)){p.schema=s,p.schemaPath=l,p.errSchemaPath=u;var b="key"+a,g="idx"+a,y="i"+a,S="' + "+b+" + '",w=p.dataLevel=t.dataLevel+1,$="data"+w,C="dataProperties"+a,x=t.opts.ownProperties,E=t.baseId;x&&(o+=" var "+C+" = undefined; "),x?o+=" "+C+" = "+C+" || Object.keys("+d+"); for (var "+g+"=0; "+g+"<"+C+".length; "+g+"++) { var "+b+" = "+C+"["+g+"]; ":o+=" for (var "+b+" in "+d+") { ",o+=" var startErrs"+a+" = errors; ";var _=b,k=t.compositeRule;t.compositeRule=p.compositeRule=!0;var I=t.validate(p);p.baseId=E,t.util.varOccurences(I,$)<2?o+=" "+t.util.varReplace(I,$,_)+" ":o+=" var "+$+" = "+_+"; "+I+" ",t.compositeRule=p.compositeRule=k,o+=" if (!"+v+") { for (var "+y+"=startErrs"+a+"; "+y+"0||w===!1:t.util.schemaHasRules(w,t.RULES.all))||(v[v.length]=g)}}else var v=s;if(p||v.length){var $=t.errorPath,C=p||v.length>=t.opts.loopRequired,x=t.opts.ownProperties;if(c)if(o+=" var missing"+a+"; ",C){p||(o+=" var "+h+" = validate.schema"+l+"; ");var E="i"+a,_="schema"+a+"["+E+"]",k="' + "+_+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr($,_,t.opts.jsonPointers)),o+=" var "+f+" = true; ",p&&(o+=" if (schema"+a+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+a+")) "+f+" = false; else {"),o+=" for (var "+E+" = 0; "+E+" < "+h+".length; "+E+"++) { "+f+" = "+d+"["+h+"["+E+"]] !== undefined ",x&&(o+=" && Object.prototype.hasOwnProperty.call("+d+", "+h+"["+E+"]) "),o+="; if (!"+f+") break; } ",p&&(o+=" } "),o+=" if (!"+f+") { ";var I=I||[];I.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+k+"' } ",t.opts.messages!==!1&&(o+=" , message: '",t.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+k+"\\'",o+="' "),t.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var N=o;o=I.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { "}else{o+=" if ( ";var z=v;if(z)for(var O,E=-1,A=z.length-1;E 1) { ";var v=t.schema.items&&t.schema.items.type,b=Array.isArray(v);if(!v||v=="object"||v=="array"||b&&(v.indexOf("object")>=0||v.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+f+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var g="checkDataType"+(b?"s":"");o+=" if ("+t.util[g](v,"item",t.opts.strictNumbers,!0)+") continue; ",b&&(o+=` if (typeof item == 'string') item = '"' + item; `),o+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+f+") { ";var y=y||[];y.push(o),o="",t.createErrors!==!1?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { i: i, j: j } ",t.opts.messages!==!1&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(o+=" , schema: ",p?o+="validate.schema"+l:o+=""+s,o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var S=o;o=y.pop(),!t.compositeRule&&c?t.async?o+=" throw new ValidationError(["+S+"]); ":o+=" validate.errors = ["+S+"]; return false; ":o+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",c&&(o+=" else { ")}else c&&(o+=" if (true) { ");return o},I_r={$ref:d_r,allOf:f_r,anyOf:p_r,$comment:m_r,const:h_r,contains:v_r,dependencies:g_r,enum:b_r,format:y_r,if:S_r,items:w_r,maximum:pue,minimum:pue,maxItems:mue,minItems:mue,maxLength:hue,minLength:hue,maxProperties:vue,minProperties:vue,multipleOf:C_r,not:x_r,oneOf:$_r,pattern:E_r,properties:__r,propertyNames:k_r,required:P_r,uniqueItems:T_r,validate:PPe},gue=I_r,O3=IS.toHash,R_r=function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],o=["number","integer","string","array","object","boolean","null"];return t.all=O3(r),t.types=O3(o),t.forEach(function(a){a.rules=a.rules.map(function(i){var s;if(typeof i=="object"){var l=Object.keys(i)[0];s=i[l],i=l,s.forEach(function(c){r.push(c),t.all[c]=!0})}r.push(i);var u=t.all[i]={keyword:i,code:gue[i],implements:s};return u}),t.all.$comment={keyword:"$comment",code:gue.$comment},a.type&&(t.types[a.type]=a)}),t.keywords=O3(r.concat(n)),t.custom={},t},bue=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],F_r=function(e,t){for(var r=0;r{n.addFormat(o,t[o])}),n}class B2r{constructor(t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o}=t;this.ajv=M2r(r,n,o)}toErrorList(t,r=[]){return Dy(t,r)}transformRJSFValidationErrors(t=[]){return t.map(r=>{const{dataPath:n,keyword:o,message:a,params:i,schemaPath:s}=r,l=`${n}`;return{name:o,property:l,message:a,params:i,stack:`${l} ${a}`.trim(),schemaPath:s}})}rawValidation(t,r){let n;try{this.ajv.validate(t,r)}catch(a){n=a}const o=this.ajv.errors||void 0;return this.ajv.errors=null,{errors:o,validationError:n}}validateFormData(t,r,n,o,a){const i=r,s=this.rawValidation(r,t),{validationError:l}=s;let u=this.transformRJSFValidationErrors(s.errors);const c=l&&l.message&&l.message.includes("no schema with key or ref ");c&&(u=[...u,{stack:l.message}]),typeof o=="function"&&(u=o(u,a));let d=dme(u);if(c&&(d={...d,$schema:{__errors:[l.message]}}),typeof n!="function")return{errors:u,errorSchema:d};const f=I7(this,r,t,i,!0),p=n(f,rI(f),a),h=D7(p);return fC({errors:u,errorSchema:d},h)}handleSchemaUpdate(t){var n;const r=Db;this.ajv.getSchema(Db)===void 0?this.ajv.addSchema(t,Db):Ii(t,(n=this.ajv.getSchema(Db))==null?void 0:n.schema)||(this.ajv.removeSchema(r),this.ajv.addSchema(t,r))}isValid(t,r,n){try{return this.handleSchemaUpdate(n),this.ajv.validate(bO(t),r)}catch{return!1}}}function j2r(e={}){return new B2r(e)}const L2r=j2r();var z2r=function(t){if(t&&t.length)for(const o of t){let a;switch(o.keyword){case"additionalItems":case"items":a="";var n=o.params.limit;a+="no debe tener más de "+n+" elemento",n!=1&&(a+="s");break;case"additionalProperties":a="no debe tener propiedades adicionales";break;case"anyOf":a='debe coincidir con algún esquema en "anyOf"';break;case"const":a="debe ser igual a la constante";break;case"contains":a="debe contener un elemento válido";break;case"dependencies":case"dependentRequired":a="";var n=o.params.depsCount;a+="debe contener la",n!=1&&(a+="s"),a+=" propiedad",n!=1&&(a+="es"),a+=" "+o.params.deps+" cuando la propiedad "+o.params.property+" se encuentra presente";break;case"discriminator":switch(o.params.error){case"tag":a='tag "'+o.params.tag+'" must be string';break;case"mapping":a='value of tag "'+o.params.tag+'" must be in oneOf';break;default:a='debe pasar la validación de palabra clave "'+o.keyword+'"'}break;case"enum":a="deber ser igual a uno de los valores predefinidos";break;case"false schema":a="el esquema és falso";break;case"format":a='debe coincidir con el formato "'+o.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":a="";var r=o.params.comparison+" "+o.params.limit;a+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":a="";var r=o.params.comparison+" "+o.params.limit;a+="debe ser "+r;break;case"if":a='debe corresponderse con el esquema "'+o.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":a="";var r=o.params.comparison+" "+o.params.limit;a+="debe ser "+r;break;case"maxItems":a="";var n=o.params.limit;a+="no debe contener más de "+n+" elemento",n!=1&&(a+="s");break;case"maxLength":a="";var n=o.params.limit;a+="no debe contener más de "+n+" caracter",n!=1&&(a+="es");break;case"maxProperties":a="";var n=o.params.limit;a+="no debe contener más de "+n+" propiedad",n!=1&&(a+="es");break;case"minimum":case"exclusiveMinimum":a="";var r=o.params.comparison+" "+o.params.limit;a+="debe ser "+r;break;case"minItems":a="";var n=o.params.limit;a+="no debe contener menos de "+n+" elemento",n!=1&&(a+="s");break;case"minLength":a="";var n=o.params.limit;a+="no debe contener menos de "+n+" caracter",n!=1&&(a+="es");break;case"minProperties":a="";var n=o.params.limit;a+="no debe contener menos de "+n+" propiedad",n!=1&&(a+="es");break;case"multipleOf":a="debe ser múltiplo de "+o.params.multipleOf;break;case"not":a='no debe ser válido según el esquema en "not"';break;case"oneOf":a='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":a='debe coincidir con el patron "'+o.params.pattern+'"';break;case"patternRequired":a='la propiedad debe coincidir con el patrón "'+o.params.missingPattern+'"';break;case"propertyNames":a="la propiedad no és válida";break;case"required":a="debe tener la propiedad requerida "+o.params.missingProperty;break;case"type":a="debe ser "+o.params.type;break;case"unevaluatedItems":a="";var n=o.params.len;a+="must NOT have more than "+n+" item",n!=1&&(a+="s");break;case"unevaluatedProperties":a="must NOT have unevaluated properties";break;case"uniqueItems":a="no debe contener elementos duplicados, (los elementos ## "+o.params.j+" y "+o.params.i+" son idénticos)";break;default:a='debe pasar la validación de palabra clave "'+o.keyword+'"'}o.message=a}};const V2r=zt(z2r);var L8={exports:{}},hG={},wu={},O1={},H_={},Sr={},Q$={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((S,w)=>`${S}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((S,w)=>(w instanceof r&&(S[w.str]=(S[w.str]||0)+1),S),{})}}e._Code=n,e.nil=new n("");function o(g,...y){const S=[g[0]];let w=0;for(;w{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${u}${d.scopePath}`})}scopeCode(u=this._values,c,d){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},c,d)}_reduceValues(u,c,d={},f){let p=t.nil;for(const h in u){const v=u[h];if(!v)continue;const b=d[h]=d[h]||new Map;v.forEach(g=>{if(b.has(g))return;b.set(g,n.Started);let y=c(g);if(y){const S=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${S} ${g} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(g))p=(0,t._)`${p}${y}${this.opts._n}`;else throw new r(g);b.set(g,n.Completed)})}return p}}e.ValueScope=s})(z8);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Q$,r=z8;var n=Q$;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=z8;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(P,R){return this}}class i extends a{constructor(P,R,W){super(),this.varKind=P,this.name=R,this.rhs=W}render({es5:P,_n:R}){const W=P?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${W} ${this.name}${U};`+R}optimizeNames(P,R){if(P[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,P,R)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(P,R,W){super(),this.lhs=P,this.rhs=R,this.sideEffects=W}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,R){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,P,R),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(P,this.rhs)}}class l extends s{constructor(P,R,W,U){super(P,W,U),this.op=R}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class u extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class c extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends a{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends a{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,R){return this.code=O(this.code,P,R),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((R,W)=>R+W.render(P),"")}optimizeNodes(){const{nodes:P}=this;let R=P.length;for(;R--;){const W=P[R].optimizeNodes();Array.isArray(W)?P.splice(R,1,...W):W?P[R]=W:P.splice(R,1)}return P.length>0?this:void 0}optimizeNames(P,R){const{nodes:W}=this;let U=W.length;for(;U--;){const q=W[U];q.optimizeNames(P,R)||(A(P,q.names),W.splice(U,1))}return W.length>0?this:void 0}get names(){return this.nodes.reduce((P,R)=>N(P,R.names),{})}}class h extends p{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class v extends p{}class b extends h{}b.kind="else";class g extends h{constructor(P,R){super(R),this.condition=P}render(P){let R=`if(${this.condition})`+super.render(P);return this.else&&(R+="else "+this.else.render(P)),R}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let R=this.else;if(R){const W=R.optimizeNodes();R=this.else=Array.isArray(W)?new b(W):W}if(R)return P===!1?R instanceof g?R:R.nodes:this.nodes.length?this:new g(M(P),R instanceof g?[R]:R.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,R){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(P,R),!!(super.optimizeNames(P,R)||this.else))return this.condition=O(this.condition,P,R),this}get names(){const P=super.names;return z(P,this.condition),this.else&&N(P,this.else.names),P}}g.kind="if";class y extends h{}y.kind="for";class S extends y{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,R){if(super.optimizeNames(P,R))return this.iteration=O(this.iteration,P,R),this}get names(){return N(super.names,this.iteration.names)}}class w extends y{constructor(P,R,W,U){super(),this.varKind=P,this.name=R,this.from=W,this.to=U}render(P){const R=P.es5?r.varKinds.var:this.varKind,{name:W,from:U,to:q}=this;return`for(${R} ${W}=${U}; ${W}<${q}; ${W}++)`+super.render(P)}get names(){const P=z(super.names,this.from);return z(P,this.to)}}class $ extends y{constructor(P,R,W,U){super(),this.loop=P,this.varKind=R,this.name=W,this.iterable=U}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,R){if(super.optimizeNames(P,R))return this.iterable=O(this.iterable,P,R),this}get names(){return N(super.names,this.iterable.names)}}class C extends h{constructor(P,R,W){super(),this.name=P,this.args=R,this.async=W}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}C.kind="func";class x extends p{render(P){return"return "+super.render(P)}}x.kind="return";class E extends h{render(P){let R="try"+super.render(P);return this.catch&&(R+=this.catch.render(P)),this.finally&&(R+=this.finally.render(P)),R}optimizeNodes(){var P,R;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(R=this.finally)===null||R===void 0||R.optimizeNodes(),this}optimizeNames(P,R){var W,U;return super.optimizeNames(P,R),(W=this.catch)===null||W===void 0||W.optimizeNames(P,R),(U=this.finally)===null||U===void 0||U.optimizeNames(P,R),this}get names(){const P=super.names;return this.catch&&N(P,this.catch.names),this.finally&&N(P,this.finally.names),P}}class _ extends h{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}_.kind="catch";class k extends h{render(P){return"finally"+super.render(P)}}k.kind="finally";class I{constructor(P,R={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...R,_n:R.lines?` +`:""},this._extScope=P,this._scope=new r.Scope({parent:P}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,R){const W=this._extScope.value(P,R);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}getScopeValue(P,R){return this._extScope.getValue(P,R)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,R,W,U){const q=this._scope.toName(R);return W!==void 0&&U&&(this._constants[q.str]=W),this._leafNode(new i(P,q,W)),q}const(P,R,W){return this._def(r.varKinds.const,P,R,W)}let(P,R,W){return this._def(r.varKinds.let,P,R,W)}var(P,R,W){return this._def(r.varKinds.var,P,R,W)}assign(P,R,W){return this._leafNode(new s(P,R,W))}add(P,R){return this._leafNode(new l(P,e.operators.ADD,R))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new f(P)),this}object(...P){const R=["{"];for(const[W,U]of P)R.length>1&&R.push(","),R.push(W),(W!==U||this.opts.es5)&&(R.push(":"),(0,t.addCodeArg)(R,U));return R.push("}"),new t._Code(R)}if(P,R,W){if(this._blockNode(new g(P)),R&&W)this.code(R).else().code(W).endIf();else if(R)this.code(R).endIf();else if(W)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new g(P))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(g,b)}_for(P,R){return this._blockNode(P),R&&this.code(R).endFor(),this}for(P,R){return this._for(new S(P),R)}forRange(P,R,W,U,q=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(P);return this._for(new w(q,J,R,W),()=>U(J))}forOf(P,R,W,U=r.varKinds.const){const q=this._scope.toName(P);if(this.opts.es5){const J=R instanceof t.Name?R:this.var("_arr",R);return this.forRange("_i",0,(0,t._)`${J}.length`,Z=>{this.var(q,(0,t._)`${J}[${Z}]`),W(q)})}return this._for(new $("of",U,q,R),()=>W(q))}forIn(P,R,W,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${R})`,W);const q=this._scope.toName(P);return this._for(new $("in",U,q,R),()=>W(q))}endFor(){return this._endBlockNode(y)}label(P){return this._leafNode(new u(P))}break(P){return this._leafNode(new c(P))}return(P){const R=new x;if(this._blockNode(R),this.code(P),R.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(P,R,W){if(!R&&!W)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new E;if(this._blockNode(U),this.code(P),R){const q=this.name("e");this._currNode=U.catch=new _(q),R(q)}return W&&(this._currNode=U.finally=new k,this.code(W)),this._endBlockNode(_,k)}throw(P){return this._leafNode(new d(P))}block(P,R){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(R),this}endBlock(P){const R=this._blockStarts.pop();if(R===void 0)throw new Error("CodeGen: not in self-balancing block");const W=this._nodes.length-R;if(W<0||P!==void 0&&W!==P)throw new Error(`CodeGen: wrong number of nodes: ${W} vs ${P} expected`);return this._nodes.length=R,this}func(P,R=t.nil,W,U){return this._blockNode(new C(P,R,W)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,R){const W=this._currNode;if(W instanceof P||R&&W instanceof R)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${R?`${P.kind}/${R.kind}`:P.kind}"`)}_elseNode(P){const R=this._currNode;if(!(R instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=R.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const R=this._nodes;R[R.length-1]=P}}e.CodeGen=I;function N(D,P){for(const R in P)D[R]=(D[R]||0)+(P[R]||0);return D}function z(D,P){return P instanceof t._CodeOrName?N(D,P.names):D}function O(D,P,R){if(D instanceof t.Name)return W(D);if(!U(D))return D;return new t._Code(D._items.reduce((q,J)=>(J instanceof t.Name&&(J=W(J)),J instanceof t._Code?q.push(...J._items):q.push(J),q),[]));function W(q){const J=R[q.str];return J===void 0||P[q.str]!==1?q:(delete P[q.str],J)}function U(q){return q instanceof t._Code&&q._items.some(J=>J instanceof t.Name&&P[J.str]===1&&R[J.str]!==void 0)}}function A(D,P){for(const R in P)D[R]=(D[R]||0)-(P[R]||0)}function M(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${V(D)}`}e.not=M;const L=F(e.operators.AND);function j(...D){return D.reduce(L)}e.and=j;const H=F(e.operators.OR);function B(...D){return D.reduce(H)}e.or=B;function F(D){return(P,R)=>P===t.nil?R:R===t.nil?P:(0,t._)`${V(P)} ${D} ${V(R)}`}function V(D){return D instanceof t.Name?D:(0,t._)`(${D})`}})(Sr);var Ur={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Sr,r=Q$;function n(C){const x={};for(const E of C)x[E]=!0;return x}e.toHash=n;function o(C,x){return typeof x=="boolean"?x:Object.keys(x).length===0?!0:(a(C,x),!i(x,C.self.RULES.all))}e.alwaysValidSchema=o;function a(C,x=C.schema){const{opts:E,self:_}=C;if(!E.strictSchema||typeof x=="boolean")return;const k=_.RULES.keywords;for(const I in x)k[I]||$(C,`unknown keyword: "${I}"`)}e.checkUnknownRules=a;function i(C,x){if(typeof C=="boolean")return!C;for(const E in C)if(x[E])return!0;return!1}e.schemaHasRules=i;function s(C,x){if(typeof C=="boolean")return!C;for(const E in C)if(E!=="$ref"&&x.all[E])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:C,schemaPath:x},E,_,k){if(!k){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,t._)`${E}`}return(0,t._)`${C}${x}${(0,t.getProperty)(_)}`}e.schemaRefOrVal=l;function u(C){return f(decodeURIComponent(C))}e.unescapeFragment=u;function c(C){return encodeURIComponent(d(C))}e.escapeFragment=c;function d(C){return typeof C=="number"?`${C}`:C.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(C){return C.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function p(C,x){if(Array.isArray(C))for(const E of C)x(E);else x(C)}e.eachItem=p;function h({mergeNames:C,mergeToName:x,mergeValues:E,resultToName:_}){return(k,I,N,z)=>{const O=N===void 0?I:N instanceof t.Name?(I instanceof t.Name?C(k,I,N):x(k,I,N),N):I instanceof t.Name?(x(k,N,I),I):E(I,N);return z===t.Name&&!(O instanceof t.Name)?_(k,O):O}}e.mergeEvaluated={props:h({mergeNames:(C,x,E)=>C.if((0,t._)`${E} !== true && ${x} !== undefined`,()=>{C.if((0,t._)`${x} === true`,()=>C.assign(E,!0),()=>C.assign(E,(0,t._)`${E} || {}`).code((0,t._)`Object.assign(${E}, ${x})`))}),mergeToName:(C,x,E)=>C.if((0,t._)`${E} !== true`,()=>{x===!0?C.assign(E,!0):(C.assign(E,(0,t._)`${E} || {}`),b(C,E,x))}),mergeValues:(C,x)=>C===!0?!0:{...C,...x},resultToName:v}),items:h({mergeNames:(C,x,E)=>C.if((0,t._)`${E} !== true && ${x} !== undefined`,()=>C.assign(E,(0,t._)`${x} === true ? true : ${E} > ${x} ? ${E} : ${x}`)),mergeToName:(C,x,E)=>C.if((0,t._)`${E} !== true`,()=>C.assign(E,x===!0?!0:(0,t._)`${E} > ${x} ? ${E} : ${x}`)),mergeValues:(C,x)=>C===!0?!0:Math.max(C,x),resultToName:(C,x)=>C.var("items",x)})};function v(C,x){if(x===!0)return C.var("props",!0);const E=C.var("props",(0,t._)`{}`);return x!==void 0&&b(C,E,x),E}e.evaluatedPropsToName=v;function b(C,x,E){Object.keys(E).forEach(_=>C.assign((0,t._)`${x}${(0,t.getProperty)(_)}`,!0))}e.setEvaluated=b;const g={};function y(C,x){return C.scopeValue("func",{ref:x,code:g[x.code]||(g[x.code]=new r._Code(x.code))})}e.useFunc=y;var S;(function(C){C[C.Num=0]="Num",C[C.Str=1]="Str"})(S=e.Type||(e.Type={}));function w(C,x,E){if(C instanceof t.Name){const _=x===S.Num;return E?_?(0,t._)`"[" + ${C} + "]"`:(0,t._)`"['" + ${C} + "']"`:_?(0,t._)`"/" + ${C}`:(0,t._)`"/" + ${C}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,t.getProperty)(C).toString():"/"+d(C)}e.getErrorPath=w;function $(C,x,E=C.opts.strictSchema){if(E){if(x=`strict mode: ${x}`,E===!0)throw new Error(x);C.self.logger.warn(x)}}e.checkStrictMode=$})(Ur);var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});const Ei=Sr,H2r={data:new Ei.Name("data"),valCxt:new Ei.Name("valCxt"),instancePath:new Ei.Name("instancePath"),parentData:new Ei.Name("parentData"),parentDataProperty:new Ei.Name("parentDataProperty"),rootData:new Ei.Name("rootData"),dynamicAnchors:new Ei.Name("dynamicAnchors"),vErrors:new Ei.Name("vErrors"),errors:new Ei.Name("errors"),this:new Ei.Name("this"),self:new Ei.Name("self"),scope:new Ei.Name("scope"),json:new Ei.Name("json"),jsonPos:new Ei.Name("jsonPos"),jsonLen:new Ei.Name("jsonLen"),jsonPart:new Ei.Name("jsonPart")};Ul.default=H2r;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Sr,r=Ur,n=Ul;e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:g})=>g?(0,t.str)`"${b}" keyword must be ${g} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,g=e.keywordError,y,S){const{it:w}=b,{gen:$,compositeRule:C,allErrors:x}=w,E=d(b,g,y);S??(C||x)?l($,E):u(w,(0,t._)`[${E}]`)}e.reportError=o;function a(b,g=e.keywordError,y){const{it:S}=b,{gen:w,compositeRule:$,allErrors:C}=S,x=d(b,g,y);l(w,x),$||C||u(S,n.default.vErrors)}e.reportExtraError=a;function i(b,g){b.assign(n.default.errors,g),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(g,()=>b.assign((0,t._)`${n.default.vErrors}.length`,g),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:b,keyword:g,schemaValue:y,data:S,errsCount:w,it:$}){if(w===void 0)throw new Error("ajv implementation error");const C=b.name("err");b.forRange("i",w,n.default.errors,x=>{b.const(C,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${C}.instancePath === undefined`,()=>b.assign((0,t._)`${C}.instancePath`,(0,t.strConcat)(n.default.instancePath,$.errorPath))),b.assign((0,t._)`${C}.schemaPath`,(0,t.str)`${$.errSchemaPath}/${g}`),$.opts.verbose&&(b.assign((0,t._)`${C}.schema`,y),b.assign((0,t._)`${C}.data`,S))})}e.extendErrors=s;function l(b,g){const y=b.const("err",g);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),b.code((0,t._)`${n.default.errors}++`)}function u(b,g){const{gen:y,validateName:S,schemaEnv:w}=b;w.$async?y.throw((0,t._)`new ${b.ValidationError}(${g})`):(y.assign((0,t._)`${S}.errors`,g),y.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(b,g,y){const{createErrors:S}=b.it;return S===!1?(0,t._)`{}`:f(b,g,y)}function f(b,g,y={}){const{gen:S,it:w}=b,$=[p(w,y),h(b,y)];return v(b,g,$),S.object(...$)}function p({errorPath:b},{instancePath:g}){const y=g?(0,t.str)`${b}${(0,r.getErrorPath)(g,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function h({keyword:b,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:S}){let w=S?g:(0,t.str)`${g}/${b}`;return y&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(y,r.Type.Str)}`),[c.schemaPath,w]}function v(b,{params:g,message:y},S){const{keyword:w,data:$,schemaValue:C,it:x}=b,{opts:E,propertyName:_,topSchemaRef:k,schemaPath:I}=x;S.push([c.keyword,w],[c.params,typeof g=="function"?g(b):g||(0,t._)`{}`]),E.messages&&S.push([c.message,typeof y=="function"?y(b):y]),E.verbose&&S.push([c.schema,C],[c.parentSchema,(0,t._)`${k}${I}`],[n.default.data,$]),_&&S.push([c.propertyName,_])}})(H_);Object.defineProperty(O1,"__esModule",{value:!0});O1.boolOrEmptySchema=O1.topBoolOrEmptySchema=void 0;const W2r=H_,q2r=Sr,U2r=Ul,K2r={message:"boolean schema is false"};function G2r(e){const{gen:t,schema:r,validateName:n}=e;r===!1?QPe(e,!1):typeof r=="object"&&r.$async===!0?t.return(U2r.default.data):(t.assign((0,q2r._)`${n}.errors`,null),t.return(!0))}O1.topBoolOrEmptySchema=G2r;function Y2r(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),QPe(e)):r.var(t,!0)}O1.boolOrEmptySchema=Y2r;function QPe(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,W2r.reportError)(o,K2r,void 0,t)}var W_={},n0={};Object.defineProperty(n0,"__esModule",{value:!0});n0.getRules=n0.isJSONType=void 0;const X2r=["string","number","integer","boolean","null","object","array"],Q2r=new Set(X2r);function Z2r(e){return typeof e=="string"&&Q2r.has(e)}n0.isJSONType=Z2r;function J2r(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}n0.getRules=J2r;var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});Kf.shouldUseRule=Kf.shouldUseGroup=Kf.schemaHasRulesForType=void 0;function ekr({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&ZPe(e,n)}Kf.schemaHasRulesForType=ekr;function ZPe(e,t){return t.rules.some(r=>JPe(e,r))}Kf.shouldUseGroup=ZPe;function JPe(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Kf.shouldUseRule=JPe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=n0,r=Kf,n=H_,o=Sr,a=Ur;var i;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(S){const w=l(S.type);if(w.includes("null")){if(S.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&S.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');S.nullable===!0&&w.push("null")}return w}e.getSchemaTypes=s;function l(S){const w=Array.isArray(S)?S:S?[S]:[];if(w.every(t.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}e.getJSONTypes=l;function u(S,w){const{gen:$,data:C,opts:x}=S,E=d(w,x.coerceTypes),_=w.length>0&&!(E.length===0&&w.length===1&&(0,r.schemaHasRulesForType)(S,w[0]));if(_){const k=v(w,C,x.strictNumbers,i.Wrong);$.if(k,()=>{E.length?f(S,w,E):g(S)})}return _}e.coerceAndCheckDataType=u;const c=new Set(["string","number","integer","boolean","null"]);function d(S,w){return w?S.filter($=>c.has($)||w==="array"&&$==="array"):[]}function f(S,w,$){const{gen:C,data:x,opts:E}=S,_=C.let("dataType",(0,o._)`typeof ${x}`),k=C.let("coerced",(0,o._)`undefined`);E.coerceTypes==="array"&&C.if((0,o._)`${_} == 'object' && Array.isArray(${x}) && ${x}.length == 1`,()=>C.assign(x,(0,o._)`${x}[0]`).assign(_,(0,o._)`typeof ${x}`).if(v(w,x,E.strictNumbers),()=>C.assign(k,x))),C.if((0,o._)`${k} !== undefined`);for(const N of $)(c.has(N)||N==="array"&&E.coerceTypes==="array")&&I(N);C.else(),g(S),C.endIf(),C.if((0,o._)`${k} !== undefined`,()=>{C.assign(x,k),p(S,k)});function I(N){switch(N){case"string":C.elseIf((0,o._)`${_} == "number" || ${_} == "boolean"`).assign(k,(0,o._)`"" + ${x}`).elseIf((0,o._)`${x} === null`).assign(k,(0,o._)`""`);return;case"number":C.elseIf((0,o._)`${_} == "boolean" || ${x} === null + || (${_} == "string" && ${x} && ${x} == +${x})`).assign(k,(0,o._)`+${x}`);return;case"integer":C.elseIf((0,o._)`${_} === "boolean" || ${x} === null + || (${_} === "string" && ${x} && ${x} == +${x} && !(${x} % 1))`).assign(k,(0,o._)`+${x}`);return;case"boolean":C.elseIf((0,o._)`${x} === "false" || ${x} === 0 || ${x} === null`).assign(k,!1).elseIf((0,o._)`${x} === "true" || ${x} === 1`).assign(k,!0);return;case"null":C.elseIf((0,o._)`${x} === "" || ${x} === 0 || ${x} === false`),C.assign(k,null);return;case"array":C.elseIf((0,o._)`${_} === "string" || ${_} === "number" + || ${_} === "boolean" || ${x} === null`).assign(k,(0,o._)`[${x}]`)}}}function p({gen:S,parentData:w,parentDataProperty:$},C){S.if((0,o._)`${w} !== undefined`,()=>S.assign((0,o._)`${w}[${$}]`,C))}function h(S,w,$,C=i.Correct){const x=C===i.Correct?o.operators.EQ:o.operators.NEQ;let E;switch(S){case"null":return(0,o._)`${w} ${x} null`;case"array":E=(0,o._)`Array.isArray(${w})`;break;case"object":E=(0,o._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":E=_((0,o._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":E=_();break;default:return(0,o._)`typeof ${w} ${x} ${S}`}return C===i.Correct?E:(0,o.not)(E);function _(k=o.nil){return(0,o.and)((0,o._)`typeof ${w} == "number"`,k,$?(0,o._)`isFinite(${w})`:o.nil)}}e.checkDataType=h;function v(S,w,$,C){if(S.length===1)return h(S[0],w,$,C);let x;const E=(0,a.toHash)(S);if(E.array&&E.object){const _=(0,o._)`typeof ${w} != "object"`;x=E.null?_:(0,o._)`!${w} || ${_}`,delete E.null,delete E.array,delete E.object}else x=o.nil;E.number&&delete E.integer;for(const _ in E)x=(0,o.and)(x,h(_,w,$,C));return x}e.checkDataTypes=v;const b={message:({schema:S})=>`must be ${S}`,params:({schema:S,schemaValue:w})=>typeof S=="string"?(0,o._)`{type: ${S}}`:(0,o._)`{type: ${w}}`};function g(S){const w=y(S);(0,n.reportError)(w,b)}e.reportTypeError=g;function y(S){const{gen:w,data:$,schema:C}=S,x=(0,a.schemaRefOrVal)(S,C,"type");return{gen:w,keyword:"type",data:$,schema:C.type,schemaCode:x,schemaValue:x,parentSchema:C,params:{},it:S}}})(W_);var RA={};Object.defineProperty(RA,"__esModule",{value:!0});RA.assignDefaults=void 0;const pb=Sr,tkr=Ur;function rkr(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const o in r)wue(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,a)=>wue(e,a,o.default))}RA.assignDefaults=rkr;function wue(e,t,r){const{gen:n,compositeRule:o,data:a,opts:i}=e;if(r===void 0)return;const s=(0,pb._)`${a}${(0,pb.getProperty)(t)}`;if(o){(0,tkr.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,pb._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,pb._)`${l} || ${s} === null || ${s} === ""`),n.if(l,(0,pb._)`${s} = ${(0,pb.stringify)(r)}`)}var $d={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.validateUnion=Lr.validateArray=Lr.usePattern=Lr.callValidateCode=Lr.schemaProperties=Lr.allSchemaProperties=Lr.noPropertyInData=Lr.propertyInData=Lr.isOwnProperty=Lr.hasPropFunc=Lr.reportMissingProp=Lr.checkMissingProp=Lr.checkReportMissingProp=void 0;const so=Sr,vG=Ur,hm=Ul,nkr=Ur;function okr(e,t){const{gen:r,data:n,it:o}=e;r.if(bG(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,so._)`${t}`},!0),e.error()})}Lr.checkReportMissingProp=okr;function akr({gen:e,data:t,it:{opts:r}},n,o){return(0,so.or)(...n.map(a=>(0,so.and)(bG(e,t,a,r.ownProperties),(0,so._)`${o} = ${a}`)))}Lr.checkMissingProp=akr;function ikr(e,t){e.setParams({missingProperty:t},!0),e.error()}Lr.reportMissingProp=ikr;function eTe(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,so._)`Object.prototype.hasOwnProperty`})}Lr.hasPropFunc=eTe;function gG(e,t,r){return(0,so._)`${eTe(e)}.call(${t}, ${r})`}Lr.isOwnProperty=gG;function skr(e,t,r,n){const o=(0,so._)`${t}${(0,so.getProperty)(r)} !== undefined`;return n?(0,so._)`${o} && ${gG(e,t,r)}`:o}Lr.propertyInData=skr;function bG(e,t,r,n){const o=(0,so._)`${t}${(0,so.getProperty)(r)} === undefined`;return n?(0,so.or)(o,(0,so.not)(gG(e,t,r))):o}Lr.noPropertyInData=bG;function tTe(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Lr.allSchemaProperties=tTe;function lkr(e,t){return tTe(t).filter(r=>!(0,vG.alwaysValidSchema)(e,t[r]))}Lr.schemaProperties=lkr;function ukr({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:a},it:i},s,l,u){const c=u?(0,so._)`${e}, ${t}, ${n}${o}`:t,d=[[hm.default.instancePath,(0,so.strConcat)(hm.default.instancePath,a)],[hm.default.parentData,i.parentData],[hm.default.parentDataProperty,i.parentDataProperty],[hm.default.rootData,hm.default.rootData]];i.opts.dynamicRef&&d.push([hm.default.dynamicAnchors,hm.default.dynamicAnchors]);const f=(0,so._)`${c}, ${r.object(...d)}`;return l!==so.nil?(0,so._)`${s}.call(${l}, ${f})`:(0,so._)`${s}(${f})`}Lr.callValidateCode=ukr;const ckr=(0,so._)`new RegExp`;function dkr({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,so._)`${o.code==="new RegExp"?ckr:(0,nkr.useFunc)(e,o)}(${r}, ${n})`})}Lr.usePattern=dkr;function fkr(e){const{gen:t,data:r,keyword:n,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,so._)`${r}.length`);t.forRange("i",0,l,u=>{e.subschema({keyword:n,dataProp:u,dataPropType:vG.Type.Num},a),t.if((0,so.not)(a),s)})}}Lr.validateArray=fkr;function pkr(e){const{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,vG.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((l,u)=>{const c=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},s);t.assign(i,(0,so._)`${i} || ${s}`),e.mergeValidEvaluated(c,s)||t.if((0,so.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Lr.validateUnion=pkr;Object.defineProperty($d,"__esModule",{value:!0});$d.validateKeywordUsage=$d.validSchemaType=$d.funcKeywordCode=$d.macroKeywordCode=void 0;const ls=Sr,Vv=Ul,mkr=Lr,hkr=H_;function vkr(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=rTe(r,n,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const u=r.name("valid");e.subschema({schema:s,schemaPath:ls.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}$d.macroKeywordCode=vkr;function gkr(e,t){var r;const{gen:n,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;ykr(l,t);const u=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,c=rTe(n,o,u),d=n.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)v(),t.modifying&&Cue(e),b(()=>e.error());else{const g=t.async?p():h();t.modifying&&Cue(e),b(()=>bkr(e,g))}}function p(){const g=n.let("ruleErrs",null);return n.try(()=>v((0,ls._)`await `),y=>n.assign(d,!1).if((0,ls._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(g,(0,ls._)`${y}.errors`),()=>n.throw(y))),g}function h(){const g=(0,ls._)`${c}.errors`;return n.assign(g,null),v(ls.nil),g}function v(g=t.async?(0,ls._)`await `:ls.nil){const y=l.opts.passContext?Vv.default.this:Vv.default.self,S=!("compile"in t&&!s||t.schema===!1);n.assign(d,(0,ls._)`${g}${(0,mkr.callValidateCode)(e,c,y,S)}`,t.modifying)}function b(g){var y;n.if((0,ls.not)((y=t.valid)!==null&&y!==void 0?y:d),g)}}$d.funcKeywordCode=gkr;function Cue(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ls._)`${n.parentData}[${n.parentDataProperty}]`))}function bkr(e,t){const{gen:r}=e;r.if((0,ls._)`Array.isArray(${t})`,()=>{r.assign(Vv.default.vErrors,(0,ls._)`${Vv.default.vErrors} === null ? ${t} : ${Vv.default.vErrors}.concat(${t})`).assign(Vv.default.errors,(0,ls._)`${Vv.default.vErrors}.length`),(0,hkr.extendErrors)(e)},()=>e.error())}function ykr({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function rTe(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,ls.stringify)(r)})}function Skr(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}$d.validSchemaType=Skr;function wkr({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}$d.validateKeywordUsage=wkr;var mh={};Object.defineProperty(mh,"__esModule",{value:!0});mh.extendSubschemaMode=mh.extendSubschemaData=mh.getSubschema=void 0;const ud=Sr,nTe=Ur;function Ckr(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,ud._)`${e.schemaPath}${(0,ud.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,ud._)`${e.schemaPath}${(0,ud.getProperty)(t)}${(0,ud.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,nTe.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}mh.getSubschema=Ckr;function xkr(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:u,dataPathArr:c,opts:d}=t,f=s.let("data",(0,ud._)`${t.data}${(0,ud.getProperty)(r)}`,!0);l(f),e.errorPath=(0,ud.str)`${u}${(0,nTe.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,ud._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(o!==void 0){const u=o instanceof ud.Name?o:s.let("data",o,!0);l(u),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}mh.extendSubschemaData=xkr;function $kr(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}mh.extendSubschemaMode=$kr;var ai={},oTe={exports:{}},Xm=oTe.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};_T(t,n,o,e,"",e)};Xm.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Xm.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Xm.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Xm.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function _T(e,t,r,n,o,a,i,s,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,a,i,s,l,u);for(var c in n){var d=n[c];if(Array.isArray(d)){if(c in Xm.arrayKeywords)for(var f=0;ft+=aTe(n)),t===1/0))return 1/0}return t}function iTe(e,t="",r){r!==!1&&(t=xy(t));const n=e.parse(t);return sTe(e,n)}ai.getFullPath=iTe;function sTe(e,t){return e.serialize(t).split("#")[0]+"#"}ai._getFullPath=sTe;const Okr=/#\/?$/;function xy(e){return e?e.replace(Okr,""):""}ai.normalizeId=xy;function Nkr(e,t,r){return r=xy(r),e.resolve(t,r)}ai.resolveUrl=Nkr;const Dkr=/^[a-z_][-a-z0-9._]*$/i;function Akr(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,o=xy(e[r]||t),a={"":o},i=iTe(n,o,!1),s={},l=new Set;return Tkr(e,{allKeys:!0},(d,f,p,h)=>{if(h===void 0)return;const v=i+f;let b=a[h];typeof d[r]=="string"&&(b=g.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),a[f]=b;function g(S){const w=this.opts.uriResolver.resolve;if(S=xy(b?w(b,S):S),l.has(S))throw c(S);l.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?u(d,$.schema,S):S!==xy(v)&&(S[0]==="#"?(u(d,s[S],S),s[S]=d):this.refs[S]=v),S}function y(S){if(typeof S=="string"){if(!Dkr.test(S))throw new Error(`invalid anchor "${S}"`);g.call(this,`#${S}`)}}}),s;function u(d,f,p){if(f!==void 0&&!Pkr(d,f))throw c(p)}function c(d){return new Error(`reference "${d}" resolves to more than one schema`)}}ai.getSchemaRefs=Akr;Object.defineProperty(wu,"__esModule",{value:!0});wu.getData=wu.KeywordCxt=wu.validateFunctionCode=void 0;const lTe=O1,xue=W_,yG=Kf,gF=W_,Mkr=RA,fx=$d,D3=mh,Kt=Sr,hr=Ul,Bkr=ai,Gf=Ur,Nw=H_;function jkr(e){if(dTe(e)&&(fTe(e),cTe(e))){Vkr(e);return}uTe(e,()=>(0,lTe.topBoolOrEmptySchema)(e))}wu.validateFunctionCode=jkr;function uTe({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,(0,Kt._)`${hr.default.data}, ${hr.default.valCxt}`,n.$async,()=>{e.code((0,Kt._)`"use strict"; ${$ue(r,o)}`),zkr(e,o),e.code(a)}):e.func(t,(0,Kt._)`${hr.default.data}, ${Lkr(o)}`,n.$async,()=>e.code($ue(r,o)).code(a))}function Lkr(e){return(0,Kt._)`{${hr.default.instancePath}="", ${hr.default.parentData}, ${hr.default.parentDataProperty}, ${hr.default.rootData}=${hr.default.data}${e.dynamicRef?(0,Kt._)`, ${hr.default.dynamicAnchors}={}`:Kt.nil}}={}`}function zkr(e,t){e.if(hr.default.valCxt,()=>{e.var(hr.default.instancePath,(0,Kt._)`${hr.default.valCxt}.${hr.default.instancePath}`),e.var(hr.default.parentData,(0,Kt._)`${hr.default.valCxt}.${hr.default.parentData}`),e.var(hr.default.parentDataProperty,(0,Kt._)`${hr.default.valCxt}.${hr.default.parentDataProperty}`),e.var(hr.default.rootData,(0,Kt._)`${hr.default.valCxt}.${hr.default.rootData}`),t.dynamicRef&&e.var(hr.default.dynamicAnchors,(0,Kt._)`${hr.default.valCxt}.${hr.default.dynamicAnchors}`)},()=>{e.var(hr.default.instancePath,(0,Kt._)`""`),e.var(hr.default.parentData,(0,Kt._)`undefined`),e.var(hr.default.parentDataProperty,(0,Kt._)`undefined`),e.var(hr.default.rootData,hr.default.data),t.dynamicRef&&e.var(hr.default.dynamicAnchors,(0,Kt._)`{}`)})}function Vkr(e){const{schema:t,opts:r,gen:n}=e;uTe(e,()=>{r.$comment&&t.$comment&&mTe(e),Kkr(e),n.let(hr.default.vErrors,null),n.let(hr.default.errors,0),r.unevaluated&&Hkr(e),pTe(e),Xkr(e)})}function Hkr(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Kt._)`${r}.evaluated`),t.if((0,Kt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Kt._)`${e.evaluated}.props`,(0,Kt._)`undefined`)),t.if((0,Kt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Kt._)`${e.evaluated}.items`,(0,Kt._)`undefined`))}function $ue(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Kt._)`/*# sourceURL=${r} */`:Kt.nil}function Wkr(e,t){if(dTe(e)&&(fTe(e),cTe(e))){qkr(e,t);return}(0,lTe.boolOrEmptySchema)(e,t)}function cTe({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function dTe(e){return typeof e.schema!="boolean"}function qkr(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&mTe(e),Gkr(e),Ykr(e);const a=n.const("_errs",hr.default.errors);pTe(e,a),n.var(t,(0,Kt._)`${a} === ${hr.default.errors}`)}function fTe(e){(0,Gf.checkUnknownRules)(e),Ukr(e)}function pTe(e,t){if(e.opts.jtd)return Eue(e,[],!1,t);const r=(0,xue.getSchemaTypes)(e.schema),n=(0,xue.coerceAndCheckDataType)(e,r);Eue(e,r,!n,t)}function Ukr(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Gf.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Kkr(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Gf.checkStrictMode)(e,"default is ignored in the schema root")}function Gkr(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Bkr.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Ykr(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function mTe({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(o.$comment===!0)e.code((0,Kt._)`${hr.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,Kt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Kt._)`${hr.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function Xkr(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if((0,Kt._)`${hr.default.errors} === 0`,()=>t.return(hr.default.data),()=>t.throw((0,Kt._)`new ${o}(${hr.default.vErrors})`)):(t.assign((0,Kt._)`${n}.errors`,hr.default.vErrors),a.unevaluated&&Qkr(e),t.return((0,Kt._)`${hr.default.errors} === 0`))}function Qkr({gen:e,evaluated:t,props:r,items:n}){r instanceof Kt.Name&&e.assign((0,Kt._)`${t}.props`,r),n instanceof Kt.Name&&e.assign((0,Kt._)`${t}.items`,n)}function Eue(e,t,r,n){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:u}=e,{RULES:c}=u;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Gf.schemaHasRulesButRef)(a,c))){o.block(()=>gTe(e,"$ref",c.all.$ref.definition));return}l.jtd||Zkr(e,t),o.block(()=>{for(const f of c.rules)d(f);d(c.post)});function d(f){(0,yG.shouldUseGroup)(a,f)&&(f.type?(o.if((0,gF.checkDataType)(f.type,i,l.strictNumbers)),_ue(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,gF.reportTypeError)(e)),o.endIf()):_ue(e,f),s||o.if((0,Kt._)`${hr.default.errors} === ${n||0}`))}}function _ue(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,Mkr.assignDefaults)(e,t.type),r.block(()=>{for(const a of t.rules)(0,yG.shouldUseRule)(n,a)&&gTe(e,a.keyword,a.definition,t.type)})}function Zkr(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Jkr(e,t),e.opts.allowUnionTypes||ePr(e,t),tPr(e,e.dataTypes))}function Jkr(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{hTe(e.dataTypes,r)||SG(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),nPr(e,t)}}function ePr(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&SG(e,"use allowUnionTypes to allow union type keyword")}function tPr(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if(typeof o=="object"&&(0,yG.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>rPr(t,i))&&SG(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function rPr(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function hTe(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function nPr(e,t){const r=[];for(const n of e.dataTypes)hTe(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function SG(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Gf.checkStrictMode)(e,t,e.opts.strictTypes)}class vTe{constructor(t,r,n){if((0,fx.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Gf.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",bTe(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,fx.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",hr.default.errors))}result(t,r,n){this.failResult((0,Kt.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Kt.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,Kt._)`${r} !== undefined && (${(0,Kt.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Nw.reportExtraError:Nw.reportError)(this,this.def.error,r)}$dataError(){(0,Nw.reportError)(this,this.def.$dataError||Nw.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Nw.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Kt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Kt.nil,r=Kt.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:a,def:i}=this;n.if((0,Kt.or)((0,Kt._)`${o} === undefined`,r)),t!==Kt.nil&&n.assign(t,!0),(a.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Kt.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:o,it:a}=this;return(0,Kt.or)(i(),s());function i(){if(n.length){if(!(r instanceof Kt.Name))throw new Error("ajv implementation error");const l=Array.isArray(n)?n:[n];return(0,Kt._)`${(0,gF.checkDataTypes)(l,r,a.opts.strictNumbers,gF.DataType.Wrong)}`}return Kt.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Kt._)`!${l}(${r})`}return Kt.nil}}subschema(t,r){const n=(0,D3.getSubschema)(this.it,t);(0,D3.extendSubschemaData)(n,this.it,t),(0,D3.extendSubschemaMode)(n,t);const o={...this.it,...n,items:void 0,props:void 0};return Wkr(o,r),o}mergeEvaluated(t,r){const{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Gf.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Gf.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,Kt.Name)),!0}}wu.KeywordCxt=vTe;function gTe(e,t,r,n){const o=new vTe(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,fx.funcKeywordCode)(o,r):"macro"in r?(0,fx.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,fx.funcKeywordCode)(o,r)}const oPr=/^\/(?:[^~]|~0|~1)*$/,aPr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function bTe(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(e==="")return hr.default.rootData;if(e[0]==="/"){if(!oPr.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=hr.default.rootData}else{const u=aPr.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);const c=+u[1];if(o=u[2],o==="#"){if(c>=t)throw new Error(l("property/index",c));return n[t-c]}if(c>t)throw new Error(l("data",c));if(a=r[t-c],!o)return a}let i=a;const s=o.split("/");for(const u of s)u&&(a=(0,Kt._)`${a}${(0,Kt.getProperty)((0,Gf.unescapeJsonPointer)(u))}`,i=(0,Kt._)`${i} && ${a}`);return i;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${t}`}}wu.getData=bTe;var RS={};Object.defineProperty(RS,"__esModule",{value:!0});class iPr extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}RS.default=iPr;var FS={};Object.defineProperty(FS,"__esModule",{value:!0});const A3=ai;class sPr extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,A3.resolveUrl)(t,r,n),this.missingSchema=(0,A3.normalizeId)((0,A3.getFullPath)(t,this.missingRef))}}FS.default=sPr;var ps={};Object.defineProperty(ps,"__esModule",{value:!0});ps.resolveSchema=ps.getCompilingSchema=ps.resolveRef=ps.compileSchema=ps.SchemaEnv=void 0;const Xu=Sr,lPr=RS,yv=Ul,yc=ai,kue=Ur,uPr=wu;class FA{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,yc.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}ps.SchemaEnv=FA;function wG(e){const t=yTe.call(this,e);if(t)return t;const r=(0,yc.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Xu.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:lPr.default,code:(0,Xu._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:yv.default.data,parentData:yv.default.parentData,parentDataProperty:yv.default.parentDataProperty,dataNames:[yv.default.data],dataPathArr:[Xu.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Xu.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Xu.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Xu._)`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,uPr.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const d=i.toString();c=`${i.scopeRefs(yv.default.scope)}return ${d}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const p=new Function(`${yv.default.self}`,`${yv.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:l,validateCode:d,scopeValues:i._values}),this.opts.unevaluated){const{props:h,items:v}=u;p.evaluated={props:h instanceof Xu.Name?void 0:h,items:v instanceof Xu.Name?void 0:v,dynamicProps:h instanceof Xu.Name,dynamicItems:v instanceof Xu.Name},p.source&&(p.source.evaluated=(0,Xu.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),d}finally{this._compilations.delete(e)}}ps.compileSchema=wG;function cPr(e,t,r){var n;r=(0,yc.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=pPr.call(this,e,r);if(a===void 0){const i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;i&&(a=new FA({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[r]=dPr.call(this,a)}ps.resolveRef=cPr;function dPr(e){return(0,yc.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:wG.call(this,e)}function yTe(e){for(const t of this._compilations)if(fPr(t,e))return t}ps.getCompilingSchema=yTe;function fPr(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function pPr(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||OA.call(this,e,t)}function OA(e,t){const r=this.opts.uriResolver.parse(t),n=(0,yc._getFullPath)(this.opts.uriResolver,r);let o=(0,yc.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return M3.call(this,r,e);const a=(0,yc.normalizeId)(n),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=OA.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:M3.call(this,r,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||wG.call(this,i),a===(0,yc.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,u=s[l];return u&&(o=(0,yc.resolveUrl)(this.opts.uriResolver,o,u)),new FA({schema:s,schemaId:l,root:e,baseId:o})}return M3.call(this,r,i)}}ps.resolveSchema=OA;const mPr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function M3(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const l=r[(0,kue.unescapeFragment)(s)];if(l===void 0)return;r=l;const u=typeof r=="object"&&r[this.opts.schemaId];!mPr.has(s)&&u&&(t=(0,yc.resolveUrl)(this.opts.uriResolver,t,u))}let a;if(typeof r!="boolean"&&r.$ref&&!(0,kue.schemaHasRulesButRef)(r,this.RULES)){const s=(0,yc.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=OA.call(this,n,s)}const{schemaId:i}=this.opts;if(a=a||new FA({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema)return a}const hPr="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",vPr="Meta-schema for $data reference (JSON AnySchema extension proposal)",gPr="object",bPr=["$data"],yPr={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},SPr=!1,wPr={$id:hPr,description:vPr,type:gPr,required:bPr,properties:yPr,additionalProperties:SPr};var CG={};Object.defineProperty(CG,"__esModule",{value:!0});const STe=SA;STe.code='require("ajv/dist/runtime/uri").default';CG.default=STe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=wu;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Sr;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=RS,o=FS,a=n0,i=ps,s=Sr,l=ai,u=W_,c=Ur,d=wPr,f=CG,p=(B,F)=>new RegExp(B,F);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function S(B){var F,V,D,P,R,W,U,q,J,Z,Q,oe,ie,te,ae,fe,ve,Se,se,pe,ge,de,ee,me,Re;const je=B.strict,ze=(F=B.code)===null||F===void 0?void 0:F.optimize,Le=ze===!0||ze===void 0?1:ze||0,$e=(D=(V=B.code)===null||V===void 0?void 0:V.regExp)!==null&&D!==void 0?D:p,Je=(P=B.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(W=(R=B.strictSchema)!==null&&R!==void 0?R:je)!==null&&W!==void 0?W:!0,strictNumbers:(q=(U=B.strictNumbers)!==null&&U!==void 0?U:je)!==null&&q!==void 0?q:!0,strictTypes:(Z=(J=B.strictTypes)!==null&&J!==void 0?J:je)!==null&&Z!==void 0?Z:"log",strictTuples:(oe=(Q=B.strictTuples)!==null&&Q!==void 0?Q:je)!==null&&oe!==void 0?oe:"log",strictRequired:(te=(ie=B.strictRequired)!==null&&ie!==void 0?ie:je)!==null&&te!==void 0?te:!1,code:B.code?{...B.code,optimize:Le,regExp:$e}:{optimize:Le,regExp:$e},loopRequired:(ae=B.loopRequired)!==null&&ae!==void 0?ae:y,loopEnum:(fe=B.loopEnum)!==null&&fe!==void 0?fe:y,meta:(ve=B.meta)!==null&&ve!==void 0?ve:!0,messages:(Se=B.messages)!==null&&Se!==void 0?Se:!0,inlineRefs:(se=B.inlineRefs)!==null&&se!==void 0?se:!0,schemaId:(pe=B.schemaId)!==null&&pe!==void 0?pe:"$id",addUsedSchema:(ge=B.addUsedSchema)!==null&&ge!==void 0?ge:!0,validateSchema:(de=B.validateSchema)!==null&&de!==void 0?de:!0,validateFormats:(ee=B.validateFormats)!==null&&ee!==void 0?ee:!0,unicodeRegExp:(me=B.unicodeRegExp)!==null&&me!==void 0?me:!0,int32range:(Re=B.int32range)!==null&&Re!==void 0?Re:!0,uriResolver:Je}}class w{constructor(F={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts={...F,...S(F)};const{es5:V,lines:D}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:V,lines:D}),this.logger=N(F.logger);const P=F.validateFormats;F.validateFormats=!1,this.RULES=(0,a.getRules)(),$.call(this,b,F,"NOT SUPPORTED"),$.call(this,g,F,"DEPRECATED","warn"),this._metaOpts=k.call(this),F.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&_.call(this,F.keywords),typeof F.meta=="object"&&this.addMetaSchema(F.meta),x.call(this),F.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:F,meta:V,schemaId:D}=this.opts;let P=d;D==="id"&&(P={...d},P.id=P.$id,delete P.$id),V&&F&&this.addMetaSchema(P,P[D],!1)}defaultMeta(){const{meta:F,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof F=="object"?F[V]||F:void 0}validate(F,V){let D;if(typeof F=="string"){if(D=this.getSchema(F),!D)throw new Error(`no schema with key or ref "${F}"`)}else D=this.compile(F);const P=D(V);return"$async"in D||(this.errors=D.errors),P}compile(F,V){const D=this._addSchema(F,V);return D.validate||this._compileSchemaEnv(D)}compileAsync(F,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return P.call(this,F,V);async function P(Z,Q){await R.call(this,Z.$schema);const oe=this._addSchema(Z,Q);return oe.validate||W.call(this,oe)}async function R(Z){Z&&!this.getSchema(Z)&&await P.call(this,{$ref:Z},!0)}async function W(Z){try{return this._compileSchemaEnv(Z)}catch(Q){if(!(Q instanceof o.default))throw Q;return U.call(this,Q),await q.call(this,Q.missingSchema),W.call(this,Z)}}function U({missingSchema:Z,missingRef:Q}){if(this.refs[Z])throw new Error(`AnySchema ${Z} is loaded but ${Q} cannot be resolved`)}async function q(Z){const Q=await J.call(this,Z);this.refs[Z]||await R.call(this,Q.$schema),this.refs[Z]||this.addSchema(Q,Z,V)}async function J(Z){const Q=this._loading[Z];if(Q)return Q;try{return await(this._loading[Z]=D(Z))}finally{delete this._loading[Z]}}}addSchema(F,V,D,P=this.opts.validateSchema){if(Array.isArray(F)){for(const W of F)this.addSchema(W,void 0,D,P);return this}let R;if(typeof F=="object"){const{schemaId:W}=this.opts;if(R=F[W],R!==void 0&&typeof R!="string")throw new Error(`schema ${W} must be string`)}return V=(0,l.normalizeId)(V||R),this._checkUnique(V),this.schemas[V]=this._addSchema(F,D,V,P,!0),this}addMetaSchema(F,V,D=this.opts.validateSchema){return this.addSchema(F,V,!0,D),this}validateSchema(F,V){if(typeof F=="boolean")return!0;let D;if(D=F.$schema,D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this.opts.defaultMeta||this.defaultMeta(),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(D,F);if(!P&&V){const R="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(R);else throw new Error(R)}return P}getSchema(F){let V;for(;typeof(V=C.call(this,F))=="string";)F=V;if(V===void 0){const{schemaId:D}=this.opts,P=new i.SchemaEnv({schema:{},schemaId:D});if(V=i.resolveSchema.call(this,P,F),!V)return;this.refs[F]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(typeof F){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=C.call(this,F);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[F],delete this.refs[F],this}case"object":{const V=F;this._cache.delete(V);let D=F[this.opts.schemaId];return D&&(D=(0,l.normalizeId)(D),delete this.schemas[D],delete this.refs[D]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(F){for(const V of F)this.addKeyword(V);return this}addKeyword(F,V){let D;if(typeof F=="string")D=F,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=D);else if(typeof F=="object"&&V===void 0){if(V=F,D=V.keyword,Array.isArray(D)&&!D.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,D,V),!V)return(0,c.eachItem)(D,R=>A.call(this,R)),this;L.call(this,V);const P={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,c.eachItem)(D,P.type.length===0?R=>A.call(this,R,P):R=>P.type.forEach(W=>A.call(this,R,P,W))),this}getKeyword(F){const V=this.RULES.all[F];return typeof V=="object"?V.definition:!!V}removeKeyword(F){const{RULES:V}=this;delete V.keywords[F],delete V.all[F];for(const D of V.rules){const P=D.rules.findIndex(R=>R.keyword===F);P>=0&&D.rules.splice(P,1)}return this}addFormat(F,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[F]=V,this}errorsText(F=this.errors,{separator:V=", ",dataVar:D="data"}={}){return!F||F.length===0?"No errors":F.map(P=>`${D}${P.instancePath} ${P.message}`).reduce((P,R)=>P+V+R)}$dataMetaSchema(F,V){const D=this.RULES.all;F=JSON.parse(JSON.stringify(F));for(const P of V){const R=P.split("/").slice(1);let W=F;for(const U of R)W=W[U];for(const U in D){const q=D[U];if(typeof q!="object")continue;const{$data:J}=q.definition,Z=W[U];J&&Z&&(W[U]=H(Z))}}return F}_removeAllSchemas(F,V){for(const D in F){const P=F[D];(!V||V.test(D))&&(typeof P=="string"?delete F[D]:P&&!P.meta&&(this._cache.delete(P.schema),delete F[D]))}}_addSchema(F,V,D,P=this.opts.validateSchema,R=this.opts.addUsedSchema){let W;const{schemaId:U}=this.opts;if(typeof F=="object")W=F[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof F!="boolean")throw new Error("schema must be object or boolean")}let q=this._cache.get(F);if(q!==void 0)return q;D=(0,l.normalizeId)(W||D);const J=l.getSchemaRefs.call(this,F,D);return q=new i.SchemaEnv({schema:F,schemaId:U,meta:V,baseId:D,localRefs:J}),this._cache.set(q.schema,q),R&&!D.startsWith("#")&&(D&&this._checkUnique(D),this.refs[D]=q),P&&this.validateSchema(F,!0),q}_checkUnique(F){if(this.schemas[F]||this.refs[F])throw new Error(`schema with key or id "${F}" already exists`)}_compileSchemaEnv(F){if(F.meta?this._compileMetaSchema(F):i.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}_compileMetaSchema(F){const V=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,F)}finally{this.opts=V}}}e.default=w,w.ValidationError=n.default,w.MissingRefError=o.default;function $(B,F,V,D="error"){for(const P in B){const R=P;R in F&&this.logger[D](`${V}: option ${P}. ${B[R]}`)}}function C(B){return B=(0,l.normalizeId)(B),this.schemas[B]||this.refs[B]}function x(){const B=this.opts.schemas;if(B)if(Array.isArray(B))this.addSchema(B);else for(const F in B)this.addSchema(B[F],F)}function E(){for(const B in this.opts.formats){const F=this.opts.formats[B];F&&this.addFormat(B,F)}}function _(B){if(Array.isArray(B)){this.addVocabulary(B);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const F in B){const V=B[F];V.keyword||(V.keyword=F),this.addKeyword(V)}}function k(){const B={...this.opts};for(const F of h)delete B[F];return B}const I={log(){},warn(){},error(){}};function N(B){if(B===!1)return I;if(B===void 0)return console;if(B.log&&B.warn&&B.error)return B;throw new Error("logger must implement log, warn and error methods")}const z=/^[a-z_$][a-z0-9_$:-]*$/i;function O(B,F){const{RULES:V}=this;if((0,c.eachItem)(B,D=>{if(V.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!z.test(D))throw new Error(`Keyword ${D} has invalid name`)}),!!F&&F.$data&&!("code"in F||"validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function A(B,F,V){var D;const P=F==null?void 0:F.post;if(V&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:R}=this;let W=P?R.post:R.rules.find(({type:q})=>q===V);if(W||(W={type:V,rules:[]},R.rules.push(W)),R.keywords[B]=!0,!F)return;const U={keyword:B,definition:{...F,type:(0,u.getJSONTypes)(F.type),schemaType:(0,u.getJSONTypes)(F.schemaType)}};F.before?M.call(this,W,U,F.before):W.rules.push(U),R.all[B]=U,(D=F.implements)===null||D===void 0||D.forEach(q=>this.addKeyword(q))}function M(B,F,V){const D=B.rules.findIndex(P=>P.keyword===V);D>=0?B.rules.splice(D,0,F):(B.rules.push(F),this.logger.warn(`rule ${V} is not defined`))}function L(B){let{metaSchema:F}=B;F!==void 0&&(B.$data&&this.opts.$data&&(F=H(F)),B.validateSchema=this.compile(F,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function H(B){return{anyOf:[B,j]}}})(hG);var xG={},NA={},$G={};Object.defineProperty($G,"__esModule",{value:!0});const CPr={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};$G.default=CPr;var Cp={};Object.defineProperty(Cp,"__esModule",{value:!0});Cp.callRef=Cp.getValidate=void 0;const xPr=FS,Pue=Lr,Is=Sr,mb=Ul,Tue=ps,yP=Ur,$Pr={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:u}=a;if((r==="#"||r==="#/")&&o===u.baseId)return d();const c=Tue.resolveRef.call(l,u,o,r);if(c===void 0)throw new xPr.default(n.opts.uriResolver,o,r);if(c instanceof Tue.SchemaEnv)return f(c);return p(c);function d(){if(a===u)return kT(e,i,a,a.$async);const h=t.scopeValue("root",{ref:u});return kT(e,(0,Is._)`${h}.validate`,u,u.$async)}function f(h){const v=wTe(e,h);kT(e,v,h,h.$async)}function p(h){const v=t.scopeValue("schema",s.code.source===!0?{ref:h,code:(0,Is.stringify)(h)}:{ref:h}),b=t.name("valid"),g=e.subschema({schema:h,dataTypes:[],schemaPath:Is.nil,topSchemaRef:v,errSchemaPath:r},b);e.mergeEvaluated(g),e.ok(b)}}};function wTe(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Is._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Cp.getValidate=wTe;function kT(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?mb.default.this:Is.nil;n?c():d();function c(){if(!s.$async)throw new Error("async schema referenced by sync schema");const h=o.let("valid");o.try(()=>{o.code((0,Is._)`await ${(0,Pue.callValidateCode)(e,t,u)}`),p(t),i||o.assign(h,!0)},v=>{o.if((0,Is._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),f(v),i||o.assign(h,!1)}),e.ok(h)}function d(){e.result((0,Pue.callValidateCode)(e,t,u),()=>p(t),()=>f(t))}function f(h){const v=(0,Is._)`${h}.errors`;o.assign(mb.default.vErrors,(0,Is._)`${mb.default.vErrors} === null ? ${v} : ${mb.default.vErrors}.concat(${v})`),o.assign(mb.default.errors,(0,Is._)`${mb.default.vErrors}.length`)}function p(h){var v;if(!a.opts.unevaluated)return;const b=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(a.props=yP.mergeEvaluated.props(o,b.props,a.props));else{const g=o.var("props",(0,Is._)`${h}.evaluated.props`);a.props=yP.mergeEvaluated.props(o,g,a.props,Is.Name)}if(a.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(a.items=yP.mergeEvaluated.items(o,b.items,a.items));else{const g=o.var("items",(0,Is._)`${h}.evaluated.items`);a.items=yP.mergeEvaluated.items(o,g,a.items,Is.Name)}}}Cp.callRef=kT;Cp.default=$Pr;Object.defineProperty(NA,"__esModule",{value:!0});const EPr=$G,_Pr=Cp,kPr=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",EPr.default,_Pr.default];NA.default=kPr;var DA={},EG={};Object.defineProperty(EG,"__esModule",{value:!0});const bF=Sr,vm=bF.operators,yF={maximum:{okStr:"<=",ok:vm.LTE,fail:vm.GT},minimum:{okStr:">=",ok:vm.GTE,fail:vm.LT},exclusiveMaximum:{okStr:"<",ok:vm.LT,fail:vm.GTE},exclusiveMinimum:{okStr:">",ok:vm.GT,fail:vm.LTE}},PPr={message:({keyword:e,schemaCode:t})=>(0,bF.str)`must be ${yF[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,bF._)`{comparison: ${yF[e].okStr}, limit: ${t}}`},TPr={keyword:Object.keys(yF),type:"number",schemaType:"number",$data:!0,error:PPr,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,bF._)`${r} ${yF[t].fail} ${n} || isNaN(${r})`)}};EG.default=TPr;var _G={};Object.defineProperty(_G,"__esModule",{value:!0});const px=Sr,IPr={message:({schemaCode:e})=>(0,px.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,px._)`{multipleOf: ${e}}`},RPr={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:IPr,code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,px._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,px._)`${i} !== parseInt(${i})`;e.fail$data((0,px._)`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};_G.default=RPr;var kG={},PG={};Object.defineProperty(PG,"__esModule",{value:!0});function CTe(e){const t=e.length;let r=0,n=0,o;for(;n=55296&&o<=56319&&n(0,Hv._)`{limit: ${e}}`},DPr={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:NPr,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a=t==="maxLength"?Hv.operators.GT:Hv.operators.LT,i=o.opts.unicode===!1?(0,Hv._)`${r}.length`:(0,Hv._)`${(0,FPr.useFunc)(e.gen,OPr.default)}(${r})`;e.fail$data((0,Hv._)`${i} ${a} ${n}`)}};kG.default=DPr;var TG={};Object.defineProperty(TG,"__esModule",{value:!0});const APr=Lr,SF=Sr,MPr={message:({schemaCode:e})=>(0,SF.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,SF._)`{pattern: ${e}}`},BPr={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:MPr,code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?(0,SF._)`(new RegExp(${o}, ${i}))`:(0,APr.usePattern)(e,n);e.fail$data((0,SF._)`!${s}.test(${t})`)}};TG.default=BPr;var IG={};Object.defineProperty(IG,"__esModule",{value:!0});const mx=Sr,jPr={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,mx.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,mx._)`{limit: ${e}}`},LPr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:jPr,code(e){const{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?mx.operators.GT:mx.operators.LT;e.fail$data((0,mx._)`Object.keys(${r}).length ${o} ${n}`)}};IG.default=LPr;var RG={};Object.defineProperty(RG,"__esModule",{value:!0});const Dw=Lr,hx=Sr,zPr=Ur,VPr={message:({params:{missingProperty:e}})=>(0,hx.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,hx._)`{missingProperty: ${e}}`},HPr={keyword:"required",type:"object",schemaType:"array",$data:!0,error:VPr,code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&r.length===0)return;const l=r.length>=s.loopRequired;if(i.allErrors?u():c(),s.strictRequired){const p=e.parentSchema.properties,{definedProperties:h}=e.it;for(const v of r)if((p==null?void 0:p[v])===void 0&&!h.has(v)){const b=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${b}" (strictRequired)`;(0,zPr.checkStrictMode)(i,g,i.opts.strictRequired)}}function u(){if(l||a)e.block$data(hx.nil,d);else for(const p of r)(0,Dw.checkReportMissingProp)(e,p)}function c(){const p=t.let("missing");if(l||a){const h=t.let("valid",!0);e.block$data(h,()=>f(p,h)),e.ok(h)}else t.if((0,Dw.checkMissingProp)(e,r,p)),(0,Dw.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",n,p=>{e.setParams({missingProperty:p}),t.if((0,Dw.noPropertyInData)(t,o,p,s.ownProperties),()=>e.error())})}function f(p,h){e.setParams({missingProperty:p}),t.forOf(p,n,()=>{t.assign(h,(0,Dw.propertyInData)(t,o,p,s.ownProperties)),t.if((0,hx.not)(h),()=>{e.error(),t.break()})},hx.nil)}}};RG.default=HPr;var FG={};Object.defineProperty(FG,"__esModule",{value:!0});const vx=Sr,WPr={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,vx.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,vx._)`{limit: ${e}}`},qPr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:WPr,code(e){const{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?vx.operators.GT:vx.operators.LT;e.fail$data((0,vx._)`${r}.length ${o} ${n}`)}};FG.default=qPr;var OG={},q_={};Object.defineProperty(q_,"__esModule",{value:!0});const xTe=Hp;xTe.code='require("ajv/dist/runtime/equal").default';q_.default=xTe;Object.defineProperty(OG,"__esModule",{value:!0});const B3=W_,Ja=Sr,UPr=Ur,KPr=q_,GPr={message:({params:{i:e,j:t}})=>(0,Ja.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ja._)`{i: ${e}, j: ${t}}`},YPr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:GPr,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),u=a.items?(0,B3.getSchemaTypes)(a.items):[];e.block$data(l,c,(0,Ja._)`${i} === false`),e.ok(l);function c(){const h=t.let("i",(0,Ja._)`${r}.length`),v=t.let("j");e.setParams({i:h,j:v}),t.assign(l,!0),t.if((0,Ja._)`${h} > 1`,()=>(d()?f:p)(h,v))}function d(){return u.length>0&&!u.some(h=>h==="object"||h==="array")}function f(h,v){const b=t.name("item"),g=(0,B3.checkDataTypes)(u,b,s.opts.strictNumbers,B3.DataType.Wrong),y=t.const("indices",(0,Ja._)`{}`);t.for((0,Ja._)`;${h}--;`,()=>{t.let(b,(0,Ja._)`${r}[${h}]`),t.if(g,(0,Ja._)`continue`),u.length>1&&t.if((0,Ja._)`typeof ${b} == "string"`,(0,Ja._)`${b} += "_"`),t.if((0,Ja._)`typeof ${y}[${b}] == "number"`,()=>{t.assign(v,(0,Ja._)`${y}[${b}]`),e.error(),t.assign(l,!1).break()}).code((0,Ja._)`${y}[${b}] = ${h}`)})}function p(h,v){const b=(0,UPr.useFunc)(t,KPr.default),g=t.name("outer");t.label(g).for((0,Ja._)`;${h}--;`,()=>t.for((0,Ja._)`${v} = ${h}; ${v}--;`,()=>t.if((0,Ja._)`${b}(${r}[${h}], ${r}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};OG.default=YPr;var NG={};Object.defineProperty(NG,"__esModule",{value:!0});const H8=Sr,XPr=Ur,QPr=q_,ZPr={message:"must be equal to constant",params:({schemaCode:e})=>(0,H8._)`{allowedValue: ${e}}`},JPr={keyword:"const",$data:!0,error:ZPr,code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&typeof a=="object"?e.fail$data((0,H8._)`!${(0,XPr.useFunc)(t,QPr.default)}(${r}, ${o})`):e.fail((0,H8._)`${a} !== ${r}`)}};NG.default=JPr;var DG={};Object.defineProperty(DG,"__esModule",{value:!0});const tC=Sr,eTr=Ur,tTr=q_,rTr={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,tC._)`{allowedValues: ${e}}`},nTr={keyword:"enum",schemaType:"array",$data:!0,error:rTr,code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>l??(l=(0,eTr.useFunc)(t,tTr.default));let c;if(s||n)c=t.let("valid"),e.block$data(c,d);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const p=t.const("vSchema",a);c=(0,tC.or)(...o.map((h,v)=>f(p,v)))}e.pass(c);function d(){t.assign(c,!1),t.forOf("v",a,p=>t.if((0,tC._)`${u()}(${r}, ${p})`,()=>t.assign(c,!0).break()))}function f(p,h){const v=o[h];return typeof v=="object"&&v!==null?(0,tC._)`${u()}(${r}, ${p}[${h}])`:(0,tC._)`${r} === ${v}`}}};DG.default=nTr;Object.defineProperty(DA,"__esModule",{value:!0});const oTr=EG,aTr=_G,iTr=kG,sTr=TG,lTr=IG,uTr=RG,cTr=FG,dTr=OG,fTr=NG,pTr=DG,mTr=[oTr.default,aTr.default,iTr.default,sTr.default,lTr.default,uTr.default,cTr.default,dTr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fTr.default,pTr.default];DA.default=mTr;var AA={},OS={};Object.defineProperty(OS,"__esModule",{value:!0});OS.validateAdditionalItems=void 0;const Wv=Sr,W8=Ur,hTr={message:({params:{len:e}})=>(0,Wv.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Wv._)`{limit: ${e}}`},vTr={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:hTr,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,W8.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}$Te(e,n)}};function $Te(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",(0,Wv._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Wv._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,W8.alwaysValidSchema)(i,n)){const u=r.var("valid",(0,Wv._)`${s} <= ${t.length}`);r.if((0,Wv.not)(u),()=>l(u)),e.ok(u)}function l(u){r.forRange("i",t.length,s,c=>{e.subschema({keyword:a,dataProp:c,dataPropType:W8.Type.Num},u),i.allErrors||r.if((0,Wv.not)(u),()=>r.break())})}}OS.validateAdditionalItems=$Te;OS.default=vTr;var AG={},NS={};Object.defineProperty(NS,"__esModule",{value:!0});NS.validateTuple=void 0;const Iue=Sr,PT=Ur,gTr=Lr,bTr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return ETe(e,"additionalItems",t);r.items=!0,!(0,PT.alwaysValidSchema)(r,t)&&e.ok((0,gTr.validateArray)(e))}};function ETe(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;c(o),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=PT.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",(0,Iue._)`${a}.length`);r.forEach((d,f)=>{(0,PT.alwaysValidSchema)(s,d)||(n.if((0,Iue._)`${u} > ${f}`,()=>e.subschema({keyword:i,schemaProp:f,dataProp:f},l)),e.ok(l))});function c(d){const{opts:f,errSchemaPath:p}=s,h=r.length,v=h===d.minItems&&(h===d.maxItems||d[t]===!1);if(f.strictTuples&&!v){const b=`"${i}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,PT.checkStrictMode)(s,b,f.strictTuples)}}}NS.validateTuple=ETe;NS.default=bTr;Object.defineProperty(AG,"__esModule",{value:!0});const yTr=NS,STr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,yTr.validateTuple)(e,"items")};AG.default=STr;var MG={};Object.defineProperty(MG,"__esModule",{value:!0});const Rue=Sr,wTr=Ur,CTr=Lr,xTr=OS,$Tr={message:({params:{len:e}})=>(0,Rue.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Rue._)`{limit: ${e}}`},ETr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:$Tr,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,wTr.alwaysValidSchema)(n,t)&&(o?(0,xTr.validateAdditionalItems)(e,o):e.ok((0,CTr.validateArray)(e)))}};MG.default=ETr;var BG={};Object.defineProperty(BG,"__esModule",{value:!0});const ru=Sr,SP=Ur,_Tr={message:({params:{min:e,max:t}})=>t===void 0?(0,ru.str)`must contain at least ${e} valid item(s)`:(0,ru.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ru._)`{minContains: ${e}}`:(0,ru._)`{minContains: ${e}, maxContains: ${t}}`},kTr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:_Tr,code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=n;a.opts.next?(i=l===void 0?1:l,s=u):i=1;const c=t.const("len",(0,ru._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,SP.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,SP.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,SP.alwaysValidSchema)(a,r)){let v=(0,ru._)`${c} >= ${i}`;s!==void 0&&(v=(0,ru._)`${v} && ${c} <= ${s}`),e.pass(v);return}a.items=!0;const d=t.name("valid");s===void 0&&i===1?p(d,()=>t.if(d,()=>t.break())):i===0?(t.let(d,!0),s!==void 0&&t.if((0,ru._)`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const v=t.name("_valid"),b=t.let("count",0);p(v,()=>t.if(v,()=>h(b)))}function p(v,b){t.forRange("i",0,c,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:SP.Type.Num,compositeRule:!0},v),b()})}function h(v){t.code((0,ru._)`${v}++`),s===void 0?t.if((0,ru._)`${v} >= ${i}`,()=>t.assign(d,!0).break()):(t.if((0,ru._)`${v} > ${s}`,()=>t.assign(d,!1).break()),i===1?t.assign(d,!0):t.if((0,ru._)`${v} >= ${i}`,()=>t.assign(d,!0)))}}};BG.default=kTr;var MA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Sr,r=Ur,n=Lr;e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const d=u===1?"property":"properties";return(0,t.str)`must have ${d} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:d}})=>(0,t._)`{property: ${l}, + missingProperty: ${d}, + depsCount: ${u}, + deps: ${c}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=a(l);i(l,u),s(l,c)}};function a({schema:l}){const u={},c={};for(const d in l){if(d==="__proto__")continue;const f=Array.isArray(l[d])?u:c;f[d]=l[d]}return[u,c]}function i(l,u=l.schema){const{gen:c,data:d,it:f}=l;if(Object.keys(u).length===0)return;const p=c.let("missing");for(const h in u){const v=u[h];if(v.length===0)continue;const b=(0,n.propertyInData)(c,d,h,f.opts.ownProperties);l.setParams({property:h,depsCount:v.length,deps:v.join(", ")}),f.allErrors?c.if(b,()=>{for(const g of v)(0,n.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${b} && (${(0,n.checkMissingProp)(l,v,p)})`),(0,n.reportMissingProp)(l,p),c.else())}}e.validatePropertyDeps=i;function s(l,u=l.schema){const{gen:c,data:d,keyword:f,it:p}=l,h=c.name("valid");for(const v in u)(0,r.alwaysValidSchema)(p,u[v])||(c.if((0,n.propertyInData)(c,d,v,p.opts.ownProperties),()=>{const b=l.subschema({keyword:f,schemaProp:v},h);l.mergeValidEvaluated(b,h)},()=>c.var(h,!0)),l.ok(h))}e.validateSchemaDeps=s,e.default=o})(MA);var jG={};Object.defineProperty(jG,"__esModule",{value:!0});const _Te=Sr,PTr=Ur,TTr={message:"property name must be valid",params:({params:e})=>(0,_Te._)`{propertyName: ${e.propertyName}}`},ITr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:TTr,code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,PTr.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,_Te.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};jG.default=ITr;var BA={};Object.defineProperty(BA,"__esModule",{value:!0});const wP=Lr,ec=Sr,RTr=Ul,CP=Ur,FTr={message:"must NOT have additional properties",params:({params:e})=>(0,ec._)`{additionalProperty: ${e.additionalProperty}}`},OTr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:FTr,code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,CP.alwaysValidSchema)(i,r))return;const u=(0,wP.allSchemaProperties)(n.properties),c=(0,wP.allSchemaProperties)(n.patternProperties);d(),e.ok((0,ec._)`${a} === ${RTr.default.errors}`);function d(){t.forIn("key",o,b=>{!u.length&&!c.length?h(b):t.if(f(b),()=>h(b))})}function f(b){let g;if(u.length>8){const y=(0,CP.schemaRefOrVal)(i,n.properties,"properties");g=(0,wP.isOwnProperty)(t,y,b)}else u.length?g=(0,ec.or)(...u.map(y=>(0,ec._)`${b} === ${y}`)):g=ec.nil;return c.length&&(g=(0,ec.or)(g,...c.map(y=>(0,ec._)`${(0,wP.usePattern)(e,y)}.test(${b})`))),(0,ec.not)(g)}function p(b){t.code((0,ec._)`delete ${o}[${b}]`)}function h(b){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){p(b);return}if(r===!1){e.setParams({additionalProperty:b}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,CP.alwaysValidSchema)(i,r)){const g=t.name("valid");l.removeAdditional==="failing"?(v(b,g,!1),t.if((0,ec.not)(g),()=>{e.reset(),p(b)})):(v(b,g),s||t.if((0,ec.not)(g),()=>t.break()))}}function v(b,g,y){const S={keyword:"additionalProperties",dataProp:b,dataPropType:CP.Type.Str};y===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,g)}}};BA.default=OTr;var LG={};Object.defineProperty(LG,"__esModule",{value:!0});const NTr=wu,Fue=Lr,j3=Ur,Oue=BA,DTr={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;a.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Oue.default.code(new NTr.KeywordCxt(a,Oue.default,"additionalProperties"));const i=(0,Fue.allSchemaProperties)(r);for(const d of i)a.definedProperties.add(d);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=j3.mergeEvaluated.props(t,(0,j3.toHash)(i),a.props));const s=i.filter(d=>!(0,j3.alwaysValidSchema)(a,r[d]));if(s.length===0)return;const l=t.name("valid");for(const d of s)u(d)?c(d):(t.if((0,Fue.propertyInData)(t,o,d,a.opts.ownProperties)),c(d),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(l);function u(d){return a.opts.useDefaults&&!a.compositeRule&&r[d].default!==void 0}function c(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};LG.default=DTr;var zG={};Object.defineProperty(zG,"__esModule",{value:!0});const Nue=Lr,xP=Sr,Due=Ur,Aue=Ur,ATr={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,Nue.allSchemaProperties)(r),l=s.filter(v=>(0,Due.alwaysValidSchema)(a,r[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");a.props!==!0&&!(a.props instanceof xP.Name)&&(a.props=(0,Aue.evaluatedPropsToName)(t,a.props));const{props:d}=a;f();function f(){for(const v of s)u&&p(v),a.allErrors?h(v):(t.var(c,!0),h(v),t.if(c))}function p(v){for(const b in u)new RegExp(v).test(b)&&(0,Due.checkStrictMode)(a,`property ${b} matches pattern ${v} (use allowMatchingProperties)`)}function h(v){t.forIn("key",n,b=>{t.if((0,xP._)`${(0,Nue.usePattern)(e,v)}.test(${b})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:b,dataPropType:Aue.Type.Str},c),a.opts.unevaluated&&d!==!0?t.assign((0,xP._)`${d}[${b}]`,!0):!g&&!a.allErrors&&t.if((0,xP.not)(c),()=>t.break())})})}}};zG.default=ATr;var VG={};Object.defineProperty(VG,"__esModule",{value:!0});const MTr=Ur,BTr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,MTr.alwaysValidSchema)(n,r)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};VG.default=BTr;var HG={};Object.defineProperty(HG,"__esModule",{value:!0});const jTr=Lr,LTr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:jTr.validateUnion,error:{message:"must match a schema in anyOf"}};HG.default=LTr;var WG={};Object.defineProperty(WG,"__esModule",{value:!0});const TT=Sr,zTr=Ur,VTr={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,TT._)`{passingSchemas: ${e.passing}}`},HTr={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:VTr,code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(u),e.result(i,()=>e.reset(),()=>e.error(!0));function u(){a.forEach((c,d)=>{let f;(0,zTr.alwaysValidSchema)(o,c)?t.var(l,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&t.if((0,TT._)`${l} && ${i}`).assign(i,!1).assign(s,(0,TT._)`[${s}, ${d}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,d),f&&e.mergeEvaluated(f,TT.Name)})})}}};WG.default=HTr;var qG={};Object.defineProperty(qG,"__esModule",{value:!0});const WTr=Ur,qTr={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach((a,i)=>{if((0,WTr.alwaysValidSchema)(n,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};qG.default=qTr;var UG={};Object.defineProperty(UG,"__esModule",{value:!0});const wF=Sr,kTe=Ur,UTr={message:({params:e})=>(0,wF.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,wF._)`{failingKeyword: ${e.ifClause}}`},KTr={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:UTr,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,kTe.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=Mue(n,"then"),a=Mue(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const c=t.let("ifClause");e.setParams({ifClause:c}),t.if(s,u("then",c),u("else",c))}else o?t.if(s,u("then")):t.if((0,wF.not)(s),u("else"));e.pass(i,()=>e.error(!0));function l(){const c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(c)}function u(c,d){return()=>{const f=e.subschema({keyword:c},s);t.assign(i,s),e.mergeValidEvaluated(f,i),d?t.assign(d,(0,wF._)`${c}`):e.setParams({ifClause:c})}}}};function Mue(e,t){const r=e.schema[t];return r!==void 0&&!(0,kTe.alwaysValidSchema)(e,r)}UG.default=KTr;var KG={};Object.defineProperty(KG,"__esModule",{value:!0});const GTr=Ur,YTr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,GTr.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};KG.default=YTr;Object.defineProperty(AA,"__esModule",{value:!0});const XTr=OS,QTr=AG,ZTr=NS,JTr=MG,eIr=BG,tIr=MA,rIr=jG,nIr=BA,oIr=LG,aIr=zG,iIr=VG,sIr=HG,lIr=WG,uIr=qG,cIr=UG,dIr=KG;function fIr(e=!1){const t=[iIr.default,sIr.default,lIr.default,uIr.default,cIr.default,dIr.default,rIr.default,nIr.default,tIr.default,oIr.default,aIr.default];return e?t.push(QTr.default,JTr.default):t.push(XTr.default,ZTr.default),t.push(eIr.default),t}AA.default=fIr;var jA={},GG={};Object.defineProperty(GG,"__esModule",{value:!0});const Xo=Sr,pIr={message:({schemaCode:e})=>(0,Xo.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Xo._)`{format: ${e}}`},mIr={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:pIr,code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:d}=s;if(!l.validateFormats)return;o?f():p();function f(){const h=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),v=r.const("fDef",(0,Xo._)`${h}[${i}]`),b=r.let("fType"),g=r.let("format");r.if((0,Xo._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(b,(0,Xo._)`${v}.type || "string"`).assign(g,(0,Xo._)`${v}.validate`),()=>r.assign(b,(0,Xo._)`"string"`).assign(g,v)),e.fail$data((0,Xo.or)(y(),S()));function y(){return l.strictSchema===!1?Xo.nil:(0,Xo._)`${i} && !${g}`}function S(){const w=c.$async?(0,Xo._)`(${v}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Xo._)`${g}(${n})`,$=(0,Xo._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${n}))`;return(0,Xo._)`${g} && ${g} !== true && ${b} === ${t} && !${$}`}}function p(){const h=d.formats[a];if(!h){y();return}if(h===!0)return;const[v,b,g]=S(h);v===t&&e.pass(w());function y(){if(l.strictSchema===!1){d.logger.warn($());return}throw new Error($());function $(){return`unknown format "${a}" ignored in schema at path "${u}"`}}function S($){const C=$ instanceof RegExp?(0,Xo.regexpCode)($):l.code.formats?(0,Xo._)`${l.code.formats}${(0,Xo.getProperty)(a)}`:void 0,x=r.scopeValue("formats",{key:a,ref:$,code:C});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Xo._)`${x}.validate`]:["string",$,x]}function w(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Xo._)`await ${g}(${n})`}return typeof b=="function"?(0,Xo._)`${g}(${n})`:(0,Xo._)`${g}.test(${n})`}}}};GG.default=mIr;Object.defineProperty(jA,"__esModule",{value:!0});const hIr=GG,vIr=[hIr.default];jA.default=vIr;var o0={};Object.defineProperty(o0,"__esModule",{value:!0});o0.contentVocabulary=o0.metadataVocabulary=void 0;o0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];o0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(xG,"__esModule",{value:!0});const gIr=NA,bIr=DA,yIr=AA,SIr=jA,Bue=o0,wIr=[gIr.default,bIr.default,(0,yIr.default)(),SIr.default,Bue.metadataVocabulary,Bue.contentVocabulary];xG.default=wIr;var LA={},DS={};Object.defineProperty(DS,"__esModule",{value:!0});DS.dynamicAnchor=void 0;const L3=Sr,CIr=Ul,jue=ps,xIr=Cp,$Ir={keyword:"$dynamicAnchor",schemaType:"string",code:e=>PTe(e,e.schema)};function PTe(e,t){const{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;const o=(0,L3._)`${CIr.default.dynamicAnchors}${(0,L3.getProperty)(t)}`,a=n.errSchemaPath==="#"?n.validateName:EIr(e);r.if((0,L3._)`!${o}`,()=>r.assign(o,a))}DS.dynamicAnchor=PTe;function EIr(e){const{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:a,localRefs:i,meta:s}=t.root,{schemaId:l}=n.opts,u=new jue.SchemaEnv({schema:r,schemaId:l,root:o,baseId:a,localRefs:i,meta:s});return jue.compileSchema.call(n,u),(0,xIr.getValidate)(e,u)}DS.default=$Ir;var AS={};Object.defineProperty(AS,"__esModule",{value:!0});AS.dynamicRef=void 0;const Lue=Sr,_Ir=Ul,zue=Cp,kIr={keyword:"$dynamicRef",schemaType:"string",code:e=>TTe(e,e.schema)};function TTe(e,t){const{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);const a=t.slice(1);if(o.allErrors)i();else{const l=r.let("valid",!1);i(l),e.ok(l)}function i(l){if(o.schemaEnv.root.dynamicAnchors[a]){const u=r.let("_v",(0,Lue._)`${_Ir.default.dynamicAnchors}${(0,Lue.getProperty)(a)}`);r.if(u,s(u,l),s(o.validateName,l))}else s(o.validateName,l)()}function s(l,u){return u?()=>r.block(()=>{(0,zue.callRef)(e,l),r.let(u,!0)}):()=>(0,zue.callRef)(e,l)}}AS.dynamicRef=TTe;AS.default=kIr;var YG={};Object.defineProperty(YG,"__esModule",{value:!0});const PIr=DS,TIr=Ur,IIr={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,PIr.dynamicAnchor)(e,""):(0,TIr.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};YG.default=IIr;var XG={};Object.defineProperty(XG,"__esModule",{value:!0});const RIr=AS,FIr={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,RIr.dynamicRef)(e,e.schema)};XG.default=FIr;Object.defineProperty(LA,"__esModule",{value:!0});const OIr=DS,NIr=AS,DIr=YG,AIr=XG,MIr=[OIr.default,NIr.default,DIr.default,AIr.default];LA.default=MIr;var zA={},QG={};Object.defineProperty(QG,"__esModule",{value:!0});const Vue=MA,BIr={keyword:"dependentRequired",type:"object",schemaType:"object",error:Vue.error,code:e=>(0,Vue.validatePropertyDeps)(e)};QG.default=BIr;var ZG={};Object.defineProperty(ZG,"__esModule",{value:!0});const jIr=MA,LIr={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,jIr.validateSchemaDeps)(e)};ZG.default=LIr;var JG={};Object.defineProperty(JG,"__esModule",{value:!0});const zIr=Ur,VIr={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,zIr.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};JG.default=VIr;Object.defineProperty(zA,"__esModule",{value:!0});const HIr=QG,WIr=ZG,qIr=JG,UIr=[HIr.default,WIr.default,qIr.default];zA.default=UIr;var VA={},eY={};Object.defineProperty(eY,"__esModule",{value:!0});const wm=Sr,Hue=Ur,KIr=Ul,GIr={message:"must NOT have unevaluated properties",params:({params:e})=>(0,wm._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},YIr={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:GIr,code(e){const{gen:t,schema:r,data:n,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:i,props:s}=a;s instanceof wm.Name?t.if((0,wm._)`${s} !== true`,()=>t.forIn("key",n,d=>t.if(u(s,d),()=>l(d)))):s!==!0&&t.forIn("key",n,d=>s===void 0?l(d):t.if(c(s,d),()=>l(d))),a.props=!0,e.ok((0,wm._)`${o} === ${KIr.default.errors}`);function l(d){if(r===!1){e.setParams({unevaluatedProperty:d}),e.error(),i||t.break();return}if(!(0,Hue.alwaysValidSchema)(a,r)){const f=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:Hue.Type.Str},f),i||t.if((0,wm.not)(f),()=>t.break())}}function u(d,f){return(0,wm._)`!${d} || !${d}[${f}]`}function c(d,f){const p=[];for(const h in d)d[h]===!0&&p.push((0,wm._)`${f} !== ${h}`);return(0,wm.and)(...p)}}};eY.default=YIr;var tY={};Object.defineProperty(tY,"__esModule",{value:!0});const qv=Sr,Wue=Ur,XIr={message:({params:{len:e}})=>(0,qv.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,qv._)`{limit: ${e}}`},QIr={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:XIr,code(e){const{gen:t,schema:r,data:n,it:o}=e,a=o.items||0;if(a===!0)return;const i=t.const("len",(0,qv._)`${n}.length`);if(r===!1)e.setParams({len:a}),e.fail((0,qv._)`${i} > ${a}`);else if(typeof r=="object"&&!(0,Wue.alwaysValidSchema)(o,r)){const l=t.var("valid",(0,qv._)`${i} <= ${a}`);t.if((0,qv.not)(l),()=>s(l,a)),e.ok(l)}o.items=!0;function s(l,u){t.forRange("i",u,i,c=>{e.subschema({keyword:"unevaluatedItems",dataProp:c,dataPropType:Wue.Type.Num},l),o.allErrors||t.if((0,qv.not)(l),()=>t.break())})}}};tY.default=QIr;Object.defineProperty(VA,"__esModule",{value:!0});const ZIr=eY,JIr=tY,eRr=[ZIr.default,JIr.default];VA.default=eRr;var HA={},ITe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(ITe);Object.defineProperty(HA,"__esModule",{value:!0});const wb=Sr,q8=ITe,que=ps,tRr=Ur,rRr={message:({params:{discrError:e,tagName:t}})=>e===q8.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,wb._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},nRr={keyword:"discriminator",type:"object",schemaType:"object",error:rRr,code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),u=t.const("tag",(0,wb._)`${r}${(0,wb.getProperty)(s)}`);t.if((0,wb._)`typeof ${u} == "string"`,()=>c(),()=>e.error(!1,{discrError:q8.DiscrError.Tag,tag:u,tagName:s})),e.ok(l);function c(){const p=f();t.if(!1);for(const h in p)t.elseIf((0,wb._)`${u} === ${h}`),t.assign(l,d(p[h]));t.else(),e.error(!1,{discrError:q8.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}function d(p){const h=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:p},h);return e.mergeEvaluated(v,wb.Name),h}function f(){var p;const h={},v=g(o);let b=!0;for(let w=0;wthis.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,vFr):n}}rY.default=gFr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=hG,n=xG,o=LA,a=zA,i=VA,s=HA,l=rY,u="https://json-schema.org/draft/2019-09/schema";class c extends r.default{constructor(b={}){super({...b,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(o.default),n.default.forEach(b=>this.addVocabulary(b)),this.addVocabulary(a.default),this.addVocabulary(i.default),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:b,meta:g}=this.opts;g&&(l.default.call(this,b),this.refs["http://json-schema.org/schema"]=u)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var d=wu;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var f=Sr;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var p=RS;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var h=FS;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(L8,L8.exports);var bFr=L8.exports;const yFr=zt(bFr);var U8={exports:{}},nY={};Object.defineProperty(nY,"__esModule",{value:!0});const SFr=NA,wFr=DA,CFr=AA,xFr=LA,$Fr=zA,EFr=VA,_Fr=jA,Uue=o0,kFr=[xFr.default,SFr.default,wFr.default,(0,CFr.default)(!0),_Fr.default,Uue.metadataVocabulary,Uue.contentVocabulary,$Fr.default,EFr.default];nY.default=kFr;var oY={};const PFr="https://json-schema.org/draft/2020-12/schema",TFr="https://json-schema.org/draft/2020-12/schema",IFr={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},RFr="meta",FFr="Core and Validation specifications meta-schema",OFr=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],NFr=["object","boolean"],DFr="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",AFr={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},MFr={$schema:PFr,$id:TFr,$vocabulary:IFr,$dynamicAnchor:RFr,title:FFr,allOf:OFr,type:NFr,$comment:DFr,properties:AFr},BFr="https://json-schema.org/draft/2020-12/schema",jFr="https://json-schema.org/draft/2020-12/meta/applicator",LFr={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},zFr="meta",VFr="Applicator vocabulary meta-schema",HFr=["object","boolean"],WFr={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},qFr={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},UFr={$schema:BFr,$id:jFr,$vocabulary:LFr,$dynamicAnchor:zFr,title:VFr,type:HFr,properties:WFr,$defs:qFr},KFr="https://json-schema.org/draft/2020-12/schema",GFr="https://json-schema.org/draft/2020-12/meta/unevaluated",YFr={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},XFr="meta",QFr="Unevaluated applicator vocabulary meta-schema",ZFr=["object","boolean"],JFr={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},eOr={$schema:KFr,$id:GFr,$vocabulary:YFr,$dynamicAnchor:XFr,title:QFr,type:ZFr,properties:JFr},tOr="https://json-schema.org/draft/2020-12/schema",rOr="https://json-schema.org/draft/2020-12/meta/content",nOr={"https://json-schema.org/draft/2020-12/vocab/content":!0},oOr="meta",aOr="Content vocabulary meta-schema",iOr=["object","boolean"],sOr={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},lOr={$schema:tOr,$id:rOr,$vocabulary:nOr,$dynamicAnchor:oOr,title:aOr,type:iOr,properties:sOr},uOr="https://json-schema.org/draft/2020-12/schema",cOr="https://json-schema.org/draft/2020-12/meta/core",dOr={"https://json-schema.org/draft/2020-12/vocab/core":!0},fOr="meta",pOr="Core vocabulary meta-schema",mOr=["object","boolean"],hOr={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},vOr={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},gOr={$schema:uOr,$id:cOr,$vocabulary:dOr,$dynamicAnchor:fOr,title:pOr,type:mOr,properties:hOr,$defs:vOr},bOr="https://json-schema.org/draft/2020-12/schema",yOr="https://json-schema.org/draft/2020-12/meta/format-annotation",SOr={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},wOr="meta",COr="Format vocabulary meta-schema for annotation results",xOr=["object","boolean"],$Or={format:{type:"string"}},EOr={$schema:bOr,$id:yOr,$vocabulary:SOr,$dynamicAnchor:wOr,title:COr,type:xOr,properties:$Or},_Or="https://json-schema.org/draft/2020-12/schema",kOr="https://json-schema.org/draft/2020-12/meta/meta-data",POr={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},TOr="meta",IOr="Meta-data vocabulary meta-schema",ROr=["object","boolean"],FOr={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},OOr={$schema:_Or,$id:kOr,$vocabulary:POr,$dynamicAnchor:TOr,title:IOr,type:ROr,properties:FOr},NOr="https://json-schema.org/draft/2020-12/schema",DOr="https://json-schema.org/draft/2020-12/meta/validation",AOr={"https://json-schema.org/draft/2020-12/vocab/validation":!0},MOr="meta",BOr="Validation vocabulary meta-schema",jOr=["object","boolean"],LOr={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},zOr={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},VOr={$schema:NOr,$id:DOr,$vocabulary:AOr,$dynamicAnchor:MOr,title:BOr,type:jOr,properties:LOr,$defs:zOr};Object.defineProperty(oY,"__esModule",{value:!0});const HOr=MFr,WOr=UFr,qOr=eOr,UOr=lOr,KOr=gOr,GOr=EOr,YOr=OOr,XOr=VOr,QOr=["/properties"];function ZOr(e){return[HOr,WOr,qOr,UOr,KOr,t(this,GOr),YOr,t(this,XOr)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,QOr):n}}oY.default=ZOr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=hG,n=nY,o=HA,a=oY,i="https://json-schema.org/draft/2020-12/schema";class s extends r.default{constructor(p={}){super({...p,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:p,meta:h}=this.opts;h&&(a.default.call(this,p),this.refs["http://json-schema.org/schema"]=i)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var l=wu;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Sr;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var c=RS;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return c.default}});var d=FS;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})(U8,U8.exports);var JOr=U8.exports;const eNr=zt(JOr);function tNr(){return T.jsx("div",{className:"col-sm-12",children:T.jsxs("p",{style:{textAlign:"center"},children:["Powered by ",T.jsx("a",{href:"https://github.com/rjsf-team/react-jsonschema-form",children:"react-jsonschema-form"}),".",{}.VITE_SHOW_NETLIFY_BADGE==="true"&&T.jsx("div",{style:{float:"right"},children:T.jsx("a",{href:"https://www.netlify.com",children:T.jsx("img",{src:"https://www.netlify.com/img/global/badges/netlify-color-accent.svg"})})})]})})}function rNr({children:e}){return T.jsxs("div",{className:"container-fluid",children:[e,T.jsx(tNr,{})]})}const RTe=function(){return{encode(e){let t;if(typeof TextEncoder<"u")t=new TextEncoder;else{const{TextEncoder:r}=require("util");t=new r}return btoa(String.fromCharCode(...t.encode(e)))},decode(e){let t;if(typeof TextDecoder<"u")t=new TextDecoder;else{const{TextDecoder:r}=require("util");t=new r}return t.decode(Uint8Array.from(atob(e),r=>r.charCodeAt(0)))}}}(),nNr={schema:{definitions:{Thing:{type:"object",properties:{name:{type:"string",default:"Default name"}}}},type:"object",properties:{listOfStrings:{type:"array",title:"A list of strings",items:{type:"string",default:"bazinga"}},multipleChoicesList:{type:"array",title:"A multiple choices list",items:{type:"string",enum:["foo","bar","fuzz","qux"]},uniqueItems:!0},fixedItemsList:{type:"array",title:"A list of fixed items",items:[{title:"A string value",type:"string",default:"lorem ipsum"},{title:"a boolean value",type:"boolean"}],additionalItems:{title:"Additional item",type:"number"}},minItemsList:{type:"array",title:"A list with a minimal number of items",minItems:3,items:{$ref:"#/definitions/Thing"}},defaultsAndMinItems:{type:"array",title:"List and item level defaults",minItems:5,default:["carp","trout","bream"],items:{type:"string",default:"unidentified"}},nestedList:{type:"array",title:"Nested list",items:{type:"array",title:"Inner list",items:{type:"string",default:"lorem ipsum"}}},unorderable:{title:"Unorderable items",type:"array",items:{type:"string",default:"lorem ipsum"}},copyable:{title:"Copyable items",type:"array",items:{type:"string",default:"lorem ipsum"}},unremovable:{title:"Unremovable items",type:"array",items:{type:"string",default:"lorem ipsum"}},noToolbar:{title:"No add, remove and order buttons",type:"array",items:{type:"string",default:"lorem ipsum"}},fixedNoToolbar:{title:"Fixed array without buttons",type:"array",items:[{title:"A number",type:"number",default:42},{title:"A boolean",type:"boolean",default:!1}],additionalItems:{title:"A string",type:"string",default:"lorem ipsum"}}}},uiSchema:{listOfStrings:{items:{"ui:emptyValue":""}},multipleChoicesList:{"ui:widget":"checkboxes"},fixedItemsList:{items:[{"ui:widget":"textarea"},{"ui:widget":"select"}],additionalItems:{"ui:widget":"updown"}},unorderable:{"ui:options":{orderable:!1}},copyable:{"ui:options":{copyable:!0}},unremovable:{"ui:options":{removable:!1}},noToolbar:{"ui:options":{addable:!1,orderable:!1,removable:!1}},fixedNoToolbar:{"ui:options":{addable:!1,orderable:!1,removable:!1}}},formData:{listOfStrings:["foo","bar"],multipleChoicesList:["foo","bar"],fixedItemsList:["Some text",!0,123],nestedList:[["lorem","ipsum"],["dolor"]],unorderable:["one","two"],copyable:["one","two"],unremovable:["one","two"],noToolbar:["one","two"],fixedNoToolbar:[42,!0,"additional item one","additional item two"]}},oNr={schema:{type:"object",properties:{age:{type:"integer",title:"Age"},items:{type:"array",items:{type:"object",anyOf:[{properties:{foo:{type:"string"}}},{properties:{bar:{type:"string"}}}]}}},anyOf:[{title:"First method of identification",properties:{firstName:{type:"string",title:"First name",default:"Chuck"},lastName:{type:"string",title:"Last name"}}},{title:"Second method of identification",properties:{idCode:{type:"string",title:"ID code"}}}]},formData:{}},aNr={schema:{type:"object",oneOf:[{properties:{lorem:{type:"string"}},required:["lorem"]},{properties:{ipsum:{type:"string"}},required:["ipsum"]}]},formData:{}},iNr={schema:{type:"object",allOf:[{properties:{lorem:{type:["string","boolean"],default:!0}}},{properties:{lorem:{type:"boolean"},ipsum:{type:"string"}}}]},formData:{}},sNr={schema:{definitions:{locations:{enumNames:["New York","Amsterdam","Hong Kong"],enum:[{name:"New York",lat:40,lon:74},{name:"Amsterdam",lat:52,lon:5},{name:"Hong Kong",lat:22,lon:114}]}},type:"object",properties:{location:{title:"Location",$ref:"#/definitions/locations"},locationRadio:{title:"Location Radio",$ref:"#/definitions/locations"},multiSelect:{title:"Locations",type:"array",uniqueItems:!0,items:{$ref:"#/definitions/locations"}},checkboxes:{title:"Locations Checkboxes",type:"array",uniqueItems:!0,items:{$ref:"#/definitions/locations"}}}},uiSchema:{locationRadio:{"ui:widget":"RadioWidget"},checkboxes:{"ui:widget":"CheckboxesWidget"}},formData:{location:{name:"Amsterdam",lat:52,lon:5}}},lNr={schema:{title:"A list of tasks",type:"object",required:["title"],properties:{title:{type:"string",title:"Task list title"},tasks:{type:"array",title:"Tasks",items:{type:"object",required:["title"],properties:{title:{type:"string",title:"Title",description:"A sample title"},details:{type:"string",title:"Task details",description:"Enter the task details"},done:{type:"boolean",title:"Done?",default:!1}}}}}},uiSchema:{tasks:{items:{details:{"ui:widget":"textarea"}}}},formData:{title:"My current tasks",tasks:[{title:"My first task",details:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",done:!0},{title:"My second task",details:"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur",done:!1}]}},uNr={schema:{type:"object",title:"Number fields & widgets",properties:{number:{title:"Number",type:"number"},integer:{title:"Integer",type:"integer"},numberEnum:{type:"number",title:"Number enum",enum:[1,2,3]},numberEnumRadio:{type:"number",title:"Number enum",enum:[1,2,3]},integerRange:{title:"Integer range",type:"integer",minimum:-50,maximum:50},integerRangeSteps:{title:"Integer range (by 10)",type:"integer",minimum:50,maximum:100,multipleOf:10}}},uiSchema:{integer:{"ui:widget":"updown"},numberEnumRadio:{"ui:widget":"radio","ui:options":{inline:!0}},integerRange:{"ui:widget":"range"},integerRangeSteps:{"ui:widget":"range"}},formData:{number:3.14,integer:42,numberEnum:2,integerRange:42,integerRangeSteps:80}},cNr={schema:{title:"A registration form",description:"A simple form example.",type:"object",required:["firstName","lastName"],properties:{firstName:{type:"string",title:"First name",default:"Chuck"},lastName:{type:"string",title:"Last name"},age:{type:"integer",title:"Age"},bio:{type:"string",title:"Bio"},password:{type:"string",title:"Password",minLength:3},telephone:{type:"string",title:"Telephone",minLength:10}}},uiSchema:{firstName:{"ui:autofocus":!0,"ui:emptyValue":"","ui:placeholder":"ui:emptyValue causes this field to always be valid despite being required","ui:autocomplete":"family-name","ui:enableMarkdownInDescription":!0,"ui:description":"Make text **bold** or *italic*. Take a look at other options [here](https://markdown-to-jsx.quantizor.dev/)."},lastName:{"ui:autocomplete":"given-name","ui:enableMarkdownInDescription":!0,"ui:description":"Make things **bold** or *italic*. Embed snippets of `code`. And this is a small texts. "},age:{"ui:widget":"updown","ui:title":"Age of person","ui:description":"(earth year)"},bio:{"ui:widget":"textarea"},password:{"ui:widget":"password","ui:help":"Hint: Make it strong!"},telephone:{"ui:options":{inputType:"tel"}}},formData:{lastName:"Norris",age:75,bio:"Roundhouse kicking asses since 1940",password:"noneed",telephone:"1-800-KICKASS"}},dNr={schema:{title:"Widgets",type:"object",properties:{stringFormats:{type:"object",title:"String formats",properties:{email:{type:"string",format:"email"},uri:{type:"string",format:"uri"}}},boolean:{type:"object",title:"Boolean field",properties:{default:{type:"boolean",title:"checkbox (default)",description:"This is the checkbox-description"},radio:{type:"boolean",title:"radio buttons",description:"This is the radio-description"},select:{type:"boolean",title:"select box",description:"This is the select-description"}}},string:{type:"object",title:"String field",properties:{default:{type:"string",title:"text input (default)"},textarea:{type:"string",title:"textarea"},placeholder:{type:"string"},color:{type:"string",title:"color picker",default:"#151ce6"}}},secret:{type:"string",default:"I'm a hidden string."},disabled:{type:"string",title:"A disabled field",default:"I am disabled."},readonly:{type:"string",title:"A readonly field",default:"I am read-only."},readonly2:{type:"string",title:"Another readonly field",default:"I am also read-only.",readOnly:!0},widgetOptions:{title:"Custom widget with options",type:"string",default:"I am yellow"},selectWidgetOptions:{title:"Custom select widget with options",type:"string",enum:["foo","bar"]},selectWidgetOptions2:{title:"Custom select widget with options, overriding the enum titles.",type:"string",oneOf:[{const:"foo",title:"Foo"},{const:"bar",title:"Bar"}]}}},uiSchema:{boolean:{radio:{"ui:widget":"radio"},select:{"ui:widget":"select"}},string:{textarea:{"ui:widget":"textarea","ui:options":{rows:5}},placeholder:{"ui:placeholder":"This is a placeholder"},color:{"ui:widget":"color"}},secret:{"ui:widget":"hidden"},disabled:{"ui:disabled":!0},readonly:{"ui:readonly":!0},widgetOptions:{"ui:widget":({value:e,onChange:t,options:r})=>{const{backgroundColor:n}=r;return T.jsx("input",{className:"form-control",onChange:o=>t(o.target.value),style:{backgroundColor:n},value:e})},"ui:options":{backgroundColor:"yellow"}},selectWidgetOptions:{"ui:widget":({value:e,onChange:t,options:r})=>{const{enumOptions:n,backgroundColor:o}=r;return T.jsx("select",{className:"form-control",style:{backgroundColor:o},value:e,onChange:a=>t(a.target.value),children:n.map(({label:a,value:i},s)=>T.jsx("option",{value:i,children:a},s))})},"ui:options":{backgroundColor:"pink"}}},formData:{stringFormats:{email:"chuck@norris.net",uri:"http://chucknorris.com/"},boolean:{default:!0,radio:!0,select:!0},string:{default:"Hello...",textarea:"... World"},secret:"I'm a hidden string."}},fNr={schema:{title:"A registration form",type:"object",required:["firstName","lastName"],properties:{password:{type:"string",title:"Password"},lastName:{type:"string",title:"Last name"},bio:{type:"string",title:"Bio"},firstName:{type:"string",title:"First name"},age:{type:"integer",title:"Age"}}},uiSchema:{"ui:order":["firstName","lastName","*","password"],age:{"ui:widget":"updown"},bio:{"ui:widget":"textarea"},password:{"ui:widget":"password"}},formData:{firstName:"Chuck",lastName:"Norris",age:75,bio:"Roundhouse kicking asses since 1940",password:"noneed"}},pNr={schema:{definitions:{address:{type:"object",properties:{street_address:{type:"string"},city:{type:"string"},state:{type:"string"}},required:["street_address","city","state"]},node:{type:"object",properties:{name:{type:"string"},children:{type:"array",items:{$ref:"#/definitions/node"}}}}},type:"object",properties:{billing_address:{title:"Billing address",$ref:"#/definitions/address"},shipping_address:{title:"Shipping address",$ref:"#/definitions/address"},tree:{title:"Recursive references",$ref:"#/definitions/node"}}},uiSchema:{"ui:order":["shipping_address","billing_address","tree"]},formData:{billing_address:{street_address:"21, Jump Street",city:"Babel",state:"Neverland"},shipping_address:{street_address:"221B, Baker Street",city:"London",state:"N/A"},tree:{name:"root",children:[{name:"leaf"}]}}},mNr={schema:{title:"A localisation form",type:"object",required:["lat","lon"],properties:{lat:{type:"number"},lon:{type:"number"}}},uiSchema:{"ui:field":"geo"},formData:{lat:0,lon:0}},hNr={schema:{title:"Contextualized errors",type:"object",properties:{firstName:{type:"string",title:"First name",minLength:8,pattern:"\\d+"},active:{type:"boolean",title:"Active"},skills:{type:"array",items:{type:"string",minLength:5}},multipleChoicesList:{type:"array",title:"Pick max two items",uniqueItems:!0,maxItems:2,items:{type:"string",enum:["foo","bar","fuzz"]}}}},uiSchema:{},formData:{firstName:"Chuck",active:"wrong",skills:["karate","budo","aikido"],multipleChoicesList:["foo","bar","fuzz"]}},vNr={schema:{title:"Examples",description:"A text field with example values.",type:"object",properties:{browser:{type:"string",title:"Browser",examples:["Firefox","Chrome","Opera","Vivaldi","Safari"]}}}};function gNr(e){const t=[];for(let r=0;re.map(t=>t.name==="minimum"&&t.schemaPath==="#/properties/age/minimum"?Object.assign({},t,{message:"You need to be 18 because of some legal thing"}):t),CNr={schema:{title:"Custom validation",description:"This form defines custom validation rules checking that the two passwords match. There is also a custom validation message when submitting an age < 18, which can only be seen if HTML5 validation is turned off.",type:"object",properties:{pass1:{title:"Password",type:"string",minLength:3},pass2:{title:"Repeat password",type:"string",minLength:3},age:{title:"Age",type:"number",minimum:18}}},uiSchema:{pass1:{"ui:widget":"password"},pass2:{"ui:widget":"password"}},formData:{},customValidate:SNr,transformErrors:wNr},xNr={schema:{title:"Files",type:"object",properties:{file:{type:"string",format:"data-url",title:"Single file"},files:{type:"array",title:"Multiple files",items:{type:"string",format:"data-url"}},filesAccept:{type:"string",format:"data-url",title:"Single File with Accept attribute"}}},uiSchema:{filesAccept:{"ui:options":{accept:".pdf"}}},formData:{}},$Nr={schema:{title:"A single-field form",type:"string"},formData:"initial value",uiSchema:{}};function ENr(e){const{className:t,items:r,canAdd:n,onAddClick:o}=e;return T.jsxs("div",{className:t,children:[r&&r.map(a=>T.jsxs("div",{className:a.className,children:[T.jsx("div",{children:a.children}),a.hasMoveDown&&T.jsx("button",{onClick:a.onReorderClick(a.index,a.index+1),children:"Down"}),a.hasMoveUp&&T.jsx("button",{onClick:a.onReorderClick(a.index,a.index-1),children:"Up"}),T.jsx("button",{onClick:a.onDropIndexClick(a.index),children:"Delete"}),T.jsx("hr",{})]},a.key)),n&&T.jsx("div",{className:"row",children:T.jsx("p",{className:"col-xs-3 col-xs-offset-9 array-item-add text-right",children:T.jsx("button",{onClick:o,type:"button",children:"Custom +"})})})]})}const _Nr={schema:{title:"Custom array of strings",type:"array",items:{type:"string"}},formData:["react","jsonschema","form"],templates:{ArrayFieldTemplate:ENr}};function kNr(e){const{idSchema:{$id:t},formData:r,onChange:n}=e,o=a=>i=>{n(r?{...r,[a]:i.target.value}:{[a]:i.target.value})};return T.jsxs(T.Fragment,{children:[T.jsx("h4",{children:"Location"}),T.jsxs("div",{style:{display:"flex"},children:[T.jsx("div",{style:{display:"flex",flexDirection:"column",width:"50%",margin:"1rem"},children:T.jsxs("div",{className:"form-group field field-string",children:[T.jsx("label",{className:"control-label",htmlFor:`${t}-city`,children:"City"}),T.jsx("input",{className:"form-control",id:`${t}-city`,required:!1,placeholder:"",type:"text",value:(r==null?void 0:r.city)||"",onChange:o("city")})]})}),T.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"50%",margin:"1rem"},children:[T.jsxs("div",{className:"form-group field field-string",children:[T.jsx("label",{className:"control-label",htmlFor:`${t}-lat`,children:"Latitude"}),T.jsx("input",{className:"form-control",id:`${t}-lat`,type:"number",value:(r==null?void 0:r.lat)||0,onChange:o("lat")})]}),T.jsxs("div",{className:"form-group field field-string",children:[T.jsx("label",{className:"control-label",htmlFor:`${t}-lon`,children:"Longitude"}),T.jsx("input",{className:"form-control",id:`${t}-lon`,type:"number",value:(r==null?void 0:r.lon)||0,onChange:o("lon")})]})]})]})]})}const PNr={schema:{title:"Location",type:"object",anyOf:[{title:"City",properties:{city:{type:"string"}},required:["city"]},{title:"Coordinates",properties:{lat:{type:"number"},lon:{type:"number"}},required:["lat","lon"]}]},uiSchema:{"ui:field":kNr},formData:{}};function TNr(e){const{registry:t,properties:r,title:n,description:o,uiSchema:a,required:i,schema:s,idSchema:l}=e,u=At(a),c=Ct("TitleFieldTemplate",t,u);return T.jsxs("div",{children:[n&&T.jsx(c,{id:Nu(l),title:n,required:i,schema:s,uiSchema:a,registry:t})," ",o,T.jsx("div",{className:"row",children:r.map(d=>T.jsx("div",{className:"col-lg-1 col-md-2 col-sm-4 col-xs-6",children:d.content},d.content.key))})]})}const INr={schema:{title:"A registration form",description:"This is the same as the simple form, but with an altered bootstrap grid. Set the theme to default, and try shrinking the browser window to see it in action.",type:"object",required:["firstName","lastName"],properties:{firstName:{type:"string",title:"First name"},lastName:{type:"string",title:"Last name"},age:{type:"integer",title:"Age"},bio:{type:"string",title:"Bio"},password:{type:"string",title:"Password",minLength:3},telephone:{type:"string",title:"Telephone",minLength:10}}},formData:{firstName:"Chuck",lastName:"Norris",age:75,bio:"Roundhouse kicking asses since 1940",password:"noneed"},templates:{ObjectFieldTemplate:TNr}},RNr={schema:{definitions:{Color:{title:"Color",type:"string",anyOf:[{type:"string",enum:["#ff0000"],title:"Red"},{type:"string",enum:["#00ff00"],title:"Green"},{type:"string",enum:["#0000ff"],title:"Blue"}]},Toggle:{title:"Toggle",type:"boolean",oneOf:[{title:"Enable",const:!0},{title:"Disable",const:!1}]}},title:"Image editor",type:"object",required:["currentColor","colorMask","blendMode"],properties:{currentColor:{$ref:"#/definitions/Color",title:"Brush color"},colorMask:{type:"array",uniqueItems:!0,items:{$ref:"#/definitions/Color"},title:"Color mask"},toggleMask:{title:"Apply color mask",$ref:"#/definitions/Toggle"},colorPalette:{type:"array",title:"Color palette",items:{$ref:"#/definitions/Color"}},blendMode:{title:"Blend mode",type:"string",oneOf:[{const:"screen",title:"Screen"},{const:"multiply",title:"Multiply"},{const:"overlay",title:"Overlay"}]}}},uiSchema:{blendMode:{"ui:enumDisabled":["multiply"]},toggleMask:{"ui:widget":"radio"}},formData:{currentColor:"#00ff00",colorMask:["#0000ff"],colorPalette:["#ff0000"],blendMode:"screen"}},FNr={schema:{title:"Property dependencies",description:"These samples are best viewed without live validation.",type:"object",properties:{unidirectional:{title:"Unidirectional",type:"object",properties:{name:{type:"string"},credit_card:{type:"number"},billing_address:{type:"string"}},required:["name"],dependencies:{credit_card:["billing_address"]}},bidirectional:{title:"Bidirectional",description:"Dependencies are not bidirectional, you can, of course, define the bidirectional dependencies explicitly.",type:"object",properties:{name:{type:"string"},credit_card:{type:"number"},billing_address:{type:"string"}},required:["name"],dependencies:{credit_card:["billing_address"],billing_address:["credit_card"]}}}},uiSchema:{unidirectional:{credit_card:{"ui:help":"If you enter anything here then billing_address will become required."},billing_address:{"ui:help":"It's okay to have a billing address without a credit card number."}},bidirectional:{credit_card:{"ui:help":"If you enter anything here then billing_address will become required."},billing_address:{"ui:help":"If you enter anything here then credit_card will become required."}}},formData:{unidirectional:{name:"Tim"},bidirectional:{name:"Jill"}}},ONr={schema:{title:"Schema dependencies",description:"These samples are best viewed without live validation.",type:"object",properties:{simple:{title:"Simple",type:"object",properties:{name:{type:"string"},credit_card:{type:"number"}},required:["name"],dependencies:{credit_card:{properties:{billing_address:{type:"string"}},required:["billing_address"]}}},conditional:{title:"Conditional",$ref:"#/definitions/person"},arrayOfConditionals:{title:"Array of conditionals",type:"array",items:{$ref:"#/definitions/person"}},fixedArrayOfConditionals:{title:"Fixed array of conditionals",type:"array",items:[{title:"Primary person",$ref:"#/definitions/person"}],additionalItems:{title:"Additional person",$ref:"#/definitions/person"}}},definitions:{person:{title:"Person",type:"object",properties:{"Do you have any pets?":{type:"string",enum:["No","Yes: One","Yes: More than one"],default:"No"}},required:["Do you have any pets?"],dependencies:{"Do you have any pets?":{oneOf:[{properties:{"Do you have any pets?":{enum:["No"]}}},{properties:{"Do you have any pets?":{enum:["Yes: One"]},"How old is your pet?":{type:"number"}},required:["How old is your pet?"]},{properties:{"Do you have any pets?":{enum:["Yes: More than one"]},"Do you want to get rid of any?":{type:"boolean"}},required:["Do you want to get rid of any?"]}]}}}}},uiSchema:{simple:{credit_card:{"ui:help":"If you enter anything here then billing_address will be dynamically added to the form."}},conditional:{"Do you want to get rid of any?":{"ui:widget":"radio"}},arrayOfConditionals:{items:{"Do you want to get rid of any?":{"ui:widget":"radio"}}},fixedArrayOfConditionals:{items:{"Do you want to get rid of any?":{"ui:widget":"radio"}},additionalItems:{"Do you want to get rid of any?":{"ui:widget":"radio"}}}},formData:{simple:{name:"Randy"},conditional:{"Do you have any pets?":"No"},arrayOfConditionals:[{"Do you have any pets?":"Yes: One","How old is your pet?":6},{"Do you have any pets?":"Yes: More than one","Do you want to get rid of any?":!1}],fixedArrayOfConditionals:[{"Do you have any pets?":"No"},{"Do you have any pets?":"Yes: One","How old is your pet?":6},{"Do you have any pets?":"Yes: More than one","Do you want to get rid of any?":!0}]}},NNr={schema:{title:"A customizable registration form",description:"A simple form with additional properties example.",type:"object",required:["firstName","lastName"],additionalProperties:{type:"string"},properties:{firstName:{type:"string",title:"First name"},lastName:{type:"string",title:"Last name"}}},uiSchema:{firstName:{"ui:autofocus":!0,"ui:emptyValue":""}},formData:{firstName:"Chuck",lastName:"Norris",assKickCount:"infinity"}},DNr={schema:{title:"A registration form (nullable)",description:"A simple form example using nullable types",type:"object",required:["firstName","lastName"],properties:{firstName:{type:"string",title:"First name",default:"Chuck"},lastName:{type:"string",title:"Last name"},age:{type:["integer","null"],title:"Age"},bio:{type:["string","null"],title:"Bio"},password:{type:"string",title:"Password",minLength:3},telephone:{type:"string",title:"Telephone",minLength:10}}},uiSchema:{firstName:{"ui:autofocus":!0,"ui:emptyValue":""},age:{"ui:widget":"updown","ui:title":"Age of person","ui:description":"(earthian year)","ui:emptyValue":null},bio:{"ui:widget":"textarea","ui:placeholder":"Leaving this field empty will cause formData property to be `null`","ui:emptyValue":null},password:{"ui:widget":"password","ui:help":"Hint: Make it strong!"},date:{"ui:widget":"alt-datetime"},telephone:{"ui:options":{inputType:"tel"}}},formData:{lastName:"Norris",age:75,bio:null,password:"noneed"}},ANr={schema:{title:"Null field example",description:"A short form with a null field",type:"object",required:["firstName"],properties:{helpText:{title:"A null field",description:"Null fields like this are great for adding extra information",type:"null"},firstName:{type:"string",title:"A regular string field",default:"Chuck"}}},uiSchema:{firstName:{"ui:autofocus":!0,"ui:emptyValue":""}},formData:{}},FTe=new ime;FTe.addErrors("some error that got added as a prop","firstName");const MNr={schema:{title:"A registration form",description:"A simple form example.",type:"object",required:["firstName","lastName"],properties:{firstName:{type:"string",title:"First name",default:"Chuck"},lastName:{type:"string",title:"Last name"},age:{type:"integer",title:"Age"},bio:{type:"string",title:"Bio"},password:{type:"string",title:"Password",minLength:3},telephone:{type:"string",title:"Telephone",minLength:10}}},uiSchema:{firstName:{"ui:autofocus":!0,"ui:emptyValue":""},age:{"ui:widget":"updown","ui:title":"Age of person","ui:description":"(earthian year)"},bio:{"ui:widget":"textarea"},password:{"ui:widget":"password","ui:help":"Hint: Make it strong!"},date:{"ui:widget":"alt-datetime"},telephone:{"ui:options":{inputType:"tel"}}},formData:{lastName:"Norris",age:75,bio:"Roundhouse kicking asses since 1940",password:"noneed"},extraErrors:FTe.ErrorSchema},BNr={schema:{title:"Schema default properties",type:"object",properties:{valuesInFormData:{title:"Values in form data",$ref:"#/definitions/defaultsExample"},noValuesInFormData:{title:"No values in form data",$ref:"#/definitions/defaultsExample"}},definitions:{defaultsExample:{type:"object",properties:{scalar:{title:"Scalar",type:"string",default:"scalar default"},array:{title:"Array",type:"array",items:{type:"object",properties:{nested:{title:"Nested array",type:"string",default:"nested array default"}}}},object:{title:"Object",type:"object",properties:{nested:{title:"Nested object",type:"string",default:"nested object default"}}}}}}},uiSchema:{},formData:{valuesInFormData:{scalar:"value",array:[{nested:"nested array value"}],object:{nested:"nested object value"}},noValuesInFormData:{array:[{},{}]}}},jNr={schema:{title:"A registration form",description:"A simple form example. Demonstrating ui options",type:"object",required:["firstName","lastName"],properties:{firstName:{type:"string",title:"First name",default:"Chuck"},lastName:{type:"string",title:"Last name"},telephone:{type:"string",title:"Telephone",minLength:10}}},uiSchema:{"ui:submitButtonOptions":{submitText:"Confirm Details",norender:!1,props:{disabled:!1,className:"btn btn-info"}},firstName:{"ui:autofocus":!0,"ui:emptyValue":"","ui:autocomplete":"family-name"},lastName:{"ui:title":"Surname","ui:emptyValue":"","ui:autocomplete":"given-name"},age:{"ui:widget":"updown","ui:title":"Age of person","ui:description":"(earthian year)"},bio:{"ui:widget":"textarea"},password:{"ui:widget":"password","ui:help":"Hint: Make it strong!"},date:{"ui:widget":"alt-datetime"},telephone:{"ui:options":{inputType:"tel"}}},formData:{lastName:"Norris",age:75,bio:"Roundhouse kicking asses since 1940",password:"noneed"}},LNr={schema:{type:"object",properties:{animal:{enum:["Cat","Fish"]}},allOf:[{if:{properties:{animal:{const:"Cat"}}},then:{properties:{food:{type:"string",enum:["meat","grass","fish"]}},required:["food"]}},{if:{properties:{animal:{const:"Fish"}}},then:{properties:{food:{type:"string",enum:["insect","worms"]},water:{type:"string",enum:["lake","sea"]}},required:["food","water"]}},{required:["animal"]}]},formData:{}},zNr={schema:{title:"A registration form",description:"A custom-field form example.",type:"object",definitions:{specialString:{$id:"/schemas/specialString",type:"string"}},properties:{mySpecialStringField:{$ref:"#/definitions/specialString"},mySpecialStringArray:{type:"array",items:{$ref:"#/definitions/specialString"}}}},uiSchema:{},formData:{mySpecialStringField:"special-text"}};var aY={exports:{}};function iY(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];typeof r=="object"&&!Object.isFrozen(r)&&iY(r)}),e}aY.exports=iY;aY.exports.default=iY;var VNr=aY.exports;const HNr=zt(VNr),WNr={Blank:{schema:{},uiSchema:{},formData:{}},Simple:cNr,"UI Options":jNr,Nested:lNr,Arrays:nNr,Numbers:uNr,Widgets:dNr,Ordering:fNr,References:pNr,Custom:mNr,Errors:hNr,Examples:vNr,Large:bNr,"Date & time":yNr,Validation:CNr,Files:xNr,Single:$Nr,"Custom Array":_Nr,"Custom Object":INr,Alternatives:RNr,"Property dependencies":FNr,"Schema dependencies":ONr,"Additional Properties":NNr,"Any Of":oNr,"Any Of with Custom Field":PNr,"One Of":aNr,"All Of":iNr,"If Then Else":LNr,"Null fields":ANr,"Enumerated objects":sNr,Nullable:DNr,ErrorSchema:MNr,Defaults:BNr,"Custom Field":zNr},gx=HNr(WNr);function qNr({shareURL:e,onShare:t}){const r=m.useRef(null);function n(){var o,a;(o=r.current)==null||o.select(),navigator.clipboard.writeText(((a=r.current)==null?void 0:a.value)??"")}return e?T.jsxs("div",{className:"input-group",children:[T.jsx("input",{type:"text",ref:r,className:"form-control",defaultValue:e}),T.jsx("span",{className:"input-group-btn",children:T.jsx("button",{className:"btn btn-default",type:"button",onClick:n,children:T.jsx("i",{className:"glyphicon glyphicon-copy"})})})]}):T.jsx("button",{className:"btn btn-default",type:"button",onClick:t,children:"Share"})}function UNr({theme:e,themes:t,select:r}){const n={type:"string",title:"Theme",enum:Object.keys(t)},o={"ui:placeholder":"Select theme"};return T.jsx(Ay,{className:"form_rjsf_themeSelector",idPrefix:"rjsf_themeSelector",schema:n,uiSchema:o,formData:e,validator:F1,onChange:({formData:a})=>a&&r(a,t[a]),children:T.jsx("div",{})})}function KNr({onSelected:e}){const[t,r]=m.useState("Simple");function n(o){return a=>{a.preventDefault(),r(o),setTimeout(()=>e(gx[o]),0)}}return T.jsx("ul",{className:"nav nav-pills",children:Object.keys(gx).map((o,a)=>T.jsx("li",{role:"presentation",className:t===o?"active":"",children:T.jsx("a",{href:"#",onClick:n(o),children:o})},a))})}function GNr({validator:e,validators:t,select:r}){const n={type:"string",title:"Validator",enum:Object.keys(t)},o={"ui:placeholder":"Select validator"};return T.jsx(Ay,{className:"form_rjsf_validatorSelector",idPrefix:"rjsf_validatorSelector",schema:n,uiSchema:o,formData:e,validator:F1,onChange:({formData:a})=>a&&r(a),children:T.jsx("div",{})})}const YNr={"ui:placeholder":"Select subtheme"};function XNr({subtheme:e,subthemes:t,select:r}){const n=m.useMemo(()=>({type:"string",title:"Subtheme",enum:Object.keys(t)}),[t]),o=m.useCallback(({formData:a})=>{if(a)return r(a,t[a])},[r,t]);return T.jsx(Ay,{className:"form_rjsf_subthemeSelector",idPrefix:"rjsf_subthemeSelector",schema:n,uiSchema:YNr,formData:e,validator:F1,onChange:o,children:T.jsx("div",{})})}function QNr({validator:e,schema:t,formData:r}){const[n,o]=m.useState(),a=()=>o(void 0),i=()=>o(e.rawValidation(t,r));let s="Validation not run";return n&&(s=n.errors||n.validationError?JSON.stringify(n,null,2):"No AJV errors encountered"),T.jsxs("div",{children:[T.jsxs("details",{style:{marginBottom:"10px"},children:[T.jsx("summary",{style:{display:"list-item"},children:"Raw Ajv Validation"}),"To determine whether a validation issue is really a BUG in Ajv use the button to trigger the raw Ajv validation. This will run your schema and formData through Ajv without involving any react-jsonschema-form specific code. If there is an unexpected error, then"," ",T.jsx("a",{href:"https://github.com/ajv-validator/ajv/issues/new/choose",target:"_blank",rel:"noreferrer",children:"file an issue"})," ","with Ajv instead."]}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("button",{className:"btn btn-default",type:"button",onClick:i,children:"Raw Validate"}),n&&T.jsxs(T.Fragment,{children:[T.jsx("span",{children:" "}),T.jsx("button",{className:"btn btn-default",type:"button",onClick:a,children:"Clear"})]})]}),T.jsx("textarea",{rows:4,readOnly:!0,disabled:!n,value:s})]})}const z3=({title:e,onClick:t,children:r,...n})=>T.jsx("button",{type:"button",className:"btn btn-default",title:e,onClick:t,...n,children:r});function ZNr({playGroundFormRef:e}){return T.jsxs(T.Fragment,{children:[T.jsx("label",{className:"control-label",children:"Programmatic"}),T.jsxs("div",{className:"btn-group",children:[T.jsx(z3,{title:"Click me to submit the form programmatically.",onClick:()=>e.current.submit(),children:"Submit"}),T.jsx(z3,{title:"Click me to validate the form programmatically.",onClick:()=>e.current.validateForm(),children:"Validate"}),T.jsx(z3,{title:"Click me to reset the form programmatically.",onClick:()=>e.current.reset(),children:"Reset"})]})]})}const JNr={type:"object",properties:{liveValidate:{type:"boolean",title:"Live validation"},disabled:{type:"boolean",title:"Disable whole form"},readonly:{type:"boolean",title:"Readonly whole form"},omitExtraData:{type:"boolean",title:"Omit extra data"},liveOmit:{type:"boolean",title:"Live omit"},noValidate:{type:"boolean",title:"Disable validation"},noHtml5Validate:{type:"boolean",title:"Disable HTML 5 validation"},focusOnFirstError:{type:"boolean",title:"Focus on 1st Error"}}},eDr={type:"object",properties:{showErrorList:{type:"string",default:"top",title:"Show Error List",enum:[!1,"top","bottom"]},experimental_defaultFormStateBehavior:{title:"Default Form State Behavior (Experimental)",type:"object",properties:{arrayMinItems:{type:"object",properties:{populate:{type:"string",default:"populate",title:"Populate minItems in arrays",oneOf:[{type:"string",title:"Populate remaining minItems with default values (legacy behavior)",enum:["all"]},{type:"string",title:"Only populate minItems with default values when field is required",enum:["requiredOnly"]},{type:"string",title:"Never populate minItems with default values",enum:["never"]}]},mergeExtraDefaults:{title:"Merge array defaults with formData",type:"boolean",default:!1}}},allOf:{type:"string",title:"allOf defaults behaviour",default:"skipDefaults",oneOf:[{type:"string",title:"Populate defaults with allOf",enum:["populateDefaults"]},{type:"string",title:"Skip populating defaults with allOf",enum:["skipDefaults"]}]},emptyObjectFields:{type:"string",title:"Object fields default behavior",default:"populateAllDefaults",oneOf:[{type:"string",title:"Assign value to formData when default is primitive, non-empty object field, or is required (legacy behavior)",enum:["populateAllDefaults"]},{type:"string",title:"Assign value to formData when default is an object and parent is required, or default is primitive and is required",enum:["populateRequiredDefaults"]},{type:"string",title:"Assign value to formData when only default is set",enum:["skipEmptyDefaults"]},{type:"string",title:"Does not set defaults",enum:["skipDefaults"]}]}}}}},tDr={experimental_defaultFormStateBehavior:{"ui:options":{label:!1},arrayMinItems:{"ui:options":{label:!1}}}};function rDr({schema:e,uiSchema:t,formData:r,shareURL:n,themes:o,theme:a,subtheme:i,validators:s,validator:l,liveSettings:u,playGroundFormRef:c,load:d,onThemeSelected:f,setSubtheme:p,setStylesheet:h,setValidator:v,setLiveSettings:b,setShareURL:g}){const y=m.useCallback((C,{stylesheet:x})=>{p(C),h(x)},[p,h]),S=m.useCallback(C=>{v(C)},[v]),w=m.useCallback(({formData:C})=>{b(x=>({...x,...C}))},[b]),$=m.useCallback(()=>{const{location:{origin:C,pathname:x}}=document;try{const E=RTe.encode(JSON.stringify({formData:r,schema:e,uiSchema:t,theme:a,liveSettings:u}));g(`${C}${x}#${E}`)}catch(E){g(null),console.error(E)}},[r,u,e,a,t,g]);return T.jsxs("div",{className:"page-header",children:[T.jsx("h1",{children:"react-jsonschema-form"}),T.jsxs("div",{className:"row",children:[T.jsx("div",{className:"col-sm-4",children:T.jsx(KNr,{onSelected:d})}),T.jsx("div",{className:"col-sm-2",children:T.jsx(Ay,{idPrefix:"rjsf_options",schema:JNr,formData:u,validator:F1,onChange:w,children:T.jsx("div",{})})}),T.jsx("div",{className:"col-sm-2",children:T.jsx(Ay,{idPrefix:"rjsf_options",schema:eDr,formData:u,validator:F1,onChange:w,uiSchema:tDr,children:T.jsx("div",{})})}),T.jsxs("div",{className:"col-sm-2",children:[T.jsx(UNr,{themes:o,theme:a,select:f}),o[a]&&o[a].subthemes&&T.jsx(XNr,{subthemes:o[a].subthemes,subtheme:i,select:y}),T.jsx(GNr,{validators:s,validator:l,select:S}),T.jsx(ZNr,{playGroundFormRef:c}),T.jsx("div",{style:{marginTop:"5px"}}),T.jsx(qNr,{shareURL:n,onShare:$})]}),T.jsx("div",{className:"col-sm-2",children:T.jsx(QNr,{validator:s[l],schema:e,formData:r})})]})]})}const K8=typeof GV({})=="function",nDr=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),oDr=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),OTe=(e,t=!1)=>{var a,i;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var c,d;const u=e.getColorSchemeSelector(s);u.startsWith("@")?r[u]={":root":{colorScheme:(c=l.palette)==null?void 0:c.mode}}:r[u.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let n={html:nDr(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...oDr(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const o=(i=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:i.styleOverrides;return o&&(n=[n,o]),n},IT="mui-ecs",aDr=e=>{const t=OTe(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${IT})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var i,s;const a=e.getColorSchemeSelector(n);a.startsWith("@")?r[a]={[`:root:not(:has(.${IT}))`]:{colorScheme:(i=o.palette)==null?void 0:i.mode}}:r[a.replace(/\s*&/,"")]={[`&:not(:has(.${IT}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},iDr=GV(K8?({theme:e,enableColorScheme:t})=>OTe(e,t):({theme:e})=>aDr(e));function sDr(e){const t=sn({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return T.jsxs(m.Fragment,{children:[K8&&T.jsx(iDr,{enableColorScheme:n}),!K8&&!n&&T.jsx("span",{className:IT,style:{display:"none"}}),r]})}var CF={},Yf={};Object.defineProperty(Yf,"__esModule",{value:!0});Yf.FrameContextConsumer=Yf.FrameContextProvider=Yf.FrameContext=void 0;var lDr=m,uDr=cDr(lDr);function cDr(e){return e&&e.__esModule?e:{default:e}}var NTe=void 0,DTe=void 0;typeof document<"u"&&(NTe=document);typeof window<"u"&&(DTe=window);var ATe=Yf.FrameContext=uDr.default.createContext({document:NTe,window:DTe}),dDr=ATe.Provider,fDr=ATe.Consumer;Yf.FrameContextProvider=dDr;Yf.FrameContextConsumer=fDr;var sY={},lY={};Object.defineProperty(lY,"__esModule",{value:!0});var pDr=function(){function e(t,r){for(var n=0;n
'};sY.default=uY;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FrameContextConsumer=e.FrameContext=void 0;var t=Yf;Object.defineProperty(e,"FrameContext",{enumerable:!0,get:function(){return t.FrameContext}}),Object.defineProperty(e,"FrameContextConsumer",{enumerable:!0,get:function(){return t.FrameContextConsumer}});var r=sY,n=o(r);function o(a){return a&&a.__esModule?a:{default:a}}e.default=n.default})(CF);const kDr=zt(CF);function PDr(e){const{children:t,head:r,theme:n,...o}=e,[a,i]=m.useState(),[s,l]=m.useState(!1),[u,c]=m.useState(new Map),[d,f]=m.useState($I({key:"css"})),[p,h]=m.useState(),[v,b]=m.useState(),g=m.useRef(),y=m.useCallback($=>{g.current={contentDocument:$?$.node.contentDocument:null,contentWindow:$?$.node.contentWindow:null}},[g]),S=m.useCallback(()=>{l(!0),i(wO({plugins:q7().plugins,insertionPoint:g.current.contentWindow["demo-frame-jss"]})),c(new Map),f($I({key:"css",prepend:!0,container:g.current.contentWindow["demo-frame-jss"]})),h(g.current.contentDocument.body),b(()=>g.current.contentWindow)},[]);let w=t;return n==="material-ui-4"?w=s?T.jsx(jXe,{jss:a,sheetsManager:u,children:m.cloneElement(t,{container:p,window:v})}):null:n==="mui"?w=s?T.jsxs(Pve,{value:d,children:[T.jsx(sDr,{}),m.cloneElement(t,{container:p,window:v})]}):null:n==="fluent-ui"?w=T.jsxs(T.Fragment,{children:[T.jsx("style",{dangerouslySetInnerHTML:{__html:"label { font-weight: normal; }"}}),r,t]}):n==="fluentui-rc"?w=T.jsx(CF.FrameContextConsumer,{children:EFt(e)}):n==="chakra-ui"?w=T.jsx(CF.FrameContextConsumer,{children:wbr(e)}):n==="antd"&&(w=s?T.jsx(E4t,{container:g.current.contentWindow["demo-frame-jss"],children:t}):null),T.jsxs(kDr,{ref:y,contentDidMount:S,head:r,...o,children:[T.jsx("div",{id:"demo-frame-jss"}),w]})}class TDr extends m.Component{constructor(r){super(r);A0(this,"resetErrorBoundary",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}render(){const{children:r}=this.props,{error:n,hasError:o}=this.state;return o?T.jsxs("div",{className:"alert alert-danger",children:[T.jsx("p",{children:"The following error was encountered:"}),T.jsx("pre",{children:n.message}),T.jsx("button",{className:"btn",onClick:this.resetErrorBoundary,children:"Refresh Form"})]}):r}}function IDr(){const[e,t]=m.useState(0),[r,n]=m.useState(0);return T.jsxs("div",{className:"geo",children:[T.jsx("h3",{children:"Hey, I'm a custom component"}),T.jsxs("p",{children:["I'm registered as ",T.jsx("code",{children:"geo"})," and referenced in",T.jsx("code",{children:"uiSchema"})," as the ",T.jsx("code",{children:"ui:field"})," to use for this schema."]}),T.jsxs("div",{className:"row",children:[T.jsxs("div",{className:"col-sm-6",children:[T.jsx("label",{children:"Latitude"}),T.jsx("input",{className:"form-control",type:"number",value:e,step:"0.00001",onChange:o=>t(parseFloat(o.target.value))})]}),T.jsxs("div",{className:"col-sm-6",children:[T.jsx("label",{children:"Longitude"}),T.jsx("input",{className:"form-control",type:"number",value:r,step:"0.00001",onChange:o=>n(parseFloat(o.target.value))})]})]})]})}function RDr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xue(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function ODr(e,t){if(e==null)return{};var r=FDr(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NDr(e,t){return DDr(e)||ADr(e,t)||MDr(e,t)||BDr()}function DDr(e){if(Array.isArray(e))return e}function ADr(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function MDr(e,t){if(e){if(typeof e=="string")return Que(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Que(e,t)}}function Que(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?e.apply(this,o):function(){for(var i=arguments.length,s=new Array(i),l=0;l1&&arguments[1]!==void 0?arguments[1]:{};EP.initial(e),EP.handler(t);var r={current:e},n=rC(ZDr)(r,t),o=rC(QDr)(r),a=rC(EP.changes)(e),i=rC(XDr)(r);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return EP.selector(u),u(r.current)}function l(u){LDr(n,o,a,i)(u)}return[s,l]}function XDr(e,t){return Z$(t)?t(e.current):t}function QDr(e,t){return e.current=Jue(Jue({},e.current),t),t}function ZDr(e,t,r){return Z$(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var JDr={create:YDr},eAr={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function tAr(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a=e.length?e.apply(this,o):function(){for(var i=arguments.length,s=new Array(i),l=0;l{n.current=!1}:e,t)}var dl=_Ar;function bx(){}function Qb(e,t,r,n){return kAr(e,n)||PAr(e,t,r,n)}function kAr(e,t){return e.editor.getModel(KTe(e,t))}function PAr(e,t,r,n){return e.editor.createModel(t,r,n?KTe(e,n):void 0)}function KTe(e,t){return e.Uri.parse(t)}function TAr({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:i,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:d={},height:f="100%",width:p="100%",className:h,wrapperProps:v={},beforeMount:b=bx,onMount:g=bx}){let[y,S]=m.useState(!1),[w,$]=m.useState(!0),C=m.useRef(null),x=m.useRef(null),E=m.useRef(null),_=m.useRef(g),k=m.useRef(b),I=m.useRef(!1);UTe(()=>{let A=WTe.init();return A.then(M=>(x.current=M)&&$(!1)).catch(M=>(M==null?void 0:M.type)!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>C.current?O():A.cancel()}),dl(()=>{if(C.current&&x.current){let A=C.current.getOriginalEditor(),M=Qb(x.current,e||"",n||r||"text",a||"");M!==A.getModel()&&A.setModel(M)}},[a],y),dl(()=>{if(C.current&&x.current){let A=C.current.getModifiedEditor(),M=Qb(x.current,t||"",o||r||"text",i||"");M!==A.getModel()&&A.setModel(M)}},[i],y),dl(()=>{let A=C.current.getModifiedEditor();A.getOption(x.current.editor.EditorOption.readOnly)?A.setValue(t||""):t!==A.getValue()&&(A.executeEdits("",[{range:A.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),A.pushUndoStop())},[t],y),dl(()=>{var A,M;(M=(A=C.current)==null?void 0:A.getModel())==null||M.original.setValue(e||"")},[e],y),dl(()=>{let{original:A,modified:M}=C.current.getModel();x.current.editor.setModelLanguage(A,n||r||"text"),x.current.editor.setModelLanguage(M,o||r||"text")},[r,n,o],y),dl(()=>{var A;(A=x.current)==null||A.editor.setTheme(u)},[u],y),dl(()=>{var A;(A=C.current)==null||A.updateOptions(d)},[d],y);let N=m.useCallback(()=>{var L;if(!x.current)return;k.current(x.current);let A=Qb(x.current,e||"",n||r||"text",a||""),M=Qb(x.current,t||"",o||r||"text",i||"");(L=C.current)==null||L.setModel({original:A,modified:M})},[r,t,o,e,n,a,i]),z=m.useCallback(()=>{var A;!I.current&&E.current&&(C.current=x.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...d}),N(),(A=x.current)==null||A.editor.setTheme(u),S(!0),I.current=!0)},[d,u,N]);m.useEffect(()=>{y&&_.current(C.current,x.current)},[y]),m.useEffect(()=>{!w&&!y&&z()},[w,y,z]);function O(){var M,L,j,H;let A=(M=C.current)==null?void 0:M.getModel();s||((L=A==null?void 0:A.original)==null||L.dispose()),l||((j=A==null?void 0:A.modified)==null||j.dispose()),(H=C.current)==null||H.dispose()}return Y.createElement(qTe,{width:p,height:f,isEditorReady:y,loading:c,_ref:E,className:h,wrapperProps:v})}var IAr=TAr;m.memo(IAr);function RAr(e){let t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}var FAr=RAr,_P=new Map;function OAr({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:a,theme:i="light",line:s,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:f=!1,width:p="100%",height:h="100%",className:v,wrapperProps:b={},beforeMount:g=bx,onMount:y=bx,onChange:S,onValidate:w=bx}){let[$,C]=m.useState(!1),[x,E]=m.useState(!0),_=m.useRef(null),k=m.useRef(null),I=m.useRef(null),N=m.useRef(y),z=m.useRef(g),O=m.useRef(),A=m.useRef(n),M=FAr(a),L=m.useRef(!1),j=m.useRef(!1);UTe(()=>{let F=WTe.init();return F.then(V=>(_.current=V)&&E(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>k.current?B():F.cancel()}),dl(()=>{var V,D,P,R;let F=Qb(_.current,e||n||"",t||o||"",a||r||"");F!==((V=k.current)==null?void 0:V.getModel())&&(d&&_P.set(M,(D=k.current)==null?void 0:D.saveViewState()),(P=k.current)==null||P.setModel(F),d&&((R=k.current)==null||R.restoreViewState(_P.get(a))))},[a],$),dl(()=>{var F;(F=k.current)==null||F.updateOptions(u)},[u],$),dl(()=>{!k.current||n===void 0||(k.current.getOption(_.current.editor.EditorOption.readOnly)?k.current.setValue(n):n!==k.current.getValue()&&(j.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),k.current.pushUndoStop(),j.current=!1))},[n],$),dl(()=>{var V,D;let F=(V=k.current)==null?void 0:V.getModel();F&&o&&((D=_.current)==null||D.editor.setModelLanguage(F,o))},[o],$),dl(()=>{var F;s!==void 0&&((F=k.current)==null||F.revealLine(s))},[s],$),dl(()=>{var F;(F=_.current)==null||F.editor.setTheme(i)},[i],$);let H=m.useCallback(()=>{var F;if(!(!I.current||!_.current)&&!L.current){z.current(_.current);let V=a||r,D=Qb(_.current,n||e||"",t||o||"",V||"");k.current=(F=_.current)==null?void 0:F.editor.create(I.current,{model:D,automaticLayout:!0,...u},c),d&&k.current.restoreViewState(_P.get(V)),_.current.editor.setTheme(i),s!==void 0&&k.current.revealLine(s),C(!0),L.current=!0}},[e,t,r,n,o,a,u,c,d,i,s]);m.useEffect(()=>{$&&N.current(k.current,_.current)},[$]),m.useEffect(()=>{!x&&!$&&H()},[x,$,H]),A.current=n,m.useEffect(()=>{var F,V;$&&S&&((F=O.current)==null||F.dispose(),O.current=(V=k.current)==null?void 0:V.onDidChangeModelContent(D=>{j.current||S(k.current.getValue(),D)}))},[$,S]),m.useEffect(()=>{if($){let F=_.current.editor.onDidChangeMarkers(V=>{var P;let D=(P=k.current.getModel())==null?void 0:P.uri;if(D&&V.find(R=>R.path===D.path)){let R=_.current.editor.getModelMarkers({resource:D});w==null||w(R)}});return()=>{F==null||F.dispose()}}return()=>{}},[$,w]);function B(){var F,V;(F=O.current)==null||F.dispose(),f?d&&_P.set(a,k.current.saveViewState()):(V=k.current.getModel())==null||V.dispose(),k.current.dispose()}return Y.createElement(qTe,{width:p,height:h,isEditorReady:$,loading:l,_ref:I,className:v,wrapperProps:b})}var NAr=OAr,DAr=m.memo(NAr),AAr=DAr;const MAr={minimap:{enabled:!1},automaticLayout:!0};function kP({title:e,code:t,onChange:r}){const[n,o]=m.useState(!0),a=m.useCallback(l=>{if(l)try{const u=JSON.parse(l);o(!0),r(u)}catch{o(!1)}},[o,r]),i=n?"ok":"remove",s=n?"valid":"invalid";return T.jsxs("div",{className:"panel panel-default",children:[T.jsxs("div",{className:"panel-heading",children:[T.jsx("span",{className:`${s} glyphicon glyphicon-${i}`})," "+e]}),T.jsx(AAr,{language:"json",value:t,theme:"vs-light",onChange:a,height:400,options:MAr})]})}const PP=e=>JSON.stringify(e,null,2);function BAr({extraErrors:e,formData:t,schema:r,uiSchema:n,setExtraErrors:o,setFormData:a,setSchema:i,setShareURL:s,setUiSchema:l}){const u=m.useCallback(p=>{i(p),s(null)},[i,s]),c=m.useCallback(p=>{l(p),s(null)},[l,s]),d=m.useCallback(p=>{Ofe(p,t,(h,v)=>JSON.stringify(v)===JSON.stringify(h))||(a(p),s(null))},[t,a,s]),f=m.useCallback(p=>{o(p),s(null)},[o,s]);return T.jsxs("div",{className:"col-sm-7",children:[T.jsx(kP,{title:"JSONSchema",code:PP(r),onChange:u}),T.jsxs("div",{className:"row",children:[T.jsx("div",{className:"col-sm-6",children:T.jsx(kP,{title:"UISchema",code:PP(n),onChange:c})}),T.jsx("div",{className:"col-sm-6",children:T.jsx(kP,{title:"formData",code:PP(t),onChange:d})})]}),e&&T.jsx("div",{className:"row",children:T.jsx("div",{className:"col",children:T.jsx(kP,{title:"extraErrors",code:PP(e||{}),onChange:f})})})]})}const tce=["red","green","blue"],jAr=({onChange:e,formData:t})=>{const[r,n]=m.useState(t||""),o=tce[r.length%tce.length];return T.jsxs("div",{className:"SpecialInput",children:[T.jsx("h3",{children:"Hey, I'm a custom component"}),T.jsxs("p",{children:["I'm registered as ",T.jsx("code",{children:"/schemas/specialString"})," and referenced in",T.jsx("code",{children:"Form"}),"'s ",T.jsx("code",{children:"field"})," prop to use for this schema anywhere this schema ",T.jsx("code",{children:"$id"})," is used."]}),T.jsx("div",{className:"row",children:T.jsxs("div",{className:"col-sm-6",children:[T.jsx("label",{children:"SpecialInput"}),T.jsx("input",{className:"form-control",style:{background:o,color:"white",fontSize:14},value:r,onChange:({target:{value:a}})=>{e(a),n(a)}})]})})]})};function LAr({themes:e,validators:t}){const[r,n]=m.useState(!1),[o,a]=m.useState(gx.Simple.schema),[i,s]=m.useState(gx.Simple.uiSchema),[l,u]=m.useState(gx.Simple.formData),[c,d]=m.useState(),[f,p]=m.useState(null),[h,v]=m.useState("default"),[b,g]=m.useState(null),[y,S]=m.useState(null),[w,$]=m.useState("AJV8"),[C,x]=m.useState(!1),[E,_]=m.useState({showErrorList:"top",validate:!1,disabled:!1,noHtml5Validate:!1,readonly:!1,omitExtraData:!1,liveOmit:!1,experimental_defaultFormStateBehavior:{arrayMinItems:"populate",emptyObjectFields:"populateAllDefaults"}}),[k,I]=m.useState(Fd({})),[N,z]=m.useState({}),O=m.useRef(null),A=m.useCallback((H,{stylesheet:B,theme:F})=>{v(H),g(null),I(Fd(F)),S(B)},[v,g,I,S]),M=m.useCallback(H=>{const{schema:B,uiSchema:F={},templates:V={},fields:D={},formData:P,theme:R=h,extraErrors:W,liveSettings:U,...q}=H,J=R==="material-ui-5"?"mui":R;A(J,e[J]),x(!1),a(B),s(F),u(P),d(W),v(J),x(!0),_(U),z({fields:D,templates:V,...q})},[h,A,e]);m.useEffect(()=>{const H=document.location.hash.match(/#(.*)/);if(H&&typeof H[1]=="string"&&H[1].length>0&&!r){try{const B=RTe.decode(H[1]);M(JSON.parse(B)),n(!0)}catch(B){alert("Unable to load form setup data."),console.error(B)}return}A(h,e[h]),x(!0)},[A,M,r,x,h,e]);const L=m.useCallback(({formData:H},B)=>{B&&console.log("Field changed, id: ",B),u(H),p(null)},[u,p]),j=m.useCallback(({formData:H},B)=>{console.log("submitted formData",H),console.log("submit event",B),window.alert("Form submitted")},[]);return T.jsxs(T.Fragment,{children:[T.jsx(rDr,{schema:o,uiSchema:i,formData:l,shareURL:f,themes:e,theme:h,subtheme:b,validators:t,validator:w,liveSettings:E,playGroundFormRef:O,load:M,onThemeSelected:A,setSubtheme:g,setStylesheet:S,setValidator:$,setLiveSettings:_,setShareURL:p}),T.jsx(BAr,{formData:l,setFormData:u,schema:o,setSchema:a,uiSchema:i,setUiSchema:s,extraErrors:c,setExtraErrors:d,setShareURL:p}),T.jsx("div",{className:"col-sm-5",children:T.jsx(TDr,{children:C&&T.jsx(PDr,{head:T.jsx(T.Fragment,{children:T.jsx("link",{rel:"stylesheet",id:"theme",href:y||""})}),style:{width:"100%",height:1e3,border:0},theme:h,children:T.jsx(k,{...N,...E,extraErrors:c,schema:o,uiSchema:i,formData:l,fields:{geo:IDr,"/schemas/specialString":jAr},validator:t[w],onChange:L,onSubmit:j,onBlur:(H,B)=>console.log(`Touched ${H} with value ${B}`),onFocus:(H,B)=>console.log(`Focused ${H} with value ${B}`),onError:H=>console.log("errors",H),ref:O})})})})]})}const zAr=z_({},V2r),VAr=z_({AjvClass:yFr}),HAr=z_({AjvClass:eNr}),WAr=z_({ajvOptionsOverrides:{discriminator:!0}}),qAr={AJV8:F1,"AJV8 (discriminator)":WAr,AJV8_es:zAr,AJV8_2019:VAr,AJV8_2020:HAr,"AJV6 (deprecated)":L2r},UAr={default:{stylesheet:"//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css",theme:{},subthemes:{cerulean:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/cerulean/bootstrap.min.css"},cosmo:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/cosmo/bootstrap.min.css"},cyborg:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/cyborg/bootstrap.min.css"},darkly:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/darkly/bootstrap.min.css"},flatly:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/flatly/bootstrap.min.css"},journal:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/journal/bootstrap.min.css"},lumen:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/lumen/bootstrap.min.css"},paper:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/paper/bootstrap.min.css"},readable:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/readable/bootstrap.min.css"},sandstone:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/sandstone/bootstrap.min.css"},simplex:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/simplex/bootstrap.min.css"},slate:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/slate/bootstrap.min.css"},spacelab:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/spacelab/bootstrap.min.css"},"solarized-dark":{stylesheet:"//cdn.rawgit.com/aalpern/bootstrap-solarized/master/bootstrap-solarized-dark.css"},"solarized-light":{stylesheet:"//cdn.rawgit.com/aalpern/bootstrap-solarized/master/bootstrap-solarized-light.css"},superhero:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/superhero/bootstrap.min.css"},united:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/united/bootstrap.min.css"},yeti:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/yeti/bootstrap.min.css"}}},antd:{stylesheet:"//cdnjs.cloudflare.com/ajax/libs/antd/4.1.4/antd.min.css",theme:SQt},"bootstrap-4":{stylesheet:"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css",theme:BJt},"chakra-ui":{stylesheet:"",theme:gbr},"fluent-ui":{stylesheet:"//static2.sharepointonline.com/files/fabric/office-ui-fabric-core/11.0.0/css/fabric.min.css",theme:UCt},"fluentui-rc":{stylesheet:"",theme:CFt},"material-ui-4":{stylesheet:"",theme:Dnt},mui:{stylesheet:"",theme:Bpt},"semantic-ui":{stylesheet:"//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css",theme:jBt}};function KAr(){return T.jsx(rNr,{children:T.jsx(LAr,{themes:UAr,validators:qAr})})}uo.render(T.jsx(KAr,{}),document.getElementById("app"))});export default GAr(); diff --git a/docs/404.html b/docs/404.html index 993c2391bb..d18cf6a6e2 100644 --- a/docs/404.html +++ b/docs/404.html @@ -4,13 +4,13 @@ Page Not Found | react-jsonschema-form - +

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/docs/advanced-customization/custom-templates/index.html b/docs/advanced-customization/custom-templates/index.html index 5738275d56..66be7f5251 100644 --- a/docs/advanced-customization/custom-templates/index.html +++ b/docs/advanced-customization/custom-templates/index.html @@ -4,7 +4,7 @@ Custom Templates | react-jsonschema-form - + @@ -45,7 +45,7 @@ You can customize the MoveUpButton to render something other than the icon button that is provided by a theme as follows:

import React from 'react';
import { IconButtonProps, RJSFSchema } from '@rjsf/utils';
import { FormattedMessage } from 'react-intl';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'string',
};

function MoveUpButton(props: IconButtonProps) {
const { icon, iconType, ...btnProps } = props;
return (
<button {...btnProps}>
{icon} <FormattedMessage defaultMessage='Move Up' />
</button>
);
}

render(
<Form schema={schema} validator={validator} templates={{ ButtonTemplates: { MoveUpButton } }} />,
document.getElementById('app')
);

RemoveButton

The RemoveButton is used to render a remove action on a Form for both a existing additionalProperties element for an object or an existing element in an array. You can customize the RemoveButton to render something other than the icon button that is provided by a theme as follows:

import React from 'react';
import { IconButtonProps, RJSFSchema } from '@rjsf/utils';
import { FormattedMessage } from 'react-intl';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'string',
};

function RemoveButton(props: IconButtonProps) {
const { icon, iconType, ...btnProps } = props;
return (
<button {...btnProps}>
{icon} <FormattedMessage defaultMessage='Remove' />
</button>
);
}

render(
<Form schema={schema} validator={validator} templates={{ ButtonTemplates: { RemoveButton } }} />,
document.getElementById('app')
);

SubmitButton

The SubmitButton is already very customizable via the UISchemaSubmitButtonOptions capabilities in the uiSchema but it can also be fully customized as you see fit.

NOTE: However you choose to implement this, making it something other than a submit type button may result in the Form not submitting when pressed. You could also choose to provide your own submit button as the children prop of the Form should you so choose.

import React from 'react';
import { getSubmitButtonOptions, RJSFSchema, SubmitButtonProps } from '@rjsf/utils';
import { FormattedMessage } from 'react-intl';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'string',
};

function SubmitButton(props: SubmitButtonProps) {
const { uiSchema } = props;
const { norender } = getSubmitButtonOptions(uiSchema);
if (norender) {
return null;
}
return (
<button type='submit'>
<FormattedMessage defaultMessage='Okay' />
</button>
);
}

render(
<Form schema={schema} validator={validator} templates={{ ButtonTemplates: { SubmitButton } }} />,
document.getElementById('app')
);

The following prop is passed to a SubmitButton:

  • uiSchema: The uiSchema object for this field, used to extract the UISchemaSubmitButtonOptions.
  • registry: The registry object.
- + \ No newline at end of file diff --git a/docs/advanced-customization/custom-themes/index.html b/docs/advanced-customization/custom-themes/index.html index e06cc4cced..8340f4cb16 100644 --- a/docs/advanced-customization/custom-themes/index.html +++ b/docs/advanced-customization/custom-themes/index.html @@ -4,7 +4,7 @@ Custom Themes | react-jsonschema-form - + @@ -16,7 +16,7 @@ Thus, for each default widget or field not specified/overridden, the themed-form will rely on the defaults from the rjsf Form. Note that you are not required to pass in either custom widgets, fields or templates when using the custom-themed HOC component; you can essentially redefine the default Form by simply doing const Form = withTheme({});.

Widgets and fields

widgets and fields should be in the same format as shown here.

Example theme with custom widget:

import { WidgetProps, RegistryWidgetsType } from '@rjsf/utils';
import { ThemeProps } from '@rjsf/core';

const MyCustomWidget = (props: WidgetProps) => {
return (
<input
type='text'
className='custom'
value={props.value}
required={props.required}
onChange={(event) => props.onChange(event.target.value)}
/>
);
};

const myWidgets: RegistryWidgetsType = {
myCustomWidget: MyCustomWidget,
};

const ThemeObject: ThemeProps = { widgets: myWidgets };
export default ThemeObject;

The above can be similarly done for fields and templates.

Templates

Each template should be passed into the theme object via the templates object just as you would into the rjsf Form component. Here is an example of how to use a custom ArrayFieldTemplate and ErrorListTemplate in the theme object:

import { ArrayFieldTemplateProps, ErrorListProps } from '@rjsf/utils';
import { ThemeProps } from '@rjsf/core';

function MyArrayFieldTemplate(props: ArrayFieldTemplateProps) {
return (
<div>
{props.items.map((element) => element.children)}
{props.canAdd && <button type='button' onClick={props.onAddClick}></button>}
</div>
);
}

function MyErrorListTemplate(props: ErrorListProps) {
const { errors } = props;
return (
<ul>
{errors.map((error) => (
<li key={error.stack}>{error.stack}</li>
))}
</ul>
);
}

const ThemeObject: ThemeProps = {
templates: {
ArrayFieldTemplate: MyArrayFieldTemplate,
ErrorListTemplate: MyErrorListTemplate,
},
widgets: myWidgets,
};

export default ThemeObject;

Overriding other Form props

Just as the theme can override widgets, fields, any of the templates, and set default values to properties like showErrorList, you can do the same with the instance of the withTheme() Form component.

import { ThemeProps } from '@rjsf/core';

const ThemeObject: ThemeProps = {
templates: {
ArrayFieldTemplate: MyArrayFieldTemplate,
},
fields: myFields,
showErrorList: false,
widgets: myWidgets,
};

Thus, the user has higher priority than the withTheme HOC, and the theme has higher priority than the default values of the rjsf Form component (User > Theme > Defaults).

- + \ No newline at end of file diff --git a/docs/advanced-customization/custom-widgets-fields/index.html b/docs/advanced-customization/custom-widgets-fields/index.html index 6f5d7420f3..618a842786 100644 --- a/docs/advanced-customization/custom-widgets-fields/index.html +++ b/docs/advanced-customization/custom-widgets-fields/index.html @@ -4,7 +4,7 @@ Custom Widgets and Fields | react-jsonschema-form - + @@ -13,7 +13,7 @@ The way to do this varies based upon whether you are using core or some other theme (such as mui).

Here is an example of modifying the SelectWidget to change the ordering of enumOptions:

import { WidgetProps } from '@rjsf/utils';
import { getDefaultRegistry } from '@rjsf/core';
import { Widgets } from '@rjsf/mui';

import myOptionsOrderFunction from './myOptionsOrderFunction';

const {
widgets: { SelectWidget },
} = getDefaultRegistry(); // To get widgets from core
// const { SelectWidget } = Widgets; // To get widgets from a theme do this

function MySelectWidget(props: WidgetProps) {
const { options } = props;
let { enumOptions } = options;
// Reorder the `enumOptions` however you want
enumOptions = myOptionsOrderFunction(enumOptions);
return <SelectWidget {...props} options={{ ...options, enumOptions }} />;
}

Custom field components

You can provide your own field components to a uiSchema for basically any json schema data type, by specifying a ui:field property.

For example, let's create and register a dumb geo component handling a latitude and a longitude:

import { RJSFSchema, UiSchema, FieldProps, RegistryFieldsType } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
required: ['lat', 'lon'],
properties: {
lat: { type: 'number' },
lon: { type: 'number' },
},
};

// Define a custom component for handling the root position object
class GeoPosition extends React.Component<FieldProps> {
constructor(props: FieldProps) {
super(props);
this.state = { ...props.formData };
}

onChange(name) {
return (event) => {
this.setState(
{
[name]: parseFloat(event.target.value),
},
() => this.props.onChange(this.state)
);
};
}

render() {
const { lat, lon } = this.state;
return (
<div>
<input type='number' value={lat} onChange={this.onChange('lat')} />
<input type='number' value={lon} onChange={this.onChange('lon')} />
</div>
);
}
}

// Define the custom field component to use for the root object
const uiSchema: UiSchema = { 'ui:field': 'geo' };

// Define the custom field components to register; here our "geo"
// custom field component
const fields: RegistryFieldsType = { geo: GeoPosition };

// Render the form with all the properties we just defined passed
// as props
render(
<Form schema={schema} uiSchema={uiSchema} validator={validator} fields={fields} />,
document.getElementById('app')
);

Note: Registered fields can be reused across the entire schema.

Field props

A field component will always be passed the following props:

  • schema: The JSON subschema object for this field;
  • uiSchema: The uiSchema for this field;
  • idSchema: The tree of unique ids for every child field;
  • formData: The data for this field;
  • errorSchema: The tree of errors for this field and its children;
  • registry: A registry object (read next).
  • formContext: A formContext object (read next).
  • required: The required status of this field;
  • disabled: A boolean value stating if the field is disabled;
  • readonly: A boolean value stating if the field is read-only;
  • autofocus: A boolean value stating if the field should autofocus;
  • name: The unique name of the field, usually derived from the name of the property in the JSONSchema
  • idPrefix: To avoid collisions with existing ids in the DOM, it is possible to change the prefix used for ids; Default is root
  • idSeparator: To avoid using a path separator that is present in field names, it is possible to change the separator used for ids (Default is _)
  • rawErrors: `An array of strings listing all generated error messages from encountered errors for this field
  • onChange: The field change event handler; called with the updated form data and an optional ErrorSchema
  • onBlur: The input blur event handler; call it with the field id and value;
  • onFocus: The input focus event handler; call it with the field id and value;

The registry object

The registry is an object containing the registered core, theme and custom fields and widgets as well as the root schema, form context, schema utils.

  • fields: The set of all fields used by the Form. Includes fields from core, theme-specific fields and any custom registered fields;
  • widgets: The set of all widgets used by the Form. Includes widgets from core, theme-specific widgets and any custom registered widgets, if any;
  • rootSchema: The root schema, as passed to the Form, which can contain referenced definitions;
  • formContext: The formContext that was passed to Form;
  • schemaUtils: The current implementation of the SchemaUtilsType (from @rjsf/utils) in use by the Form. Used to call any of the validation-schema-based utility functions.

The registry is passed down the component tree, so you can access it from your custom field, custom widget, custom template and SchemaField components.

Custom SchemaField

Warning: This is a powerful feature as you can override the whole form behavior and easily mess it up. Handle with care.

You can provide your own implementation of the SchemaField base React component for rendering any JSONSchema field type, including objects and arrays. This is useful when you want to augment a given field type with supplementary powers.

To proceed so, pass a fields object having a SchemaField property to your Form component; here's an example:

import { RJSFSchema, FieldProps, RegistryFieldsType } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const CustomSchemaField = function (props: FieldProps) {
return (
<div id='custom'>
<p>Yeah, I'm pretty dumb.</p>
<div>My props are: {JSON.stringify(props)}</div>
</div>
);
};

const fields: RegistryFieldsType = {
SchemaField: CustomSchemaField,
};

const schema: RJSFSchema = {
type: 'string',
};

render(<Form schema={schema} validator={validator} fields={fields} />, document.getElementById('app'));

If you're curious how this could ever be useful, have a look at the Kinto formbuilder repository to see how it's used to provide editing capabilities to any form field.

Props passed to a custom SchemaField are the same as the ones passed to a custom field.

Custom ArraySchemaField

Everything that was mentioned above for a Custom SchemaField applies, but this is only used to render the Array item children that are then passed to the ArrayFieldItemTemplate. By default, ArraySchemaField is not actually implemented in the fields list since ArrayField falls back to SchemaField if ArraySchemaField is not provided. If you want to customize how the individual items for an array are rendered, provide your implementation of ArraySchemaField as a fields override.

import { RJSFSchema, UiSchema, FieldProps, RegistryFieldsType } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const CustomArraySchemaField = function (props: FieldProps) {
const { index, registry } = props;
const { SchemaField } = registry.fields;
const name = `Index ${index}`;
return <SchemaField {...props} name={name} />;
};

const fields: RegistryFieldsType = {
ArraySchemaField: CustomArraySchemaField,
};

const schema: RJSFSchema = {
type: 'string',
};

render(<Form schema={schema} validator={validator} fields={fields} />, document.getElementById('app'));

Custom Field by Id

Warning: This is a powerful feature as you can override the whole form behavior and easily mess it up. Handle with care.

You can provide your own implementation of the field component that applies to any schema or sub-schema based on the schema's $id value. This is useful when your custom field should be conditionally applied based on the schema rather than the property name or data type.

To provide a custom field in this way, the fields prop should be an object which contains a key that matches the $id value of the schema which should have a custom field; here's an example:

import { RJSFSchema, FieldProps, RegistryFieldsType } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const CustomIdField = function (props: FieldProps) {
return (
<div id='custom'>
<p>Yeah, I'm pretty dumb.</p>
<div>My props are: {JSON.stringify(props)}</div>
</div>
);
};

const fields: RegistryFieldsType = {
'/schemas/my-id': CustomIdField,
};

const schema: RJSFSchema = {
$id: '/schemas/my-id',
type: 'string',
};

render(<Form schema={schema} validator={validator} fields={fields} />, document.getElementById('app'));

Wrapping an existing field to customize it

Sometimes you just need to customize the properties that are passed to an existing field.

Here is an example of wrapping the ObjectField to tweak the onChange handler to look for a specific kind of bad data:

import { useCallback } from 'react';
import { FieldProps } from '@rjsf/utils';
import { getDefaultRegistry } from '@rjsf/core';

import checkBadData from './checkBadData';

const {
fields: { ObjectField },
} = getDefaultRegistry();

function MyObjectField(props: FieldProps) {
const { onChange } = props;
const onChangeHandler = useCallback(
(newFormData: T | undefined, es?: ErrorSchema<T>, id?: string) => {
let data = newFormData;
let error = es;
if (checkBadData(newFormData)) {
// Format the `error` and fix the `data` here
}
onChange(data, error, id);
},
[onChange]
);
return <ObjectField {...props} onChange={onChangeHandler} />;
}
- + \ No newline at end of file diff --git a/docs/advanced-customization/index.html b/docs/advanced-customization/index.html index f53640d9d8..8e844214aa 100644 --- a/docs/advanced-customization/index.html +++ b/docs/advanced-customization/index.html @@ -4,13 +4,13 @@ Advanced Customization | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/advanced-customization/internals/index.html b/docs/advanced-customization/internals/index.html index f765a102d4..28e16c8a83 100644 --- a/docs/advanced-customization/internals/index.html +++ b/docs/advanced-customization/internals/index.html @@ -4,7 +4,7 @@ Internals | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v5

Internals

Miscellaneous internals of react-jsonschema-form are listed here.

JSON Schema supporting status

This component follows JSON Schema specs. We currently support JSON Schema-07 by default, but we also support other JSON schema versions through the custom schema validation feature. Due to the limitation of form widgets, there are some exceptions as follows:

  • additionalItems keyword for arrays

    This keyword works when items is an array. additionalItems: true is not supported because there's no widget to represent an item of any type. In this case it will be treated as no additional items allowed. additionalItems being a valid schema is supported.

  • anyOf, allOf, and oneOf, or multiple types (i.e. "type": ["string", "array"])

    The anyOf and oneOf keywords are supported; however, properties declared inside the anyOf/oneOf should not overlap with properties "outside" of the anyOf/oneOf.

    You can also use oneOf with schema dependencies to dynamically add schema properties based on input data.

    The allOf keyword is supported; it uses json-schema-merge-allof to merge subschemas to render the final combined schema in the form. When these subschemas are incompatible, though (or if the library has an error merging it), the allOf keyword is dropped from the schema.

  • "additionalProperties":false produces incorrect schemas when used with schema dependencies. This library does not remove extra properties, which causes validation to fail. It is recommended to avoid setting "additionalProperties":false when you use schema dependencies. See #848 #902 #992

Handling of schema defaults

This library automatically fills default values defined in the JSON Schema as initial values in your form. This also works for complex structures in the schema. If a field has a default defined, it should always appear as default value in form. This also works when using schema dependencies.

Since there is a complex interaction between any supplied original form data and any injected defaults, this library tries to do the injection in a way which keeps the original intention of the original form data.

Check out the defaults example on the live playground to see this in action.

Merging of defaults into the form data

There are three different cases which need to be considered for the merging. Objects, arrays and scalar values. This library always deeply merges any defaults with the existing form data for objects.

This are the rules which are used when injecting the defaults:

  • When there is a scalar in the form data, nothing is changed.
  • When the value is undefined in the form data, the default is created in the form data.
  • When the value is an object in the form data, the defaults are deeply merged into the form data, using the rules defined here for the deep merge.
  • Then the value is an array in the form data, defaults are only injected in existing array items. No new array items will be created, even if the schema has minItems or additional items defined.

Merging of defaults within the schema

In the schema itself, defaults of parent elements are propagated into children. So when you have a schema which defines a deeply nested object as default, these defaults will be applied to children of the current node. This also merges objects defined at different levels together with the "deeper" not having precedence. If the parent node defines properties, which are not defined in the child, they will be merged so that the default for the child will be the merged defaults of parent and child.

For arrays this is not the case. Defining an array, when a parent also defines an array, will be overwritten. This is only true when arrays are used in the same level, for objects within these arrays, they will be deeply merged again.

Custom array field buttons

The ArrayField component provides a UI to add, copy, remove and reorder array items, and these buttons use Bootstrap glyphicons. If you don't use glyphicons but still want to provide your own icons or texts for these buttons, you can easily do so using CSS:

NOTE this only applies to the @rjsf/core theme

i.glyphicon {
display: none;
}
.btn-add::after {
content: 'Add';
}
.array-item-copy::after {
content: 'Copy';
}
.array-item-move-up::after {
content: 'Move Up';
}
.array-item-move-down::after {
content: 'Move Down';
}
.array-item-remove::after {
content: 'Remove';
}

Submit form programmatically

You can use the reference to get your Form component and call the submit method to submit the form programmatically without a submit button. This method will dispatch the submit event of the form, and the function, that is passed to onSubmit props, will be called.

import { createRef } from 'react';
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import { Form } from '@rjsf/core';
import validator from '@rjsf/validator-ajv8';

const onSubmit = ({ formData }) => console.log('Data submitted: ', formData);
let yourForm;

const schema: RJSFSchema = {
type: 'string',
};

const formRef = createRef<Form>();

render(
<Form schema={schema} validator={validator} onSubmit={onSubmit} ref={formRef} />,
document.getElementById('app')
);

formRef.current.submit();
- + \ No newline at end of file diff --git a/docs/advanced-customization/typescript/index.html b/docs/advanced-customization/typescript/index.html index 8d5e9eef26..7013c26c4c 100644 --- a/docs/advanced-customization/typescript/index.html +++ b/docs/advanced-customization/typescript/index.html @@ -4,7 +4,7 @@ Typescript Support | react-jsonschema-form - + @@ -19,7 +19,7 @@ Using the withTheme() function is just as easy:

import { RJSFSchema } from '@rjsf/utils';
import { customizeValidator } from '@rjsf/validator-ajv8';
import { withTheme, ThemeProps } from '@rjsf/core';

interface FormData {
foo?: string;
bar?: number;
}

type MySchema = JSONSchemaType<FormData>;

const schema: MySchema = {
type: 'object',
properties: {
foo: { type: 'string' },
bar: { type: 'number' },
},
};

interface FormContext {
myCustomWidgetData: object;
}

const theme: ThemeProps<FormData, MySchema, FormContext> = {
widgets: { test: () => <div>test</div> },
};

const ThemedForm = withTheme<FormData, MySchema, FormContext>(theme);

const validator = customizeValidator<FormData, MySchema, FormContext>();

const Demo = () => <ThemedForm schema={schema} uiSchema={uiSchema} validator={validator} />;

Overriding generics in other themes

Since all the other themes in RJSF are extensions of @rjsf/core, overriding parts of these themes with custom generics is a little different. The exported Theme and Form from any of the themes have been created using the generic defaults, and as a result, do not take generics themselves. In order to override generics, special generateForm() and generateTheme() functions are exported for your use.

Overriding a Theme

If you are doing something like the following to create a new theme based on @rjsf/mui to extend one or more templates:

import React from 'react';
import { WidgetProps } from '@rjsf/utils';
import { ThemeProps, withTheme } from '@rjsf/core';
import validator from '@rjsf/validator-ajv8';
import { Theme } from '@rjsf/mui';

const OldBaseInputTemplate = Theme.templates.BaseInputTemplate;

// Force the underlying `TextField` component to always use size="small"
function MyBaseInputTemplate(props: WidgetProps) {
return <OldBaseInputTemplate {...props} size='small' />;
}

const myTheme: ThemeProps = {
...Theme,
templates: {
...Theme.templates,
BaseInputTemplate: MyBaseInputTemplate,
},
};

const ThemedForm = withTheme(myTheme);

const Demo = () => <ThemedForm schema={schema} uiSchema={uiSchema} validator={validator} />;

Then you would use the new generateTheme() and generateForm() functions as follows:

import React from 'react';
import { WidgetProps } from '@rjsf/utils';
import { ThemeProps, withTheme } from '@rjsf/core';
import { customizeValidator } from '@rjsf/validator-ajv8';
import { generateTheme } from '@rjsf/mui';

interface FormData {
foo?: string;
bar?: number;
}

type MySchema = JSONSchemaType<FormData>;

const schema: MySchema = {
type: 'object',
properties: {
foo: { type: 'string' },
bar: { type: 'number' },
},
};

interface FormContext {
myCustomWidgetData: object;
}

const Theme: ThemeProps<FormData, MySchema, FormContext> = generateTheme<FormData, MySchema, FormContext>();

const OldBaseInputTemplate = Theme.templates.BaseInputTemplate;

// Force the underlying `TextField` component to always use size="small"
function MyBaseInputTemplate(props: WidgetProps<FormData, MySchema, FormContext>) {
return <OldBaseInputTemplate {...props} size='small' />;
}

const myTheme: ThemeProps<FormData, MySchema, FormContext> = {
...Theme,
templates: {
...Theme.templates,
BaseInputTemplate: MyBaseInputTemplate,
},
};

const ThemedForm = withTheme<FormData, MySchema, FormContext>(myTheme);

const validator = customizeValidator<FormData, MySchema, FormContext>();

// You could also do since they are effectively the same:
// const ThemedForm = generateForm<FormData, MySchema, FormContext>(myTheme);

const Demo = () => <ThemedForm schema={schema} uiSchema={uiSchema} validator={validator} />;

NOTE: The same approach works for extending widgets and fields as well.

- + \ No newline at end of file diff --git a/docs/api-reference/form-props/index.html b/docs/api-reference/form-props/index.html index 7dc0b13b46..f1d62ac144 100644 --- a/docs/api-reference/form-props/index.html +++ b/docs/api-reference/form-props/index.html @@ -4,7 +4,7 @@ <Form /> Props | react-jsonschema-form - + @@ -33,7 +33,7 @@ The ordering of parameters is important because some languages may choose to put the second parameter before the first in its translation. In addition to replaceable parameters, some of the strings support the use of markdown and simple html.

One can use the documentation of the TranslatableString enums to determine which enum values contain replaceable parameters and which support markdown and simple html.

One could use this function to alter one or more of the existing english strings to better suit one's application or fully translate all strings into a different language. Below is an example of changing a few of the english strings to something else:

import { TranslatableString, englishStringTranslator, replaceStringParameters } from '@rjsf/utils';

function fixupSomeEnglishStrings(stringToTranslate: TranslatableString, params?: string[]): string {
switch (stringToTranslate) {
case TranslatableString.NewStringDefault:
return ''; // Use an empty string for the new additionalProperties string default value
case TranslatableString.KeyLabel:
return replaceStringParameters('%1 Key Name', params); // Add "Name" onto the end of the WrapIfAdditionalTemplate key label
default:
return englishStringTranslator(stringToTranslate, params); // Fallback to the default english
}
}

uiSchema

Form uiSchema. See uiSchema Reference for more information.

validator

Required! An implementation of the ValidatorType interface that is needed for form validation to work. @rjsf/validator-ajv8 exports the implementation of this interface from RJSF version 4.

widgets

Dictionary of registered widgets in the form. See Custom Widgets and Fields for more information.

- + \ No newline at end of file diff --git a/docs/api-reference/index.html b/docs/api-reference/index.html index ce0b6e6bd6..a1d985ab1b 100644 --- a/docs/api-reference/index.html +++ b/docs/api-reference/index.html @@ -4,13 +4,13 @@ API Reference | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/api-reference/themes/antd/uiSchema/index.html b/docs/api-reference/themes/antd/uiSchema/index.html index 8d3cfdcdd0..d66761953c 100644 --- a/docs/api-reference/themes/antd/uiSchema/index.html +++ b/docs/api-reference/themes/antd/uiSchema/index.html @@ -4,7 +4,7 @@ AntD Customization | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v5

AntD Customization

formContext

You can customize the look of the form by passing options to Ant-Design theme fields.

The formContext antd object accepts descriptionLocation, readonlyAsDisabled properties.

descriptionLocation can be 'below' | 'tooltip', the default is 'below' which places the description below the form item. You can set it to tooltip that put the description inside the tooltip. Note that you should have antd 4.7+ to use 'tooltip'.

Setting {readonlyAsDisabled: false} on the formContext will make the antd theme treat readOnly fields as disabled.

<Form
formContext={{
descriptionLocation: 'tooltip',
readonlyAsDisabled: false,
// other props...
}}
/>

These are the formContext properties that you can modify to adjust the antd presentation:

  • descriptionLocation: Where to display the description, either 'below' or 'tooltip', defaults to 'below'
  • readonlyAsDisabled: Whether to make the antd theme treat readOnly fields as disabled, defaults to true

Using Antd v5 theme

You can use AntD v5 styling by wrapping your application with StyleProvider from @ant-design/cssinjs.

By default, @rjsf/antd components are using the v4 styling.

import { StyleProvider } from '@ant-design/cssinjs';

const Component = () => {
return (
<StyleProvider>
<YourFormComponents />
</StyleProvider>
);
};
- + \ No newline at end of file diff --git a/docs/api-reference/themes/chakra-ui/uiSchema/index.html b/docs/api-reference/themes/chakra-ui/uiSchema/index.html index b7432663f2..8cb79d915d 100644 --- a/docs/api-reference/themes/chakra-ui/uiSchema/index.html +++ b/docs/api-reference/themes/chakra-ui/uiSchema/index.html @@ -4,14 +4,14 @@ Chakra-UI Customization | react-jsonschema-form - +
Version: v5

Chakra-UI Customization

When using @rjsf/chakra-ui there are a couple of ways to customize the feel of the form.

Styling

You can use ChakraProvider, where you can customize the field components at a theme level. And, uiSchema allows for the use of a "chakra" "ui:option" to customize the styling of the form widgets.

{
"yourField": {
"ui:options": {
"chakra": {
"p": "1rem",
"color": "blue.200",
"sx": {
"margin": "0 auto"
}
}
}
}
}

It accepts the theme accessible style props provided by Chakra and Emotion.

Limitations

  • The chakra option is only available for the Chakra-UI theme.
  • The props are given to the parent component in the individual widget. To pass styles to the inner components, use the sx prop.
- + \ No newline at end of file diff --git a/docs/api-reference/themes/semantic-ui/uiSchema/index.html b/docs/api-reference/themes/semantic-ui/uiSchema/index.html index 0534363c2a..b8512f4f9e 100644 --- a/docs/api-reference/themes/semantic-ui/uiSchema/index.html +++ b/docs/api-reference/themes/semantic-ui/uiSchema/index.html @@ -4,13 +4,13 @@ Semantic-UI Customization | react-jsonschema-form - +
Version: v5

Semantic-UI Customization

There are various options to pass to semantic theme fields.

Note that every semantic property within uiSchema can be rendered in one of two ways: {"ui:options": {semantic:{[property]: [value]}}}

In other words, the following uiSchema is equivalent:

Note: All fields have the following settings below as their default

fluid: Take on the size of its container.
inverted: Format to appear on dark backgrounds.
{
"ui:options": {
"semantic": {
"fluid": true,
"inverted": false,
"errorOptions": {
"size": "small",
"pointing": "above"
}
}
}
}

Semantic Widget Optional Properties

errorOptions

The uiSchema semantic object accepts an errorOptions property for each field of the schema:

size: determines the size of the error message dialog
pointing: determines the direction of the arrow on the error message dialog

Below are the current defaults

import { UiSchema } from '@rjsf/utils';

const uiSchema: UiSchema = {
'ui:options': {
semantic: {
errorOptions: {
size: 'small',
pointing: 'above',
},
},
},
};

semantic options uiSchema for array items

To specify a uiSchema that applies to array items, specify the semantic uiSchema value within the ui:options property:

wrapItem: wrap each array item in a Segment
horizontalButtons: vertical buttons instead of the default horizontal
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
};

const uiSchema: UiSchema = {
'ui:options': {
semantic: {
wrapItem: true,
horizontalButtons: false,
},
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

formContext

The formContext semantic object accepts wrapContent ,wrapLabel properties.

wrapContent: wrap all inputs  field content in a div, for custom styling
wrapLabel: wrap all labels in a div, for custom styling via CSS
<Form
formContext={{
semantic: {
wrapLabel: true,
wrapContent: true,
},
// other props...
}}
/>
- + \ No newline at end of file diff --git a/docs/api-reference/uiSchema/index.html b/docs/api-reference/uiSchema/index.html index fe29794b97..0619674da3 100644 --- a/docs/api-reference/uiSchema/index.html +++ b/docs/api-reference/uiSchema/index.html @@ -4,7 +4,7 @@ uiSchema | react-jsonschema-form - + @@ -24,7 +24,7 @@ If you want to override the titles of the first two elements within the anyOf list you would do the following:

import { RJSFSchema, UiSchema } from '@rjsf/utils';

const schema: RJSFSchema = {
type: 'object',
anyOf: [
{
title: 'Strings',
type: 'string',
},
{
title: 'Numbers',
type: 'number',
},
{
title: 'Booleans',
type: 'boolean',
},
],
};

const uiSchema: UiSchema = {
anyOf: [
{
'ui:title': 'Custom String Title',
},
{
'ui:title': 'Custom Number Title',
},
],
};

NOTE: Because the third element in the schema does not have an associated element in the uiSchema, it will keep its original title.

oneOf

The uiSchema will work with elements inside an oneOf as long as the uiSchema defines the oneOf key at the same level as the oneOf within the schema. Because the oneOf in the schema is an array, so must be the one in the uiSchema. If you want to override the titles of the first two elements within the oneOf list you would do the following:

import { RJSFSchema, UiSchema } from '@rjsf/utils';

const schema: RJSFSchema = {
type: 'object',
oneOf: [
{
title: 'Strings',
type: 'string',
},
{
title: 'Numbers',
type: 'number',
},
{
title: 'Booleans',
type: 'boolean',
},
],
};

const uiSchema: UiSchema = {
oneOf: [
{
'ui:title': 'Custom String Title',
},
{
'ui:title': 'Custom Number Title',
},
],
};

NOTE: Because the third element in the schema does not have an associated element in the uiSchema, it will keep its original title.

Theme Options

- + \ No newline at end of file diff --git a/docs/api-reference/utility-functions/index.html b/docs/api-reference/utility-functions/index.html index e7f3706f85..cf295590c4 100644 --- a/docs/api-reference/utility-functions/index.html +++ b/docs/api-reference/utility-functions/index.html @@ -4,7 +4,7 @@ RJSF utility functions, constants and types | react-jsonschema-form - + @@ -77,10 +77,10 @@ The resulting interface implementation will forward the validator and rootSchema to all the wrapped APIs.

Parameters

  • validator: ValidatorType<T, S, F> - an implementation of the ValidatorType interface that will be forwarded to all the APIs
  • rootSchema: S - The root schema that will be forwarded to all the APIs

Returns

  • SchemaUtilsType<T, S, F> - An implementation of a SchemaUtilsType interface

ErrorSchema builder class

ErrorSchemaBuilder<T = any>(initialSchema?: ErrorSchema<T>) constructor

The ErrorSchemaBuilder&lt;T> is used to build an ErrorSchema&lt;T> since the definition of the ErrorSchema type is designed for reading information rather than writing it. Use this class to add, replace or clear errors in an error schema by using either dotted path or an array of path names. Once you are done building the ErrorSchema, you can get the result and/or reset all the errors back to an initial set and start again.

Parameters

  • [initialSchema]: ErrorSchema<T> | undefined - The optional set of initial errors, that will be cloned into the class

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class

ErrorSchema getter function

Returns the ErrorSchema that has been updated by the methods of the ErrorSchemaBuilder

Usage:

import { ErrorSchemaBuilder, ErrorSchema } from "@rjsf/utils";

const builder = new ErrorSchemaBuilder();

// Do some work using the builder
...

const errorSchema: ErrorSchema = builder.ErrorSchema;

resetAllErrors()

Resets all errors in the ErrorSchemaBuilder back to the initialSchema if provided, otherwise an empty set.

Parameters

  • [initialSchema]: ErrorSchema<T> | undefined - The optional set of initial errors, that will be cloned into the class

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class

addErrors()

Adds the errorOrList to the list of errors in the ErrorSchema at either the root level or the location within the schema described by the pathOfError. -For more information about how to specify the path see the eslint lodash plugin docs.

Parameters

  • errorOrList: string | string[] - The error or list of errors to add into the ErrorSchema
  • [pathOfError]: string | string[] | undefined - The optional path into the ErrorSchema at which to add the error(s)

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class

setErrors()

Sets/replaces the errorOrList as the error(s) in the ErrorSchema at either the root level or the location within the schema described by the pathOfError. -For more information about how to specify the path see the eslint lodash plugin docs.

Parameters

  • errorOrList: string | string[] - The error or list of errors to add into the ErrorSchema
  • [pathOfError]: string | string[] | undefined - The optional path into the ErrorSchema at which to add the error(s)

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class

clearErrors()

Clears the error(s) in the ErrorSchema at either the root level or the location within the schema described by the pathOfError. -For more information about how to specify the path see the eslint lodash plugin docs.

Parameters

  • [pathOfError]: string | string[] | undefined - The optional path into the ErrorSchema at which to add the error(s)

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class
- +For more information about how to specify the path see the eslint lodash plugin docs.

Parameters

  • errorOrList: string | string[] - The error or list of errors to add into the ErrorSchema
  • [pathOfError]: string | (string | number)[] | undefined - The optional path into the ErrorSchema at which to add the error(s)

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class

setErrors()

Sets/replaces the errorOrList as the error(s) in the ErrorSchema at either the root level or the location within the schema described by the pathOfError. +For more information about how to specify the path see the eslint lodash plugin docs.

Parameters

  • errorOrList: string | string[] - The error or list of errors to add into the ErrorSchema
  • [pathOfError]: string | (string | number)[] | undefined - The optional path into the ErrorSchema at which to add the error(s)

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class

clearErrors()

Clears the error(s) in the ErrorSchema at either the root level or the location within the schema described by the pathOfError. +For more information about how to specify the path see the eslint lodash plugin docs.

Parameters

  • [pathOfError]: string | (string | number)[] | undefined - The optional path into the ErrorSchema at which to add the error(s)

Returns

  • ErrorSchemaBuilder<T> - The instance of the ErrorSchemaBuilder class
+ \ No newline at end of file diff --git a/docs/api-reference/validator-ajv8/index.html b/docs/api-reference/validator-ajv8/index.html index c87133e693..3550792a81 100644 --- a/docs/api-reference/validator-ajv8/index.html +++ b/docs/api-reference/validator-ajv8/index.html @@ -4,7 +4,7 @@ @rjsf/validator-ajv8 APIs | react-jsonschema-form - + @@ -17,7 +17,7 @@ The main reasons for using a precompiled validator is reducing code size, improving validation speed and, most importantly, avoiding dynamic code compilation when prohibited by a browser's Content Security Policy. For more information about AJV code compilation see: https://ajv.js.org/standalone.html

Parameters

  • schema: S - The schema to be compiled into a set of precompiled validators functions
  • output: string - The name of the file into which the precompiled validator functions will be generated
  • [options={}]: CustomValidatorOptionsType - The set of CustomValidatorOptionsType information used to alter the AJV validator used for compiling the schema. They are the same options that are passed to the customizeValidator() function in order to modify the behavior of the regular AJV-based validator.

createPrecompiledValidator<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()

Creates and returns a ValidatorType interface that is implemented with a precompiled validator. If a localizer is provided, it is used to translate the messages generated by the underlying AJV validation.

NOTE: The validateFns parameter is an object obtained by importing from a precompiled validation file created via the compileSchemaValidators() function.

Parameters

  • validateFns: ValidatorFunctions - The map of the validation functions that are created by the compileSchemaValidators() function
  • rootSchema: S - The root schema that was used with the compileSchemaValidators() function
  • [localizer]: Localizer | undefined - If provided, is used to localize a list of Ajv ErrorObjects after running the form validation using AJV

Returns

  • ValidatorType<T, S, F>: The precompiled validator implementation resulting from the set of parameters provided
- + \ No newline at end of file diff --git a/docs/assets/js/db61454e.ffbbb945.js b/docs/assets/js/db61454e.ffbbb945.js new file mode 100644 index 0000000000..bf893bc397 --- /dev/null +++ b/docs/assets/js/db61454e.ffbbb945.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_rjsf_docs=self.webpackChunk_rjsf_docs||[]).push([[2256],{3636:(e,t,a)=>{a.d(t,{Iu:()=>d,yg:()=>y});var n=a(5668);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function l(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),m=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):l(l({},t),e)),a},d=function(e){var t=m(e.components);return n.createElement(o.Provider,{value:t},e.children)},h="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},p=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,i=e.originalType,o=e.parentName,d=s(e,["components","mdxType","originalType","parentName"]),h=m(a),p=r,y=h["".concat(o,".").concat(p)]||h[p]||u[p]||i;return a?n.createElement(y,l(l({ref:t},d),{},{components:a})):n.createElement(y,l({ref:t},d))}));function y(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=a.length,l=new Array(i);l[0]=p;var s={};for(var o in t)hasOwnProperty.call(t,o)&&(s[o]=t[o]);s.originalType=e,s[h]="string"==typeof e?e:r,l[1]=s;for(var m=2;m{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>l,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>m});var n=a(5307),r=(a(5668),a(3636));const i={},l="RJSF utility functions, constants and types",s={unversionedId:"api-reference/utility-functions",id:"api-reference/utility-functions",title:"RJSF utility functions, constants and types",description:"In version 5, the utility functions from @rjsf/core/utils were refactored into their own library called @rjsf/utils.",source:"@site/docs/api-reference/utility-functions.md",sourceDirName:"api-reference",slug:"/api-reference/utility-functions",permalink:"/react-jsonschema-form/docs/api-reference/utility-functions",draft:!1,editUrl:"https://github.com/rjsf-team/react-jsonschema-form/tree/main/packages/docs/docs/api-reference/utility-functions.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"uiSchema",permalink:"/react-jsonschema-form/docs/api-reference/uiSchema"},next:{title:"@rjsf/validator-ajv8 APIs",permalink:"/react-jsonschema-form/docs/api-reference/validator-ajv8"}},o={},m=[{value:"Constants",id:"constants",level:2},{value:"Types",id:"types",level:2},{value:"Enums",id:"enums",level:2},{value:"Non-Validator utility functions",id:"non-validator-utility-functions",level:2},{value:"allowAdditionalItems()",id:"allowadditionalitems",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"ariaDescribedByIds<T = any>()",id:"ariadescribedbyidst--any",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"asNumber()",id:"asnumber",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"canExpand<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"canexpandt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"createErrorHandler<T = any>()",id:"createerrorhandlert--any",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"dataURItoBlob()",id:"datauritoblob",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"dateRangeOptions<S extends StrictRJSFSchema = RJSFSchema>()",id:"daterangeoptionss-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Throws",id:"throws",level:4},{value:"deepEquals()",id:"deepequals",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"descriptionId<T = any>()",id:"descriptionidt--any",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"englishStringTranslator()",id:"englishstringtranslator",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"enumOptionsDeselectValue<S extends StrictRJSFSchema = RJSFSchema>()",id:"enumoptionsdeselectvalues-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"enumOptionsIndexForValue<S extends StrictRJSFSchema = RJSFSchema>()",id:"enumoptionsindexforvalues-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"enumOptionsIsSelected<S extends StrictRJSFSchema = RJSFSchema>()",id:"enumoptionsisselecteds-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"enumOptionsSelectValue<S extends StrictRJSFSchema = RJSFSchema>()",id:"enumoptionsselectvalues-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-13",level:4},{value:"enumOptionsValueForIndex<S extends StrictRJSFSchema = RJSFSchema>()",id:"enumoptionsvalueforindexs-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"errorId<T = any>()",id:"erroridt--any",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"examplesId<T = any>()",id:"examplesidt--any",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"findSchemaDefinition<S extends StrictRJSFSchema = RJSFSchema>()",id:"findschemadefinitions-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Throws",id:"throws-1",level:4},{value:"getDiscriminatorFieldFromSchema<S extends StrictRJSFSchema = RJSFSchema>()",id:"getdiscriminatorfieldfromschemas-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-18",level:4},{value:"getDateElementProps()",id:"getdateelementprops",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-19",level:4},{value:"getInputProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getinputpropst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-20",level:4},{value:"getOptionMatchingSimpleDiscriminator()",id:"getoptionmatchingsimplediscriminator",level:3},{value:"Parameters",id:"parameters-21",level:4},{value:"Returns",id:"returns-21",level:4},{value:"getSchemaType()",id:"getschematype",level:3},{value:"Parameters",id:"parameters-22",level:4},{value:"Returns",id:"returns-22",level:4},{value:"getSubmitButtonOptions<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getsubmitbuttonoptionst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-23",level:4},{value:"Returns",id:"returns-23",level:4},{value:"getUiOptions<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getuioptionst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-24",level:4},{value:"Returns",id:"returns-24",level:4},{value:"getTemplate<Name extends keyof TemplatesType<T, S, F>, T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"gettemplatename-extends-keyof-templatestypet-s-f-t--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-25",level:4},{value:"Returns",id:"returns-25",level:4},{value:"getWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getwidgett--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-26",level:4},{value:"Returns",id:"returns-26",level:4},{value:"Throws",id:"throws-2",level:4},{value:"guessType()",id:"guesstype",level:3},{value:"Parameters",id:"parameters-27",level:4},{value:"Returns",id:"returns-27",level:4},{value:"hashForSchema<S extends StrictRJSFSchema = RJSFSchema>()",id:"hashforschemas-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-28",level:4},{value:"Returns",id:"returns-28",level:4},{value:"hasWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"haswidgett--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-29",level:4},{value:"Returns",id:"returns-29",level:4},{value:"helpId<T = any>()",id:"helpidt--any",level:3},{value:"Parameters",id:"parameters-30",level:4},{value:"Returns",id:"returns-30",level:4},{value:"isConstant<S extends StrictRJSFSchema = RJSFSchema>()",id:"isconstants-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-31",level:4},{value:"Returns",id:"returns-31",level:4},{value:"isCustomWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"iscustomwidgett--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-32",level:4},{value:"Returns",id:"returns-32",level:4},{value:"isFixedItems<S extends StrictRJSFSchema = RJSFSchema>()",id:"isfixeditemss-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-33",level:4},{value:"Returns",id:"returns-33",level:4},{value:"isObject()",id:"isobject",level:3},{value:"Parameters",id:"parameters-34",level:4},{value:"Returns",id:"returns-34",level:4},{value:"labelValue()",id:"labelvalue",level:3},{value:"Parameters",id:"parameters-35",level:4},{value:"localToUTC()",id:"localtoutc",level:3},{value:"Parameters",id:"parameters-36",level:4},{value:"Returns",id:"returns-36",level:4},{value:"mergeDefaultsWithFormData<T = any, S extends StrictRJSFSchema = RJSFSchema,>()",id:"mergedefaultswithformdatat--any-s-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-37",level:4},{value:"Returns",id:"returns-37",level:4},{value:"mergeObjects()",id:"mergeobjects",level:3},{value:"Parameters",id:"parameters-38",level:4},{value:"Returns",id:"returns-38",level:4},{value:"mergeSchemas()",id:"mergeschemas",level:3},{value:"Parameters",id:"parameters-39",level:4},{value:"Returns",id:"returns-39",level:4},{value:"optionId()",id:"optionid",level:3},{value:"Parameters",id:"parameters-40",level:4},{value:"Returns",id:"returns-40",level:4},{value:"optionsList<S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any>()",id:"optionslists-extends-strictrjsfschema--rjsfschema-t--any-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-41",level:4},{value:"Returns",id:"returns-41",level:4},{value:"orderProperties()",id:"orderproperties",level:3},{value:"Parameters",id:"parameters-42",level:4},{value:"Returns",id:"returns-42",level:4},{value:"Throws",id:"throws-3",level:4},{value:"pad()",id:"pad",level:3},{value:"Parameters",id:"parameters-43",level:4},{value:"Returns",id:"returns-43",level:4},{value:"parseDateString()",id:"parsedatestring",level:3},{value:"Parameters",id:"parameters-44",level:4},{value:"Returns",id:"returns-44",level:4},{value:"Throws",id:"throws-4",level:4},{value:"rangeSpec<S extends StrictRJSFSchema = RJSFSchema>()",id:"rangespecs-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-45",level:4},{value:"Returns",id:"returns-45",level:4},{value:"replaceStringParameters()",id:"replacestringparameters",level:3},{value:"Parameters",id:"parameters-46",level:4},{value:"Returns",id:"returns-46",level:4},{value:"schemaRequiresTrueValue<S extends StrictRJSFSchema = RJSFSchema>()",id:"schemarequirestruevalues-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-47",level:4},{value:"Returns",id:"returns-47",level:4},{value:"shouldRender()",id:"shouldrender",level:3},{value:"Parameters",id:"parameters-48",level:4},{value:"Returns",id:"returns-48",level:4},{value:"titleId<T = any>()",id:"titleidt--any",level:3},{value:"Parameters",id:"parameters-49",level:4},{value:"Returns",id:"returns-49",level:4},{value:"toConstant<S extends StrictRJSFSchema = RJSFSchema>()",id:"toconstants-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-50",level:4},{value:"Returns",id:"returns-50",level:4},{value:"Throws",id:"throws-5",level:4},{value:"toDateString()",id:"todatestring",level:3},{value:"Parameters",id:"parameters-51",level:4},{value:"Returns",id:"returns-51",level:4},{value:"toErrorList<T = any>()",id:"toerrorlistt--any",level:3},{value:"Parameters",id:"parameters-52",level:4},{value:"Returns",id:"returns-52",level:4},{value:"toErrorSchema<T = any>()",id:"toerrorschemat--any",level:3},{value:"Parameters",id:"parameters-53",level:4},{value:"Returns",id:"returns-53",level:4},{value:"unwrapErrorHandler<T = any>()",id:"unwraperrorhandlert--any",level:4},{value:"Parameters",id:"parameters-54",level:4},{value:"Returns",id:"returns-54",level:4},{value:"utcToLocal()",id:"utctolocal",level:3},{value:"Parameters",id:"parameters-55",level:4},{value:"Returns",id:"returns-55",level:4},{value:"validationDataMerge<T = any>()",id:"validationdatamerget--any",level:3},{value:"Parameters",id:"parameters-56",level:4},{value:"Returns",id:"returns-56",level:4},{value:"withIdRefPrefix<S extends StrictRJSFSchema = RJSFSchema>()",id:"withidrefprefixs-extends-strictrjsfschema--rjsfschema",level:3},{value:"Parameters",id:"parameters-57",level:4},{value:"Returns",id:"returns-57",level:4},{value:"Validator-based utility functions",id:"validator-based-utility-functions",level:2},{value:"getDefaultFormState<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getdefaultformstatet--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-58",level:4},{value:"Returns",id:"returns-58",level:4},{value:"getDisplayLabel<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getdisplaylabelt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-59",level:4},{value:"Returns",id:"returns-59",level:4},{value:"getClosestMatchingOption<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getclosestmatchingoptiont--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-60",level:4},{value:"Returns",id:"returns-60",level:4},{value:"getFirstMatchingOption<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getfirstmatchingoptiont--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-61",level:4},{value:"Returns",id:"returns-61",level:4},{value:"getMatchingOption<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"getmatchingoptiont--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-62",level:4},{value:"Returns",id:"returns-62",level:4},{value:"isFilesArray<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"isfilesarrayt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-63",level:4},{value:"Returns",id:"returns-63",level:4},{value:"isMultiSelect<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"ismultiselectt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-64",level:4},{value:"Returns",id:"returns-64",level:4},{value:"isSelect<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"isselectt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-65",level:4},{value:"Returns",id:"returns-65",level:4},{value:"mergeValidationData<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"mergevalidationdatat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-66",level:4},{value:"Returns",id:"returns-66",level:4},{value:"retrieveSchema<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"retrieveschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-67",level:4},{value:"Returns",id:"returns-67",level:4},{value:"sanitizeDataForNewSchema<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"sanitizedatafornewschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-68",level:4},{value:"Returns",id:"returns-68",level:4},{value:"toIdSchema<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"toidschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-69",level:4},{value:"Returns",id:"returns-69",level:4},{value:"toPathSchema<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"topathschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-70",level:4},{value:"Returns",id:"returns-70",level:4},{value:"Schema utils creation function",id:"schema-utils-creation-function",level:2},{value:"createSchemaUtils<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()",id:"createschemautilst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any",level:3},{value:"Parameters",id:"parameters-71",level:4},{value:"Returns",id:"returns-71",level:4},{value:"ErrorSchema builder class",id:"errorschema-builder-class",level:2},{value:"ErrorSchemaBuilder<T = any>(initialSchema?: ErrorSchema<T>) constructor",id:"errorschemabuildert--anyinitialschema-errorschemat-constructor",level:3},{value:"Parameters",id:"parameters-72",level:4},{value:"Returns",id:"returns-72",level:4},{value:"ErrorSchema getter function",id:"errorschema-getter-function",level:3},{value:"resetAllErrors()",id:"resetallerrors",level:3},{value:"Parameters",id:"parameters-73",level:4},{value:"Returns",id:"returns-73",level:4},{value:"addErrors()",id:"adderrors",level:3},{value:"Parameters",id:"parameters-74",level:4},{value:"Returns",id:"returns-74",level:4},{value:"setErrors()",id:"seterrors",level:3},{value:"Parameters",id:"parameters-75",level:4},{value:"Returns",id:"returns-75",level:4},{value:"clearErrors()",id:"clearerrors",level:3},{value:"Parameters",id:"parameters-76",level:4},{value:"Returns",id:"returns-76",level:4}],d={toc:m},h="wrapper";function u(e){let{components:t,...a}=e;return(0,r.yg)(h,(0,n.c)({},d,a,{components:t,mdxType:"MDXLayout"}),(0,r.yg)("h1",{id:"rjsf-utility-functions-constants-and-types"},"RJSF utility functions, constants and types"),(0,r.yg)("p",null,"In version 5, the utility functions from ",(0,r.yg)("inlineCode",{parentName:"p"},"@rjsf/core/utils")," were refactored into their own library called ",(0,r.yg)("inlineCode",{parentName:"p"},"@rjsf/utils"),".\nThese utility functions are separated into two distinct groups.\nThe first, larger, group are the ",(0,r.yg)("a",{parentName:"p",href:"#non-validator-utility-functions"},"functions")," that do NOT require a ",(0,r.yg)("inlineCode",{parentName:"p"},"ValidatorType")," interface be provided as one of their parameters.\nThe second, smaller, group are the ",(0,r.yg)("a",{parentName:"p",href:"#validator-based-utility-functions"},"functions")," that DO require a ",(0,r.yg)("inlineCode",{parentName:"p"},"ValidatorType")," interface be provided as a parameter.\nThere is also a helper ",(0,r.yg)("a",{parentName:"p",href:"#schema-utils-creation-function"},"function")," used to create a ",(0,r.yg)("inlineCode",{parentName:"p"},"SchemaUtilsType")," implementation from a ",(0,r.yg)("inlineCode",{parentName:"p"},"ValidatorType")," implementation and ",(0,r.yg)("inlineCode",{parentName:"p"},"rootSchema")," object."),(0,r.yg)("h2",{id:"constants"},"Constants"),(0,r.yg)("p",null,"The ",(0,r.yg)("inlineCode",{parentName:"p"},"@rjsf/utils")," package exports a set of constants that represent all the keys into various elements of a RJSFSchema or UiSchema that are used by the various utility functions.\nIn addition to those keys, there is the special ",(0,r.yg)("inlineCode",{parentName:"p"},"ADDITIONAL_PROPERTY_FLAG")," flag that is added to a schema under certain conditions by the ",(0,r.yg)("inlineCode",{parentName:"p"},"retrieveSchema()")," utility."),(0,r.yg)("p",null,"These constants can be found on GitHub ",(0,r.yg)("a",{parentName:"p",href:"https://github.com/rjsf-team/react-jsonschema-form/blob/main/packages/utils/src/constants.ts"},"here"),"."),(0,r.yg)("h2",{id:"types"},"Types"),(0,r.yg)("p",null,"Additionally, the Typescript types used by the utility functions represent nearly all the types used by RJSF.\nThose types are exported for use by ",(0,r.yg)("inlineCode",{parentName:"p"},"@rjsf/core")," and all the themes, as well as any customizations you may build."),(0,r.yg)("p",null,"These types can be found on GitHub ",(0,r.yg)("a",{parentName:"p",href:"https://github.com/rjsf-team/react-jsonschema-form/blob/main/packages/utils/src/types.ts"},"here"),"."),(0,r.yg)("h2",{id:"enums"},"Enums"),(0,r.yg)("p",null,"There are enumerations in ",(0,r.yg)("inlineCode",{parentName:"p"},"@rjsf/utils")," that are exported for use by ",(0,r.yg)("inlineCode",{parentName:"p"},"@rjsf/core")," and all the themes, as well as any customizations you may build."),(0,r.yg)("p",null,"These enums can be found on GitHub ",(0,r.yg)("a",{parentName:"p",href:"https://github.com/rjsf-team/react-jsonschema-form/blob/main/packages/utils/src/enums.ts"},"here"),"."),(0,r.yg)("h2",{id:"non-validator-utility-functions"},"Non-Validator utility functions"),(0,r.yg)("h3",{id:"allowadditionalitems"},"allowAdditionalItems()"),(0,r.yg)("p",null,"Checks the schema to see if it is allowing additional items, by verifying that ",(0,r.yg)("inlineCode",{parentName:"p"},"schema.additionalItems")," is an object.\nThe user is warned in the console if ",(0,r.yg)("inlineCode",{parentName:"p"},"schema.additionalItems")," has the value ",(0,r.yg)("inlineCode",{parentName:"p"},"true"),"."),(0,r.yg)("h4",{id:"parameters"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema object to check")),(0,r.yg)("h4",{id:"returns"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if additional items is allowed, otherwise false")),(0,r.yg)("h3",{id:"ariadescribedbyidst--any"},"ariaDescribedByIds()"),(0,r.yg)("p",null,"Return a list of element ids that contain additional information about the field that can be used to as the aria description of the field."),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"id: IdSchema","<","T> | string - Either simple string id or an IdSchema from which to extract it"),(0,r.yg)("li",{parentName:"ul"},"[includeExamples=false]",": boolean - Optional flag, if true, will add the ",(0,r.yg)("inlineCode",{parentName:"li"},"examplesId")," into the list")),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The string containing the list of ids for use in an ",(0,r.yg)("inlineCode",{parentName:"li"},"aria-describedBy")," attribute")),(0,r.yg)("h3",{id:"asnumber"},"asNumber()"),(0,r.yg)("p",null,"Attempts to convert the string into a number. If an empty string is provided, then ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined")," is returned.\nIf a ",(0,r.yg)("inlineCode",{parentName:"p"},"null")," is provided, it is returned.\nIf the string ends in a ",(0,r.yg)("inlineCode",{parentName:"p"},".")," then the string is returned because the user may be in the middle of typing a float number.\nIf a number ends in a pattern like ",(0,r.yg)("inlineCode",{parentName:"p"},".0"),", ",(0,r.yg)("inlineCode",{parentName:"p"},".20"),", ",(0,r.yg)("inlineCode",{parentName:"p"},".030"),", string is returned because the user may be typing number that will end in a non-zero digit.\nOtherwise, the string is wrapped by ",(0,r.yg)("inlineCode",{parentName:"p"},"Number()")," and if that result is not ",(0,r.yg)("inlineCode",{parentName:"p"},"NaN"),", that number will be returned, otherwise the string ",(0,r.yg)("inlineCode",{parentName:"p"},"value")," will be."),(0,r.yg)("h4",{id:"parameters-2"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"value: string | null - The string or null value to convert to a number")),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"undefined | null | string | number: The ",(0,r.yg)("inlineCode",{parentName:"li"},"value")," converted to a number when appropriate, otherwise the ",(0,r.yg)("inlineCode",{parentName:"li"},"value"))),(0,r.yg)("h3",{id:"canexpandt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"canExpand()"),(0,r.yg)("p",null,"Checks whether the field described by ",(0,r.yg)("inlineCode",{parentName:"p"},"schema"),", having the ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," supports expanding.\nThe UI for the field can expand if it has additional properties, is not forced as non-expandable by the ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," and the ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," object doesn't already have ",(0,r.yg)("inlineCode",{parentName:"p"},"schema.maxProperties")," elements."),(0,r.yg)("h4",{id:"parameters-3"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for the field that is being checked"),(0,r.yg)("li",{parentName:"ul"},"[uiSchema={}]",": UiSchema - The uiSchema for the field"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The formData for the field")),(0,r.yg)("h4",{id:"returns-3"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if the schema element has additionalProperties, is expandable, and not at the maxProperties limit")),(0,r.yg)("h3",{id:"createerrorhandlert--any"},"createErrorHandler()"),(0,r.yg)("p",null,"Given a ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," object, recursively creates a ",(0,r.yg)("inlineCode",{parentName:"p"},"FormValidation")," error handling structure around it"),(0,r.yg)("h4",{id:"parameters-4"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"formData: T - The form data around which the error handler is created")),(0,r.yg)("h4",{id:"returns-4"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"FormValidation","<","T>: A ",(0,r.yg)("inlineCode",{parentName:"li"},"FormValidation")," object based on the ",(0,r.yg)("inlineCode",{parentName:"li"},"formData")," structure")),(0,r.yg)("h3",{id:"datauritoblob"},"dataURItoBlob()"),(0,r.yg)("p",null,"Given the ",(0,r.yg)("inlineCode",{parentName:"p"},"FileReader.readAsDataURL()")," based ",(0,r.yg)("inlineCode",{parentName:"p"},"dataURI")," extracts that data into an actual Blob along with the name\nof that Blob if provided in the URL. If no name is provided, then the name falls back to ",(0,r.yg)("inlineCode",{parentName:"p"},"unknown"),"."),(0,r.yg)("h4",{id:"parameters-5"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"dataURI: string - The ",(0,r.yg)("inlineCode",{parentName:"li"},"DataUrl")," potentially containing name and raw data to be converted to a Blob")),(0,r.yg)("h4",{id:"returns-5"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"{ blob: Blob, name: string }: An object containing a Blob and its name, extracted from the URI")),(0,r.yg)("h3",{id:"daterangeoptionss-extends-strictrjsfschema--rjsfschema"},"dateRangeOptions","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Returns a list of options for a date range between ",(0,r.yg)("inlineCode",{parentName:"p"},"start")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"stop"),".\nIf the start date is greater than the end date, then the date range is reversed.\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"start")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"stop")," are negative numbers (or zero), then they will be treated as relative to the current year."),(0,r.yg)("h4",{id:"parameters-6"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"start: number - The starting point of the date range"),(0,r.yg)("li",{parentName:"ul"},"stop: number - The ending point of the date range")),(0,r.yg)("h4",{id:"returns-6"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"EnumOptionsType","<","S>[]: The list of EnumOptionsType for the date range between ",(0,r.yg)("inlineCode",{parentName:"li"},"start")," and ",(0,r.yg)("inlineCode",{parentName:"li"},"stop"))),(0,r.yg)("h4",{id:"throws"},"Throws"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"Error when ",(0,r.yg)("inlineCode",{parentName:"li"},"start")," and ",(0,r.yg)("inlineCode",{parentName:"li"},"stop")," aren't both <= 0 or > 0")),(0,r.yg)("h3",{id:"deepequals"},"deepEquals()"),(0,r.yg)("p",null,"Implements a deep equals using the ",(0,r.yg)("inlineCode",{parentName:"p"},"lodash.isEqualWith")," function, that provides a customized comparator that assumes all functions are equivalent."),(0,r.yg)("h4",{id:"parameters-7"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"a: any - The first element to compare"),(0,r.yg)("li",{parentName:"ul"},"b: any - The second element to compare")),(0,r.yg)("h4",{id:"returns-7"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if the ",(0,r.yg)("inlineCode",{parentName:"li"},"a")," and ",(0,r.yg)("inlineCode",{parentName:"li"},"b")," are deeply equal, false otherwise")),(0,r.yg)("h3",{id:"descriptionidt--any"},"descriptionId()"),(0,r.yg)("p",null,"Return a consistent ",(0,r.yg)("inlineCode",{parentName:"p"},"id")," for the field description element."),(0,r.yg)("h4",{id:"parameters-8"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"id: IdSchema","<","T> | string - Either simple string id or an IdSchema from which to extract it")),(0,r.yg)("h4",{id:"returns-8"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The consistent id for the field description element from the given ",(0,r.yg)("inlineCode",{parentName:"li"},"id"))),(0,r.yg)("h3",{id:"englishstringtranslator"},"englishStringTranslator()"),(0,r.yg)("p",null,"Translates a ",(0,r.yg)("inlineCode",{parentName:"p"},"TranslatableString")," value ",(0,r.yg)("inlineCode",{parentName:"p"},"stringToTranslate")," into english.\nWhen a ",(0,r.yg)("inlineCode",{parentName:"p"},"params")," array is provided, each value in the array is used to replace any of the replaceable parameters in the ",(0,r.yg)("inlineCode",{parentName:"p"},"stringToTranslate")," using the ",(0,r.yg)("inlineCode",{parentName:"p"},"%1"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"%2"),", etc. replacement specifiers."),(0,r.yg)("h4",{id:"parameters-9"},"Parameters"),(0,r.yg)("p",null,"stringToTranslate: TranslatableString - The ",(0,r.yg)("inlineCode",{parentName:"p"},"TranslatableString")," value to convert to english\n","[params]",": string[] - The optional list of replaceable parameter values to substitute to the english string"),(0,r.yg)("h4",{id:"returns-9"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The ",(0,r.yg)("inlineCode",{parentName:"li"},"stringToTranslate")," itself with any replaceable parameter values substituted")),(0,r.yg)("h3",{id:"enumoptionsdeselectvalues-extends-strictrjsfschema--rjsfschema"},"enumOptionsDeselectValue","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Removes the enum option value at the ",(0,r.yg)("inlineCode",{parentName:"p"},"valueIndex")," from the currently ",(0,r.yg)("inlineCode",{parentName:"p"},"selected")," (list of) value(s).\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"selected")," is a list, then that list is updated to remove the enum option value with the ",(0,r.yg)("inlineCode",{parentName:"p"},"valueIndex")," in ",(0,r.yg)("inlineCode",{parentName:"p"},"allEnumOptions"),".\nIf it is a single value, then if the enum option value with the ",(0,r.yg)("inlineCode",{parentName:"p"},"valueIndex")," in ",(0,r.yg)("inlineCode",{parentName:"p"},"allEnumOptions")," matches ",(0,r.yg)("inlineCode",{parentName:"p"},"selected"),", undefined is returned, otherwise the ",(0,r.yg)("inlineCode",{parentName:"p"},"selected")," value is returned."),(0,r.yg)("h4",{id:"parameters-10"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"valueIndex: string | number - The index of the value to be removed from the selected list or single value"),(0,r.yg)("li",{parentName:"ul"},"[selected]",": EnumOptionsType","<","S>",'["value"]'," | EnumOptionsType","<","S>",'["value"][]'," | undefined - The current (list of) selected value(s)"),(0,r.yg)("li",{parentName:"ul"},"[allEnumOptions=[]]: EnumOptionsType","<","S>[] - The list of all the known enumOptions")),(0,r.yg)("h4",{id:"returns-10"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"EnumOptionsType","<","S>",'["value"][]',": The updated ",(0,r.yg)("inlineCode",{parentName:"li"},"selected")," list with the ",(0,r.yg)("inlineCode",{parentName:"li"},"value")," removed from it")),(0,r.yg)("h3",{id:"enumoptionsindexforvalues-extends-strictrjsfschema--rjsfschema"},"enumOptionsIndexForValue","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Returns the index(es) of the options in ",(0,r.yg)("inlineCode",{parentName:"p"},"allEnumOptions")," whose value(s) match the ones in ",(0,r.yg)("inlineCode",{parentName:"p"},"value"),".\nAll the ",(0,r.yg)("inlineCode",{parentName:"p"},"enumOptions"),' are filtered based on whether they are a "selected" ',(0,r.yg)("inlineCode",{parentName:"p"},"value")," and the index of each selected one is then stored in an array.\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"multiple")," is true, that array is returned, otherwise the first element in the array is returned."),(0,r.yg)("h4",{id:"parameters-11"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"value: EnumOptionsType","<","S>",'["value"]'," | EnumOptionsType","<","S>",'["value"][]'," - The single value or list of values for which indexes are desired"),(0,r.yg)("li",{parentName:"ul"},"[allEnumOptions=[]]: EnumOptionsType","<","S>[] - The list of all the known enumOptions"),(0,r.yg)("li",{parentName:"ul"},"[multiple=false]",": boolean - Optional flag, if true will return a list of index, otherwise a single one")),(0,r.yg)("h4",{id:"returns-11"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string | string[] | undefined: A single string index for the first ",(0,r.yg)("inlineCode",{parentName:"li"},"value")," in ",(0,r.yg)("inlineCode",{parentName:"li"},"allEnumOptions"),", if not ",(0,r.yg)("inlineCode",{parentName:"li"},"multiple"),". Otherwise, the list of indexes for (each of) the value(s) in ",(0,r.yg)("inlineCode",{parentName:"li"},"value"),".")),(0,r.yg)("h3",{id:"enumoptionsisselecteds-extends-strictrjsfschema--rjsfschema"},"enumOptionsIsSelected","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Determines whether the given ",(0,r.yg)("inlineCode",{parentName:"p"},"value")," is (one of) the ",(0,r.yg)("inlineCode",{parentName:"p"},"selected")," value(s)."),(0,r.yg)("h4",{id:"parameters-12"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"value: EnumOptionsType","<","S>",'["value"]'," - The value being checked to see if it is selected"),(0,r.yg)("li",{parentName:"ul"},"selected: EnumOptionsType","<","S>",'["value"]'," | EnumOptionsType","<","S>",'["value"][]'," - The current selected value or list of values"),(0,r.yg)("li",{parentName:"ul"},"[allEnumOptions=[]]: EnumOptionsType","<","S>[] - The list of all the known enumOptions")),(0,r.yg)("h4",{id:"returns-12"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: true if the ",(0,r.yg)("inlineCode",{parentName:"li"},"value")," is one of the ",(0,r.yg)("inlineCode",{parentName:"li"},"selected")," ones, false otherwise")),(0,r.yg)("h3",{id:"enumoptionsselectvalues-extends-strictrjsfschema--rjsfschema"},"enumOptionsSelectValue","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Add the ",(0,r.yg)("inlineCode",{parentName:"p"},"value")," to the list of ",(0,r.yg)("inlineCode",{parentName:"p"},"selected")," values in the proper order as defined by ",(0,r.yg)("inlineCode",{parentName:"p"},"allEnumOptions"),"."),(0,r.yg)("h4",{id:"parameters-13"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"valueIndex: string | number - The index of the value that should be selected"),(0,r.yg)("li",{parentName:"ul"},"selected: EnumOptionsType","<","S>",'["value"][]'," - The current list of selected values"),(0,r.yg)("li",{parentName:"ul"},"[allEnumOptions=[]]: EnumOptionsType","<","S>[] - The list of all the known enumOptions")),(0,r.yg)("h4",{id:"returns-13"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"EnumOptionsType","<","S>",'["value"][]',": The updated list of selected enum values with ",(0,r.yg)("inlineCode",{parentName:"li"},"value")," added to it in the proper location")),(0,r.yg)("h3",{id:"enumoptionsvalueforindexs-extends-strictrjsfschema--rjsfschema"},"enumOptionsValueForIndex","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Returns the value(s) from ",(0,r.yg)("inlineCode",{parentName:"p"},"allEnumOptions")," at the index(es) provided by ",(0,r.yg)("inlineCode",{parentName:"p"},"valueIndex"),".\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"valueIndex")," is not an array AND the index is not valid for ",(0,r.yg)("inlineCode",{parentName:"p"},"allEnumOptions"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"emptyValue")," is returned.\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"valueIndex")," is an array, AND it contains an invalid index, the returned array will have the resulting undefined values filtered out, leaving only valid values or in the worst case, an empty array."),(0,r.yg)("h4",{id:"parameters-14"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"valueIndex: string | number | Array - The index(es) of the value(s) that should be returned"),(0,r.yg)("li",{parentName:"ul"},"[allEnumOptions=[]]: EnumOptionsType","<","S>[] - The list of all the known enumOptions"),(0,r.yg)("li",{parentName:"ul"},"[emptyValue]",": EnumOptionsType","<","S>",'["value"]'," | undefined - The value to return when the non-array ",(0,r.yg)("inlineCode",{parentName:"li"},"valueIndex")," does not refer to a real option")),(0,r.yg)("h4",{id:"returns-14"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"EnumOptionsType","<","S>",'["value"]'," | EnumOptionsType","<","S>",'["value"][]'," | undefined: The single or list of values specified by the single or list of indexes if they are valid. Otherwise, ",(0,r.yg)("inlineCode",{parentName:"li"},"emptyValue")," or an empty list.")),(0,r.yg)("h3",{id:"erroridt--any"},"errorId()"),(0,r.yg)("p",null,"Return a consistent ",(0,r.yg)("inlineCode",{parentName:"p"},"id")," for the field error element."),(0,r.yg)("h4",{id:"parameters-15"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"id: IdSchema","<","T> | string - Either simple string id or an IdSchema from which to extract it")),(0,r.yg)("h4",{id:"returns-15"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The consistent id for the field error element from the given ",(0,r.yg)("inlineCode",{parentName:"li"},"id"))),(0,r.yg)("h3",{id:"examplesidt--any"},"examplesId()"),(0,r.yg)("p",null,"Return a consistent ",(0,r.yg)("inlineCode",{parentName:"p"},"id")," for the field examples element."),(0,r.yg)("h4",{id:"parameters-16"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"id: IdSchema","<","T> | string - Either simple string id or an IdSchema from which to extract it")),(0,r.yg)("h4",{id:"returns-16"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The consistent id for the field examples element from the given ",(0,r.yg)("inlineCode",{parentName:"li"},"id"))),(0,r.yg)("h3",{id:"findschemadefinitions-extends-strictrjsfschema--rjsfschema"},"findSchemaDefinition","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Given the name of a ",(0,r.yg)("inlineCode",{parentName:"p"},"$ref")," from within a schema, using the ",(0,r.yg)("inlineCode",{parentName:"p"},"rootSchema"),", look up and return the sub-schema using the path provided by that reference.\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"#")," is not the first character of the reference, or the path does not exist in the schema, then throw an Error.\nOtherwise, return the sub-schema. Also deals with nested ",(0,r.yg)("inlineCode",{parentName:"p"},"$ref"),"s in the sub-schema."),(0,r.yg)("h4",{id:"parameters-17"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"$ref: string - The ref string for which the schema definition is desired"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema={}]",": S - The root schema in which to search for the definition")),(0,r.yg)("h4",{id:"returns-17"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"S: The sub-schema within the ",(0,r.yg)("inlineCode",{parentName:"li"},"rootSchema")," which matches the ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref")," if it exists")),(0,r.yg)("h4",{id:"throws-1"},"Throws"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"Error indicating that no schema for that reference exists")),(0,r.yg)("h3",{id:"getdiscriminatorfieldfromschemas-extends-strictrjsfschema--rjsfschema"},"getDiscriminatorFieldFromSchema","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Returns the ",(0,r.yg)("inlineCode",{parentName:"p"},"discriminator.propertyName")," when defined in the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," if it is a string. A warning is generated when it is not a string.\nReturns ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined")," when a valid discriminator is not present."),(0,r.yg)("h4",{id:"parameters-18"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema from which the discriminator is potentially obtained")),(0,r.yg)("h4",{id:"returns-18"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string | undefined: The ",(0,r.yg)("inlineCode",{parentName:"li"},"discriminator.propertyName")," if it exists in the schema, otherwise ",(0,r.yg)("inlineCode",{parentName:"li"},"undefined"))),(0,r.yg)("h3",{id:"getdateelementprops"},"getDateElementProps()"),(0,r.yg)("p",null,"Given date & time information with optional yearRange & format, returns props for DateElement"),(0,r.yg)("h4",{id:"parameters-19"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"date: DateObject - Object containing date with optional time information"),(0,r.yg)("li",{parentName:"ul"},"time: boolean - Determines whether to include time or not"),(0,r.yg)("li",{parentName:"ul"},"[yearRange=","[1900, new Date().getFullYear() + 2]","]: ","[number, number]"," - Controls the list of years to be displayed"),(0,r.yg)("li",{parentName:"ul"},"[format='YMD']",": DateElementFormat - Controls the order in which day, month and year input element will be displayed")),(0,r.yg)("h4",{id:"returns-19"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"Array of props for DateElement")),(0,r.yg)("h3",{id:"getinputpropst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getInputProps()"),(0,r.yg)("p",null,"Using the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"defaultType")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"options"),", extract out the props for the ",(0,r.yg)("inlineCode",{parentName:"p"},"")," element that make sense."),(0,r.yg)("h4",{id:"parameters-20"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for the field provided by the widget"),(0,r.yg)("li",{parentName:"ul"},"[defaultType]",": string | undefined - The default type, if any, for the field provided by the widget"),(0,r.yg)("li",{parentName:"ul"},"[options={}]",": UIOptionsType - The UI Options for the field provided by the widget"),(0,r.yg)("li",{parentName:"ul"},"[autoDefaultStepAny=true]",": boolean - Determines whether to auto-default step=any when the type is number and no step")),(0,r.yg)("h4",{id:"returns-20"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"InputPropsType: The extracted ",(0,r.yg)("inlineCode",{parentName:"li"},"InputPropsType")," object")),(0,r.yg)("h3",{id:"getoptionmatchingsimplediscriminator"},"getOptionMatchingSimpleDiscriminator()"),(0,r.yg)("p",null,"Compares the value of ",(0,r.yg)("inlineCode",{parentName:"p"},"discriminatorField")," within ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," against the value of ",(0,r.yg)("inlineCode",{parentName:"p"},"discriminatorField")," within schema for each ",(0,r.yg)("inlineCode",{parentName:"p"},"option"),". Returns index of first ",(0,r.yg)("inlineCode",{parentName:"p"},"option")," whose discriminator matches formData. Returns ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined")," if there is no match."),(0,r.yg)("p",null,"This function does not work with discriminators of ",(0,r.yg)("inlineCode",{parentName:"p"},'"type": "object"')," and ",(0,r.yg)("inlineCode",{parentName:"p"},'"type": "array"')),(0,r.yg)("h4",{id:"parameters-21"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The current formData, if any, used to figure out a match"),(0,r.yg)("li",{parentName:"ul"},"options: S[] - The list of options to find a matching options from"),(0,r.yg)("li",{parentName:"ul"},"[discriminatorField]",": string | undefined - The optional name of the field within the options object whose value is used to determine which option is selected")),(0,r.yg)("h4",{id:"returns-21"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"number | undefined: index of the matched option")),(0,r.yg)("h3",{id:"getschematype"},"getSchemaType()"),(0,r.yg)("p",null,"Gets the type of a given ",(0,r.yg)("inlineCode",{parentName:"p"},"schema"),".\nIf the type is not explicitly defined, then an attempt is made to infer it from other elements of the schema as follows:"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema.const: Returns the ",(0,r.yg)("inlineCode",{parentName:"li"},"guessType()")," of that value"),(0,r.yg)("li",{parentName:"ul"},"schema.enum: Returns ",(0,r.yg)("inlineCode",{parentName:"li"},"string")),(0,r.yg)("li",{parentName:"ul"},"schema.properties: Returns ",(0,r.yg)("inlineCode",{parentName:"li"},"object")),(0,r.yg)("li",{parentName:"ul"},"schema.additionalProperties: Returns ",(0,r.yg)("inlineCode",{parentName:"li"},"object")),(0,r.yg)("li",{parentName:"ul"},"type is an array with a length of 2 and one type is 'null': Returns the other type")),(0,r.yg)("h4",{id:"parameters-22"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which to get the type")),(0,r.yg)("h4",{id:"returns-22"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string | string[] | undefined: The type of the schema")),(0,r.yg)("h3",{id:"getsubmitbuttonoptionst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getSubmitButtonOptions()"),(0,r.yg)("p",null,"Extracts any ",(0,r.yg)("inlineCode",{parentName:"p"},"ui:submitButtonOptions")," from the ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," and merges them onto the ",(0,r.yg)("inlineCode",{parentName:"p"},"DEFAULT_OPTIONS")),(0,r.yg)("h4",{id:"parameters-23"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"[uiSchema={}]",": UiSchema - the UI Schema from which to extract submit button props")),(0,r.yg)("h4",{id:"returns-23"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"UISchemaSubmitButtonOptions: The merging of the ",(0,r.yg)("inlineCode",{parentName:"li"},"DEFAULT_OPTIONS")," with any custom ones")),(0,r.yg)("h3",{id:"getuioptionst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getUiOptions()"),(0,r.yg)("p",null,"Get all passed options from ui:options, and ui:","<","optionName>, returning them in an object with the ",(0,r.yg)("inlineCode",{parentName:"p"},"ui:")," stripped off.\nAny ",(0,r.yg)("inlineCode",{parentName:"p"},"globalOptions")," will always be returned, unless they are overridden by options in the ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema"),"."),(0,r.yg)("h4",{id:"parameters-24"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"[uiSchema={}]",": UiSchema - The UI Schema from which to get any ",(0,r.yg)("inlineCode",{parentName:"li"},"ui:xxx")," options"),(0,r.yg)("li",{parentName:"ul"},"[globalOptions={}]",": GlobalUISchemaOptions - The optional Global UI Schema from which to get any fallback ",(0,r.yg)("inlineCode",{parentName:"li"},"xxx")," options")),(0,r.yg)("h4",{id:"returns-24"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"UIOptionsType An object containing all of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ui:xxx")," options with the ",(0,r.yg)("inlineCode",{parentName:"li"},"ui:")," stripped off along with all ",(0,r.yg)("inlineCode",{parentName:"li"},"globalOptions"))),(0,r.yg)("h3",{id:"gettemplatename-extends-keyof-templatestypet-s-f-t--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getTemplate, T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>()"),(0,r.yg)("p",null,"Returns the template with the given ",(0,r.yg)("inlineCode",{parentName:"p"},"name")," from either the ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," if it is defined or from the ",(0,r.yg)("inlineCode",{parentName:"p"},"registry"),"\notherwise. NOTE, since ",(0,r.yg)("inlineCode",{parentName:"p"},"ButtonTemplates")," are not overridden in ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," only those in the ",(0,r.yg)("inlineCode",{parentName:"p"},"registry")," are returned."),(0,r.yg)("h4",{id:"parameters-25"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"name: Name - The name of the template to fetch, restricted to the keys of ",(0,r.yg)("inlineCode",{parentName:"li"},"TemplatesType")),(0,r.yg)("li",{parentName:"ul"},"registry: Registry - The ",(0,r.yg)("inlineCode",{parentName:"li"},"Registry")," from which to read the template"),(0,r.yg)("li",{parentName:"ul"},"[uiOptions={}]",": UIOptionsType - The ",(0,r.yg)("inlineCode",{parentName:"li"},"UIOptionsType")," from which to read an alternate template")),(0,r.yg)("h4",{id:"returns-25"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"TemplatesType","[Name]"," - The template from either the ",(0,r.yg)("inlineCode",{parentName:"li"},"uiSchema")," or ",(0,r.yg)("inlineCode",{parentName:"li"},"registry")," for the ",(0,r.yg)("inlineCode",{parentName:"li"},"name"))),(0,r.yg)("h3",{id:"getwidgett--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getWidget()"),(0,r.yg)("p",null,"Given a schema representing a field to render and either the name or actual ",(0,r.yg)("inlineCode",{parentName:"p"},"Widget")," implementation, returns the\nReact component that is used to render the widget. If the ",(0,r.yg)("inlineCode",{parentName:"p"},"widget")," is already a React component, then it is wrapped\nwith a ",(0,r.yg)("inlineCode",{parentName:"p"},"MergedWidget"),". Otherwise an attempt is made to look up the widget inside of the ",(0,r.yg)("inlineCode",{parentName:"p"},"registeredWidgets")," map based\non the schema type and ",(0,r.yg)("inlineCode",{parentName:"p"},"widget")," name. If no widget component can be found an ",(0,r.yg)("inlineCode",{parentName:"p"},"Error")," is thrown."),(0,r.yg)("h4",{id:"parameters-26"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for the field"),(0,r.yg)("li",{parentName:"ul"},"widget: Widget | string - Either the name of the widget OR a ",(0,r.yg)("inlineCode",{parentName:"li"},"Widget")," implementation to use"),(0,r.yg)("li",{parentName:"ul"},"[registeredWidgets={}]",": RegistryWidgetsType - A registry of widget name to ",(0,r.yg)("inlineCode",{parentName:"li"},"Widget")," implementation")),(0,r.yg)("h4",{id:"returns-26"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"Widget: The ",(0,r.yg)("inlineCode",{parentName:"li"},"Widget")," component to use")),(0,r.yg)("h4",{id:"throws-2"},"Throws"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"An error if there is no ",(0,r.yg)("inlineCode",{parentName:"li"},"Widget")," component that can be returned")),(0,r.yg)("h3",{id:"guesstype"},"guessType()"),(0,r.yg)("p",null,"Given a specific ",(0,r.yg)("inlineCode",{parentName:"p"},"value")," attempts to guess the type of a schema element. In the case where we have to implicitly\ncreate a schema, it is useful to know what type to use based on the data we are defining."),(0,r.yg)("h4",{id:"parameters-27"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"value: any - The value from which to guess the type")),(0,r.yg)("h4",{id:"returns-27"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The best guess for the object type")),(0,r.yg)("h3",{id:"hashforschemas-extends-strictrjsfschema--rjsfschema"},"hashForSchema","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Stringifies the schema and returns the hash of the resulting string."),(0,r.yg)("h4",{id:"parameters-28"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which the hash is desired")),(0,r.yg)("h4",{id:"returns-28"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The string obtained from the hash of the stringified schema")),(0,r.yg)("h3",{id:"haswidgett--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"hasWidget()"),(0,r.yg)("p",null,"Detects whether the ",(0,r.yg)("inlineCode",{parentName:"p"},"widget")," exists for the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," with the associated ",(0,r.yg)("inlineCode",{parentName:"p"},"registryWidgets")," and returns true if it does, or false if it doesn't."),(0,r.yg)("h4",{id:"parameters-29"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for the field"),(0,r.yg)("li",{parentName:"ul"},"widget: Widget | string - Either the name of the widget OR a ",(0,r.yg)("inlineCode",{parentName:"li"},"Widget")," implementation to use"),(0,r.yg)("li",{parentName:"ul"},"[registeredWidgets={}]",": RegistryWidgetsType - A registry of widget name to ",(0,r.yg)("inlineCode",{parentName:"li"},"Widget")," implementation")),(0,r.yg)("h4",{id:"returns-29"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if the widget exists, false otherwise")),(0,r.yg)("h3",{id:"helpidt--any"},"helpId()"),(0,r.yg)("p",null,"Return a consistent ",(0,r.yg)("inlineCode",{parentName:"p"},"id")," for the field help element."),(0,r.yg)("h4",{id:"parameters-30"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"id: IdSchema","<","T> | string - Either simple string id or an IdSchema from which to extract it")),(0,r.yg)("h4",{id:"returns-30"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The consistent id for the field help element from the given ",(0,r.yg)("inlineCode",{parentName:"li"},"id"))),(0,r.yg)("h3",{id:"isconstants-extends-strictrjsfschema--rjsfschema"},"isConstant","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"This function checks if the given ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," matches a single constant value.\nThis happens when either the schema has an ",(0,r.yg)("inlineCode",{parentName:"p"},"enum")," array with a single value or there is a ",(0,r.yg)("inlineCode",{parentName:"p"},"const")," defined."),(0,r.yg)("h4",{id:"parameters-31"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for a field")),(0,r.yg)("h4",{id:"returns-31"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if the ",(0,r.yg)("inlineCode",{parentName:"li"},"schema")," has a single constant value, false otherwise")),(0,r.yg)("h3",{id:"iscustomwidgett--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"isCustomWidget()"),(0,r.yg)("p",null,"Checks to see if the ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," contains the ",(0,r.yg)("inlineCode",{parentName:"p"},"widget")," field and that the widget is not ",(0,r.yg)("inlineCode",{parentName:"p"},"hidden")),(0,r.yg)("h4",{id:"parameters-32"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"uiSchema: UiSchema - The UI Schema from which to detect if it is customized")),(0,r.yg)("h4",{id:"returns-32"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if the ",(0,r.yg)("inlineCode",{parentName:"li"},"uiSchema")," describes a custom widget, false otherwise")),(0,r.yg)("h3",{id:"isfixeditemss-extends-strictrjsfschema--rjsfschema"},"isFixedItems","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Detects whether the given ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," contains fixed items.\nThis is the case when ",(0,r.yg)("inlineCode",{parentName:"p"},"schema.items")," is a non-empty array that only contains objects."),(0,r.yg)("h4",{id:"parameters-33"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema in which to check for fixed items")),(0,r.yg)("h4",{id:"returns-33"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if there are fixed items in the schema, false otherwise")),(0,r.yg)("h3",{id:"isobject"},"isObject()"),(0,r.yg)("p",null,"Determines whether a ",(0,r.yg)("inlineCode",{parentName:"p"},"thing")," is an object for the purposes of RSJF.\nIn this case, ",(0,r.yg)("inlineCode",{parentName:"p"},"thing")," is an object if it has the type ",(0,r.yg)("inlineCode",{parentName:"p"},"object")," but is NOT null, an array or a File."),(0,r.yg)("h4",{id:"parameters-34"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"thing: any - The thing to check to see whether it is an object")),(0,r.yg)("h4",{id:"returns-34"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if it is a non-null, non-array, non-File object")),(0,r.yg)("h3",{id:"labelvalue"},"labelValue()"),(0,r.yg)("p",null,"Helper function that will return the value to use for a widget ",(0,r.yg)("inlineCode",{parentName:"p"},"label")," based on ",(0,r.yg)("inlineCode",{parentName:"p"},"hideLabel"),".\nThe ",(0,r.yg)("inlineCode",{parentName:"p"},"fallback")," is used as the return value from the function when ",(0,r.yg)("inlineCode",{parentName:"p"},"hideLabel")," is true.\nDue to the implementation of theme components, it may be necessary to return something other than ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined")," to cause the theme component to not render a label.\nSome themes require may ",(0,r.yg)("inlineCode",{parentName:"p"},"false")," and others may require an empty string."),(0,r.yg)("h4",{id:"parameters-35"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},"[label]",": string | ReactElement | undefined - The label string or component to render when not hidden")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},"[hideLabel]",": boolean| undefined - Flag, if true, will cause the label to be hidden")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},"[fallback]",": undefined | false | '' - One of 3 values, ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined")," (the default), ",(0,r.yg)("inlineCode",{parentName:"p"},"false")," or an empty string")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("h4",{parentName:"li",id:"returns-35"},"Returns")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},"string | boolean | undefined: ",(0,r.yg)("inlineCode",{parentName:"p"},"fallback")," if ",(0,r.yg)("inlineCode",{parentName:"p"},"hideLabel")," is true, otherwise ",(0,r.yg)("inlineCode",{parentName:"p"},"label")))),(0,r.yg)("h3",{id:"localtoutc"},"localToUTC()"),(0,r.yg)("p",null,"Converts a local Date string into a UTC date string"),(0,r.yg)("h4",{id:"parameters-36"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"dateString: string - The string representation of a date as accepted by the ",(0,r.yg)("inlineCode",{parentName:"li"},"Date()")," constructor")),(0,r.yg)("h4",{id:"returns-36"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string | undefined: A UTC date string if ",(0,r.yg)("inlineCode",{parentName:"li"},"dateString")," is truthy, otherwise undefined")),(0,r.yg)("h3",{id:"mergedefaultswithformdatat--any-s-extends-strictrjsfschema--rjsfschema"},"mergeDefaultsWithFormData()"),(0,r.yg)("p",null,"Merges the ",(0,r.yg)("inlineCode",{parentName:"p"},"defaults")," object of type ",(0,r.yg)("inlineCode",{parentName:"p"},"T")," into the ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," of type ",(0,r.yg)("inlineCode",{parentName:"p"},"T")),(0,r.yg)("p",null,"When merging defaults and form data, we want to merge in this specific way:"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"objects are deeply merged"),(0,r.yg)("li",{parentName:"ul"},"arrays are merged in such a way that:",(0,r.yg)("ul",{parentName:"li"},(0,r.yg)("li",{parentName:"ul"},"when the array is set in form data, only array entries set in form data are deeply merged; additional entries from the defaults are ignored unless ",(0,r.yg)("inlineCode",{parentName:"li"},"mergeExtraArrayDefaults")," is true, in which case the extras are appended onto the end of the form data"),(0,r.yg)("li",{parentName:"ul"},"when the array is not set in form data, the default is copied over"))),(0,r.yg)("li",{parentName:"ul"},"scalars are overwritten/set by form data")),(0,r.yg)("h4",{id:"parameters-37"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"[defaults]",": T | undefined - The defaults to merge"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The form data into which the defaults will be merged"),(0,r.yg)("li",{parentName:"ul"},"[mergeExtraArrayDefaults=false]",": boolean - If true, any additional default array entries are appended onto the formData")),(0,r.yg)("h4",{id:"returns-37"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"T | undefined: The resulting merged form data with defaults")),(0,r.yg)("h3",{id:"mergeobjects"},"mergeObjects()"),(0,r.yg)("p",null,"Recursively merge deeply nested objects."),(0,r.yg)("h4",{id:"parameters-38"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"obj1: GenericObjectType - The first object to merge"),(0,r.yg)("li",{parentName:"ul"},"obj2: GenericObjectType - The second object to merge"),(0,r.yg)("li",{parentName:"ul"},"[concatArrays=false]",': boolean | "preventDuplicates" - Optional flag that, when true, will cause arrays to be concatenated. Use "preventDuplicates" to merge arrays in a manner that prevents any duplicate entries from being merged.')),(0,r.yg)("h4",{id:"returns-38"},"Returns"),(0,r.yg)("p",null,"@returns - A new object that is the merge of the two given objects"),(0,r.yg)("h3",{id:"mergeschemas"},"mergeSchemas()"),(0,r.yg)("p",null,"Recursively merge deeply nested schemas.\nThe difference between mergeSchemas and mergeObjects is that mergeSchemas only concats arrays for values under the 'required' keyword, and when it does, it doesn't include duplicate values. NOTE: Uses shallow comparison for the duplicate checking."),(0,r.yg)("h4",{id:"parameters-39"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"obj1: GenericObjectType - The first object to merge"),(0,r.yg)("li",{parentName:"ul"},"obj2: GenericObjectType - The second object to merge")),(0,r.yg)("h4",{id:"returns-39"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"GenericObjectType: The merged schema object")),(0,r.yg)("h3",{id:"optionid"},"optionId()"),(0,r.yg)("p",null,"Return a consistent ",(0,r.yg)("inlineCode",{parentName:"p"},"id")," for the ",(0,r.yg)("inlineCode",{parentName:"p"},"optionIndex"),"s of a ",(0,r.yg)("inlineCode",{parentName:"p"},"Radio")," or ",(0,r.yg)("inlineCode",{parentName:"p"},"Checkboxes")," widget"),(0,r.yg)("h4",{id:"parameters-40"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"id: string - The id of the parent component for the option"),(0,r.yg)("li",{parentName:"ul"},"optionIndex: number - The index of the option for which the id is desired")),(0,r.yg)("h4",{id:"returns-40"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: An id for the option index based on the parent ",(0,r.yg)("inlineCode",{parentName:"li"},"id"))),(0,r.yg)("h3",{id:"optionslists-extends-strictrjsfschema--rjsfschema-t--any-f-extends-formcontexttype--any"},"optionsList","<","S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any>()"),(0,r.yg)("p",null,"Gets the list of options from the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema"),". If the schema has an enum list, then those enum values are returned.\nThe labels for the options will be extracted from the non-standard, RJSF-deprecated ",(0,r.yg)("inlineCode",{parentName:"p"},"enumNames")," if it exists, otherwise\nthe label will be the same as the ",(0,r.yg)("inlineCode",{parentName:"p"},"value"),". If the schema has a ",(0,r.yg)("inlineCode",{parentName:"p"},"oneOf")," or ",(0,r.yg)("inlineCode",{parentName:"p"},"anyOf"),", then the value is the list of\n",(0,r.yg)("inlineCode",{parentName:"p"},"const")," values from the schema and the label is either the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema.title")," or the value. If a ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," is provided\nand it has the ",(0,r.yg)("inlineCode",{parentName:"p"},"ui:enumNames")," matched with ",(0,r.yg)("inlineCode",{parentName:"p"},"enum")," or it has an associated ",(0,r.yg)("inlineCode",{parentName:"p"},"oneOf")," or ",(0,r.yg)("inlineCode",{parentName:"p"},"anyOf")," with a list of objects\ncontaining ",(0,r.yg)("inlineCode",{parentName:"p"},"ui:title")," then the UI schema values will replace the values from the schema."),(0,r.yg)("p",null,"NOTE: ",(0,r.yg)("inlineCode",{parentName:"p"},"enumNames"),' is deprecated and will be removed in a future major version of RJSF. Use the "ui:enumNames" property in the uiSchema instead.'),(0,r.yg)("h4",{id:"parameters-41"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema from which to extract the options list"),(0,r.yg)("li",{parentName:"ul"},"uiSchema: UiSchema - The optional uiSchema from which to get alternate labels for the options")),(0,r.yg)("h4",{id:"returns-41"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"{ schema?: S, label: string, value: any }: The list of options from the schema")),(0,r.yg)("h3",{id:"orderproperties"},"orderProperties()"),(0,r.yg)("p",null,"Given a list of ",(0,r.yg)("inlineCode",{parentName:"p"},"properties")," and an ",(0,r.yg)("inlineCode",{parentName:"p"},"order")," list, returns a list that contains the ",(0,r.yg)("inlineCode",{parentName:"p"},"properties")," ordered correctly.\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"order")," is not an array, then the untouched ",(0,r.yg)("inlineCode",{parentName:"p"},"properties")," list is returned.\nOtherwise ",(0,r.yg)("inlineCode",{parentName:"p"},"properties")," is ordered per the ",(0,r.yg)("inlineCode",{parentName:"p"},"order")," list.\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"order")," contains a '",(0,r.yg)("em",{parentName:"p"},"' then any ",(0,r.yg)("inlineCode",{parentName:"em"},"properties")," that are not mentioned explicity in ",(0,r.yg)("inlineCode",{parentName:"em"},"order")," will be places in the location of the `"),"`."),(0,r.yg)("h4",{id:"parameters-42"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"properties: string[] - The list of property keys to be ordered"),(0,r.yg)("li",{parentName:"ul"},"order: string[] - An array of property keys to be ordered first, with an optional '","*","' property")),(0,r.yg)("h4",{id:"returns-42"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string[]: A list with the ",(0,r.yg)("inlineCode",{parentName:"li"},"properties")," ordered")),(0,r.yg)("h4",{id:"throws-3"},"Throws"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"Error when the properties cannot be ordered correctly")),(0,r.yg)("h3",{id:"pad"},"pad()"),(0,r.yg)("p",null,"Returns a string representation of the ",(0,r.yg)("inlineCode",{parentName:"p"},"num"),' that is padded with leading "0"s if necessary'),(0,r.yg)("h4",{id:"parameters-43"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"num: number - The number to pad"),(0,r.yg)("li",{parentName:"ul"},"width: number - The width of the string at which no lead padding is necessary")),(0,r.yg)("h4",{id:"returns-43"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The number converted to a string with leading zero padding if the number of digits is less than ",(0,r.yg)("inlineCode",{parentName:"li"},"width"))),(0,r.yg)("h3",{id:"parsedatestring"},"parseDateString()"),(0,r.yg)("p",null,"Parses the ",(0,r.yg)("inlineCode",{parentName:"p"},"dateString")," into a ",(0,r.yg)("inlineCode",{parentName:"p"},"DateObject"),", including the time information when ",(0,r.yg)("inlineCode",{parentName:"p"},"includeTime")," is true"),(0,r.yg)("h4",{id:"parameters-44"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"dateString: string - The date string to parse into a DateObject"),(0,r.yg)("li",{parentName:"ul"},"[includeTime=true]",": boolean - Optional flag, if false, will not include the time data into the object")),(0,r.yg)("h4",{id:"returns-44"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"DateObject: The date string converted to a ",(0,r.yg)("inlineCode",{parentName:"li"},"DateObject"))),(0,r.yg)("h4",{id:"throws-4"},"Throws"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"Error when the date cannot be parsed from the string")),(0,r.yg)("h3",{id:"rangespecs-extends-strictrjsfschema--rjsfschema"},"rangeSpec","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Extracts the range spec information ",(0,r.yg)("inlineCode",{parentName:"p"},"{ step?: number, min?: number, max?: number }")," that can be spread onto an HTML input from the range analog in the schema ",(0,r.yg)("inlineCode",{parentName:"p"},"{ multipleOf?: number, minimum?: number, maximum?: number }"),"."),(0,r.yg)("h4",{id:"parameters-45"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema from which to extract the range spec")),(0,r.yg)("h4",{id:"returns-45"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"RangeSpecType: A range specification from the schema")),(0,r.yg)("h3",{id:"replacestringparameters"},"replaceStringParameters()"),(0,r.yg)("p",null,"Potentially substitutes all replaceable parameters with the associated value(s) from the ",(0,r.yg)("inlineCode",{parentName:"p"},"params")," if available.\nWhen a ",(0,r.yg)("inlineCode",{parentName:"p"},"params")," array is provided, each value in the array is used to replace any of the replaceable parameters in the ",(0,r.yg)("inlineCode",{parentName:"p"},"inputString")," using the ",(0,r.yg)("inlineCode",{parentName:"p"},"%1"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"%2"),", etc. replacement specifiers."),(0,r.yg)("h4",{id:"parameters-46"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"inputString: string - The string which will be potentially updated with replacement parameters"),(0,r.yg)("li",{parentName:"ul"},"[params]",": string[] - The optional list of replaceable parameter values to substitute into the english string")),(0,r.yg)("h4",{id:"returns-46"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The updated string with any replacement specifiers replaced")),(0,r.yg)("h3",{id:"schemarequirestruevalues-extends-strictrjsfschema--rjsfschema"},"schemaRequiresTrueValue","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Check to see if a ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," specifies that a value must be true. This happens when:"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("inlineCode",{parentName:"li"},"schema.const")," is truthy"),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("inlineCode",{parentName:"li"},"schema.enum")," == ",(0,r.yg)("inlineCode",{parentName:"li"},"[true]")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("inlineCode",{parentName:"li"},"schema.anyOf")," or ",(0,r.yg)("inlineCode",{parentName:"li"},"schema.oneOf")," has a single value which recursively returns true"),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("inlineCode",{parentName:"li"},"schema.allOf")," has at least one value which recursively returns true")),(0,r.yg)("h4",{id:"parameters-47"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema to check")),(0,r.yg)("h4",{id:"returns-47"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if the schema specifies a value that must be true, false otherwise")),(0,r.yg)("h3",{id:"shouldrender"},"shouldRender()"),(0,r.yg)("p",null,"Determines whether the given ",(0,r.yg)("inlineCode",{parentName:"p"},"component")," should be rerendered by comparing its current set of props and state against the next set.\nIf either of those two sets are not the same, then the component should be rerendered."),(0,r.yg)("h4",{id:"parameters-48"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"component: React.Component - A React component being checked"),(0,r.yg)("li",{parentName:"ul"},"nextProps: any - The next set of props against which to check"),(0,r.yg)("li",{parentName:"ul"},"nextState: any - The next set of state against which to check")),(0,r.yg)("h4",{id:"returns-48"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"True if boolean: the component should be re-rendered, false otherwise")),(0,r.yg)("h3",{id:"titleidt--any"},"titleId()"),(0,r.yg)("p",null,"Return a consistent ",(0,r.yg)("inlineCode",{parentName:"p"},"id")," for the field title element."),(0,r.yg)("h4",{id:"parameters-49"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"id: IdSchema","<","T> | string - Either simple string id or an IdSchema from which to extract it")),(0,r.yg)("h4",{id:"returns-49"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The consistent id for the field title element from the given ",(0,r.yg)("inlineCode",{parentName:"li"},"id"))),(0,r.yg)("h3",{id:"toconstants-extends-strictrjsfschema--rjsfschema"},"toConstant","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Returns the constant value from the schema when it is either a single value enum or has a const key.\nOtherwise, throws an error."),(0,r.yg)("h4",{id:"parameters-50"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema from which to obtain the constant value")),(0,r.yg)("h4",{id:"returns-50"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string | number | boolean: The constant value for the schema")),(0,r.yg)("h4",{id:"throws-5"},"Throws"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"Error when the schema does not have a constant value")),(0,r.yg)("h3",{id:"todatestring"},"toDateString()"),(0,r.yg)("p",null,"Returns a UTC date string for the given ",(0,r.yg)("inlineCode",{parentName:"p"},"dateObject"),".\nIf ",(0,r.yg)("inlineCode",{parentName:"p"},"time")," is false, then the time portion of the string is removed."),(0,r.yg)("h4",{id:"parameters-51"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"dateObject: DateObject - The ",(0,r.yg)("inlineCode",{parentName:"li"},"DateObject")," to convert to a date string"),(0,r.yg)("li",{parentName:"ul"},"[time=true]",": boolean - Optional flag used to remove the time portion of the date string if false")),(0,r.yg)("h4",{id:"returns-51"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: The UTC date string")),(0,r.yg)("h3",{id:"toerrorlistt--any"},"toErrorList()"),(0,r.yg)("p",null,"Converts an ",(0,r.yg)("inlineCode",{parentName:"p"},"errorSchema")," into a list of ",(0,r.yg)("inlineCode",{parentName:"p"},"RJSFValidationErrors")),(0,r.yg)("h4",{id:"parameters-52"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"errorSchema: ErrorSchema","<","T> - The ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")," instance to convert"),(0,r.yg)("li",{parentName:"ul"},"[fieldPath=[]]: string[] | undefined - The current field path, defaults to [] if not specified")),(0,r.yg)("h4",{id:"returns-52"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"RJSFValidationErrors[]: The list of ",(0,r.yg)("inlineCode",{parentName:"li"},"RJSFValidationErrors")," extracted from the ",(0,r.yg)("inlineCode",{parentName:"li"},"errorSchema"))),(0,r.yg)("h3",{id:"toerrorschemat--any"},"toErrorSchema()"),(0,r.yg)("p",null,"Transforms a RJSF validation errors list into an ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema")),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-ts"},"const changesThis = [\n { property: '.level1.level2[2].level3', message: 'err a' },\n { property: '.level1.level2[2].level3', message: 'err b' },\n { property: '.level1.level2[4].level3', message: 'err b' },\n];\nconst intoThis = {\n level1: {\n level2: {\n 2: { level3: { errors: ['err a', 'err b'] } },\n 4: { level3: { errors: ['err b'] } },\n },\n },\n};\n")),(0,r.yg)("h4",{id:"parameters-53"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"errors: RJSFValidationError[] - The list of RJSFValidationError objects")),(0,r.yg)("h4",{id:"returns-53"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ErrorSchema","<","T>: The ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")," built from the list of ",(0,r.yg)("inlineCode",{parentName:"li"},"RJSFValidationErrors"))),(0,r.yg)("h4",{id:"unwraperrorhandlert--any"},"unwrapErrorHandler()"),(0,r.yg)("p",null,"Unwraps the ",(0,r.yg)("inlineCode",{parentName:"p"},"errorHandler")," structure into the associated ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema"),", stripping the ",(0,r.yg)("inlineCode",{parentName:"p"},"addError()")," functions from it"),(0,r.yg)("h4",{id:"parameters-54"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"errorHandler: FormValidation","<","T> - The ",(0,r.yg)("inlineCode",{parentName:"li"},"FormValidation")," error handling structure")),(0,r.yg)("h4",{id:"returns-54"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ErrorSchema","<","T>: The ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")," resulting from the stripping of the ",(0,r.yg)("inlineCode",{parentName:"li"},"addError()")," function")),(0,r.yg)("h3",{id:"utctolocal"},"utcToLocal()"),(0,r.yg)("p",null,"Converts a UTC date string into a local Date format"),(0,r.yg)("h4",{id:"parameters-55"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"jsonDate: string - A UTC date string")),(0,r.yg)("h4",{id:"returns-55"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"string: An empty string when ",(0,r.yg)("inlineCode",{parentName:"li"},"jsonDate")," is falsey, otherwise a date string in local format")),(0,r.yg)("h3",{id:"validationdatamerget--any"},"validationDataMerge()"),(0,r.yg)("p",null,"Merges the errors in ",(0,r.yg)("inlineCode",{parentName:"p"},"additionalErrorSchema")," into the existing ",(0,r.yg)("inlineCode",{parentName:"p"},"validationData")," by combining the hierarchies in the two ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema"),"s and then appending the error list from the ",(0,r.yg)("inlineCode",{parentName:"p"},"additionalErrorSchema")," obtained by calling ",(0,r.yg)("inlineCode",{parentName:"p"},"toErrorList()")," on the ",(0,r.yg)("inlineCode",{parentName:"p"},"errors")," in the ",(0,r.yg)("inlineCode",{parentName:"p"},"validationData"),".\nIf no ",(0,r.yg)("inlineCode",{parentName:"p"},"additionalErrorSchema")," is passed, then ",(0,r.yg)("inlineCode",{parentName:"p"},"validationData")," is returned."),(0,r.yg)("h4",{id:"parameters-56"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validationData: ValidationData","<","T> - The current ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidationData")," into which to merge the additional errors"),(0,r.yg)("li",{parentName:"ul"},"[additionalErrorSchema]",": ErrorSchema","<","T> | undefined - The optional additional set of errors in an ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema"))),(0,r.yg)("h4",{id:"returns-56"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ValidationData","<","T>: The ",(0,r.yg)("inlineCode",{parentName:"li"},"validationData")," with the additional errors from ",(0,r.yg)("inlineCode",{parentName:"li"},"additionalErrorSchema")," merged into it, if provided.")),(0,r.yg)("h3",{id:"withidrefprefixs-extends-strictrjsfschema--rjsfschema"},"withIdRefPrefix","<","S extends StrictRJSFSchema = RJSFSchema>()"),(0,r.yg)("p",null,"Recursively prefixes all ",(0,r.yg)("inlineCode",{parentName:"p"},"$ref"),"s in a schema with the value of the ",(0,r.yg)("inlineCode",{parentName:"p"},"ROOT_SCHEMA_PREFIX")," constant.\nThis is used in isValid to make references to the rootSchema"),(0,r.yg)("h4",{id:"parameters-57"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"schemaNode: S - The object node to which a ",(0,r.yg)("inlineCode",{parentName:"li"},"ROOT_SCHEMA_PREFIX")," is added when a ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref")," is part of it")),(0,r.yg)("h4",{id:"returns-57"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"S: A copy of the ",(0,r.yg)("inlineCode",{parentName:"li"},"schemaNode")," with updated ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s")),(0,r.yg)("h2",{id:"validator-based-utility-functions"},"Validator-based utility functions"),(0,r.yg)("h3",{id:"getdefaultformstatet--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getDefaultFormState()"),(0,r.yg)("p",null,"Returns the superset of ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," that includes the given set updated to include any missing fields that have computed to have defaults provided in the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema"),"."),(0,r.yg)("h4",{id:"parameters-58"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"theSchema: S - The schema for which the default state is desired"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The current formData, if any, onto which to provide any missing defaults"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema]",": S | undefined - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s"),(0,r.yg)("li",{parentName:"ul"},"[includeUndefinedValues=false]",': boolean | "excludeObjectChildren" - Optional flag, if true, cause undefined values to be added as defaults. If "excludeObjectChildren", cause undefined values for this object and pass ',(0,r.yg)("inlineCode",{parentName:"li"},"includeUndefinedValues")," as false when computing defaults for any nested object properties.")),(0,r.yg)("h4",{id:"returns-58"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"T: The resulting ",(0,r.yg)("inlineCode",{parentName:"li"},"formData")," with all the defaults provided")),(0,r.yg)("h3",{id:"getdisplaylabelt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getDisplayLabel()"),(0,r.yg)("p",null,"Determines whether the combination of ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," properties indicates that the label for the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," should be displayed in a UI."),(0,r.yg)("h4",{id:"parameters-59"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which the display label flag is desired"),(0,r.yg)("li",{parentName:"ul"},"[uiSchema={}]",": UiSchema - The UI schema from which to derive potentially displayable information"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema]",": S | undefined - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s"),(0,r.yg)("li",{parentName:"ul"},"[globalOptions={}]",": GlobalUISchemaOptions - The optional Global UI Schema from which to get any fallback ",(0,r.yg)("inlineCode",{parentName:"li"},"xxx")," options")),(0,r.yg)("h4",{id:"returns-59"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if the label should be displayed or false if it should not")),(0,r.yg)("h3",{id:"getclosestmatchingoptiont--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getClosestMatchingOption()"),(0,r.yg)("p",null,"Determines which of the given ",(0,r.yg)("inlineCode",{parentName:"p"},"options")," provided most closely matches the ",(0,r.yg)("inlineCode",{parentName:"p"},"formData"),".\nReturns the index of the option that is valid and is the closest match, or 0 if there is no match."),(0,r.yg)("p",null,"The closest match is determined using the number of matching properties, and more heavily favors options with matching readOnly, default, or const values."),(0,r.yg)("h4",{id:"parameters-60"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"rootSchema: S - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The current formData, if any, used to figure out a match"),(0,r.yg)("li",{parentName:"ul"},"options: S[] - The list of options to find a matching options from"),(0,r.yg)("li",{parentName:"ul"},"[selectedOption=-1]",": number - The index of the currently selected option, defaulted to -1 if not specified"),(0,r.yg)("li",{parentName:"ul"},"[discriminatorField]",": string | undefined - The optional name of the field within the options object whose value is used to determine which option is selected")),(0,r.yg)("h4",{id:"returns-60"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"number: The index of the option that is the closest match to the ",(0,r.yg)("inlineCode",{parentName:"li"},"formData")," or the ",(0,r.yg)("inlineCode",{parentName:"li"},"selectedOption")," if no match")),(0,r.yg)("h3",{id:"getfirstmatchingoptiont--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getFirstMatchingOption()"),(0,r.yg)("p",null,"Given the ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," and list of ",(0,r.yg)("inlineCode",{parentName:"p"},"options"),", attempts to find the index of the first option that matches the data.\nAlways returns the first option if there is nothing that matches."),(0,r.yg)("h4",{id:"parameters-61"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The current formData, if any, used to figure out a match"),(0,r.yg)("li",{parentName:"ul"},"options: S[] - The list of options to find a matching options from"),(0,r.yg)("li",{parentName:"ul"},"rootSchema: S - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s"),(0,r.yg)("li",{parentName:"ul"},"[discriminatorField]",": string | undefined - The optional name of the field within the options object whose value is used to determine which option is selected")),(0,r.yg)("h4",{id:"returns-61"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"number: The index of the first matched option or 0 if none is available")),(0,r.yg)("h3",{id:"getmatchingoptiont--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"getMatchingOption()"),(0,r.yg)("p",null,"Given the ",(0,r.yg)("inlineCode",{parentName:"p"},"formData")," and list of ",(0,r.yg)("inlineCode",{parentName:"p"},"options"),", attempts to find the index of the option that best matches the data.\nDeprecated, use ",(0,r.yg)("inlineCode",{parentName:"p"},"getFirstMatchingOption()")," instead."),(0,r.yg)("h4",{id:"parameters-62"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The current formData, if any, used to figure out a match"),(0,r.yg)("li",{parentName:"ul"},"options: S[] - The list of options to find a matching options from"),(0,r.yg)("li",{parentName:"ul"},"rootSchema: S - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s"),(0,r.yg)("li",{parentName:"ul"},"[discriminatorField]",": string | undefined - The optional name of the field within the options object whose value is used to determine which option is selected")),(0,r.yg)("h4",{id:"returns-62"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"number: The index of the matched option or 0 if none is available")),(0,r.yg)("h3",{id:"isfilesarrayt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"isFilesArray()"),(0,r.yg)("p",null,"Checks to see if the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"uiSchema")," combination represents an array of files"),(0,r.yg)("h4",{id:"parameters-63"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which check for array of files flag is desired"),(0,r.yg)("li",{parentName:"ul"},"[uiSchema={}]",": UiSchema - The UI schema from which to check the widget"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema]",": S | undefined - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s")),(0,r.yg)("h4",{id:"returns-63"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if schema/uiSchema contains an array of files, otherwise false")),(0,r.yg)("h3",{id:"ismultiselectt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"isMultiSelect()"),(0,r.yg)("p",null,"Checks to see if the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," combination represents a multi-select"),(0,r.yg)("h4",{id:"parameters-64"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which check for a multi-select flag is desired"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema]",": S | undefined - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s")),(0,r.yg)("h4",{id:"returns-64"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if schema contains a multi-select, otherwise false")),(0,r.yg)("h3",{id:"isselectt--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"isSelect()"),(0,r.yg)("p",null,"Checks to see if the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," combination represents a select"),(0,r.yg)("h4",{id:"parameters-65"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"theSchema: S - The schema for which check for a select flag is desired"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema]",": S | undefined - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s")),(0,r.yg)("h4",{id:"returns-65"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"boolean: True if schema contains a select, otherwise false")),(0,r.yg)("h3",{id:"mergevalidationdatat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"mergeValidationData()"),(0,r.yg)("p",null,"Merges the errors in ",(0,r.yg)("inlineCode",{parentName:"p"},"additionalErrorSchema")," into the existing ",(0,r.yg)("inlineCode",{parentName:"p"},"validationData")," by combining the hierarchies in the two ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema"),"s and then appending the error list from the ",(0,r.yg)("inlineCode",{parentName:"p"},"additionalErrorSchema")," obtained by calling ",(0,r.yg)("inlineCode",{parentName:"p"},"validator.toErrorList()")," onto the ",(0,r.yg)("inlineCode",{parentName:"p"},"errors")," in the ",(0,r.yg)("inlineCode",{parentName:"p"},"validationData"),".\nIf no ",(0,r.yg)("inlineCode",{parentName:"p"},"additionalErrorSchema")," is passed, then ",(0,r.yg)("inlineCode",{parentName:"p"},"validationData")," is returned."),(0,r.yg)("blockquote",null,(0,r.yg)("p",{parentName:"blockquote"},"NOTE: This is function is deprecated. Use the ",(0,r.yg)("inlineCode",{parentName:"p"},"validationDataMerge()")," function exported from ",(0,r.yg)("inlineCode",{parentName:"p"},"@rjsf/utils")," instead. This function will be\nremoved in the next major release.")),(0,r.yg)("h4",{id:"parameters-66"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType","<","T, S, F> - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used to convert an ErrorSchema to a list of errors"),(0,r.yg)("li",{parentName:"ul"},"validationData: ValidationData","<","T> - The current ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidationData")," into which to merge the additional errors"),(0,r.yg)("li",{parentName:"ul"},"[additionalErrorSchema]",": ErrorSchema","<","T> | undefined - The additional set of errors in an ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema"))),(0,r.yg)("h4",{id:"returns-66"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ValidationData","<","T>: The ",(0,r.yg)("inlineCode",{parentName:"li"},"validationData")," with the additional errors from ",(0,r.yg)("inlineCode",{parentName:"li"},"additionalErrorSchema")," merged into it, if provided.")),(0,r.yg)("h3",{id:"retrieveschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"retrieveSchema()"),(0,r.yg)("p",null,"Retrieves an expanded schema that has had all of its conditions, additional properties, references and dependencies\nresolved and merged into the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema")," given a ",(0,r.yg)("inlineCode",{parentName:"p"},"validator"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"rootSchema")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"rawFormData")," that is used to do the\npotentially recursive resolution."),(0,r.yg)("h4",{id:"parameters-67"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be forwarded to all the APIs"),(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which retrieving a schema is desired"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema={}]",": S - The root schema that will be forwarded to all the APIs"),(0,r.yg)("li",{parentName:"ul"},"[rawFormData]",": T | undefined - The current formData, if any, to assist retrieving a schema")),(0,r.yg)("h4",{id:"returns-67"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"RJSFSchema: The schema having its conditions, additional properties, references and dependencies resolved")),(0,r.yg)("h3",{id:"sanitizedatafornewschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"sanitizeDataForNewSchema()"),(0,r.yg)("p",null,"Sanitize the ",(0,r.yg)("inlineCode",{parentName:"p"},"data")," associated with the ",(0,r.yg)("inlineCode",{parentName:"p"},"oldSchema")," so it is considered appropriate for the ",(0,r.yg)("inlineCode",{parentName:"p"},"newSchema"),".\nIf the new schema does not contain any properties, then ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined")," is returned to clear all the form data.\nDue to the nature of schemas, this sanitization happens recursively for nested objects of data.\nAlso, any properties in the old schema that are non-existent in the new schema are set to ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined"),"."),(0,r.yg)("h4",{id:"parameters-68"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"rootSchema: S - The root JSON schema of the entire form"),(0,r.yg)("li",{parentName:"ul"},"[newSchema]",": S | undefined - The new schema for which the data is being sanitized"),(0,r.yg)("li",{parentName:"ul"},"[oldSchema]",": S | undefined - The old schema from which the data originated"),(0,r.yg)("li",{parentName:"ul"},"[data={}]",": any - The form data associated with the schema, defaulting to an empty object when undefined")),(0,r.yg)("h4",{id:"returns-68"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"T: The new form data, with all the fields uniquely associated with the old schema set to ",(0,r.yg)("inlineCode",{parentName:"li"},"undefined"),". Will return ",(0,r.yg)("inlineCode",{parentName:"li"},"undefined")," if the new schema is not an object containing properties.")),(0,r.yg)("h3",{id:"toidschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"toIdSchema()"),(0,r.yg)("p",null,"Generates an ",(0,r.yg)("inlineCode",{parentName:"p"},"IdSchema")," object for the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema"),", recursively"),(0,r.yg)("h4",{id:"parameters-69"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which the ",(0,r.yg)("inlineCode",{parentName:"li"},"IdSchema")," is desired"),(0,r.yg)("li",{parentName:"ul"},"[id]",": string | null - The base id for the schema"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema]",": S | undefined- The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The current formData, if any, to assist retrieving a schema"),(0,r.yg)("li",{parentName:"ul"},"[idPrefix='root']",": string - The prefix to use for the id"),(0,r.yg)("li",{parentName:"ul"},"[idSeparator='_']",": string - The separator to use for the path segments in the id")),(0,r.yg)("h4",{id:"returns-69"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"IDSchema","<","T>: The ",(0,r.yg)("inlineCode",{parentName:"li"},"IdSchema")," object for the ",(0,r.yg)("inlineCode",{parentName:"li"},"schema"))),(0,r.yg)("h3",{id:"topathschemat--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"toPathSchema()"),(0,r.yg)("p",null,"Generates an ",(0,r.yg)("inlineCode",{parentName:"p"},"PathSchema")," object for the ",(0,r.yg)("inlineCode",{parentName:"p"},"schema"),", recursively"),(0,r.yg)("h4",{id:"parameters-70"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - An implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be used when necessary"),(0,r.yg)("li",{parentName:"ul"},"schema: S - The schema for which the ",(0,r.yg)("inlineCode",{parentName:"li"},"PathSchema")," is desired"),(0,r.yg)("li",{parentName:"ul"},"[name='']",": string - The base name for the schema"),(0,r.yg)("li",{parentName:"ul"},"[rootSchema]",": S | undefined - The root schema, used to primarily to look up ",(0,r.yg)("inlineCode",{parentName:"li"},"$ref"),"s"),(0,r.yg)("li",{parentName:"ul"},"[formData]",": T | undefined - The current formData, if any, to assist retrieving a schema")),(0,r.yg)("h4",{id:"returns-70"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"PathSchema","<","T> - The ",(0,r.yg)("inlineCode",{parentName:"li"},"PathSchema")," object for the ",(0,r.yg)("inlineCode",{parentName:"li"},"schema"))),(0,r.yg)("h2",{id:"schema-utils-creation-function"},"Schema utils creation function"),(0,r.yg)("h3",{id:"createschemautilst--any-s-extends-strictrjsfschema--rjsfschema-f-extends-formcontexttype--any"},"createSchemaUtils()"),(0,r.yg)("p",null,"Creates a ",(0,r.yg)("inlineCode",{parentName:"p"},"SchemaUtilsType")," interface that is based around the given ",(0,r.yg)("inlineCode",{parentName:"p"},"validator")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"rootSchema")," parameters.\nThe resulting interface implementation will forward the ",(0,r.yg)("inlineCode",{parentName:"p"},"validator")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"rootSchema")," to all the wrapped APIs."),(0,r.yg)("h4",{id:"parameters-71"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"validator: ValidatorType - an implementation of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ValidatorType")," interface that will be forwarded to all the APIs"),(0,r.yg)("li",{parentName:"ul"},"rootSchema: S - The root schema that will be forwarded to all the APIs")),(0,r.yg)("h4",{id:"returns-71"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"SchemaUtilsType - An implementation of a ",(0,r.yg)("inlineCode",{parentName:"li"},"SchemaUtilsType")," interface")),(0,r.yg)("h2",{id:"errorschema-builder-class"},"ErrorSchema builder class"),(0,r.yg)("h3",{id:"errorschemabuildert--anyinitialschema-errorschemat-constructor"},"ErrorSchemaBuilder","<","T = any>(initialSchema?: ErrorSchema","<","T>) constructor"),(0,r.yg)("p",null,"The ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchemaBuilder<T>")," is used to build an ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema<T>")," since the definition of the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema")," type is designed for reading information rather than writing it.\nUse this class to add, replace or clear errors in an error schema by using either dotted path or an array of path names.\nOnce you are done building the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema"),", you can get the result and/or reset all the errors back to an initial set and start again."),(0,r.yg)("h4",{id:"parameters-72"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"[initialSchema]",": ErrorSchema","<","T> | undefined - The optional set of initial errors, that will be cloned into the class")),(0,r.yg)("h4",{id:"returns-72"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ErrorSchemaBuilder","<","T> - The instance of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchemaBuilder")," class")),(0,r.yg)("h3",{id:"errorschema-getter-function"},"ErrorSchema getter function"),(0,r.yg)("p",null,"Returns the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema")," that has been updated by the methods of the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchemaBuilder")),(0,r.yg)("p",null,"Usage:"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-ts"},'import { ErrorSchemaBuilder, ErrorSchema } from "@rjsf/utils";\n\nconst builder = new ErrorSchemaBuilder();\n\n// Do some work using the builder\n...\n\nconst errorSchema: ErrorSchema = builder.ErrorSchema;\n')),(0,r.yg)("h3",{id:"resetallerrors"},"resetAllErrors()"),(0,r.yg)("p",null,"Resets all errors in the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchemaBuilder")," back to the ",(0,r.yg)("inlineCode",{parentName:"p"},"initialSchema")," if provided, otherwise an empty set."),(0,r.yg)("h4",{id:"parameters-73"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"[initialSchema]",": ErrorSchema","<","T> | undefined - The optional set of initial errors, that will be cloned into the class")),(0,r.yg)("h4",{id:"returns-73"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ErrorSchemaBuilder","<","T> - The instance of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchemaBuilder")," class")),(0,r.yg)("h3",{id:"adderrors"},"addErrors()"),(0,r.yg)("p",null,"Adds the ",(0,r.yg)("inlineCode",{parentName:"p"},"errorOrList")," to the list of errors in the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema")," at either the root level or the location within the schema described by the ",(0,r.yg)("inlineCode",{parentName:"p"},"pathOfError"),".\nFor more information about how to specify the path see the ",(0,r.yg)("a",{parentName:"p",href:"https://github.com/wix/eslint-plugin-lodash/blob/master/docs/rules/path-style.md"},"eslint lodash plugin docs"),"."),(0,r.yg)("h4",{id:"parameters-74"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"errorOrList: string | string[] - The error or list of errors to add into the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")),(0,r.yg)("li",{parentName:"ul"},"[pathOfError]",": string | (string | number)[] | undefined - The optional path into the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")," at which to add the error(s)")),(0,r.yg)("h4",{id:"returns-74"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ErrorSchemaBuilder","<","T> - The instance of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchemaBuilder")," class")),(0,r.yg)("h3",{id:"seterrors"},"setErrors()"),(0,r.yg)("p",null,"Sets/replaces the ",(0,r.yg)("inlineCode",{parentName:"p"},"errorOrList")," as the error(s) in the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema")," at either the root level or the location within the schema described by the ",(0,r.yg)("inlineCode",{parentName:"p"},"pathOfError"),".\nFor more information about how to specify the path see the ",(0,r.yg)("a",{parentName:"p",href:"https://github.com/wix/eslint-plugin-lodash/blob/master/docs/rules/path-style.md"},"eslint lodash plugin docs"),"."),(0,r.yg)("h4",{id:"parameters-75"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"errorOrList: string | string[] - The error or list of errors to add into the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")),(0,r.yg)("li",{parentName:"ul"},"[pathOfError]",": string | (string | number)[] | undefined - The optional path into the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")," at which to add the error(s)")),(0,r.yg)("h4",{id:"returns-75"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ErrorSchemaBuilder","<","T> - The instance of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchemaBuilder")," class")),(0,r.yg)("h3",{id:"clearerrors"},"clearErrors()"),(0,r.yg)("p",null,"Clears the error(s) in the ",(0,r.yg)("inlineCode",{parentName:"p"},"ErrorSchema")," at either the root level or the location within the schema described by the ",(0,r.yg)("inlineCode",{parentName:"p"},"pathOfError"),".\nFor more information about how to specify the path see the ",(0,r.yg)("a",{parentName:"p",href:"https://github.com/wix/eslint-plugin-lodash/blob/master/docs/rules/path-style.md"},"eslint lodash plugin docs"),"."),(0,r.yg)("h4",{id:"parameters-76"},"Parameters"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"[pathOfError]",": string | (string | number)[] | undefined - The optional path into the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchema")," at which to add the error(s)")),(0,r.yg)("h4",{id:"returns-76"},"Returns"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},"ErrorSchemaBuilder","<","T> - The instance of the ",(0,r.yg)("inlineCode",{parentName:"li"},"ErrorSchemaBuilder")," class")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/docs/assets/js/runtime~main.93661c84.js b/docs/assets/js/runtime~main.93661c84.js new file mode 100644 index 0000000000..3768a5e9ef --- /dev/null +++ b/docs/assets/js/runtime~main.93661c84.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,c,a,f,b,d={},r={};function t(e){var c=r[e];if(void 0!==c)return c.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return d[e].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=d,t.c=r,e=[],t.O=(c,a,f,b)=>{if(!a){var d=1/0;for(i=0;i=b)&&Object.keys(t.O).every((e=>t.O[e](a[o])))?a.splice(o--,1):(r=!1,b0&&e[i-1][2]>b;i--)e[i]=e[i-1];e[i]=[a,f,b]},t.n=e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return t.d(c,{a:c}),c},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,f){if(1&f&&(e=this(e)),8&f)return e;if("object"==typeof e&&e){if(4&f&&e.__esModule)return e;if(16&f&&"function"==typeof e.then)return e}var b=Object.create(null);t.r(b);var d={};c=c||[null,a({}),a([]),a(a)];for(var r=2&f&&e;"object"==typeof r&&!~c.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach((c=>d[c]=()=>e[c]));return d.default=()=>e,t.d(b,d),b},t.d=(e,c)=>{for(var a in c)t.o(c,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((c,a)=>(t.f[a](e,c),c)),[])),t.u=e=>"assets/js/"+({28:"55828450",108:"8bc2ac95",340:"d330ea77",392:"4f0869c8",550:"ea6a4d96",588:"38fbb798",1136:"81423478",1142:"76407226",1156:"5f32cc67",1200:"d5ac8034",1272:"471cbf69",1468:"0b3cdf12",1480:"3a4b2402",1504:"6b9b26b2",1556:"d7074bc5",1584:"d50357eb",1588:"2f92f8af",1608:"6f5f68c3",1748:"18754115",1856:"65a42dc2",1864:"c49a42af",1990:"e02c3a1f",2076:"165933ca",2128:"8073c6d8",2184:"4f1007ae",2256:"db61454e",2276:"1bfb7197",2454:"e6ac1264",2508:"400ce25c",2544:"ad4e2fc7",2648:"f5464f7a",2768:"6cc77d9e",3312:"3ddf1ed7",3438:"7c80f27c",3564:"ce8c3ba3",3688:"697c973a",3824:"17c4f025",3940:"219dd62e",4112:"e7c8e838",4130:"62a4c0df",4200:"bc30978e",4276:"479b786b",4608:"e5c1ae69",5108:"5a56bbfa",5472:"b55dc87a",5696:"935f2afb",5712:"4d54d076",5784:"f6a427b5",5900:"64eb1cb9",5904:"f3f7bfff",5988:"41ef4206",6120:"beeb8746",6128:"87c83d9b",6256:"f0347b45",6372:"92d5580e",6736:"e59d324b",6752:"17896441",6848:"516b911c",6940:"5fee4058",6968:"1a47775b",6976:"e1e16817",7368:"732cba76",7440:"154a8133",7488:"6544de8f",7681:"5137640e",7744:"5a7d1c91",7960:"deff9645",8388:"cd42c997",8456:"2ac27c21",8724:"7112b103",9076:"8bda08be",9196:"cd51a22b",9367:"8c1b5197",9548:"c61b9675",9605:"5802ae45",9648:"1a4e3797",9652:"e187e1d9",9656:"1be78505",9660:"9ff188b7",9768:"294529be",9860:"ce18b779",9904:"fd16ad34",9908:"791a9c83"}[e]||e)+"."+{28:"2b065623",108:"710647d2",340:"c19ffc63",392:"74466f1a",550:"c453fa3b",588:"88a00c95",1136:"e2c0b58a",1142:"91058388",1156:"b9ecc864",1200:"9fbd29ef",1272:"f8707b9b",1468:"70fff40d",1480:"b98dbc3f",1504:"a579b37c",1556:"d62a8b62",1584:"6d8d0ca1",1588:"d69fb227",1608:"8a452b94",1748:"93fd8f6a",1856:"abfdb249",1864:"527fc59d",1990:"6ef6ed69",2076:"43fe2c40",2128:"d4bdcd1b",2184:"87910254",2256:"ffbbb945",2272:"ff825110",2276:"0b382810",2454:"9cdbf12d",2508:"b910a301",2544:"15dda5e6",2648:"f236cd1c",2768:"12b9f768",3312:"c0a21af0",3438:"2a0ffadc",3564:"fe01ff58",3644:"bc6de301",3688:"cb0d59e5",3824:"36207f37",3940:"510ee49a",4112:"e82cb434",4130:"f86e9db3",4200:"aaaccd6c",4276:"cb5d0ad2",4608:"55ec06e7",5108:"1bf901f7",5472:"3a7d5a8c",5696:"dbbad3de",5712:"77657f15",5784:"4420eb6f",5900:"56a16faf",5904:"76b393c6",5988:"4424873c",6120:"e099f4cc",6128:"a4106e4f",6256:"fcb5fcbc",6372:"8e91d9ae",6736:"55cf3e02",6752:"1d620fb3",6848:"851e7998",6940:"5bbbed9c",6968:"b4e1f6af",6976:"56f0f6bd",7368:"11b6d2ef",7440:"ae9a173a",7488:"743cf46a",7681:"3d559b90",7744:"0fd0b4f2",7847:"810f0898",7960:"2926887e",8240:"d873a58c",8388:"c98fb299",8456:"cb44e6ce",8724:"6eb1d8ee",9076:"d10f7570",9196:"73c56f1d",9367:"a14c2dac",9548:"2878a326",9605:"7836f405",9648:"a72caa1f",9652:"e381802d",9656:"0934b729",9660:"e1cab0e8",9768:"9e1d7186",9860:"0b01eb04",9904:"fb23510f",9908:"1acfc0a7"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),f={},b="@rjsf/docs:",t.l=(e,c,a,d)=>{if(f[e])f[e].push(c);else{var r,o;if(void 0!==a)for(var n=document.getElementsByTagName("script"),i=0;i{r.onerror=r.onload=null,clearTimeout(l);var b=f[e];if(delete f[e],r.parentNode&&r.parentNode.removeChild(r),b&&b.forEach((e=>e(a))),c)return c(a)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),o&&document.head.appendChild(r)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/react-jsonschema-form/docs/",t.gca=function(e){return e={17896441:"6752",18754115:"1748",55828450:"28",76407226:"1142",81423478:"1136","8bc2ac95":"108",d330ea77:"340","4f0869c8":"392",ea6a4d96:"550","38fbb798":"588","5f32cc67":"1156",d5ac8034:"1200","471cbf69":"1272","0b3cdf12":"1468","3a4b2402":"1480","6b9b26b2":"1504",d7074bc5:"1556",d50357eb:"1584","2f92f8af":"1588","6f5f68c3":"1608","65a42dc2":"1856",c49a42af:"1864",e02c3a1f:"1990","165933ca":"2076","8073c6d8":"2128","4f1007ae":"2184",db61454e:"2256","1bfb7197":"2276",e6ac1264:"2454","400ce25c":"2508",ad4e2fc7:"2544",f5464f7a:"2648","6cc77d9e":"2768","3ddf1ed7":"3312","7c80f27c":"3438",ce8c3ba3:"3564","697c973a":"3688","17c4f025":"3824","219dd62e":"3940",e7c8e838:"4112","62a4c0df":"4130",bc30978e:"4200","479b786b":"4276",e5c1ae69:"4608","5a56bbfa":"5108",b55dc87a:"5472","935f2afb":"5696","4d54d076":"5712",f6a427b5:"5784","64eb1cb9":"5900",f3f7bfff:"5904","41ef4206":"5988",beeb8746:"6120","87c83d9b":"6128",f0347b45:"6256","92d5580e":"6372",e59d324b:"6736","516b911c":"6848","5fee4058":"6940","1a47775b":"6968",e1e16817:"6976","732cba76":"7368","154a8133":"7440","6544de8f":"7488","5137640e":"7681","5a7d1c91":"7744",deff9645:"7960",cd42c997:"8388","2ac27c21":"8456","7112b103":"8724","8bda08be":"9076",cd51a22b:"9196","8c1b5197":"9367",c61b9675:"9548","5802ae45":"9605","1a4e3797":"9648",e187e1d9:"9652","1be78505":"9656","9ff188b7":"9660","294529be":"9768",ce18b779:"9860",fd16ad34:"9904","791a9c83":"9908"}[e]||e,t.p+t.u(e)},(()=>{var e={296:0,2176:0};t.f.j=(c,a)=>{var f=t.o(e,c)?e[c]:void 0;if(0!==f)if(f)a.push(f[2]);else if(/^2(17|9)6$/.test(c))e[c]=0;else{var b=new Promise(((a,b)=>f=e[c]=[a,b]));a.push(f[2]=b);var d=t.p+t.u(c),r=new Error;t.l(d,(a=>{if(t.o(e,c)&&(0!==(f=e[c])&&(e[c]=void 0),f)){var b=a&&("load"===a.type?"missing":a.type),d=a&&a.target&&a.target.src;r.message="Loading chunk "+c+" failed.\n("+b+": "+d+")",r.name="ChunkLoadError",r.type=b,r.request=d,f[1](r)}}),"chunk-"+c,c)}},t.O.j=c=>0===e[c];var c=(c,a)=>{var f,b,d=a[0],r=a[1],o=a[2],n=0;if(d.some((c=>0!==e[c]))){for(f in r)t.o(r,f)&&(t.m[f]=r[f]);if(o)var i=o(t)}for(c&&c(a);n Contributing | react-jsonschema-form - + @@ -33,7 +33,7 @@ the latest changelog entry in CHANGELOG.md to make the release notes, and update as necessary.

This will trigger a GitHub Actions pipeline that will build and publish all packages to npm.

The package is published through an automation token belonging to the rjsf-bot user on npm. This token is stored as the NPM_TOKEN secret on GitHub Actions.

Releasing docs

Docs are automatically published to GitHub Pages when the main branch is updated.

We are currently in the process of automatically configuring versionable documentation on our new docs site.

Releasing the playground

The playground automatically gets deployed from GitHub Pages.

If you need to manually publish the latest playground to https://rjsf-team.github.io/react-jsonschema-form/, though, run:

cd packages/playground
npm run publish-to-gh-pages
- + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index f710c37069..8a76f7b26b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,13 +4,13 @@ Introduction | react-jsonschema-form - +
Version: v5

react-jsonschema-form

Build Status

A simple React component capable of building HTML forms out of a JSON schema.

A live playground is hosted on GitHub Pages:

Playground

Philosophy

react-jsonschema-form is meant to automatically generate a React form based on a JSON Schema. If you want to generate a form for any data, sight unseen, simply given a JSON schema, react-jsonschema-form may be for you. If you have a priori knowledge of your data and want a toolkit for generating forms for it, you might look elsewhere.

react-jsonschema-form also comes with tools such as uiSchema and other form props to customize the look and feel of the form beyond the default themes.

Installation

First install the dependencies from npm, along with a validator implementation (such as @rjsf/validator-ajv8):

$ npm install @rjsf/core @rjsf/utils @rjsf/validator-ajv8 --save

Then import the dependencies as follows:

import Form from '@rjsf/core';
import validator from '@rjsf/validator-ajv8';

Our latest version requires React 16+.

Usage

import Form from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
title: 'Todo',
type: 'object',
required: ['title'],
properties: {
title: { type: 'string', title: 'Title', default: 'A new task' },
done: { type: 'boolean', title: 'Done?', default: false },
},
};

const log = (type) => console.log.bind(console, type);

render(
<Form
schema={schema}
validator={validator}
onChange={log('changed')}
onSubmit={log('submitted')}
onError={log('errors')}
/>,
document.getElementById('app')
);

Theming

For more information on what themes we support, see Using Themes.

License

Apache 2

Credits

mozilla-services-logoThis project initially started as a mozilla-services project.
browserstack logoTesting is powered by BrowserStack.
netlify logoDeploy Previews are provided by Netlify.

Who uses react-jsonschema-form?

  • ...

Add your own company / organization by making a pull request.

- + \ No newline at end of file diff --git a/docs/json-schema/arrays/index.html b/docs/json-schema/arrays/index.html index ba35c79632..ed8c871deb 100644 --- a/docs/json-schema/arrays/index.html +++ b/docs/json-schema/arrays/index.html @@ -4,7 +4,7 @@ Arrays | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v5

Arrays

Arrays are defined with a type equal to array, and array items' schemas are specified in the items keyword.

Arrays of a single field

Arrays of a single field type can be specified as follows:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Arrays of objects

Arrays of objects can be specified as follows:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'object',
properties: {
name: {
type: 'string',
},
},
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

uiSchema for array items

To specify a uiSchema that applies to array items, specify the uiSchema value within the items property:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
};

const uiSchema = {
items: {
'ui:widget': 'textarea',
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

The additionalItems keyword

The additionalItems keyword allows the user to add additional items of a given schema. For example:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
additionalItems: {
type: 'boolean',
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Array item uiSchema options

Any of these options can be set globally if they are contained within the ui:globalOptions block. They can also be overridden on a per-field basis inside a ui:options block as shown below.

orderable option

Array items are orderable by default, and react-jsonschema-form renders move up/down buttons alongside them. The uiSchema orderable options allows you to disable ordering:

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
};

const uiSchema: UiSchema = {
'ui:options': {
orderable: false,
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

addable option

If either items or additionalItems contains a schema object, an add button for new items is shown by default. You can turn this off with the addable option in uiSchema:

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
};

const uiSchema: UiSchema = {
'ui:options': {
addable: false,
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

copyable option

A copy button is NOT shown by default for an item if items contains a schema object, or the item is an additionalItems instance. You can turn this ON with the copyable option in uiSchema:

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
};

const uiSchema: UiSchema = {
'ui:options': {
copyable: true,
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

removable option

A remove button is shown by default for an item if items contains a schema object, or the item is an additionalItems instance. You can turn this off with the removable option in uiSchema:

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
},
};

const uiSchema: UiSchema = {
'ui:options': {
removable: false,
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

Multiple-choice list

The default behavior for array fields is a list of text inputs with add/remove buttons. There are two alternative widgets for picking multiple elements from a list of choices. Typically, this applies when a schema has an enum list for the items property of an array field, and the uniqueItems property set to true.

Example:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
title: 'A multiple-choice list',
items: {
type: 'string',
enum: ['foo', 'bar', 'fuzz', 'qux'],
},
uniqueItems: true,
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

By default, this will render a multiple select box. If you prefer a list of checkboxes, just set the uiSchema ui:widget directive to checkboxes for that field:

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
title: 'A multiple-choice list',
items: {
type: 'string',
enum: ['foo', 'bar', 'fuzz', 'qux'],
},
uniqueItems: true,
};

const uiSchema: UiSchema = {
'ui:widget': 'checkboxes',
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

Custom widgets

In addition to ArrayFieldTemplate you use your own widget by providing it to the uiSchema with the property of ui:widget.

Example:

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const CustomSelectComponent = (props) => {
return (
<select>
{props.value.map((item, index) => (
<option key={index} id='custom-select'>
{item}
</option>
))}
</select>
);
};

const schema: RJSFSchema = {
type: 'array',
title: 'A multiple-choice list',
items: {
type: 'string',
},
};

const uiSchema: UiSchema = {
'ui:widget': 'CustomSelect',
};

const widgets = {
CustomSelect: CustomSelectComponent,
};

render(
<Form schema={schema} uiSchema={uiSchema} widgets={widgets} validator={validator} />,
document.getElementById('app')
);

Specifying the minimum or maximum number of items

Note that when an array property is marked as required, an empty array is considered valid. If the array needs to be populated, you can specify the minimum number of items using the minItems property.

Example:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
minItems: 2,
title: 'A multiple-choice list',
items: {
type: 'string',
enum: ['foo', 'bar', 'fuzz', 'qux'],
},
uniqueItems: true,
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

You can also specify the maximum number of items in an array using the maxItems property.

Inline checkboxes

By default, checkboxes are stacked. If you prefer them inline, set the inline property to true:

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'array',
minItems: 2,
title: 'A multiple-choice list',
items: {
type: 'string',
enum: ['foo', 'bar', 'fuzz', 'qux'],
},
uniqueItems: true,
};

const uiSchema: UiSchema = {
'ui:widget': 'checkboxes',
'ui:options': {
inline: true,
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));
- + \ No newline at end of file diff --git a/docs/json-schema/definitions/index.html b/docs/json-schema/definitions/index.html index bd646b3c7d..5c7ee6f0de 100644 --- a/docs/json-schema/definitions/index.html +++ b/docs/json-schema/definitions/index.html @@ -4,13 +4,13 @@ Schema definitions and references | react-jsonschema-form - +
Version: v5

Schema definitions and references

This library partially supports inline schema definition dereferencing, which allows you to re-use parts of your schema:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
definitions: {
address: {
type: 'object',
properties: {
street_address: { type: 'string' },
city: { type: 'string' },
state: { type: 'string' },
},
required: ['street_address', 'city', 'state'],
},
},
type: 'object',
properties: {
billing_address: { $ref: '#/definitions/address' },
shipping_address: { $ref: '#/definitions/address' },
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Note that this library only supports local definition referencing. The value in the $ref keyword should be a JSON Pointer in URI fragment identifier format.

- + \ No newline at end of file diff --git a/docs/json-schema/dependencies/index.html b/docs/json-schema/dependencies/index.html index 83d5e28ab2..35d28c7c83 100644 --- a/docs/json-schema/dependencies/index.html +++ b/docs/json-schema/dependencies/index.html @@ -4,14 +4,14 @@ Dependencies | react-jsonschema-form - +
Version: v5

Dependencies

react-jsonschema-form supports the dependencies keyword from an earlier draft of JSON Schema (note that this is not part of the latest JSON Schema spec, though). Dependencies can be used to create dynamic schemas that change fields based on what data is entered.

Property dependencies

This library supports conditionally making fields required based on the presence of other fields.

Unidirectional

In the following example the billing_address field will be required if credit_card is defined.

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',

properties: {
name: { type: 'string' },
credit_card: { type: 'number' },
billing_address: { type: 'string' },
},

required: ['name'],

dependencies: {
credit_card: ['billing_address'],
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Bidirectional

In the following example the billing_address field will be required if credit_card is defined and the credit_card field will be required if billing_address is defined, making them both required if either is defined.

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',

properties: {
name: { type: 'string' },
credit_card: { type: 'number' },
billing_address: { type: 'string' },
},

required: ['name'],

dependencies: {
credit_card: ['billing_address'],
billing_address: ['credit_card'],
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

(Sample schemas courtesy of the Space Telescope Science Institute)

Schema dependencies

This library also supports modifying portions of a schema based on form data.

Conditional

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',

properties: {
name: { type: 'string' },
credit_card: { type: 'number' },
},

required: ['name'],

dependencies: {
credit_card: {
properties: {
billing_address: { type: 'string' },
},
required: ['billing_address'],
},
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

In this example the billing_address field will be displayed in the form if credit_card is defined.

(Sample schemas courtesy of the Space Telescope Science Institute)

Dynamic

The JSON Schema standard says that the dependency is triggered if the property is present. However, sometimes it's useful to have more sophisticated rules guiding the application of the dependency. For example, maybe you have three possible values for a field, and each one should lead to adding a different question. For this, we support a very restricted use of the oneOf keyword.

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
title: 'Person',
type: 'object',
properties: {
'Do you have any pets?': {
type: 'string',
enum: ['No', 'Yes: One', 'Yes: More than one'],
default: 'No',
},
},
required: ['Do you have any pets?'],
dependencies: {
'Do you have any pets?': {
oneOf: [
{
properties: {
'Do you have any pets?': {
enum: ['No'],
},
},
},
{
properties: {
'Do you have any pets?': {
enum: ['Yes: One'],
},
'How old is your pet?': {
type: 'number',
},
},
required: ['How old is your pet?'],
},
{
properties: {
'Do you have any pets?': {
enum: ['Yes: More than one'],
},
'Do you want to get rid of any?': {
type: 'boolean',
},
},
required: ['Do you want to get rid of any?'],
},
],
},
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

In this example the user is prompted with different follow-up questions dynamically based on their answer to the first question.

In these examples, the "Do you have any pets?" question is validated against the corresponding property in each schema in the oneOf array. If exactly one matches, the rest of that schema is merged with the existing schema.

- + \ No newline at end of file diff --git a/docs/json-schema/index.html b/docs/json-schema/index.html index 44f2151432..eb894ae53d 100644 --- a/docs/json-schema/index.html +++ b/docs/json-schema/index.html @@ -4,13 +4,13 @@ JSON Schema | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/json-schema/objects/index.html b/docs/json-schema/objects/index.html index 6bb9bb3af1..a30839084e 100644 --- a/docs/json-schema/objects/index.html +++ b/docs/json-schema/objects/index.html @@ -4,13 +4,13 @@ Objects | react-jsonschema-form - +
Version: v5

Objects

Object properties

Objects are defined with a type equal to object and properties specified in the properties keyword.

import { Form } from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
title: 'My title',
description: 'My description',
type: 'object',
properties: {
name: {
type: 'string',
},
age: {
type: 'number',
},
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Required properties

You can specify which properties are required using the required attribute:

import { Form } from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
title: 'My title',
description: 'My description',
type: 'object',
properties: {
name: {
type: 'string',
},
age: {
type: 'number',
},
},
required: ['name'],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Specifying property order

Since the order of object properties in Javascript and JSON is not guaranteed, the uiSchema object spec allows you to define the order in which properties are rendered using the ui:order property:

import { Form } from '@rjsf/core';
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
properties: {
foo: { type: 'string' },
bar: { type: 'string' },
},
};

const uiSchema: UiSchema = {
'ui:order': ['bar', 'foo'],
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

If a guaranteed fixed order is only important for some fields, you can insert a wildcard "*" item in your ui:order definition. All fields that are not referenced explicitly anywhere in the list will be rendered at that point:

import { UiSchema } from '@rjsf/utils';

const uiSchema: UiSchema = {
'ui:order': ['bar', '*'],
};

Additional properties

The additionalProperties keyword allows the user to add properties with arbitrary key names. Set this keyword equal to a schema object:

import { Form } from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
properties: {
name: {
type: 'string',
},
},
additionalProperties: {
type: 'number',
enum: [1, 2, 3],
},
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

In this way, an add button for new properties is shown by default.

You can also define uiSchema options for additionalProperties by setting the additionalProperties attribute in the uiSchema.

expandable option

You can turn support for additionalProperties off with the expandable option in uiSchema:

import { UiSchema } from '@rjsf/utils';

const uiSchema: UiSchema = {
'ui:options': {
expandable: false,
},
};
- + \ No newline at end of file diff --git a/docs/json-schema/oneof/index.html b/docs/json-schema/oneof/index.html index 7672204196..7a65595115 100644 --- a/docs/json-schema/oneof/index.html +++ b/docs/json-schema/oneof/index.html @@ -4,13 +4,13 @@ oneOf, anyOf, and allOf | react-jsonschema-form - +
Version: v5

oneOf, anyOf, and allOf

react-jsonschema-form supports custom widgets for oneOf, anyOf, and allOf.

  • A schema with oneOf is valid if exactly one of the subschemas is valid.
  • A schema with anyOf is valid if at least one of the subschemas is valid.
  • A schema with allOf is valid if all of the subschemas are valid.

oneOf

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
oneOf: [
{
properties: {
lorem: {
type: 'string',
},
},
required: ['lorem'],
},
{
properties: {
ipsum: {
type: 'string',
},
},
required: ['ipsum'],
},
],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

anyOf

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
anyOf: [
{
properties: {
lorem: {
type: 'string',
},
},
required: ['lorem'],
},
{
properties: {
lorem: {
type: 'string',
},
ipsum: {
type: 'string',
},
},
},
],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

allOf

When allOf is specified in a schema, react-jsonschema-form uses the json-schema-merge-allof library to merge the specified subschemas to create a combined subschema that is valid. For example, the below schema evaluates to a combined subschema of {type: "boolean"}:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
title: 'Field',
allOf: [
{
type: ['string', 'boolean'],
},
{
type: 'boolean',
},
],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));
- + \ No newline at end of file diff --git a/docs/json-schema/single/index.html b/docs/json-schema/single/index.html index 7cf1890813..e5e43ce574 100644 --- a/docs/json-schema/single/index.html +++ b/docs/json-schema/single/index.html @@ -4,13 +4,13 @@ Single fields | react-jsonschema-form - +
Version: v5

Single fields

The simplest example of a JSON Schema contains only a single field. The field type is determined by the type parameter.

Field types

The base field types in JSON Schema include:

  • string
  • number
  • integer
  • boolean
  • null

Here is an example of a string field:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'string',
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Titles and descriptions

Fields can have titles and descriptions specified by the title keyword in the schema and the description keyword in the schema, respectively. These two can also be overridden by the ui:title and ui:description keywords in the uiSchema.

Description can render markdown. This feature is disabled by default. It needs to be enabled by the ui:enableMarkdownInDescription keyword and setting to true. Read more about markdown options in the markdown-to-jsx official docs.

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
title: 'My form',
description: 'My description',
type: 'string',
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Enumerated values

All base schema types support the enum attribute, which restricts the user to select among a list of options. For example:

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'string',
enum: ['one', 'two', 'three'],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Custom labels for enum fields

JSON Schema supports the following approaches to enumerations using oneOf/anyOf; react-jsonschema-form supports it as well.

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'number',
anyOf: [
{
type: 'number',
title: 'one',
enum: [1],
},
{
type: 'number',
title: 'two',
enum: [2],
},
{
type: 'number',
title: 'three',
enum: [3],
},
],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));
import { RJSFSchema } from '@rjsf/utils';

const schema: RJSFSchema = {
type: 'number',
oneOf: [
{ const: 1, title: 'one' },
{ const: 2, title: 'two' },
{ const: 3, title: 'three' },
],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

In your JSON Schema, you may also specify enumNames, a non-standard field which RJSF can use to label an enumeration. This behavior is deprecated and will be removed in a future major release of RJSF. Use the "ui:enumNames" property in the uiSchema instead.

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'number',
enum: [1, 2, 3],
enumNames: ['one', 'two', 'three'],
};
render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Same example using the uiSchema's ui:enumNames instead.

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'number',
enum: [1, 2, 3],
};
const uiSchema: UiSchema = {
'ui:enumNames': ['one', 'two', 'three'],
};
render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

Disabled attribute for enum fields

To disable an option, use the ui:enumDisabled property in the uiSchema.

import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'boolean',
enum: [true, false],
};

const uiSchema: UiSchema = {
'ui:enumDisabled': [true],
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

Nullable types

JSON Schema supports specifying multiple types in an array; however, react-jsonschema-form only supports a restricted subset of this -- nullable types, in which an element is either a given type or equal to null.

import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: ['string', 'null'],
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));
- + \ No newline at end of file diff --git a/docs/migration-guides/index.html b/docs/migration-guides/index.html index 09f29a35e3..985a744280 100644 --- a/docs/migration-guides/index.html +++ b/docs/migration-guides/index.html @@ -4,13 +4,13 @@ Migration Guides | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/migration-guides/v2.x upgrade guide/index.html b/docs/migration-guides/v2.x upgrade guide/index.html index 1b2dacc20b..fef45aef77 100644 --- a/docs/migration-guides/v2.x upgrade guide/index.html +++ b/docs/migration-guides/v2.x upgrade guide/index.html @@ -4,13 +4,13 @@ 2.x Upgrade Guide | react-jsonschema-form - +
Version: v5

2.x Upgrade Guide

Changes from v1 -> v2

Breaking changes

  • We now officially support the @rjsf/material-ui theme. We use a monorepo with Lerna and have published two packages (@rjsf/core and @rjsf/material-ui) with this version number. Note that react-jsonschema-form has been renamed to @rjsf/core (#1642)
  • Combine all themes into a single playground (#1539, #1607, #1623)
  • Remove ui:order console warning about extraneous properties (#1508)
  • Capitalized Yes and No defaults (#1395)
  • Fix id of oneof and anyof select (#1212). The oneof select id is now suffixed by __oneof_select and the anyof select by __anyof_select.
  • React 16+ is now a peer dependency (#1408)
  • We no longer actively support Node version < 8 (#1462)
  • Removed setState, setImmediate, safeRenderCompletion helpers/hacks (#1454, #1720)
  • Inject defaults in arrays (#1499)

Features

  • Add material-ui theme in the main repo (#1420) (note: has not been fully integrated yet -- this will be fully integrated when we publish multiple packages with lerna - #1501)
  • Add extraErrors prop for async validation (#1444)
  • Add support for overriding UnsupportedField (#1660)

Fixes

  • Fix issue with false as formData on radio components (#1438)
  • Security patches (#1458, #1459)
  • Memo components in custom widgets and fields. (#1447)
  • Introduce Form autoComplete attribute and deprecate autocomplete (#1483)
  • Rewrite mergeSchemas to fix schema dependencies merging (#1476)
  • Update arrays correctly when changing index (#1485)
  • Update anyOf schema to correctly update items in an array (#1491)
  • Update schema to re-render when idschema changes (#1493)
  • Make sure BooleanField supports an overridable DescriptionField (#1594)
  • Export typings (#1607)
- + \ No newline at end of file diff --git a/docs/migration-guides/v3.x upgrade guide/index.html b/docs/migration-guides/v3.x upgrade guide/index.html index 05589b5085..c0694e1540 100644 --- a/docs/migration-guides/v3.x upgrade guide/index.html +++ b/docs/migration-guides/v3.x upgrade guide/index.html @@ -4,13 +4,13 @@ 3.x Upgrade Guide | react-jsonschema-form - +
Version: v5

3.x Upgrade Guide

Breaking changes

Node support

Dropped support for Node 8, 9, 10. Minimum supported version of Node.js is now 12.

Dereferenced schemas for anyOf/allOf options

MultiSchemaField's options interface is different. Before, an option could include a $ref. Now, any option with a reference will be resolved/dereferenced when given as props for MultiSchemaField.

Help field IDs

IDs for Help fields are now suffixed by __help so that the IDs are unique. Previously, their IDs would be nonexistent or the same as the fields that they were describing.

Bring your own polyfills

core-js@2 has been removed from @rjsf/core. See more about the rationale here.

If you're using a framework like Create React App, Gatsby, Next.js, or transpiling code through something like @babel/preset-env, polyfills are already included there and you won't have to do anything.

If you were directly depending on @rjsf/core's @babel/runtime pulling in core-js@2, just npm install core-js and using a side effectful import at the top of your entry point (import 'core-js') might be enough.

For a slightly more elaborate setup, @babel/preset-env is probably a good second choice.

From @babel/preset-env's docs

We leverage [browserslist, compat-table, and electron-to-chromium] to maintain mappings of which version of our supported target environments gained support of a JavaScript syntax or browser feature, as well as a mapping of those syntaxes and features to Babel transform plugins and core-js polyfills.

- + \ No newline at end of file diff --git a/docs/migration-guides/v4.x upgrade guide/index.html b/docs/migration-guides/v4.x upgrade guide/index.html index e5bac6f677..bc74d0f76a 100644 --- a/docs/migration-guides/v4.x upgrade guide/index.html +++ b/docs/migration-guides/v4.x upgrade guide/index.html @@ -4,13 +4,13 @@ 4.x Upgrade Guide | react-jsonschema-form - +
Version: v5

4.x Upgrade Guide

Breaking changes

React version

No longer actively supporting React version < 16.3. The minimum supported version of React is now 16.3. Discussion can be found here

@rjsf/material-ui package - Minimum version of material-ui 4

If you are using the material-ui 4 theme, @material-ui/core and @material-ui/icons packages should be updated to the latest versions. The minimum versions supported for @material-ui/core and @material-ui/icons are 4.12.0 and 4.11.1 respectively. This change is required for support for the material-ui version 5 theme

- + \ No newline at end of file diff --git a/docs/migration-guides/v5.x upgrade guide/index.html b/docs/migration-guides/v5.x upgrade guide/index.html index 3342b55a5b..85578fcd4e 100644 --- a/docs/migration-guides/v5.x upgrade guide/index.html +++ b/docs/migration-guides/v5.x upgrade guide/index.html @@ -4,7 +4,7 @@ 5.x Upgrade Guide | react-jsonschema-form - + @@ -56,7 +56,7 @@ As a result, the MuiComponentContext, MuiForm5, Theme5 components and the useMuiComponent hook were removed from the export. In addition, the /v4 and /v5 sub-packages were also removed.

Migrating for Material UI version 4

If you were using this theme for Material UI version 4 AND you were using the sub-package, simply remove the /v4 from your imports.

If you modified your Typescript configuration for the /v4 sub-package, remove the following from your tsconfig.json:

{
...
"compilerOptions": {
...
"baseUrl": ".",
"paths": {
"@rjsf/material-ui/*": ["node_modules/@rjsf/material-ui/dist/*"]
}
}
}

If you modified your Jest configuration for the /v4 sub-package, remove the following from your jest.config.json:

  "moduleNameMapper": {
"@rjsf/material-ui/v4": "<rootDir>/node_modules/@rjsf/material-ui/dist/v4.js"
},

Migrating for Material UI version 5

If you were using this theme for Material UI version 5, you will want to use @rjsf/mui instead. See below for some before and after examples.

If you modified your Typescript configuration for the /v5 sub-package, remove the following from your tsconfig.json:

{
...
"compilerOptions": {
...
"baseUrl": ".",
"paths": {
"@rjsf/material-ui/*": ["node_modules/@rjsf/material-ui/dist/*"]
}
}
}

If you modified your Jest configuration for the /v5 sub-package, remove the following from your jest.config.json:

  "moduleNameMapper": {
"@rjsf/material-ui/v5": "<rootDir>/node_modules/@rjsf/material-ui/dist/v5.js"
},
Before
import Form5 from '@rjsf/material-ui';

or

import Form from '@rjsf/material-ui/v5';

or

import { withTheme } from '@rjsf/core';
import { Theme } from '@rjsf/material-ui/v5';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme);

or

import { withTheme } from '@rjsf/core';
import { Theme as Theme5 } from '@rjsf/material-ui';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme5);
After
import Form from '@rjsf/mui';

or

import { withTheme } from '@rjsf/core';
import { Theme } from '@rjsf/mui';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme);
- + \ No newline at end of file diff --git a/docs/quickstart/index.html b/docs/quickstart/index.html index 1224a3ba04..2caea9034c 100644 --- a/docs/quickstart/index.html +++ b/docs/quickstart/index.html @@ -4,7 +4,7 @@ Quickstart | react-jsonschema-form - + @@ -15,7 +15,7 @@ uiSchema should be {key: value}, where key is the property key and value is an object with the uiSchema configuration for that particular property. For example:

import Form from '@rjsf/core';
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
title: 'Test form',
type: 'object',
properties: {
name: {
type: 'string',
},
age: {
type: 'number',
},
},
};

const uiSchema: UiSchema = {
name: {
'ui:classNames': 'custom-class-name',
},
age: {
'ui:classNames': 'custom-class-age',
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

Form initialization

Often you'll want to prefill a form with existing data; this is done by passing a formData prop object matching the schema:

import Form from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
properties: {
title: {
type: 'string',
},
done: {
type: 'boolean',
},
},
};

const formData = {
title: 'First task',
done: true,
};

render(<Form schema={schema} formData={formData} validator={validator} />, document.getElementById('app'));

Note: If your form has a single field, pass a single value to formData. ex: formData="Charlie"

WARNING: If you have situations where your parent component can re-render, make sure you listen to the onChange event and update the data you pass to the formData attribute.

Form event handlers

You can use event handlers such as onChange, onError, onSubmit, onFocus, and onBlur on the <Form /> component; see the Form Props Reference for more details.

Controlled component

By default, <Form /> is an uncontrolled component. To make it a controlled component, use the onChange and formData props as in the below example:

import Form from '@rjsf/core';
import validator from '@rjsf/validator-ajv8';

const App = () => {
const [formData, setFormData] = React.useState(null);
return (
<Form
schema={{ type: 'string' }}
formData={formData}
onChange={(e) => setFormData(e.formData)}
validator={validator}
/>
);
};

render(<App />, document.getElementById('app'));
- + \ No newline at end of file diff --git a/docs/search/index.html b/docs/search/index.html index 1a73a58056..709f64587b 100644 --- a/docs/search/index.html +++ b/docs/search/index.html @@ -4,13 +4,13 @@ Search the documentation | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/usage/index.html b/docs/usage/index.html index f7fe5c635c..5807194c47 100644 --- a/docs/usage/index.html +++ b/docs/usage/index.html @@ -4,13 +4,13 @@ Usage and Customization | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/usage/themes/index.html b/docs/usage/themes/index.html index b66f1a94ed..d9ab8aa5ab 100644 --- a/docs/usage/themes/index.html +++ b/docs/usage/themes/index.html @@ -4,7 +4,7 @@ Themes | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v5

Themes

By default, this library renders form fields and widgets leveraging the Bootstrap semantics, meaning that you must load the Bootstrap stylesheet on the page to view the form properly. You can use another theme by importing one of the packages listed below.

Supported themes

Theme NameStatusPackage Name / Link
antdPublished@rjsf/antd
Bootstrap 3 (default)Published@rjsf/core
Bootstrap 4Published@rjsf/bootstrap-4
Chakra UIPublished@rjsf/chakra-ui
fluent-uiPublished@rjsf/fluent-ui
fluentui-rcPublished@rjsf/fluentui-rc
material-ui 4Published@rjsf/material-ui
material-ui 5Published@rjsf/mui
Semantic UIPublished@rjsf/semantic-ui

Using themes

To use a theme from a package, just import the <Form /> component from that package. For example, to use the material ui form, first install both @rjsf/core and @rjsf/material-ui. Then you can import the form by doing:

import Form from '@rjsf/material-ui';

If you would like to contribute a theme with a new UI framework, please develop the theme using the withTheme component described in Theme Customization and make a PR!

You can also use the uiSchema to add custom CSS class names to your form.

Customizing with other frameworks

The default theme is bootstrap 3. In order to use another theme, you must first install @rjsf/core.

For example, to use the standard bootstrap 3 form, you can run:

import Form from '@rjsf/core';

To use the material-ui 5 form, you should first install both @rjsf/core and @rjsf/mui. Then, you can run:

import Form from '@rjsf/mui';

For more information on how to create a custom theme, see documentation on the withTheme component.

- + \ No newline at end of file diff --git a/docs/usage/validation/index.html b/docs/usage/validation/index.html index 634dc0ee04..211ba7d8b1 100644 --- a/docs/usage/validation/index.html +++ b/docs/usage/validation/index.html @@ -4,7 +4,7 @@ Validation | react-jsonschema-form - + @@ -43,7 +43,7 @@ It is possible to use one of the other version it supports, like draft-2019-09 or draft-2020-12. NOTE: draft-2020-12 has breaking changes and hasn't been fully tested with @rjsf.

import { Form } from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import { customizeValidator } from '@rjsf/validator-ajv8';
import Ajv2019 from 'ajv/dist/2019';

const schema: RJSFSchema = {
type: 'string',
format: 'date',
};

const validator = customizeValidator({ AjvClass: Ajv2019 });
// or
// const validator = customizeValidator({ AjvClass: Ajv2020 });

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Localization (L12n) support

The Ajv 8 validator supports the localization of error messages using ajv-i18n. In addition, you may provide a custom solution by implementing a function that conforms to the Localizer interface if your language is not supported.

import { ErrorObject } from 'ajv';
/** The type describing a function that takes a list of Ajv `ErrorObject`s and localizes them
*/
export type Localizer = (errors?: null | ErrorObject[]) => void;

NOTE: The ajv-i18n validators implement the Localizer interface.

Some examples

Using a specific locale while including all of ajv-i18n:

import { Form } from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import { customizeValidator } from '@rjsf/validator-ajv8';
import localizer from 'ajv-i18n';

const schema: RJSFSchema = {
type: 'string',
};

const validator = customizeValidator({}, localizer.it);

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

Using a specific locale minimizing the bundle size

import { Form } from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import { customizeValidator } from '@rjsf/validator-ajv8';
import spanishLocalizer from 'ajv-i18n/localize/es';

const schema: RJSFSchema = {
type: 'string',
};

const validator = customizeValidator({}, spanishLocalizer);

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

An example of a custom Localizer implementation:

import { Form } from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import { customizeValidator } from '@rjsf/validator-ajv8';
import { ErrorObject } from 'ajv';

function localize_ru(errors: null | ErrorObject[] = []) {
if (!(errors && errors.length)) return;
errors.forEach(function (error) {
let outMessage = '';

switch (error.keyword) {
case 'pattern': {
outMessage = 'должно соответствовать образцу "' + error.params.pattern + '"';
break;
}
case 'required': {
outMessage = 'поле обязательно для заполнения';
break;
}
default:
outMessage = error.message;
}

error.message = outMessage;
});
}

const schema: RJSFSchema = {
type: 'string',
};

const validator = customizeValidator({}, localize_ru);

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));

NOTES:

  • If you provided your own function, modify the list in place.
  • You must process all the cases which you need by yourself. See the full list of possible cases here.
  • Each element in the errors list passed to the custom function represent a raw error object returned by ajv (see doc).
- + \ No newline at end of file diff --git a/docs/usage/widgets/index.html b/docs/usage/widgets/index.html index 4977ff9e5d..c9682b7426 100644 --- a/docs/usage/widgets/index.html +++ b/docs/usage/widgets/index.html @@ -4,7 +4,7 @@ Widgets | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v5

Widgets

The uiSchema ui:widget property tells the form which UI widget should be used to render a field.

Example:

import Form from '@rjsf/core';
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
properties: {
done: {
type: 'boolean',
},
},
};

const uiSchema: UiSchema = {
done: {
'ui:widget': 'radio', // could also be "select"
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

Here's a list of supported alternative widgets for different JSON Schema data types:

For boolean fields

  • radio: a radio button group with true and false as selectable values;
  • select: a select box with true and false as options;
  • by default, a checkbox is used

Note: To set the labels for a boolean field, instead of using true and false, your schema can use oneOf with const values for both true and false, where you can specify the custom label in the title field. You will also need to specify a widget in your uiSchema. See the following example:

schema:

{
"properties": {
"booleanWithCustomLabels": {
"type": "boolean",
"oneOf": [
{ "const": true, "title": "Custom label for true" },
{ "const": false, "title": "Custom label for false" }
]
}
}
}

uiSchema:

{
"booleanWithCustomLabels": {
"ui:widget": "radio" // or "select"
}
}

For string fields

  • textarea: a textarea element is used;
  • password: an input[type=password] element is used;
  • color: an input[type=color] element is used;
  • by default, a regular input[type=text] element is used.

String formats

The built-in string field also supports the JSON Schema format property, and will render an appropriate widget by default for the following string formats:

  • email: An input[type=email] element is used;
  • uri: An input[type=url] element is used;
  • data-url: By default, an input[type=file] element is used; in case the string is part of an array, multiple files will be handled automatically (see File widgets).
  • date: By default, an input[type=date] element is used;
  • date-time: By default, an input[type=datetime-local] element is used.
  • time: By default an input[type=time] element is used;

Please note that, even though they are standardized, datetime-local, date and time input elements are not supported by IE. If you plan on targeting IE, two alternative widgets are available:

  • alt-datetime: Six select elements are used to select the year, the month, the day, the hour, the minute and the second;
  • alt-date: Three select elements are used to select the year, month and the day.

You can customize the list of years displayed in the year dropdown by providing a yearsRange property to ui:options in your uiSchema. The range can be descending by specifying the larger value first. It's also possible to remove the Now and Clear buttons with the hideNowButton and hideClearButton options.

You can also, customize the order in which date input fields are displayed by providing format property to ui:options in your uiSchema, available values are YMD(default), MDY and DMY.

import Form from '@rjsf/core';
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'string',
};

const uiSchema: UiSchema = {
'ui:widget': 'alt-datetime',
'ui:options': {
yearsRange: [1980, 2030],
format: 'MDY',
hideNowButton: true,
hideClearButton: true,
},
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

You can also specify negative values which will be treated relative to the current year, so if it is 2020 and the range is set as follows.

   yearsRange: [-120, -18],

Years from 1900-2002 will be shown. You can also specify the dates with the higher date first to display dates in reverse order.

   yearsRange: [2030, 1980],
...
yearsRange: [-18, -120],

Years from 2030-1980 and 2002-1900, respectively will be shown.

For number and integer fields

  • updown: an input[type=number] updown selector;
  • range: an input[type=range] slider;
  • radio: a radio button group with enum values. This can only be used when enum values are specified for this input.
  • By default, a regular input[type=number] element is used.

Note: If JSON Schema's minimum, maximum and multipleOf values are defined, the min, max and step input attributes values will take those values.

Hidden widgets

It's possible to use a hidden widget for a field by setting its ui:widget uiSchema directive to hidden:

import Form from '@rjsf/core';
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'object',
properties: {
foo: { type: 'boolean' },
},
};

const uiSchema: UiSchema = {
foo: { 'ui:widget': 'hidden' },
};

render(<Form schema={schema} uiSchema={uiSchema} validator={validator} />, document.getElementById('app'));

Notes:

  • Hiding widgets is only supported for boolean, string, number and integer schema types;
  • A hidden widget takes its value from the formData prop.

File widgets

This library supports a limited form of input[type=file] widgets, in the sense that it will propagate file contents to form data state as data-urls.

There are two ways to use file widgets.

  1. By declaring a string json schema type along a data-url format:
import Form from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
type: 'string',
format: 'data-url',
};

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));
  1. By specifying a ui:widget field uiSchema directive as file:
import { RJSFSchema, UiSchema } from '@rjsf/utils';

const schema: RJSFSchema = {
type: 'string',
};

const uiSchema: UiSchema = {
'ui:widget': 'file',
};

Multiple files

Multiple files selectors are supported by defining an array of strings having data-url as a format:

import { RJSFSchema } from '@rjsf/utils';

const schema: RJSFSchema = {
type: 'array',
items: {
type: 'string',
format: 'data-url',
},
};

Note that storing large dataURIs into form state might slow rendering.

File widget input ref

The included FileWidget exposes a reference to the <input type="file" /> element node as an inputRef component property.

This allows you to programmatically trigger the browser's file selector, which can be used in a custom file widget.

accept option

You can use the accept attribute to specify a filter for what file types the user can upload:

import { RJSFSchema, UiSchema } from '@rjsf/utils';

const schema: RJSFSchema = {
type: 'string',
format: 'data-url',
};

const uiSchema: UiSchema = {
'ui:options': { accept: '.pdf' },
};
- + \ No newline at end of file diff --git a/docs/version-3.2.1/advanced-customization/custom-templates/index.html b/docs/version-3.2.1/advanced-customization/custom-templates/index.html index 22c0ddeb22..8d49fb371e 100644 --- a/docs/version-3.2.1/advanced-customization/custom-templates/index.html +++ b/docs/version-3.2.1/advanced-customization/custom-templates/index.html @@ -4,14 +4,14 @@ Custom Templates | react-jsonschema-form - +
Version: v3

Custom Templates

This is an advanced feature that lets you customize even more aspects of the form:

_Custom FieldCustom TemplateCustom Widget
What it doesOverrides all behaviourOverrides just the layout (not behaviour)Overrides just the input box (not layout, labels, or help, or validation)
UsageGlobal or per-fieldGlobal or per-fieldGlobal or per-field
Global Example<Form fields={MyCustomField} /><Form ArrayFieldTemplate={MyArrayTemplate} /><Form widgets={MyCustomWidget} />
Per-Field Example"ui:field": MyCustomField"ui:ArrayFieldTemplate": MyArrayTemplate"ui:widget":MyCustomWidget
DocumentationCustom FieldsFieldTemplate / ArrayFieldTemplate / ObjectFieldTemplateCustom Widgets

ArrayFieldTemplate

You can use an ArrayFieldTemplate to customize how your arrays are rendered. This allows you to customize your array, and each element in the array.

const schema = {
type: "array",
items: {
type: "string"
}
};

function ArrayFieldTemplate(props) {
return (
<div>
{props.items.map(element => element.children)}
{props.canAdd && <button type="button" onClick={props.onAddClick}></button>}
</div>
);
}

render((
<Form schema={schema}
ArrayFieldTemplate={ArrayFieldTemplate} />
), document.getElementById("app"));

You also can provide your own field template to a uiSchema by specifying a ui:ArrayFieldTemplate property.

const uiSchema = {
"ui:ArrayFieldTemplate": ArrayFieldTemplate
}

Please see customArray.js for another example.

The following props are passed to each ArrayFieldTemplate:

  • DescriptionField: The DescriptionField from the registry (in case you wanted to utilize it)
  • TitleField: The TitleField from the registry (in case you wanted to utilize it).
  • canAdd: A boolean value stating whether new elements can be added to the array.
  • className: The className string.
  • disabled: A boolean value stating if the array is disabled.
  • idSchema: Object
  • items: An array of objects representing the items in the array. Each of the items represent a child with properties described below.
  • onAddClick: (event?) => void: A function that adds a new item to the array.
  • readonly: A boolean value stating if the array is read-only.
  • required: A boolean value stating if the array is required.
  • schema: The schema object for this array.
  • uiSchema: The uiSchema object for this array field.
  • title: A string value containing the title for the array.
  • formContext: The formContext object that you passed to Form.
  • formData: The formData for this array.
  • registry: The registry object.

The following props are part of each element in items:

  • children: The html for the item's content.
  • className: The className string.
  • disabled: A boolean value stating if the array item is disabled.
  • hasMoveDown: A boolean value stating whether the array item can be moved down.
  • hasMoveUp: A boolean value stating whether the array item can be moved up.
  • hasRemove: A boolean value stating whether the array item can be removed.
  • hasToolbar: A boolean value stating whether the array item has a toolbar.
  • index: A number stating the index the array item occurs in items.
  • key: A stable, unique key for the array item.
  • onAddIndexClick: (index) => (event?) => void: Returns a function that adds a new item at index.
  • onDropIndexClick: (index) => (event?) => void: Returns a function that removes the item at index.
  • onReorderClick: (index, newIndex) => (event?) => void: Returns a function that swaps the items at index with newIndex.
  • readonly: A boolean value stating if the array item is read-only.

Note: Array and object field templates are always rendered inside of the FieldTemplate. To fully customize an array field template, you may need to specify both ui:FieldTemplate and ui:ArrayFieldTemplate.

FieldTemplate

To take control over the inner organization of each field (each form row), you can define a field template for your form.

A field template is basically a React stateless component being passed field-related props, allowing you to structure your form row as you like.

const schema = {
type: "string"
};

function CustomFieldTemplate(props) {
const {id, classNames, label, help, required, description, errors, children} = props;
return (
<div className={classNames}>
<label htmlFor={id}>{label}{required ? "*" : null}</label>
{description}
{children}
{errors}
{help}
</div>
);
}

render((
<Form schema={schema}
FieldTemplate={CustomFieldTemplate} />
), document.getElementById("app"));

You also can provide your own field template to a uiSchema by specifying a ui:FieldTemplate property.

const uiSchema = {
"ui:FieldTemplate": CustomFieldTemplate
}

If you want to handle the rendering of each element yourself, you can use the props rawHelp, rawDescription and rawErrors.

The following props are passed to a custom field template component:

  • id: The id of the field in the hierarchy. You can use it to render a label targeting the wrapped widget.
  • classNames: A string containing the base Bootstrap CSS classes, merged with any custom ones defined in your uiSchema.
  • label: The computed label for this field, as a string.
  • description: A component instance rendering the field description, if one is defined (this will use any custom DescriptionField defined).
  • rawDescription: A string containing any ui:description uiSchema directive defined.
  • children: The field or widget component instance for this field row.
  • errors: A component instance listing any encountered errors for this field.
  • rawErrors: An array of strings listing all generated error messages from encountered errors for this field.
  • help: A component instance rendering any ui:help uiSchema directive defined.
  • rawHelp: A string containing any ui:help uiSchema directive defined. NOTE: rawHelp will be undefined if passed ui:help is a React component instead of a string.
  • hidden: A boolean value stating if the field should be hidden.
  • required: A boolean value stating if the field is required.
  • readonly: A boolean value stating if the field is read-only.
  • disabled: A boolean value stating if the field is disabled.
  • displayLabel: A boolean value stating if the label should be rendered or not. This is useful for nested fields in arrays where you don't want to clutter the UI.
  • fields: An array containing all Form's fields including your custom fields and the built-in fields.
  • schema: The schema object for this field.
  • uiSchema: The uiSchema object for this field.
  • onChange: The value change event handler; Can be called with a new value to change the value for this field.
  • formContext: The formContext object that you passed to Form.
  • formData: The formData for this field.
  • registry: The registry object.

Note: you can only define a single global field template for a form, but you can set individual field templates per property using "ui:FieldTemplate".

ObjectFieldTemplate

const schema = {
type: "object",
title: "Object title",
description: "Object description",
properties: {
name: {
type: "string"
},
age: {
type: "number"
}
}
};

function ObjectFieldTemplate(props) {
return (
<div>
{props.title}
{props.description}
{props.properties.map(element => <div className="property-wrapper">{element.content}</div>)}
</div>
);
}

render((
<Form schema={schema}
ObjectFieldTemplate={ObjectFieldTemplate} />
), document.getElementById("app"));

You also can provide your own field template to a uiSchema by specifying a ui:ObjectFieldTemplate property.

const uiSchema = {
"ui:ObjectFieldTemplate": ObjectFieldTemplate
};

Please see customObject.js for a better example.

The following props are passed to each ObjectFieldTemplate:

  • DescriptionField: The DescriptionField from the registry (in case you wanted to utilize it)
  • TitleField: The TitleField from the registry (in case you wanted to utilize it).
  • title: A string value containing the title for the object.
  • description: A string value containing the description for the object.
  • disabled: A boolean value stating if the object is disabled.
  • properties: An array of object representing the properties in the array. Each of the properties represent a child with properties described below.
  • onAddClick: (schema: JSONSchema7) => () => void: Returns a function that adds a new property to the object (to be used with additionalProperties)
  • readonly: A boolean value stating if the object is read-only.
  • required: A boolean value stating if the object is required.
  • schema: The schema object for this object.
  • uiSchema: The uiSchema object for this object field.
  • idSchema: An object containing the id for this object & ids for it's properties.
  • formData: The form data for the object.
  • formContext: The formContext object that you passed to Form.
  • registry: The registry object.

The following props are part of each element in properties:

  • content: The html for the property's content.
  • name: A string representing the property name.
  • disabled: A boolean value stating if the object property is disabled.
  • readonly: A boolean value stating if the property is read-only.
  • hidden: A boolean value stating if the property should be hidden.

Note: Array and object field templates are always rendered inside of the FieldTemplate. To fully customize an object field template, you may need to specify both ui:FieldTemplate and ui:ObjectFieldTemplate.

- + \ No newline at end of file diff --git a/docs/version-3.2.1/advanced-customization/custom-themes/index.html b/docs/version-3.2.1/advanced-customization/custom-themes/index.html index 3137228b2b..8ae8742f63 100644 --- a/docs/version-3.2.1/advanced-customization/custom-themes/index.html +++ b/docs/version-3.2.1/advanced-customization/custom-themes/index.html @@ -4,13 +4,13 @@ Custom Themes | react-jsonschema-form - +
Version: v3

Custom Themes

The withTheme component provides an easy way to extend the functionality of react-jsonschema-form by passing in a theme object that defines custom/overridden widgets and fields, as well as any of the other possible properties of the standard rjsf Form component. This theme-defining object is passed as the only parameter to the HOC (withTheme(ThemeObj)), and the HOC will return a themed-component which you use instead of the standard Form component.

Usage

import React, { Component } from 'react';
import { withTheme } from '@rjsf/core';

const theme = { widgets: {test: () => (<div>test</div>) } };

const ThemedForm = withTheme(theme);

const Demo = () => (
<ThemedForm schema={schema} uiSchema={uiSchema} />
);

Theme object properties

The Theme object consists of the same properties as the rjsf Form component (such as widgets and fields). The themed-Form component merges together any theme-specific widgets and fields with the default widgets and fields. For instance, providing a single widget in widgets will merge this widget with all the default widgets of the rjsf Form component, but overrides the default if the theme's widget's name matches the default widget's name. Thus, for each default widget or field not specified/overridden, the themed-form will rely on the defaults from the rjsf Form. Note that you are not required to pass in either custom widgets or fields when using the custom-themed HOC component; you can make the essentially redefine the default Form by simply doing const Form = withTheme({});.

Widgets and fields

widgets and fields should be in the same format as shown here.

Example theme with custom widget:

const MyCustomWidget = (props) => {
return (
<input type="text"
className="custom"
value={props.value}
required={props.required}
onChange={(event) => props.onChange(event.target.value)} />
);
};

const myWidgets = {
myCustomWidget: MyCustomWidget
};

const ThemeObject = {widgets: myWidgets};
export default ThemeObject;

The above can be similarly done for fields.

Templates

Each template should be passed directly into the theme object just as you would into the rjsf Form component. Here is an example of how to use a custom ArrayFieldTemplate and ErrorListTemplate in the theme object:

function MyArrayFieldTemplate(props) {
return (
<div>
{props.items.map(element => element.children)}
{props.canAdd && <button type="button" onClick={props.onAddClick}></button>}
</div>
);
}

function MyErrorListTemplate(props) {
const {errors} = props;
return (
<ul>
{errors.map(error => (
<li key={error.stack}>
{error.stack}
</li>
))}
</ul>
);
}

const ThemeObject = {
ArrayFieldTemplate: MyArrayFieldTemplate,
ErrorList: MyErrorListTemplate,
widgets: myWidgets
};

export default ThemeObject;

Overriding other Form props

Just as the theme can override widgets, fields, any of the field templates, and set default values to properties like showErrorList, you can do the same with the instance of the withTheme() Form component.

const ThemeObject = {
ArrayFieldTemplate: MyArrayFieldTemplate,
fields: myFields,
showErrorList: false,
widgets: myWidgets
};

Thus, the user has higher priority than the withTheme HOC, and the theme has higher priority than the default values of the rjsf Form component (User > Theme > Defaults).

- + \ No newline at end of file diff --git a/docs/version-3.2.1/advanced-customization/custom-widgets-fields/index.html b/docs/version-3.2.1/advanced-customization/custom-widgets-fields/index.html index 7d6fcfdec7..76b953931d 100644 --- a/docs/version-3.2.1/advanced-customization/custom-widgets-fields/index.html +++ b/docs/version-3.2.1/advanced-customization/custom-widgets-fields/index.html @@ -4,13 +4,13 @@ Custom Widgets and Fields | react-jsonschema-form - +
Version: v3

Custom Widgets and Fields

The API allows to specify your own custom widget and field components:

  • A widget represents a HTML tag for the user to enter data, eg. input, select, etc.
  • A field usually wraps one or more widgets and most often handles internal field state; think of a field as a form row, including the labels.

Customizing the default fields and widgets

You can override any default field and widget, including the internal widgets like the CheckboxWidget that ObjectField renders for boolean values. You can override any field and widget just by providing the customized fields/widgets in the fields and widgets props:

const schema = {
type: "boolean",
default: true
};

const uiSchema = {
"ui:widget": "checkbox"
};

const CustomCheckbox = function(props) {
return (
<button id="custom" className={props.value ? "checked" : "unchecked"} onClick={() => props.onChange(!props.value)}>
{String(props.value)}
</button>
);
};

const widgets = {
CheckboxWidget: CustomCheckbox
};

render((
<Form schema={schema}
uiSchema={uiSchema}
widgets={widgets} />
), document.getElementById("app"));

This allows you to create a reusable customized form class with your custom fields and widgets:

const customFields = {StringField: CustomString};
const customWidgets = {CheckboxWidget: CustomCheckbox};

function MyForm(props) {
return <Form fields={customFields} widgets={customWidgets} {...props} />;
}

The default fields you can override are:

  • ArrayField
  • BooleanField
  • DescriptionField
  • OneOfField
  • AnyOfField
  • NullField
  • NumberField
  • ObjectField
  • SchemaField
  • StringField
  • TitleField
  • UnsupportedField

The default widgets you can override are:

  • AltDateTimeWidget
  • AltDateWidget
  • CheckboxesWidget
  • CheckboxWidget
  • ColorWidget
  • DateTimeWidget
  • DateWidget
  • EmailWidget
  • FileWidget
  • HiddenWidget
  • PasswordWidget
  • RadioWidget
  • RangeWidget
  • SelectWidget
  • TextareaWidget
  • TextWidget
  • UpDownWidget
  • URLWidget

Adding your own custom widgets

You can provide your own custom widgets to a uiSchema for the following json data types:

  • string
  • number
  • integer
  • boolean
const schema = {
type: "string"
};

const uiSchema = {
"ui:widget": (props) => {
return (
<input type="text"
className="custom"
value={props.value}
required={props.required}
onChange={(event) => props.onChange(event.target.value)} />
);
}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

The following props are passed to custom widget components:

  • id: The generated id for this field;
  • schema: The JSONSchema subschema object for this field;
  • uiSchema: The uiSchema for this field;
  • value: The current value for this field;
  • placeholder: the placeholder for the field, if any;
  • required: The required status of this field;
  • disabled: true if the widget is disabled;
  • readonly: true if the widget is read-only;
  • autofocus: true if the widget should autofocus;
  • onChange: The value change event handler; call it with the new value every time it changes;
  • onKeyChange: The key change event handler (only called for fields with additionalProperties); pass the new value every time it changes;
  • onBlur: The input blur event handler; call it with the the widget id and value;
  • onFocus: The input focus event handler; call it with the the widget id and value;
  • options: A map of options passed as a prop to the component (see Custom widget options).
  • options.enumOptions: For enum fields, this property contains the list of options for the enum as an array of { label, value } objects. If the enum is defined using the oneOf/anyOf syntax, the entire schema object for each option is appended onto the { schema, label, value } object.
  • formContext: The formContext object that you passed to Form.
  • rawErrors: An array of strings listing all generated error messages from encountered errors for this widget.

Custom component registration

Alternatively, you can register them all at once by passing the widgets prop to the Form component, and reference their identifier from the uiSchema:

const MyCustomWidget = (props) => {
return (
<input type="text"
className="custom"
value={props.value}
required={props.required}
onChange={(event) => props.onChange(event.target.value)} />
);
};

const widgets = {
myCustomWidget: MyCustomWidget
};

const schema = {
type: "string"
};

const uiSchema = {
"ui:widget": "myCustomWidget"
}

render((
<Form
schema={schema}
uiSchema={uiSchema}
widgets={widgets} />
), document.getElementById("app"));

This is useful if you expose the uiSchema as pure JSON, which can't carry functions.

Custom widget options

If you need to pass options to your custom widget, you can add a ui:options object containing those properties. If the widget has defaultProps, the options will be merged with the (optional) options object from defaultProps:

const schema = {
type: "string"
};

function MyCustomWidget(props) {
const {options} = props;
const {color, backgroundColor} = options;
return <input style={{color, backgroundColor}} />;
}

MyCustomWidget.defaultProps = {
options: {
color: "red"
}
};

const uiSchema = {
"ui:widget": MyCustomWidget,
"ui:options": {
backgroundColor: "yellow"
}
};

// renders red on yellow input
render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

Note: This also applies to registered custom components.

Note: Since v0.41.0, the ui:widget object API, where a widget and options were specified with "ui:widget": {component, options} shape, is deprecated. It will be removed in a future release.

Customizing widgets text input

All the widgets that render a text input use the BaseInput component internally. If you need to customize all text inputs without customizing all widgets individually, you can provide a BaseInput component in the widgets property of Form (see Custom component registration).

Custom field components

You can provide your own field components to a uiSchema for basically any json schema data type, by specifying a ui:field property.

For example, let's create and register a dumb geo component handling a latitude and a longitude:

const schema = {
type: "object",
required: ["lat", "lon"],
properties: {
lat: {type: "number"},
lon: {type: "number"}
}
};

// Define a custom component for handling the root position object
class GeoPosition extends React.Component {
constructor(props) {
super(props);
this.state = {...props.formData};
}

onChange(name) {
return (event) => {
this.setState({
[name]: parseFloat(event.target.value)
}, () => this.props.onChange(this.state));
};
}

render() {
const {lat, lon} = this.state;
return (
<div>
<input type="number" value={lat} onChange={this.onChange("lat")} />
<input type="number" value={lon} onChange={this.onChange("lon")} />
</div>
);
}
}

// Define the custom field component to use for the root object
const uiSchema = {"ui:field": "geo"};

// Define the custom field components to register; here our "geo"
// custom field component
const fields = {geo: GeoPosition};

// Render the form with all the properties we just defined passed
// as props
render((
<Form
schema={schema}
uiSchema={uiSchema}
fields={fields} />
), document.getElementById("app"));

Note: Registered fields can be reused across the entire schema.

Field props

A field component will always be passed the following props:

  • schema: The JSON schema for this field;
  • uiSchema: The uiSchema for this field;
  • idSchema: The tree of unique ids for every child field;
  • formData: The data for this field;
  • errorSchema: The tree of errors for this field and its children;
  • registry: A registry object (read next).
  • formContext: A formContext object (read next).

The registry object

The registry is an object containing the registered custom fields and widgets as well as the root schema definitions.

  • fields: The custom registered fields. By default this object contains the standard SchemaField, TitleField and DescriptionField components;
  • widgets: The custom registered widgets, if any;
  • rootSchema: The root schema, which can contain referenced definitions;
  • formContext: The formContext object;
  • definitions (deprecated since v2): Equal to rootSchema.definitions.

The registry is passed down the component tree, so you can access it from your custom field and SchemaField components.

Custom SchemaField

Warning: This is a powerful feature as you can override the whole form behavior and easily mess it up. Handle with care.

You can provide your own implementation of the SchemaField base React component for rendering any JSONSchema field type, including objects and arrays. This is useful when you want to augment a given field type with supplementary powers.

To proceed so, pass a fields object having a SchemaField property to your Form component; here's an example:


const CustomSchemaField = function(props) {
return (
<div id="custom">
<p>Yeah, I'm pretty dumb.</p>
<div>My props are: {JSON.stringify(props)}</div>
</div>
);
};

const fields = {
SchemaField: CustomSchemaField
};

const schema = {
type: "string"
};

render((
<Form schema={schema}
fields={fields} />
), document.getElementById("app"));

If you're curious how this could ever be useful, have a look at the Kinto formbuilder repository to see how it's used to provide editing capabilities to any form field.

Props passed to a custom SchemaField are the same as the ones passed to a custom field.

- + \ No newline at end of file diff --git a/docs/version-3.2.1/advanced-customization/index.html b/docs/version-3.2.1/advanced-customization/index.html index c55724d453..c88085e71d 100644 --- a/docs/version-3.2.1/advanced-customization/index.html +++ b/docs/version-3.2.1/advanced-customization/index.html @@ -4,13 +4,13 @@ Advanced Customization | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/version-3.2.1/advanced-customization/internals/index.html b/docs/version-3.2.1/advanced-customization/internals/index.html index 2371d36742..bf1ceca5f7 100644 --- a/docs/version-3.2.1/advanced-customization/internals/index.html +++ b/docs/version-3.2.1/advanced-customization/internals/index.html @@ -4,14 +4,14 @@ Internals | react-jsonschema-form - +
Version: v3

Internals

Miscellaneous internals of react-jsonschema-form are listed here.

JSON Schema supporting status

This component follows JSON Schema specs. We currently support JSON Schema-07 by default, but we also support other JSON schema versions through the custom schema validation feature. Due to the limitation of form widgets, there are some exceptions as follows:

  • additionalItems keyword for arrays

    This keyword works when items is an array. additionalItems: true is not supported because there's no widget to represent an item of any type. In this case it will be treated as no additional items allowed. additionalItems being a valid schema is supported.

  • anyOf, allOf, and oneOf, or multiple types (i.e. "type": ["string", "array"])

    The anyOf and oneOf keywords are supported; however, properties declared inside the anyOf/oneOf should not overlap with properties "outside" of the anyOf/oneOf.

    You can also use oneOf with schema dependencies to dynamically add schema properties based on input data.

    The allOf keyword is supported; it uses json-schema-merge-allof to merge subschemas to render the final combined schema in the form. When these subschemas are incompatible, though (or if the library has an error merging it), the allOf keyword is dropped from the schema.

  • "additionalProperties":false produces incorrect schemas when used with schema dependencies. This library does not remove extra properties, which causes validation to fail. It is recommended to avoid setting "additionalProperties":false when you use schema dependencies. See #848 #902 #992

Handling of schema defaults

This library automatically fills default values defined in the JSON Schema as initial values in your form. This also works for complex structures in the schema. If a field has a default defined, it should always appear as default value in form. This also works when using schema dependencies.

Since there is a complex interaction between any supplied original form data and any injected defaults, this library tries to do the injection in a way which keeps the original intention of the original form data.

Check out the defaults example on the live playground to see this in action.

Merging of defaults into the form data

There are three different cases which need to be considered for the merging. Objects, arrays and scalar values. This library always deeply merges any defaults with the existing form data for objects.

This are the rules which are used when injecting the defaults:

  • When there is a scalar in the form data, nothing is changed.
  • When the value is undefined in the form data, the default is created in the form data.
  • When the value is an object in the form data, the defaults are deeply merged into the form data, using the rules defined here for the deep merge.
  • Then the value is an array in the form data, defaults are only injected in existing array items. No new array items will be created, even if the schema has minItems or additional items defined.

Merging of defaults within the schema

In the schema itself, defaults of parent elements are propagated into children. So when you have a schema which defines a deeply nested object as default, these defaults will be applied to children of the current node. This also merges objects defined at different levels together with the "deeper" not having precedence. If the parent node defines properties, which are not defined in the child, they will be merged so that the default for the child will be the merged defaults of parent and child.

For arrays this is not the case. Defining an array, when a parent also defines an array, will be overwritten. This is only true when arrays are used in the same level, for objects within these arrays, they will be deeply merged again.

Custom array field buttons

The ArrayField component provides a UI to add, remove and reorder array items, and these buttons use Bootstrap glyphicons. If you don't use glyphicons but still want to provide your own icons or texts for these buttons, you can easily do so using CSS:

i.glyphicon { display: none; }
.btn-add::after { content: 'Add'; }
.array-item-move-up::after { content: 'Move Up'; }
.array-item-move-down::after { content: 'Move Down'; }
.array-item-remove::after { content: 'Remove'; }

Submit form programmatically

You can use the reference to get your Form component and call the submit method to submit the form programmatically without a submit button. This method will dispatch the submit event of the form, and the function, that is passed to onSubmit props, will be called.

const onSubmit = ({formData}) => console.log("Data submitted: ",  formData);
let yourForm;

const schema = {
type: "string"
};

render((
<Form schema={schema}
onSubmit={onSubmit} ref={(form) => {yourForm = form;}}/>
), document.getElementById("app"));

yourForm.submit();
- + \ No newline at end of file diff --git a/docs/version-3.2.1/api-reference/form-props/index.html b/docs/version-3.2.1/api-reference/form-props/index.html index 811e14c93b..05e01e2f72 100644 --- a/docs/version-3.2.1/api-reference/form-props/index.html +++ b/docs/version-3.2.1/api-reference/form-props/index.html @@ -4,13 +4,13 @@ <Form /> Props | react-jsonschema-form - +
Version: v3

<Form /> props

acceptcharset

The value of this prop will be passed to the accept-charset HTML attribute on the form.

action

The value of this prop will be passed to the action HTML attribute on the form.

Note that this just renders the action attribute in the HTML markup. There is no real network request being sent to this action on submit. Instead, react-jsonschema-form catches the submit event with event.preventDefault() and then calls the onSubmit function, where you could send a request programmatically with fetch or similar.

additionalMetaSchemas

This prop allows you to validate the form data against another JSON Schema meta schema, for example, JSON Schema draft-04. See Validation for more information.

ArrayFieldTemplate

React component used to customize how alls arrays are rendered on the form. See Custom Templates for more information.

autoComplete

The value of this prop will be passed to the autocomplete HTML attribute on the form.

autocomplete

Deprecated, same functionality as autoComplete

className

The value of this prop will be passed to the class HTML attribute on the form.

children

You can provide custom buttons to your form via the Form component's children. Otherwise a default submit button will be rendered.

const schema = {
type: "string"
};

render((
<Form schema={schema}>
<div>
<button type="submit">Submit</button>
<button type="button">Cancel</button>
</div>
</Form>
), document.getElementById("app"));

Warning: There needs to be a button or an input with type="submit" to trigger the form submission (and then the form validation).

customFormats

This prop allows you to define custom formats for validation. See Validation for more information.

disabled

It's possible to disable the whole form by setting the disabled prop. The disabled prop is then forwarded down to each field of the form.

const schema = {
type: "string"
};

render((
<Form schema={schema}
disabled />
), document.getElementById("app"));

If you just want to disable some of the fields, see the ui:disabled parameter in uiSchema.

readonly

It's possible to make the whole form read-only by setting the readonly prop. The readonly prop is then forwarded down to each field of the form.

const schema = {
type: "string"
};

render((
<Form schema={schema}
readonly />
), document.getElementById("app"));

If you just want to make some of the fields read-only, see the ui:readonly parameter in uiSchema.

enctype

The value of this prop will be passed to the enctype HTML attribute on the form.

extraErrors

This prop allows passing in custom errors that are augmented with the existing JSON Schema errors on the form; it can be used to implement asynchronous validation. See Validation for more information.

ErrorList

You can pass a React component to this prop to customize how form errors are displayed. See Validation for more information.

fields

Dictionary of registered fields in the form. See Custom Widgets and Fields for more information.

FieldTemplate

React component used to customize each field of the form. See Custom Templates for more information.

formContext

You can provide a formContext object to the Form, which is passed down to all fields and widgets. Useful for implementing context aware fields and widgets.

formData

Often you'll want to prefill a form with existing data; this is done by passing a formData prop object matching the schema.

id

The value of this prop will be passed to the id HTML attribute on the form.

idPrefix

To avoid collisions with existing ids in the DOM, it is possible to change the prefix used for ids (the default is root).

const schema = {
type: "string"
};

render((
<Form schema={schema}
idPrefix={"rjsf_prefix"}/>
), document.getElementById("app"));

This will render <input id="rjsf_prefix_key"> instead of <input id="root_key">

liveOmit

If omitExtraData and liveOmit are both set to true, then extra form data values that are not in any form field will be removed whenever onChange is called. Set to false by default.

liveValidate

If set to true, the form will perform validation and show any validation errors whenever the form data is changed, rather than just on submit.

method

The value of this prop will be passed to the method HTML attribute on the form.

name

The value of this prop will be passed to the name HTML attribute on the form.

noHtml5Validate

If set to true, turns off HTML5 validation on the form. Set to false on default.

noValidate

If set to true, turns off all validation. Set to false by default.

ObjectFieldTemplate

React component used to customize how all objects are rendered in the form. See Custom Templates for more information.

omitExtraData

If set to true, then extra form data values that are not in any form field will be removed whenever onSubmit is called. Set to false by default.

onBlur

Sometimes you may want to trigger events or modify external state when a field has been touched, so you can pass an onBlur handler, which will receive the id of the input that was blurred and the field value.

onChange

If you plan on being notified every time the form data are updated, you can pass an onChange handler, which will receive the same args as onSubmit any time a value is updated in the form.

onError

To react when submitted form data are invalid, pass an onError handler. It will be passed the list of encountered errors:

const schema = {
type: "string"
};
const onError = (errors) => console.log("I have", errors.length, "errors to fix");

render((
<Form schema={schema}
onError={onError} />
), document.getElementById("app"));

onFocus

Sometimes you may want to trigger events or modify external state when a field has been focused, so you can pass an onFocus handler, which will receive the id of the input that is focused and the field value.

onSubmit

You can pass a function as the onSubmit prop of your Form component to listen to when the form is submitted and its data are valid. It will be passed a result object having a formData attribute, which is the valid form data you're usually after. The original event will also be passed as a second parameter:

const schema = {
type: "string"
};
const onSubmit = ({formData}, e) => console.log("Data submitted: ", formData);

render((
<Form schema={schema}
onSubmit={onSubmit} />
), document.getElementById("app"));

Note: If there are fields in the formData that are not represented in the schema, they will be retained by default. If you would like to remove those extra values on form submission, you may need to set the omitExtraData and/or liveOmit props.

schema

Form schema. We support JSON schema draft-07 by default. See Schema Reference for more information.

showErrorList

When this prop is set to true, a list of errors (or the custom error list defined in the ErrorList) will also show. When set to false, only inline input validation errors will be shown. Set to true by default. See Validation for more information.

tagName

It's possible to change the default form tag name to a different HTML tag, which can be helpful if you are nesting forms. However, native browser form behaviour, such as submitting when the Enter key is pressed, may no longer work.

<Form
tagName="div"
/>

You can also provide a class/function component.

const CustomForm = props => <form {...props} style={...} className={...} />
// ...
<Form
tagName={CustomForm}
/>

target

The value of this prop will be passed to the target HTML attribute on the form.

transformErrors

A function can be passed to this prop in order to make modifications to the default errors resulting from JSON Schema validation. See Validation for more information.

uiSchema

Form uiSchema. See uiSchema Reference for more information.

validate

The validate prop requires a function that specifies custom validation rules for the form. See Validation for more information.

widgets

Dictionary of registered widgets in the form. See Custom Widgets and Fields for more information.

- + \ No newline at end of file diff --git a/docs/version-3.2.1/api-reference/index.html b/docs/version-3.2.1/api-reference/index.html index 430f515aa4..8083ca5675 100644 --- a/docs/version-3.2.1/api-reference/index.html +++ b/docs/version-3.2.1/api-reference/index.html @@ -4,13 +4,13 @@ API Reference | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/version-3.2.1/api-reference/themes/semantic-ui/uiSchema/index.html b/docs/version-3.2.1/api-reference/themes/semantic-ui/uiSchema/index.html index 527fa0cf0f..d6385b97c7 100644 --- a/docs/version-3.2.1/api-reference/themes/semantic-ui/uiSchema/index.html +++ b/docs/version-3.2.1/api-reference/themes/semantic-ui/uiSchema/index.html @@ -4,13 +4,13 @@ uiSchema Options for Semantic-UI | react-jsonschema-form - +
Version: v3

uiSchema Options for Semantic-UI

There are various options to pass to semantic theme fields.

Note that every semantic property within uiSchema can be rendered in one of two ways: {"ui:options": {semantic:{[property]: [value]}}}

In other words, the following uiSchema is equivalent:

Note: All fields have the following settings below as their default

fluid: Take on the size of its container.
inverted: Format to appear on dark backgrounds.
{
"ui:options": {
"semantic" : {
"fluid": true,
"inverted": false,
"errorOptions": {
"size": "small",
"pointing": "above",
}
}
}
}

Semantic Widget Optional Properties

errorOptions

The uiSchema semantic object accepts an errorOptions property for each field of the schema:

size: determines the size of the error message dialog
pointing: determines the direction of the arrow on the error message dialog

Below are the current defaults

const uiSchema = {
"ui:options": {
"semantic" : {
"errorOptions": {
"size": "small",
"pointing": "above",
}
}
}
};

semantic options uiSchema for array items

To specify a uiSchema that applies to array items, specify the semantic uiSchema value within the ui:options property:

wrapItem: wrap each array item in a Segment
horizontalButtons: horizontal buttons instead of the default vertical
const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
"semantic": {
"wrapItem": true,
"horizontalButtons": true
}
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

formContext

The formContext semantic object accepts wrapContent ,wrapLabel properties.

wrapContent: wrap all inputs  field content in a div, for custom styling
wrapLabel: wrap all labels in a div, for custom styling via CSS
<Form
formContext={{
"semantic" : {
"wrapLabel": true,
"wrapContent": true
}
// other props...
}}
/>
- + \ No newline at end of file diff --git a/docs/version-3.2.1/api-reference/uiSchema/index.html b/docs/version-3.2.1/api-reference/uiSchema/index.html index b5d10150ee..659362d6a2 100644 --- a/docs/version-3.2.1/api-reference/uiSchema/index.html +++ b/docs/version-3.2.1/api-reference/uiSchema/index.html @@ -4,13 +4,13 @@ uiSchema | react-jsonschema-form - +
Version: v3

uiSchema

JSON Schema is limited for describing how a given data type should be rendered as a form input component. That's why this library introduces the concept of uiSchema.

A UI schema is basically an object literal providing information on how the form should be rendered, while the JSON schema tells what.

The uiSchema object follows the tree structure of the form field hierarchy, and defines how each property should be rendered.

Note that every property within uiSchema can be rendered in one of two ways: {"ui:options": {[property]: [value]}}, or {"ui:[property]": value}.

In other words, the following uiSchemas are equivalent:

{
"ui:title": "Title",
"ui:description": "Description"
}
{
"ui:options": {
"title": "Title",
"description": "Description"
}
}

classNames

The uiSchema object accepts a classNames property for each field of the schema:

const uiSchema = {
title: {
classNames: "task-title foo-bar"
}
};

Will result in:

<div class="field field-string task-title foo-bar" >
<label>
<span>Title*</span>
<input value="My task" required="" type="text">
</label>
</div>

autofocus

If you want to automatically focus on a text input or textarea input, set the ui:autofocus uiSchema directive to true.

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "textarea",
"ui:autofocus": true
}

description

Sometimes it's convenient to change the description of a field. This is the purpose of the ui:description uiSchema directive:

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "password",
"ui:description": "The best password"
};

disabled

The ui:disabled uiSchema directive will disable all child widgets from a given field.

Note: If you're wondering about the difference between a disabled field and a readonly one: Marking a field as read-only will render it greyed out, but its text value will be selectable. Disabling it will prevent its value to be selected at all.

enumDisabled

To disable an option, use the enumDisabled property in uiSchema.

const schema = {
type: "string",
enum: ["one", "two", "three"],
};

const uiSchema={
"ui:enumDisabled": ['two'],
}

help

Sometimes it's convenient to add text next to a field to guide the end user filling it. This is the purpose of the ui:help uiSchema directive:

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "password",
"ui:help": "Hint: Make it strong!"
};

Help texts work for any kind of field at any level, and will always be rendered immediately below the field component widget(s) (after contextualized errors, if any).

inputType

To change the input type (for example, tel or email) you can specify the inputType in the ui:options uiSchema directive.

const schema = {type: "string"};
const uiSchema = {
"ui:options": {
inputType: 'tel'
}
};

label

Field labels are rendered by default. Labels may be omitted by setting the label option to false in the ui:options uiSchema directive.

const schema = {type: "string"};
const uiSchema = {
"ui:options": {
label: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

order

This property allows you to reorder the properties that are shown for a particular object. See Objects for more information.

placeholder

You can add placeholder text to an input by using the ui:placeholder uiSchema directive:

const schema = {type: "string", format: "uri"};
const uiSchema = {
"ui:placeholder": "http://"
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Fields using enum can also use ui:placeholder. The value will be used as the text for the empty option in the select widget.

const schema = {type: "string", enum: ["First", "Second"]};
const uiSchema = {
"ui:placeholder": "Choose an option"
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

readonly

The ui:readonly uiSchema directive will mark all child widgets from a given field as read-only. This is equivalent to setting the readOnly property in the schema.

Note: If you're wondering about the difference between a disabled field and a readonly one: Marking a field as read-only will render it greyed out, but its text value will be selectable. Disabling it will prevent its value to be selected at all.

rootFieldId

By default, this library will generate ids unique to the form for all rendered widgets. If you plan on using multiple instances of the Form component in a same page, it's wise to declare a root prefix for these, using the ui:rootFieldId uiSchema directive:

const uiSchema = {
"ui:rootFieldId": "myform"
};

This will make all widgets have an id prefixed with myform.

rows

You can set the initial height of a textarea widget by specifying rows option.

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "textarea",
"ui:options": {
rows: 15
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

title

Sometimes it's convenient to change a field's title. This is the purpose of the ui:title uiSchema directive:

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "password",
"ui:title": "Your password"
};

Theme Options

Semantic UI

- + \ No newline at end of file diff --git a/docs/version-3.2.1/quickstart/index.html b/docs/version-3.2.1/quickstart/index.html index fdcca5b8b4..0b37e9f706 100644 --- a/docs/version-3.2.1/quickstart/index.html +++ b/docs/version-3.2.1/quickstart/index.html @@ -4,7 +4,7 @@ Quickstart | react-jsonschema-form - + @@ -14,7 +14,7 @@ uiSchema should be {key: value}, where key is the property key and value is an object with the uiSchema configuration for that particular property. For example:

const schema = {
title: "Test form",
type: "object",
properties: {
name: {
type: "string"
},
age: {
type: "number"
}
}
};

const uiSchema = {
name: {
classNames: "custom-class-name"
},
age: {
classNames: "custom-class-age"
}
}

render((
<Form schema={schema} />
), document.getElementById("app"));

Form initialization

Often you'll want to prefill a form with existing data; this is done by passing a formData prop object matching the schema:

const schema = {
type: "object",
properties: {
title: {
type: "string"
},
done: {
type: "boolean"
}
}
};

const formData = {
title: "First task",
done: true
};

render((
<Form schema={schema}
formData={formData} />
), document.getElementById("app"));

Note: If your form has a single field, pass a single value to formData. ex: formData="Charlie"

WARNING: If you have situations where your parent component can re-render, make sure you listen to the onChange event and update the data you pass to the formData attribute.

Form event handlers

You can use event handlers such as onChange, onError, onSubmit, onFocus, and onBlur on the <Form /> component; see the Form Props Reference for more details.

Controlled component

By default, <Form /> is an uncontrolled component. To make it a controlled component, use the onChange and formData props as in the below example:

const App = () => {
const [formData, setFormData] = React.useState(null);
return (<Form
schema={{type: "string"}}
formData={formData}
onChange={e => setFormData(e.formData)}
/>);
};

render((
<App />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/arrays/index.html b/docs/version-3.2.1/usage/arrays/index.html index 3797042bc2..8d9ca555c5 100644 --- a/docs/version-3.2.1/usage/arrays/index.html +++ b/docs/version-3.2.1/usage/arrays/index.html @@ -4,13 +4,13 @@ Arrays | react-jsonschema-form - +
Version: v3

Arrays

Arrays are defined with a type equal to array, and array items' schemas are specified in the items keyword.

Arrays of a single field

Arrays of a single field type can be specified as follows:

const schema = {
type: "array",
items: {
type: "string"
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Arrays of objects

Arrays of objects can be specified as follows:

const schema = {
type: "array",
items: {
type: "object",
properties: {
name: {
type: "string"
}
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

uiSchema for array items

To specify a uiSchema that applies to array items, specify the uiSchema value within the items property:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
items: {
"ui:widget": "textarea"
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

The additionalItems keyword

The additionalItems keyword allows the user to add additional items of a given schema. For example:

const schema = {
type: "array",
items: {
type: "string"
},
additionalItems: {
type: "boolean"
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Array item options

orderable option

Array items are orderable by default, and react-jsonschema-form renders move up/down buttons alongside them. The uiSchema orderable options allows you to disable ordering:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
orderable: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

addable option

If either items or additionalItems contains a schema object, an add button for new items is shown by default. You can turn this off with the addable option in uiSchema:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
addable: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

removable option

A remove button is shown by default for an item if items contains a schema object, or the item is an additionalItems instance. You can turn this off with the removable option in uiSchema:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
removable: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Multiple-choice list

The default behavior for array fields is a list of text inputs with add/remove buttons. There are two alternative widgets for picking multiple elements from a list of choices. Typically this applies when a schema has an enum list for the items property of an array field, and the uniqueItems property set to true.

Example:

const schema = {
type: "array",
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

render((
<Form schema={schema} />
), document.getElementById("app"));

By default, this will render a multiple select box. If you prefer a list of checkboxes, just set the uiSchema ui:widget directive to checkboxes for that field:

const schema = {
type: "array",
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

const uiSchema = {
"ui:widget": "checkboxes"
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Specifying the minimum or maximum number of items

Note that when an array property is marked as required, an empty array is considered valid. If the array needs to be populated, you can specify the minimum number of items using the minItems property.

Example:

const schema = {
type: "array",
minItems: 2,
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

render((
<Form schema={schema} />
), document.getElementById("app"));

You can also specify the maximum number of items in an array using the maxItems property.

Inline checkboxes

By default, checkboxes are stacked. If you prefer them inline, set the inline property to true:

const schema = {
type: "array",
minItems: 2,
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

const uiSchema = {
"ui:widget": "checkboxes",
"ui:options": {
inline: true
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/definitions/index.html b/docs/version-3.2.1/usage/definitions/index.html index 7f6e71e449..332a0e2d6e 100644 --- a/docs/version-3.2.1/usage/definitions/index.html +++ b/docs/version-3.2.1/usage/definitions/index.html @@ -4,13 +4,13 @@ Schema definitions and references | react-jsonschema-form - +
Version: v3

Schema definitions and references

This library partially supports inline schema definition dereferencing, which is Barbarian for avoiding to copy and paste commonly used field schemas:

const schema = {
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": { "type": "string" },
"city": { "type": "string" },
"state": { "type": "string" }
},
"required": ["street_address", "city", "state"]
}
},
"type": "object",
"properties": {
"billing_address": { "$ref": "#/definitions/address" },
"shipping_address": { "$ref": "#/definitions/address" }
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Note that this library only supports local definition referencing. The value in the $ref keyword should be a JSON Pointer in URI fragment identifier format.

- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/dependencies/index.html b/docs/version-3.2.1/usage/dependencies/index.html index 21804de777..507d626602 100644 --- a/docs/version-3.2.1/usage/dependencies/index.html +++ b/docs/version-3.2.1/usage/dependencies/index.html @@ -4,14 +4,14 @@ Dependencies | react-jsonschema-form - +
Version: v3

Dependencies

react-jsonschema-form supports the dependencies keyword from an earlier draft of JSON Schema (note that this is not part of the latest JSON Schema spec, though). Dependencies can be used to create dynamic schemas that change fields based on what data is entered.

Property dependencies

This library supports conditionally making fields required based on the presence of other fields.

Unidirectional

In the following example the billing_address field will be required if credit_card is defined.

const schema = {
"type": "object",

"properties": {
"name": { "type": "string" },
"credit_card": { "type": "number" },
"billing_address": { "type": "string" }
},

"required": ["name"],

"dependencies": {
"credit_card": ["billing_address"]
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Bidirectional

In the following example the billing_address field will be required if credit_card is defined and the credit_card field will be required if billing_address is defined, making them both required if either is defined.

const schema = {
"type": "object",

"properties": {
"name": { "type": "string" },
"credit_card": { "type": "number" },
"billing_address": { "type": "string" }
},

"required": ["name"],

"dependencies": {
"credit_card": ["billing_address"],
"billing_address": ["credit_card"]
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

(Sample schemas courtesy of the Space Telescope Science Institute)

Schema dependencies

This library also supports modifying portions of a schema based on form data.

Conditional

const schema = {
"type": "object",

"properties": {
"name": { "type": "string" },
"credit_card": { "type": "number" }
},

"required": ["name"],

"dependencies": {
"credit_card": {
"properties": {
"billing_address": { "type": "string" }
},
"required": ["billing_address"]
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

In this example the billing_address field will be displayed in the form if credit_card is defined.

(Sample schemas courtesy of the Space Telescope Science Institute)

Dynamic

The JSON Schema standard says that the dependency is triggered if the property is present. However, sometimes it's useful to have more sophisticated rules guiding the application of the dependency. For example, maybe you have three possible values for a field, and each one should lead to adding a different question. For this, we support a very restricted use of the oneOf keyword.

const schema = {
"title": "Person",
"type": "object",
"properties": {
"Do you have any pets?": {
"type": "string",
"enum": [
"No",
"Yes: One",
"Yes: More than one"
],
"default": "No"
}
},
"required": [
"Do you have any pets?"
],
"dependencies": {
"Do you have any pets?": {
"oneOf": [
{
"properties": {
"Do you have any pets?": {
"enum": [
"No"
]
}
}
},
{
"properties": {
"Do you have any pets?": {
"enum": [
"Yes: One"
]
},
"How old is your pet?": {
"type": "number"
}
},
"required": [
"How old is your pet?"
]
},
{
"properties": {
"Do you have any pets?": {
"enum": [
"Yes: More than one"
]
},
"Do you want to get rid of any?": {
"type": "boolean"
}
},
"required": [
"Do you want to get rid of any?"
]
}
]
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

In this example the user is prompted with different follow-up questions dynamically based on their answer to the first question.

In these examples, the "Do you have any pets?" question is validated against the corresponding property in each schema in the oneOf array. If exactly one matches, the rest of that schema is merged with the existing schema.

- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/index.html b/docs/version-3.2.1/usage/index.html index 7bc4a86da1..a6e766c667 100644 --- a/docs/version-3.2.1/usage/index.html +++ b/docs/version-3.2.1/usage/index.html @@ -4,13 +4,13 @@ Usage and Customization | react-jsonschema-form - +
- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/objects/index.html b/docs/version-3.2.1/usage/objects/index.html index 790f757f00..9cf0bdd7f5 100644 --- a/docs/version-3.2.1/usage/objects/index.html +++ b/docs/version-3.2.1/usage/objects/index.html @@ -4,13 +4,13 @@ Objects | react-jsonschema-form - +
Version: v3

Objects

Object properties

Objects are defined with a type equal to object and properties specified in the properties keyword.

const schema = {
"title": "My title",
"description": "My description",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number"
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Required properties

You can specify which properties are required using the required attribute:

const schema = {
"title": "My title",
"description": "My description",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number"
}
},
"required": ["name"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Specifying property order

Since the order of object properties in Javascript and JSON is not guaranteed, the uiSchema object spec allows you to define the order in which properties are rendered using the ui:order property:

const schema = {
type: "object",
properties: {
foo: {type: "string"},
bar: {type: "string"}
}
};

const uiSchema = {
"ui:order": ["bar", "foo"]
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

If a guaranteed fixed order is only important for some fields, you can insert a wildcard "*" item in your ui:order definition. All fields that are not referenced explicitly anywhere in the list will be rendered at that point:

const uiSchema = {
"ui:order": ["bar", "*"]
};

Additional properties

The additionalProperties keyword allows the user to add properties with arbitrary key names. Set this keyword equal to a schema object:

const schema = {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": {
"type": "number",
"enum": [1, 2, 3]
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

In this way, an add button for new properties is shown by default.

You can also define uiSchema options for additionalProperties by setting the additionalProperties attribute in the uiSchema.

expandable option

You can turn support for additionalProperties off with the expandable option in uiSchema:

const uiSchema = {
"ui:options": {
expandable: false
}
};
- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/oneof/index.html b/docs/version-3.2.1/usage/oneof/index.html index 30c98147d9..50fbd139de 100644 --- a/docs/version-3.2.1/usage/oneof/index.html +++ b/docs/version-3.2.1/usage/oneof/index.html @@ -4,13 +4,13 @@ oneOf, anyOf, and allOf | react-jsonschema-form - +
Version: v3

oneOf, anyOf, and allOf

react-jsonschema-form supports custom widgets for oneOf, anyOf, and allOf.

  • A schema with oneOf is valid if exactly one of the subschemas is valid.
  • A schema with anyOf is valid if at least one of the subschemas is valid.
  • A schema with allOf is valid if all of the subschemas are valid.

oneOf

const schema = {
type: "object",
oneOf: [
{
properties: {
lorem: {
type: "string",
},
},
required: ["lorem"],
},
{
properties: {
ipsum: {
type: "string",
},
},
required: ["ipsum"],
},
],
};

render((
<Form schema={schema} />
), document.getElementById("app"));

anyOf

const schema = {
type: "object",
anyOf: [
{
properties: {
lorem: {
type: "string",
},
},
required: ["lorem"],
},
{
properties: {
lorem: {
type: "string",
},
ipsum: {
type: "string",
},
}
},
],
};

render((
<Form schema={schema} />
), document.getElementById("app"));

allOf

When allOf is specified in a schema, react-jsonschema-form uses the json-schema-merge-allof library to merge the specified subschemas to create a combined subschema that is valid. For example, the below schema evaluates to a combined subschema of {type: "boolean"}:

const schema = {
title: "Field",
allOf: [
{
type: ["string", "boolean"]
},
{
type: "boolean"
},
],
};

render((
<Form schema={schema} />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/single/index.html b/docs/version-3.2.1/usage/single/index.html index 93ef4ca489..63663580db 100644 --- a/docs/version-3.2.1/usage/single/index.html +++ b/docs/version-3.2.1/usage/single/index.html @@ -4,13 +4,13 @@ Single fields | react-jsonschema-form - +
Version: v3

Single fields

The simplest example of a JSON Schema contains only a single field. The field type is determined by the type parameter.

Field types

The base field types in JSON Schema include:

  • string
  • number
  • integer
  • boolean
  • null

Here is an example of a string field:

const schema = {
type: "string"
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Titles and descriptions

Fields can have titles and descriptions specified by the title keyword in the schema and description keyword in the schema, respectively. These two can also be overriden by the ui:title and ui:description keywords in the uiSchema.

const schema = {
title: "My form",
description: "My description",
type: "string"
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Enumerated values

All base schema types support the enum attribute, which restricts the user to select among a list of options. For example:

const schema = {
type: "string",
enum: ["one", "two", "three"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Custom labels for enum fields

This library supports a custom enumNames property for enum fields, which, however is not JSON-Schema compliant (see below for a compliant approach). The enumNames property allows defining custom labels for each option of an enum:

const schema = {
type: "number",
enum: [1, 2, 3],
enumNames: ["one", "two", "three"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Alternative JSON-Schema compliant approach

JSON Schema has an alternative approach to enumerations using anyOf; react-jsonschema-form supports it as well.

const schema = {
"type": "number",
"anyOf": [
{
"type": "number",
"title": "one",
"enum": [
1
]
},
{
"type": "number",
"title": "two",
"enum": [
2
]
},
{
"type": "number",
"title": "three",
"enum": [
3
]
}
]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Disabled attribute for enum fields

To disable an option, use the ui:enumDisabled property in the uiSchema.

const schema = {
type: "boolean",
enum: [true, false]
};

const uiSchema={
"ui:enumDisabled": [true],
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Nullable types

JSON Schema supports specifying multiple types in an array; however, react-jsonschema-form only supports a restricted subset of this -- nullable types, in which an element is either a given type or equal to null.

const schema = {
type: ["string", "null"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/themes/index.html b/docs/version-3.2.1/usage/themes/index.html index 41d95f64c6..acffbe2197 100644 --- a/docs/version-3.2.1/usage/themes/index.html +++ b/docs/version-3.2.1/usage/themes/index.html @@ -4,7 +4,7 @@ Themes | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v3

Themes

By default, this library renders form fields and widgets leveraging the Bootstrap semantics, meaning that you must load the Bootstrap stylesheet on the page to view the form properly. You can use another theme by importing one of the packages listed below.

Supported themes

Theme NameStatusPackage Name / Link
Bootstrap 3 (default)Published@rjsf/core
Bootstrap 4Published@rjsf/bootstrap-4
material-uiPublished@rjsf/material-ui
fluent-uiPublished@rjsf/fluent-ui
antdPublished@rjsf/antd
Semantic UIPublished@rjsf/semantic-ui

Using themes

To use a theme from a package, just import the <Form /> component from that package. For example, to use the material ui form, first install both @rjsf/core and @rjsf/material-ui. Then you can import the form by doing:

import Form from "@rjsf/material-ui";

If you would like to contribute a theme with a new UI framework, please develop the theme using the withTheme component described in Theme Customization and make a PR!

You can also use the uiSchema to add custom CSS class names to your form.

Customizing with other frameworks

The default theme is bootstrap 3. In order to use another theme, you must first install @rjsf/core.

For example, to use the standard bootstrap 3 form, you can run:

import Form from "@rjsf/core";

To use the material-ui form, you should first install both @rjsf/core and @rjsf/material-ui. Then, you can run:

import Form from "@rjsf/material-ui";

For more information on how to create a custom theme, see documentation on the withTheme component.

- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/validation/index.html b/docs/version-3.2.1/usage/validation/index.html index 1af5a16ec1..9fea9ee7ee 100644 --- a/docs/version-3.2.1/usage/validation/index.html +++ b/docs/version-3.2.1/usage/validation/index.html @@ -4,14 +4,14 @@ Validation | react-jsonschema-form - +
Version: v3

Validation

When the form is submitted, the form data is validated to conform to the given JSON schema; this library uses the ajv validator by default.

Live validation

By default, form data are only validated when the form is submitted or when a new formData prop is passed to the Form component.

You can enable live form data validation by passing a liveValidate prop to the Form component, and set it to true. Then, every time a value changes within the form data tree (e.g. the user entering a character in a field), a validation operation is performed, and the validation results are reflected into the form state.

Be warned that this is an expensive strategy, with possibly strong impact on performances.

const schema = {
type: ["string"],
const: "test"
};

const formData = "a";

render((
<Form schema={schema} formData={formData} liveValidate />
), document.getElementById("app"));

HTML5 Validation

By default, the form uses HTML5 validation. This may cause unintuitive results because the HTML5 validation errors (such as when a field is required) may be displayed before the form is submitted, and thus these errors will display differently from the react-jsonschema-form validation errors. You can turn off HTML validation by setting the noHtml5Validate to true.

const schema = {
type: "object",
properties: {
name: {
type: "string",
required: true
}
}
};

render((
<Form schema={schema} noHtml5Validate />
), document.getElementById("app"));

Custom validation rules

Form data is always validated against the JSON schema.

But it is possible to define your own custom validation rules. This is especially useful when the validation depends on several interdependent fields.

function validate(formData, errors) {
if (formData.pass1 !== formData.pass2) {
errors.pass2.addError("Passwords don't match");
}
return errors;
}

const schema = {
type: "object",
properties: {
pass1: {type: "string", minLength: 3},
pass2: {type: "string", minLength: 3},
}
};

render((
<Form schema={schema}
validate={validate} />
), document.getElementById("app"));

Notes:

  • The validate() function must always return the errors object received as second argument.
  • The validate() function is called after the JSON schema validation.

Custom error messages

Validation error messages are provided by the JSON Schema validation by default. If you need to change these messages or make any other modifications to the errors from the JSON Schema validation, you can define a transform function that receives the list of JSON Schema errors and returns a new list.

function transformErrors(errors) {
return errors.map(error => {
if (error.name === "pattern") {
error.message = "Only digits are allowed"
}
return error;
});
}

const schema = {
type: "object",
properties: {
onlyNumbersString: {type: "string", pattern: "^\\d*$"},
}
};

render((
<Form schema={schema}
transformErrors={transformErrors} />
), document.getElementById("app"));

Notes:

  • The transformErrors() function must return the list of errors. Modifying the list in place without returning it will result in an error.

Each element in the errors list passed to transformErrors has the following properties:

  • name: name of the error, for example, "required" or "minLength"
  • message: message, for example, "is a required property" or "should NOT be shorter than 3 characters"
  • params: an object with the error params returned by ajv (see doc for more info).
  • property: a string in Javascript property accessor notation to the data path of the field with the error. For example, .name or ['first-name'].
  • stack: full error name, for example ".name is a required property".
  • schemaPath: JSON pointer to the schema of the keyword that failed validation. For example, #/fields/firstName/required. (Note: this may sometimes be wrong due to a bug in ajv).

Error List Display

To take control over how the form errors are displayed, you can define an error list template for your form. This list is the form global error list that appears at the top of your forms.

An error list template is basically a React stateless component being passed errors as props so you can render them as you like:

function ErrorListTemplate(props) {
const { errors } = props;
return (
<div>
<h2>Custom error list</h2>
<ul>
{errors.map(error => (
<li key={error.stack}>
{error.stack}
</li>
))}
</ul>
</div>
);
}

const schema = {
type: "string",
const: "test"
};

render((
<Form schema={schema}
showErrorList={true}
formData={""}
liveValidate
ErrorList={ErrorListTemplate} />
), document.getElementById("app"));

Note: Your custom ErrorList template will only render when showErrorList is true.

The following props are passed to ErrorList

  • errors: An array of the errors.
  • errorSchema: The errorSchema constructed by Form.
  • schema: The schema that was passed to Form.
  • uiSchema: The uiSchema that was passed to Form.
  • formContext: The formContext object that you passed to Form.

The case of empty strings

When a text input is empty, the field in form data is set to undefined. String fields that use enum and a select widget will have an empty option at the top of the options list that when selected will result in the field being undefined.

One consequence of this is that if you have an empty string in your enum array, selecting that option in the select input will cause the field to be set to undefined, not an empty string.

If you want to have the field set to a default value when empty you can provide a ui:emptyValue field in the uiSchema object.

Custom meta schema validation

To have your schemas validated against any other meta schema than draft-07 (the current version of JSON Schema), make sure your schema has a $schema attribute that enables the validator to use the correct meta schema. For example:

{
"$schema": "http://json-schema.org/draft-04/schema#",
...
}

Note that react-jsonschema-form only supports the latest version of JSON Schema, draft-07, by default. To support additional meta schemas pass them through the additionalMetaSchemas prop to the Form component.

additionalMetaSchemas

The additionalMetaSchemas prop allows you to validate the form data against one (or more than one) JSON Schema meta schema, for example, JSON Schema draft-04. You can import a meta schema as follows:

const metaSchemaDraft04 = require("ajv/lib/refs/json-schema-draft-04.json");

In this example schema passed as props to Form component can be validated against draft-07 (default) and by draft-04 (added), depending on the value of $schema attribute.

const schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
type: "string"
};

return (<Form schema={schema}
additionalMetaSchemas={[metaSchemaDraft04]} />);

customFormats

Pre-defined semantic formats are limited. react-jsonschema-form adds two formats, color and data-url, to support certain alternative widgets. You can add formats of your own through the customFormats prop to your Form component:

const schema = {
type: 'string',
format: 'phone-us'
};

const customFormats = {
'phone-us': /\(?\d{3}\)?[\s-]?\d{3}[\s-]?\d{4}$/
};

render((
<Form schema={schema}
customFormats={customFormats}/>
), document.getElementById("app"));

Format values can be anything AJV's addFormat method accepts.

Async validation

Handling async errors is an important part of many applications. Support for this is added in the form of the extraErrors prop.

For example, a request could be made to some backend when the user submits the form. If that request fails, the errors returned by the backend should be formatted like in the following example.

const schema = {
type: "object",
properties: {
foo: {
type: "string",
},
candy: {
type: "object",
properties: {
bar: {
type: "string",
}
}
}
}
};

const extraErrors = {
foo: {
__errors: ["some error that got added as a prop"],
},
candy: {
bar: {
__errors: ["some error that got added as a prop"],
}
}
};

render((
<Form schema={schema}
extraErrors={extraErrors} />
), document.getElementById("app"));

An important note is that these errors are "display only" and will not block the user from submitting the form again.

- + \ No newline at end of file diff --git a/docs/version-3.2.1/usage/widgets/index.html b/docs/version-3.2.1/usage/widgets/index.html index f0d10b7b97..1bc6da56e3 100644 --- a/docs/version-3.2.1/usage/widgets/index.html +++ b/docs/version-3.2.1/usage/widgets/index.html @@ -4,13 +4,13 @@ Widgets | react-jsonschema-form - +
Version: v3

Widgets

The uiSchema ui:widget property tells the form which UI widget should be used to render a field.

Example:

const schema = {
type: "object",
properties: {
done: {
type: "boolean"
}
}
};

const uiSchema =  {
done: {
"ui:widget": "radio" // could also be "select"
}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

Here's a list of supported alternative widgets for different JSON Schema data types:

For boolean fields

  • radio: a radio button group with true and false as selectable values;
  • select: a select box with true and false as options;
  • by default, a checkbox is used

Note: To set the labels for a boolean field, instead of using true and false you can set enumNames in your schema. Note that enumNames belongs in your schema, not the uiSchema, and the order is always [true, false].

For string fields

  • textarea: a textarea element is used;
  • password: an input[type=password] element is used;
  • color: an input[type=color] element is used;
  • by default, a regular input[type=text] element is used.

String formats

The built-in string field also supports the JSON Schema format property, and will render an appropriate widget by default for the following string formats:

  • email: An input[type=email] element is used;
  • uri: An input[type=url] element is used;
  • data-url: By default, an input[type=file] element is used; in case the string is part of an array, multiple files will be handled automatically (see File widgets).
  • date: By default, an input[type=date] element is used;
  • date-time: By default, an input[type=datetime-local] element is used.

Please note that, even though they are standardized, datetime-local and date input elements are not yet supported by Firefox and IE. If you plan on targeting these platforms, two alternative widgets are available:

  • alt-datetime: Six select elements are used to select the year, the month, the day, the hour, the minute and the second;
  • alt-date: Three select elements are used to select the year, month and the day.

Firefox 57 - 66: Firefox partially supporting date and time input types, but not datetime-local, month or week

You can customize the list of years displayed in the year dropdown by providing a yearsRange property to ui:options in your uiSchema. Its also possible to remove the Now and Clear buttons with the hideNowButton and hideClearButton options.

const schema = {
type: "string"
};

const uiSchema = {
"ui:widget": "alt-datetime",
"ui:options": {
yearsRange: [1980, 2030],
hideNowButton: true,
hideClearButton: true,
}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

For number and integer fields

  • updown: an input[type=number] updown selector;
  • range: an input[type=range] slider;
  • radio: a radio button group with enum values. This can only be used when enum values are specified for this input.
  • By default, a regular input[type=text] element is used.

Note: If JSON Schema's minimum, maximum and multipleOf values are defined, the min, max and step input attributes values will take those values.

Hidden widgets

It's possible to use a hidden widget for a field by setting its ui:widget uiSchema directive to hidden:

const schema = {
type: "object",
properties: {
foo: {type: "boolean"}
}
};

const uiSchema = {
foo: {"ui:widget": "hidden"}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

Notes:

  • Hiding widgets is only supported for boolean, string, number and integer schema types;
  • A hidden widget takes its value from the formData prop.

File widgets

This library supports a limited form of input[type=file] widgets, in the sense that it will propagate file contents to form data state as data-urls.

There are two ways to use file widgets.

  1. By declaring a string json schema type along a data-url format:
const schema = {
type: "string",
format: "data-url",
};

render((
<Form schema={schema} />
), document.getElementById("app"));
  1. By specifying a ui:widget field uiSchema directive as file:
const schema = {
type: "string",
};

const uiSchema = {
"ui:widget": "file",
};

Multiple files

Multiple files selectors are supported by defining an array of strings having data-url as a format:

const schema = {
type: "array",
items: {
type: "string",
format: "data-url",
}
};

Note that storing large dataURIs into form state might slow rendering.

File widget input ref

The included FileWidget exposes a reference to the <input type="file" /> element node as an inputRef component property.

This allows you to programmatically trigger the browser's file selector, which can be used in a custom file widget.

accept option

You can use the accept attribute to specify a filter for what file types the user can upload:

const schema = {
type: "string",
format: "data-url"
};

const uiSchema = {
"ui:options": { accept: ".pdf" }
};
- + \ No newline at end of file diff --git a/docs/version-4.2.3/advanced-customization/custom-templates/index.html b/docs/version-4.2.3/advanced-customization/custom-templates/index.html index 4422d5856b..312fbaa129 100644 --- a/docs/version-4.2.3/advanced-customization/custom-templates/index.html +++ b/docs/version-4.2.3/advanced-customization/custom-templates/index.html @@ -4,14 +4,14 @@ Custom Templates | react-jsonschema-form - +
Version: v4

Custom Templates

This is an advanced feature that lets you customize even more aspects of the form:

_Custom FieldCustom TemplateCustom Widget
What it doesOverrides all behaviourOverrides just the layout (not behaviour)Overrides just the input box (not layout, labels, or help, or validation)
UsageGlobal or per-fieldGlobal or per-fieldGlobal or per-field
Global Example<Form fields={MyCustomField} /><Form ArrayFieldTemplate={MyArrayTemplate} /><Form widgets={MyCustomWidget} />
Per-Field Example"ui:field": MyCustomField"ui:ArrayFieldTemplate": MyArrayTemplate"ui:widget":MyCustomWidget
DocumentationCustom FieldsFieldTemplate / ArrayFieldTemplate / ObjectFieldTemplateCustom Widgets

ArrayFieldTemplate

You can use an ArrayFieldTemplate to customize how your arrays are rendered. This allows you to customize your array, and each element in the array. You can also customize arrays by specifying a widget in the relevant ui:widget schema, more details over on Custom Widgets.

const schema = {
type: "array",
items: {
type: "string"
}
};

function ArrayFieldTemplate(props) {
return (
<div>
{props.items.map(element => element.children)}
{props.canAdd && <button type="button" onClick={props.onAddClick}></button>}
</div>
);
}

render((
<Form schema={schema}
ArrayFieldTemplate={ArrayFieldTemplate} />
), document.getElementById("app"));

You also can provide your own field template to a uiSchema by specifying a ui:ArrayFieldTemplate property.

const uiSchema = {
"ui:ArrayFieldTemplate": ArrayFieldTemplate
}

Please see customArray.js for another example.

The following props are passed to each ArrayFieldTemplate:

  • DescriptionField: The DescriptionField from the registry (in case you wanted to utilize it)
  • TitleField: The TitleField from the registry (in case you wanted to utilize it).
  • canAdd: A boolean value stating whether new elements can be added to the array.
  • className: The className string.
  • disabled: A boolean value stating if the array is disabled.
  • idSchema: Object
  • items: An array of objects representing the items in the array. Each of the items represent a child with properties described below.
  • onAddClick: (event?) => void: A function that adds a new item to the array.
  • readonly: A boolean value stating if the array is read-only.
  • required: A boolean value stating if the array is required.
  • schema: The schema object for this array.
  • uiSchema: The uiSchema object for this array field.
  • title: A string value containing the title for the array.
  • formContext: The formContext object that you passed to Form.
  • formData: The formData for this array.
  • registry: The registry object.

The following props are part of each element in items:

  • children: The html for the item's content.
  • className: The className string.
  • disabled: A boolean value stating if the array item is disabled.
  • hasMoveDown: A boolean value stating whether the array item can be moved down.
  • hasMoveUp: A boolean value stating whether the array item can be moved up.
  • hasRemove: A boolean value stating whether the array item can be removed.
  • hasToolbar: A boolean value stating whether the array item has a toolbar.
  • index: A number stating the index the array item occurs in items.
  • key: A stable, unique key for the array item.
  • onAddIndexClick: (index) => (event?) => void: Returns a function that adds a new item at index.
  • onDropIndexClick: (index) => (event?) => void: Returns a function that removes the item at index.
  • onReorderClick: (index, newIndex) => (event?) => void: Returns a function that swaps the items at index with newIndex.
  • readonly: A boolean value stating if the array item is read-only.

Note: Array and object field templates are always rendered inside of the FieldTemplate. To fully customize an array field template, you may need to specify both ui:FieldTemplate and ui:ArrayFieldTemplate.

FieldTemplate

To take control over the inner organization of each field (each form row), you can define a field template for your form.

A field template is basically a React stateless component being passed field-related props, allowing you to structure your form row as you like.

const schema = {
type: "string"
};

function CustomFieldTemplate(props) {
const {id, classNames, label, help, required, description, errors, children} = props;
return (
<div className={classNames}>
<label htmlFor={id}>{label}{required ? "*" : null}</label>
{description}
{children}
{errors}
{help}
</div>
);
}

render((
<Form schema={schema}
FieldTemplate={CustomFieldTemplate} />
), document.getElementById("app"));

You also can provide your own field template to a uiSchema by specifying a ui:FieldTemplate property.

const uiSchema = {
"ui:FieldTemplate": CustomFieldTemplate
}

If you want to handle the rendering of each element yourself, you can use the props rawHelp, rawDescription and rawErrors.

The following props are passed to a custom field template component:

  • id: The id of the field in the hierarchy. You can use it to render a label targeting the wrapped widget.
  • classNames: A string containing the base Bootstrap CSS classes, merged with any custom ones defined in your uiSchema.
  • label: The computed label for this field, as a string.
  • description: A component instance rendering the field description, if one is defined (this will use any custom DescriptionField defined).
  • rawDescription: A string containing any ui:description uiSchema directive defined.
  • children: The field or widget component instance for this field row.
  • errors: A component instance listing any encountered errors for this field.
  • rawErrors: An array of strings listing all generated error messages from encountered errors for this field.
  • help: A component instance rendering any ui:help uiSchema directive defined.
  • rawHelp: A string containing any ui:help uiSchema directive defined. NOTE: rawHelp will be undefined if passed ui:help is a React component instead of a string.
  • hidden: A boolean value stating if the field should be hidden.
  • required: A boolean value stating if the field is required.
  • readonly: A boolean value stating if the field is read-only.
  • hideError: A boolean value stating if the field is hiding its errors
  • disabled: A boolean value stating if the field is disabled.
  • displayLabel: A boolean value stating if the label should be rendered or not. This is useful for nested fields in arrays where you don't want to clutter the UI.
  • fields: An array containing all Form's fields including your custom fields and the built-in fields.
  • schema: The schema object for this field.
  • uiSchema: The uiSchema object for this field.
  • onChange: The value change event handler; Can be called with a new value to change the value for this field.
  • formContext: The formContext object that you passed to Form.
  • formData: The formData for this field.
  • registry: The registry object.

Note: you can only define a single global field template for a form, but you can set individual field templates per property using "ui:FieldTemplate".

ObjectFieldTemplate

const schema = {
type: "object",
title: "Object title",
description: "Object description",
properties: {
name: {
type: "string"
},
age: {
type: "number"
}
}
};

function ObjectFieldTemplate(props) {
return (
<div>
{props.title}
{props.description}
{props.properties.map(element => <div className="property-wrapper">{element.content}</div>)}
</div>
);
}

render((
<Form schema={schema}
ObjectFieldTemplate={ObjectFieldTemplate} />
), document.getElementById("app"));

You also can provide your own field template to a uiSchema by specifying a ui:ObjectFieldTemplate property.

const uiSchema = {
"ui:ObjectFieldTemplate": ObjectFieldTemplate
};

Please see customObject.js for a better example.

The following props are passed to each ObjectFieldTemplate:

  • DescriptionField: The DescriptionField from the registry (in case you wanted to utilize it)
  • TitleField: The TitleField from the registry (in case you wanted to utilize it).
  • title: A string value containing the title for the object.
  • description: A string value containing the description for the object.
  • disabled: A boolean value stating if the object is disabled.
  • properties: An array of object representing the properties in the array. Each of the properties represent a child with properties described below.
  • onAddClick: (schema: JSONSchema7) => () => void: Returns a function that adds a new property to the object (to be used with additionalProperties)
  • readonly: A boolean value stating if the object is read-only.
  • required: A boolean value stating if the object is required.
  • schema: The schema object for this object.
  • uiSchema: The uiSchema object for this object field.
  • idSchema: An object containing the id for this object & ids for it's properties.
  • formData: The form data for the object.
  • formContext: The formContext object that you passed to Form.
  • registry: The registry object.

The following props are part of each element in properties:

  • content: The html for the property's content.
  • name: A string representing the property name.
  • disabled: A boolean value stating if the object property is disabled.
  • readonly: A boolean value stating if the property is read-only.
  • hidden: A boolean value stating if the property should be hidden.

Note: Array and object field templates are always rendered inside of the FieldTemplate. To fully customize an object field template, you may need to specify both ui:FieldTemplate and ui:ObjectFieldTemplate.

- + \ No newline at end of file diff --git a/docs/version-4.2.3/advanced-customization/custom-themes/index.html b/docs/version-4.2.3/advanced-customization/custom-themes/index.html index 6c0ce8f3ad..472b60fffe 100644 --- a/docs/version-4.2.3/advanced-customization/custom-themes/index.html +++ b/docs/version-4.2.3/advanced-customization/custom-themes/index.html @@ -4,13 +4,13 @@ Custom Themes | react-jsonschema-form - +
Version: v4

Custom Themes

The withTheme component provides an easy way to extend the functionality of react-jsonschema-form by passing in a theme object that defines custom/overridden widgets and fields, as well as any of the other possible properties of the standard rjsf Form component. This theme-defining object is passed as the only parameter to the HOC (withTheme(ThemeObj)), and the HOC will return a themed-component which you use instead of the standard Form component.

Usage

import React, { Component } from 'react';
import { withTheme } from '@rjsf/core';

const theme = { widgets: {test: () => (<div>test</div>) } };

const ThemedForm = withTheme(theme);

const Demo = () => (
<ThemedForm schema={schema} uiSchema={uiSchema} />
);

Theme object properties

The Theme object consists of the same properties as the rjsf Form component (such as widgets and fields). The themed-Form component merges together any theme-specific widgets and fields with the default widgets and fields. For instance, providing a single widget in widgets will merge this widget with all the default widgets of the rjsf Form component, but overrides the default if the theme's widget's name matches the default widget's name. Thus, for each default widget or field not specified/overridden, the themed-form will rely on the defaults from the rjsf Form. Note that you are not required to pass in either custom widgets or fields when using the custom-themed HOC component; you can make the essentially redefine the default Form by simply doing const Form = withTheme({});.

Widgets and fields

widgets and fields should be in the same format as shown here.

Example theme with custom widget:

const MyCustomWidget = (props) => {
return (
<input type="text"
className="custom"
value={props.value}
required={props.required}
onChange={(event) => props.onChange(event.target.value)} />
);
};

const myWidgets = {
myCustomWidget: MyCustomWidget
};

const ThemeObject = {widgets: myWidgets};
export default ThemeObject;

The above can be similarly done for fields.

Templates

Each template should be passed directly into the theme object just as you would into the rjsf Form component. Here is an example of how to use a custom ArrayFieldTemplate and ErrorListTemplate in the theme object:

function MyArrayFieldTemplate(props) {
return (
<div>
{props.items.map(element => element.children)}
{props.canAdd && <button type="button" onClick={props.onAddClick}></button>}
</div>
);
}

function MyErrorListTemplate(props) {
const {errors} = props;
return (
<ul>
{errors.map(error => (
<li key={error.stack}>
{error.stack}
</li>
))}
</ul>
);
}

const ThemeObject = {
ArrayFieldTemplate: MyArrayFieldTemplate,
ErrorList: MyErrorListTemplate,
widgets: myWidgets
};

export default ThemeObject;

Overriding other Form props

Just as the theme can override widgets, fields, any of the field templates, and set default values to properties like showErrorList, you can do the same with the instance of the withTheme() Form component.

const ThemeObject = {
ArrayFieldTemplate: MyArrayFieldTemplate,
fields: myFields,
showErrorList: false,
widgets: myWidgets
};

Thus, the user has higher priority than the withTheme HOC, and the theme has higher priority than the default values of the rjsf Form component (User > Theme > Defaults).

- + \ No newline at end of file diff --git a/docs/version-4.2.3/advanced-customization/custom-widgets-fields/index.html b/docs/version-4.2.3/advanced-customization/custom-widgets-fields/index.html index 90d2ef5515..d01f840b99 100644 --- a/docs/version-4.2.3/advanced-customization/custom-widgets-fields/index.html +++ b/docs/version-4.2.3/advanced-customization/custom-widgets-fields/index.html @@ -4,13 +4,13 @@ Custom Widgets and Fields | react-jsonschema-form - +
Version: v4

Custom Widgets and Fields

The API allows to specify your own custom widget and field components:

  • A widget represents a HTML tag for the user to enter data, eg. input, select, etc.
  • A field usually wraps one or more widgets and most often handles internal field state; think of a field as a form row, including the labels.

Customizing the default fields and widgets

You can override any default field and widget, including the internal widgets like the CheckboxWidget that ObjectField renders for boolean values. You can override any field and widget just by providing the customized fields/widgets in the fields and widgets props:

const schema = {
type: "boolean",
default: true
};

const uiSchema = {
"ui:widget": "checkbox"
};

const CustomCheckbox = function(props) {
return (
<button id="custom" className={props.value ? "checked" : "unchecked"} onClick={() => props.onChange(!props.value)}>
{String(props.value)}
</button>
);
};

const widgets = {
CheckboxWidget: CustomCheckbox
};

render((
<Form schema={schema}
uiSchema={uiSchema}
widgets={widgets} />
), document.getElementById("app"));

This allows you to create a reusable customized form class with your custom fields and widgets:

const customFields = {StringField: CustomString};
const customWidgets = {CheckboxWidget: CustomCheckbox};

function MyForm(props) {
return <Form fields={customFields} widgets={customWidgets} {...props} />;
}

The default fields you can override are:

  • ArrayField
  • BooleanField
  • DescriptionField
  • OneOfField
  • AnyOfField
  • NullField
  • NumberField
  • ObjectField
  • SchemaField
  • StringField
  • TitleField
  • UnsupportedField

The default widgets you can override are:

  • AltDateTimeWidget
  • AltDateWidget
  • CheckboxesWidget
  • CheckboxWidget
  • ColorWidget
  • DateTimeWidget
  • DateWidget
  • EmailWidget
  • FileWidget
  • HiddenWidget
  • PasswordWidget
  • RadioWidget
  • RangeWidget
  • SelectWidget
  • TextareaWidget
  • TextWidget
  • UpDownWidget
  • URLWidget

Adding your own custom widgets

You can provide your own custom widgets to a uiSchema for the following json data types:

  • string
  • number
  • integer
  • boolean
  • array
const schema = {
type: "string"
};

const uiSchema = {
"ui:widget": (props) => {
return (
<input type="text"
className="custom"
value={props.value}
required={props.required}
onChange={(event) => props.onChange(event.target.value)} />
);
}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

The following props are passed to custom widget components:

  • id: The generated id for this widget;
  • schema: The JSONSchema subschema object for this widget;
  • uiSchema: The uiSchema for this widget;
  • value: The current value for this widget;
  • placeholder: the placeholder for the field, if any;
  • required: The required status of this widget;
  • disabled: true if the widget is disabled;
  • readonly: true if the widget is read-only;
  • autofocus: true if the widget should autofocus;
  • onChange: The value change event handler; call it with the new value every time it changes;
  • onKeyChange: The key change event handler (only called for fields with additionalProperties); pass the new value every time it changes;
  • onBlur: The input blur event handler; call it with the the widget id and value;
  • onFocus: The input focus event handler; call it with the the widget id and value;
  • options: A map of options passed as a prop to the component (see Custom widget options).
  • options.enumOptions: For enum fields, this property contains the list of options for the enum as an array of { label, value } objects. If the enum is defined using the oneOf/anyOf syntax, the entire schema object for each option is appended onto the { schema, label, value } object.
  • formContext: The formContext object that you passed to Form.
  • rawErrors: An array of strings listing all generated error messages from encountered errors for this widget.
  • registry: A registry object (read next).

Custom component registration

Alternatively, you can register them all at once by passing the widgets prop to the Form component, and reference their identifier from the uiSchema:

const MyCustomWidget = (props) => {
return (
<input type="text"
className="custom"
value={props.value}
required={props.required}
onChange={(event) => props.onChange(event.target.value)} />
);
};

const widgets = {
myCustomWidget: MyCustomWidget
};

const schema = {
type: "string"
};

const uiSchema = {
"ui:widget": "myCustomWidget"
}

render((
<Form
schema={schema}
uiSchema={uiSchema}
widgets={widgets} />
), document.getElementById("app"));

This is useful if you expose the uiSchema as pure JSON, which can't carry functions.

Custom widget options

If you need to pass options to your custom widget, you can add a ui:options object containing those properties. If the widget has defaultProps, the options will be merged with the (optional) options object from defaultProps:

const schema = {
type: "string"
};

function MyCustomWidget(props) {
const {options} = props;
const {color, backgroundColor} = options;
return <input style={{color, backgroundColor}} />;
}

MyCustomWidget.defaultProps = {
options: {
color: "red"
}
};

const uiSchema = {
"ui:widget": MyCustomWidget,
"ui:options": {
backgroundColor: "yellow"
}
};

// renders red on yellow input
render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

Note: This also applies to registered custom components.

Note: Since v0.41.0, the ui:widget object API, where a widget and options were specified with "ui:widget": {component, options} shape, is deprecated. It will be removed in a future release.

Customizing widgets text input

All the widgets that render a text input use the BaseInput component internally. If you need to customize all text inputs without customizing all widgets individually, you can provide a BaseInput component in the widgets property of Form (see Custom component registration).

Custom field components

You can provide your own field components to a uiSchema for basically any json schema data type, by specifying a ui:field property.

For example, let's create and register a dumb geo component handling a latitude and a longitude:

const schema = {
type: "object",
required: ["lat", "lon"],
properties: {
lat: {type: "number"},
lon: {type: "number"}
}
};

// Define a custom component for handling the root position object
class GeoPosition extends React.Component {
constructor(props) {
super(props);
this.state = {...props.formData};
}

onChange(name) {
return (event) => {
this.setState({
[name]: parseFloat(event.target.value)
}, () => this.props.onChange(this.state));
};
}

render() {
const {lat, lon} = this.state;
return (
<div>
<input type="number" value={lat} onChange={this.onChange("lat")} />
<input type="number" value={lon} onChange={this.onChange("lon")} />
</div>
);
}
}

// Define the custom field component to use for the root object
const uiSchema = {"ui:field": "geo"};

// Define the custom field components to register; here our "geo"
// custom field component
const fields = {geo: GeoPosition};

// Render the form with all the properties we just defined passed
// as props
render((
<Form
schema={schema}
uiSchema={uiSchema}
fields={fields} />
), document.getElementById("app"));

Note: Registered fields can be reused across the entire schema.

Field props

A field component will always be passed the following props:

  • schema: The JSON schema for this field;
  • uiSchema: The uiSchema for this field;
  • idSchema: The tree of unique ids for every child field;
  • formData: The data for this field;
  • errorSchema: The tree of errors for this field and its children;
  • registry: A registry object (read next).
  • formContext: A formContext object (read next).

The registry object

The registry is an object containing the registered custom fields and widgets as well as the root schema definitions.

The registry is passed down the component tree, so you can access it from your custom field, custom widget, and SchemaField components.

Custom SchemaField

Warning: This is a powerful feature as you can override the whole form behavior and easily mess it up. Handle with care.

You can provide your own implementation of the SchemaField base React component for rendering any JSONSchema field type, including objects and arrays. This is useful when you want to augment a given field type with supplementary powers.

To proceed so, pass a fields object having a SchemaField property to your Form component; here's an example:


const CustomSchemaField = function(props) {
return (
<div id="custom">
<p>Yeah, I'm pretty dumb.</p>
<div>My props are: {JSON.stringify(props)}</div>
</div>
);
};

const fields = {
SchemaField: CustomSchemaField
};

const schema = {
type: "string"
};

render((
<Form schema={schema}
fields={fields} />
), document.getElementById("app"));

If you're curious how this could ever be useful, have a look at the Kinto formbuilder repository to see how it's used to provide editing capabilities to any form field.

Props passed to a custom SchemaField are the same as the ones passed to a custom field.

NOTE: If you are using the material-ui theme and are considering customizing a widget or a field, checkout this guide.

- + \ No newline at end of file diff --git a/docs/version-4.2.3/advanced-customization/index.html b/docs/version-4.2.3/advanced-customization/index.html index b9ce343fd0..10492f51cd 100644 --- a/docs/version-4.2.3/advanced-customization/index.html +++ b/docs/version-4.2.3/advanced-customization/index.html @@ -4,13 +4,13 @@ Advanced Customization | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/version-4.2.3/advanced-customization/internals/index.html b/docs/version-4.2.3/advanced-customization/internals/index.html index 7966c27dad..b4814f8dbe 100644 --- a/docs/version-4.2.3/advanced-customization/internals/index.html +++ b/docs/version-4.2.3/advanced-customization/internals/index.html @@ -4,14 +4,14 @@ Internals | react-jsonschema-form - +
Version: v4

Internals

Miscellaneous internals of react-jsonschema-form are listed here.

JSON Schema supporting status

This component follows JSON Schema specs. We currently support JSON Schema-07 by default, but we also support other JSON schema versions through the custom schema validation feature. Due to the limitation of form widgets, there are some exceptions as follows:

  • additionalItems keyword for arrays

    This keyword works when items is an array. additionalItems: true is not supported because there's no widget to represent an item of any type. In this case it will be treated as no additional items allowed. additionalItems being a valid schema is supported.

  • anyOf, allOf, and oneOf, or multiple types (i.e. "type": ["string", "array"])

    The anyOf and oneOf keywords are supported; however, properties declared inside the anyOf/oneOf should not overlap with properties "outside" of the anyOf/oneOf.

    You can also use oneOf with schema dependencies to dynamically add schema properties based on input data.

    The allOf keyword is supported; it uses json-schema-merge-allof to merge subschemas to render the final combined schema in the form. When these subschemas are incompatible, though (or if the library has an error merging it), the allOf keyword is dropped from the schema.

  • "additionalProperties":false produces incorrect schemas when used with schema dependencies. This library does not remove extra properties, which causes validation to fail. It is recommended to avoid setting "additionalProperties":false when you use schema dependencies. See #848 #902 #992

Handling of schema defaults

This library automatically fills default values defined in the JSON Schema as initial values in your form. This also works for complex structures in the schema. If a field has a default defined, it should always appear as default value in form. This also works when using schema dependencies.

Since there is a complex interaction between any supplied original form data and any injected defaults, this library tries to do the injection in a way which keeps the original intention of the original form data.

Check out the defaults example on the live playground to see this in action.

Merging of defaults into the form data

There are three different cases which need to be considered for the merging. Objects, arrays and scalar values. This library always deeply merges any defaults with the existing form data for objects.

This are the rules which are used when injecting the defaults:

  • When there is a scalar in the form data, nothing is changed.
  • When the value is undefined in the form data, the default is created in the form data.
  • When the value is an object in the form data, the defaults are deeply merged into the form data, using the rules defined here for the deep merge.
  • Then the value is an array in the form data, defaults are only injected in existing array items. No new array items will be created, even if the schema has minItems or additional items defined.

Merging of defaults within the schema

In the schema itself, defaults of parent elements are propagated into children. So when you have a schema which defines a deeply nested object as default, these defaults will be applied to children of the current node. This also merges objects defined at different levels together with the "deeper" not having precedence. If the parent node defines properties, which are not defined in the child, they will be merged so that the default for the child will be the merged defaults of parent and child.

For arrays this is not the case. Defining an array, when a parent also defines an array, will be overwritten. This is only true when arrays are used in the same level, for objects within these arrays, they will be deeply merged again.

Custom array field buttons

The ArrayField component provides a UI to add, remove and reorder array items, and these buttons use Bootstrap glyphicons. If you don't use glyphicons but still want to provide your own icons or texts for these buttons, you can easily do so using CSS:

i.glyphicon { display: none; }
.btn-add::after { content: 'Add'; }
.array-item-move-up::after { content: 'Move Up'; }
.array-item-move-down::after { content: 'Move Down'; }
.array-item-remove::after { content: 'Remove'; }

Submit form programmatically

You can use the reference to get your Form component and call the submit method to submit the form programmatically without a submit button. This method will dispatch the submit event of the form, and the function, that is passed to onSubmit props, will be called.

const onSubmit = ({formData}) => console.log("Data submitted: ",  formData);
let yourForm;

const schema = {
type: "string"
};

render((
<Form schema={schema}
onSubmit={onSubmit} ref={(form) => {yourForm = form;}}/>
), document.getElementById("app"));

yourForm.submit();
- + \ No newline at end of file diff --git a/docs/version-4.2.3/advanced-customization/material-ui/customizing-material-ui/index.html b/docs/version-4.2.3/advanced-customization/material-ui/customizing-material-ui/index.html index 6961101fc5..f119d967de 100644 --- a/docs/version-4.2.3/advanced-customization/material-ui/customizing-material-ui/index.html +++ b/docs/version-4.2.3/advanced-customization/material-ui/customizing-material-ui/index.html @@ -4,7 +4,7 @@ Customizing material-ui fields and widgets | react-jsonschema-form - + @@ -13,7 +13,7 @@ Material UI version 4 is provided by the scoped packages under @material-ui and version 5 is provided by the scoped packages under @mui.

The components used by @rjsf/material-ui for Material UI version 4 and version 5 have identical names and props. As a result, all of the fields and widgets provided by the theme are identical as well. The trick to making the two versions function side-by-side, was done by creating a React context, MuiComponentContext, that provides the appropriate set of components used by theme, for the particular scoped package.

In addition to this context, a custom hook, useMuiComponent(), is provided to allow quick access to that component set.

Example of a custom widget for @rjsf/material-ui

Here is an update to the MyCustomWidget for the material-ui theme

const schema = {
type: "string"
};

import { useMuiComponent } from '@rjsf/material-ui/v4';

function MyCustomWidget(props) {
const { options, ...otherProps } = props;
const { color, backgroundColor } = options;
const { TextInput } = useMuiComponent();
return <TextInput {...otherProps} style={{ color, backgroundColor }} />;
}

MyCustomWidget.defaultProps = {
options: {
color: "red"
}
};

const uiSchema = {
"ui:widget": MyCustomWidget,
"ui:options": {
backgroundColor: "yellow"
}
};

// renders red on yellow input
render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

Example of a custom field for @rjsf/material-ui

Here is an update to the GeoPosition for the material-ui theme

const schema = {
type: "object",
required: ["lat", "lon"],
properties: {
lat: { type: "number"},
lon: { type: "number" }
}
};

import { useMuiComponent } from '@rjsf/material-ui/v4';

// Define a custom component for handling the root position object
function GeoPosition(props) {
const { lat, lon } = props.formData;
const { Box, TextInput } = useMuiComponent();

const onChangeLat = (event) => {
const { target: { value } } = event;
const newData = { ...props.formData, lat: value };
props.onChange(newData);
};

const onChangeLon = (event) => {
const { target: { value } } = event;
const newData = { ...props.formData, lon: value };
props.onChange(newData);
};

return (
<Box>
<TextInput type="number" value={lat} onChange={onChangeLat} />
<TextInput type="number" value={lon} onChange={onChangeLon} />
</Box>
);
}

// Define the custom field component to use for the root object
const uiSchema = { "ui:field": "geo" };

// Define the custom field components to register; here our "geo"
// custom field component
const fields = { geo: GeoPosition };

// Render the form with all the properties we just defined passed
// as props
render((
<Form
schema={schema}
uiSchema={uiSchema}
fields={fields} />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-4.2.3/api-reference/form-props/index.html b/docs/version-4.2.3/api-reference/form-props/index.html index 652fb628df..fa7865e39a 100644 --- a/docs/version-4.2.3/api-reference/form-props/index.html +++ b/docs/version-4.2.3/api-reference/form-props/index.html @@ -4,7 +4,7 @@ <Form /> props | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v4

<Form /> props

acceptcharset

The value of this prop will be passed to the accept-charset HTML attribute on the form.

action

The value of this prop will be passed to the action HTML attribute on the form.

Note that this just renders the action attribute in the HTML markup. There is no real network request being sent to this action on submit. Instead, react-jsonschema-form catches the submit event with event.preventDefault() and then calls the onSubmit function, where you could send a request programmatically with fetch or similar.

additionalMetaSchemas

This prop allows you to validate the form data against another JSON Schema meta schema, for example, JSON Schema draft-04. See Validation for more information.

ArrayFieldTemplate

React component used to customize how alls arrays are rendered on the form. See Custom Templates for more information.

autoComplete

The value of this prop will be passed to the autocomplete HTML attribute on the form.

autocomplete

Deprecated, same functionality as autoComplete

className

The value of this prop will be passed to the class HTML attribute on the form.

children

You can provide custom buttons to your form via the Form component's children. Otherwise a default submit button will be rendered.

const schema = {
type: "string"
};

render((
<Form schema={schema}>
<div>
<button type="submit">Submit</button>
<button type="button">Cancel</button>
</div>
</Form>
), document.getElementById("app"));

Warning: There needs to be a button or an input with type="submit" to trigger the form submission (and then the form validation).

customFormats

This prop allows you to define custom formats for validation. See Validation for more information.

disabled

It's possible to disable the whole form by setting the disabled prop. The disabled prop is then forwarded down to each field of the form.

const schema = {
type: "string"
};

render((
<Form schema={schema}
disabled />
), document.getElementById("app"));

If you just want to disable some of the fields, see the ui:disabled parameter in uiSchema.

readonly

It's possible to make the whole form read-only by setting the readonly prop. The readonly prop is then forwarded down to each field of the form.

const schema = {
type: "string"
};

render((
<Form schema={schema}
readonly />
), document.getElementById("app"));

If you just want to make some of the fields read-only, see the ui:readonly parameter in uiSchema.

enctype

The value of this prop will be passed to the enctype HTML attribute on the form.

extraErrors

This prop allows passing in custom errors that are augmented with the existing JSON Schema errors on the form; it can be used to implement asynchronous validation. See Validation for more information.

ErrorList

You can pass a React component to this prop to customize how form errors are displayed. See Validation for more information.

fields

Dictionary of registered fields in the form. See Custom Widgets and Fields for more information.

FieldTemplate

React component used to customize each field of the form. See Custom Templates for more information.

formContext

You can provide a formContext object to the Form, which is passed down to all fields and widgets. Useful for implementing context aware fields and widgets. Setting {readonlyAsDisabled: false} on the formContext will make the antd theme treat readOnly fields as disabled.

formData

Often you'll want to prefill a form with existing data; this is done by passing a formData prop object matching the schema.

id

The value of this prop will be passed to the id HTML attribute on the form.

idPrefix

To avoid collisions with existing ids in the DOM, it is possible to change the prefix used for ids (the default is root).

const schema = {
type: "string"
};

render((
<Form schema={schema}
idPrefix={"rjsf_prefix"}/>
), document.getElementById("app"));

This will render <input id="rjsf_prefix_key"> instead of <input id="root_key">

idSeparator

To avoid using a path separator that is present in field names, it is possible to change the separator used for ids (the default is _).

const schema = {
type: "object",
properties: {
first: {
type: "string"
}
}
};

render((
<Form schema={schema}
idSeparator={"/"}/>
), document.getElementById("app"));

This will render <input id="root/first"> instead of <input id="root_first"> when rendering first.

liveOmit

If omitExtraData and liveOmit are both set to true, then extra form data values that are not in any form field will be removed whenever onChange is called. Set to false by default.

liveValidate

If set to true, the form will perform validation and show any validation errors whenever the form data is changed, rather than just on submit.

method

The value of this prop will be passed to the method HTML attribute on the form.

name

The value of this prop will be passed to the name HTML attribute on the form.

noHtml5Validate

If set to true, turns off HTML5 validation on the form. Set to false on default.

noValidate

If set to true, turns off all validation. Set to false by default.

ObjectFieldTemplate

React component used to customize how all objects are rendered in the form. See Custom Templates for more information.

omitExtraData

If set to true, then extra form data values that are not in any form field will be removed whenever onSubmit is called. Set to false by default.

onBlur

Sometimes you may want to trigger events or modify external state when a field has been touched, so you can pass an onBlur handler, which will receive the id of the input that was blurred and the field value.

onChange

If you plan on being notified every time the form data are updated, you can pass an onChange handler, which will receive the same args as onSubmit any time a value is updated in the form.

onError

To react when submitted form data are invalid, pass an onError handler. It will be passed the list of encountered errors:

const schema = {
type: "string"
};
const onError = (errors) => console.log("I have", errors.length, "errors to fix");

render((
<Form schema={schema}
onError={onError} />
), document.getElementById("app"));

onFocus

Sometimes you may want to trigger events or modify external state when a field has been focused, so you can pass an onFocus handler, which will receive the id of the input that is focused and the field value.

onSubmit

You can pass a function as the onSubmit prop of your Form component to listen to when the form is submitted and its data are valid. It will be passed a result object having a formData attribute, which is the valid form data you're usually after. The original event will also be passed as a second parameter:

const schema = {
type: "string"
};
const onSubmit = ({formData}, e) => console.log("Data submitted: ", formData);

render((
<Form schema={schema}
onSubmit={onSubmit} />
), document.getElementById("app"));

Note: If there are fields in the formData that are not represented in the schema, they will be retained by default. If you would like to remove those extra values on form submission, you may need to set the omitExtraData and/or liveOmit props.

schema

Form schema. We support JSON schema draft-07 by default. See Schema Reference for more information.

showErrorList

When this prop is set to true, a list of errors (or the custom error list defined in the ErrorList) will also show. When set to false, only inline input validation errors will be shown. Set to true by default. See Validation for more information.

tagName

It's possible to change the default form tag name to a different HTML tag, which can be helpful if you are nesting forms. However, native browser form behaviour, such as submitting when the Enter key is pressed, may no longer work.

<Form
tagName="div"
/>

You can also provide a class/function component.

const CustomForm = props => <form {...props} style={...} className={...} />
// ...
<Form
tagName={CustomForm}
/>

target

The value of this prop will be passed to the target HTML attribute on the form.

transformErrors

A function can be passed to this prop in order to make modifications to the default errors resulting from JSON Schema validation. See Validation for more information.

uiSchema

Form uiSchema. See uiSchema Reference for more information.

validate

The validate prop requires a function that specifies custom validation rules for the form. See Validation for more information.

widgets

Dictionary of registered widgets in the form. See Custom Widgets and Fields for more information.

- + \ No newline at end of file diff --git a/docs/version-4.2.3/api-reference/index.html b/docs/version-4.2.3/api-reference/index.html index 1f4a517d82..a0d4f66ca6 100644 --- a/docs/version-4.2.3/api-reference/index.html +++ b/docs/version-4.2.3/api-reference/index.html @@ -4,13 +4,13 @@ API Reference | react-jsonschema-form - + - + \ No newline at end of file diff --git a/docs/version-4.2.3/api-reference/themes/chakra-ui/uiSchema/index.html b/docs/version-4.2.3/api-reference/themes/chakra-ui/uiSchema/index.html index ceaf8d917c..9b6f6f9d85 100644 --- a/docs/version-4.2.3/api-reference/themes/chakra-ui/uiSchema/index.html +++ b/docs/version-4.2.3/api-reference/themes/chakra-ui/uiSchema/index.html @@ -4,14 +4,14 @@ uiSchema Options for Chakra-UI | react-jsonschema-form - +
Version: v4

uiSchema Options for Chakra-UI

When using @rjsf/chakra-ui there are a couple of ways to customize the feel of the form.

Styling

You can use ChakraProvider, where you can customize the components at a theme level.\ And, uiSchema allows for the use of a "chakra" "ui:option" to customize the styling of the form widgets.

{
"ui:options": {
"chakra": {
"p": "1rem",
"color": "blue.200",
"sx": {
"margin": "0 auto"
}
}
}
}

It accepts the theme accessible style props provided by Chakra and Emotion.

Limitations

  • The chakra option is only available for the Chakra-UI theme.
  • The props are given to the parent component in the individual widget. To pass styles to the inner components, use the sx prop.
- + \ No newline at end of file diff --git a/docs/version-4.2.3/api-reference/themes/semantic-ui/uiSchema/index.html b/docs/version-4.2.3/api-reference/themes/semantic-ui/uiSchema/index.html index de23ff20c9..907f155473 100644 --- a/docs/version-4.2.3/api-reference/themes/semantic-ui/uiSchema/index.html +++ b/docs/version-4.2.3/api-reference/themes/semantic-ui/uiSchema/index.html @@ -4,13 +4,13 @@ uiSchema Options for Semantic-UI | react-jsonschema-form - +
Version: v4

uiSchema Options for Semantic-UI

There are various options to pass to semantic theme fields.

Note that every semantic property within uiSchema can be rendered in one of two ways: {"ui:options": {semantic:{[property]: [value]}}}

In other words, the following uiSchema is equivalent:

Note: All fields have the following settings below as their default

fluid: Take on the size of its container.
inverted: Format to appear on dark backgrounds.
{
"ui:options": {
"semantic" : {
"fluid": true,
"inverted": false,
"errorOptions": {
"size": "small",
"pointing": "above",
}
}
}
}

Semantic Widget Optional Properties

errorOptions

The uiSchema semantic object accepts an errorOptions property for each field of the schema:

size: determines the size of the error message dialog
pointing: determines the direction of the arrow on the error message dialog

Below are the current defaults

const uiSchema = {
"ui:options": {
"semantic" : {
"errorOptions": {
"size": "small",
"pointing": "above",
}
}
}
};

semantic options uiSchema for array items

To specify a uiSchema that applies to array items, specify the semantic uiSchema value within the ui:options property:

wrapItem: wrap each array item in a Segment
horizontalButtons: horizontal buttons instead of the default vertical
const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
"semantic": {
"wrapItem": true,
"horizontalButtons": true
}
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

formContext

The formContext semantic object accepts wrapContent ,wrapLabel properties.

wrapContent: wrap all inputs  field content in a div, for custom styling
wrapLabel: wrap all labels in a div, for custom styling via CSS
<Form
formContext={{
"semantic" : {
"wrapLabel": true,
"wrapContent": true
}
// other props...
}}
/>
- + \ No newline at end of file diff --git a/docs/version-4.2.3/api-reference/uiSchema/index.html b/docs/version-4.2.3/api-reference/uiSchema/index.html index d14fac8490..c60cb8f67c 100644 --- a/docs/version-4.2.3/api-reference/uiSchema/index.html +++ b/docs/version-4.2.3/api-reference/uiSchema/index.html @@ -4,14 +4,14 @@ uiSchema | react-jsonschema-form - +
Version: v4

uiSchema

JSON Schema is limited for describing how a given data type should be rendered as a form input component. That's why this library introduces the concept of uiSchema.

A UI schema is basically an object literal providing information on how the form should be rendered, while the JSON schema tells what.

The uiSchema object follows the tree structure of the form field hierarchy, and defines how each property should be rendered.

Note that every property within uiSchema can be rendered in one of two ways: {"ui:options": {[property]: [value]}}, or {"ui:[property]": value}.

In other words, the following uiSchemas are equivalent:

{
"ui:title": "Title",
"ui:description": "Description",
"ui:submitButtonOptions": {
"props": {
"disabled": false,
"className": "btn btn-info",
},
"norender": false,
"submitText": "Submit"
},
}
{
"ui:options": {
"title": "Title",
"description": "Description",
"submitButtonOptions": {
"props": {
"disabled": false,
"className": "btn btn-info",
},
"norender": false,
"submitText": "Submit"
},
}
}

classNames

The uiSchema object accepts a classNames property for each field of the schema:

const uiSchema = {
title: {
classNames: "task-title foo-bar"
}
};

Will result in:

<div class="field field-string task-title foo-bar" >
<label>
<span>Title*</span>
<input value="My task" required="" type="text">
</label>
</div>

autofocus

If you want to automatically focus on a text input or textarea input, set the ui:autofocus uiSchema directive to true.

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "textarea",
"ui:autofocus": true
}

description

Sometimes it's convenient to change the description of a field. This is the purpose of the ui:description uiSchema directive:

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "password",
"ui:description": "The best password"
};

disabled

The ui:disabled uiSchema directive will disable all child widgets from a given field.

Note: If you're wondering about the difference between a disabled field and a readonly one: Marking a field as read-only will render it greyed out, but its text value will be selectable. Disabling it will prevent its value to be selected at all.

enumDisabled

To disable an option, use the enumDisabled property in uiSchema.

const schema = {
type: "string",
enum: ["one", "two", "three"],
};

const uiSchema={
"ui:enumDisabled": ['two'],
}

help

Sometimes it's convenient to add text next to a field to guide the end user filling it. This is the purpose of the ui:help uiSchema directive:

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "password",
"ui:help": "Hint: Make it strong!"
};

Help texts work for any kind of field at any level, and will always be rendered immediately below the field component widget(s) (after contextualized errors, if any).

hideError

The ui:hideError uiSchema directive will, if set to true, hide the default error display for the given field AND all of its child fields in the hierarchy.

If you need to enable the default error display of a child in the hierarchy after setting hideError: true on the parent field, simply set hideError: false on the child.

This is useful when you have a custom field or widget that utilizes either the rawErrors or the errorSchema to manipulate and/or show the error(s) for the field/widget itself.

inputType

To change the input type (for example, tel or email) you can specify the inputType in the ui:options uiSchema directive.

const schema = {type: "string"};
const uiSchema = {
"ui:options": {
inputType: 'tel'
}
};

label

Field labels are rendered by default. Labels may be omitted by setting the label option to false in the ui:options uiSchema directive.

const schema = {type: "string"};
const uiSchema = {
"ui:options": {
label: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

order

This property allows you to reorder the properties that are shown for a particular object. See Objects for more information.

placeholder

You can add placeholder text to an input by using the ui:placeholder uiSchema directive:

const schema = {type: "string", format: "uri"};
const uiSchema = {
"ui:placeholder": "http://"
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Fields using enum can also use ui:placeholder. The value will be used as the text for the empty option in the select widget.

const schema = {type: "string", enum: ["First", "Second"]};
const uiSchema = {
"ui:placeholder": "Choose an option"
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

readonly

The ui:readonly uiSchema directive will mark all child widgets from a given field as read-only. This is equivalent to setting the readOnly property in the schema.

Note: If you're wondering about the difference between a disabled field and a readonly one: Marking a field as read-only will render it greyed out, but its text value will be selectable. Disabling it will prevent its value to be selected at all.

rootFieldId

By default, this library will generate ids unique to the form for all rendered widgets. If you plan on using multiple instances of the Form component in a same page, it's wise to declare a root prefix for these, using the ui:rootFieldId uiSchema directive:

const uiSchema = {
"ui:rootFieldId": "myform"
};

This will make all widgets have an id prefixed with myform.

rows

You can set the initial height of a textarea widget by specifying rows option.

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "textarea",
"ui:options": {
rows: 15
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

title

Sometimes it's convenient to change a field's title. This is the purpose of the ui:title uiSchema directive:

const schema = {type: "string"};
const uiSchema = {
"ui:widget": "password",
"ui:title": "Your password"
};

submitButtonOptions

Sometimes it's convenient to change the behavior of the submit button for the form. This is the purpose of the ui:submitButtonOptions uiSchema directive:

You can pass any other prop to the submit button if you want, by default, this library will set the following options / props mentioned below for all submit buttons:

norender option

You can set this property to true to remove the submit button completely from the form. Nice option, if the form is just for viewing purposes.

submitText option

You can use this option to change the text of the submit button. Set to "Submit" by default.

props section

You can pass any other prop to the submit button if you want, via this section.

disabled prop

You can use this option to disable the submit button.

className prop

You can use this option to specify a class name for the submit button.

const uiSchema = {
"ui:submitButtonOptions": {
"props": {
"disabled": false,
"className": "btn btn-info",
},
"norender": false,
"submitText": "Submit"
}
};

Theme Options

Semantic UI Chakra UI

- + \ No newline at end of file diff --git a/docs/version-4.2.3/quickstart/index.html b/docs/version-4.2.3/quickstart/index.html index 4591683583..ecea48d5ac 100644 --- a/docs/version-4.2.3/quickstart/index.html +++ b/docs/version-4.2.3/quickstart/index.html @@ -4,7 +4,7 @@ Quickstart | react-jsonschema-form - + @@ -14,7 +14,7 @@ uiSchema should be {key: value}, where key is the property key and value is an object with the uiSchema configuration for that particular property. For example:

const schema = {
title: "Test form",
type: "object",
properties: {
name: {
type: "string"
},
age: {
type: "number"
}
}
};

const uiSchema = {
name: {
classNames: "custom-class-name"
},
age: {
classNames: "custom-class-age"
}
}

render((
<Form schema={schema} />
), document.getElementById("app"));

Form initialization

Often you'll want to prefill a form with existing data; this is done by passing a formData prop object matching the schema:

const schema = {
type: "object",
properties: {
title: {
type: "string"
},
done: {
type: "boolean"
}
}
};

const formData = {
title: "First task",
done: true
};

render((
<Form schema={schema}
formData={formData} />
), document.getElementById("app"));

Note: If your form has a single field, pass a single value to formData. ex: formData="Charlie"

WARNING: If you have situations where your parent component can re-render, make sure you listen to the onChange event and update the data you pass to the formData attribute.

Form event handlers

You can use event handlers such as onChange, onError, onSubmit, onFocus, and onBlur on the <Form /> component; see the Form Props Reference for more details.

Controlled component

By default, <Form /> is an uncontrolled component. To make it a controlled component, use the onChange and formData props as in the below example:

const App = () => {
const [formData, setFormData] = React.useState(null);
return (<Form
schema={{type: "string"}}
formData={formData}
onChange={e => setFormData(e.formData)}
/>);
};

render((
<App />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/arrays/index.html b/docs/version-4.2.3/usage/arrays/index.html index 5ba37dcde3..041fd809e2 100644 --- a/docs/version-4.2.3/usage/arrays/index.html +++ b/docs/version-4.2.3/usage/arrays/index.html @@ -4,13 +4,13 @@ Arrays | react-jsonschema-form - +
Version: v4

Arrays

Arrays are defined with a type equal to array, and array items' schemas are specified in the items keyword.

Arrays of a single field

Arrays of a single field type can be specified as follows:

const schema = {
type: "array",
items: {
type: "string"
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Arrays of objects

Arrays of objects can be specified as follows:

const schema = {
type: "array",
items: {
type: "object",
properties: {
name: {
type: "string"
}
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

uiSchema for array items

To specify a uiSchema that applies to array items, specify the uiSchema value within the items property:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
items: {
"ui:widget": "textarea"
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

The additionalItems keyword

The additionalItems keyword allows the user to add additional items of a given schema. For example:

const schema = {
type: "array",
items: {
type: "string"
},
additionalItems: {
type: "boolean"
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Array item options

orderable option

Array items are orderable by default, and react-jsonschema-form renders move up/down buttons alongside them. The uiSchema orderable options allows you to disable ordering:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
orderable: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

addable option

If either items or additionalItems contains a schema object, an add button for new items is shown by default. You can turn this off with the addable option in uiSchema:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
addable: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

removable option

A remove button is shown by default for an item if items contains a schema object, or the item is an additionalItems instance. You can turn this off with the removable option in uiSchema:

const schema = {
type: "array",
items: {
type: "string"
}
};

const uiSchema = {
"ui:options": {
removable: false
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Multiple-choice list

The default behavior for array fields is a list of text inputs with add/remove buttons. There are two alternative widgets for picking multiple elements from a list of choices. Typically this applies when a schema has an enum list for the items property of an array field, and the uniqueItems property set to true.

Example:

const schema = {
type: "array",
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

render((
<Form schema={schema} />
), document.getElementById("app"));

By default, this will render a multiple select box. If you prefer a list of checkboxes, just set the uiSchema ui:widget directive to checkboxes for that field:

const schema = {
type: "array",
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

const uiSchema = {
"ui:widget": "checkboxes"
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Custom widgets

In addition to ArrayFieldTemplate you use your own widget by providing it to the uiSchema with the property of ui:widget.

Example:

const CustomSelectComponent = props => {
return (
<select>
{props.value.map((item, index) => (
<option key={index} id="custom-select">
{item}
</option>
))}
</select>
);
};

const schema = {
type: "array",
title: "A multiple-choice list",
items: {
type: "string",
},
};

const uiSchema = {
"ui:widget": "CustomSelect"
};

const widgets = {
CustomSelect: CustomSelectComponent,
},

render((<Form schema={schema} uiSchema={uiSchema} widgets={widgets} />), document.getElementById("app"));

Specifying the minimum or maximum number of items

Note that when an array property is marked as required, an empty array is considered valid. If the array needs to be populated, you can specify the minimum number of items using the minItems property.

Example:

const schema = {
type: "array",
minItems: 2,
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

render((
<Form schema={schema} />
), document.getElementById("app"));

You can also specify the maximum number of items in an array using the maxItems property.

Inline checkboxes

By default, checkboxes are stacked. If you prefer them inline, set the inline property to true:

const schema = {
type: "array",
minItems: 2,
title: "A multiple-choice list",
items: {
type: "string",
enum: ["foo", "bar", "fuzz", "qux"],
},
uniqueItems: true
};

const uiSchema = {
"ui:widget": "checkboxes",
"ui:options": {
inline: true
}
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/definitions/index.html b/docs/version-4.2.3/usage/definitions/index.html index 056d90407a..e228729241 100644 --- a/docs/version-4.2.3/usage/definitions/index.html +++ b/docs/version-4.2.3/usage/definitions/index.html @@ -4,13 +4,13 @@ Schema definitions and references | react-jsonschema-form - +
Version: v4

Schema definitions and references

This library partially supports inline schema definition dereferencing, which is Barbarian for avoiding to copy and paste commonly used field schemas:

const schema = {
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": { "type": "string" },
"city": { "type": "string" },
"state": { "type": "string" }
},
"required": ["street_address", "city", "state"]
}
},
"type": "object",
"properties": {
"billing_address": { "$ref": "#/definitions/address" },
"shipping_address": { "$ref": "#/definitions/address" }
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Note that this library only supports local definition referencing. The value in the $ref keyword should be a JSON Pointer in URI fragment identifier format.

- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/dependencies/index.html b/docs/version-4.2.3/usage/dependencies/index.html index 4140aa5a07..212738c3fc 100644 --- a/docs/version-4.2.3/usage/dependencies/index.html +++ b/docs/version-4.2.3/usage/dependencies/index.html @@ -4,14 +4,14 @@ Dependencies | react-jsonschema-form - +
Version: v4

Dependencies

react-jsonschema-form supports the dependencies keyword from an earlier draft of JSON Schema (note that this is not part of the latest JSON Schema spec, though). Dependencies can be used to create dynamic schemas that change fields based on what data is entered.

Property dependencies

This library supports conditionally making fields required based on the presence of other fields.

Unidirectional

In the following example the billing_address field will be required if credit_card is defined.

const schema = {
"type": "object",

"properties": {
"name": { "type": "string" },
"credit_card": { "type": "number" },
"billing_address": { "type": "string" }
},

"required": ["name"],

"dependencies": {
"credit_card": ["billing_address"]
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Bidirectional

In the following example the billing_address field will be required if credit_card is defined and the credit_card field will be required if billing_address is defined, making them both required if either is defined.

const schema = {
"type": "object",

"properties": {
"name": { "type": "string" },
"credit_card": { "type": "number" },
"billing_address": { "type": "string" }
},

"required": ["name"],

"dependencies": {
"credit_card": ["billing_address"],
"billing_address": ["credit_card"]
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

(Sample schemas courtesy of the Space Telescope Science Institute)

Schema dependencies

This library also supports modifying portions of a schema based on form data.

Conditional

const schema = {
"type": "object",

"properties": {
"name": { "type": "string" },
"credit_card": { "type": "number" }
},

"required": ["name"],

"dependencies": {
"credit_card": {
"properties": {
"billing_address": { "type": "string" }
},
"required": ["billing_address"]
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

In this example the billing_address field will be displayed in the form if credit_card is defined.

(Sample schemas courtesy of the Space Telescope Science Institute)

Dynamic

The JSON Schema standard says that the dependency is triggered if the property is present. However, sometimes it's useful to have more sophisticated rules guiding the application of the dependency. For example, maybe you have three possible values for a field, and each one should lead to adding a different question. For this, we support a very restricted use of the oneOf keyword.

const schema = {
"title": "Person",
"type": "object",
"properties": {
"Do you have any pets?": {
"type": "string",
"enum": [
"No",
"Yes: One",
"Yes: More than one"
],
"default": "No"
}
},
"required": [
"Do you have any pets?"
],
"dependencies": {
"Do you have any pets?": {
"oneOf": [
{
"properties": {
"Do you have any pets?": {
"enum": [
"No"
]
}
}
},
{
"properties": {
"Do you have any pets?": {
"enum": [
"Yes: One"
]
},
"How old is your pet?": {
"type": "number"
}
},
"required": [
"How old is your pet?"
]
},
{
"properties": {
"Do you have any pets?": {
"enum": [
"Yes: More than one"
]
},
"Do you want to get rid of any?": {
"type": "boolean"
}
},
"required": [
"Do you want to get rid of any?"
]
}
]
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

In this example the user is prompted with different follow-up questions dynamically based on their answer to the first question.

In these examples, the "Do you have any pets?" question is validated against the corresponding property in each schema in the oneOf array. If exactly one matches, the rest of that schema is merged with the existing schema.

- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/index.html b/docs/version-4.2.3/usage/index.html index da94e35d88..4401335bf9 100644 --- a/docs/version-4.2.3/usage/index.html +++ b/docs/version-4.2.3/usage/index.html @@ -4,13 +4,13 @@ Usage and Customization | react-jsonschema-form - +
- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/objects/index.html b/docs/version-4.2.3/usage/objects/index.html index 7e50b397f7..9464b25e0d 100644 --- a/docs/version-4.2.3/usage/objects/index.html +++ b/docs/version-4.2.3/usage/objects/index.html @@ -4,13 +4,13 @@ Objects | react-jsonschema-form - +
Version: v4

Objects

Object properties

Objects are defined with a type equal to object and properties specified in the properties keyword.

const schema = {
"title": "My title",
"description": "My description",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number"
}
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Required properties

You can specify which properties are required using the required attribute:

const schema = {
"title": "My title",
"description": "My description",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number"
}
},
"required": ["name"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Specifying property order

Since the order of object properties in Javascript and JSON is not guaranteed, the uiSchema object spec allows you to define the order in which properties are rendered using the ui:order property:

const schema = {
type: "object",
properties: {
foo: {type: "string"},
bar: {type: "string"}
}
};

const uiSchema = {
"ui:order": ["bar", "foo"]
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

If a guaranteed fixed order is only important for some fields, you can insert a wildcard "*" item in your ui:order definition. All fields that are not referenced explicitly anywhere in the list will be rendered at that point:

const uiSchema = {
"ui:order": ["bar", "*"]
};

Additional properties

The additionalProperties keyword allows the user to add properties with arbitrary key names. Set this keyword equal to a schema object:

const schema = {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": {
"type": "number",
"enum": [1, 2, 3]
}
};

render((
<Form schema={schema} />
), document.getElementById("app"));

In this way, an add button for new properties is shown by default.

You can also define uiSchema options for additionalProperties by setting the additionalProperties attribute in the uiSchema.

expandable option

You can turn support for additionalProperties off with the expandable option in uiSchema:

const uiSchema = {
"ui:options": {
expandable: false
}
};
- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/oneof/index.html b/docs/version-4.2.3/usage/oneof/index.html index 4d1d569096..9383511649 100644 --- a/docs/version-4.2.3/usage/oneof/index.html +++ b/docs/version-4.2.3/usage/oneof/index.html @@ -4,13 +4,13 @@ oneOf, anyOf, and allOf | react-jsonschema-form - +
Version: v4

oneOf, anyOf, and allOf

react-jsonschema-form supports custom widgets for oneOf, anyOf, and allOf.

  • A schema with oneOf is valid if exactly one of the subschemas is valid.
  • A schema with anyOf is valid if at least one of the subschemas is valid.
  • A schema with allOf is valid if all of the subschemas are valid.

oneOf

const schema = {
type: "object",
oneOf: [
{
properties: {
lorem: {
type: "string",
},
},
required: ["lorem"],
},
{
properties: {
ipsum: {
type: "string",
},
},
required: ["ipsum"],
},
],
};

render((
<Form schema={schema} />
), document.getElementById("app"));

anyOf

const schema = {
type: "object",
anyOf: [
{
properties: {
lorem: {
type: "string",
},
},
required: ["lorem"],
},
{
properties: {
lorem: {
type: "string",
},
ipsum: {
type: "string",
},
}
},
],
};

render((
<Form schema={schema} />
), document.getElementById("app"));

allOf

When allOf is specified in a schema, react-jsonschema-form uses the json-schema-merge-allof library to merge the specified subschemas to create a combined subschema that is valid. For example, the below schema evaluates to a combined subschema of {type: "boolean"}:

const schema = {
title: "Field",
allOf: [
{
type: ["string", "boolean"]
},
{
type: "boolean"
},
],
};

render((
<Form schema={schema} />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/single/index.html b/docs/version-4.2.3/usage/single/index.html index dabbd03ce1..948860fe76 100644 --- a/docs/version-4.2.3/usage/single/index.html +++ b/docs/version-4.2.3/usage/single/index.html @@ -4,13 +4,13 @@ Single fields | react-jsonschema-form - +
Version: v4

Single fields

The simplest example of a JSON Schema contains only a single field. The field type is determined by the type parameter.

Field types

The base field types in JSON Schema include:

  • string
  • number
  • integer
  • boolean
  • null

Here is an example of a string field:

const schema = {
type: "string"
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Titles and descriptions

Fields can have titles and descriptions specified by the title keyword in the schema and description keyword in the schema, respectively. These two can also be overriden by the ui:title and ui:description keywords in the uiSchema.

const schema = {
title: "My form",
description: "My description",
type: "string"
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Enumerated values

All base schema types support the enum attribute, which restricts the user to select among a list of options. For example:

const schema = {
type: "string",
enum: ["one", "two", "three"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Custom labels for enum fields

This library supports a custom enumNames property for enum fields, which, however is not JSON-Schema compliant (see below for a compliant approach). The enumNames property allows defining custom labels for each option of an enum:

const schema = {
type: "number",
enum: [1, 2, 3],
enumNames: ["one", "two", "three"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Alternative JSON-Schema compliant approach

JSON Schema has an alternative approach to enumerations using anyOf; react-jsonschema-form supports it as well.

const schema = {
"type": "number",
"anyOf": [
{
"type": "number",
"title": "one",
"enum": [
1
]
},
{
"type": "number",
"title": "two",
"enum": [
2
]
},
{
"type": "number",
"title": "three",
"enum": [
3
]
}
]
};

render((
<Form schema={schema} />
), document.getElementById("app"));

Disabled attribute for enum fields

To disable an option, use the ui:enumDisabled property in the uiSchema.

const schema = {
type: "boolean",
enum: [true, false]
};

const uiSchema={
"ui:enumDisabled": [true],
};

render((
<Form schema={schema} uiSchema={uiSchema} />
), document.getElementById("app"));

Nullable types

JSON Schema supports specifying multiple types in an array; however, react-jsonschema-form only supports a restricted subset of this -- nullable types, in which an element is either a given type or equal to null.

const schema = {
type: ["string", "null"]
};

render((
<Form schema={schema} />
), document.getElementById("app"));
- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/themes/index.html b/docs/version-4.2.3/usage/themes/index.html index fb88dd67eb..3e1a6a4731 100644 --- a/docs/version-4.2.3/usage/themes/index.html +++ b/docs/version-4.2.3/usage/themes/index.html @@ -4,7 +4,7 @@ Themes | react-jsonschema-form - + @@ -12,7 +12,7 @@
Version: v4

Themes

By default, this library renders form fields and widgets leveraging the Bootstrap semantics, meaning that you must load the Bootstrap stylesheet on the page to view the form properly. You can use another theme by importing one of the packages listed below.

Supported themes

Theme NameStatusPackage Name / Link
Bootstrap 3 (default)Published@rjsf/core
Bootstrap 4Published@rjsf/bootstrap-4
material-ui 4 & 5Published@rjsf/material-ui
fluent-uiPublished@rjsf/fluent-ui
antdPublished@rjsf/antd
Semantic UIPublished@rjsf/semantic-ui
Chakra UIPublished@rjsf/chakra-ui

Using themes

To use a theme from a package, just import the <Form /> component from that package. For example, to use the material ui form, first install both @rjsf/core and @rjsf/material-ui. Then you can import the form by doing:

import Form from "@rjsf/material-ui";

If you would like to contribute a theme with a new UI framework, please develop the theme using the withTheme component described in Theme Customization and make a PR!

You can also use the uiSchema to add custom CSS class names to your form.

Customizing with other frameworks

The default theme is bootstrap 3. In order to use another theme, you must first install @rjsf/core.

For example, to use the standard bootstrap 3 form, you can run:

import Form from "@rjsf/core";

To use the material-ui form, you should first install both @rjsf/core and @rjsf/material-ui. Then, you can run:

import Form from "@rjsf/material-ui";

For more information on how to create a custom theme, see documentation on the withTheme component.

- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/validation/index.html b/docs/version-4.2.3/usage/validation/index.html index 5a1d21f43f..25e8060f45 100644 --- a/docs/version-4.2.3/usage/validation/index.html +++ b/docs/version-4.2.3/usage/validation/index.html @@ -4,14 +4,14 @@ Validation | react-jsonschema-form - +
Version: v4

Validation

When the form is submitted, the form data is validated to conform to the given JSON schema; this library uses the ajv validator by default.

Live validation

By default, form data are only validated when the form is submitted or when a new formData prop is passed to the Form component.

You can enable live form data validation by passing a liveValidate prop to the Form component, and set it to true. Then, every time a value changes within the form data tree (e.g. the user entering a character in a field), a validation operation is performed, and the validation results are reflected into the form state.

Be warned that this is an expensive strategy, with possibly strong impact on performances.

const schema = {
type: ["string"],
const: "test"
};

const formData = "a";

render((
<Form schema={schema} formData={formData} liveValidate />
), document.getElementById("app"));

HTML5 Validation

By default, the form uses HTML5 validation. This may cause unintuitive results because the HTML5 validation errors (such as when a field is required) may be displayed before the form is submitted, and thus these errors will display differently from the react-jsonschema-form validation errors. You can turn off HTML validation by setting the noHtml5Validate to true.

const schema = {
type: "object",
properties: {
name: {
type: "string",
required: true
}
}
};

render((
<Form schema={schema} noHtml5Validate />
), document.getElementById("app"));

Custom validation rules

Form data is always validated against the JSON schema.

But it is possible to define your own custom validation rules. This is especially useful when the validation depends on several interdependent fields.

function validate(formData, errors) {
if (formData.pass1 !== formData.pass2) {
errors.pass2.addError("Passwords don't match");
}
return errors;
}

const schema = {
type: "object",
properties: {
pass1: {type: "string", minLength: 3},
pass2: {type: "string", minLength: 3},
}
};

render((
<Form schema={schema}
validate={validate} />
), document.getElementById("app"));

Notes:

  • The validate() function must always return the errors object received as second argument.
  • The validate() function is called after the JSON schema validation.

Custom error messages

Validation error messages are provided by the JSON Schema validation by default. If you need to change these messages or make any other modifications to the errors from the JSON Schema validation, you can define a transform function that receives the list of JSON Schema errors and returns a new list.

function transformErrors(errors) {
return errors.map(error => {
if (error.name === "pattern") {
error.message = "Only digits are allowed"
}
return error;
});
}

const schema = {
type: "object",
properties: {
onlyNumbersString: {type: "string", pattern: "^\\d*$"},
}
};

render((
<Form schema={schema}
transformErrors={transformErrors} />
), document.getElementById("app"));

Notes:

  • The transformErrors() function must return the list of errors. Modifying the list in place without returning it will result in an error.

Each element in the errors list passed to transformErrors has the following properties:

  • name: name of the error, for example, "required" or "minLength"
  • message: message, for example, "is a required property" or "should NOT be shorter than 3 characters"
  • params: an object with the error params returned by ajv (see doc for more info).
  • property: a string in Javascript property accessor notation to the data path of the field with the error. For example, .name or ['first-name'].
  • stack: full error name, for example ".name is a required property".
  • schemaPath: JSON pointer to the schema of the keyword that failed validation. For example, #/fields/firstName/required. (Note: this may sometimes be wrong due to a bug in ajv).

Error List Display

To take control over how the form errors are displayed, you can define an error list template for your form. This list is the form global error list that appears at the top of your forms.

An error list template is basically a React stateless component being passed errors as props so you can render them as you like:

function ErrorListTemplate(props) {
const { errors } = props;
return (
<div>
<h2>Custom error list</h2>
<ul>
{errors.map(error => (
<li key={error.stack}>
{error.stack}
</li>
))}
</ul>
</div>
);
}

const schema = {
type: "string",
const: "test"
};

render((
<Form schema={schema}
showErrorList={true}
formData={""}
liveValidate
ErrorList={ErrorListTemplate} />
), document.getElementById("app"));

Note: Your custom ErrorList template will only render when showErrorList is true.

The following props are passed to ErrorList

  • errors: An array of the errors.
  • errorSchema: The errorSchema constructed by Form.
  • schema: The schema that was passed to Form.
  • uiSchema: The uiSchema that was passed to Form.
  • formContext: The formContext object that you passed to Form.

The case of empty strings

When a text input is empty, the field in form data is set to undefined. String fields that use enum and a select widget will have an empty option at the top of the options list that when selected will result in the field being undefined.

One consequence of this is that if you have an empty string in your enum array, selecting that option in the select input will cause the field to be set to undefined, not an empty string.

If you want to have the field set to a default value when empty you can provide a ui:emptyValue field in the uiSchema object.

Custom meta schema validation

To have your schemas validated against any other meta schema than draft-07 (the current version of JSON Schema), make sure your schema has a $schema attribute that enables the validator to use the correct meta schema. For example:

{
"$schema": "http://json-schema.org/draft-04/schema#",
...
}

Note that react-jsonschema-form only supports the latest version of JSON Schema, draft-07, by default. To support additional meta schemas pass them through the additionalMetaSchemas prop to the Form component.

additionalMetaSchemas

The additionalMetaSchemas prop allows you to validate the form data against one (or more than one) JSON Schema meta schema, for example, JSON Schema draft-04. You can import a meta schema as follows:

const metaSchemaDraft04 = require("ajv/lib/refs/json-schema-draft-04.json");

In this example schema passed as props to Form component can be validated against draft-07 (default) and by draft-04 (added), depending on the value of $schema attribute.

const schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
type: "string"
};

return (<Form schema={schema}
additionalMetaSchemas={[metaSchemaDraft04]} />);

customFormats

Pre-defined semantic formats are limited. react-jsonschema-form adds two formats, color and data-url, to support certain alternative widgets. You can add formats of your own through the customFormats prop to your Form component:

const schema = {
type: 'string',
format: 'phone-us'
};

const customFormats = {
'phone-us': /\(?\d{3}\)?[\s-]?\d{3}[\s-]?\d{4}$/
};

render((
<Form schema={schema}
customFormats={customFormats}/>
), document.getElementById("app"));

Format values can be anything AJV's addFormat method accepts.

Async validation

Handling async errors is an important part of many applications. Support for this is added in the form of the extraErrors prop.

For example, a request could be made to some backend when the user submits the form. If that request fails, the errors returned by the backend should be formatted like in the following example.

const schema = {
type: "object",
properties: {
foo: {
type: "string",
},
candy: {
type: "object",
properties: {
bar: {
type: "string",
}
}
}
}
};

const extraErrors = {
foo: {
__errors: ["some error that got added as a prop"],
},
candy: {
bar: {
__errors: ["some error that got added as a prop"],
}
}
};

render((
<Form schema={schema}
extraErrors={extraErrors} />
), document.getElementById("app"));

An important note is that these errors are "display only" and will not block the user from submitting the form again.

- + \ No newline at end of file diff --git a/docs/version-4.2.3/usage/widgets/index.html b/docs/version-4.2.3/usage/widgets/index.html index 76bd580cc0..f6587e6eaa 100644 --- a/docs/version-4.2.3/usage/widgets/index.html +++ b/docs/version-4.2.3/usage/widgets/index.html @@ -4,13 +4,13 @@ Widgets | react-jsonschema-form - +
Version: v4

Widgets

The uiSchema ui:widget property tells the form which UI widget should be used to render a field.

Example:

const schema = {
type: "object",
properties: {
done: {
type: "boolean"
}
}
};

const uiSchema =  {
done: {
"ui:widget": "radio" // could also be "select"
}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

Here's a list of supported alternative widgets for different JSON Schema data types:

For boolean fields

  • radio: a radio button group with true and false as selectable values;
  • select: a select box with true and false as options;
  • by default, a checkbox is used

Note: To set the labels for a boolean field, instead of using true and false you can set enumNames in your schema. Note that enumNames belongs in your schema, not the uiSchema, and the order is always [true, false].

For string fields

  • textarea: a textarea element is used;
  • password: an input[type=password] element is used;
  • color: an input[type=color] element is used;
  • by default, a regular input[type=text] element is used.

String formats

The built-in string field also supports the JSON Schema format property, and will render an appropriate widget by default for the following string formats:

  • email: An input[type=email] element is used;
  • uri: An input[type=url] element is used;
  • data-url: By default, an input[type=file] element is used; in case the string is part of an array, multiple files will be handled automatically (see File widgets).
  • date: By default, an input[type=date] element is used;
  • date-time: By default, an input[type=datetime-local] element is used.

Please note that, even though they are standardized, datetime-local and date input elements are not yet supported by Firefox and IE. If you plan on targeting these platforms, two alternative widgets are available:

  • alt-datetime: Six select elements are used to select the year, the month, the day, the hour, the minute and the second;
  • alt-date: Three select elements are used to select the year, month and the day.

Firefox 57 - 66: Firefox partially supporting date and time input types, but not datetime-local, month or week

You can customize the list of years displayed in the year dropdown by providing a yearsRange property to ui:options in your uiSchema. Its also possible to remove the Now and Clear buttons with the hideNowButton and hideClearButton options.

const schema = {
type: "string"
};

const uiSchema = {
"ui:widget": "alt-datetime",
"ui:options": {
yearsRange: [1980, 2030],
hideNowButton: true,
hideClearButton: true,
}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

For number and integer fields

  • updown: an input[type=number] updown selector;
  • range: an input[type=range] slider;
  • radio: a radio button group with enum values. This can only be used when enum values are specified for this input.
  • By default, a regular input[type=text] element is used.

Note: If JSON Schema's minimum, maximum and multipleOf values are defined, the min, max and step input attributes values will take those values.

Hidden widgets

It's possible to use a hidden widget for a field by setting its ui:widget uiSchema directive to hidden:

const schema = {
type: "object",
properties: {
foo: {type: "boolean"}
}
};

const uiSchema = {
foo: {"ui:widget": "hidden"}
};

render((
<Form schema={schema}
uiSchema={uiSchema} />
), document.getElementById("app"));

Notes:

  • Hiding widgets is only supported for boolean, string, number and integer schema types;
  • A hidden widget takes its value from the formData prop.

File widgets

This library supports a limited form of input[type=file] widgets, in the sense that it will propagate file contents to form data state as data-urls.

There are two ways to use file widgets.

  1. By declaring a string json schema type along a data-url format:
const schema = {
type: "string",
format: "data-url",
};

render((
<Form schema={schema} />
), document.getElementById("app"));
  1. By specifying a ui:widget field uiSchema directive as file:
const schema = {
type: "string",
};

const uiSchema = {
"ui:widget": "file",
};

Multiple files

Multiple files selectors are supported by defining an array of strings having data-url as a format:

const schema = {
type: "array",
items: {
type: "string",
format: "data-url",
}
};

Note that storing large dataURIs into form state might slow rendering.

File widget input ref

The included FileWidget exposes a reference to the <input type="file" /> element node as an inputRef component property.

This allows you to programmatically trigger the browser's file selector, which can be used in a custom file widget.

accept option

You can use the accept attribute to specify a filter for what file types the user can upload:

const schema = {
type: "string",
format: "data-url"
};

const uiSchema = {
"ui:options": { accept: ".pdf" }
};
- + \ No newline at end of file diff --git a/index.html b/index.html index a10ed05e3a..e5cfb7e61f 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - +